/* ===========================================================
   Major Express — региональный агент (me-region, Краснодар)
   Фирменные шрифты из брендбука: Officina Sans Bold (заголовки),
   Meta Pro Normal (текст). Цвета — Pantone 151C (оранжевый),
   Cool Gray 10C (тёмно-серый).
   =========================================================== */

@font-face{
  font-family:'Officina';
  /* woff2 вдвое легче исходного ttf; ttf оставлен запасным вариантом */
  src:url('/assets/fonts/OfficinaSansBold.woff2') format('woff2'),
      url('/assets/fonts/OfficinaSansBold.ttf') format('truetype');
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'MetaPro';
  src:url('/assets/fonts/MetaPro-Normal.woff2') format('woff2'),
      url('/assets/fonts/MetaPro-Normal.otf') format('opentype');
  font-weight:400; font-style:normal; font-display:swap;
}

:root{
  --c-orange:#F0801E;
  --c-orange-dark:#Dc6c0c;
  --c-ink:#333438;        /* тёмно-серый логотипа */
  --c-gray-900:#3D3F44;
  --c-gray-950:#2E2F33;
  --c-gray-700:#63666A;   /* Cool Gray 10C */
  --c-gray-500:#8A8C90;
  --c-gray-300:#C9CACD;
  --c-gray-200:#E7E7E9;
  --c-gray-100:#F4F4F5;
  --c-white:#fff;

  --font-head:'Officina', 'Arial Narrow', Arial, sans-serif;
  --font-body:'MetaPro', -apple-system, 'Segoe UI', Arial, sans-serif;

  --radius:8px;
  --container:1200px;
  --header-h:80px;
  --shadow:0 10px 30px rgba(20,21,23,.10);
  --shadow-sm:0 4px 14px rgba(20,21,23,.08);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--c-ink);
  background:var(--c-white);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  overflow-x:clip;              /* ничего не выходит за пределы экрана по горизонтали */
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:700; letter-spacing:.01em; }
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.text-orange{ color:var(--c-orange); }

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:var(--radius);
  font-family:var(--font-head); font-weight:700; font-size:14px;
  border:none; transition:.15s ease; white-space:nowrap; text-transform:uppercase;
  letter-spacing:.02em;
}
.btn--primary{ background:var(--c-orange); color:#fff; }
.btn--primary:hover{ background:var(--c-orange-dark); }
.btn--outline{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.4); }
.btn--outline:hover{ border-color:#fff; background:rgba(255,255,255,.08); }
.btn--ghost{ background:var(--c-gray-100); color:var(--c-ink); }
.btn--ghost:hover{ background:var(--c-gray-200); }
.btn--dark{ background:var(--c-gray-900); color:#fff; }
.btn--dark:hover{ background:#4b4d53; }
.btn--block{ width:100%; }
.btn--lg{ padding:15px 26px; font-size:15px; }
.btn--sm{ padding:9px 16px; font-size:12px; }

/* ---------- Логотип ---------- */
.logo-block{ flex:none; }
.logo-img{ height:60px; width:auto; max-width:none; display:block; flex:none; }
.site-footer .logo-img{ height:46px; margin-left:-15px; }

/* ---------- Шапка ---------- */
.site-header{ position:sticky; top:0; z-index:120; background:var(--c-gray-900); }
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  height:var(--header-h); gap:16px;
}
.header-left{ display:flex; align-items:center; gap:18px; flex:none; }

.main-nav>ul{ display:flex; align-items:center; gap:2px; }
.main-nav .nav-item{ position:relative; flex:none; }
.main-nav>ul>li>a,
.main-nav>ul>li>.nav-toggle{
  display:inline-flex; align-items:center; gap:6px;
  color:var(--c-gray-200); font-family:var(--font-head); font-weight:700;
  font-size:13px; letter-spacing:.03em; text-transform:uppercase;
  padding:10px 8px; border:none; background:transparent; border-radius:6px;
  white-space:nowrap; line-height:20px;
  transition:.15s; cursor:pointer;
}
.main-nav>ul>li>a:hover,
.main-nav>ul>li>.nav-toggle:hover,
.main-nav .nav-item.open>.nav-toggle{ color:#fff; background:rgba(255,255,255,.08); }
.nav-toggle .caret{ width:9px; height:9px; flex:none; transition:.2s; opacity:.8; }
.nav-item.open .nav-toggle .caret{ transform:rotate(180deg); }

/* Выпадающее меню */
.nav-drop{
  position:absolute; top:calc(100% + 10px); left:0; min-width:250px;
  background:#fff; border-radius:12px; box-shadow:var(--shadow);
  padding:8px; opacity:0; visibility:hidden; transform:translateY(8px);
  transition:.16s ease; z-index:130;
}
.nav-item.open .nav-drop{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-drop::before{ content:''; position:absolute; top:-10px; left:0; right:0; height:10px; }
.nav-drop a{
  display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:8px;
  color:var(--c-ink); font-size:14px; font-family:var(--font-body); transition:.12s;
}
.nav-drop a:hover{ background:var(--c-gray-100); color:var(--c-orange); }
.nav-drop a .ic{ color:var(--c-orange); width:16px; text-align:center; flex:none; }

.header-right{ display:flex; align-items:center; gap:10px; flex:none; }
.header-phone{ color:#fff; font-family:var(--font-head); font-weight:700; font-size:15px; white-space:nowrap; text-align:right; }
.header-phone small{ display:block; font-family:var(--font-body); font-weight:400; font-size:11px; color:var(--c-gray-300); letter-spacing:0; }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:8px; border:1px solid rgba(255,255,255,.22);
  background:transparent; color:#fff; transition:.15s; flex:none;
}
.icon-btn:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.5); }
.icon-btn svg{ width:18px; height:18px; }
.header-lk{ color:#fff; }

.burger{ display:none; width:42px; height:42px; border:1px solid rgba(255,255,255,.22);
  border-radius:8px; background:transparent; position:relative; flex:none; }
.burger span, .burger::before, .burger::after{
  content:''; position:absolute; left:11px; right:11px; height:2px; background:#fff; transition:.2s;
}
.burger::before{ top:14px; } .burger::after{ bottom:14px; } .burger span{ top:20px; }

/* ---------- Поиск (модалка) ---------- */
.search-modal{
  position:fixed; inset:0; z-index:200; background:rgba(30,31,35,.55);
  backdrop-filter:blur(4px); display:none; align-items:flex-start; justify-content:center;
  padding:12vh 20px 20px;
}
.search-modal.open{ display:flex; }
.search-box{ width:100%; max-width:640px; background:#fff; border-radius:16px; box-shadow:var(--shadow); overflow:hidden; }
.search-box__field{ display:flex; align-items:center; gap:12px; padding:18px 20px; border-bottom:1px solid var(--c-gray-200); }
.search-box__field svg{ width:22px; height:22px; color:var(--c-gray-500); flex:none; }
.search-box__field input{ flex:1; border:none; outline:none; font-size:18px; font-family:var(--font-body); color:var(--c-ink); }
.search-box__close{ border:none; background:var(--c-gray-100); border-radius:8px; padding:6px 10px; font-size:12px; color:var(--c-gray-700); }
.search-results{ max-height:50vh; overflow:auto; padding:8px; }
.search-results a{ display:block; padding:12px 14px; border-radius:10px; color:var(--c-ink); }
.search-results a:hover, .search-results a.active{ background:var(--c-gray-100); }
.search-results .sr-title{ font-family:var(--font-head); font-weight:700; font-size:15px; }
.search-results .sr-desc{ font-size:13px; color:var(--c-gray-700); margin-top:2px; }
.search-results .sr-empty{ padding:24px 14px; color:var(--c-gray-500); text-align:center; }
.search-hint{ padding:10px 20px; font-size:12px; color:var(--c-gray-500); background:var(--c-gray-100); }

/* ---------- Hero ---------- */
.hero{ position:relative; color:#fff; background:var(--c-gray-900); overflow:hidden; }
.hero__bg{ position:absolute; inset:0; }
.hero__bg img{ width:100%; height:100%; object-fit:cover; filter:brightness(.5) saturate(.9); }
.hero__bg::after{ content:''; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(45,46,51,.92) 0%, rgba(45,46,51,.72) 45%, rgba(45,46,51,.35) 100%); }
.hero__inner{ position:relative; z-index:1; padding:70px 0 60px;
  display:grid; grid-template-columns:1.1fr .9fr; gap:44px; align-items:center; }
.hero__title{ font-size:44px; line-height:1.1; margin:0 0 18px; max-width:600px; }
.hero__title em{ color:var(--c-orange); font-style:normal; }
.hero__subtitle{ font-size:17px; color:var(--c-gray-200); max-width:490px; margin:0 0 30px; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; }

/* Трекер */
.tracker{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16);
  border-radius:16px; padding:24px; backdrop-filter:blur(6px); }
.tracker h3{ margin:0 0 4px; font-size:19px; }
.tracker p.tsub{ margin:0 0 16px; font-size:13px; color:var(--c-gray-300); }
.tracker__tabs{ display:flex; gap:16px; margin-bottom:14px; font-size:13px; color:var(--c-gray-200); flex-wrap:wrap; }
.tracker__tabs label{ display:flex; align-items:center; gap:6px; cursor:pointer; }
.tracker__row{ display:flex; gap:10px; }
.tracker input[type=text]{ flex:1; padding:14px; border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.1); color:#fff; font-size:15px; font-family:var(--font-body); }
.tracker input::placeholder{ color:var(--c-gray-300); }
.field-msg{ margin:10px 0 0; font-size:13px; min-height:18px; }
.field-msg.err{ color:#ff9d7a; }
.field-msg.ok{ color:#8fe3a0; }

/* ---------- Секции ---------- */
.section{ padding:76px 0; }
.section--alt{ background:var(--c-gray-100); }
.section--dark{ background:var(--c-gray-900); color:#fff; }
.section-head{ max-width:680px; margin:0 0 42px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.eyebrow{ display:inline-block; color:var(--c-orange); font-family:var(--font-head); font-weight:700;
  font-size:13px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:12px; }
.section-head h2{ font-size:34px; margin:0 0 12px; line-height:1.15; }
.section-head p{ color:var(--c-gray-700); font-size:16px; margin:0; }
.section--dark .section-head p{ color:var(--c-gray-200); }

/* ---------- Услуги ---------- */
.services{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.service-card{ position:relative; min-height:400px; border-radius:18px; overflow:hidden;
  display:flex; align-items:flex-end; color:#fff; background:var(--c-gray-900); }
.service-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.service-card::after{ content:''; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(20,21,23,.94) 12%, rgba(20,21,23,.15) 70%); }
.service-card__body{ position:relative; z-index:1; padding:30px; width:100%; }
.service-card__tag{ display:inline-block; background:var(--c-orange); color:#fff; font-family:var(--font-head);
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:5px 11px; border-radius:5px; margin-bottom:14px; }
.service-card h3{ font-size:25px; margin:0 0 10px; }
.service-card p{ margin:0 0 18px; color:var(--c-gray-200); font-size:15px; max-width:360px; font-family:var(--font-body); }
.service-links{ display:flex; flex-wrap:wrap; gap:10px; }
.service-links a{ display:inline-flex; align-items:center; gap:6px; font-family:var(--font-head); font-weight:700;
  font-size:12px; text-transform:uppercase; letter-spacing:.03em; color:#fff;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.2); padding:8px 12px; border-radius:7px; transition:.15s; }
.service-links a:hover{ background:var(--c-orange); border-color:var(--c-orange); }

/* ---------- О компании ---------- */
.about{ display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
.about__stats{ display:grid; grid-template-columns:1fr 1fr; gap:22px; margin:26px 0; }
.stat b{ display:block; font-family:var(--font-head); font-size:30px; color:var(--c-orange); line-height:1; margin-bottom:6px; }
.stat span{ font-size:13.5px; color:var(--c-gray-700); }
.stats--cards .stat{ background:var(--c-gray-100); border-radius:14px; padding:22px 24px; }
.stats--cards .stat b{ margin-bottom:8px; }
.stats--cards .stat span{ font-size:15px; }
.about__media{ position:relative; border-radius:18px; overflow:hidden; min-height:420px; box-shadow:var(--shadow); }
.about__media img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }

/* ---------- Договор ---------- */
.contract{ background:var(--c-gray-900); color:#fff; border-radius:20px; padding:50px;
  display:grid; grid-template-columns:1fr 1fr; gap:44px; box-shadow:var(--shadow); }
.contract h2{ font-size:30px; margin:0 0 12px; }
.contract p{ color:var(--c-gray-200); font-size:15px; margin:0 0 24px; max-width:420px; }
.contract__alt{ display:flex; gap:12px; margin-top:22px; flex-wrap:wrap; }
.contract--solo{ grid-template-columns:1fr; }
.contract--solo p{ max-width:680px; font-size:16px; }
.segment{ display:inline-flex; background:rgba(255,255,255,.08); border-radius:999px; padding:5px; margin-bottom:20px; }
.segment button{ border:none; background:transparent; color:var(--c-gray-200);
  padding:10px 20px; border-radius:999px; font-family:var(--font-head); font-size:13px; font-weight:700; text-transform:uppercase; transition:.15s; }
.segment button.is-active{ background:var(--c-orange); color:#fff; }
.form-grid{ display:grid; gap:12px; }
.form-grid .fld{ display:none; flex-direction:column; gap:5px; }
.form-grid .fld.show{ display:flex; }
.form-grid label.lbl{ font-size:12px; color:var(--c-gray-300); font-family:var(--font-body); }
.form-grid input, .form-grid textarea{ padding:13px 14px; border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#fff; font-size:14px; font-family:var(--font-body); width:100%; }
.form-grid input::placeholder, .form-grid textarea::placeholder{ color:var(--c-gray-500); }
.form-grid textarea{ resize:vertical; min-height:64px; }
.form-note{ font-size:12px; color:var(--c-gray-300); margin-top:12px; }
.form-note a{ color:var(--c-orange); }
.form-status{ margin-top:14px; font-size:14px; min-height:20px; }
.form-status.ok{ color:#8fe3a0; } .form-status.err{ color:#ff9d7a; }
.check-row{ display:flex; gap:9px; align-items:flex-start; font-size:12px; color:var(--c-gray-300); }
.check-row input{ width:auto; margin-top:2px; }

/* ---------- Контакты (регионы) ---------- */
.regions{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.region-card{ background:#fff; border:1px solid var(--c-gray-200); border-radius:14px; padding:26px; transition:.15s; }
.region-card:hover{ box-shadow:var(--shadow-sm); border-color:var(--c-gray-300); }
.region-card .region-note{ font-family:var(--font-head); font-size:12px; color:var(--c-orange); font-weight:700; text-transform:uppercase; margin-bottom:10px; display:block; }
.region-card h3{ margin:0 0 12px; font-size:19px; }
.region-card dl{ margin:0; font-size:14px; color:var(--c-gray-700); }
.region-card dl>div{ display:flex; gap:8px; padding:5px 0; border-top:1px solid var(--c-gray-100); }
.region-card dl>div:first-child{ border-top:none; }
.region-card dt{ font-weight:400; color:var(--c-gray-500); min-width:64px; flex:none; }
.region-card dd{ margin:0; color:var(--c-ink); }
.muted{ color:var(--c-gray-500)!important; font-style:italic; }

/* ---------- Поиск города (офисы) ---------- */
.city-search{ max-width:560px; margin:0 auto; position:relative; }
.city-search input{ width:100%; padding:16px 18px; border-radius:12px; border:1px solid var(--c-gray-300);
  font-size:16px; font-family:var(--font-body); }
.city-search input:focus{ outline:none; border-color:var(--c-orange); }
.city-list{ position:absolute; top:calc(100% + 6px); left:0; right:0; background:#fff;
  border:1px solid var(--c-gray-200); border-radius:12px; box-shadow:var(--shadow); max-height:320px; overflow:auto; z-index:20; display:none; }
.city-list.open{ display:block; }
.city-list button{ display:flex; justify-content:space-between; align-items:center; width:100%; text-align:left;
  padding:13px 16px; border:none; background:transparent; font-size:15px; font-family:var(--font-body); color:var(--c-ink); border-top:1px solid var(--c-gray-100); }
.city-list button:first-child{ border-top:none; }
.city-list button:hover, .city-list button.active{ background:var(--c-gray-100); }
.city-list .reg{ font-size:12px; color:var(--c-gray-500); }
.city-list .none{ padding:16px; color:var(--c-gray-500); }

/* ---------- Вкладки (услуги/правила/калькулятор) ---------- */
.tabs{ display:inline-flex; background:var(--c-gray-100); border-radius:999px; padding:5px; margin-bottom:28px; flex-wrap:wrap; }
.tabs button{ border:none; background:transparent; color:var(--c-gray-700); padding:11px 22px;
  border-radius:999px; font-family:var(--font-head); font-weight:700; font-size:13px; text-transform:uppercase; transition:.15s; }
.tabs button.is-active{ background:var(--c-orange); color:#fff; }
.tab-panel{ display:none; } .tab-panel.show{ display:block; }

/* ---------- Встраивание (iframe калькулятор/трекинг) ---------- */
.embed-frame{ width:100%; border:1px solid var(--c-gray-200); border-radius:14px; background:#fff;
  box-shadow:var(--shadow-sm); overflow:hidden; }
.embed-frame iframe{ width:100%; height:820px; border:none; display:block; }
.embed-note{ font-size:13px; color:var(--c-gray-700); margin:0 0 14px; padding:12px 16px; background:#FFF6EE;
  border:1px solid #F6D9BE; border-radius:10px; }
.embed-note b{ color:var(--c-orange); }

/* ---------- Таймлайн истории ---------- */
.timeline{ position:relative; max-width:900px; margin:0 auto; padding:10px 0; }
.tl-item{ position:relative; display:grid; grid-template-columns:auto 1fr; gap:26px;
  padding:24px 0; border-top:1px solid var(--c-gray-200); align-items:start; }
.tl-item:first-child{ border-top:none; padding-top:4px; }
.tl-item:last-child{ padding-bottom:4px; }
.tl-year{ font-family:var(--font-head); font-weight:700; font-size:22px; line-height:27px;
  color:var(--c-orange); text-align:center; justify-self:start; min-width:96px;
  background:var(--c-gray-100); border-radius:9px; padding:7px 14px; }
.tl-body{ position:relative; }
/* ритм вех: год-плашка слева, тонкие разделители между вехами */
.tl-body h3{ margin:5px 0 6px; font-size:18px; }
.tl-body p{ margin:0; color:var(--c-gray-700); font-size:15px; }

/* ---------- Контент-страницы (правила/политика/новости) ---------- */
.page-hero{ background:var(--c-gray-900); color:#fff; padding:56px 0 48px; }
.page-hero .eyebrow{ margin-bottom:10px; }
.page-hero h1{ font-size:38px; margin:0; }
.page-hero p{ color:var(--c-gray-200); margin:12px 0 0; max-width:640px; font-size:16px; }
.breadcrumbs{ font-size:13px; color:var(--c-gray-500); margin-bottom:14px; }
.breadcrumbs a{ color:var(--c-gray-700); } .breadcrumbs a:hover{ color:var(--c-orange); }
.prose{ max-width:820px; font-size:16px; color:var(--c-gray-700); }
.prose h2{ font-size:24px; color:var(--c-ink); margin:34px 0 12px; }
.prose h3{ font-size:19px; color:var(--c-ink); margin:24px 0 8px; }
.prose p{ margin:0 0 14px; }
.prose ul.bullets{ margin:0 0 16px; padding:0; }
.prose ul.bullets li{ position:relative; padding:6px 0 6px 26px; }
.prose ul.bullets li::before{ content:''; position:absolute; left:4px; top:13px; width:8px; height:8px; border-radius:50%; background:var(--c-orange); }
.prose .callout{ background:var(--c-gray-100); border-left:3px solid var(--c-orange); padding:16px 18px; border-radius:8px; margin:0 0 18px; }
.prose .official-link{ display:inline-flex; align-items:center; gap:8px; margin-top:6px; color:var(--c-orange); font-family:var(--font-head); font-weight:700; }

.news-list{ display:grid; gap:18px; max-width:860px; }
.news-item{ background:#fff; border:1px solid var(--c-gray-200); border-radius:14px; padding:24px 26px; }
.news-item .date{ font-size:13px; color:var(--c-orange); font-family:var(--font-head); font-weight:700; }
.news-item .tags{ font-size:12px; color:var(--c-gray-500); margin-left:8px; }
.news-item h3{ margin:8px 0 8px; font-size:20px; }
.news-item p{ margin:0; color:var(--c-gray-700); font-size:15px; }

/* ---------- Полоса-CTA ---------- */
.cta-strip{ background:var(--c-orange); color:#fff; border-radius:18px; padding:38px 44px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.cta-strip h3{ margin:0; font-size:24px; }
.cta-strip .btn--ghost{ background:#fff; color:var(--c-orange); }
/* контейнер кнопок задан инлайном без justify-content: без этого
   перенесённая на вторую строку кнопка прижимается влево */
.cta-strip > div:last-child{ justify-content:center; }

.footer-consent{ background:none; border:none; padding:0; color:#8A8C90;
  font-size:12.5px; text-decoration:underline; text-underline-offset:2px; font-family:var(--font-body); }
.footer-consent:hover{ color:#C9CACD; }

/* ---------- Футер ---------- */
.site-footer{ background:var(--c-gray-950); color:var(--c-gray-200); padding:52px 0 26px; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:34px; padding-bottom:34px; border-bottom:1px solid rgba(255,255,255,.08); }
.footer-top h4{ color:#fff; font-family:var(--font-head); font-size:13px; text-transform:uppercase; letter-spacing:.04em; margin:0 0 16px; }
.footer-top p{ font-size:13.5px; color:var(--c-gray-500); margin:14px 0 0; max-width:280px; }
.footer-top ul li{ margin-bottom:11px; font-size:14px; }
.footer-top ul a:hover{ color:var(--c-orange); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:22px;
  font-size:12.5px; color:var(--c-gray-500); flex-wrap:wrap; gap:10px; }
.footer-bottom a:hover{ color:var(--c-orange); }

/* ---------- Мобильная кнопка звонка ---------- */
.header-call{ display:none; }
.mobile-call{ display:none; position:fixed; left:0; right:0; bottom:0; z-index:110;
  background:var(--c-orange); color:#fff; text-align:center; padding:15px;
  font-family:var(--font-head); font-weight:700; font-size:16px; box-shadow:0 -6px 18px rgba(0,0,0,.18); }

/* ---------- Уведомление об использовании cookie ---------- */
.cookie-notice{ position:fixed; z-index:140; left:0; right:0; bottom:0;
  padding:14px 18px; background:rgba(42,44,49,.98); color:#fff;
  border-top:1px solid rgba(255,255,255,.12); box-shadow:0 -10px 30px rgba(0,0,0,.2);
  opacity:0; transform:translateY(100%); transition:opacity .22s ease,transform .22s ease; }
.cookie-notice.is-visible{ opacity:1; transform:translateY(0); }
.cookie-notice__inner{ width:100%; max-width:1180px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:24px; }
.cookie-notice__text{ min-width:0; }
.cookie-notice__title{ margin:0 0 4px; font-size:15px; line-height:1.3; color:#fff; }
.cookie-notice p{ margin:0; max-width:930px; color:#f0f1f3; font-size:13px; line-height:1.55; }
.cookie-notice a{ color:#ff9850; text-decoration:underline; text-underline-offset:2px; }
.cookie-notice a:hover{ color:#ffb17a; }
.cookie-notice__accept{ flex:0 0 auto; min-width:112px; }
.cookie-notice__actions{ display:flex; gap:10px; flex:0 0 auto; align-items:center; }
.cookie-notice__decline{ background:transparent; color:#D8D9DC;
  border:1px solid rgba(255,255,255,.32); min-width:112px; }
.cookie-notice__decline:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.55); color:#fff; }
.cookie-notice__more{ margin-top:10px !important; font-size:12.5px !important; }
.cookie-notice__more a{ color:#ff9850; }
.cookie-notice--modal .cookie-notice__actions{ flex-direction:column; width:100%; }
.cookie-notice--modal .cookie-notice__actions .btn{ width:100%; }

/* раскрывающийся список: что именно собирается и зачем */
.cookie-notice__more{ margin-top:8px; }
.cookie-notice__more summary{ cursor:pointer; color:#ff9850; font-size:12.5px;
  text-decoration:underline; text-underline-offset:2px; list-style:none; display:inline-block; }
.cookie-notice__more summary::-webkit-details-marker{ display:none; }
.cookie-notice__more summary::after{ content:' ▾'; }
.cookie-notice__more[open] summary::after{ content:' ▴'; }
.cookie-notice__more ul{ margin:10px 0 0; padding-left:18px; }
.cookie-notice__more li{ color:#d8d9dc; font-size:12.5px; line-height:1.55; margin-bottom:6px; }
.cookie-notice__more li b{ color:#fff; font-weight:400; font-family:var(--font-head); }
.cookie-notice__note{ margin-top:8px !important; font-size:12px !important; color:#b9babd !important; }

/* Мобильная версия: окно по центру, фон размыт до нажатия «Принимаю» */
/* position:fixed, а не overflow:hidden — иначе Safari на iOS всё равно прокручивает фон */
body.cookie-lock{ position:fixed; left:0; right:0; width:100%; overflow:hidden; }
.cookie-notice--modal{
  inset:0; bottom:0; padding:18px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(20,21,23,.55);
  -webkit-backdrop-filter:blur(9px) saturate(120%); backdrop-filter:blur(9px) saturate(120%);
  border-top:none; box-shadow:none;
  transform:none; transition:opacity .28s ease;
}
.cookie-notice--modal .cookie-notice__inner{
  flex-direction:column; align-items:stretch; gap:16px;
  max-width:440px; max-height:82vh; overflow-y:auto;
  background:#2A2C31; border:1px solid rgba(255,255,255,.14);
  border-radius:16px; padding:22px;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  transform:translateY(14px) scale(.98); transition:transform .28s cubic-bezier(.22,.61,.36,1);
}
.cookie-notice--modal.is-visible .cookie-notice__inner{ transform:none; }
.cookie-notice--modal .cookie-notice__title{ font-size:19px; margin-bottom:8px; }
.cookie-notice--modal .cookie-notice__accept{ width:100%; }
@media (prefers-reduced-motion:reduce){
  .cookie-notice, .cookie-notice--modal .cookie-notice__inner{ transition:none; }
}

/* =====================================================
   Адаптивность
   ===================================================== */
@media (max-width:1080px){
  .main-nav>ul>li>a, .main-nav>ul>li>.nav-toggle{ padding:10px 9px; font-size:12px; }
  .header-left{ gap:16px; }
}
@media (max-width:1180px){
  .header-right .btn--primary{ display:none; }
}
@media (max-width:960px){
  .hero__inner{ grid-template-columns:1fr; }
  .services{ grid-template-columns:1fr; }
  .about{ grid-template-columns:1fr; }
  .contract{ grid-template-columns:1fr; padding:32px; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .regions{ grid-template-columns:1fr; }
  .tl-item{ grid-template-columns:auto 1fr; gap:16px; }
  .tl-year{ font-size:19px; line-height:27px; min-width:88px; padding:6px 12px; }
}
@media (max-width:820px){
  #regLayout{ grid-template-columns:1fr!important; }
}
@media (max-width:1100px){
  .main-nav{ position:fixed; top:var(--header-h); left:0; right:0; bottom:0; background:var(--c-gray-950);
    padding:14px; overflow:auto; display:none; z-index:115; }
  .main-nav.open{ display:block; }
  .main-nav>ul{ flex-direction:column; align-items:stretch; gap:2px; }
  .main-nav>ul>li>a, .main-nav>ul>li>.nav-toggle{ width:100%; justify-content:space-between; font-size:15px; padding:15px 12px; }
  .nav-drop{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; background:transparent;
    padding:0 0 8px 12px; display:none; min-width:0; }
  .nav-item.open .nav-drop{ display:block; }
  .nav-drop a{ color:var(--c-gray-200); } .nav-drop a:hover{ background:rgba(255,255,255,.06); }
  .burger{ display:block; }
  .header-phone{ display:none; }
  .header-call{ display:inline-flex; }
  .header-right .header-lk-text{ display:none; }
  :root{ --header-h:70px; }
  .logo-img{ height:46px; }
  .site-header__inner{ gap:12px; }
  .header-right{ gap:10px; }
  .header-right .btn--primary{ display:none; }   /* «Заключить договор» — есть в меню и в hero */
}
@media (max-width:720px){
  .container{ padding:0 18px; }
  .hero .hero__inner{ padding-top:60px; padding-bottom:44px; gap:26px; }
  .hero__title{ font-size:28px; }
  .hero__subtitle{ font-size:15px; }
  .section{ padding:48px 0; }
  .section-head{ margin-bottom:30px; }
  .section-head h2{ font-size:25px; }
  .section-head p{ font-size:15px; }
  .page-hero{ padding:52px 0 34px; }
  .page-hero h1{ font-size:28px; }
  .page-hero p{ font-size:15px; }
  .tracker{ padding:18px; }
  /* верхний отступ меньше нижнего: у заголовка своя межстрочная
     надстройка, из-за неё симметричный padding смотрится съехавшим */
  .cta-strip{ padding:22px 24px 28px; text-align:center;
    flex-direction:column; align-items:center; justify-content:center; gap:18px; }
  .cta-strip h3{ font-size:21px; line-height:1.25; }
  .cta-strip > div{ width:100%; }
  .cta-strip > div:last-child{ justify-content:center; }
  .contract{ padding:24px; }
  .prose{ font-size:15px; }
  .prose h2{ font-size:21px; }
  .about__stats{ gap:16px; }
  #map{ height:340px; }
  body{ padding-bottom:62px; }
  .footer-top{ grid-template-columns:1fr; }
  .embed-frame iframe{ height:620px; }
  .cookie-notice p{ font-size:13px; line-height:1.55; }
  .cookie-notice__accept{ width:100%; }
}
@media (max-width:480px){
  .container{ padding:0 14px; }
  .logo-img{ height:40px; }
  .hero__title{ font-size:23px; }
  .hero__cta{ flex-direction:column; }
  .hero__cta .btn{ width:100%; }
  .btn--lg{ padding:13px 18px; font-size:14px; }
  .page-hero h1{ font-size:23px; }
  .section-head h2{ font-size:21px; }
  .about__stats{ grid-template-columns:repeat(2,1fr)!important; }
  .stats--cards .stat{ padding:16px 16px; }
  .tabs{ width:100%; } .tabs button{ flex:1; padding:11px 8px; font-size:12px; }
  .tracker__row{ flex-direction:column; } .tracker__row .btn{ width:100%; }
  .segment{ width:100%; } .segment button{ flex:1; }
}

@media (max-width:380px){
  .header-right{ gap:6px; }
  .header-right .icon-btn{ width:34px; }
}

/* Таймлайн на узких экранах: год над текстом, текст во всю ширину */
@media (max-width:560px){
  .tl-item{ grid-template-columns:1fr; gap:4px; padding:18px 0; }
  .tl-year{ text-align:center; font-size:20px; line-height:1.25;
    width:max-content; min-width:104px; background:var(--c-gray-100); border-radius:8px;
    padding:5px 14px; margin-bottom:8px; }
  .tl-body h3{ margin:0 0 6px; }
}

/* ---------- Мобильная доступность ---------- */
@media (max-width:720px){
  /* поля ввода не меньше 16px: иначе Safari на iPhone принудительно увеличивает страницу */
  input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
  input[type="search"], input[type="password"], select, textarea{
    font-size:16px !important;
  }
  /* цели касания — не меньше 44px по высоте (норма Apple и Google) */
  .icon-btn{ width:44px; height:44px; }
  .burger{ min-width:44px; min-height:44px; }
  .service-links a{ min-height:44px; display:inline-flex; align-items:center; padding:0 14px; }
  .site-footer ul li{ margin-bottom:4px; }
  .site-footer ul li a{ display:inline-block; padding:9px 0; min-height:44px; line-height:26px; }
  .footer-bottom a{ display:inline-block; padding:8px 0; }
  .breadcrumbs a{ display:inline-block; padding:4px 0; }
  .logo-block{ display:inline-flex; align-items:center; min-height:44px; }
  .btn{ min-height:44px; }
  .footer-bottom a{ min-height:44px; display:inline-flex; align-items:center; }
  /* ссылки внутри текста не растягиваем: это разорвало бы абзац,
     и норма доступности делает для них исключение */
  /* поля не «прыгают» из-за автоподстановки и не обрезаются */
  input, select, textarea{ max-width:100%; }
}

/* ===========================================================
   Появление блоков при прокрутке.
   Скрывающие правила работают только если класс .has-rv
   поставлен скриптом в <head> — без JS контент виден всегда.
   =========================================================== */
.has-rv [data-rv]{
  opacity:0;
  transition:opacity .74s cubic-bezier(.22,.61,.36,1),
             transform .74s cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--rv-d, 0ms);
}
.has-rv [data-rv="up"]{ transform:translate3d(0,32px,0); }
.has-rv [data-rv="soft"]{ transform:translate3d(0,16px,0) scale(.994); }
.has-rv [data-rv="fade"]{ transform:none; }
.has-rv [data-rv].rv-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  .has-rv [data-rv]{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ===========================================================
   Матовая подача фотографий: гасим зерно затемнением
   и лёгкой десатурацией. Оформление кнопок и блоков —
   как в исходном дизайне.
   =========================================================== */
.hero__bg img{ filter:brightness(.52) saturate(.78) contrast(1.07); }
.service-card img{ filter:saturate(.84) contrast(1.05) brightness(.94); }
.about__media img{ filter:saturate(.86) contrast(1.05) brightness(.96); }
.about__media::after{
  content:''; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  background:linear-gradient(180deg, rgba(20,21,23,.05) 0%, rgba(20,21,23,.20) 100%);
}

/* ===========================================================
   Таймлайн истории: год выезжает справа на своё место.
   Всё под классом .has-tl-anim, который ставит скрипт.
   Без JS остаётся прежняя вёрстка в две колонки.
   =========================================================== */
.has-tl-anim .tl-item{
  display:block; padding:22px 0; margin:0;
  border-top:1px solid var(--c-gray-200);
  overflow:hidden;              /* прячет плашку за краем, без горизонтальной прокрутки */
}
.has-tl-anim .tl-item:first-child{ border-top:none; padding-top:4px; }
.has-tl-anim .tl-item:last-child{ padding-bottom:6px; }

.has-tl-anim .tl-year{
  display:inline-block; width:max-content; min-width:104px;
  margin:0 0 12px; justify-self:auto;
  transform:translateX(var(--tl-run, 900px));
}
/* переход включается отдельным классом — уже после того, как плашки
   поставлены за правый край. Иначе при загрузке видно, как они туда уезжают */
.has-tl-anim.tl-ready .tl-year{ transition:transform 1s cubic-bezier(.25,.8,.35,1); }
.has-tl-anim .tl-item.tl-in .tl-year{ transform:translateX(0); }

.has-tl-anim .tl-body{ max-width:760px; }
.has-tl-anim .tl-body h3{ margin:0 0 6px; font-size:19px; }

@media (max-width:720px){
  .has-tl-anim .tl-item{ padding:18px 0; }
  .has-tl-anim .tl-year{ margin-bottom:10px; }
}

/* при отключённой анимации плашка просто стоит на месте */
@media (prefers-reduced-motion:reduce){
  .has-tl-anim .tl-year{ transform:none; transition:none; }
}
