/* ============================================================
   БАЗА
   ============================================================ */
   body {
    margin: 0;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  *{ box-sizing: border-box; }

  h1{
    /* text-align:center; */
    font-size:20px;
    font-weight:600;
    color:var(--muted);
    margin:0 0 6px;
  }
  p.sub{
    text-align:center;
    color:var(--muted);
    font-size:13px;
    margin:0 0 36px;
  }

  
  /* ============================================================
     HERO
     ============================================================ */
  
  :root{
    --bg-deep:#0b0f17;
    --glow:#4fd6ff;
    --glow-soft:#1c85e0;
    /* Цвет, в который должен "дотухать" hero снизу —
       подставьте сюда реальное значение --color-bg вашей темы */
    --hero-fade-to: #05070c;
    /* ---------- Единые токены для всех кнопок-CTA ---------- */
  --btn-font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --btn-padding-y: clamp(0.7rem, 1.6vw, 0.875rem);
  --btn-padding-x: clamp(1rem, 2.5vw, 1.5rem);
  --btn-radius: 10px;
  --btn-min-height: 48px;   /* минимальный тач-таргет, важно для мобильных */
  }
  
  .hero{
    position: relative;
    width: 100%;
    min-height: clamp(420px, calc(280px + 20vw), 640px);
    overflow: hidden;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
    -webkit-mask-image: linear-gradient(to top, transparent 0, black clamp(60px, 8vw, 140px));
    mask-image: linear-gradient(to top, transparent 0, black clamp(60px, 8vw, 140px));
  }
  
  .hero__brand{
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 16px);
    min-width: 0;              /* разрешаем детям сжиматься меньше content-size */
    flex-shrink: 1;
  }
  
  .hero__logo{
    position: relative;
    color: #eaf6ff;
    font: 700 15px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0.06em;
    padding-right: clamp(10px, 1.5vw, 16px);
    font-size: clamp(12px, 3.2vw, 15px);
    white-space: nowrap;
  }
  /* Разделитель как псевдоэлемент у логотипа — не нужен лишний тег в разметке */
  .hero__logo::after{
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.18);
  }
  
  .hero__domain{
    color: var(--glow);
    text-decoration: none;
    font: 600 12px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    padding: 6px 12px;
    border: 1px solid rgba(79,214,255,0.35);
    border-radius: 999px;
    background: rgba(79,214,255,0.08);
    transition: background .2s ease, border-color .2s ease;
    font-size: clamp(10px, 2.6vw, 12.5px);
    white-space: nowrap;
  }
  .hero__domain:hover{
    background: rgba(79,214,255,0.16);
    border-color: rgba(79,214,255,0.6);
  }
  
  /* ---------- Видео-фон hero ---------- */
  .hero__video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    z-index: 0;
    filter: saturate(1.05);
  }
  
  /* ---------- Равномерное затемнение ---------- */
  .hero__dark{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(2, 6, 14, 0.38);
  }
  
  /* ---------- Пульсирующее свечение поверх видео ---------- */
  /* .hero__glow{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 30% 55%, rgba(79,214,255,0.16), transparent 55%),
      radial-gradient(ellipse at 72% 45%, rgba(79,214,255,0.13), transparent 55%);
    mix-blend-mode: screen;
    animation: glowpulse 5s ease-in-out infinite;
  }
  @keyframes glowpulse{
    0%,100% { opacity: 0.5; }
    50%     { opacity: 0.9; }
  } */
  
  .hero__vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  
    background:
      linear-gradient(
        to bottom,
        transparent 25%,
        rgba(2, 6, 14, 0.15) 60%,
        rgba(2, 6, 14, 0.55) 78%,
        var(--bg-deep) 100%
      ),
      linear-gradient(
        to right,
        rgba(2, 6, 14, 0.42) 0%,
        transparent 18%,
        transparent 82%,
        rgba(2, 6, 14, 0.42) 100%
      );
  }
  
  /* Дополнительная растушёвка на стыке с следующим блоком */
  .hero__edge-fade{
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: clamp(40px, 6vw, 90px);
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(to top, var(--hero-fade-to), transparent);
  }
  
  /* ---------- Бегущая сканирующая линия ---------- */
  /* .hero__scan{
    position: absolute;
    left: 0; right: 0;
    height: 140px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(120,220,255,0.16) 45%, rgba(160,230,255,0.35) 50%, rgba(120,220,255,0.16) 55%, transparent);
    animation: scan 7s linear infinite;
    mix-blend-mode: screen;
  }
  @keyframes scan{
    0%   { top: -140px; }
    100% { top: 100%; }
  } */
  
  /* ---------- Плавающие частицы (голограмма) ---------- */
  .hero__particles{
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
  }
  .particle{
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--glow);
    box-shadow: 0 0 6px 1px rgba(79,214,255,0.9);
    opacity: 0;
    animation: drift linear infinite;
  }
  @keyframes drift{
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(-90px) translateX(12px); opacity: 0; }
  }
  
  /* ---------- Навигация в шапке ---------- */
  .hero__nav{
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;          /* разрешаем перенос вместо обрезки */
    row-gap: 8px;
    padding: clamp(14px, 2.5vw, 22px) clamp(16px, 4vw, 48px);
    /* transform: translateY(clamp(-10px, -1.5vw, -4px)); */

  }
  .hero__links {
    display: flex;
    flex-wrap: wrap;               /* ← разрешает перенос пунктов на новую строку */
    gap: clamp(16px, 4vw, 28px);   /* адаптивный отступ между пунктами */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }
  
  .hero__links a {
    color: rgba(230, 244, 255, 0.78);
    text-decoration: none;
    font: 500 clamp(13px, 0.8125rem + 0.15vw, 14px) / 1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    transition: color 0.2s ease;
    white-space: nowrap;          /* чтобы текст не рвался внутри ссылки */
  }
  
  .hero__links a:hover {
    color: #fff;
  }
  
  
  /* ---------- Контент: заголовок + кнопка ---------- */
  .hero__content{
    position: relative;
    z-index: 5;
    padding: 0 clamp(20px, 4vw, 48px) clamp(36px, 6vw, 56px);
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.8vw, 20px);
  }
  .hero__eyebrow{
    color: var(--glow);
    font: 600 12.5px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0.02em;
    opacity: 0.9;
    margin: 0;
  }
  .hero__title {
    color: #f3f9ff;
    font: 787 clamp(0.6em, 4vw, 2.4em) / 1.2 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
        margin: 0;
}

.hero__subtitle {
  color: rgba(220, 238, 250, 0.82);
  font: 400 clamp(0.65em, 1.7vw, 1em) / 1.55 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  max-width: 38ch;
}

  .hero__content .btn-primary{
    margin-top: clamp(4px, 0.8vw, 10px);
  }
  
  @media (prefers-reduced-motion: reduce){
    .hero__video, .hero__glow, .hero__scan, .particle{
      animation: none !important;
    }
  }
  
  /* ============================================================
     PDF-БЛОК
     ============================================================ */
  .pdf_download {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    margin: clamp(0.8rem, 2vw, 1.2rem) clamp(0.6rem, 2vw, 1rem);
    padding: clamp(0.8rem, 2vw, 1rem);
    background: #15171d;
    border: 1px solid rgba(64, 103, 224, 0.55);
    border-radius: 18px;
    color: #eef1f4;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }
  
  .pdf-download__icon {
    width: clamp(52px, 7vw, 72px);
    height: clamp(52px, 7vw, 72px);
    flex-basis: clamp(52px, 7vw, 72px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 100, 221, .10);
    border-radius: clamp(10px, 1.5vw, 14px);
  }
  .pdf-download__icon svg {
    width: clamp(34px, 4.5vw, 48px);
    height: clamp(34px, 4.5vw, 48px);
    fill: #5574da;
    transition: transform .2s ease, fill .2s ease;
  }
  
  .pdf-download__text { flex: 1; min-width: 0; }
  .pdf-download__text strong {
    display: block;
    font-size: clamp(16px, 1.5vw, 24px);
    line-height: 1.2;
    color: #f2f3f5;
  }
  
  .pdf-download__link {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    min-height: var(--btn-min-height);
    background: #5570d1;
    color: #fff;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-size: var(--btn-font-size);   /* было: clamp(0.5em, 0.875rem + 0.25vw, 16px) */
    font-weight: 700;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(85, 112, 209, 0.3);
  }
  
  /* Опционально: состояние при наведении (чтобы было заметно на всех экранах) */
   /* .pdf-download__link:hover {
    background: #4a62b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(85, 112, 209, 0.4);
  } */
  
  
  .pdf-download__link svg { width: 19px; height: 19px; flex-shrink: 0; }
  .pdf-download__link:hover {
    background: #6681e3;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(69, 104, 215, .25);
  }
  .pdf-download__link:focus-visible {
    outline: 3px solid rgba(85, 124, 255, .5);
    outline-offset: 4px;
  }
  


  /* ---------- slider shell ---------- */
  .slider-wrap{
    position:relative;
    max-width:21.25rem;
    margin:0 auto;
  }

  /* fade masks hint that content continues off-screen */
  .fade{
    position:absolute;
    top:0; bottom:0;
    width:56px;
    z-index:3;
    pointer-events:none;
    transition:opacity .25s ease;
  }
  .fade-l{ left:0; background:linear-gradient(90deg, #0b0f170d, transparent); }
  .fade-r{ right:0; background:linear-gradient(270deg, #0b0f170d, transparent); }
  .fade-l.hidden, .fade-r.hidden{ opacity:0; }

  .track{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    cursor:grab;
    user-select:none;
    padding: 8px clamp(16px, 6vw, 60px) 24px;
    gap: clamp(14px, 2.5vw, 28px);
  }
  .track::-webkit-scrollbar{ display:none; }
  .track.dragging{ cursor:grabbing; scroll-snap-type:none; }

  .card{
    flex: 0 0 clamp(240px, 26vw, 360px);
    scroll-snap-align:center;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:14px;
    overflow:hidden;
    transition:transform .3s ease, opacity .3s ease, border-color .3s ease;
    transform:scale(.94);
    opacity:.55;
    
  }
  .card.active{
    transform:scale(1);
    opacity:1;
    border-color:#31435c;
  }
  /* .card img{
    height: clamp(150px, 16vw, 210px);     
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--panel-2);
  }
   */


  .card > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;          /* одинаковая рамка у всех карточек */
    object-fit: contain;            /* фото вписывается целиком, без обрезки */
    object-position: center;
    padding: 10px;                  /* небольшой воздух вокруг платы */
    background: #0d1014;            /* заполняет поля, если пропорции фото другие */
  }

  .card .body{ padding: clamp(14px, 1.6vw, 20px) clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 20px); }
  .card h3{   
    margin: 0 0 clamp(10px, 1.2vw, 14px);
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.25;
  }
  .row{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: clamp(8px, 1vw, 12px);
    font-size: clamp(12px, 1.05vw, 14px);
     }
  .row .ico{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 clamp(14px, 1.4vw, 18px);
    width: clamp(14px, 1.4vw, 18px);
    height: clamp(14px, 1.4vw, 18px);
    margin-top: 2px;
    color: var(--accent);
  }
  
  .row .ico img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }


  .row .lbl{   
    color: var(--muted);
    display: block;
    font-size: clamp(11px, .95vw, 12.5px);
  }
  .row .val{ 
    color: var(--text);
    font-weight: 600;
  }

  /* ---------- affordance: nudge animation on load ---------- */
  @keyframes nudge{
    0%   { transform:translateX(0); }
    35%  { transform:translateX(-34px); }
    60%  { transform:translateX(-34px); }
    100% { transform:translateX(0); }
  }
  .track.nudge{ animation:nudge 1.1s cubic-bezier(.22,.61,.36,1) .5s 1; }

  /* ---------- controls ---------- */
  .controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    margin-top:6px;
  }
  .arrow{
    width: clamp(38px, 4vw, 48px);
    height: clamp(38px, 4vw, 48px);
    border-radius:50%;
    border:1px solid var(--border);
    background:var(--panel);
    color:var(--text);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    transition:background .2s ease, transform .15s ease, border-color .2s ease;

  }
  .arrow:hover{ background:var(--panel-2); border-color:var(--accent); transform:translateY(-1px); }
  .arrow:active{ transform:translateY(0) scale(.94); }
  .arrow svg{ width:16px; height:16px; }

  .dots{ display:flex; gap:8px; }
  .dot{
    width:7px; height:7px; border-radius:50%;
    background:var(--border);
    cursor:pointer;
    transition:background .25s ease, transform .25s ease, width .25s ease;
  }
  .dot.active{ background:var(--accent-2); width:20px; border-radius:4px; }

  .hint{
    text-align:center;
    color:var(--muted);
    font-size:12px;
    margin-top:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
  }
  .hint svg{ width:14px;height:14px; animation:swipe-hint 1.6s ease-in-out infinite; }
  @keyframes swipe-hint{
    0%,100%{ transform:translateX(0); opacity:.5; }
    50%{ transform:translateX(4px); opacity:1; }
  }

  @media (prefers-reduced-motion: reduce){
    .track.nudge{ animation:none; }
    .hint svg{ animation:none; }
  }


  /* ============================================================
     ПРОЧИЕ ОБЩИЕ СТИЛИ
     ============================================================ */
  .advantage {
    padding: clamp(24px, 2vw, 40px) 1rem clamp(40px, 2vw, 64px);
    box-sizing: border-box;
  }
  
  .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 16px);
  }
  
  /* .equipment__title {
    margin: 0 0 clamp(20px, 3vw, 28px);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
  } */
  
  .stat-card {
    background: #000000;
    border: 1px solid rgb(31 95 187 / 84%);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: clamp(12px, 1.5vw, 20px);
    min-width: 0;
    box-sizing: border-box;
  }
  .stat-card__icon {
    width: clamp(28px, 3vw, 40px);
    height: clamp(28px, 3vw, 40px);
    flex-shrink: 0;
    display: block;
    background: transparent;
  }
  .stat-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .stat-card__value {
    color: var(--color-text);
    font-size: clamp(0.85rem, 1.2vw + 0.55rem, 1.15rem);
    font-weight: 700;
    line-height: 1.25;
  }
  .stat-card__label {
    color: var(--color-text-muted);
    font-size: clamp(0.7rem, 0.8vw + 0.5rem, 0.875rem);
    line-height: 1.35;
  }
  .stat-card__value, .stat-card__label {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  
  .project {
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 40px) clamp(40px, 6vw, 64px);
    box-sizing: border-box;
  }
  
  .project-card {
    padding: clamp(20px, 3vw, 32px);
    background: #0d1524;
    border: 1px solid rgba(31, 95, 187, 0.55);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    /* display: grid; */
    /* grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
    padding: clamp(20px, 3vw, 32px);
    background: #0d1524;
    border: 1px solid rgba(31, 95, 187, 0.55);
    border-radius: 18px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden; */
  }
  .project-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: 20%;
    width: 220px;
    height: 220px;
    background:
      radial-gradient(circle at 30% 30%, rgba(28, 79, 216, 0.18), transparent 60%),
      linear-gradient(135deg, transparent 40%, rgba(28, 79, 216, 0.08) 41%, transparent 42%),
      linear-gradient(45deg, transparent 55%, rgba(28, 79, 216, 0.1) 56%, transparent 57%);
    pointer-events: none;
  }
  .project-card__media { min-width: 0; }
  .project-card__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
  }
  .project-card__body {
    min-width: 0;
    position: relative;
    z-index: 1;
  }
  .project-card__title {
    margin: 0 0 clamp(16px, 2vw, 24px);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--color-text);
  }
  
  .project-specs { margin: 0; display: flex; flex-direction: column; gap: 14px; }
  .project-specs__row {
    display: grid;
    grid-template-columns: 24px minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 10px 12px;
    align-items: start;
  }
  .project-specs__icon { width: 22px; height: 22px; display: block; }
  .project-specs__row dt {
    margin: 0;
    color: var(--color-text-muted);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  }
  .project-specs__row dd {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-weight: 600;
  }
  
  .trust { margin-top: clamp(28px, 4vw, 40px); }
  .trust__title {
    margin: 0 0 16px;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 700;
    color: var(--color-text);
  }
  .trust__chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #11151f;
    color: var(--color-text-secondary);
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  }
  .trust-chip img {
    width: 18px;
    height: 18px;
    display: block;
  }
  .trust__note {
    margin: 16px 0 0;
    color: var(--color-text-muted);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  }
  
  /* ============================================================
     КНОПКИ / ФОРМА
     ============================================================ */
  .request-form__submit { width: 100%; min-height: 52px; justify-content: center; }
  
  .btn-primary,
  .contact-form button[type="submit"],
  button.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    min-height: var(--btn-min-height);
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: var(--btn-font-size);
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .btn-primary:hover,
  .contact-form button[type="submit"]:hover,
  button.btn-primary:hover,
  .request-form__submit:hover {
    background: var(--color-accent-hover);
  }
  
  .request-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-right: clamp(16px, 2vw, 24px);
  }
  
  .request-form {
    padding: clamp(1rem, 2vw, 2rem) 1rem;
    padding-bottom: calc(clamp(32px, 5vw, 56px) + env(safe-area-inset-bottom, 0px));
    max-width: none;
    box-sizing: border-box;
    background: #0b0f17;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
  }
  .request-form__title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
  }
  .request-form__subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  }
  .request-form__errors, .request-field__error {
    color: var(--color-error);
    font-size: 0.85rem;
  }
  .request-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    gap: 12px;
    margin-bottom: 1rem;
  }
  .request-field { display: flex; flex-direction: column; gap: 6px; max-width: 40rem; }
  .request-input, .request-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #12161f;
    font: inherit;
    color: var(--color-text);
    font-size: 1rem; /* 16px фиксированно — защита от зума на iOS */
    outline: none;
  }
  .request-input { min-height: 52px; padding: 14px 16px; }
  .request-textarea { min-height: 140px; max-height: 200px; padding: 28px 16px 14px; resize: vertical; }
  .request-input::placeholder, .request-textarea::placeholder { color: var(--color-text-muted); }
  .request-input:focus, .request-textarea:focus { border-color: rgba(28, 79, 216, 0.7); }
  
  .request-features { margin-bottom: 20px; }
  .request-features__label { margin: 1em 0 1em; color: var(--color-text-muted); font-size: 0.85rem; }
  .request-features__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: space-between;
    align-items: center;
  }
  .request-chips {
    display: flex;
    flex-direction: row;
    gap: 7px;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
  }
  .request-chip{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #12161f;
    color: var(--color-text-secondary);
    min-width: 0;
    min-height: 44px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 2px 6px rgba(0,0,0,.2);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease,
                box-shadow .18s ease, transform .12s ease;
  }
  .request-chip input { position: absolute; opacity: 0; pointer-events: none; }
  /* .request-chip__check {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    flex-shrink: 0;
  } */

  .request-chip:has(input:focus-visible){
    outline: 2px solid #4f6bf0;
    outline-offset: 2px;
  }

  .request-chip:hover{
    border-color: rgba(255,255,255,0.28);
    background: #161b26;
    transform: translateY(-1px);
  }

  .request-chip:active{
    transform: translateY(0) scale(.97);
  }

  /* кружок-индикатор виден всегда (как пустой чекбокс), галочка анимируется внутрь */
.request-chip__check{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  flex-shrink: 0;
  position: relative;
  background: transparent;
  transition: background-color .18s ease, border-color .18s ease;
}


.request-chip__check::after{
  content: "";
  position: absolute;
  left: 4px; top: 2px;
  width: 5px; height: 8px;
  border: solid #1c4fd8;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), opacity .12s ease;
}
.request-chip.is-active,
.request-chip:has(input:checked){
  background: #1c4fd8;
  border-color: #3a63e8;
  color: #fff;
  box-shadow: 0 2px 10px rgba(28,79,216,.35);
  animation: chip-pop .22s ease;
}


.request-chip.is-active .request-chip__check,
.request-chip:has(input:checked) .request-chip__check{
  background: #fff;
  border-color: #fff;
}

.request-chip.is-active .request-chip__check::after,
.request-chip:has(input:checked) .request-chip__check::after{
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

  .request-form__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    align-items: stretch;
  }
  

  @keyframes chip-pop{
    0%   { transform: scale(1); }
    45%  { transform: scale(1.06); }
    100% { transform: scale(1); }
  }

  /* подпись-подсказка под заголовком группы */
.field-hint{
  font-size: 12px;
  color: #5f6b7a;
  margin: -4px 0 10px;
}

@media (prefers-reduced-motion: reduce){
  .request-chip, .request-chip__check, .request-chip__check::after{
    transition: none;
  }
  .request-chip.is-active,
  .request-chip:has(input:checked){
    animation: none;
  }
}


  .contact-form {
    padding: clamp(24px, 4vw, 40px);
    padding-bottom: calc(clamp(24px, 4vw, 40px) + env(safe-area-inset-bottom, 0px));
    max-width: 640px;
    box-sizing: border-box;
  }
  .contact-form p { margin: 0 0 14px; }
  .contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
  
  /* ============================================================
     ПРОЧЕЕ
     ============================================================ */
  .image-container { position: relative; display: inline-block; }
  .base-image { display: block; width: 100%; height: auto; margin: 0; padding: 0; }
  
  .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }
  .point-number {
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    user-select: none;
  }
  
  /* animation-delay для каждой точки задаётся инлайново в HTML
     (style="animation-delay: .3s"), поэтому здесь без per-nth-child переопределений */
  @keyframes pulse {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.3);
      opacity: 0.7;
    }
  }
  .pulse {
    width: clamp(1rem, 2vw, 28px);
    height: clamp(1rem, 2vw, 28px);
    background-color: #1c85e0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    animation: pulse 1.5s ease-in-out infinite;
    will-change: transform, opacity;
    font-size: clamp(12px, 1.2vw, 14px);
  }
  
  /* ------------------------------------------------------------
     Информационная панель (модальное окно оборудования, стары формат — на будущее)
     ------------------------------------------------------------ */
  .panel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 48px;
    padding: 16px 16px 20px;
    border-radius: 18px;
    background: var(--factory-panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .panel.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .panel .grip {
    width: 38px; height: 4px;
    margin: 0 auto 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
  }
  .panel .idx {
    color: var(--factory-accent);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .panel h2 {
    margin: 4px 45px 8px 0;
    color: var(--factory-text);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
  }
  .panel p {
    margin: 0;
    max-width: 900px;
    color: var(--factory-muted);
    font-size: 14.5px;
    line-height: 1.55;
  }
  
  /* ============================================================
     EQUIPMENT / FACTORY
     ============================================================ */
  .equipment {
    --eq-bg: #111419;
    --eq-panel: #181c22;
    --eq-panel-hover: #1d2229;
    --eq-text: #f3f5f7;
    --eq-muted: #929ba6;
    --eq-accent: #4a9ae0;
    --eq-accent-dark: #181730;
    --eq-line: rgba(255, 255, 255, 0.10);
  
    margin: 0 auto;
    box-sizing: border-box;
    padding: clamp(20px, 3vw, 32px);
  }
  
  .equipment__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 22px;
  }
  .equipment__title {
    margin: 0;
    color: var(--eq-text);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.03em;
  }
  
  .factory {
    overflow: hidden;
    border-radius: 18px;
    background: var(--eq-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    border: 1px solid rgba(31, 95, 187, 0.55);
  }
  .factory__media { position: relative; overflow: hidden; }
  .factory__scene {
    position: relative;
    width: 100%;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.75s cubic-bezier(.22, 1, .36, 1), transform-origin 0.75s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
    /* ВАЖНО: не добавлять сюда padding/margin/box-sizing —
       проценты top/left у .hotspot считаются от этого контейнера,
       любой padding здесь сдвинет координаты точек относительно фото. */
  }
  .factory__scene.is-zoomed { transform: scale(1.6); }
  .factory__image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    /* Для устранения "прыжков" хотспотов при загрузке —
       обязательно продублируйте атрибуты width/height в HTML:
       <img ... width="XXXX" height="YYYY">
       (реальные пиксельные размеры файла lab.jpg) */
  }
  .factory__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .08) 22%, transparent 45%);
  }
  .factory__caption {
    position: absolute;
    z-index: 5;
    top: 26px; left: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
  }
  .factory__caption-label {
    color: var(--eq-accent);
    font-size: clamp(9px, 1vw, 14px);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-family: inherit;   /* явно Inter — не .mono */
  }
  .factory__caption-title {
    color: #fff;
    font-size: clamp(10px, 1.5vw, 19px);
    font-weight: 600;
    letter-spacing: -.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  }
  
  .hotspot {
    position: absolute;
    z-index: 10;
    width: clamp(25px, 3vw, 34px);
    height: clamp(25px, 3vw, 34px);
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #5179e7;
    border-radius: 50%;
    background: rgba(17, 20, 25, .86);
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .32);
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .hotspot span {
    position: relative;
    z-index: 2;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }
  .hotspot::before {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: inherit;
    opacity: .7;
    transition: inset .18s ease, opacity .18s ease, border-color .18s ease;
  }
  .hotspot::after {
    content: "";
    position: absolute;
    top: 1px; right: 1px;
    width: 4px; height: 4px;
    border: 1px solid #12161f;
    border-radius: 50%;
    background: #1c4fd8;
  }
  .hotspot:hover {
    background: var(--eq-panel-hover);
    border-color: var(--eq-accent);
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .42);
  }
  .hotspot:hover::before {
    inset: -10px;
    border-color: rgba(44, 109, 189, 0.668);
    opacity: 1;
  }
  .hotspot.is-active {
    background: #1c4fd8;
    border-color: #5077e56b;
    color: #121417;
    transform: translate(-50%, -50%) scale(1.1);
  }
  .hotspot.is-active::before { inset: -10px; border-color: #163eb0; opacity: .8; }
  .hotspot:focus-visible { outline: 2px solid var(--eq-accent); outline-offset: 4px; }
  
/* ============================================================
   ИНФОРМАЦИОННАЯ ПАНЕЛЬ ОБОРУДОВАНИЯ
   ============================================================ */

   .factory-info {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 40px;
    gap: 24px;
    align-items: center;
  
    width: 100%;
    max-height: 0;
    padding: 0 28px;
  
    overflow: hidden;
    border-top: 0 solid transparent;
    background: var(--eq-panel);
  
    opacity: 0;
    transform: translateY(-8px);
  
    transition:
      max-height 0.4s cubic-bezier(.22, 1, .36, 1),
      padding 0.3s cubic-bezier(.22, 1, .36, 1),
      opacity 0.2s ease,
      transform 0.3s cubic-bezier(.22, 1, .36, 1),
      border-color 0.3s ease;
  }
  
  .factory-info.open {
    max-height: 300px;
    padding: 24px 28px 26px;
  
    border-top: 1px solid var(--eq-line);
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Левая область с изображением */
  .factory-info__media {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
  }
  
  /* Сама картинка */
  .factory-info__image {
    display: block;
    width: 100%;
    height: 150px;
  
    object-fit: contain;
    object-position: center;
  
    border: 1px solid var(--eq-line);
    border-radius: 12px;
    background: #0d1014;
  }
  
  /* Центральная часть панели */
  .factory-info__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  
  .factory-info__number {
    padding-top: 0;
  
    color: var(--eq-accent);
    font-family:
      ui-monospace,
      SFMono-Regular,
      Menlo,
      Monaco,
      Consolas,
      monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  
  .factory-info__content {
    min-width: 0;
  }
  
  .factory-info__content h3 {
    margin: 0 0 8px;
  
    color: var(--eq-text);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }
  
  .factory-info__content p {
    max-width: 850px;
    margin: 0;
  
    color: var(--eq-muted);
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: break-word;
  }
  
  /* Кнопка закрытия */
  .factory-info__close {
    align-self: start;
  
    width: 36px;
    height: 36px;
  
    display: grid;
    place-items: center;
  
    padding: 0;
    border: 1px solid var(--eq-line);
    border-radius: 50%;
  
    background: transparent;
    color: var(--eq-muted);
  
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
  
    cursor: pointer;
  
    transition:
      color 0.18s ease,
      border-color 0.18s ease,
      background-color 0.18s ease;
  }
  

  .factory-info__close:hover {
    color: var(--eq-text);
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .05);
  }


  /* ---------- Лейблы полей ---------- */
.request-field__label{
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.request-field__req{
  color: var(--color-error, #ef4444);
  margin-left: 2px;
}

/* ---------- Drag & Drop зона для файла ---------- */
.request-upload{
  position: relative;
  height: 100%;
  min-height: 180px;
  border: 1.5px dashed rgba(79,214,255,0.28);
  border-radius: 10px;
  background: #12161f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.request-upload:hover,
.request-upload.is-dragover{
  border-color: rgba(79,214,255,0.6);
  background: #161b26;
}

.request-upload__hint {
  font-size: 13px;
  opacity: .6;
  margin-top: 8px;
}

.request-upload__input{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.request-upload__content{
  text-align: center;
  padding: 20px;
  pointer-events: none;
}
.request-upload__icon{
  width: 26px;
  height: 26px;
  color: var(--glow, #4fd6ff);
  margin: 0 auto 8px;
}
.request-upload__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.request-upload__link{
  color: var(--glow, #4fd6ff);
  text-decoration: underline;
}
.request-upload__filename{
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text);
}

/* details теперь тоже 2 колонки, как fields */
.request-form__details{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* gap: 12px; */
  gap: 24px;
  margin-bottom: 16px;
}
@media (max-width: 768px){
  .request-form__details{ grid-template-columns: 1fr; }
}

/* ---------- Кнопка по центру + согласие ---------- */
.request-form__actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding-block-end: 2rem;
}
.request-form__submit{
  width: auto;
  min-width: 240px;
  border-radius: 999px;      /* пилюля, как на скрине */
}
.request-form__consent{
  max-width: 480px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.request-form__consent a{
  color: var(--glow, #4fd6ff);
  text-decoration: underline;
}

.tooltip-wrap{
  position: relative;
  display: inline-block;
}
.request-form {
  max-width: 106em;
  margin-inline: auto;
}

.request-form__intro {
  position: relative;
  overflow: hidden;
  margin-top: clamp(-2rem, -4vw, -1.5rem); /* адаптивный отрицательный отступ сверху */
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: 2rem;
  padding: clamp(28px, 4vw, 40px) 1rem clamp(20px, 3vw, 28px);
  /* background: radial-gradient(ellipse 480px 220px at 12% -10%, rgb(59 112 185 / 61%), transparent 65%),
              radial-gradient(ellipse 360px 200px at 92% 120%, rgba(79, 214, 255, 0.10), transparent 60%),
              linear-gradient(180deg, #0d1420 0%, #0a0d14 100%); */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

.slider-wrap{
  max-width: 1240px;           /* было 1100px — блок визуально крупнее на десктопе */
}

.slider-wrap.no-scroll .track{
  justify-content: center;   /* или space-evenly, если хочется больше воздуха между карточками */
  cursor: default;
}

.slider-wrap.no-scroll .card{
  transform: none !important;
  opacity: 1 !important;
  flex: 1 1 280px;           /* карточки растягиваются, а не жмутся в угол */
  max-width: 21.25rem;
}

.slider-wrap.no-scroll .controls,
.slider-wrap.no-scroll .hint,
.slider-wrap.no-scroll .fade{
  display: none;
}

.request-form__intro::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(28,133,224,0.06) 49%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(28,133,224,0.05) 49%, transparent 50%);
  background-size: 64px 64px;
  opacity: .6;
  pointer-events: none;
}

.request-form__title{
  position: relative;
  z-index: 1;
}

.request-form__consent-link{
  color: var(--glow, #4fd6ff);
  text-decoration: underline;
  cursor: help;
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.tooltip-bubble{
  position: absolute;
  bottom: calc(100% + 14px);   /* над ссылкой, с зазором под хвостик */
  left: 50%;
  transform: translateX(-50%) translateY(6px);

  width: min(480px, 90vw);
  padding: 18px 22px;

  background: #1a2030;
  border: 1px solid rgba(79,214,255,0.22);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);

  color: rgba(230,238,250,0.88);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 20;
}

/* хвостик-указатель снизу пузыря */
.tooltip-bubble::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #1a2030;
}

/* появление по наведению/фокусу на ссылку */
.tooltip-wrap:hover .tooltip-bubble,
.tooltip-wrap:focus-within .tooltip-bubble{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* на узких экранах пузырь не должен вылезать за пределы контейнера —
   прижимаем к левому краю вместо центрирования, если места мало */
@media (max-width: 520px){
  .tooltip-bubble{
    left: 0;
    transform: translateX(0) translateY(6px);
    width: min(320px, 92vw);
  }
  .tooltip-wrap:hover .tooltip-bubble,
  .tooltip-wrap:focus-within .tooltip-bubble{
    transform: translateX(0) translateY(0);
  }
  .tooltip-bubble::after{
    left: 24px;
    transform: none;
  }
}
  
  @media (prefers-reduced-motion: reduce) {
    .hotspot, .hotspot::before, .factory-info { transition: none; }
  }
  
  /* ============================================================
     МЕДИА-ЗАПРОСЫ — только структурные переходы
     (число колонок, скрытие/раскрытие элементов).
     Всё, что раньше менялось "по размеру", покрыто clamp() выше
     и здесь больше не повторяется.
     ============================================================ */
  
  /* Планшет */
  @media (max-width: 1024px) {
    .request-field { max-width: 100%; }
  
    .equipment { padding-left: 28px; padding-right: 28px; }
    .project { padding-left: 28px; padding-right: 28px; }
  
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  
  /* Телефон */
  @media (max-width: 768px) {
    .stat-card { flex-direction: column; align-items: flex-start; }
  
    .project-card { grid-template-columns: 1fr; }
    .project-specs__row { grid-template-columns: 22px minmax(0, 1fr); }
    .project-specs__row dd { grid-column: 2; }
  
    .request-form__fields,
    .request-form__details { grid-template-columns: 1fr; }
  
    .request-features__row { flex-direction: column; align-items: stretch; }
  
   
  
    /* Панель оборудования: картинка отдельной строкой сверху, на всю ширину */
    .factory-info {
      grid-template-columns: 1fr 2.2rem;
    }

    .factory-info {
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr) 36px;
      gap: 12px;
      align-items: start;
  
      max-height: 0;
      padding: 0 16px;
  
      overflow: hidden;
      opacity: 0;
      transform: translateY(-8px);
      pointer-events: none;
    }
  
    .factory-info.open {
      max-height: 420px;
      padding: 18px 16px 20px;
  
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
  
    .factory-info__media {
      grid-column: 1;
      grid-row: 1 / 3;
    }
  
    .factory-info__image {
      display: block;
      width: 110px;
      height: 110px;
      object-fit: contain;
    }
  
    .factory-info__details {
      grid-column: 2;
      grid-row: 1;
      min-width: 0;
    }
  
    .factory-info__close {
      grid-column: 3;
      grid-row: 1;
      justify-self: end;
    }
  
    .factory-info__content h3 {
      font-size: 17px;
    }
  
    .factory-info__content p {
      font-size: 13px;
      line-height: 1.5;
    }

    .hero__nav {
      padding-top: clamp(2px, 1vw, 8px);
      margin-top: 0;
    }
  

    /* .factory-info__number  { grid-column: 1; grid-row: 2; }
    .factory-info__content { grid-column: 1 / -1; grid-row: 3; }
    .factory-info__close   { grid-column: 2; grid-row: 1; justify-self: end; } */
  }
  
  /* Узкий телефон */
  @media (max-width: 390px) {
    .hero { min-height: 25rem; }
  }

  @media (max-width: 480px) {
    .factory-info {
      grid-template-columns: 82px minmax(0, 1fr) 32px;
      gap: 10px;
      padding-left: 12px;
      padding-right: 12px;
    }
  
    .hero__links { display: none; }
    .factory-info__image {
      width: 82px;
      height: 82px;
    }
  
    .factory-info__close {
      width: 32px;
      height: 32px;
      font-size: 18px;
    }
  
    .factory-info__content h3 {
      font-size: 15px;
    }
  
    .factory-info__content p {
      font-size: 12px;
    }
  }

 /* Текст согласия */
 .request-consent {
  position: relative;            /* для подсказок на мобильных */
  display: flex;
  align-items: flex-start;       /* галочка у первой строки, если текст переносится */
  justify-content: center;
  gap: 10px;
  max-width: 600px;
  margin: 1rem auto 1rem;
  cursor: pointer;
}
.request-consent__checkbox {
  flex-shrink: 0;                /* не сжимается при длинном тексте */
  width: 16px;
  height: 16px;
  margin: 3px 0 0;               /* выравнивание по первой строке текста */
  accent-color: #1f55d6;         /* цвет галочки под кнопку */
  cursor: pointer;
}

.request-consent__text {
  display: inline;               /* вместо block */
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}
/* Ссылки с подсказкой */
.tooltip {
  position: relative;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}

.tooltip:hover,
.tooltip:focus-visible {
  color: #cfd8ff;
  outline: none;
}

/* Облачко с текстом */
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 6px);

  width: max-content;
  max-width: min(760px, 90vw);
  padding: 18px 24px;

  background: #eef1f7;
  color: #1a1d29;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  white-space: normal;         /* склеивает переносы строк и отступы из атрибута */
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* Стрелка */
.tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translate(-50%, 6px);
  border: 6px solid transparent;
  border-top-color: #eef1f7;
  border-width: 12px 10px 0;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 101;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* Показ при наведении и фокусе (Tab с клавиатуры, тап на телефоне) */
.tooltip:hover::after,
.tooltip:hover::before,
.tooltip:focus-visible::after,
.tooltip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Короткие подсказки не растягиваются на всю ширину */
.tooltip[data-tooltip^="Ознакомьтесь"]::after {
  max-width: 320px;
}

/* Телефоны: подсказка на всю ширину экрана и не уезжает за край */
@media (max-width: 600px) {
  .tooltip { position: static; }   /* позиционируем относительно .request-consent__text */

  .tooltip::after {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: translateY(6px);
    font-size: 14px;
    padding: 14px 16px;
  }

  .tooltip:hover::after,
  .tooltip:focus-visible::after {
    transform: translateY(0);
  }

  .tooltip::before { display: none; }  /* стрелка без привязки к ссылке смотрится криво */
  .request-consent__text { position: static; }
}

.hotspot.pulse:hover,
.hotspot.pulse:focus-visible,
.hotspot.pulse.is-active {
  animation: none;
}

.request-field__error {
  font-size: 12.5px;
  line-height: 1.4;
}
.request-field__error[hidden] { display: none; }

.request-field.is-invalid .request-input,
.request-field.is-invalid .request-textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.request-field.is-valid .request-input,
.request-field.is-valid .request-textarea {
  border-color: rgba(34, 197, 94, .45);
}

/* ошибка согласия под чекбоксом */
.request-consent.is-invalid .request-consent__checkbox,
.request-consent + .request-field__error {
  outline-color: #ef4444;
}
.request-consent + .request-field__error {
  display: block;
  margin-top: -6px;
  text-align: center;
}

/* ошибка файла под зоной загрузки */
.request-upload + .request-field__error {
  display: block;
  margin-top: 6px;
}



.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, calc(100vw - 48px));
  pointer-events: none;
}

.toast {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: start;
  padding: 16px 16px 18px;
  overflow: hidden;

  background: #151a24;
  border: 1px solid rgba(79, 214, 255, .22);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color: var(--color-text, #f3f5f7);

  pointer-events: auto;
  animation: toast-in-desktop .35s cubic-bezier(.22, 1, .36, 1);
}

.toast.is-leaving {
  animation: toast-out-desktop .25s ease forwards;
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.toast__icon svg { width: 20px; height: 20px; }

.toast--success .toast__icon { background: rgba(34, 197, 94, .14); color: #4ade80; }
.toast--error   .toast__icon { background: rgba(239, 68, 68, .14); color: #f87171; }
.toast--error { border-color: rgba(239, 68, 68, .3); }

.toast__title {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}
.toast__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted, #929ba6);
}

.toast__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted, #929ba6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.toast__close:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* полоска таймера автозакрытия */
.toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #1c4fd8;
  transform-origin: left;
  animation: toast-timer var(--toast-time, 6s) linear forwards;
}
.toast--error .toast__progress { background: #ef4444; }
.toast:hover .toast__progress { animation-play-state: paused; }

@keyframes toast-in-desktop {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out-desktop {
  to { opacity: 0; transform: translateX(24px); }
}
@keyframes toast-timer {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ---------- Телефон: снизу на всю ширину ---------- */
@media (max-width: 600px) {
  .toast-stack {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .toast {
    animation-name: toast-in-mobile;
    touch-action: pan-x;              /* вертикальный свайп обрабатываем сами */
  }
  .toast.is-leaving { animation-name: toast-out-mobile; }

  .toast__close { width: 36px; height: 36px; } /* крупнее под палец */
  .toast { grid-template-columns: 36px minmax(0, 1fr) 36px; }
}

@keyframes toast-in-mobile {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out-mobile {
  to { opacity: 0; transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .toast.is-leaving { animation-duration: .01s; }
  .toast__progress { animation: none; }
}



/* ============================================================
   FOOTER
   ============================================================ */
   .site-footer {
    position: relative;
    overflow: hidden;
    background-color: #1f2537;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  }

  .site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 640px 420px at 8% 0%, rgba(79, 214, 255, .14), transparent 60%),
      linear-gradient(180deg, transparent 0%, rgba(11, 15, 23, .55) 100%);
  }
  
  /* фоновый узор «дорожки платы» */
  .site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='240' viewBox='0 0 360 240' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M0 60h80l40 40h90l30-30h120'/%3E%3Cpath d='M40 240v-60l30-30h60l40 40v50'/%3E%3Cpath d='M250 0v40l30 30v60l-40 40h-60'/%3E%3Ccircle cx='80' cy='60' r='12'/%3E%3Ccircle cx='210' cy='100' r='12'/%3E%3Ccircle cx='130' cy='150' r='12'/%3E%3Ccircle cx='280' cy='130' r='12'/%3E%3C/svg%3E");
    background-size: 360px 240px;
  }
  .site-footer__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(32px, 4vw, 40px) clamp(20px, 4vw, 24px) calc(32px + env(safe-area-inset-bottom, 0px));
  }
  
  /* ---------- Верхняя часть ---------- */
  .site-footer__top {
    display: grid;
    grid-template-columns: minmax(200px, 1.3fr) minmax(140px, .8fr) minmax(200px, 1.2fr) minmax(240px, 1.1fr);
    gap: clamp(24px, 4vw, 48px);
    padding-bottom: clamp(28px, 3vw, 40px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  
  .site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .site-footer__logo img {
    display: block;
    width: auto;
    height: 40px;
  }
  
  .site-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 10px;
    background: #343b4f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
  }
  .site-footer__cta:hover {
    background: #1c4fd8;
    transform: translateY(-1px);
  }
  
  /* ---------- Колонки ссылок ---------- */
  .site-footer__title {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
  }
  
  .site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .site-footer__list a {
    color: #9aa3b5;
    font-size: 14.5px;
    line-height: 1.6;
    text-decoration: none;
    transition: color .2s ease;
  }
  .site-footer__list a:hover { color: #fff; }
  
  /* ---------- Контакты ---------- */
  .site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-style: normal;          /* address по умолчанию курсивный */
  }
  
  .site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .site-footer__label {
    color: #9aa3b5;
    font-size: 12px;
  }
  
  .site-footer__value {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease;
  }
  .site-footer__value:hover { color: var(--glow, #4fd6ff); }
  
  /* ---------- Нижняя строка ---------- */
  .site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-top: 24px;
  }
  
  .site-footer__copy {
    max-width: 680px;
    margin: 0;
    color: #9aa3b5;
    font-size: 12px;
    line-height: 1.6;
  }
  
  .site-footer__made {
    flex-shrink: 0;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease;
  }
  .site-footer__made:hover { color: var(--glow, #4fd6ff); }
  
  /* фокус с клавиатуры для всех ссылок подвала */
  .site-footer a:focus-visible {
    outline: 2px solid var(--glow, #4fd6ff);
    outline-offset: 3px;
    border-radius: 4px;
  }
  
  /* ---------- Планшет: 2 колонки ---------- */
  @media (max-width: 1024px) {
    .site-footer__top {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  /* ---------- Телефон: 1 колонка ---------- */
  @media (max-width: 600px) {
    .site-footer__top {
      grid-template-columns: 1fr;
      gap: 28px;
    }
  
    .site-footer__brand { gap: 20px; }
    .site-footer__cta { width: 100%; }
  
    .site-footer__title { margin-bottom: 14px; }
  
    .site-footer__bottom {
      flex-direction: column;
      gap: 14px;
    }
  }