/* ============================================
   ПЕРЕМЕННЫЕ ЦВЕТОВ — светлая и тёмная темы
   ============================================ */

[data-theme="light"]{
  color-scheme:light;
  --bg:#ffffff;
  --bg2:#f5f8ff;
  --card:#ffffff;
  --ink:#0a1530;
  --ink2:#3d4a68;
  --ink3:#8593b0;
  --line:#e3e9f7;
  --blue:#22539C;
  --blue-d:#163d7a;
  --blue-l:#e8effc;
  --blue-m:#b8d0f0;
  --orange:#FF6500;
  --orange-d:#cc4f00;
  --orange-l:#fff0e6;
  --orange-m:#ffc89a;
  --sh-sm:0 2px 14px rgba(34,83,156,0.06);
  --sh:0 6px 32px rgba(34,83,156,0.10);
  --sh-lg:0 24px 64px rgba(34,83,156,0.16);
  --nav:rgba(255,255,255,0.82);
}

[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0b1020;
  --bg2:#141a30;
  --card:#1a2140;
  --ink:#f0f4ff;
  --ink2:#a8b5d4;
  --ink3:#67739a;
  --line:#27304a;
  --blue:#22539C;
  --blue-d:#163d7a;
  --blue-l:#133972;
  --blue-m:#2a5499;
  --orange:#FF6500;
  --orange-d:#cc4f00;
  --orange-l:#54331a;
  --orange-m:#74471f;
  --sh-sm:0 2px 14px rgba(0,0,0,0.4);
  --sh:0 6px 32px rgba(0,0,0,0.5);
  --sh-lg:0 24px 64px rgba(0,0,0,0.6);
  --nav:rgba(11,16,32,0.85);
}

/* ============================================
   БАЗОВЫЙ СБРОС И ТИПОГРАФИКА
   ============================================ */

*,*::before,*::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
  overflow-x:clip;
}

body{
  font-family:'Manrope',sans-serif;
  background:transparent;
  color:var(--ink);
  overflow-x:hidden;
  transition:color .3s;
  line-height:1.55;
}

h1,h2,h3,h4{
  font-family:'Unbounded',sans-serif;
  letter-spacing:-0.02em;
}

a{
  text-decoration:none;
  color:inherit;
}

button{
  font-family:inherit;
  border:none;
  background:none;
  cursor:pointer;
}

/* Тематический скроллбар — для всей страницы и прокручиваемых блоков.
   Корректен в обеих темах (Firefox + WebKit). */
*{
  scrollbar-width:thin;
  scrollbar-color:var(--blue-m) transparent;
}
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:var(--blue-m); border-radius:10px; }
::-webkit-scrollbar-thumb:hover{ background:var(--blue); }

/* ============================================
   ФОНОВАЯ КОМПОЗИЦИЯ (paper-cut)
   ============================================ */

.global-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
  --split:0;
}

.bg-canvas{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,#eef3fb 0%,#e1eaf8 50%,#eaf0fa 100%);
}

[data-theme="dark"] .bg-canvas{
  background:linear-gradient(180deg,#0a0f24 0%,#0d1330 50%,#0a0e22 100%);
}

.bg-hero-art{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:120vh;
  min-height:1000px;
  pointer-events:none;
}

.bg-hero-art svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.bg-side-left,
.bg-side-right,
.bg-side-center{
  transform-origin:center;
  will-change:transform,opacity;
  transition:transform 1s cubic-bezier(.65,0,.35,1),opacity 1s ease-out;
}

/* Слои фигур разъезжаются с разной скоростью */
.layer-blue,
.layer-orange,
.layer-white{
  transform-origin:center;
  will-change:transform;
  transition:transform 1s cubic-bezier(.65,0,.35,1);
}

/* Цвет фигур — исходные брендовые, затемнённые уходом в чёрный,
   чтобы не сливались с фоном. CSS fill переопределяет fill-атрибуты в SVG */
.layer-blue use{
  fill:#1f4c92;
}
.layer-orange use{
  fill:#e25a00;
}
.layer-white use{
  fill:#f4f6fb;
}

/* Синие — уходят дальше всех */
.bg-side-left .layer-blue{
  transform:translate3d(calc(var(--split,0) * -38vw),0,0);
}
.bg-side-right .layer-blue{
  transform:translate3d(calc(var(--split,0) * 38vw),0,0);
}

/* Оранжевые — уходят на 60% от синих */
.bg-side-left .layer-orange{
  transform:translate3d(calc(var(--split,0) * -23vw),0,0);
}
.bg-side-right .layer-orange{
  transform:translate3d(calc(var(--split,0) * 23vw),0,0);
}

/* Белые — уходят на 40%, видны по краям */
.bg-side-left .layer-white{
  transform:translate3d(calc(var(--split,0) * -15vw),0,0);
}
.bg-side-right .layer-white{
  transform:translate3d(calc(var(--split,0) * 15vw),0,0);
}

.bg-side-center{
  opacity:calc(1 - var(--split,0));
  transform:scale(calc(1 - var(--split,0) * 0.15));
}

.bg-blob{
  transform-origin:center;
  will-change:transform;
}

.bg-rest{
  position:absolute;
  left:0;
  right:0;
  top:120vh;
  bottom:0;
  overflow:hidden;
}

/* Затемнение поверх фигур в hero — опускается при разъезде */
.bg-tint{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:120vh;
  background:rgba(7,10,22,0.11);
  opacity:calc(1 - var(--split,0));
  transition:opacity 1s cubic-bezier(.65,0,.35,1);
  pointer-events:none;
}

[data-theme="dark"] .bg-tint{
  background:rgba(0,0,0,0.05);
}

.bg-rest::before,
.bg-rest::after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter:blur(80px);
  pointer-events:none;
}

.bg-rest::before{
  top:10%;
  left:-8%;
  width:480px;
  height:480px;
  background:radial-gradient(circle,rgba(34,83,156,0.18) 0%,rgba(34,83,156,0) 70%);
}

.bg-rest::after{
  top:55%;
  right:-6%;
  width:520px;
  height:520px;
  background:radial-gradient(circle,rgba(255,101,0,0.16) 0%,rgba(255,101,0,0) 70%);
}

.bg-rest-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  pointer-events:none;
}

.bg-rest-glow.g1{
  top:30%;
  right:18%;
  width:360px;
  height:360px;
  background:radial-gradient(circle,rgba(34,83,156,0.15) 0%,rgba(34,83,156,0) 70%);
}

.bg-rest-glow.g2{
  top:75%;
  left:25%;
  width:400px;
  height:400px;
  background:radial-gradient(circle,rgba(255,101,0,0.13) 0%,rgba(255,101,0,0) 70%);
}

[data-theme="dark"] .bg-rest::before{
  background:radial-gradient(circle,rgba(58,123,213,0.25) 0%,rgba(58,123,213,0) 70%);
}

[data-theme="dark"] .bg-rest::after{
  background:radial-gradient(circle,rgba(255,140,60,0.22) 0%,rgba(255,140,60,0) 70%);
}

[data-theme="dark"] .bg-hero-art{
  opacity:0.85;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */

.nav{
  position:sticky;
  top:0;
  z-index:300;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}

.nav-in{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  position:relative;
}

/* ============================================
   ЛОГОТИП
   Иконка + текст образуют единый блок
   Главное название: «Аддитивное производство»
   Над ним мелко: «АУ «СПК»» — учредитель
   ============================================ */

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  cursor:default; /* Лого не кликабельный */
  user-select:none;
}

.logo-mark{
  flex-shrink:0;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  pointer-events:none; /* Лого — визуальный элемент, не кликабельный */
}

/* ============================================
   СТИЛИ SVG-ЛОГОТИПА
   Цвета частей задаются классами — это позволяет
   переопределять их в других местах (футер и т.д.).
   ============================================ */

.logo-svg{
  width:100%;
  height:100%;
  display:block;
}

/* Корпус, конус и кончик сопла — единый фирменный синий, без разделения */
.logo-svg .logo-body,
.logo-svg .logo-cone{
  fill:var(--blue);
}

/* Капля и слои печати — фирменный оранжевый */
.logo-svg .logo-accent{
  fill:var(--orange);
}

/* Прозрачность слоёв — эффект «исчезающей пирамиды» */
.logo-svg .logo-layer-1{ opacity:0.95; }
.logo-svg .logo-layer-2{ opacity:0.7;  }
.logo-svg .logo-layer-3{ opacity:0.5;  }
.logo-svg .logo-layer-4{ opacity:0.3;  }

.logo-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  line-height:1;
  white-space:nowrap;
}

/* Главное «СПК» — крупное, синее */
.logo-top{
  font-family:'Unbounded',sans-serif;
  font-size:24px;
  font-weight:800;
  color:var(--blue);
  letter-spacing:-0.01em;
  line-height:1;
}

/* Подпись «Аддитивное производство» — оранжевое, в одну строку */
.logo-main{
  font-family:'Unbounded',sans-serif;
  font-size:13px;
  font-weight:700;
  color:var(--orange);
  letter-spacing:0.01em;
  line-height:1;
}

/* Меню — по центру окна */
.nav-menu{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  gap:32px;
  list-style:none;
}

.nav-menu a{
  font-size:14px;
  font-weight:600;
  color:var(--ink3);
  padding:6px 0;
  transition:color .2s ease;
  letter-spacing:-0.005em;
  position:relative;
}

/* Активный индикатор — линия внизу */
.nav-menu a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:0;
  height:2px;
  background:var(--orange);
  border-radius:2px;
  transform:translateX(-50%);
  transition:width .25s ease;
}

/* Наведение — оранжевый текст + оранжевая линия */
.nav-menu a:hover{
  color:var(--orange);
}

.nav-menu a:hover::after{
  width:100%;
  background:var(--orange);
}

/* Активный пункт — синий текст + синяя линия */
.nav-menu a.on{
  color:var(--blue);
  font-weight:700;
}

.nav-menu a.on::after{
  width:100%;
  background:var(--blue);
}

/* Кнопка-стрелочка раскрывания меню — видна только на мобильных */
.nav-toggle{
  display:none;
  width:32px;
  height:32px;
  border-radius:8px;
  background:transparent;
  color:var(--blue);
  font-size:16px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  transition:transform .25s ease,color .2s;
  margin-left:-8px;
}

.nav-toggle:hover{
  color:var(--orange);
}

.nav-toggle.active{
  transform:rotate(180deg);
}

/* SVG-шеврон внутри стрелочки — толщина линии настраивается через stroke-width */
.nav-toggle svg{
  width:60%;
  height:60%;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
}

/* Мобильная выпадашка — по умолчанию скрыта (показывается только на экранах ≤640px) */
.nav-dropdown{
  display:none;
}

/* Правая часть навигации */
.nav-r{
  display:flex;
  align-items:center;
  gap:10px;
}

.theme-btn{
  width:44px;
  height:44px;
  border-radius:10px;
  border:none;
  box-shadow:inset 0 0 0 1.5px var(--blue);
  background:var(--bg);
  color:var(--blue);
  font-size:16px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .25s;
}

.theme-btn:hover{
  border-color:var(--blue);
  color:var(--blue);
  background:var(--blue-l);
  transform:rotate(20deg);
}

[data-theme="dark"] .theme-btn{
  box-shadow:inset 0 0 0 1.5px var(--orange);
  color:var(--orange);
}

[data-theme="dark"] .theme-btn:hover{
  border-color:var(--orange);
  color:var(--orange);
  background:rgba(255,101,0,0.12);
}

/* ============================================
   СЕНСОРНЫЕ УСТРОЙСТВА: убираем «залипающий» ховер
   На тач-экранах :hover остаётся активным после тапа, из-за чего
   иконки/карточки остаются повёрнутыми или смещёнными. Отключаем
   декоративные трансформации при наведении (для мыши они работают).
   ============================================ */
@media (hover: none){
  .theme-btn:hover,
  .btn-primary:hover,
  .btn-orange:hover,
  .btn-enter:hover,
  .btn-reg:hover{ transform:none; }
  .btn-primary:hover .btn-arrow{ transform:none; }
  .st-card:hover,
  .svc-card:hover,
  .pc:hover,
  .cta-card:hover,
  .cta-cc:hover,
  .f-soc:hover,
  .step-c:hover,
  .step-item:hover .step-card{ transform:none; }
  .wk-tile:hover,
  .wk-ord-row:hover,
  .wk-quick-btn:hover,
  .wk-btn-primary:hover,
  .cab-btn:hover,
  .cab-ord-row:hover,
  .cab-notif:hover{ transform:none; }
}

.btn-enter{
  background:var(--orange);
  color:#fff;
  padding:11px 24px;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
  transition:all .25s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

/* На десктопе/планшете — иконка в кнопке «Войти» скрыта */
.btn-enter i{
  display:none;
  font-size:20px;
}

.btn-enter:hover{
  background:#eb5c00;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn-primary{
  background:var(--blue);
  color:#fff;
  padding:16px 30px;
  border-radius:12px;
  font-size:15px;
  font-weight:700;
  transition:all .25s;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.btn-primary:hover{
  background:var(--blue-d);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 12px 32px rgba(34,83,156,0.32);
}

.btn-secondary{
  background:transparent;
  color:var(--ink);
  padding:16px 26px;
  border-radius:12px;
  font-size:15px;
  font-weight:700;
  border:1.5px solid var(--line);
  transition:all .25s;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.btn-secondary:hover{
  border-color:var(--blue);
  background:var(--blue-l);
  color:var(--blue);
}

.btn-ghost{
  background:transparent;
  color:var(--ink);
  border:1.5px solid var(--line);
  padding:14px 22px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  transition:all .25s;
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.btn-ghost:hover{
  border-color:var(--blue);
  background:var(--blue-l);
  color:var(--blue);
}

.btn-orange{
  background:var(--orange);
  color:#fff;
  padding:18px 34px;
  border-radius:12px;
  font-size:16px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  gap:12px;
  transition:all .25s;
  box-shadow:0 8px 24px rgba(255,101,0,0.35);
}

.btn-orange:hover{
  background:#eb5c00;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(255,101,0,0.45);
}

/* ============================================
   HERO (главный экран)
   ============================================ */

.hero{
  position:relative;
  overflow:hidden;
  padding:72px 0 20px;
}

.hero-in{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:64px;
  align-items:center;
  position:relative;
  z-index:2;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:var(--card);
  border:1.5px solid var(--line);
  font-size:15px;
  font-weight:700;
  padding:10px 18px 10px 10px;
  border-radius:36px;
  margin-bottom:28px;
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
  animation:fadeIn .6s ease both;
}

.eyebrow-tag{
  background:var(--orange);
  color:#fff;
  padding:6px 14px;
  border-radius:24px;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.eyebrow-text{
  color:var(--blue);
}

.hero h1{
  font-size:clamp(40px,5.5vw,76px);
  font-weight:800;
  line-height:1;
  color:#fff;
  margin-bottom:24px;
  letter-spacing:-0.035em;
  text-shadow:0 6px 16px rgba(0,0,0,0.12);
  animation:fadeUp .8s ease .1s both;
}

.hero h1 .ln{
  display:block;
}

.hero-desc{
  font-size:17px;
  font-weight:400;
  color:rgba(255,255,255,0.85);
  line-height:1.6;
  margin-bottom:36px;
  max-width:580px;
  text-shadow:0 6px 16px rgba(0,0,0,0.12);
  animation:fadeUp .8s ease .2s both;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  animation:fadeUp .8s ease .3s both;
  align-items:center;
}

.btn-arrow{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  transition:transform .2s;
}

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

/* Композиция справа в hero */
.hero-visual{
  position:relative;
  height:520px;
  animation:fadeUp .9s ease .4s both;
}

/* SVG с кольцами вокруг текста */
.hv-rings{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:480px;
  height:480px;
  z-index:1;
  overflow:visible;
}

.hv-rings .ring{
  transform-origin:center;
  transform-box:fill-box;
}

.hv-shape{
  position:absolute;
}

.hv-circle-big{
  width:340px;
  height:340px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--blue) 0%,#3a7bd5 100%);
  top:60px;
  left:50%;
  transform:translateX(-50%);
  box-shadow:0 30px 80px rgba(34,83,156,0.35);
  animation:float 7s ease-in-out infinite;
}

.hv-ring{
  width:420px;
  height:420px;
  border-radius:50%;
  border:1.5px dashed rgba(34,83,156,0.32);
  top:18px;
  left:50%;
  transform:translateX(-50%);
  animation:spinSlow 50s linear infinite;
}

.hv-ring-inner{
  width:260px;
  height:260px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,0.25);
  top:100px;
  left:50%;
  transform:translateX(-50%);
  animation:spinRev 30s linear infinite;
}

.hv-rect-orange{
  width:120px;
  height:120px;
  border-radius:24px;
  background:linear-gradient(135deg,var(--orange),#ff9040);
  top:30px;
  right:20px;
  box-shadow:0 18px 40px rgba(255,101,0,0.4);
  animation:shapeFloat 6s ease-in-out infinite;
  transform:rotate(15deg);
}

.hv-rect-blue{
  width:80px;
  height:80px;
  border-radius:18px;
  background:var(--blue-l);
  border:2px solid var(--blue-m);
  bottom:60px;
  left:20px;
  animation:shapeFloat 8s ease-in-out infinite reverse;
  transform:rotate(-12deg);
}

.hv-tri{
  width:0;
  height:0;
  border-left:32px solid transparent;
  border-right:32px solid transparent;
  border-bottom:54px solid var(--orange);
  top:240px;
  left:30px;
  filter:drop-shadow(0 14px 24px rgba(255,101,0,0.3));
  animation:shapeFloat 7s ease-in-out infinite;
}

.hv-dot-grid{
  position:absolute;
  top:50%;
  right:30px;
  transform:translateY(-50%);
  display:grid;
  grid-template-columns:repeat(4,8px);
  gap:14px;
  animation:float 9s ease-in-out infinite;
}

.hv-dot-grid span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--blue);
  opacity:0.5;
}

.hv-dot-grid span:nth-child(odd){
  background:var(--orange);
}

.hv-mono{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:5;
  font-family:'Unbounded',sans-serif;
  font-weight:800;
  font-size:96px;
  line-height:1;
  color:#fff;
  letter-spacing:-0.05em;
  text-align:center;
  animation:fadeIn 1s ease 0.5s both;
}

/* Подпись выведена из потока (position:absolute), чтобы крупное «СПК»
   стояло строго по центру колец, а подпись висела ровно под ним. */
.hv-mono small{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  margin-top:6px;
  font-size:18px;
  font-weight:800;
  letter-spacing:0.05em;
  text-align:center;
  color:var(--orange);
  white-space:nowrap;
}

/* ============================================
   ОБЩИЕ СЕКЦИИ
   ============================================ */

.sec{
  padding:120px 0;
  position:relative;
  overflow:hidden;
}

.w{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
  position:relative;
  z-index:2;
}

.sec-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:64px;
  gap:32px;
  flex-wrap:wrap;
}

.sec-head-l{
  max-width:680px;
}

.kicker{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:22px;
}

.kicker .num{
  font-family:'Unbounded',sans-serif;
  font-weight:800;
  font-size:64px;
  line-height:0.9;
  letter-spacing:-0.04em;
  color:var(--blue);
  -webkit-text-stroke:0;
  text-shadow:0 6px 16px rgba(0,0,0,0.12);
}

.kicker.orange .num{
  color:var(--orange);
}

.kicker.blue .num{
  color:var(--blue);
}

.kicker .lbl{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-family:'Manrope',sans-serif;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:var(--ink2);
}

.kicker.orange .lbl::before,
.kicker.blue .lbl::before{
  content:"";
  width:32px;
  height:1.5px;
  background:currentColor;
  display:inline-block;
  flex-shrink:0;
}

.kicker.orange .lbl{
  color:var(--orange);
}

.kicker.blue .lbl{
  color:var(--blue);
}

.s-title{
  font-size:clamp(34px,3.6vw,52px);
  font-weight:800;
  color:var(--blue);
  line-height:1.05;
  letter-spacing:-0.03em;
  margin-bottom:14px;
  text-shadow:0 6px 16px rgba(0,0,0,0.12);
}

.s-sub{
  font-size:16px;
  color:var(--ink2);
  line-height:1.65;
  max-width:560px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media(max-width:1440px){
  .w,
  .nav-in,
  .hero-in{
    padding-left:28px;
    padding-right:28px;
  }
}

@media(max-width:1180px){
  .hero-in{
    gap:48px;
  }
  .hero-visual{
    height:460px;
  }
  .sec{
    padding:96px 0;
  }
}

@media(max-width:1024px){
  .hero-in{
    grid-template-columns:1fr;
    gap:36px;
  }
  .hero-visual{
    height:440px;
    margin-top:8px;
    order:1;
  }
  .hero-in > div:first-child{
    order:2;
  }
  .kicker .num{
    font-size:54px;
  }
  /* На планшете и меньше — только иконка */
  .logo-text{display:none;}
  .logo-mark{width:38px;height:38px;}
  /* Меню выравниваем влево после лого */
  .nav-menu{
    position:static;
    transform:none;
    margin-right:auto;
    gap:24px;
  }
  /* Фоновые фигуры: на планшете увеличиваем vw (SVG масштабируется иначе) */
  .bg-side-left .layer-blue{
    transform:translate3d(calc(var(--split,0) * -45vw),0,0);
  }
  .bg-side-right .layer-blue{
    transform:translate3d(calc(var(--split,0) * 45vw),0,0);
  }
  .bg-side-left .layer-orange{
    transform:translate3d(calc(var(--split,0) * -27vw),0,0);
  }
  .bg-side-right .layer-orange{
    transform:translate3d(calc(var(--split,0) * 27vw),0,0);
  }
  .bg-side-left .layer-white{
    transform:translate3d(calc(var(--split,0) * -18vw),0,0);
  }
  .bg-side-right .layer-white{
    transform:translate3d(calc(var(--split,0) * 18vw),0,0);
  }
}

@media(max-width:820px){
  .nav-in{
    height:66px;
  }
  .hero{
    padding:48px 0 40px;
  }
  .hero h1{
    font-size:clamp(40px,9vw,60px);
  }
  .hero-visual{
    height:380px;
  }
  .sec{
    padding:72px 0;
  }
  .sec-head{
    margin-bottom:44px;
  }
  .s-title{
    font-size:clamp(28px,5vw,42px);
  }
  .kicker .num{
    font-size:46px;
  }
  /* Лого остаётся только иконкой */
  .logo-mark{width:36px;height:36px;}
}

@media(max-width:640px){
  .sec{
    padding:64px 0;
  }
  .hero{
    padding:32px 0 40px;
  }
  .hero-visual{
    height:380px;
  }
  .hv-rings{
    width:380px;
    height:380px;
  }
  .w,
  .nav-in,
  .hero-in{
    padding-left:20px;
    padding-right:20px;
  }
  .kicker .num{
    font-size:42px;
  }
  .s-title{
    font-size:28px;
  }
  /* Фоновые фигуры на мобильном: чуть меньше чем планшет, но всё равно большой vw */
  .bg-side-left .layer-blue{
    transform:translate3d(calc(var(--split,0) * -53vw),0,0);
  }
  .bg-side-right .layer-blue{
    transform:translate3d(calc(var(--split,0) * 61vw),0,0);
  }
  .bg-side-left .layer-orange{
    transform:translate3d(calc(var(--split,0) * -34vw),0,0);
  }
  .bg-side-right .layer-orange{
    transform:translate3d(calc(var(--split,0) * 38vw),0,0);
  }
  .bg-side-left .layer-white{
    transform:translate3d(calc(var(--split,0) * -24vw),0,0);
  }
  .bg-side-right .layer-white{
    transform:translate3d(calc(var(--split,0) * 26vw),0,0);
  }

  /* ============================================
     МОБИЛЬНАЯ НАВИГАЦИЯ
     Лого → Активный раздел → Стрелка [пустота] Тема Войти
     ============================================ */

  /* Убираем промежутки между элементами nav-in */
  .nav-in{
    gap:0;
  }

  /* Иконка лого крупнее */
  .logo-mark{
    width:44px;
    height:44px;
  }

  /* Меню — прилипает к логотипу */
  .nav-menu{
    position:static;
    transform:none;
    margin:0 0 0 14px;
    padding:0;
    gap:0;
    flex-direction:row;
    overflow:visible;
    max-width:none;
    flex:0 0 auto;
  }

  /* Скрываем все пункты, кроме активного */
  .nav-menu li{
    display:none;
  }
  .nav-menu li:has(a.on){
    display:block;
  }

  /* Название активного раздела — крупнее */
  .nav-menu a{
    font-size:18px;
    font-weight:700;
  }

  /* Стрелка — вплотную к названию */
  .nav-toggle{
    display:flex;
    margin:0 0 0 4px;
    flex:0 0 auto;
  }

  /* Правый блок — прижат вправо пустым пространством */
  .nav-r{
    flex:0 0 auto;
    margin-left:auto;
  }

  /* Когда меню открыто — выпадает вниз (неактивные разделы) */
  .nav-dropdown{
    display:none;
    position:absolute;
    top:calc(100% + 6px);
    left:var(--dropdown-left,20px);
    right:var(--dropdown-right,20px);
    min-width:160px;
    flex-direction:column;
    padding:10px 12px 14px;
    background:var(--bg);
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:0 14px 36px rgba(34,83,156,0.18);
  }
  .nav-dropdown.open{
    display:flex;
  }
  .nav-dropdown a{
    display:inline-block;
    align-self:flex-start;
    position:relative;
    padding:10px 0;
    font-size:17px;
    font-weight:600;
    color:var(--ink3);
    transition:color .2s ease;
  }
  /* Подчёркивание — растёт слева направо при наведении */
  .nav-dropdown a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:4px;
    width:0;
    height:2px;
    background:var(--orange);
    border-radius:2px;
    transition:width .25s ease;
  }
  .nav-dropdown a:hover{
    color:var(--orange);
  }
  .nav-dropdown a:hover::after{
    width:100%;
  }

  /* Стрелка побольше */
  .nav-toggle{
    width:36px;
    height:36px;
    font-size:18px;
  }

  /* Кнопка «Войти» → квадратная иконка профиля */
  .btn-enter{
    width:44px;
    height:44px;
    padding:0;
  }
  .btn-enter i{
    display:block;
  }
  .btn-enter-text{
    display:none;
  }
}

@media(max-width:420px){
  .hero h1{
    font-size:42px;
  }
  .hero-visual{
    height:340px;
  }
  .hv-rings{
    width:330px;
    height:330px;
  }
  .hv-circle-big{
    width:260px;
    height:260px;
  }
  .hv-ring{
    width:340px;
    height:340px;
  }
  .hv-ring-inner{
    width:200px;
    height:200px;
  }
  .hv-mono{
    font-size:72px;
  }
  .btn-primary{
    padding:14px 24px;
    font-size:14px;
  }
}
