/* style.css 

=========================
   БАЗА
   ========================= */
/* BASE */
:root {
  --color-bg-page: #f7f3ea;
  --color-text-main: #2b2616;
  --color-header-bg: #ffffff;
  --color-contact-phone: #d64532;

  --stack-left: 10.5%; /* стартовое положение конструкции на десктопе */
  --coverage-h: 600px;

  --footer-pad-right: 50px; /* правый “безопасный” отступ футера */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* защита от случайного горизонтального скролла */
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
input,
button {
  font-family: "Montserrat", sans-serif !important;
  -webkit-font-smoothing: antialiased; /* Для мягкости шрифта в Chrome/Safari */
  -moz-osx-font-smoothing: grayscale;
}

/* Если где-то шрифт все равно "колючий", добавим сброс веса */
h1,
h2,
h3 {
  font-weight: 100; /* Регулируйте под нужную степень "люксовости" */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* Добавляет тот самый "воздух" в заголовки */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Контейнер для основного контента и футера */
main,
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
}

/*===================================================
       HEADER: логотип + контакты + верхнее меню
  =================================================== */

/* HEADER */
.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;

  padding: 16px 16px 0 0;
  z-index: 100;

  align-items: center; /* ✅ одна общая центральная линия */

  gap: 24px;
}

.header-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-top::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: 0;
  left: 0;
  width: 320px;
  height: 30px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.4) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.logo-av {
  margin-left: 8px;
}

.logo-av img {
  height: 26px;
  width: auto;
  display: block;
}

/* Слоган рядом с лого */
.header-tagline {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.header-main {
  display: flex;
  align-items: center; /* ✅ центр по той же оси */
  gap: 16px;
}

.main-nav {
  position: relative;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.main-nav a {
  color: var(--color-text-main);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.3s ease;
  position: relative;
  background: transparent !important; /* Убираем тяжелую заливку */
  text-decoration: none;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #f1ddc0; /* Твой бежевый акцент */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.main-nav a:hover {
  color: #f1ddc0;
}
.main-nav a:hover::after {
  width: 60%; /* Линия мягко разъезжается под текстом */
}

.main-nav .board-cta-tablon {
  /* Легкий синий стеклянный градиент */
  color: rgba(59, 113, 136, 0.95) !important;
  opacity: 1 !important;
}

/* Эффект при наведении */
.main-nav .board-cta-tablon:hover {
  background: rgba(178, 220, 238, 0.3);
}

/* Убеждаемся, что подчеркивание (линия) под этой кнопкой не появляется */
.main-nav .board-cta-tablon a::after {
  color: rgba(59, 113, 136, 0.95) !important;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 25px;
  position: relative;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #2b2616;
  border-radius: 999px;
  transition: all 0.3s ease;
  position: absolute;
}

.nav-toggle span:nth-child(1) {
  top: 11px;
}

.nav-toggle span:nth-child(2) {
  top: 18px;
}

.nav-toggle span:nth-child(3) {
  top: 25px;
}

/* Крестик при открытом меню */
.nav-toggle.active span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}

/*===================================================
                       BUTTONS
  =================================================== */

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;

  max-width: 100%; /* чтобы на узких экранах не вылезало за край */
}

/* Базовый стиль «главной» красной кнопки на лендинге */
.btn-primary {
  background: linear-gradient(180deg, #ff4d4d 0%, #c1272d 100%) !important;
  box-shadow: 0 4px 15px rgba(193, 39, 45, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3); /* Внутренний блик по краю */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: none !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;

  color: #fff;
}

/* Добавляем "бегущий блик" при наведении (эффект дороговизны) */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(185, 29, 29, 0.5); /* Усиливаем свечение */
}

.nb {
  white-space: nowrap;
}

/* ===================================================
          HERO: главный оффер + фото курьера 
  =================================================== */

.hero {
  position: relative;
  min-height: 600px; /* Базовая высота десктопа */
  display: flex;
  justify-content: flex-end; /* Текст всегда в правой (белой) части */
  align-items: center;

  /* Настройка фона */
  background-image: url("../img/hero-courier.jpg");
  background-repeat: no-repeat;
  background-position: left center;
  /* Важно: на десктопе ставим 100% ширины или чуть больше для запаса */
  background-size: cover;
  overflow: hidden;
}

.hero-content {
  flex: 0 0 60%; /* Занимаем правую часть */
  justify-content: center; /* Центрируем карточку в её правой части */
  padding-right: 5%;
  z-index: 2;
}

.hero-content-inner {
  /* Адаптивные паддинги: */
  /* Вертикальные (верх/низ): от 30px до 60px */
  /* Горизонтальные (лево/право): от 5% ширины карточки до 80px */
  padding: clamp(30px, 4vh, 60px) clamp(20px, 6%, 80px);

  gap: clamp(
    20px,
    3vw,
    40px
  ); /* Расстояние между элементами тоже адаптируется */

  /* Остальные твои шикарные стили */
  background: radial-gradient(
    circle at top left,
    rgba(142, 133, 87, 0.9) 0%,
    rgba(75, 75, 0, 0.6) 50%,
    rgba(43, 38, 22, 0.85) 100%
  ) !important;
  backdrop-filter: blur(25px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(150%);
  border: 1px solid rgba(241, 221, 192, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Магия: карточка сжимается до ширины контента, но не шире 700px */
  width: fit-content;
  min-width: 320px;
  max-width: 700px;

  /* Паддинги, которые будут плавно уменьшаться */
  padding: clamp(30px, 5vh, 60px) clamp(25px, 8vw, 90px);

  /* Чтобы карточка не прилипала к курьеру, используем margin-left */
  margin-left: auto;
}
.hero-content-inner::before {
  content: "";
  position: absolute;
  top: 22px; /* Дистанция от верхнего края */
  left: 50%;
  transform: translateX(-50%);
  width: 50px; /* Длина черточки */
  height: 4px; /* Толщина */
  background: linear-gradient(
    90deg,
    rgba(241, 221, 192, 0.2),
    rgba(241, 221, 192, 0.6),
    rgba(241, 221, 192, 0.2)
  );
  border-radius: 10px;
  opacity: 0.8;
}
.hero-text {
  /* Убираем фиксированный clamp в px, если он мешает */
  width: auto;
  flex: 0 1 auto; /* Позволяем блоку сжиматься */
  max-width: none; /* чтобы не было конкуренции width vs max-width */

  padding: 0;
  background-color: transparent;
}

.hero-title {
  margin: 0;
  /* Используем vw для плавного уменьшения */
  font-size: clamp(24px, 4vw, 50px);
  line-height: 1.1;
  text-transform: uppercase;
  background-color: transparent;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  margin: clamp(2px, 0.8vh, 12px) 0 clamp(6px, 1.3vh, 16px);
  font-size: clamp(14px, 1.8vw, 24px);
  text-transform: uppercase;
  color: #f1ddc0 !important; /* Твой бежевый акцент */
  display: block;
  white-space: normal; /* или просто убери white-space */
}

.hero-deadline-img {
  display: block;
  height: auto;
  width: clamp(80px, 10vw, 150px);
  margin-top: -18px;
}

.hero-main-row {
  display: flex;
  align-items: center; /* Центрируем 48 относительно строк текста */
  justify-content: center;
  gap: 0; /* Зазор будет уменьшаться вместе с экраном */
  width: auto; /* ВАЖНО: убираем 100%, чтобы он не раздувался */
  max-width: 600px; /* Ограничиваем, чтобы на огромных экранах не разлетались */
  margin: 0 auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Сбрасываем жесткие настройки */
  min-width: 0 !important;
  width: 100%;
  max-width: 380px; /* Это потолок, выше которого она не вырастет */

  /* Используем те же clamp, что и в тексте, чтобы масштаб был один */
  padding: clamp(12px, 1.5vw, 18px) clamp(20px, 2vw, 30px);
  font-size: clamp(14px, 1.2vw, 18px);

  white-space: nowrap;
  text-align: center;
}

/* 1. Определяем саму анимацию "Золотое свечение" */
@keyframes luxuryAppear {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    filter: brightness(0.5) blur(5px);
  }
  50% {
    opacity: 0.5;
    filter: brightness(1.2) blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1) blur(0);
  }
}

/* 2. Применяем анимацию к картинке */
.hero-deadline-img {
  /* ... твои существующие стили (width, margin и т.д.) ... */

  opacity: 0; /* Изначально скрыта до начала анимации */
  animation: luxuryAppear 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s; /* Появляется чуть позже основного текста для эффекта очереди */

  will-change: transform, opacity; /* Подсказка браузеру для плавной работы */
}
@keyframes goldPulse {
  0% {
    filter: drop-shadow(0 0 5px rgba(241, 221, 192, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(241, 221, 192, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(241, 221, 192, 0.4));
  }
}

/* Применяем вторую анимацию (бесконечное мягкое сияние) */
.hero-deadline-img {
  /* Добавляем через запятую после первой анимации */
  animation: luxuryAppear 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    goldPulse 4s ease-in-out infinite 1.8s; /* Начнется сразу после появления */
}

.card-num {
  /* Тот самый сложный градиент: от светлой оливки к глубокой */
  background: linear-gradient(
    135deg,
    #f1ddc0 0%,
    /* Светлый беж (блик) */ #8b8b3a 50%,
    /* Основная оливка */ #4b4b00 100% /* Глубокая тень */
  );
  /* Магия: обрезаем фон по форме букв/цифр */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Добавляем мистическое свечение, чтобы отделить от фона */
  filter: drop-shadow(0 0 15px rgba(241, 221, 192, 0.4));

  display: inline-block;
}

/* =========================
     СЕКЦИЯ 1: MÁXIMO ALCANCE
     ========================= */

.section-reach {
  padding: 80px 20px;
  background-color: var(--color-bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reach-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  border-radius: 40px;
  position: relative;
  /* Глубокое затемнение сверху и снизу, чтобы центр с карточками сиял */
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.7) 100%
    ),
    url("../img/mailbox-flyers.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ЗАГОЛОВОК И ПОДЗАГОЛОВОК */
.reach-header {
  text-align: center;
  margin-bottom: 50px;
}

.reach-header h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  color: #fff;
  margin-top: 0;
  margin-bottom: 5px; /* Ближе к подзаголовку */
  letter-spacing: 0.05em;

  /* background: linear-gradient(135deg, #f1ddc0 0%, #8b8b3a 50%, #f1ddc0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;*/
  font-weight: 700;
  filter: drop-shadow(
    0 2px 4px rgba(0, 0, 0, 0.5)
  ); /* Тень, чтобы буквы "выпрыгнули" */
}

.reach-tagline {
  font-size: clamp(18px, 1.5vw, 22px); /* Сделали крупнее */
  color: #f1ddc0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.15em;
}

/* КАРТОЧКИ */
.reach-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
  margin-bottom: 50px; /* Отступ до кнопки */
}

.advantage-card {
  /* Оливковый градиент с прозрачностью */
  background: linear-gradient(
    135deg,
    rgba(75, 75, 0, 0.6) 0%,
    rgba(40, 40, 0, 0.4) 100%
  );

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  /* Тонкая рамка как у дорогого девайса */
  border: 1px solid rgba(241, 221, 192, 0.2);
  border-radius: 24px;
  padding: 40px 30px;
  color: #fff;
  transition: all 0.4s ease;
}

/* ЭФФЕКТ СВЕЧЕНИЯ ПРИ НАВЕДЕНИИ */
.advantage-card:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(241, 221, 192, 0.5);
  box-shadow: 0 0 30px rgba(241, 221, 192, 0.2); /* Мягкое золотистое свечение */
}

.card-num {
  display: block;
  font-size: 38px; /* Сделали значительно крупнее */
  font-weight: 100;
  color: rgba(241, 221, 192, 0.8);
  margin-bottom: 10px;
}

.advantage-card h3 {
  font-size: 1.5rem;
}

/* Маленькая золотая деталь вместо грубой заливки */

.advantage-card h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #f1ddc0;
  margin-top: 10px;
}

.advantage-card p {
  font-size: 1.2rem;
}

/* КНОПКА ВНУТРИ */
.reach-inner-footer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.reach-cta {
  min-width: 280px !important;
  padding: 20px 45px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Начальное состояние карточек */
.advantage-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* Состояние после активации (когда доскроллили) */
.advantage-card.appear {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Каскадная задержка для каждой карточки */
.advantage-card:nth-child(1) {
  transition-delay: 0.1s;
}
.advantage-card:nth-child(2) {
  transition-delay: 0.3s;
}
.advantage-card:nth-child(3) {
  transition-delay: 0.5s;
}

/* Добавим легкое сияние заголовку блока при появлении */
.reach-header {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out;
}

.reach-header.appear {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
     СЕКЦИЯ 2: 100% GARANTIZAMOS
     ========================= */

/* 1. Общий контейнер секции */

/* 1. Главный контейнер с общим фоном города */
.section-coverage {
  position: relative;
  height: var(--coverage-h);
  overflow: hidden;
  /* Фоновый город, который будет виден СКВОЗЬ стекло (размытым) */
  background-image: url("../img/malaga-city-view.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* 2. Матовое стекло (ложится поверх фонового города) */
.section-coverage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(8px); /* Вот теперь он будет размывать фоновый город! */
  -webkit-backdrop-filter: blur(8px);
  background: rgba(43, 38, 22, 0.3); /* Оливковая тонировка */
}

/* 3. Контейнер для цифр и золотой рамы (над стеклом) */
.coverage-visual {
  position: absolute;
  inset: 0;
  z-index: 2; /* Поверх стекла */
}

/* 4. Четкий город внутри цифр (Окна) */
.visual-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Снова то же фото, но здесь оно будет четким, т.к. этот слой НАД блюром */
  background-image: url("../img/malaga-city-view.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  -webkit-mask-image: url("../img/stand-100.png");
  mask-image: url("../img/stand-100.png");
  -webkit-mask-size: auto 90%;
  mask-size: auto 90%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 5% center;
}

/* 5. Золотая рама (над четким городом) */
.visual-outline {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    135deg,
    #bf953f,
    #fcf6ba,
    #b38728,
    #fbf5b7,
    #aa771c
  );
  -webkit-mask-image: url("../img/stand-stroke.png");
  mask-image: url("../img/stand-stroke.png");
  -webkit-mask-size: auto 90.5%;
  mask-size: auto 90.5%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 4.9% center;
  filter: drop-shadow(0 0 8px rgba(241, 221, 192, 0.4));
}

/* Текст (самый верхний слой) */
.coverage-text {
  position: absolute;
  z-index: 10;
  left: 55%; /* Чуть отодвинул от цифр */
  top: 32%;
  transform: translateY(-50%);
  max-width: 460px;
  background: rgba(43, 38, 22, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px;
  border-left: 2px solid #f1ddc0;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.coverage-text h3 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #f1ddc0;
  border-bottom: 1px solid rgba(241, 221, 192, 0.3);
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.coverage-text p {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================
   СЕКЦИЯ: КУРЬЕР
   ========================= */

.section-team {
  position: relative;

  padding-top: 50px;
  padding-bottom: 180px; /* Увеличиваем, чтобы создать пространство внизу */
  min-height: 700px; /* Гарантируем, что секция не схлопнется */
  display: flex;
  align-items: flex-start;
  overflow: visible; /* Чтобы карточка могла спокойно свисать в футер */
}

/* Колонки */
.team-text {
  flex: 0 1 450px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 12;
  margin-top: 30px;
  margin-left: var(--stack-left); /* чтобы центр текста сел на общую ось */

  transform: translateY(-50px); /* Поднимаем тексты ВЫШЕ карточки */

  padding-left: 30px; /* как правый паддинг у карточки */
  box-sizing: border-box;
}

.team-image {
  position: absolute; /* Вырываем из потока */
  right: 0%; /* Двигаем вправо, к пустоте за знаком % */
  bottom: 0; /* Привязываем к низу этой секции */
  width: 490px; /* Увеличиваем размер */
  z-index: 15; /* Она должна быть выше всех слоев, даже выше золотой рамы */
  transform: translateY(-40px);
}

.team-image img {
  width: 100%;
  height: auto;
}

.team-block {
  display: block;
  padding-left: 0; /* Обнуляем, чтобы текст не уезжал вправо */
  text-align: left; /* Оставляем лево, но визуально это будет над формой */
}

/* Оформление заголовков в стиле "Тихая роскошь" */
.team-block h2 {
  font-size: 24px;
  letter-spacing: 0.2em;
  color: #2b2616;
  /*  margin-bottom: 15px;*/
  position: relative;
}

/* Маленькая золотая деталь вместо грубой заливки */
.team-block h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #f1ddc0;
  margin-top: 10px;
}

.team-block p {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
}

/* ИСПРАВЛЕНИЕ КНОПКИ (чтобы не схлопывалась) */
.team-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Сбрасываем жесткие настройки */
  min-width: 0 !important;
  width: 100%;
  max-width: 380px; /* Это потолок, выше которого она не вырастет */

  /* Используем те же clamp, что и в тексте, чтобы масштаб был один */
  padding: clamp(12px, 1.5vw, 18px) clamp(20px, 2vw, 30px);
  font-size: clamp(14px, 1.2vw, 18px);

  white-space: nowrap;
  text-align: center;
  margin-top: 30px;
}

.team-cta:hover {
  background: transparent;
}

/* КАРТОЧКА */
.contact-card {
  margin-top: 20px;
  background: #ffffff;

  border-radius: 30px 30px 20px 20px;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(241, 221, 192, 0.3);
  z-index: 25;

  box-sizing: border-box;
}

/* РУЧКА (как на мобильных) */
.card-handle {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 4px;
  background-color: #e0dcd0;
  border-radius: 10px;
}

.contact-card h4 {
  font-size: 18px;
  letter-spacing: 0.15em;
  color: #2b2616;
  margin-bottom: 10px;
  text-align: center;
}

.form-subtitle {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-bottom: 30px;
}

/* Кнопка внутри карточки */
.btn-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 55px;
  background: #2b2616;
  color: #f1ddc0;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 13px;
  transition: all 0.3s ease;
  margin-top: 30px;
  border-radius: 999px;
}

.btn-card-cta:hover {
  background: #413b2a;
}

/* Оформляем заголовок формы */
.contact-form-wrap {
  margin-top: 20px; /* Отступ от текстовых блоков выше */
  display: flex;
  flex-direction: column;
}

.form-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(43, 38, 22, 0.2), transparent);
  margin-bottom: 25px;
}

.contact-form-wrap h4 {
  font-size: 18px;
  letter-spacing: 0.2em;
  margin: 0 0 8px;
  color: var(--color-text-main); /* */
}

.form-subtitle {
  font-size: 13px !important;
  color: #888;
  margin-bottom: 20px !important;
  padding-left: 0 !important; /* Убираем отступ, который был у p в team-block */
  text-transform: none;
}

.quick-contact {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin: 40px 0;
  max-width: 450px;
}

.minimal-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(43, 38, 22, 0.3);
  padding-right: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.minimal-input:focus {
  border-bottom-color: #f1ddc0;
}

textarea {
  width: 100%;
  min-height: 120px; /* можно 120–140px, чтобы текст точно был виден */
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  line-height: 1.4;
  resize: vertical; /* пусть пользователь может потянуть вручную */
  box-sizing: border-box;
}

/* =========================
   FOOTER & CONTACT CARD ALIGNMENT
   ========================= */

.floating-contact-zone {
  position: relative;
  height: 0; /* Секция не занимает места в потоке */
  z-index: 500; /* Карточка будет выше и курьера, и футера */
}

.floating-contact-zone .container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.contact-card {
  position: absolute;
  bottom: -20px; /* Опускаем карточку так, чтобы она наполовину зашла на футер */
  left: var(--stack-left);

  background: #ffffff;
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.field-ref-internal {
  position: absolute;
  left: -9999px; /* Выносим за экран */
  opacity: 0.01; /* Почти прозрачное, но технически видимое для бота */
  pointer-events: none;
}

/* Эффект затухания для полей */
.form-finished {
  opacity: 0.3;
  pointer-events: none; /* Пользователь больше не может кликать на поля */
  filter: grayscale(1);
  transition: all 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   FOOTER REFINED
   ========================= */

.site-footer {
  position: relative;
  z-index: 20;
  background-color: #2b2616;
  margin-top: -40px;
  pointer-events: auto;
  padding-top: 0;
  max-width: none;
  width: 100%;
}

.footer-bottom {
  padding: 20px 0; /*  40px 0 40px 50px; /* Верхний паддинг дает место нависшей карточке */
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 50px);
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between; /* <-- раздвигает по краям */
  gap: 24px;
}

/* Верхний ряд: Лого, Соцсети и Меню — всё вправо */
.footer-right {
  display: flex;
  align-items: center;
  justify-content: space-between; /* раздвигает бренд слева и меню вправо */
  width: 100%;
  gap: 24px;
}

.footer-brand-group {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-left: 0; /* было 120px */
}

.footer-logo-av img {
  height: 35px;
  filter: brightness(1.2);
}

/* Группа иконок */
.footer-social {
  display: flex;
  gap: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 25px;
}

.footer-social-icon {
  color: #f7f3ea;
  font-size: 18px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  opacity: 1;
  color: #f1ddc0;
  transform: translateY(-2px);
}

/* Меню в строчку на десктопе */
.footer-menu {
  display: flex;
  gap: 25px;
  /* auto слева вытолкнет меню максимально вправо внутри .footer-right */
  margin-left: 0;
}

.footer-menu a {
  color: #f7f3ea;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: 0.3s;
}

.footer-menu a:hover {
  opacity: 1;
  color: #f1ddc0;
}

.footer-nav {
  grid-column: 2;
  justify-self: end; /* справа */
  margin-left: auto; /* на случай если space-between где-то перебьют */
}

/* БУРГЕР: скрыт на десктопе */
.footer-nav-toggle {
  display: none;
}

/* Нижний ряд: Копирайт отдельно */
.footer-left {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 50px);
  box-sizing: border-box;

  display: flex;
  justify-content: flex-end;

  position: relative;
  width: 100%;
}
/* Создаем линию через псевдоэлемент для гибкого управления градиентом */
.footer-left::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%; /* Линия на всю ширину блока */
  height: 1px;
  /* Градиент: прозрачный слева (под карточкой) -> полупрозрачный белый справа */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 70%,
    rgba(255, 255, 255, 0.1) 100%
  );
}

.footer-copy-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px; /* Расстояние между текстом и ссылкой */
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #f7f3ea;
  padding: 10px 0; /* было 20px 0 */

  margin-right: -5px; /* Компенсация letter-spacing для идеального края */
}

.footer-copy {
  color: #f7f3ea;
  opacity: 0.4;
  letter-spacing: 0.05em;
}

.copy-divider {
  opacity: 0.2;
}

.footer-legal-link {
  text-decoration: none;
  color: #f7f3ea;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer-legal-link:hover {
  opacity: 0.8;
  color: #f1ddc0; /* Золотистый отблеск при наведении */
}

.footer-legal-link,
.footer-menu a {
  position: relative;
  z-index: 1000; /* Сами ссылки поднимаем еще выше */
  cursor: pointer !important;

  display: flex;
  gap: 20px;
  margin: 0; /* убери auto тут, оно больше не нужно */
}

/* Выделенная кнопка Таблон */
.footer-link-tablon {
  color: #3b7188 !important; /* Тот самый синий цвет из хедера */
  font-weight: 700;
  opacity: 1 !important; /* Убираем прозрачность, чтобы она выделялась */
  transition: transform 0.3s ease;
}

.footer-link-tablon:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Навигационный контейнер */
.footer-nav-group {
  display: flex;
  align-items: center;
}

/* Ссылка на политику конфиденциальности */
.footer-legal a {
  font-size: 9px;
  color: #f7f3ea;
  opacity: 0.3; /* Делаем её максимально неброской */
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.footer-legal a:hover {
  opacity: 0.6;
  text-decoration: underline;
}

/* ============ форма =================== */

.form-privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 0 35px;
}

.form-privacy-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(43, 38, 22, 0.3);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  top: 2px;
  transition: all 0.3s ease;
}

.form-privacy-check input[type="checkbox"]:checked {
  background-color: #2b2616;
  border-color: #2b2616;
}

/* Маленькая белая галочка при активации */
.form-privacy-check input[type="checkbox"]:checked::after {
  content: "✓";
  color: #f1ddc0;
  font-size: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-privacy-check label {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: #888;
  line-height: 2.2;
  cursor: pointer;
}

.form-privacy-check label a {
  color: #2b2616;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.form-privacy-check label a:hover {
  opacity: 0.7;
}

/* =========================
   BOARD PAGE (board.html)
   ========================= */

.board-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0; /* сверху отступ под хедер */

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: calc(
    100vh - 130px
  ); /* Вычитаем примерную высоту хедера и футера */
}

.board-hero {
  width: 100%;
  display: flex;
  justify-content: center;
}

.board-card {
  background-color: transeparent;
  border-radius: 24px;
  padding: 32px 32px 40px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  text-align: center;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;

  position: relative;
  overflow: visible !important; /* Разрешаем элементам вылезать за границы карточки */
}

.board-figure {
  margin: 0 0 24px;
}

.board-figure img {
  display: block;
  max-width: 260px;
  margin: 0 auto;
}

.board-title {
  margin: 0 0 16px;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.board-text {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
}

/* Кнопка в стиле ремонтной ленты */
.board-btn {
  margin-top: 8px;
  padding: 20px 0;
  text-align: center;
  /* Желтый фон с черными наклонными полосами */
  background: repeating-linear-gradient(
    45deg,
    #f1c40f,
    /* Желтый */ #f1c40f 20px,
    #2b2616 20px,
    /* Ваш темный цвет футера для полос */ #2b2616 40px
  );
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Чтобы текст читался на полосках */
  font-weight: 900;
  border: 2px solid #2b2616;
  transition: transform 0.3s ease, filter 0.3s ease;
  overflow: hidden;
  position: relative;
}

.board-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  /* Эффект бегущей ленты при наведении */
  background-position: 40px 0;
  transition: background-position 0.5s linear, transform 0.3s ease;
}

/* Кнопка "Зона ремонта" на странице board.html */
.board-btn.btn-primary {
  display: block;
  width: calc(100% + 60px) !important;
  /* Убираем margin-left: -30px, так как будем центрировать через transform */
  margin: 40px 0 20px 0;

  position: relative;
  left: 50%;
  /* Центрируем (50%) и наклоняем на -2 градуса для живости */
  transform: translateX(-50%) rotate(-2deg);

  padding: 20px 0;
  border-radius: 0 !important;
  background: repeating-linear-gradient(
    45deg,
    #f1c40f 0px,
    #f1c40f 20px,
    #2b2616 20px,
    #2b2616 40px
  ) !important;

  color: #fff !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 3px solid #2b2616 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* Глубокая "строительная" тень */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);

  transition: all 0.3s ease;
  z-index: 10;
}

.board-btn.btn-primary:hover {
  /* При наведении кнопка чуть выравнивается и увеличивается — это и есть подсказка, что она активна */
  transform: translateX(-50%) rotate(0deg) scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Адаптив: телефоны */
@media (max-width: 480px) {
  .board-main {
    padding: 120px 16px 60px;
  }

  .board-card {
    padding: 24px 20px 32px;
    border-radius: 18px;
  }

  .board-figure img {
    max-width: 220px;
  }

  .board-title {
    font-size: 20px;
  }

  .board-text {
    font-size: 14px;
  }
}

/* ====== privacy ============ */

/* Фон всей страницы */
.privacy-page {
  background-color: #f7f3ea; /* Твой фирменный кремовый */
  color: #2b2616; /* Темный цвет из футера */
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Кнопка назад */
.back-home {
  text-decoration: none;
  color: #2b2616;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 40px;
  transition: opacity 0.3s;
}

.back-home:hover {
  opacity: 1;
}

/* Сама карточка с текстом */
.privacy-card {
  background: #ffffff;
  padding: 60px;
  border-radius: 40px; /* Скругляем как карточку с курьером */
  box-shadow: 0 20px 60px rgba(43, 38, 22, 0.05); /* Очень мягкая тень */
}

.privacy-card h1 {
  font-size: 24px;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
}

.privacy-content h2 {
  font-size: 16px;
  margin-top: 30px;
  color: #3b7188; /* Твой синий акцент для подзаголовков */
}

.privacy-content p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
}

/* Компактный футер страницы */
.privacy-footer {
  margin-top: auto;
  padding: 40px 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.4;
}
/*
* {
  outline: 1px solid red;
}
*/
