/* ====== HEADER (fluid) с мобильным бургером ====== */
:root{
  --brand:#2e3790;
  --ink:#142047;
  --bg:#ffffff;
  --line:#2e3790;

  --header-h:140px;
  --left-block:360px;      /* ширина левой «зоны» с логотипом */
  --right-gap:50px;        /* отступ правого края от элементов */

  --nav-top:55px;          /* вертикаль меню */
  --cta-top:50px;          /* вертикаль кнопки */
  --split-top:40px;        /* горизонтальная линия */

  --logo-w:230px;
  --logo-h:75px;
}

*{ box-sizing:border-box; }
html,body{
  margin:0; background:var(--bg); color:var(--ink);
  font:16px/1.35 Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  overflow-x:hidden;
}
body.no-scroll{ overflow:hidden; }

.site-header{
  position:sticky; top:0; z-index:1000; background:var(--bg);
  box-shadow:0 0 0 1px rgba(20,32,71,.05);
}

.header-canvas{
  position:relative; width:100%; height:var(--header-h); margin-inline:auto;
}

/* ====== ЛОГО ====== */
.logo{
  position:absolute; left:calc(var(--left-block) / 2); top:50%;
  transform:translate(-50%,-50%);
  width:var(--logo-w); height:var(--logo-h); display:block;
}
.logo-img{ width:100%; height:100%; object-fit:contain; object-position:center; }

/* ====== ЛИНИИ ====== */
.v-wall{
  position:absolute; left:var(--left-block); top:0;
  width:1px; height:100%; background:var(--line); opacity:.8;
}
.h-split{
  position:absolute; left:var(--left-block); right:0;
  top:var(--split-top); height:1px; background:var(--line); opacity:.35;
}

/* ====== КОНТАКТЫ ====== */
.phone,.email{
  position:absolute; top:6px; height:28px; line-height:28px;
  width:220px; font-weight:600; color:var(--brand); text-decoration:none;
}
.phone{ left:calc(50% - 240px); text-align:right; }
.email{ left:calc(50% + 20px);  text-align:left;  }

/* ====== ЯЗЫК (десктоп) ====== */
.flag-en,.flag-ru{ position:absolute; top:15px; width:20px; height:11px; border:.5px solid #d8def8; }
.flag-en{ right:calc(var(--right-gap) + 130px); }
.flag-ru{ right:calc(var(--right-gap) + 200px); opacity:.5; }

.lang-toggle-abs{
  position:absolute; top:11px; right:calc(var(--right-gap) + 158px);
  width:36px; height:20px;
}
.lang-toggle-abs input{ position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.lang-toggle-abs .track{
  position:absolute; inset:0; border-radius:20px; background:#e7ebff; border:1px solid #d8def8;
  box-shadow:0 1px 1px rgba(0,0,0,.04) inset; transition:background .2s, border-color .2s;
}
.lang-toggle-abs .knob{
  position:absolute; top:1px; left:1px; width:16px; height:16px; border-radius:50%;
  background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.18); transition:left .2s ease;
}
.lang-toggle-abs input:checked + .track{ background:var(--brand); border-color:var(--brand); }
.lang-toggle-abs input:checked + .track .knob{ left:18px; }

/* ====== СОЦСЕТИ (десктоп) ====== */
.icon{
  position:absolute; top:7.5px; width:25px; height:25px;
  border:1px solid #d8def8; border-radius:50%;
  display:flex; align-items:center; justify-content:center; background:#fff;
}
.icon:hover{ background:#f5f7ff; border-color:#c7cdf5; }
.icon img{ width:18px; height:18px; }
.icon.tg{ right:calc(var(--right-gap) + 380px); }
.icon.ig{ right:calc(var(--right-gap) + 340px); }
.icon.wa{ right:calc(var(--right-gap) + 300px); }

/* ====== МЕНЮ (десктоп) ====== */
.nav-abs{
  position:absolute; top:var(--nav-top);
  left:var(--left-block);
  right:calc(var(--right-gap) + 220px);   /* резерв под CTA */
  display:flex; justify-content:center; gap:40px; align-items:center;
}
.nav{ height:30px; line-height:30px; font-weight:700; color:var(--brand); text-decoration:none; }
.nav:hover{ opacity:.85; }

/* ====== CTA (десктоп) ====== */
.cta-abs{
  position:absolute; right:calc(var(--right-gap) + 200px); top:var(--cta-top);
  width:175px; height:40px; border-radius:27px;
  background:#0E1C4B; color:#fff; text-decoration:none; font-weight:700;
  display:flex; align-items:center; justify-content:center; white-space:nowrap; transition:.25s;
}
.cta-abs:hover{ background:#1e2d6e; }

/* ====== АДАПТИВ ДЕСКТОП/НОУТ ====== */
@media (max-width: 1366px){
  :root{ --right-gap:26px; --left-block:320px; --logo-w:210px; --logo-h:70px; }
  .nav-abs{ gap:34px; right:calc(var(--right-gap) + 210px); }
  .cta-abs{ right:var(--right-gap); width:165px; height:38px; }
  .icon.tg{ right:calc(var(--right-gap) + 330px); }
  .icon.ig{ right:calc(var(--right-gap) + 292px); }
  .icon.wa{ right:calc(var(--right-gap) + 254px); }
}

/* — 1080px: всё видно, просто плотнее — */
@media (max-width: 1080px){
  :root{ --header-h:120px; --left-block:280px; --logo-w:190px; --logo-h:62px; --nav-top:52px; --cta-top:50px; }
  .phone,.email{ width:190px; font-size:15px; }
  .phone{ left:calc(50% - 205px); } .email{ left:calc(50% + 15px); }
  .nav-abs{ gap:28px; right:calc(var(--right-gap) + 186px); }
  .cta-abs{ width:150px; height:36px; }
  .icon.tg{ right:calc(var(--right-gap) + 270px); }
  .icon.ig{ right:calc(var(--right-gap) + 236px); }
  .icon.wa{ right:calc(var(--right-gap) + 202px); }
  .flag-en{ right:calc(var(--right-gap) + 116px); }
  .lang-toggle-abs{ right:calc(var(--right-gap) + 142px); }
  .flag-ru{ right:calc(var(--right-gap) + 180px); }
}

/* — 920px: убираем линии/соц-иконки, остальное видно — */
@media (max-width: 920px){
  :root{ --header-h:110px; --left-block:220px; --logo-w:175px; --logo-h:56px; --nav-top:48px; --cta-top:48px; }
  .v-wall,.h-split{ display:none !important; }
  .icon{ display:none !important; }
  .nav-abs{ left:12px; right:calc(var(--right-gap) + 170px); gap:22px; }
  .cta-abs{ right:var(--right-gap); width:146px; height:34px; }
}

/* ====== БУРГЕР (мобильный) ====== */
.burger{
  position:absolute; top:12px; right:12px; width:40px; height:40px; display:none;
  border:0; background:transparent; padding:0; cursor:pointer; z-index:1101;
}
.burger-lines, .burger-lines::before, .burger-lines::after{
  position:absolute; left:8px; right:8px; height:2px; background:#142047; content:"";
  transition:transform .2s ease, opacity .2s ease; top:50%; transform:translateY(-50%);
}
.burger-lines::before{ top:auto; transform:none; translate:0 -8px; }
.burger-lines::after{ top:auto; transform:none; translate:0 8px; }

.mnav{
  position:fixed; inset:0; background:rgba(20,32,71,.45); backdrop-filter:blur(2px);
  opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:1100;
}
.mnav[hidden]{ display:block; }             /* чтобы hidden не ломал анимацию */
.mnav.open{ opacity:1; pointer-events:auto; }
.mnav-panel{
  position:absolute; left:0; right:0; top:0; background:#fff;
  border-left:1px solid #e6e9ff; border-right:1px solid #e6e9ff;
  padding:16px 20px 24px; transform:translateY(-8%); transition:transform .25s ease;
  max-height:100dvh; overflow:auto;
}
.mnav.open .mnav-panel{ transform:translateY(0); }

.mnav-close{
  position:absolute; left:14px; top:12px; width:36px; height:36px;
  border:0; background:transparent; font-size:28px; line-height:1; color:#1e2d6e; cursor:pointer;
}
.mnav-logo{ display:block; text-align:center; margin-top:6px; }
.mnav-logo img{ height:44px; width:auto; }

.mnav-list{ margin:16px 0 8px; }
.mnav-item{
  display:block; text-align:center; padding:14px 8px; text-decoration:none;
  color:#142047; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  border-top:1px solid #e6e9ff;
}
.mnav-item:last-child{ border-bottom:1px solid #e6e9ff; }

.mnav-extra{ display:flex; justify-content:center; gap:16px; margin:14px 0 6px; }
.mnav-soc{ font-weight:600; text-decoration:none; color:#2e3790; }

/* ЯЗЫК В БУРГЕРЕ: флаги + тумблер между ними */
.mnav-lang{
  display:flex; align-items:center; justify-content:center;
  gap:14px; margin:6px 0 14px;
}
.mnav-lang .flag{
  display:inline-block; width:24px; height:14px;
  border:.5px solid #d8def8; background-size:cover; background-position:center; border-radius:2px;
}
.mnav-lang .flag.ru{ background-image:url("assets/flag_ru.png"); }
.mnav-lang .flag.en{ background-image:url("assets/flag_en.png"); }

.lang-toggle-inline{ position:relative; width:36px; height:20px; display:inline-block; }
.lang-toggle-inline input{ position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.lang-toggle-inline .track{
  position:absolute; inset:0; border-radius:20px; background:#e7ebff; border:1px solid #d8def8;
  box-shadow:0 1px 1px rgba(0,0,0,.04) inset; transition:background .2s, border-color .2s;
}
.lang-toggle-inline .knob{
  position:absolute; top:1px; left:1px; width:16px; height:16px; border-radius:50%;
  background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.18); transition:left .2s ease;
}
.lang-toggle-inline input:checked + .track{ background:var(--brand); border-color:var(--brand); }
.lang-toggle-inline input:checked + .track .knob{ left:18px; }

.mnav-cta{
  display:block; margin:10px auto 6px; max-width:320px; text-align:center;
  background:#0E1C4B; color:#fff; text-decoration:none; font-weight:700;
  padding:12px 18px; border-radius:10px;
}

/* когда меню открыто — убираем бургер в хедере */
.menu-open .burger{ display:none !important; }

/* ====== МОБИЛЬНЫЙ ХЕДЕР: логотип по центру, бургер слева снизу ====== */
@media (max-width: 680px){
  :root{ --header-h:104px; --left-block:170px; --logo-w:150px; --logo-h:50px; }

  .logo{ left:50% !important; transform:translate(-50%,-50%); }
  .burger{ display:block; top:auto !important; right:auto !important; bottom:10px; left:12px; }

  /* скрыть в хедере всё лишнее — логотип остаётся */
  .nav-abs, .cta-abs, .phone, .email, .flag-ru, .flag-en, .lang-toggle-abs, .icon{ display:none !important; }
  .v-wall, .h-split{ display:none !important; }
}

/* сверхузкие */
@media (max-width: 360px){
  .mnav-cta{ max-width: 290px; }
}






/* ===== HERO — РЕСПОНСИВ ДЛЯ БОЛЬШИХ МОНИТОРОВ ===== */
/* Базовые переменные */
:root{
  --content-w: 1440px;   /* ширина «контейнера» контента */
  --gutter: 105px;       /* внутренний отступ от края контейнера */
  --hero-min-h: 700px;   /* минимальная высота hero */
}

/* Корневой слой hero */
.hero{
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: var(--hero-min-h);
  margin: 0;
  overflow: hidden; /* чтобы «воздух» не вызывал горизонтальный скролл */
}

/* Фон на всю ширину экрана */
.hero-bg{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(236,236,236,.6), rgba(236,236,236,.35));
  z-index: 0;
}

/* Центрируем абсолютные элементы относительно «контейнера» по формуле:
   левый край = центр экрана - половина контейнера + внутренний отступ */
@supports (left: calc(50% - var(--content-w)/2 + var(--gutter))) {
  .hero-title-abs,
  .tag1, .tag2, .tag3, .tag4, .tag5,
  .hero-img-abs {
    left: calc(50% - var(--content-w)/2 + var(--gutter));
  }
  .hero-card-abs{
    right: calc(50% - var(--content-w)/2 + var(--gutter));
  }
}

/* ===== Заголовок ===== */
.hero-title-abs{
  position:absolute;
  width: min(1400px, calc(var(--content-w) - 2*var(--gutter)));
  top: clamp(0px, 4vw, 60px);
  font-family:'Montserrat', sans-serif;
  font-weight:900;
  font-size: clamp(32px, 2.6vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0; padding: 0; z-index: 2;
}
.t-dark{ color:#0E1C4B; }
.t-blue{ color:#333B9E; }

/* ===== Теги ===== */
.tag{
  position:absolute;
  font-family:'Montserrat',sans-serif;
  font-weight:500;
  font-size: clamp(12px, 0.95vw, 16px);
  line-height:100%; color:#333B9E;
  background:#fff; border:1px solid #D9D9D9; border-radius:15px;
  display:flex; align-items:center; justify-content:center;
  padding: 0 .9em;
  height: clamp(24px, 2.2vw, 32px);
  z-index: 2;
}

/* Базовая позиция первого тега — рядом с заголовком */
.tag1{
  width: clamp(170px, 14vw, 230px);
  top: clamp(215px, 13vw, 170px);
}

/* Остальные теги смещаем от первого через translateX
   ВАЖНО: не переопределяем left — он у всех общий (как у tag1) */
.tag2{
  width: clamp(140px, 11vw, 180px);
  top: clamp(215px, 13vw, 170px);
  transform: translateX(clamp(180px, 15vw, 230px));
}
.tag3{
  width: clamp(120px, 10vw, 160px);
  top: clamp(250px, 16vw, 205px);
}
.tag4{
  width: clamp(120px, 10vw, 160px);
  top: clamp(250px, 16vw, 205px);
  transform: translateX(clamp(135px, 12vw, 160px));
}
.tag5{
  width: clamp(92px, 8vw, 120px);
  top: clamp(250px, 16vw, 205px);
  transform: translateX(clamp(270px, 24vw, 320px));
}

/* ===== Большое изображение слева ===== */
.hero-img-abs{
  position:absolute;
  top: clamp(220px, 26vw, 300px);
  width: clamp(720px, 58vw, 1050px);
  height: clamp(280px, 22vw, 380px);
  border-radius: clamp(36px, 3.2vw, 64px);
  overflow:hidden; z-index:2;
}
.hero-img-abs img{
  width:100%; height:100%;
  object-fit:cover; object-position:center; display:block;
}
/* ===== Карточка справа — равные отступы и вертикальный центр ===== */
.hero-card-abs{
  position:absolute;
  top: clamp(220px, 26vw, 300px);
  right: calc(50% - var(--content-w)/2 + var(--gutter));
  width: clamp(280px, 18vw, 380px);
  height: clamp(280px, 22vw, 380px);
  background:#0E1C4B;
  border-radius: clamp(36px, 3.2vw, 64px);
  z-index:1;

  /* новое: делаем колонку и центрируем по вертикали */
  display:flex;
  flex-direction:column;
  justify-content:center;         /* центр по вертикали */
  align-items:flex-start;          /* текст остаётся слева (см. вариант ниже для центра) */
  padding: clamp(24px, 2vw, 40px);
  gap: clamp(10px, 1.6vw, 20px);   /* равный интервал между всеми текстовыми блоками */
}

/* Сбрасываем абсолютное позиционирование внутренних элементов,
   чтобы они участвовали в Flex-потоке */
.hero-card-abs .hc-title,
.hero-card-abs .hc-100,
.hero-card-abs .hc-100-cap,
.hero-card-abs .hc-20,
.hero-card-abs .hc-20-cap{
  position: static !important;
  left: auto !important; right: auto !important;
  top: auto !important; bottom: auto !important;
  width: auto;
  margin: 0;
}

/* Типографика (как была, только без позиций) */
.hc-title{
  font-family:'Montserrat', sans-serif; font-weight:700;
  font-size: clamp(18px, 1.4vw, 26px); line-height:1.15; color:#fff;
}
.hc-100{
  font-family:'Montserrat', sans-serif; font-weight:700;
  font-size: clamp(26px, 2vw, 34px); line-height:1; color:#fff;
}
.hc-100-cap{
  font-family:'Montserrat', sans-serif; font-weight:400;
  font-size: clamp(16px, 1.2vw, 22px); line-height:1.1; color:#fff;
}
.hc-20{
  font-family:'Montserrat', sans-serif; font-weight:700;
  font-size: clamp(28px, 2.3vw, 38px); line-height:1; color:#fff;
}
.hc-20-cap{
  font-family:'Montserrat', sans-serif; font-weight:400;
  font-size: clamp(16px, 1.2vw, 22px); line-height:1.1; color:#fff;
}

/* ===== Нижняя полоса (full-bleed) ===== */
.hero-band{
  position:absolute; left:0; right:0; bottom:0;
  height: clamp(240px, 20vw, 360px);
  background: linear-gradient(180deg, #333B9E 0%, #2B348F 100%);
  z-index:0;
}

/* ===== Точки перелома для очень больших мониторов ===== */
/* 1600+ px */
@media (min-width:1600px){
  :root{
    --content-w: 1680px;
    --gutter: 120px;
    --hero-min-h: 760px;
  }
}

/* 1920+ px */
@media (min-width:1920px){
  :root{
    --content-w: 1800px;
    --gutter: 140px;
    --hero-min-h: 820px;
  }
}

/* 2560+ px (2K/4K) */
@media (min-width:2560px){
  :root{
    --content-w: 2000px;
    --gutter: 180px;
    --hero-min-h: 900px;
  }
}
/* === FIX: теги на 1360–1480px (в т.ч. 1440) не «уезжают» === */
@media (min-width:1360px) and (max-width:1480px){
  .tag1, .tag2, .tag3, .tag4, .tag5{
    transform: none !important; /* сбросим vw-смещения */
  }
  .tag1{ top: 225px !important; }
  .tag2{ top: 225px !important; transform: translateX(230px) !important; }
  .tag3{ top: 260px !important; }
  .tag4{ top: 260px !important; transform: translateX(160px) !important; }
  .tag5{ top: 260px !important; transform: translateX(320px) !important; }
}

/* === Адаптация для планшетов и ноутбуков ≤1080px === */
@media (max-width:1080px){
  :root{
    --content-w: 100vw;
    --gutter: 24px;
    --hero-min-h: auto;
  }

  /* Переключаем hero в колонку, чтобы управлять порядком элементов */
  .hero{
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 40px;
  }

  /* Скрываем теги на iPad и телефонах */
  .tag{ display: none !important; }

  /* Сбрасываем absolute-позиции у ключевых блоков,
     чтобы они стали обычными элементами колонки */
  .hero-title-abs,
  .hero-card-abs,
  .hero-img-abs{
    position: static !important;
    left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important;
    transform: none !important;
    width: 100%;
    max-width: calc(100% - 2*var(--gutter));
    margin: 0 auto;
  }

  /* Порядок: Заголовок → Карточка → Фото (как просил) */
  .hero-title-abs{ order: 1; }
  .hero-card-abs{ order: 2; }
  .hero-img-abs{  order: 3; }

  /* Заголовок — компактнее на iPad */
  .hero-title-abs{
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1.15;
    text-align: left;
    margin-bottom: 16px;
  }

  /* Карточка — авто-высота, внутренние отступы и равные интервалы уже заданы */
  .hero-card-abs{
    height: auto;
    padding: clamp(20px, 2.6vw, 28px);
    gap: clamp(12px, 1.8vw, 18px);
    align-items: flex-start; /* или center, если нужно по центру */
    border-radius: 28px;
    margin-bottom: 16px;
  }

  /* Фото — под карточкой */
  .hero-img-abs{
    height: clamp(220px, 42vw, 360px);
    border-radius: 24px;
  }

  /* Нижняя полоса — пониже и короче */
  .hero-band{
    height: 180px;
  }
}

/* === Мобилка ≤600px: прячем заголовок, оставляем акценты карточки === */
@media (max-width:600px){
  /* Прячем большой заголовок, чтобы не перегружать экран */
  .hero-title-abs{ display: none !important; }

  .hero{
    padding-top: 20px;
  }

  .hero-card-abs{
    align-items: center;         /* центрируем содержимое */
    text-align: center;
    gap: 12px;
    border-radius: 22px;
  }

  /* Чуть крупнее цифры — основной акцент */
  .hc-title{ font-size: 18px; }
  .hc-100{ font-size: 28px; }
  .hc-20{  font-size: 30px; }

  .hero-img-abs{
    height: clamp(200px, 50vw, 320px);
    border-radius: 18px;
    margin-top: 12px;
  }

  .hero-band{
    height: 160px;
  }
}
/* === 1080 и ниже: скрыть правую синюю карточку полностью === */
@media (max-width:1080px){
  .hero-card-abs{
    display: none !important;
  }
}
/* Скрыть СИНЮЮ карточку только в диапазоне 1025–1080px */
@media (min-width:1025px) and (max-width:1079px){
  .hero-card-abs{ display:none !important; }
}



/* === Мобилка ≤600px: вернуть заголовок и красиво расположить === */
@media (max-width:600px){
  :root{ --gutter: 16px; } /* помягче поля на телефонах */

  /* возвращаем заголовок */
  .hero-title-abs{
    display: block !important;
    position: static !important;
    left:auto !important; right:auto !important;
    top:auto !important; bottom:auto !important;
    width: calc(100% - 2*var(--gutter)) !important;
    margin: 0 var(--gutter) 12px !important;
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.2 !important;
    text-align: left !important;
    order: 1;            /* первый в колонке */
    z-index: 2;
  }

  /* оставим карточку и фото ниже заголовка */
  .hero{
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .hero-card-abs{ order: 2; }  /* карточка под заголовком */
  .hero-img-abs{  order: 3; }  /* фото под карточкой */

  /* теги на телефонах всё ещё скрыты (как и хотели) */
  .tag{ display:none !important; }
}



/* ===== SERVICES ===== */

/* ===== SERVICES (иконка справа, текст слева и ниже иконки на всех брейкпоинтах) ===== */

:root{
  --svc-bg:#333B9E;
  --svc-fg:#fff;
  --svc-radius:56px;
  --svc-shadow:0 10px 30px rgba(0,0,0,.15);

  /* управляемые поля и зазоры */
  --svc-sidepad-desktop: clamp(64px, 6vw, 200px);
  --svc-sidepad-tablet:  clamp(40px, 6vw, 96px);
  --svc-sidepad-phone:   clamp(16px, 6vw, 28px);

  --svc-gap-desktop:  clamp(60px, 6vw, 120px);
  --svc-gap-tablet:   clamp(40px, 5.5vw, 72px);
  --svc-gap-phone:    clamp(18px, 4vw, 28px);

  /* вертикальный отступ под иконку (чтобы текст всегда был ниже неё) */
  --svc-headspace: clamp(64px, 7vw, 92px); /* можно крутить */
}

.svc{ position:relative; padding: clamp(24px, 3vw, 48px) 0; }

/* контейнер: резиновый + 12 колонок */
.svc-canvas{
  margin: 0 auto;
  max-width: 1680px;
  padding: 0 var(--svc-sidepad-desktop);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--svc-gap-desktop);
  align-items: stretch;
}

/* карточка: по 4 колонки (3 в ряд) */
.svc-card{
  grid-column: span 4;
  position: relative;
  display:flex; flex-direction:column;

  /* ключ: верхний паддинг даёт место под иконку на всех размерах */
  padding: var(--svc-headspace) clamp(22px, 2.2vw, 32px) clamp(20px, 2vw, 28px);

  border-radius: var(--svc-radius);
  background: var(--svc-bg);
  color: var(--svc-fg);
  box-shadow: var(--svc-shadow);

  min-height: clamp(300px, 28vw, 400px);
  overflow: hidden;
  isolation:isolate;
}

/* лёгкий блик */
.svc-card::after{
  content:""; position:absolute; inset:-20% -10% auto auto; width:60%; height:60%;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 60%);
  pointer-events:none; z-index:0;
}

/* ИКОНКА: строго справа-сверху; текст ниже благодаря padding-top */
.svc-ico{
  position:absolute;
  top: clamp(14px, 1.4vw, 20px);
  right: clamp(14px, 1.4vw, 20px);
  width: clamp(56px, 4vw, 72px);
  height: clamp(56px, 4vw, 72px);
  object-fit:contain;
  z-index:1;
  pointer-events:none;
}

/* ТЕКСТ — слева, не по центру, одинаково на всех брейкпоинтах */
.svc-title{
  margin: 0; z-index:1;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.05;
  letter-spacing: 0.2px;
}
.svc-list{
  margin: 8px 0 0; padding-left: 1.1em; z-index:1;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.35;
}
.svc-list li{ margin: .4em 0; }

/* hover */
.svc-card{ transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.svc-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.2); }

/* ===== Брейкпоинты ===== */

/* ≥1080px — остаётся 3 в ряд (по умолчанию) */

/* iPad 1024→768: две сверху по краям, третья по центру снизу */
@media (max-width: 1024px) and (min-width: 768px){
  .svc-canvas{
    padding: 0 var(--svc-sidepad-tablet);
    gap: var(--svc-gap-tablet);
    grid-template-columns: repeat(12, 1fr);
  }
  .svc-card{ grid-column: span 6; }          /* базово по 6 колонок */
  .svc-card.card1{ grid-column: 1 / span 6; } /* левая сверху */
  .svc-card.card2{ grid-column: 7 / span 6; } /* правая сверху */
  .svc-card.card3{ grid-column: 4 / span 6; } /* центр снизу */
}

/* телефоны <768px: одна в ряд + регулируемые поля/зазоры */
@media (max-width: 767.98px){
  .svc-canvas{
    grid-template-columns: repeat(6, 1fr);
    padding: 0 var(--svc-sidepad-phone);
    gap: var(--svc-gap-phone);
  }
  .svc-card{ grid-column: 1 / -1; }
}


/* === iPad 1024→768: больше боковые поля, меньше пустоты снизу === */
@media (max-width: 1024px) and (min-width: 768px){
  /* шире поля и чуть больше gap */
  .svc-canvas{
    padding: 0 clamp(56px, 8vw, 128px);
    gap: clamp(48px, 6vw, 80px);
  }
  /* срезаем лишнюю высоту, не трогая верхний отступ под иконку */
  .svc-card{
    min-height: 340px;                     /* было 360+ */
    padding-bottom: clamp(12px, 1.6vw, 18px);
  }
}

/* === Телефоны <768: чуть компактнее по высоте, но текст всё ещё ниже иконки === */
@media (max-width: 767.98px){
  .svc-canvas{
    /* можешь регулировать боковой отступ экрана тут */
    padding: 0 clamp(20px, 6vw, 32px);
    gap: clamp(18px, 5vw, 28px);
  }
  .svc-card{
    min-height: 300px;                     /* было минимум 360 — поэтому и была «пустота» */
    padding-bottom: 12px;
  }
}





/* ===== ABOUT (desktop-first, large screens) ===== */
/* ===== ABOUT: базовая стилизация (desktop-first) ===== */

/* фон тянется на всю ширину секции */
.about{
  position: relative;
  padding-block: clamp(24px, 3vw, 60px);
  background: #ECECEC80; /* серый фон по всей ширине */
}

/* контейнер контента */
.about-canvas{
  max-width: min(1600px, 92vw);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 56px);

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "label  label"
    "title  title"
    "text   text"
    "image  card";        /* на десктопе: слева картинка, справа карточка */
  gap: clamp(20px, 2.5vw, 36px);
}

/* мини-заголовок "О Нас" */
.about-label{
  grid-area: label;
  position: relative;
  display: inline-block;
  padding-left: 56px;
  font-family:'Montserrat',sans-serif;
  font-weight:400;
  font-size: clamp(16px, 1.3vw, 22px);
  line-height: 1;
  color:#333B9E;
  text-transform: capitalize;
}
.about-label::before{
  content:"";
  position:absolute; left:0; top:50%;
  width: 41px; height: 2px;
  background:#333B9E;
  transform: translateY(-50%);
}
/* старая линия не нужна */
.about-line{ display:none; }

/* заголовок */
.about-title{
  grid-area: title;
  margin: 0;
  font-family:'Montserrat',sans-serif;
  font-weight:800;
  font-size: clamp(34px, 3vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 22ch;
}
.about-title .t-blue{ color:#333B9E; }
.about-title .t-navy{ color:#0E1C4B; }

/* абзац */
.about-text{
  grid-area: text;
  margin: 0;
  max-width: 60ch;
  font-family:'Montserrat',sans-serif;
  font-weight:500;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.4;
  color:#6B7280;
}

/* картинка */
.about-img{
  grid-area: image;
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.about-img img{
  display:block;
  width:100%;
  height:auto;            /* не тянуть по высоте */
  object-fit: cover;
  object-position: 50% 40%;
  aspect-ratio: 3 / 1.3;  /* комфортная высота на десктопе */
}

/* карточка */
.about-card{
  grid-area: card;
  width: 100%;
  background: linear-gradient(135deg, #333B9E, #26308F);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  padding: clamp(20px, 2.5vw, 40px);
}
.about-card-text{
  margin: 0;
  max-width: 52ch;
  font-family:'Montserrat',sans-serif;
  font-weight:500;
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.35;
  color:#FFFFFF;
}

/* --- очень большие мониторы --- */
@media (min-width: 1920px){
  .about-canvas{ gap: 40px; }
  .about-img, .about-card{ border-radius: 48px; }
}

/* ===== 1080p: всё помещается в один экран ===== */
@media (min-width: 1200px) and (max-height: 1080px){
  .about{
    padding-block: 4dvh;
    min-height: 100dvh;
    display: grid;
    place-items: stretch;
  }
  .about-canvas{
    align-content: start;
    gap: 2.6dvh;
    padding: 3.2dvh 3.2vw;
  }
  .about-label{ font-size: clamp(14px, 1.1vw, 18px); }
  .about-title{
    font-size: clamp(28px, 2.6vw, 44px);
    line-height: 1.08;
    max-width: 24ch;
  }
  .about-text{
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.35;
    max-width: 62ch;
  }
  .about-img img{
    aspect-ratio: 3 / 1.1;
    max-height: 34vh;   /* компактнее */
  }
  .about-card{
    padding: 2.8dvh 2.6vw;
    border-radius: 32px;
  }
  .about-card-text{
    font-size: clamp(16px, 1.15vw, 20px);
    line-height: 1.3;
  }
}

/* ===== iPad портрет (768–1023.98px): карточка над картинкой ===== */
@media (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait){
  .about{
    padding-block: 6dvh;
  }
  .about-canvas{
    max-width: min(900px, 92vw);
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "text"
      "card"    /* карточка выше */
      "image";  /* картинка ниже */
    gap: 20px;
    padding: 24px;
  }
  .about-title{
    font-size: clamp(28px, 4.5vw, 38px);
    max-width: 26ch;
  }
  .about-text{
    font-size: clamp(16px, 2.3vw, 20px);
    max-width: 70ch;
  }
  .about-img img{
    aspect-ratio: 16 / 10;
    max-height: 38vh;  /* не распухает */
  }
  .about-card{
    padding: 24px;
    border-radius: 28px;
  }
}

/* ===== iPad Pro 1024 портрет: один экран + карточка над картинкой ===== */
@media (width: 1024px) and (orientation: portrait){
  .about{
    padding-block: 4.5dvh;
    min-height: 100dvh;
    display: grid;
    place-items: stretch;
  }
  .about-canvas{
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "text"
      "card"    /* сверху */
      "image";  /* ниже */
    gap: 2.4dvh;
    padding: 3dvh 3.2vw;
  }
  .about-label{ font-size: 16px; }
  .about-title{
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.08;
  }
  .about-text{
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.35;
  }
  .about-img img{
    aspect-ratio: 16 / 10;
    max-height: 32vh;  /* заметно компактнее */
  }
  .about-card{
    border-radius: 28px;
    padding: 2.4dvh 2.6vw;
  }
  .about-card-text{
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.32;
  }
}

/* ===== iPad ландшафт (1024–1199.98px): тоже стекаем, карточка над картинкой ===== */
@media (min-width: 1024px) and (max-width: 1199.98px) and (orientation: landscape){
  .about-canvas{
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "text"
      "card"
      "image";
    gap: 20px;
  }
  .about-img img{
    aspect-ratio: 16 / 9.5;
    max-height: 42vh;
  }
}

/* ===== Телефоны (≤640px): текст → карточка → картинка ===== */
@media (max-width: 640px){
  .about{
    padding-block: 7dvh;
  }
  .about-canvas{
    max-width: 96vw;
    padding: 20px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "text"   /* весь текст */
      "card"   /* синяя карточка над картинкой */
      "image"; /* картинка последней */
    gap: 18px;
  }
  .about-label{ font-size: 14px; padding-left: 44px; }
  .about-label::before{ width: 32px; }
  .about-title{
    font-size: clamp(22px, 6.4vw, 28px);
    max-width: 28ch;
  }
  .about-text{
    font-size: clamp(15px, 4.4vw, 17px);
    line-height: 1.45;
    max-width: none;
  }
  .about-img{ border-radius: 24px; }
  .about-img img{
    aspect-ratio: 16 / 11;
    max-height: 36vh;
  }
  .about-card{
    padding: 18px;
    border-radius: 24px;
  }
  .about-card-text{
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.4;
  }
}


/* ===== 1440px (≈1.5× базового размера) ===== */
@media (min-width: 1440px) and (max-width: 1599.98px){
  .about{
    padding-block: clamp(56px, 6.2vw, 140px);
  }
  .about-canvas{
    max-width: min(1720px, 94vw);   /* шире контейнер */
    grid-template-columns: 1fr 1fr; /* равные колонки, карточка крупнее */
    align-items: stretch;
    gap: clamp(28px, 3vw, 52px);
  }
  .about-title{
    max-width: 28ch;
    font-size: clamp(44px, 3.2vw, 60px); /* ~1.5× */
    line-height: 1.06;
  }
  .about-text{
    max-width: 70ch;
    font-size: clamp(19px, 1.25vw, 24px); /* ~1.5× */
    line-height: 1.48;
  }
  .about-img{ border-radius: 44px; }
  .about-img img{
    aspect-ratio: 16 / 7.6;               /* чуть выше */
    min-height: clamp(360px, 36vh, 520px); /* рост блока ≈1.5× */
  }
  .about-card{
    border-radius: 44px;
    padding: clamp(26px, 2.6vw, 46px);
    min-height: clamp(360px, 36vh, 520px); /* совпадает с картинкой */
  }
  .about-card-text{
    max-width: 60ch;
    font-size: clamp(18px, 1.1vw, 22px);
    line-height: 1.48;
  }
}

/* ===== 1600px (держим ту же логику и масштаб ≈1.5×) ===== */
@media (min-width: 1600px) and (max-width: 1919.98px){
  .about{
    padding-block: clamp(64px, 6.6vw, 150px);
  }
  .about-canvas{
    max-width: min(1820px, 94vw);
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: clamp(32px, 3.2vw, 56px);
  }
  .about-title{
    max-width: 30ch;
    font-size: clamp(48px, 3.1vw, 64px);
  }
  .about-text{
    max-width: 72ch;
    font-size: clamp(20px, 1.2vw, 25px);
    line-height: 1.5;
  }
  .about-img{ border-radius: 48px; }
  .about-img img{
    aspect-ratio: 16 / 7.4;
    min-height: clamp(190px, 38vh, 250px);
  }
  .about-card{
    border-radius: 48px;
    padding: clamp(28px, 2.8vw, 50px);
    min-height: clamp(190px, 38vh, 250px);
  }
  .about-card-text{
    font-size: clamp(18px, 1.05vw, 23px);
    line-height: 1.5;
  }
}

/* ===== ≥1920px (чуть добавим, но не «в 2 раза») ===== */
@media (min-width: 1920px){
  .about{
    padding-block: clamp(72px, 7vw, 170px);  }
  .about-canvas{
    max-width: min(1880px, 92vw);
    gap: clamp(36px, 3.2vw, 48px);
  }
  .about-img img{
    min-height: clamp(270px, 40vh, 350px);
  }
  .about-card{
    min-height: clamp(270px, 40vh, 350px);
    padding: clamp(30px, 3vw, 56px);
  }
}

/* фиксируем шапку — перебиваем старое sticky */
.site-header{
  position: fixed !important;   /* было sticky */
  top: 0 !important;
  left: 0; right: 0;
  z-index: 1102;                /* поверх всего */
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(20,32,71,.05);
  will-change: transform;
}

/* даём месту под фикс-шапку: контент не уезжает под неё */
body{
  padding-top: var(--header-h) !important;
}

/* если в брейкпоинтах меняешь --header-h, отступ подстраивается сам */

/* плавные якоря: чтобы прокрутка к секциям не уезжала под шапку */
html{ scroll-behavior: smooth; }
:target{ scroll-margin-top: calc(var(--header-h) + 12px); }

/* (опционально) безопасная зона для iOS с вырезом */
@supports (padding: max(0px)) {
  body { padding-top: calc(var(--header-h) + env(safe-area-inset-top)) !important; }
}






/* ===== SERVICES 2 (Наши услуги) — универсально на всех ширинах ===== */
.offer{
  background:#333B9E;
  color:#fff;
}

/* Внутренний контейнер */
.offer .offer__inner{
  box-sizing:border-box;
  margin: 0 auto;
  padding: 96px 24px;              /* базовые поля; справа/слева безопасно на мобилках */
  min-height: 620px;

  display:grid;
  grid-template-columns: 1fr;      /* одна колонка: eyebrow, заголовок, список */
  row-gap: 28px;
}

/* Линия + подпись (оставляем как есть) */
.offer .offer__eyebrow{
  display:flex; align-items:center; gap:12px; justify-content:flex-start;
}
.offer .offer__line{
  width:41px; height:0; border-top:2px solid rgba(255,255,255,.95);
}
.offer .offer__label{
  font: 400 18px/1 'Montserrat',sans-serif;
}

/* Заголовок — чуть правее левого края на всех устройствах */
.offer .offer__title{
  margin:0;
  font: 800 clamp(28px,2.2vw,40px)/1.1 'Montserrat',sans-serif;
  color:#fff;
  max-width: 1500px;               /* чтобы строки не растягивались слишком */
  padding-left: clamp(16px, 2.5vw, 24px);  /* лёгкий отступ всегда */
}

/* Список с галочками */
.offer .offer__list{
  --check-size: 24px;
  --check-gap: 16px;

  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  row-gap:14px;

  font: 500 clamp(18px,1.25vw,22px)/1.2 'Montserrat',sans-serif;
  text-align:left;
  max-width: 1000px;               /* комфортная ширина блока списка */
  margin-inline: auto;             /* центрируем блок */
}
.offer .offer__list li{
  position:relative;
  padding-left: calc(var(--check-size) + var(--check-gap));
}
.offer .offer__list li::before{
  content:"";
  position:absolute; left:0; top:50%;
  width:var(--check-size); height:var(--check-size);
  transform:translateY(-50%);
  background:url("assets/check.png") center/contain no-repeat;
}

/* ===== ШИРЕ 1024px — больше воздуха слева, «как на макете» ===== */
@media (min-width: 1024px){
  .offer .offer__inner{
    padding-left: 105px;           /* твоя “гид-колонка” слева */
    padding-right: clamp(32px, 6vw, 160px);
    row-gap: 36px;
  }
  .offer .offer__title{
    padding-left: 20px;            /* чуть сильнее отвести заголовок от левой стены */
  }
  .offer .offer__list{
    max-width: 1000px;
  }
}

/* ===== БОЛЬШИЕ ЭКРАНЫ 1440+ — фиксированный сдвиг списка на 200px влево от центра ===== */
@media (min-width: 1440px){
  .offer .offer__list{
    /* Центр + сдвиг влево на 200px */
    transform: translateX(-200px);
  }
}

/* ===== МАЛЫЕ/СРЕДНИЕ ЭКРАНЫ — адаптивный (уменьшенный) сдвиг, чтобы не уезжало за край ===== */
@media (max-width: 1439.98px){
  .offer .offer__list{
    /* На узких экранах держим тот же “характер”, но безопасно:
       от -200px на очень широких до 0 на совсем узких */
    transform: translateX(clamp(-200px, -12vw, 0px));
  }
}
/* ===== МОБИЛКИ: вернуть список на место ===== */
@media (max-width: 767px){
  .offer .offer__inner{
    padding-left: 16px;
    padding-right: 16px;
  }
  .offer .offer__title{
    padding-left: 16px;        /* чуть от левого края, как просил */
  }
  .offer .offer__list{
    max-width: none;
    margin: 12px 0 0 0;
    justify-self: stretch;
    transform: none !important; /* ← главный сброс: отменяем сдвиг/центрирование */
  }
  .offer .offer__list li{
    padding-left: calc(var(--check-size) + var(--check-gap)); /* оставляем место под иконку */
  }
}







/* ===== PRICE — базовые переменные секции ===== */
.price{
  --blue: #333B9E;
  --text: #0E1C4B;
  --radius: 56px;

  /* контейнерные поля секции (лево 105px по ТЗ) */
  --left: 105px;
  --right: clamp(32px, 5vw, 96px);

  background:#fff;
  padding-block: clamp(48px, 6vw, 96px);
}
.price__wrap{
  margin: 0;
  width: 100%;
  padding-left: var(--left);
  padding-right: var(--right);
  position: relative;
}

/* ===== ЛЕЙБЛ “Прайс-Лист” — линия + текст ===== */
.price__label{
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px 0;
  color: #2E3C93;
  font: 700 18px/1.1 Montserrat, sans-serif;
}
.price__label::before{
  content: "";
  width: 56px; height: 3px;
  background: var(--text);
  border-radius: 2px;
  display:inline-block;
}

/* ===== Заголовок ===== */
.price__title{
  margin: 0 0 clamp(28px, 4vw, 56px);
  color: var(--text);
  font: 800 clamp(28px, 2.6vw, 40px)/1.25 Montserrat, sans-serif;
}
.price .t-blue{ color: var(--blue); }
.price .t-dark{ color: var(--text); }

/* ===== Сетка карточек ===== */
.price__grid{
  /* ширина одного трека-карточки и зазоры */
  --card-w: clamp(360px, 24vw, 400px);
  --card-gap: clamp(56px, 5vw, 96px);
  --badge-bleed: 16px; /* учитывать вылет ленты слева */

  display: grid;
  grid-template-columns: repeat(3, var(--card-w));
  justify-content: center;            /* вся сетка строго по центру */
  column-gap: calc(var(--card-gap) + var(--badge-bleed));
  row-gap: var(--card-gap);
  align-items: stretch;
  justify-items: stretch;
}

/* ===== Карточка ===== */
.card{
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: visible;                  /* лента может выступать */
  background:#fff;

  /* вместо border — внутренняя 1px-обводка (без “полос” с картинкой) */
  border: none;
  box-shadow: 0 0 0 1px rgba(217,217,217,.9) inset;

  display:flex;
  flex-direction:column;

  /* размеры и ритм */
  --img-h: 220px;         /* высота картинки (делает её “пожатой”) */
  --badge-gap: 10px;      /* зазор между фото и лентой */
  --badge-h: 48px;        /* высота ленты (на десктопе) */
  --list-clearance: 22px; /* зазор между лентой и первой строкой списка */
  --text-wall: 20px;      /* «белые стенки» слева/справа у текста */
}

/* Фото */
.card__img{
  display:block;
  width: 100%;
  height: var(--img-h);
  object-fit: cover;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
/* фокус кадра — можно подправить под свои фото */
.price__grid .card:nth-child(1) .card__img{ object-position: left center; }
.price__grid .card:nth-child(2) .card__img{ object-position: right center; }
.price__grid .card:nth-child(3) .card__img{ object-position: center top; }

/* Лента (бейдж) — квадрат слева, скругл. справа, немного выносится */
.card__badge{
  --badge-out: 12px;                  /* вынос за левый край карточки */
  position: absolute;
  left: calc(-1 * var(--badge-out));
  top: calc(var(--img-h) + var(--badge-gap));
  height: var(--badge-h);


  display:flex; align-items:center;
  padding-left: 22px;
  padding-right: 28px;
  background: var(--blue);
  color:#fff;
  font: 700 clamp(12px, 1.2vw, 18px)/1 Montserrat, sans-serif;
  font-variant: small-caps;

  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;

  z-index: 3;
  box-shadow: 0 6px 18px rgba(51,59,158,.18);
}

/* Список — строго ниже ленты и с «белыми стенками» */
.card__list{
  width: calc(100% - 2 * var(--text-wall));
  margin-left: auto;
  margin-right: auto;

  margin-top: calc(var(--badge-gap) + var(--badge-h) + var(--list-clearance));
  margin-bottom: clamp(8px, 1.2vw, 14px);

  list-style: disc outside;
  padding-left: 20px;
  color: var(--text);
  font: 400 clamp(14px, 1.25vw, 18px)/1.25 Montserrat, sans-serif;

  position: relative;
  z-index: 2;
}
.card__list li{ margin-block: clamp(4px, .6vw, 6px); }

/* Цена и подпись */
.card__price{
  width: calc(100% - 2 * var(--text-wall));
  margin-left: auto; margin-right: auto;
  margin-top: auto;                    /* прижать к низу */
  text-align:center;
  color: var(--text);
  font: 800 clamp(18px, 1.8vw, 26px)/1 Montserrat, sans-serif;
  padding-top: clamp(8px, 1vw, 12px);
}
.card__note{
  width: calc(100% - 2 * var(--text-wall));
  margin-left: auto; margin-right: auto;
  text-align:center;
  color: var(--text);
  font: 450 clamp(12px, 1vw, 14px)/1 Montserrat, sans-serif;
  padding-bottom: clamp(16px, 2vw, 20px);
}

/* ===== Планшеты (iPad) — 2 колонки, нижняя карта по центру ===== */
@media (min-width: 768px) and (max-width: 1199.98px){
  .price__wrap{
    padding-left: 20px; padding-right: 20px; margin-inline:auto;
  }
  .price__grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: clamp(18px, 3vw, 28px);
    row-gap: clamp(22px, 3vw, 32px);
    justify-items: center;
  }
  .card{ width: 90%; --img-h: 200px; --badge-gap: 8px; --list-clearance: 20px; }
  .price__grid > .card:last-child{
    grid-column: 1 / -1; justify-self: center; width: min(520px, 90%);
  }
}

/* ===== Телефоны — 1 колонка, всё компактнее, без выноса ленты ===== */
@media (max-width: 767.98px){
  .price__wrap{ padding-left: 16px; padding-right: 16px; }

  .price__grid{
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 5vw, 24px);
    justify-items: stretch;
  }

  .card{
    width: 100%;
    --img-h: 170px;
    --badge-gap: 6px;
    --badge-h: 44px;
    --list-clearance: 18px;
    --text-wall: 18px;
  }
  .card__badge{
    left: 0;                          /* на мобиле не выносим ленту */
    padding-left: 18px; padding-right: 20px;
    box-shadow: 0 4px 12px rgba(51,59,158,.14);
  }
  .card__list{
    width: calc(100% - 2 * var(--text-wall));
    margin-top: calc(var(--badge-gap) + var(--badge-h) + var(--list-clearance));
    margin-bottom: 10px;
  }
  .card__price{ font-size: clamp(18px, 5.6vw, 22px); line-height:1.15; }
  .card__note{ padding-bottom: 14px; }
}

/* ===== XXL (очень большие экраны) — чуть больше воздуха справа ===== */
@media (min-width: 1920px){
  .price{ --right: max(96px, 8vw); }
}

.card__badge{
  /* твои существующие стили ленты тут ... */

  /* переменные для PNG-носика */
  --notch-url: url("assets/notch.png");  /* путь к PNG */
  --notch-w: 20px;                       /* ширина носика */
  --notch-h: 13px;                       /* высота носика */
  --notch-rot: -30deg;                   /* угол поворота */
  --notch-x: -10px;                      /* смещение по X от левого края ленты */
  --notch-y: 100%;                       /* смещение по Y от верха ленты */
  --notch-z: 3;                          /* слой: ниже ленты, выше карточки */
}


.card__badge::after{
  content: "";
  position: absolute;
  width: var(--notch-w);
  height: var(--notch-h);
  left: var(--notch-x);
  top: var(--notch-y);

  /* рисуем PNG, не растягивая */
  background-image: var(--notch-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* ставим “в угол”: чутка левее ленты и по центру её нижней кромки */
  transform: translate(-100%, -50%) rotate(var(--notch-rot));
  transform-origin: left center;

  z-index: var(--notch-z);   /* ниже ленты, выше карточки */
  pointer-events: none;
}

/* левая */
.price__grid .card:nth-child(1) .card__badge{
  --notch-rot: 5deg;
  --notch-x: 16px;
  --notch-y: 107%;
}
/* центральная */
.price__grid .card:nth-child(2) .card__badge{
  --notch-rot: 5deg;
  --notch-x: 16px;
  --notch-y: 107%;
}
/* правая */
.price__grid .card:nth-child(3) .card__badge{
  --notch-rot: 0deg;
  --notch-x: 16px;
  --notch-y: 107%;
}


/* Аккуратно «срезаем» 1px у фото третьей карточки, чтобы скрыть чёрные линии */
.price__grid .card:nth-child(3) .card__img{
  /* обрезаем 1px сверху и слева, повторяя скругление */
  clip-path: inset(1px 0 0 1px round var(--radius));
}

/* Если вдруг у тебя видна только верхняя линия — хватит и этого: */
/*
.price__grid .card:nth-child(3) .card__img{
  clip-path: inset(1px 0 0 0 round var(--radius));
}
*/

/* Фолбэк для старых браузеров без clip-path (например, старый iOS Safari) */
@supports not (clip-path: inset(1px)){
  .price__grid .card:nth-child(3) .card__img{
    position: relative;
    transform: translate(-1px, -1px);
    width: calc(100% + 1px);
    height: calc(var(--img-h) + 1px);
  }
}






















/* ===== CONTACT (1440×1079) ===== */
/* Используются переменные: var(--canvas-w), var(--brand), var(--ink) */

.contact{
  background: rgba(236, 236, 236, 0.5);
}

.contact-canvas{
  position: relative;
  width: var(--canvas-w);     /* 1440 */
  height: 900px;             /* фикс под макет */
  margin: 0 auto;
  padding: 0 96px;            /* внутренние поля слева/справа */

}

/* Линия рядом с подписью
   Figma: width 52.03, top 4116.96, left 595, border 2px #0E1C4B
   Относительно верха секции (top 4007): 4116.96 - 4007 ≈ 110px */
.contact-line{
  position: absolute;
  left: 595px; top: 110px;
  width: 52px; height: 0;
  border-top: 2px solid rgba(14,28,75,1);
}

/* Подпись "Связаться с Нами."
   Figma: width 170×22, top 4105, left 670, 18px Regular small-caps, #333B9E
   Относительно секции: 4105 - 4007 = 98px */
.contact-label{
  position: absolute;
  left: 670px; top: 98px;
  width: 170px; height: 22px;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  font-variant: small-caps;
  color: rgba(51,59,158,1);
}

/* Заголовок 2 строки
   Figma: width 881×89, top 4174, left 281, 40px ExtraBold, центр, Capitalize
   Относительно секции: 4174 - 4007 = 167px */
.contact-title-abs{
  position: absolute;
  left: 281px; top: 167px;
  width: 950px;
  margin: 0;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-weight: 800;            /* ExtraBold */
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: capitalize;
}
.contact-title-abs .t1{ color: rgba(51,59,158,1); }  /* "Остались Вопросы?" */
.contact-title-abs .t2{ color: rgba(14,46,75,1); }   /* "Оставьте Заявку..." */

/* Контент: сетка формы и карточки */
.contact-grid{
  padding-top: 300px;          /* отступ вниз от заголовка */
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* форма шире — разные размеры колонок */
  gap: 36px;

  /* === фикса равной высоты колонок === */
  align-items: stretch;         /* растягиваем оба грид-айтема по высоте строки */
}
.contact-grid > *{
  align-self: stretch;          /* подстраховка — каждый ребёнок растягивается */
}

/* --- Форма --- */
.ac-form{
  background: #f5f6fb;
  border: 1px solid rgba(20,32,71,0.08);
  border-radius: 24px;
  padding: 28px;
}
.ac-form--wide{ background:#f3f4f8; }

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.form-field--full{ grid-column: 1 / -1; }

.form-field > span{
  display: block;
  margin-bottom: 8px;
  font: 600 14px/1.1 Montserrat, sans-serif;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea{
  width: 100%;
  font: 500 16px/1.2 Montserrat, sans-serif;
  padding: 14px 16px;
  border: 1px solid #dfe3ec;
  border-radius: 14px;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea{ resize: vertical; }

.form-field input::placeholder,
.form-field textarea::placeholder{ color: #b7bccc; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(46,55,144,.12);
}

.form-check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 500 13.5px/1.4 Montserrat, sans-serif;
  color: var(--ink);
}
.form-check input{
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.form-check a{
  color: var(--brand);
  text-decoration: underline;
}

.form-actions{
  margin-top: 10px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font: 800 16px/1 Montserrat, sans-serif;
}
.btn-dark{ background: var(--ink); color: #fff; }
.btn[disabled]{ opacity: .6; cursor: progress; }

.form-msg{
  min-height: 22px;
  font: 500 14px/1.4 Montserrat, sans-serif;
  color: var(--ink);
}

/* --- Правая колонка: синяя карточка --- */

.contact-info .info-box{
  height: 100%;                 /* растягиваем до высоты строки грида (как форма) */
  display: flex;
  flex-direction: column;
  background: var(--brand);
  color: #fff;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(20,32,71,.12);
}

/* карта — фиксированная высота, остальной контент идёт ниже */
.map-wrap{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 210px;
  margin-bottom: 18px;

  /* фиксируем высоту в флекс-контейнере */
  flex: 0 0 210px;
}
.map-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-info h3{
  margin: 14px 0 6px;
  font: 800 24px/1.2 Montserrat, sans-serif;
  color: #fff;
}
.contact-info p{
  margin: 0 0 12px;
  font: 500 15px/1.5 Montserrat, sans-serif;
  color: #eef1ff;
}
.contact-info a{
  color: #fff;
  text-decoration: underline;
}
.u-upper{ text-transform: uppercase; }

/* Адаптивный запас (можно оставить — он ничего не ломает) */
@media (max-width: 1200px){
  .contact-canvas{ padding: 0 24px; height: auto; }
  .contact-grid{
    grid-template-columns: 1fr;
    padding-top: 260px;
    align-items: stretch;
  }
  .contact-grid > *{ align-self: auto; }
}

/* ===== BOTTOM BANNER (1440×246) ===== */
.bottom-banner { position: relative; }
.bottom-banner-canvas{
  position: relative;
  width: 1440px;
  height: 246px;
  margin: 0 auto;        /* центрируем как все секции */
}
.bottom-banner-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;     /* картинка обрежется по блоку без искажений */
  object-position: center;
  display: block;
}


/* ============ CONTACT: Large screens / breathe & full-width ============ */

/* Фон секции и вертикальный «воздух» */
.contact{
  background: rgba(236,236,236,.7);
  padding-block: clamp(24px, 6vw, 60px);
}

/* Полотно: больше не фикс 1440×1079 */
.contact-canvas{
  position: relative;
  width: min(100%, var(--canvas-w, 1760px)); /* уважаем твою переменную, иначе 1760 */
  height: auto;                               /* снимаем фикс 1079px */
  margin: 0 auto;
  padding-inline: clamp(32px, 6vw, 120px);    /* «безопасные» поля слева/справа */
  padding-bottom: 0;

}

/* Линия: центрируем и переводим в поток */
.contact-line{
  position: static;
  display: block;
  width: 52px;
  height: 2px;
  margin: 0 auto 12px;
  border: 0;
  background: #0E1C4B;
}

/* Лейбл под линией — тоже в поток и по центру */
.contact-label{
  position: static;
  display: block;
  margin: 0 auto 10px;
  width: auto; height: auto;
  text-align: center;
  font-variant: small-caps;
  color: rgba(51,59,158,1);
}

/* Заголовок — больше не absolute; адаптивный размер */
.contact-title-abs{
  position: static;
  left: auto; top: auto;
  width: auto;
  margin: 0 auto;
  max-width: 1000px;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: capitalize;
}
.contact-title-abs .t1{ color: rgba(51,59,158,1); }
.contact-title-abs .t2{ color: rgba(14,46,75,1); }

/* Сетка контента: адаптивная, равные высоты сохраняем */
.contact-grid{
  padding-top: clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(420px, .9fr);
  gap: clamp(20px, 2.2vw, 40px);
  align-items: stretch;
}
.contact-grid > *{ align-self: stretch; }

/* Форма: чуть больше воздуха на больших экранах */
.ac-form{ padding: clamp(24px, 2.2vw, 32px); }
.form-grid{ gap: clamp(14px, 1.2vw, 22px); }

/* Карта в синей карточке — гибкая по высоте */
.map-wrap{
  height: clamp(220px, 24vh, 340px);
  flex: 0 0 auto;
}

/* Чуть крупнее заголовки справа на десктопах */
.contact-info h3{ font-size: clamp(20px, 1.4vw, 24px); }

/* Очень большие экраны (≥1920px): ещё шире холст и баланс колонок */
@media (min-width: 1920px){
  .contact-canvas{ width: min(100%, 1840px); }
  .contact-grid{ grid-template-columns: 1.15fr .85fr; }
}

/* Сохраняем твой мобильный брейкпоинт, но улучшаем паддинги */
@media (max-width: 1200px){
  .contact-canvas{
    padding-inline: 24px;
    height: auto;
  }
  .contact-grid{
    grid-template-columns: 1fr;
    padding-top: 260px; /* как у тебя — если захочешь, потом уменьшим */
  }
}




/* Линия + подпись в одну строку */
.contact-line{ display: none; }                  /* прячем отдельный элемент */

.contact-label{
  position: static;
  display: inline-flex;                          /* одна строка */
  align-items: center;                           /* выравнивание по центру строки */
  gap: 12px;                                     /* расстояние между линией и текстом */
  margin: 0 auto 10px;                           /* центрируем блок */
  width: auto; height: auto;
  text-align: center;
  font: 400 18px/1 Montserrat, sans-serif;
  font-variant: small-caps;
  color: rgba(51,59,158,1);
}

.contact-label::before{
  content: "";
  width: 52px;
  height: 2px;
  background: #0E1C4B;
  flex: 0 0 52px;
  transform: translateY(0);                      /* ровно по линии текста */
}

/* Чтобы вся группа (линия + текст) оставалась по центру */
/* 1) Вернём нормальное выравнивание всему полотну */
.contact-canvas{ text-align: initial; }   /* или left — как тебе удобнее */

/* 2) Линия слева от подписи, только для .contact-label */
.contact-line{ display: none; }           /* старую линию скрываем */

.contact-label{
  position: static;
  display: flex;
  align-items: center;       /* линия и текст на одной высоте */
  gap: 12px;                 /* расстояние между линией и текстом */
  width: fit-content;        /* ширина по содержимому */
  margin: 0 auto 10px;       /* центрируем только этот блок */
  height: auto;
  text-align: left;          /* не наследуем центрирование вдруг */
}

.contact-label::before{
  content: "";
  width: 52px;
  height: 2px;
  background: #0E1C4B;
  flex: 0 0 52px;
}


/* убираем прежние отступы */
.form-check .policy-link{ margin-left: 0; }

/* компактный разделитель: тире рисуем внутри ссылки */
.form-check .policy-link{
  display: inline-flex;          /* тире и текст держим вместе */
  align-items: center;
  gap: .6ch;                     /* расстояние вокруг тире */
  white-space: nowrap;           /* не переносить "— Читать…" */
  text-decoration: underline;
}

.form-check .policy-link::before{
  content: "—";                  /* без лишнего пробела */
  opacity: .6;
}

/* на всякий случай: сам текстовый контейнер остаётся inline */
.form-check > span{
  display: inline;               /* не превращать в flex/block */
  text-align: left;
}

/* policy-link: без подчёркивания, но с понятным ховером/фокусом */
.form-check .policy-link{
  text-decoration: none;      /* убрать подчёркивание */
}

.form-check .policy-link:hover{
  text-decoration: underline; /* если хочешь — подсветка на ховер */
}

/* для доступности — чёткий фокус клавиатурой */
.form-check .policy-link:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* ================== 1) Общие мелкие правки ================== */
/* Чуть компактнее поля в инпутах на узких экранах */
@media (max-width: 1280px){
  .form-field input,
  .form-field select,
  .form-field textarea{
    padding: 12px 14px;
  }
}

/* ================== 2) Планшеты (iPad 768–1024) ================== */
/* Убираем большой разрыв между заголовком и формой, уменьшаем «синюю» карточку */
@media (min-width: 768px) and (max-width: 1199px){
  .contact-grid{
    grid-template-columns: 1fr;      /* форма сверху, инфо снизу */
    padding-top: 48px;               /* было 260px — делаем компактнее */
    gap: 24px;
  }
  .contact-title-abs{                /* заголовок чуть меньше */
    font-size: clamp(26px, 3.2vw, 36px);
  }
  .ac-form{
    padding: 22px;
  }

  .contact-info .info-box{           /* «синий квадрат» компактнее */
    padding: 20px;
    border-radius: 22px;
  }
  .contact-info h3{ font-size: 20px; }
  .contact-info p { font-size: 14px; }

  .map-wrap{
    height: 180px;                   /* была выше — уменьшаем */
    flex: 0 0 180px;
    margin-bottom: 14px;
  }
}

/* ================== 3) Телефоны (≤480) ================== */
/* Стекуем всё по одной колонке, делаем поля и шрифты читабельными */
@media (max-width: 480px){
  .contact{
    padding-block: 40px;
  }

  .contact-canvas{
    padding-inline: 16px;
  }

  /* Заголовки — компактнее, без гигантского промежутка */
  .contact-grid{
    grid-template-columns: 1fr;
    padding-top: 28px;
    gap: 18px;
  }
  .contact-title-abs{
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.2;
    margin-bottom: 6px;
  }

  /* Форма: только одна колонка, чтобы e-mail точно помещался */
  .form-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .form-field--full{ grid-column: 1 / -1; }

  /* iOS не будет зумить клавиатуру при фокусе, но текст влезает */
  .form-field input,
  .form-field select,
  .form-field textarea{
    font-size: 16px;     /* минимум для iOS, чтобы не зумило */
    padding: 12px 14px;
    border-radius: 12px;
  }

  .ac-form{
    padding: 16px;
    border-radius: 18px;
  }

  /* чекбокс + подпись */
  .form-check{
    font-size: 13px;
    gap: 8px;
  }
  .form-check input{ width: 18px; height: 18px; }

  /* «Читать соглашение» — без подчёркивания, с тире и без переноса */
  .form-check .policy-link{
    white-space: nowrap;
    text-decoration: none;
  }

  /* Кнопка отправки — на всю ширину, удобнее жать большим пальцем */
  .form-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn{
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 16px;
  }

  /* «Синяя» карточка компактнее на телефонах */
  .contact-info .info-box{
    padding: 16px;
    border-radius: 18px;
  }
  .contact-info h3{ font-size: 18px; }
  .contact-info p { font-size: 13.5px; }

  .map-wrap{
    height: 160px;
    flex: 0 0 160px;
    margin-bottom: 12px;
  }
}

/* ================== 4) Узкие ноутбуки / 1080p-мониторы с малой высотой окна ================== */
/* Когда по высоте мало места, убираем «лишний воздух» наверху */
@media (min-width: 1200px) and (max-height: 900px){
  .contact{
    padding-block: 48px;
  }
  .contact-grid{
    padding-top: 40px;
    gap: 28px;
  }
  .map-wrap{ height: 200px; flex-basis: 200px; }
}

/* ================== 5) Мелкие улучшалки для промежуточных ширин ================== */
@media (min-width: 481px) and (max-width: 767px){
  .contact-canvas{ padding-inline: 20px; }
  .contact-grid{ padding-top: 36px; gap: 20px; }
  .form-grid{ grid-template-columns: 1fr; gap: 14px; }
  .ac-form{ padding: 18px; }
  .map-wrap{ height: 170px; flex-basis: 170px; }
}































/* ===== BOTTOM BANNER ===== */
/* ===== FULL-BLEED BOTTOM BANNER (на все устройства) ===== */

/* 1) Прорываемся из центрированного контейнера на всю ширину экрана */
.bottom-banner{
  position: relative;
  width: 100vw;                  /* ширина = ширине вьюпорта */
  left: 50%;                     /* сдвигаем влево на половину ширины родителя… */
  margin-left: -50vw;            /* …а этим возвращаемся к краю вьюпорта */
  overflow-x: clip;              /* без горизонтального скролла из-за 100vw */
}

/* 2) Контент баннера: адаптивная высота под разные брейкпоинты */
.bottom-banner-canvas{
  position: relative;
  width: 100%;
  /* базовая (ноутбуки/десктоп): соотношение 1440×246 ≈ 17.1vw, с ограничениями */
  height: clamp(240px, 17.1vw, 520px);
}

/* планшеты */
@media (max-width: 1024px){
  .bottom-banner-canvas{
    /* делаем баннер чуть выше на более узких экранах */
    height: clamp(220px, 28vw, 440px);
  }
}

/* телефоны */
@media (max-width: 600px){
  .bottom-banner-canvas{
    /* ещё выше, чтобы баннер не выглядел «полоской» */
    height: clamp(180px, 45vw, 360px);
  }
}

/* 3) Картинка всегда покрывает область без искажений */
.bottom-banner-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}








/* ===== BASE TOKENS ===== */
:root{
  --footer-bg: #0D1C45;
  --footer-fg: #ffffff;
  --footer-muted: #EEF1FF;
  --footer-accent: rgba(51,59,158,.8);
}

/* ===== FULL-BLEED WRAPPER ===== */
.site-footer{
  background: var(--footer-bg);
  color: var(--footer-fg);
  width: 100vw;           /* full-bleed */
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow-x: clip;       /* без горизонтального скролла */
}

/* ===== INNER GRID ===== */
.footer-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: minmax(280px,1fr) minmax(260px,1fr) minmax(320px,1fr);
  gap: 32px 48px;
  align-items: start;
  font-family: 'Montserrat', system-ui, -apple-system, Arial, sans-serif;
}

/* Title + separator */
.footer-title{
  grid-column: 1 / -1;
  margin: 0 0 18px 0;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.1;
}
.footer-sep{
  grid-column: 1 / -1;
  border: 0;
  height: 1px;
  background: var(--footer-accent);
  margin: 0 0 8px 0;
}

/* LEFT */
.footer-left{ grid-column: 1; }
.footer-logo{
  width: clamp(180px, 22vw, 320px);
  height: auto;
  display: block;
  object-fit: contain;
  margin-top: 0px;
    transform: translateY(-100px);
}
.socials{
  display: flex;
  gap: 14px;
  margin-top: -120px;
}
.social{
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid rgba(216,222,248,.35);
  text-decoration: none;
}
.social img{ width: 22px; height: 22px; display: block; }

/* MIDDLE (nav) */
.footer-nav{ grid-column: 2; }
.col-title{
  margin: 8px 0 10px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
}
.nav-list{
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.nav-list a{
  color: var(--footer-muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
}
.nav-list a:hover{ text-decoration: underline; }

/* RIGHT (contacts) */
.footer-contacts{ grid-column: 3; }
.contacts{
  font-style: normal;
  color: var(--footer-muted);
  font-size: 18px;
  line-height: 1.55;
  display: grid; gap: 12px;
}
.contacts a{ color: #fff; text-decoration: underline; }
.addr{ margin-top: 4px; }



/* ===== MOBILE (≤600px): 1 col, centered ===== */
@media (max-width: 600px){
  .footer-inner{
    grid-template-columns: 1fr;
    padding: 40px 16px 32px;
    gap: 20px;
    text-align: center;
  }
  .footer-left,
  .footer-nav,
  .footer-contacts{ grid-column: 1; }

  .footer-logo{ margin-inline: auto; width: clamp(150px, 48vw, 240px); }
  .socials{ justify-content: center; }
  .col-title{ font-size: 20px; }
  .nav-list a, .contacts{ font-size: 16px; }
}


/* ——— iPad mini / Air: держим 3 колонки, но компактнее ——— */
@media (min-width: 744px) and (max-width: 900px){
  .footer-inner{
    /* 3 колонки остаются, но без жёстких min-width */
    grid-template-columns: 1fr 0.9fr 1.1fr;
    gap: 20px 24px;
    padding: 40px 16px 28px;
    max-width: 100%; /* не держим 1280px */
  }

  .footer-title{
    font-size: clamp(26px, 4.4vw, 48px);
    margin-bottom: 12px;
  }
  .footer-sep{ margin-bottom: 4px; }

  /* логотип и соц-кнопки поменьше и ближе к заголовку */
  .footer-logo{
    width: clamp(150px, 22vw, 220px);
    margin-top: 0;
    transform: translateY(-6px);
  }
  .socials{ gap: 10px; margin-top: 10px; }
  .social{ width: 40px; height: 40px; }
  .social img{ width: 20px; height: 20px; }

  /* заголовки колонок и текст компактнее */
  .col-title{ font-size: 20px; }
  .nav-list a,
  .contacts{ font-size: 16px; line-height: 1.45; }

  /* не даём правой колонке разъезжаться из-за длинного email */
  .contacts a{
    overflow-wrap: anywhere;   /* переносим длинные ссылки */
    word-break: break-word;
  }
}




/* ===== LEGAL BAR (full-bleed + адаптив) ===== */
.legal{
  /* фон от края до края, даже если секция внутри центр-контейнера */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: #333B9E;
  color: #fff;
  overflow-x: clip;
  font-family: 'Montserrat', system-ui, -apple-system, Arial, sans-serif;
}

/* Внутренний контейнер: flex-строка с переносом при нехватке места */
.legal-canvas{
  max-width: 1280px;
  min-height: 56px;            /* близко к макету 61, но гибче */
  margin: 0 auto;
  padding: 12px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;              /* позволит перенести ссылку на вторую строку на очень узких экранах */

  font-weight: 400;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.4;
  letter-spacing: 0;
}

/* Тексты */
.legal-copy{
  flex: 1 1 auto;              /* занимает доступное пространство слева */
  color: #fff;
}

/* Ссылка справа */
.legal-privacy{
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  text-align: right;
  white-space: nowrap;          /* держим в одну строку, пока позволяет ширина */
}
.legal-privacy:hover{ text-decoration: underline; }
.legal-privacy:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Очень узкие экраны: позволяем ссылке переноситься и выравниваем по правому краю блока */
@media (max-width: 420px){
  .legal-privacy{
    white-space: normal;        /* разрешаем перенос */
    text-align: right;
  }
}



/* Ссылка выглядит как обычный текст */
.legal .footer-privacy {
  text-decoration: none;
  color: inherit;            /* берёт цвет родителя */
}

/* Убираем спец. цвета для состояний */
.legal .footer-privacy:link,
.legal .footer-privacy:visited {
  color: inherit;
  text-decoration: none;
}

/* Без подчёркивания при наведении/нажатии */
.legal .footer-privacy:hover,
.legal .footer-privacy:active,
.legal .footer-privacy:focus {
  text-decoration: none;
}

/* Сохраняем заметный, но аккуратный фокус для клавиатуры */
.legal .footer-privacy:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}
