/*
Theme Name: РОШТИМ Landing
Theme URI: https://roshtim.ru
Author: РОШТИМ
Author URI: https://roshtim.ru
Description: WordPress тема-лендинг для проекта КГЭ Артель. Все блоки настраиваются через Настройки → Настроить (Customizer). Лента времени управляется через записи типа «Событие таймлайна».
Version: 1.11.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roshtim
*/

/* Safari на iPhone SE: может понимать @supports (gap: 10px), но не поддерживать gap во flex-контейнерах.
   Решение - по старинке, через margin */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --p9: #1a0a2e;
  --p8: #2d1054;
  --p7: #3f1a6e;
  --p6: #512688;
  --p5: #6b35a8;
  --p4: #7c3aed;
  --p3: #9563f7;
  --p2: #b794f6;
  --p1: #d4bffc;
  --p0: #ede5ff;
  --p00: #f5f0ff;
  --s9: #0f172a;
  --s8: #1e293b;
  --s7: #334155;
  --s6: #475569;
  --s5: #64748b;
  --s4: #94a3b8;
  --s3: #cbd5e1;
  --s2: #e2e8f0;
  --s1: #f1f5f9;
  --w: #ffffff;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --cyan: #06b6d4;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
     }

html {
  scroll-behavior: smooth; overflow-x: hidden; max-width: 100%;
   }

body {
  font-family: var(--font-body); color: var(--s8); line-height: 1.7; background: var(--w); overflow-x: hidden;
  max-width: 100vw; min-width: 380px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    }

/* =============================================
   CURSOR GLOW (desktop only)
   ============================================= */
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 9999;
  background: radial-gradient(circle, rgba(124,58,237,.07) 0%, transparent 70%); transform: translate(-50%, -50%);
  transition: left .35s ease, top .35s ease; will-change: left, top;
   }

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1001; background: linear-gradient(90deg, var(--p4), var(--cyan));
  border-radius: 0 2px 2px 0; width: 0%; transition: width .08s linear;
     }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0); backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px); transition: all .5s var(--ease-out-expo);
       }
.header.scrolled {
  background: rgba(255,255,255,.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 1px 40px rgba(45,16,84,.06);
      }
.header-inner {
  max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 80px; transition: height .4s var(--ease-out-expo);
      }
.header.scrolled .header-inner {
  height: 64px;
}

/* Logo */
.logo {
  display: flex; align-items: center; text-decoration: none; color: var(--p8);
   }
.logo-icon {
  display: flex; width: 46px; height: 46px; border-radius: 14px; margin-right: 14px; background: linear-gradient(135deg, var(--p5), var(--p3)); 
  align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 18px; font-family: var(--font-mono);
  box-shadow: 0 4px 20px rgba(124,58,237,.35); transition: transform .3s var(--ease-out-expo), box-shadow .3s;
}
.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.08); box-shadow: 0 8px 30px rgba(124,58,237,.45);
}

.logo-text {
  font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -.5px;
    }
.logo-text span {
  color: var(--p4);
}

/* Navigation */
nav {
  display: flex; gap: 4px;
    }
nav li {
    list-style: none;
}
nav a {
  text-decoration: none; color: var(--s5); font-size: 13.5px; font-weight: 500; padding: 8px 16px; border-radius: 10px; position: relative;     
  transition: all .3s;
    }
nav a::before {
  content: ''; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2.5px; background: var(--p3); border-radius: 2px; 
  transition: all .4s var(--ease-out-expo); transform: translateX(-50%);
     }

nav a:hover {
  color: var(--p5);
}

nav a:hover::before {
  width: 24px;
}

/* Header CTA */
.header-cta {
  background: linear-gradient(135deg, var(--p5), var(--p4));
  color: white;
  border: none;
  padding: 11px 28px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(124,58,237,.25);
  transition: transform .3s, box-shadow .3s;
}

.header-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,.4);
}

.header-cta:hover::before {
  opacity: 1;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--p00);
  border-radius: 10px;
  padding: 3px;
  margin-right: 8px;
}
.lang-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--s5);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .5px;
}
.lang-btn:hover {
  background: var(--p1);
  color: var(--p5);
}
.lang-btn.active {
  background: var(--p5);
  color: white;
  box-shadow: 0 2px 8px rgba(124,58,237,.3);
}

/* Header CTA Contact (optional separate button) */
.header-cta-contact {
  margin-right: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--p5);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s;
}
.header-cta-contact:hover {
  background: var(--p4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,.3);
}

@media (max-width: 768px) {
  .lang-switcher { margin-right: 4px; }
  .lang-btn { padding: 4px 7px; font-size: 10px; }
  .header-cta-contact { display: none; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; position: relative; overflow: hidden; 
  padding: 16px 36px; border-radius: 14px; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all .4s var(--ease-out-expo); cursor: pointer; border: none; font-family: inherit;
    }
.btn > *:not(:first-child) { /* Обход gap: 10px; */
    margin-left: 10px;
   } 

.btn-primary {
  background: linear-gradient(135deg, var(--p6), var(--p4)); color: white; box-shadow: 0 4px 24px rgba(124,58,237,.3), inset 0 1px 0 rgba(255,255,255,.1);
    }
.btn-primary::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 60%); transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease-out-expo);
   }
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(124,58,237,.45);
  }
.btn-primary:hover::after {
  transform: translate(-50%, -50%) scale(1);
}
.btn-primary:active {
  transform: translateY(0) scale(.98);
}

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: white;
  border: 1.5px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--w);
  color: var(--p6);
  border: 2px solid var(--p1);
}

.btn-outline:hover {
  border-color: var(--p3);
  background: var(--p00);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform .3s;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn-light {
  display: inline-flex; max-width: 250px; align-items: center; gap: 10px; background: white; color: var(--p6); padding: 16px 36px; border-radius: 14px;
  font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 24px rgba(0,0,0,.1); transition: all .4s var(--ease-out-expo);
    }

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: auto;
  padding: 100px 48px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(170deg, var(--p00) 0%, var(--w) 35%, var(--p00) 100%);
  isolation: isolate;
}

/* Hero background shapes */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  animation: hfloat 20s ease-in-out infinite;
}

.hs1 { width: 600px; height: 600px; top: -200px; right: -100px; background: var(--p1); animation-delay: 0s; }
.hs2 { width: 400px; height: 400px; bottom: -100px; left: -80px; background: var(--p2); animation-delay: -7s; }
.hs3 { width: 300px; height: 300px; top: 40%; left: 30%; background: rgba(6,182,212,.15); animation-delay: -14s; }

@keyframes hfloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--p3);
  opacity: 0;
  animation: pFloat linear infinite;
}

@keyframes pFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: .5; }
  90% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* Hero layout */
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1000;
}

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; background: linear-gradient(135deg, var(--p0), var(--p1)); color: var(--p6);
  padding: 8px 20px 6px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 8px; animation: slideUp .8s var(--ease-out-expo) both;
    }

.hero-badge::before {
  content: ''; width: 8px; height: 8px; background: var(--p4); border-radius: 50%; animation: blink 2s ease infinite;
  margin-top: -2px; margin-right: 8px;
    }

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(124,58,237,.4); }
  50% { opacity: .5; box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero heading */
.hero h1 {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--s9);
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  animation: slideUp .8s .15s var(--ease-out-expo) both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--p5), var(--p3), var(--cyan));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 15px; color: var(--s5); line-height: 1.5; margin-bottom: 20px; max-width: 540px; animation: slideUp .8s .3s var(--ease-out-expo) both;
     }
/* Дополнительный hero-desc абзац (было inline в front-page.php) */
.hero-desc-2 {
  margin-top: 8px; font-size: 13.5px; color: var(--s4); line-height: 1.65;
    }

.hero-buttons {
  display: flex;  flex-wrap: wrap; margin-top: -12px; /* Обход gap: 12px; */
  animation: slideUp .8s .45s var(--ease-out-expo) both;
}

.hero-buttons > * { /* Обход gap: 12px; */
  margin-top: 12px;
   }
.hero-buttons > *:not(:first-child) { /* Обход gap: 12px; */
  margin-left: 12px;
   }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
  animation: slideUp .8s .6s var(--ease-out-expo) both;
}

.hero-stat {
  text-align: center;
  padding: 22px 16px;
  background: var(--w);
  border-radius: 18px;
  border: 1px solid var(--p0);
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease-out-expo);
}

.hero-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.03), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.hero-stat:hover {
  transform: translateY(-4px);
  border-color: var(--p2);
  box-shadow: 0 12px 32px rgba(124,58,237,.08);
}

.hero-stat:hover::before { opacity: 1; }

.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--p5);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 11.5px;
  color: var(--s5);
  margin-top: 6px;
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  animation: slideUp 1s .3s var(--ease-out-expo) both;
  position: relative;
}

.hero-diagram {
  width: 100%; max-width: 520px; margin: 0 auto; background: var(--w); border-radius: 28px; padding: 0;
  box-shadow: 0 30px 80px rgba(45,16,84,.08), 0 0 0 1px rgba(124,58,237,.05);
  position: relative; transition: box-shadow .5s, transform .3s; overflow: visible;
    }
.hero-diagram iframe {
   display: block;
}

.hero-diagram:hover {
  box-shadow: 0 40px 100px rgba(45,16,84,.12), 0 0 0 1px rgba(124,58,237,.1);
}

/* 3D-iframe и его прелоадер (раньше задавались inline в front-page.php) */
.assembly-iframe {
  display: block; width: 100%; height: 480px; max-height: 480px; min-height: 380px; border: none; border-radius: 28px;
    }
#iframeLoader {
  position: absolute; width: 100%; height: 100%; left:0; top:0; inset: 0; z-index: 5; background: linear-gradient(135deg, #f8f6ff, #ede8ff);
  border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .6s ease;
    }
#iframeLoader > * { margin-top: 16px; }
.iframe-loader-spinner {
  width: 48px; height: 48px; border: 3px solid rgba(124,58,237,0.2); border-top-color: #7c3aed; border-radius: 50%; animation: loaderSpin 0.8s linear infinite;
    }
.iframe-loader-text {
  font-family: var(--font-body); font-size: 14px; color: var(--p5); font-weight: 600;
   }

/* ── Прелоадер полного экрана (раньше был inline в main.js) ── */
#fsLoader {
  position: absolute; width: 100%; height: 100%; left:0; top:0; inset: 0; z-index: 10; background: linear-gradient(135deg, #2d1054, #1e0a3c);
  display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .5s ease;
     }
#fsLoader > * { margin-top: 16px; }
.fs-loader-spinner {
  width: 56px; height: 56px; border: 3px solid rgba(124,58,237,0.3); border-top-color: #a78bfa; border-radius: 50%; animation: loaderSpin 0.8s linear infinite;
     }
.fs-loader-text {
  font-family: sans-serif; font-size: 15px; color: #a78bfa; font-weight: 600; letter-spacing: 0.5px;
     }
.fs-loader-sub {
  font-size: 12px; color: rgba(255,255,255,0.4);
     }

/* ── Подсказка «Колесо/ПКМ» в полном экране (раньше inline) ── */
.fullscreen-overlay .mouse-hint {
  position: absolute; top: 16px; left: 16px; z-index: 10; display: flex; align-items: flex-start; gap: 8px; background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-radius: 12px; padding: 10px 14px; border: 1px solid rgba(124,58,237,.15); box-shadow: 0 4px 16px rgba(0,0,0,.08); opacity: 0.85; font-family: sans-serif;
    }
.fullscreen-overlay .mouse-hint-text {
  display: flex; flex-direction: column; gap: 3px; font-size: 10px; font-weight: 500; color: #555;
   }

/* Fullscreen button on 3D scene */
.fullscreen-btn {
  position: absolute; top: 16px; left: 16px; z-index: 10; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid rgba(124,58,237,.2);
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--p5); transition: all .3s var(--ease-out-expo); box-shadow: 0 4px 12px rgba(0,0,0,.08);
     }
.fullscreen-btn:hover {
  background: var(--p4); color: white; border-color: var(--p4); transform: scale(1.1); box-shadow: 0 8px 24px rgba(124,58,237,.3);
     }
@keyframes fsBtnShimmer {
  0%,100%{ box-shadow:0 4px 12px rgba(0,0,0,.08); }
  50%{ box-shadow:0 4px 20px rgba(124,58,237,.35); }
}
.fullscreen-btn{ animation: fsBtnShimmer 2s ease-in-out infinite; }

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all .8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left { opacity: 0; transform: translateX(-60px); transition: all .8s var(--ease-out-expo); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: all .8s var(--ease-out-expo); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.88); transition: all .8s var(--ease-out-expo); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: .06s; }
.stagger-2 { transition-delay: .12s; }
.stagger-3 { transition-delay: .18s; }
.stagger-4 { transition-delay: .24s; }
.stagger-5 { transition-delay: .30s; }
.stagger-6 { transition-delay: .36s; }

/* =============================================
   SECTION COMMON
   ============================================= */
section {
  padding: 56px 48px;
}

.section-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--p5);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--p3), var(--p1));
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--s9);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}

.section-desc {
  font-size: 15px;
  color: var(--s5);
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 28px;
}





/* =============================================
   ABOUT SECTION
   ============================================= */
.about { background: var(--w); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-features { display: grid; gap: 0; }

.about-feature {
  display: flex; align-items: flex-start; padding: 8px 12px; border-radius: 18px; transition: all .4s var(--ease-out-expo);
  cursor: default; border: 1px solid transparent;
   }
.about-feature:hover {
  background: var(--p00); border-color: var(--p0); transform: translateX(8px); box-shadow: 0 8px 24px rgba(124,58,237,.05);
   }
.about-feature > *:not(:first-child) { /* Обход gap: 14px; */
  margin-left: 14px;
    }

.af-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform .4s var(--ease-out-expo);
}

.about-feature:hover .af-icon {
  transform: scale(1.12) rotate(-5deg);
}

.af1 { background: linear-gradient(135deg, #ede5ff, #d4bffc); }
.af2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.af3 { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.af4 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }

.about-feature h4 {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--s8);
  margin-bottom: 2px;
}

.about-feature p {
  font-size: 13.5px;
  color: var(--s5);
  line-height: 1.45;
}

.about .section-title { font-size: 38px; }
.about .section-desc { margin-bottom: 16px; }
.about .section-label { font-size: 12px; }

.about-visual {
  border-radius: 28px; overflow: hidden; position: relative; background: linear-gradient(145deg, var(--p0), var(--p1)); max-height: 620px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 60px rgba(45,16,84,.1); transition: transform .5s var(--ease-out-expo);
    }

.about-visual:hover { transform: scale(1.02) rotate(.5deg); }
.about-visual svg { width: 100%; height: auto; max-height: 620px; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Модификатор «прозрачная подложка» — для случая когда вместо SVG-схемы
   просто картинка/svg-блок без рамки (раньше это было inline-стилем). */
.about-visual.about-visual--clean {
  aspect-ratio: auto; background: transparent; box-shadow: none; padding: 0;
    }
.about-visual.about-visual--clean img { height: auto; object-fit: initial; }

/* =============================================
   TECH SECTION
   ============================================= */
.tech {
  background: var(--s9);
  color: var(--w);
  position: relative;
  overflow: hidden;
}

.tech::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(124,58,237,.12), transparent),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(6,182,212,.06), transparent);
}

.tech .section-label { color: var(--p2); }
.tech .section-title { color: var(--w); }
.tech .section-desc { color: var(--s4); }

.tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.tech-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(149,99,247,.12);
  border-radius: 24px;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: all .5s var(--ease-out-expo);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p4), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out-expo);
}

.tech-card:hover::before { transform: scaleX(1); }

.tech-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,.08), transparent 60%);
  opacity: 0;
  transition: opacity .5s;
}

.tech-card:hover::after { opacity: 1; }

.tech-card:hover {
  background: rgba(149,99,247,.06);
  border-color: rgba(149,99,247,.25);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(124,58,237,.12);
}

.tech-card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--p3);
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tech-card-num::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--p3);
  opacity: .4;
}

.tech-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--w);
  position: relative;
  z-index: 1;
}

.tech-card p {
  font-size: 13px;
  color: var(--s4);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* =============================================
   CERTIFICATIONS
   ============================================= */
.certs { background: var(--p00); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--w);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--p0);
  position: relative;
  overflow: hidden;
  transition: all .5s var(--ease-out-expo);
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(45,16,84,.1);
  border-color: var(--p2);
}

.cert-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform .5s var(--ease-out-expo);
}

.cert-card:hover .cert-badge { transform: scale(1.15) rotate(-8deg); }

.cb1 { background: linear-gradient(135deg, #fef3c7, #fbbf24); }
.cb2 { background: linear-gradient(135deg, #d1fae5, #34d399); }
.cb3 { background: linear-gradient(135deg, #dbeafe, #60a5fa); }
.cb4 { background: linear-gradient(135deg, #fce7f3, #f472b6); }

.cert-card h4 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--s8);
  margin-bottom: 8px;
}

.cert-card p { font-size: 13px; color: var(--s5); line-height: 1.65; }

.cert-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--p5);
  font-weight: 500;
  margin-top: 14px;
  display: inline-block;
  background: var(--p00);
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid var(--p0);
}

/* =============================================
   CALCULATOR / SOFTWARE
   ============================================= */
.calc { background: var(--w); padding-top: 24px !important; padding-bottom: 24px !important; }
.calc .section-desc { margin: 15px 0px 15px 10px; }
.calc .section-title { margin-bottom: 4px; font-size: 28px; }
.calc .section-label { margin-bottom: 6px; }
.opus-tabs-row { 
    display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px;
       }
.opus-tabs-row .opus-tabs-bar { flex: 1 1 auto; }
.demo-btn { 
   display: inline-flex; align-items: center; justify-content: center; padding: 7px 18px; font-family: inherit; font-size: 11.5px; font-weight: 800; 
   letter-spacing: 2px; text-transform: uppercase; color: var(--p5); border: 1.5px solid var(--p3); border-radius: 10px; text-decoration: none; 
   transition: all .3s var(--ease-out-expo); background: var(--w); line-height: 1; white-space: nowrap; flex-shrink: 0; 
      }
.demo-btn:hover { background: linear-gradient(135deg, var(--p5), var(--p4)); color: var(--w); border-color: var(--p4); box-shadow: 0 4px 16px rgba(124,58,237,.25); }

.calc-showcase {
  background: linear-gradient(140deg, var(--p8), var(--p5)); border-radius: 32px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center; position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(45,16,84,.2);
}

.calc-showcase::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(6,182,212,.08);
  filter: blur(80px);
}

.calc-info { position: relative; z-index: 1; }

.calc-info h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  line-height: 1.15;
}

.calc-info > p {
  font-size: 13px;
  color: var(--p1);
  line-height: 1.6;
  margin-bottom: 32px;
}

.calc-features { display: grid; gap: 14px; }

.calc-feat {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--p1);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  transition: all .3s;
}

.calc-feat:hover { transform: translateX(6px); color: white; }

.calc-feat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p2);
  flex-shrink: 0;
  transition: all .3s;
}

.calc-feat:hover .calc-feat-dot {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(6,182,212,.5);
}

.calc-demo {
  background: rgba(0,0,0,.25);
  border-radius: 20px;
  padding: 20px 16px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  transition: transform .4s var(--ease-out-expo);
}

.calc-demo:hover { transform: translateY(-4px); }

.calc-demo-header { display: flex; gap: 7px; margin-bottom: 24px; }
.calc-demo-dot { width: 11px; height: 11px; border-radius: 50%; }

.calc-demo-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--p2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.calc-demo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: all .3s;
}

.calc-demo-row:hover { padding-left: 8px; border-bottom-color: rgba(255,255,255,.12); }

.calc-demo-label { color: var(--p1); font-size: 13.5px; }

.calc-demo-val {
  font-family: var(--font-mono);
  color: var(--p2);
  font-size: 14px;
  font-weight: 500;
}

.calc-demo-val.hl {
  color: var(--gold);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(245,158,11,.2);
}

/* «Описание калькулятора» — был inline max-width:800px */

.calc-section-desc{ max-width:800px; }

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--s1); }

.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.srv-card {
  background: var(--w); border-radius: 24px; padding: 28px 24px; border: 1px solid var(--s2);
  position: relative; overflow: hidden; transition: all .5s var(--ease-out-expo); cursor: pointer;
    }

.srv-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--p4), var(--cyan));
  transform: scaleX(0);
  transition: transform .5s var(--ease-out-expo);
}

.srv-card:hover::before { transform: scaleX(1); }

.srv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(45,16,84,.08);
  border-color: var(--p1);
}

.srv-card.featured {
  border: 2px solid var(--p3);
  box-shadow: 0 8px 30px rgba(124,58,237,.1);
}

.srv-title {
   display: flex; align-items: center; margin-bottom: 20px;
}
.srv-title > *:not(:first-child) { /* Обход gap: 15px; */
     margin-left: 15px;
       }

.srv-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform .4s var(--ease-out-expo);
}

.srv-card:hover .srv-icon { transform: scale(1.12) rotate(-5deg); }

.si1 { background: linear-gradient(135deg, var(--p0), var(--p1)); }
.si2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.si3 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }

.srv-card h3 {
  font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--s8);
    }
.srv-card > p { f
   ont-size: 13px; color: var(--s5); line-height: 1.7; margin-bottom: 24px;
    }
.srv-items { 
   display: grid; gap: 10px; margin-bottom: 32px;
    }
.srv-item {
  display: flex; align-items: flex-start; font-size: 14px; color: var(--s6);
  }
.srv-item::before {
  content: '\2713'; color: var(--p4); font-weight: 800; flex-shrink: 0; margin-right: 10px;
    }
.srv-price {
  font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--p5);
    }

.srv-price span {
  font-size: 14px;
  color: var(--s4);
  font-weight: 500;
  font-family: var(--font-body);
}

/* =============================================
   HORIZONTAL TIMELINE
   ============================================= */
   
.timeline-section { background: var(--w); padding: 48px; }

.htl-wrap{margin-top:20px;position:relative}
.htl-legend {
   display:flex; flex-wrap:wrap; margin-bottom:20px; font-size:12px; color:var(--s5);
     }
.htl-legend > *:not(:first-child) { /* Обход gap: 20px; */
     margin-left: 20px;
       }
.htl-leg{
   display:flex; align-items:center;
      }
.htl-leg > *:not(:first-child) { /* Обход gap: 6px; */
     margin-left: 6px;
       }
.htl-leg-dot{
   width:8px; height:8px; border-radius:50%; margin-top: -1px;
      }
.htl-slider-area { padding:0 56px; }
.htl-slider{position:relative;overflow:hidden}
.htl-track{display:grid;grid-template-rows:auto 40px auto;gap:0;transition:transform 0.5s cubic-bezier(.16,1,.3,1);width:200%}
.htl-row{display:flex;align-items:end}
.htl-row-bot{align-items:start}
.htl-row-bot > .htl-slide-empty:first-child { margin-left: 85px; }
.htl-slide{width: 210px; min-width:0;padding:0 5px;box-sizing:border-box;}
.htl-slide-empty{width: 40px; min-width:0;visibility:hidden}
.htl-card{background:var(--w);border:1px solid var(--p0);border-radius:14px;padding:12px 10px;cursor:pointer;position:relative;transition:border-color 0.3s,box-shadow 0.3s}
.htl-card:hover{border-color:var(--p2);box-shadow:0 8px 24px rgba(45,16,84,.1)}
.htl-date{font-family:var(--font-mono);font-size:11px;color:var(--p4);font-weight:600;margin-bottom:3px;letter-spacing:.3px}
.htl-title{font-family:var(--font-head);font-size:13px;font-weight:700;color:var(--s8);line-height:1.25;margin-bottom:8px}
.htl-desc{font-size:10px;color:var(--s5);line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.htl-tag{display:inline-block;margin-top:4px;font-family:var(--font-mono);font-size:9px;font-weight:600;padding:2px 6px;border-radius:4px;text-transform:uppercase;letter-spacing:.3px}
.htl-tag-eng{background:var(--p00);color:var(--p5)}
.htl-tag-disc{background:rgba(16,185,129,.08);color:var(--green)}
.htl-tag-meas{background:rgba(245,158,11,.08);color:var(--gold)}
.htl-tag-sw{background:rgba(6,182,212,.08);color:var(--cyan)}
.htl-tag-team{background:rgba(124,58,237,.06);color:var(--p3)}
.htl-dots{display:flex;height:40px;align-items:center;position:relative}
.htl-dots::before{content:'';position:absolute;top:50%;left:0;right:0;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--p1),var(--p3) 50%,var(--p1));transform:translateY(-50%)}
.htl-dot-row{display:flex;width:100%;position:relative;z-index:2}
.htl-dot-w{display:flex;justify-content:center; width: 125px;}
.htl-dot-w:first-child { margin-left: 40px; }
.htl-dot{width:14px;height:14px;border-radius:50%;border:3px solid var(--w);box-shadow:0 0 0 2px var(--p1)}
.htl-dot-mile{background:var(--p4)}.htl-dot-disc{background:var(--green)}.htl-dot-meas{background:var(--gold)}.htl-dot-team{background:var(--cyan)}
.htl-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:var(--p4);border:none;color:var(--w);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;box-shadow:0 4px 20px rgba(124,58,237,.3);z-index:5;transition:all .3s}
.htl-arrow:hover{background:var(--p5);box-shadow:0 8px 28px rgba(124,58,237,.4);transform:translateY(-50%) scale(1.1)}
.htl-arrow-left{ left: 5px; }
.htl-arrow-right{ right: 5px; }
.htl-arrow:disabled{opacity:.25;cursor:default;pointer-events:none}

.htl-tooltip{display:none;position:fixed;width:300px;background:var(--w);border:1px solid var(--p2);border-radius:18px;padding:22px 20px 18px;box-shadow:0 20px 60px rgba(45,16,84,.2);z-index:2000;pointer-events:auto}
.htl-tooltip.open{display:block}
.htl-tooltip-close{position:absolute;top:10px;right:12px;width:26px;height:26px;border-radius:8px;background:var(--p00);border:1px solid var(--p0);color:var(--s5);cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center;transition:all .2s}
.htl-tooltip-close:hover{background:var(--p1);color:var(--p6)}
.htl-tooltip-title{font-family:var(--font-head);font-size:16px;font-weight:800;color:var(--s9);margin-bottom:4px;padding-right:30px}
.htl-tooltip-date{font-family:var(--font-mono);font-size:10px;color:var(--p4);font-weight:600;margin-bottom:10px}
.htl-tooltip-body{font-size:13px;color:var(--s6);line-height:1.7}
.htl-tooltip-more{display:inline-block;margin-top:10px;font-size:12px;color:var(--p4);font-weight:600;text-decoration:none;cursor:pointer;transition:color .2s}
.htl-tooltip-more:hover{color:var(--p6)}

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio {
  background: var(--s9);
  color: var(--w);
  position: relative;
  overflow: hidden;
  display: none;
}

.portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 80% 20%, rgba(124,58,237,.08), transparent);
}

.portfolio .section-label { color: var(--p2); }
.portfolio .section-title { color: var(--w); }
.portfolio .section-desc { color: var(--s4); margin-bottom: 16px; }

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.port-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(149,99,247,.1);
  border-radius: 24px;
  overflow: hidden;
  transition: all .5s var(--ease-out-expo);
}

.port-card:hover {
  border-color: rgba(149,99,247,.25);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(124,58,237,.12);
}

.port-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}

.port-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15,23,42,.9));
}

.port-thumb span {
  position: relative;
  z-index: 1;
  transition: transform .5s var(--ease-out-expo);
}

.port-card:hover .port-thumb span { transform: scale(1.2) rotate(-5deg); }

.port-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: rgba(124,58,237,.75);
  color: white;
  padding: 5px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
}

.port-body { padding: 16px 20px; }

.port-body h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--w);
  margin-bottom: 10px;
}

.port-body p { font-size: 12.5px; color: var(--s4); line-height: 1.7; }

/* =============================================
   TEAM
   ============================================= */
.team { background: var(--w); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 24px;
  border: 1px solid var(--s2);
  transition: all .5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  border-color: var(--p1);
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(45,16,84,.08);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid var(--p0);
  transition: all .5s var(--ease-out-expo);
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
  border-color: var(--p2);
  box-shadow: 0 8px 24px rgba(124,58,237,.12);
}

.ta1 { background: linear-gradient(135deg, #ede5ff, #d4bffc); }
.ta2 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.ta3 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.ta4 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }

.team-card h4 {
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--s8);
  margin-bottom: 4px;
}

.team-role { font-size: 12px; color: var(--p4); font-weight: 600; margin-bottom: 10px; }
.team-card > p { font-size: 13px; color: var(--s5); line-height: 1.55; }

/* =============================================
   CTA
   ============================================= */
.cta-section {
  background: linear-gradient(140deg, var(--p8), var(--p5));
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 48px;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.08), transparent 60%);
}

.cta-section .section-inner { position: relative; z-index: 1; }

.cta-section h2 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  line-height: 1.15;
}

.cta-desc {
  font-size: 15px;
  color: var(--p1);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--s9);
  padding: 48px 48px 24px;
  color: var(--s4);
}

.footer-inner { max-width: 1320px; margin: 0 auto; }

.footer-grid {
  display: flex; margin-top: -48px; margin-left: -48px; margin-bottom: 48px; justify-content: space-around; flex-wrap: wrap;
    }
.footer-grid > * { /* Обход gap: 48px; */
  margin-top: 48px;
  margin-left: 48px;
    }

.footer-brand { 
   font-size: 14px; line-height: 1.75; width: 360px;
      }
.footer-brand .logo { 
   display:flex; margin-bottom: 18px;
     }

.footer h5 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--w);
  margin-bottom: 18px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }

.footer a {
  color: var(--s4);
  text-decoration: none;
  font-size: 13.5px;
  transition: all .3s;
  display: inline-block;
}

.footer a:hover { 
    color: var(--p2); transform: translateX(4px);
     }

.footer-line {
  border-top: 1px solid rgba(148,163,184,.08); padding: 28px 28px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 12.5px;
   }

/* =============================================
   OPUS SOFTWARE BLOCK
   ============================================= */
.opus-tabs-bar {
  display: flex; margin-top: -8px; margin-left: -8px; margin-bottom: 20px; flex-wrap: wrap;
    }
.opus-tabs-bar > * { /* Обход gap: 8px; */
  margin-top: 8px;
  margin-left: 8px;
    }

.opus-tab {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--p0);
  background: var(--w);
  color: var(--s6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .3s var(--ease-out-expo);
}

.opus-tab:hover {
  border-color: var(--p2);
  color: var(--p5);
  background: var(--p00);
}

.opus-tab.active {
  background: linear-gradient(135deg, var(--p5), var(--p4));
  color: white;
  border-color: var(--p4);
  box-shadow: 0 4px 16px rgba(124,58,237,.25);
}

.opus-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  margin-top: 0;
  align-items: stretch;
  background: var(--w);
  border: 1.5px solid var(--p0);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(45,16,84,.08);
  overflow: hidden;
}

.opus-left {
  order: 1;
  padding: 28px 28px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.opus-right {
  order: 2;
  background: #f0edf5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opus-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.opus-fl-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}

.opus-fl-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--p00), var(--p0));
}

.opus-fl-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--s8);
  margin-bottom: 2px;
}

.opus-fl-item span:last-child {
  font-size: 13.5px;
  color: var(--s5);
  line-height: 1.4;
}

.opus-desc-panel {
  display: none; animation: fadeIn .4s ease;
    }
.opus-desc-panel.active {
  display: block;
   }
.opus-desc-panel h4 {
  font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--s8); margin-bottom: 8px;
    }
.opus-desc-panel p {
  font-size: 14px; color: var(--s5); line-height: 1.65;
    }
.opus-desc-panel .opus-desc-extra {
    font-size: 14px; line-height: 1.5; color: var(--s8); padding: 15px 0 5px 3px;
    }
.opus-desc-panel .opus-desc-extra-icon {
   display: inline-block; margin-right: 5px;
    }
.opus-desc-panel .opus-desc-extra > div {
  padding: 5px 0 0 25px;
    }

.opus-screens {
  position: relative;
  overflow: hidden;
}

.opus-screen {
  display: none;
  animation: fadeIn .4s ease;
}

.opus-screen.active {
  display: block;
}

.opus-screen img {
  width: 100%;
  max-height: 480px;
  display: block;
  object-fit: contain;
  padding: 12px;
}

/* =============================================
   SIDE MENU
   ============================================= */
/* ── v4: Side menu overlays WebGL via GPU compositing promotion ──
   Instead of hiding the iframe, we promote the side menu and overlay
   to their own GPU compositing layers so they render above WebGL. */

/* Side menu + overlay: GPU compositing layer with maximum z-index */
.side-menu{position:fixed;top:0;right:0;width:320px;max-width:85vw;height:100vh;height:100dvh;background:var(--w);box-shadow:-8px 0 40px rgba(45,16,84,.12);z-index:2147483647;transform:translateX(100%) translateZ(0);transition:transform .35s cubic-bezier(.16,1,.3,1);padding:80px 36px 40px;display:flex;flex-direction:column;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.side-menu.open{transform:translateX(0) translateZ(0)}
.side-menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,0);pointer-events:none;z-index:2147483646;transition:background .35s;will-change:transform;transform:translateZ(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}
.side-menu-overlay.open{background:rgba(0,0,0,.4);pointer-events:all}

@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes loaderSpin { to { transform: rotate(360deg); } }

/* =============================================
   FULLSCREEN OVERLAY
   ============================================= */
html.fs-lock, body.fs-lock { overflow: hidden !important; height: 100% !important; touch-action: none; -webkit-overflow-scrolling: auto; }
.fullscreen-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh;
  height: 100dvh;
  z-index: 2147483000 !important;
  background: #f5f5f5;
  display: block;
  animation: fadeIn .3s ease;
  margin: 0;
  padding: 0;
}
.fullscreen-overlay iframe {
  width: 100vw;
  height: 100vh;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.fullscreen-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.5);
  background: rgba(124,58,237,.7);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 10001;
  animation: fsPulse 2s ease-in-out infinite;
}
@keyframes fsPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(124,58,237,.4), 0 0 0 0 rgba(124,58,237,.3); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(124,58,237,.6), 0 0 0 10px rgba(124,58,237,0); transform: scale(1.08); }
}
.fullscreen-close:hover {
  background: rgba(239,68,68,.85);
  border-color: rgba(239,68,68,.9);
  animation: none;
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(239,68,68,.5);
}

/* Fullscreen button on 3D scene */
.fullscreen-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid rgba(124,58,237,.2);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p5);
  transition: all .3s var(--ease-out-expo);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.fullscreen-btn:hover {
  background: var(--p4);
  color: white;
  border-color: var(--p4);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
@keyframes fsBtnShimmer {
  0%,100%{ box-shadow:0 4px 12px rgba(0,0,0,.08); }
  50%{ box-shadow:0 4px 20px rgba(124,58,237,.35); }
}
.fullscreen-btn{ animation: fsBtnShimmer 2s ease-in-out infinite; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--p4);
  color: var(--w);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(124,58,237,.3);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  transform: translateY(20px);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--p5);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(124,58,237,.4);
}

/* FS Hint bubble */
.fs-hint {
  display: none;
  visibility: hidden;
  position: absolute;
  top: -20px;
  left: -10px;
  transform: translateY(-100%);
  z-index: 25;
  opacity: 0;
  width: 20px;
  height: 20px;
}
.fs-hint.show {
  display: block;
  visibility: visible;
  opacity: 1;
}
.fs-hint button {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
}
.fs-hint button:hover { color: white; }
.fs-hint-arrow {
  position: absolute;
  top: -40px;
  left: 5px;
  width: 28px;
  height: 28px;
  animation: fsArrowBounce 1.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(124,58,237,.4));
}
@keyframes fsArrowBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =============================================
   SIDE MENU (close button)
   ============================================= */
.side-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--s2);
  background: var(--w);
  cursor: pointer;
  font-size: 22px;
  color: var(--s5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.side-menu-close:hover {
  background: var(--p00);
  color: var(--p5);
}
.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-menu-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--s7);
  text-decoration: none;
  border-bottom: 1px solid var(--s1);
  transition: all .3s;
}
.side-menu-nav a:hover {
  color: var(--p5);
  padding-left: 8px;
}

/* Стили кнопок Телеграм и Ютуб в форме обратной связи */

#popmake-133 {
    min-width: 360px;
    max-width: 540px;
    width: 100%;
}

.form-btn-wrap {
    display:flex; flex-wrap:wrap; margin-top: -16px; /* Обход gap: 16px; */ margin-bottom: 20px;
       }
.form-btn-wrap > * { /* Обход gap: 16px; */
    margin-top: 16px;
       }
.form-btn-wrap > *:not(:first-child) { /* Обход gap: 16px; */
     margin-left: 16px;
       }
.form-btn {
    display:inline-flex; align-items:center; height:50px; padding:0 20px 0 8px; border-radius:25px;
    text-decoration:none; font-family:Arial,sans-serif; font-size:15px; font-weight:700; border:none; cursor:pointer;
    min-width:180px; box-sizing:border-box;
      }
.form-btn > *:not(:first-child) { /* Обход gap: 12px; */
     margin-left: 12px;
       }
.form-btn-wrap .icon-circle {
   width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0;
     }
.btn-tg {
   background:#E8F6FF; color:#005B8A;
     }
.btn-tg .icon-circle {
   background:#29A8E0;
     }
.btn-yt {
   background:#FFF0F0; color:#8B0000;
     }
.btn-yt .icon-circle{ 
   background:#FF0000;
    }

/* ===== Contact Form 7 — стили для попапа ===== */

.wpcf7-form label {
    display: block; margin-bottom: 18px; font-size: 13px; font-weight: 700; color: #888; letter-spacing: 0.04em; text-transform: uppercase;
     }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea {
    display: block; width: 100%; margin-top: 6px; padding: 6px 10px; border: 1.5px solid #ddd; border-radius: 8px;
    font-size: 15px; color: #222; background: #f9f9f9; box-sizing: border-box; outline: none; transition: border-color 0.15s; font-family: inherit;
    max-width: 480px;
}
.wpcf7-form input[type="text"]:focus, .wpcf7-form input[type="email"]:focus, .wpcf7-form textarea:focus {
    border-color: #29A8E0; background: #fff;
      }
.wpcf7-form textarea {
    resize: vertical; min-height: 75px; max-height: 150px;
     }
.wpcf7-form input[type="submit"] {
    margin: 8px auto 0; width: 100%; padding: 12px; background: var(--p5); color: #fff; border: none;
    border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s;
    max-width: 300px; position: relative; display: block;
      }
.wpcf7-form input[type="submit"]:hover {
    background: var(--p7);
     }

/* Сообщения об ошибках */
.wpcf7-not-valid-tip {
    font-size: 12px; color: #e24b4a; margin-top: 4px; display: block;
    }    
.wpcf7-not-valid input, .wpcf7-not-valid textarea {
    border-color: #e24b4a !important;
}

/* Сообщение после отправки */
.wpcf7-response-output {
    margin: 0 !important; padding: 10px 14px !important; border-radius: 8px !important; font-size: 14px; 
       }

.wpcf7-mail-sent-ok {
    background: #eaf3de; color: #3b6d11;
      }

.wpcf7-mail-sent-ng, .wpcf7-aborted {
    background: #fcebeb; color: #a32d2d;
      }

/* =============================================
   RESPONSIVE
   ============================================= */
/* ─────────────────────────────────────────────
   TABLET  (≤ 1024px)
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 42px; }
  .tech-cards { grid-template-columns: 1fr; }
  .cert-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .srv-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-brand { 
      width: 100%; 
        }
  .calc-showcase { grid-template-columns: 1fr; padding: 40px; }
  nav { display: none; }
  .cursor-glow { display: none; }
  .opus-layout { grid-template-columns: 1fr; }
  .opus-right { max-height: 350px; }
  .opus-screen img { max-height: 350px; }
  .hero-visual { order: -1; }
  .hero-diagram { max-width: 400px; padding: 24px; }
  .about .section-title { font-size: 32px; }
  .about .section-desc { font-size: 14px; }
}

/* ─────────────────────────────────────────────
   MOBILE  (≤ 768px)
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Base ── */
  section { padding: 48px 16px; }
  .section-inner { width: 100%; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 13px; }
  .section-label { font-size: 10px; letter-spacing: 2px; }

  /* ── Header ── */
  .header-inner {
    padding: 0 16px;
    height: 64px;
  }
  .header.scrolled .header-inner { height: 56px; }
  .logo-text { font-size: 20px; }
  .logo-icon { width: 38px; height: 38px; border-radius: 11px; }
  .logo-icon svg { width: 14px; height: 16px; }
  .header-cta-contact { display: none; }
  .lang-switcher { margin-right: 4px; }
  .lang-btn { padding: 4px 7px; font-size: 10px; }
  .header-cta {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 10px;
  }
  .header-cta span { display: none; }

  /* ── Hero ── */
  .hero { padding: 80px 16px 40px; }
  .hero h1 { font-size: 28px; letter-spacing: -1px; }
  .hero-badge { font-size: 10px; padding: 6px 14px 5px; }
  
  .hero-buttons { margin-top: -10px; /* Обход gap: 10px; */ }
  .hero-buttons > * { /* Обход gap: 10px; */
    margin-top: 10px;
       }
  .hero-buttons > *:not(:first-child) { /* Обход gap: 10px; */
    margin-left: 10px;
   }

  .hero-buttons .btn { padding: 14px 24px; font-size: 14px; }
  .hero-buttons .btn-ghost { padding: 14px 24px; font-size: 14px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 32px; }
  .hero-stat { padding: 14px 8px; border-radius: 14px; }
  .hero-stat-val { font-size: 22px; }
  .hero-stat-label { font-size: 10px; }
  .hero-visual { order: -1; }
  .hero-diagram { max-width: 100%; padding: 16px; border-radius: 20px; }
  .hero-diagram iframe { border-radius: 14px; height: 280px !important; }

  /* ── About ── */
  .about .section-title { font-size: 28px; }
  .about .section-desc { font-size: 13px; line-height: 1.5; }
  .about-grid { gap: 32px; }
  .about-feature { padding: 6px 8px; }
  .af-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 11px; }
  .about-feature h4 { font-size: 14px; }
  .about-feature p { font-size: 12.5px; }
  .about-visual { max-height: 400px; border-radius: 20px; }

  /* ── Tech ── */
  .tech-cards { grid-template-columns: 1fr; gap: 12px; }
  .tech-card { padding: 20px 16px; border-radius: 18px; }
  .tech-card h3 { font-size: 15px; }
  .tech-card p { font-size: 12px; }

  /* ── Certifications ── */
  .cert-grid { grid-template-columns: 1fr; gap: 12px; }
  .cert-card { padding: 24px 20px; border-radius: 18px; }
  .cert-badge { width: 56px; height: 56px; font-size: 24px; }

  /* ── Software / OPUS ── */
  .calc-showcase { grid-template-columns: 1fr; padding: 20px 16px; border-radius: 20px; }
  .calc-info h3 { font-size: 20px; }
  .calc-info > p { font-size: 12px; }
  .calc-demo { padding: 16px 12px; border-radius: 14px; }
  .calc-demo-label { font-size: 12px; }
  .calc-demo-val { font-size: 12px; }
  .opus-tabs-bar > *:not(:first-child) { /* Обход gap: 4px; */
     margin-left: 4px;
       }
  .opus-tab { padding: 6px 10px; font-size: 10px; border-radius: 8px; }
  .opus-layout { grid-template-columns: 1fr; border-radius: 14px; }
  .opus-left { padding: 20px 16px; order: 2; }
  .opus-right { order: 1; max-height: 240px; }
  .opus-screen img { max-height: 240px; padding: 8px; }
  .opus-fl-item strong { font-size: 14px; }
  .opus-fl-item span:last-child { font-size: 12px; }
  .opus-desc-panel h4 { font-size: 15px; }
  .opus-desc-panel p { font-size: 13px; }
  .opus-desc-extras { font-size: 12px; }

  /* ── Services ── */
  .srv-grid { grid-template-columns: 1fr; gap: 12px; }
  .srv-card { padding: 20px 16px; border-radius: 18px; }
  .srv-icon { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
  .srv-card h3 { font-size: 16px; }
  .srv-card > p { font-size: 12px; }
  .srv-item { font-size: 13px; }
  .srv-price { font-size: 24px; }

  /* ── Timeline ── */
  .timeline-section { padding: 32px 16px; }
  .htl-legend { 
     font-size: 10px; flex-wrap: wrap;
       }
  .htl-legend > *:not(:first-child) { /* Обход gap: 12px; */
     margin-left: 12px;
       }
  .htl-slider-area { padding:0 44px; }
  .htl-slider { 
      overflow-x: auto; -webkit-overflow-scrolling: touch;
        }
  .htl-arrow { width: 36px; height: 36px; font-size: 18px; pointer-events: none;  }
  .htl-arrow:disabled { opacity: 1.0; }
  .htl-card { padding: 10px 8px; border-radius: 12px; }
  .htl-title { font-size: 10px; }
  .htl-date { font-size: 8px; }
  .htl-desc { font-size: 9px; -webkit-line-clamp: 2; }
  .htl-tag { font-size: 7px; padding: 2px 5px; }

  /* Timeline tooltip — mobile centered */
  .htl-tooltip {
    position: fixed;
    top: auto !important;
    bottom: 0;
    left: 0 !important;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 32px;
    box-shadow: 0 -10px 40px rgba(45,16,84,.2);
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .htl-tooltip-title { font-size: 18px; }
  .htl-tooltip-body { font-size: 14px; }
  .htl-tooltip-close { top: 12px; right: 16px; width: 32px; height: 32px; font-size: 16px; }

  /* ── Portfolio ── */
  .port-grid { grid-template-columns: 1fr; gap: 12px; }
  .port-card { border-radius: 18px; }
  .port-thumb { height: 120px; font-size: 32px; }
  .port-tag { font-size: 10px; padding: 4px 12px; top: 12px; left: 12px; }
  .port-body { padding: 14px 16px; }
  .port-body h4 { font-size: 15px; }
  .port-body p { font-size: 12px; }

  /* ── Team ── */
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .team-card { padding: 24px 18px; border-radius: 18px; }
  .team-avatar { width: 72px; height: 72px; font-size: 28px; }
  .team-card h4 { font-size: 15px; }

  /* ── CTA ── */
  .cta-section { padding: 48px 16px; }
  .cta-section h2 { font-size: 26px; }
  .cta-desc { font-size: 13px; }
  .cta-buttons { align-items: stretch; }
  .cta-buttons .btn-light,
  .cta-buttons .btn { text-align: center; justify-content: center; font-size: 14px; padding: 14px 24px; }

  /* ── Footer ── */
  .footer { padding: 36px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; margin-top: -28px; margin-left: -28px; }
  .footer-grid > * { /* Обход gap: 48px; */
     margin-top: 28px;
     margin-left: 28px;
       }

  .footer-brand { font-size: 13px; }
  .footer h5 { font-size: 13px; margin-bottom: 12px; }
  .footer a { font-size: 13px; }
  .footer-line {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 11px;
    padding-top: 20px;
  }

  /* ── Fullscreen 3D overlay ── */
  .fullscreen-overlay iframe {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .fullscreen-close {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 12px;
  }

  /* ── Side menu ── */
  .side-menu { width: 100vw; max-width: 100vw; padding: 70px 24px 32px; }
  .side-menu-close { top: 18px; right: 18px; }
  .side-menu-nav a { font-size: 17px; padding: 16px 0; }

  /* ── FS hint & mouse hint ── */
  .fs-hint { display: none !important; }
  .fullscreen-overlay .mouse-hint { display: none !important; }
  .fullscreen-overlay #fsLoader div:first-child { width: 44px !important; height: 44px !important; }
  .fullscreen-overlay #fsLoader div:nth-child(2) { font-size: 13px !important; }

  /* ── Buttons global ── */
  .btn { padding: 14px 24px; font-size: 14px; border-radius: 12px; }
  .btn-light { padding: 14px 24px; font-size: 14px; border-radius: 12px; }


  .pum-theme-121 .pum-title, .pum-theme-enterprise-blue .pum-title {
    font-size: 20px !important; line-height: 28px !important; padding-right: 10px;
      }
  .pum-container .pum-content>:first-child {
    margin-top: -16px !important;
      }
  .wpcf7-form textarea {
     min-height: 60px; max-height: 120px;
     }
}

/* ─────────────────────────────────────────────
   SMALL MOBILE  (≤ 480px)
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hero-stat { padding: 10px 6px; }
  .hero-stat-val { font-size: 18px; }
  .hero-stat-label { font-size: 9px; }
  .section-title { font-size: 22px; }
  .section-desc { font-size: 12px; }
  .opus-tabs-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .opus-tab { white-space: nowrap; flex-shrink: 0; }
  .htl-arrow { width: 32px; height: 32px; font-size: 16px; }
  .htl-slider-area { padding:0 36px; }
  .cta-section h2 { font-size: 22px; }
  .calc-showcase { padding: 16px 12px; }
  .calc-info h3 { font-size: 18px; }
  .port-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 18px; }
  .logo-icon { width: 34px; height: 34px; border-radius: 10px; margin-right: 10px;  }
  .form-btn-wrap { justify-content: flex-end;  }
}

/* ─────────────────────────────────────────────
   OVER SMALL MOBILE  (≤ 420px)
   ───────────────────────────────────────────── */

@media (max-width: 400px){

.hero-buttons > *:not(:first-child) {
        margin-left: 0px;
    }
}

/* ─────────────────────────────────────────────
   TOUCH DEVICE OVERRIDES
   ───────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none !important; }
  .tech-card:hover { transform: none; }
  .srv-card:hover { transform: none; }
  .port-card:hover { transform: none; }
  .cert-card:hover { transform: none; }
  .team-card:hover { transform: none; }
  .about-feature:hover { transform: none; background: transparent; border-color: transparent; box-shadow: none; }
  .hero-stat:hover { transform: none; }
  .calc-demo:hover { transform: none; }
  .about-visual:hover { transform: none; }
}

/* ─────────────────────────────────────────────
   SAFE AREA (iPhone notch / Dynamic Island)
   ───────────────────────────────────────────── */
@supports (padding: env(safe-area-inset-top)) {
  .header {
    padding-top: env(safe-area-inset-top);
  }
  .footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .scroll-top {
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: calc(24px + env(safe-area-inset-left));
  }
  .fullscreen-overlay iframe {
    height: 100vh;
    height: 100dvh;
  }
  /* Закрытие × — теперь сверху справа на любом размере экрана.
     Раньше тут было bottom:calc(...), что перекрывало мобильную правку
     и кнопка прятала под Safari-баром iPhone. */
  .fullscreen-close {
    top: calc(14px + env(safe-area-inset-top));
    right: calc(14px + env(safe-area-inset-right));
    bottom: auto;
  }
  .side-menu {
    padding-top: calc(70px + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ─────────────────────────────────────────────
   DYNAMIC VIEWPORT HEIGHT (mobile browsers)
   ───────────────────────────────────────────── */
@supports (height: 100dvh) {
  .fullscreen-overlay,
  .fullscreen-overlay iframe {
    height: 100dvh;
  }
}