﻿/* ============================================================================
   LexyJob :: ОФОРМЛЕНИЕ САЙТА (файл css/style.css)
   ============================================================================

   ЦВЕТА САЙТА заданы ниже в блоке :root.
   Палитра: тёмно-синий + золото (в тон логотипа).
   Чтобы поменять цвет по всему сайту, достаточно поменять его один раз здесь.

   ГДЕ ЧТО ИСКАТЬ (нажмите Ctrl+F и введите название):
     "Кнопки"          : стили всех кнопок
     "Шапка"           : верхняя панель с меню
     "Главный экран"   : первый экран с заголовком и фото
     "Направления"     : карточки стран с флагами
     "ЗАМЕНА ФОТО N2"  : фото в широком баннере
     "Форма заявки"    : главная форма сайта
     "Адаптив"         : как сайт выглядит на телефоне
   ========================================================================== */

:root {
  /* Основной цвет: тёмно-синий (как в логотипе) */
  --primary: #1e3358;
  --primary-dark: #14233d;
  --primary-light: #2e4a7d;

  /* Акцент: золотой (как в логотипе; кнопки, выделения) */
  --accent: #d4a437;
  --accent-dark: #b8892a;
  --accent-text: #8f6d14;   /* золотой потемнее, для текста на белом */
  --on-accent: #2a1e04;     /* цвет текста на золотой кнопке */

  --white: #ffffff;
  --gray-bg: #f4f6fa;       /* светло-серый фон секций */
  --gray-line: #e3e8f0;     /* цвет тонких рамок */
  --text: #22304a;          /* основной цвет текста */
  --text-muted: #5b6b85;    /* приглушённый текст */
  --error: #d64545;         /* цвет ошибок формы */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 35, 61, .10);
  --shadow-lg: 0 18px 50px rgba(20, 35, 61, .18);
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Source Serif 4', Georgia, serif;
}

/* ---------- Базовые настройки ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--primary); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

/* Выделенное слово в заголовках и названии компании */
.accent { color: var(--accent); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
/* Главная (золотая) кнопка */
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px rgba(184, 137, 42, .35); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 12px 28px rgba(184, 137, 42, .45); }
.btn--accent:disabled { opacity: .65; cursor: wait; transform: none; }
/* Прозрачная кнопка на тёмном фоне */
.btn--outline { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.18); border-color: var(--white); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--sm { padding: 10px 22px; font-size: .92rem; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
}
.header__inner { display: flex; align-items: center; gap: 22px; height: 74px; }
.header__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.header__logo { width: 46px; height: 46px; border-radius: 10px; }
.header__name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--primary); }
.header__nav { display: flex; gap: 24px; font-weight: 600; font-size: .97rem; color: var(--primary); }
.header__nav a { position: relative; padding: 6px 0; }
.header__nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--accent); transition: width .2s ease;
}
.header__nav a:hover::after { width: 100%; }
.header__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.header__burger span { width: 24px; height: 3px; background: var(--primary); border-radius: 2px; }
.mobile-nav {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px;
  background: var(--white); border-bottom: 1px solid var(--gray-line);
}
.mobile-nav a { padding: 12px 0; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--gray-line); }
.mobile-nav a.btn { border: none; margin-top: 12px; color: var(--on-accent); justify-content: center; }
.mobile-nav.open { display: flex; }

/* ---------- Главный экран ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
}
.hero__stripes {
  position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background: repeating-linear-gradient(-45deg, transparent 0 70px, var(--white) 70px 74px);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 88px;
}
.hero__badge {
  display: inline-block; background: rgba(212,164,55,.16); border: 1px solid rgba(255,255,255,.25);
  color: #f3dfae; font-weight: 600; font-size: .9rem;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero__sub { font-size: 1.1rem; color: #c7d3e6; max-width: 580px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__points { list-style: none; display: grid; gap: 10px; color: #dfe7f3; font-weight: 500; }
.hero__points li { display: flex; align-items: center; gap: 10px; }
.hero__points li::before {
  content: ''; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1e04' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero__visual { display: flex; justify-content: center; }
.hero__photo {
  width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 24px; border: 4px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow-lg);
}

/* ---------- Секции (общее) ---------- */
.section { padding: 88px 0; }
.section--gray { background: var(--gray-bg); }
.section--navy {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section__head p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }
.section--navy .section__head p { color: #c7d3e6; }
.section__eyebrow {
  display: inline-block; color: var(--accent-text); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; font-size: .82rem; margin-bottom: 12px;
}
.section__eyebrow--light { color: #e7c25c; }
.section__cta { text-align: center; margin-top: 48px; }

/* ---------- Шаги ("Как это работает") ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps--six { grid-template-columns: repeat(3, 1fr); }
.step {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 28px 24px;
}
.step__num {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
  color: #e7c25c; margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; font-size: 1.08rem; }
.step p { color: #c7d3e6; font-size: .95rem; }

/* ---------- Преимущества ("Почему мы") ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.features--six { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.feature { text-align: center; padding: 10px 8px; }
.feature__icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; color: var(--accent-text);
  background: linear-gradient(135deg, #faf1dd, #fdf6e7);
  border: 1px solid #f0dfb6;
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { margin-bottom: 8px; font-size: 1.08rem; }
.feature p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Направления (страны с флагами) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dest-card {
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest-flag {
  display: block; width: 64px;
  border-radius: 6px; overflow: hidden; line-height: 0;
  box-shadow: 0 4px 12px rgba(20, 35, 61, .18); border: 1px solid var(--gray-line);
}
.dest-flag svg { width: 100%; height: auto; display: block; }
.dest-card h3 { font-size: 1.1rem; }
.dest-note { text-align: center; margin-top: 32px; color: var(--text-muted); }

/* ---------- Широкий фото-баннер с призывом ----------
   ЗАМЕНА ФОТО N2: адрес фото задаётся ниже в свойстве background
   (строка с url(...)). Чтобы поставить своё фото:
   1. Положите файл в папку assets (например assets/photo2.jpg)
   2. Замените адрес в url() на: ../assets/photo2.jpg
   Тёмная полупрозрачная заливка поверх фото оставлена,
   чтобы белый текст хорошо читался. */
.band {
  position: relative; padding: 110px 0; color: var(--white); text-align: center;
  background:
    linear-gradient(rgba(14, 25, 43, .78), rgba(14, 25, 43, .78)),
    url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?q=80&w=1600&auto=format&fit=crop")
    center 60% / cover no-repeat;
}
.band__inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.band h2 { color: var(--white); max-width: 700px; }

/* ---------- Частые вопросы ---------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--primary);
  padding: 20px 54px 20px 24px; position: relative; font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-bg); color: var(--accent-text); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.faq__item[open] summary::after { content: '\2212'; background: var(--accent); color: var(--on-accent); }
.faq__item p { padding: 0 24px 20px; color: var(--text-muted); }

/* ---------- Форма заявки ---------- */
.apply .hero__stripes { opacity: .05; }
.apply__inner { position: relative; }
.lead-form {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent);
  padding: 40px 36px 32px; max-width: 520px; margin: 0 auto;
  display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; text-align: left; }
.field label { font-weight: 700; color: var(--primary); font-size: .95rem; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field select,
#czOtherWrap input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--gray-bg); border: 1.5px solid var(--gray-line); border-radius: 12px;
  padding: 13px 16px; outline: none;
  transition: border-color .15s ease, background .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3358' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  cursor: pointer;
}
.field input:focus, .field select:focus, #czOtherWrap input:focus {
  border-color: var(--primary); background: var(--white);
}
.field input.invalid, .field select.invalid { border-color: var(--error); background: #fdf2f2; }
.field__error { color: var(--error); font-weight: 600; font-size: .85rem; }
.field__error--api { text-align: center; font-size: .92rem; }
#czOtherWrap { margin-top: 8px; }

/* Выпадающий список гражданства с флагами */
.cz-select { position: relative; }
.cz-btn {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text-muted);
  background: var(--gray-bg); border: 1.5px solid var(--gray-line); border-radius: 12px;
  padding: 13px 40px 13px 16px; cursor: pointer; text-align: left;
  transition: border-color .15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3358' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.cz-select.open .cz-btn { border-color: var(--primary); }
.cz-label { display: inline-flex; align-items: center; gap: 10px; }
.cz-label.selected { color: var(--text); font-weight: 600; }
.cz-list {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 280px; overflow-y: auto;
}
.cz-select.open .cz-list { display: block; }
.cz-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font-family: var(--font-body); font-size: .98rem; font-weight: 600; color: var(--text);
  background: none; border: none; border-radius: 8px;
  padding: 10px 12px; cursor: pointer; text-align: left;
}
.cz-option:hover { background: var(--gray-bg); color: var(--primary); }
.cz-flag { display: inline-block; width: 24px; border-radius: 3px; overflow: hidden; line-height: 0; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(20,35,61,.12); }
.cz-flag svg { width: 100%; height: auto; display: block; }

/* Ловушка для спам-ботов: поле полностью скрыто от людей */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.lead-form__submit { width: 100%; margin-top: 4px; }
.lead-form__consent { color: var(--text-muted); font-size: .82rem; text-align: center; line-height: 1.5; }

/* ---------- Подвал ---------- */
.footer { background: var(--primary-dark); color: #9fadc6; padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { border-radius: 10px; background: var(--white); }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--white); }
.footer__tagline { font-size: .88rem; }
.footer__note { font-size: .88rem; max-width: 460px; }
.footer__disclaimer { opacity: .7; margin-top: 4px; }

/* ---------- Страница "Спасибо" ---------- */
.thanks-page { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%); }
.thanks {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; overflow: hidden;
}
.thanks__box {
  position: relative; background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 56px 48px 48px; max-width: 560px; width: 100%; text-align: center;
  border-top: 6px solid var(--accent);
}
.thanks__logo { width: 170px; margin: 0 auto 8px; border-radius: 14px; }
.thanks__check {
  width: 72px; height: 72px; margin: 14px auto 22px; border-radius: 50%;
  background: linear-gradient(135deg, #1f7a3d, #2ea75a); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(46, 167, 90, .35);
}
.thanks__box h1 { font-size: 2rem; margin-bottom: 14px; }
.thanks__text { color: var(--text-muted); margin-bottom: 14px; }
.thanks__hint { color: var(--text-muted); font-size: .92rem; margin-bottom: 26px; background: var(--gray-bg); border-radius: 12px; padding: 12px 16px; }
.thanks__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Адаптив (вид на планшетах и телефонах) ---------- */
@media (max-width: 1000px) {
  .steps--six, .features--six, .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 64px; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__points { justify-items: center; }
  .hero__visual { order: -1; }
  .hero__photo { max-width: 320px; aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .header__nav { display: none; }
  .header__inner > .btn { display: none; }
  .header__burger { display: flex; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .band { padding: 80px 0; }
  .steps, .steps--six, .features, .features--six { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dest-card { padding: 20px 14px; }
  .btn--lg { width: 100%; }
  .hero__actions { flex-direction: column; }
  .lead-form { padding: 30px 20px 26px; }
  .thanks__box { padding: 40px 24px 36px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
}




/* ---------- Юридические страницы (политика конфиденциальности) ---------- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 24px; }
.legal__meta {
  background: var(--gray-bg); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 40px; font-size: .95rem; color: var(--text-muted);
}
.legal__meta p + p { margin-top: 12px; }
.legal__meta b { color: var(--primary); font-size: 1.05rem; }
.legal__meta a { color: var(--accent-text); font-weight: 600; border-bottom: 1px solid currentColor; }
.legal__pdf a { display: inline-block; }
.legal__body h2 {
  font-size: 1.35rem; margin: 38px 0 14px; padding-top: 18px;
  border-top: 1px solid var(--gray-line);
}
.legal__body h3 { font-size: 1.08rem; margin: 26px 0 10px; color: var(--primary); }
.legal__body p { margin-bottom: 14px; color: var(--text); line-height: 1.7; }
.legal__body ul { margin: 0 0 18px 0; padding-left: 22px; }
.legal__body li { margin-bottom: 8px; line-height: 1.65; color: var(--text); }
.legal__back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--gray-line); }
.legal__back a { color: var(--accent-text); font-weight: 700; }
.legal__back a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .legal { padding: 32px 0 56px; }
  .legal__meta { padding: 18px 16px; }
  .legal__body h2 { font-size: 1.2rem; margin-top: 30px; }
}

/* ---------- Реквизиты и ссылки в подвале ---------- */
.footer__company { font-size: .82rem; opacity: .75; margin-bottom: 6px; }
.footer__link { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.35); margin-left: 8px; }
.footer__link:hover { border-color: var(--white); }

/* ---------- Кнопка заявки, закреплённая внизу экрана (только телефон) ----------
   Появляется, когда посетитель пролистал первый экран, и прячется,
   когда он доходит до формы, чтобы её не перекрывать. */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--gray-line);
    box-shadow: 0 -6px 20px rgba(20, 35, 61, .12);
    transform: translateY(115%); transition: transform .25s ease;
  }
  .sticky-cta.visible { transform: none; }
  .sticky-cta .btn { width: 100%; }
}

/* ---------- Поле возраста: убираем стрелки-крутилки браузера ----------
   Чтобы поле выглядело так же, как остальные поля формы. */
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Блок "О компании" ---------- */
.about { text-align: center; }
.about h2 { margin-bottom: 18px; }
.about p { color: var(--text-muted); font-size: 1.03rem; margin-bottom: 14px; }
.about__legal { font-size: .92rem; opacity: .85; }
.about__legal b { color: var(--primary); }

/* ---------- Блок "Контакты" ---------- */
.contacts-block__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contacts-card {
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.contacts-card h3 { margin-bottom: 14px; font-size: 1.08rem; }
.contacts-card p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.contacts-card p:last-child { margin-bottom: 0; }
.contacts-card b { color: var(--primary); }
.contacts-card a { color: var(--accent-text); font-weight: 600; border-bottom: 1px solid currentColor; }
.contacts-card a:hover { color: var(--primary); }
.contacts-card__mail { font-size: 1.05rem; }
.contacts-block__note { text-align: center; margin-top: 28px; color: var(--text-muted); font-size: .97rem; }
.contacts-block__note a { color: var(--accent-text); font-weight: 700; }

/* ---------- Пояснение о собираемых данных над формой ---------- */
.lead-form__datanote {
  background: var(--gray-bg); border-radius: 12px; padding: 14px 16px;
  color: var(--text-muted); font-size: .89rem; line-height: 1.6; margin-bottom: 4px;
}

/* ---------- Реквизиты в подвале ---------- */
.footer__legal { font-size: .86rem; line-height: 1.7; }
.footer__legal b { color: var(--white); font-size: .92rem; }
.footer__legal p + p { margin-top: 10px; }
.footer__links { margin-bottom: 12px; line-height: 2; }

/* ---------- Пояснение на странице политики ---------- */
.legal__note {
  background: #fdf7e9; border: 1px solid #eddbb0; border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 36px;
  color: var(--text); font-size: .96rem; line-height: 1.7;
}
.legal__note b { color: var(--primary); }

@media (max-width: 860px) {
  .contacts-block__grid { grid-template-columns: 1fr; }
}

/* ---------- Шапка на узких экранах ноутбуков (861-1024px) ----------
   Пунктов меню шесть, поэтому здесь уменьшаем отступы и размер шрифта,
   чтобы шапка не переносилась на две строки. */
@media (max-width: 1024px) {
  .header__inner { gap: 16px; }
  .header__nav { gap: 14px; font-size: .92rem; }
}

/* ---------- Подвал: три колонки (бренд / реквизиты / документы) ----------
   Раньше в подвале было две колонки. С добавлением реквизитов и ссылок
   задаём колонкам гибкие размеры, чтобы они не переносились на две строки. */
.footer__inner { align-items: flex-start; }
.footer__brand { flex: 0 1 auto; }
.footer__legal { flex: 0 1 230px; }
.footer__note { flex: 1 1 330px; max-width: 420px; }
@media (max-width: 860px) {
  .footer__inner { flex-wrap: wrap; }
  .footer__legal, .footer__note { flex: 1 1 100%; max-width: none; }
}

/* ---------- Чекбокс согласия в форме ---------- */
.consent-field { margin-top: 4px; }
.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px;
  border: 2px solid var(--gray-line); border-radius: 6px; background: var(--white);
  transition: border-color .15s ease, background .15s ease;
}
.consent:hover .consent__box { border-color: var(--accent); }
.consent input:checked + .consent__box {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1e04' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
  border-color: var(--accent);
}
.consent input:focus-visible + .consent__box { outline: 2px solid var(--primary); outline-offset: 2px; }
.consent input.invalid + .consent__box { border-color: var(--error); }
.consent__text { font-size: .86rem; line-height: 1.55; color: var(--text-muted); }
.consent__text a { color: var(--accent-text); font-weight: 600; border-bottom: 1px solid currentColor; }
.lead-form__note { color: var(--text-muted); font-size: .8rem; text-align: center; line-height: 1.5; }
.lead-form__note a { color: var(--accent-text); font-weight: 600; }

/* ---------- Кнопка "Настройки cookie" (выглядит как ссылка) ---------- */
.footer__cookie-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: inherit; text-align: left;
}

/* ---------- Баннер согласия на cookie ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--white); border-top: 3px solid var(--accent);
  box-shadow: 0 -10px 34px rgba(20, 35, 61, .18);
  transform: translateY(110%); transition: transform .3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cookie-banner.visible { transform: none; }
.cookie-banner__inner {
  max-width: 1180px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 24px;
}
.cookie-banner__text { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.cookie-banner__text b { color: var(--primary); }
.cookie-banner__text a { color: var(--accent-text); font-weight: 600; border-bottom: 1px solid currentColor; }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.btn--ghost {
  background: var(--gray-bg); color: var(--primary); border-color: var(--gray-line);
}
.btn--ghost:hover { background: var(--white); border-color: var(--primary); }

@media (max-width: 860px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .cookie-banner__text { font-size: .82rem; line-height: 1.5; }
  /* Кнопки в один ряд, чтобы баннер не занимал пол-экрана */
  .cookie-banner__actions { flex-direction: row; }
  .cookie-banner__actions .btn { flex: 1 1 0; padding: 12px 10px; font-size: .85rem; white-space: normal; }
  /* Пока открыт баннер cookie, прячем закреплённую кнопку заявки,
     чтобы они не перекрывали друг друга */
  body.cookie-open .sticky-cta { display: none; }
}


