html, body {
  width: 100%;
  overflow-x: hidden;
}

/* --- Переменные --- */
:root {
  --bg: #FAF9FE;
  --header-bg: #23365F;
  --header-text: #F4F5F8;
  --button-bg: #243C7E;
  --button-border: #4B6092;
  --button-text: #F4F5F8;

  --container: 1674px;
  --header-height: 60px;
  --bottom-bar-height: 30px;
}

/* --- Сброс --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Защита от обрезания --- */
html, body {
  width: 100%;
  overflow-x: hidden;
  min-width: 320px;
}

body {
  font-family: 'Akshar', sans-serif;
  background: var(--bg);
  color: #2F3135;
}

.header-top-inner,
.header-bottom-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 38px;
  padding-right: 38px;
  box-sizing: border-box;
}


/* ===== ВЕРХНИЙ БАР ===== */
.header-top {
  width: 100%;
  background: var(--header-bg);
  height: var(--header-height);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Лого + НОВЕР-СЕРВИС */
.header-left {
  display: flex;
  align-items: center;
  gap: 19px;

  transform: translateX(0%);
}

.header-logo img {
  width: 85px;
  height: 55px;
  object-fit: contain;
}

.header-title {
  font-size: 16px;
  font-weight: 400; /* regular */
  color: var(--header-text);
  white-space: nowrap;
  line-height: 1;
}

/* Меню по центру */
.header-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  margin-left: 30%; /* сдвигаем вправо на 25% от родителя */
}

.header-menu a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 400; /* regular */
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.5px; /* межбуквенный интервал */
}

/* ===== Кнопка справа — более широкая, овальная, чуть ниже ===== */
.header-button {
  flex-shrink: 0;

  width: 200px;
  height: 45px;
  background: var(--button-bg);
  border: 2px solid var(--button-border);
  color: var(--button-text);
  font-weight: 400;
  font-size: 16px;          /* было 16 */
  border-radius: 28px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  letter-spacing: 1.3px;    /* было 1 */
  transition: all 0.2s ease;

  transform: translateX(5%);
}


@media (max-width: 902px) {
  .header-left,
  .header-button {
    position: absolute; 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .header-top-inner {
    justify-content: center;
  }

  .header-menu {
    margin-left: 0;
    justify-content: center;
    width: 100%;              
    display: flex;
  }
}

@media (max-width: 610px) {
  .header-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s ease;
  }
}

.header-top {
  transition: all 0.4s ease;
  overflow: hidden; /* важно */
}

@media (max-width: 610px) {
  .header-top {
    opacity: 0;
    transform: translateY(-100%);
    height: 0;
    min-height: 0; 
  }
}

/* 1. Анимация */
@media (max-width: 610px) {
  .header-top {
    opacity: 0;
    transform: translateY(-100%);
    height: 0;
    min-height: 0;
  }
}

/* 2. Полное удаление (перекрывает всё выше) */
@media (max-width: 600px) {
  .header-top {
    display: none;
  }
}

@media (max-width: 600px) {
  .header-top {
    display: none !important;
  }
}

/* ---------- Контейнер для согласованной сетки (если ещё нет) ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 38px;
  box-sizing: border-box;
}

/* ========== ШАПКА: делаем layout через grid, меню смещаем вправо ========== */
.header-top-inner {
  display: grid;
  grid-template-columns: auto 1fr auto; /* логотип | растущая область | кнопка */
  align-items: center;
  gap: 18px;
  width: 100%;
}

/* левый блок — лого и название остаются слева */
.header-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Меню — помещаем в средний столбец, прижимаем вправо внутри него */
.header-menu {
  justify-self: end;    /* ключ: меню смещено вправо в средней колонке */
  display: flex;
  gap: 32px;
  align-items: center;
  white-space: nowrap;
}

/* Кнопка — справа */
.header-button {
  justify-self: end;    /* кнопка остаётся в правой колонке */
  margin: 0;            /* обнуляем возможные translateX/отступы */
  transform: none;
}

/* Немного тоньше расстояния для ссылок меню */
.header-menu a {
  display: inline-block;
  padding: 6px 0;
  letter-spacing: 1.4px;
}

/* ========== Заголовки секций: "правее", в одну линию с меню ========== */
/* Если секции находятся в .container (как у тебя), то это выравнивание будет совпадать. */
.section-title {
  max-width: var(--container);
  margin: 0 auto 24px;       /* снизу 24px — можно менять */
  padding: 0 38px;           /* тот же внутренний паддинг, что в header */
  box-sizing: border-box;
  text-align: right;         /* главное: выравниваем вправо */
  font-family: 'Akshar', sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* Специфично для id-ов (если хочешь отличать стили) */
#services-title,
#benefits-title {
  text-align: right;
}

/* ========== Адаптивность ========== */
/* Большие экраны — чуть уменьшим gap, чтобы меню не слишком далеко в правую зону */
@media (min-width: 1600px) {
  .header-menu { gap: 36px; }
}

/* Стадия: планшеты / небольшие десктопы — уменьшаем пробелы, контент ближе */
@media (max-width: 1200px) {
  .header-top-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header-menu { gap: 22px; }
  .section-title { padding: 0 28px; margin-bottom: 20px; }
}

/* ========== Шапка на узких экранах <900px ========== */
@media (max-width: 900px) {
  /* оставляем флекс-контейнер для шапки */
  .header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* лого + текст остаются слева */
  .header-left {
    order: 1;
  }

  /* кнопка остаётся справа */
  .header-button {
    order: 2;
    margin: 0;
  }

  /* заголовки секций становятся по центру */
  .section-title {
    text-align: center;
    padding: 0 20px;
  }
}

/* Очень узкие экраны <480px — уменьшаем размер кнопки и текста */
@media (max-width: 480px) {
  .header-button {
    width: 160px;
    height: 42px;
    font-size: 15px;
  }
  .section-title {
    font-size: 22px;
  }
}

/* Очень узкие экраны — ещё более компактно */
@media (max-width: 480px) {
  .header-menu { gap: 12px; font-size: 14px; }
  .header-button { width: 160px; height: 42px; font-size: 15px; }
  .section-title { font-size: 22px; }
}



/* ========== Адаптивность ========== */
/* Большие экраны — чуть уменьшим gap, чтобы меню не слишком далеко в правую зону */
@media (min-width: 1600px) {
  .header-menu { gap: 36px; }
}

/* Стадия: планшеты / небольшие десктопы — уменьшаем пробелы, контент ближе */
@media (max-width: 1200px) {
  .header-top-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header-menu { gap: 22px; }
  .section-title { padding: 0 28px; margin-bottom: 20px; }
}

/* ========== Шапка на узких экранах <900px ========== */
@media (max-width: 900px) {
  /* оставляем флекс-контейнер для шапки */
  .header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* лого + текст остаются слева */
  .header-left {
    order: 1;
  }

  /* кнопка остаётся справа */
  .header-button {
    order: 2;
    margin: 0;
  }

  /* заголовки секций становятся по центру */
  .section-title {
    text-align: center;
    padding: 0 20px;
  }
}

/* Очень узкие экраны <480px — уменьшаем размер кнопки и текста */
@media (max-width: 480px) {
  .header-button {
    width: 160px;
    height: 42px;
    font-size: 15px;
  }
  .section-title {
    font-size: 22px;
  }
}

/* Очень узкие экраны — ещё более компактно */
@media (max-width: 480px) {
  .header-menu { gap: 12px; font-size: 14px; }
  .header-button { width: 160px; height: 42px; font-size: 15px; }
  .section-title { font-size: 22px; }
}


/* ======== НИЖНИЙ БЕЛЫЙ БАР ======== */
.header-bottom {
  width: 100%;
  background: #EEF0F6;
  height: var(--bottom-bar-height);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  transition: all 0.5s ease; /* плавный переход высоты и opacity */
  opacity: 1;
  overflow: hidden; /* чтобы контент не выглядывал при скрытии */
}

.header-bottom-inner {
  width: 100%;
  max-width: var(--container);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  box-sizing: border-box;
  font-size: 13px;
  font-family: 'Akshar', sans-serif;
  letter-spacing: 1.8px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

/* Левый блок: адрес и дата */
.header-address-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; 
}

.header-address {
  color: #2F3135;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.header-address .note {
  margin-left: 6px;
  color: inherit;
  font-size: 13px;
}

.header-hours {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
  margin-left: 0;
}

.header-phones {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2F3135;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.header-phones span {
  color: #2F3135;
}

/* Плавный переход элементов */
.header-bottom-inner > * {
  transition: all 0.3s ease;
}

/* ========== Адаптивность ========== */

/* Средние экраны — чуть уменьшаем отступы и шрифт */
@media (max-width: 1200px) {
  .header-bottom-inner {
    padding: 0 24px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .header-address-wrapper,
  .header-phones {
    margin-top: 6px;
    font-size: 12px;
  }
}

/* Планшеты / небольшие экраны — три строки */
@media (max-width: 768px) {
  .header-bottom {
    height: auto;
    padding: 10px 0;
  }

  .header-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
  }

  .header-address-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .header-address,
  .header-hours,
  .header-phones {
    margin: 0;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }
}

/* Очень узкие экраны — уменьшаем шрифт и промежутки */
@media (max-width: 480px) {
  .header-bottom-inner {
    gap: 4px;
    padding: 8px 12px;
  }

  .header-address-wrapper,
  .header-phones {
    font-size: 11px;
  }
}

/* ===== ПЛАВНОЕ СКРЫТИЕ НИЖНЕГО БАРА ===== */
@media (max-width: 1000px) {
  .header-bottom {
    height: 0 !important;
    opacity: 0;
    padding: 0 !important;
    pointer-events: none; /* чтобы не мешал кликам */
  }
}

/* ======== Заказ ======== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 40px 40px 20px;  /* меньше снизу */
  border-radius: 50px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #1E3A8A;
  font-size: 24px;
  text-align: center;
}

/* ===== Поля ===== */

.modal-content input,
.modal-content textarea {
  width: 100%;
  height: 55px;
  padding: 0 18px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

/* Центр текста по высоте */
.modal-content input {
  line-height: 55px;
}

.modal-content textarea {
  height: 120px;        /* больше по высоте */
  padding: 15px 18px;   /* нормальные внутренние отступы */
  line-height: 1.4;     /* нормальный межстрочный интервал */
  overflow: hidden;     /* убираем скролл полностью */
  resize: none;         /* запрет растягивания */
}

.modal-content textarea::-webkit-scrollbar {
  display: none;                /* Chrome / Safari */
}

/* Фокус */
.modal-content input:focus,
.modal-content textarea:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* ===== Форма ===== */

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ===== Крестик ===== */

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #444;
  transition: color 0.2s;

  background: none;
  border: none;
  padding: 0;
}

.modal-close:hover {
  color: #1E3A8A;
}

/* ===== Кнопка ===== */

.btn-submit {
  height: 45px;              /* чуть ниже */
  padding: 0 28px;           /* уже */
  align-self: center;        /* по центру */
  width: auto;               /* не на всю ширину */
  
  background: #1E3A8A;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn-submit:hover {
  background: #152a63;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* ===== Статус ===== */

#formStatus {
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

/* =========================================
   СТРАНИЦА: DACHI (ОСТЕКЛЕНИЕ ДАЧ)
========================================= */

/* Заголовок страницы */
.page-title {
  max-width: var(--container);
  margin: 40px auto 10px;
  padding: 0 38px;
  box-sizing: border-box;

  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #162650;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.grid-divider-title {
  max-width: var(--container);   /* ← ВАЖНО */
  margin: 40px auto 20px;        /* ← auto центрирует как заголовок */
  padding: 0 38px;               /* ← такой же отступ как у page-title */
  box-sizing: border-box;

  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #162650;

  text-align: center;
}

/* === GRID DIVIDER (разделительный текст) === */
.grid-divider {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.grid-divider.show {
  opacity: 1;
  transform: translateY(0);
}

.page-title.show {
  opacity: 1;
  transform: translateY(0);
}

/* Секция */
.product-section {
  padding-bottom: 60px;
}

/* КАРТОЧКА */
.product-item {
  /* flex: 1; */
  /* background: #F9F6FD; */
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #ffffff;
  overflow: hidden;

  min-height: 520px; /* ← ВАЖНО: увеличили высоту */

  display: flex;
  flex-direction: column; /* чтобы контент тянулся вниз */

  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.product-item {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition: all 0.8s ease;
}

.product-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-button {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.product-item.show .product-button {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* картинка */
.product-item img {
  width: 100%;
  height: 300px; /* чуть уменьшим */
  object-fit: contain; /* ← ключевое */
  background: #ffffff; /* чтобы не было пустоты некрасивой */
  display: block;
}

/* БЛОК С ИНФО */
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ЦЕНА */
.price {
  font-size: 20px;
  font-weight: 700;
  color: #162650;
  margin-bottom: 12px;
}

/* ХАРАКТЕРИСТИКИ */
.features {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.features li {
  font-size: 14px;
  margin-bottom: 6px;
  position: relative;
  padding-left: 16px;
}

.features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #243C7E;
}

/* ОПИСАНИЕ */
.description {
  font-size: 14px;
  color: #2F3135;
  line-height: 1.5;
}

.description-intro {
  font-size: 13px;
  color: #2F3135;
  line-height: 1.5;
  margin-bottom: 12px;
}

.desc-block {
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.desc-title {
  font-size: 13px;
  font-weight: 700;
  color: #162650;
  margin-bottom: 8px;
}

.desc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.desc-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 5px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #2F3135;
}

.desc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 2px;
  background: #243C7E;
  border-radius: 2px;
}

.price {
  margin-top: auto;
  font-size: 18px;
  font-weight: 700;
  color: #162650;
  margin-bottom: 10px;
}

.product-button {
  width: 215px;
  height: 50px;
  background: var(--button-bg);
  border: 2px solid var(--button-border);
  color: var(--button-text);
  font-weight: 400;
  font-size: 17px;
  border-radius: 28px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  letter-spacing: 1.3px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.product-button:hover {
  background: #1d2f66;
  transform: translateY(-2px);
}

.product-name {
  font-size: 20px;
  font-weight: 700;
  color: #162650;
  margin-bottom: 12px;
}

/* ===== GRID вместо row ===== */

.product-grid {
  display: grid;
  gap: 40px;
  margin: 0 auto 60px;
  max-width: 1250px;

  justify-content: center;
}

/* окна — 3 в ряд */
.product-grid.windows {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid.doors {
  display: grid;
  grid-template-columns: repeat(2, 500px);
  gap: 40px;
  width: fit-content;
  margin: 0 auto 60px;
  justify-content: center;
}

.product-grid.doors .product-item {
  width: 100%;
  box-sizing: border-box;
}

.grid-divider {
  grid-column: 1 / -1;

  text-align: justify;        /* ← выравнивание по ширине */
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;

  line-height: 1.6;           /* ← расстояние между строками (можешь менять) */

  margin: 20px 0 10px;
  padding: 10px 0;

  color: #162650;
}

.product-item {
  height: 100%;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.product-item.show {
  opacity: 1;
  transform: translateY(0);
}

.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price {
  margin-top: auto;
  font-size: 18px;
  font-weight: 700;
  color: #162650;
  margin-bottom: 10px;
}

.product-button {
  margin-top: 10px;
  flex-shrink: 0;
  width: 215px;
  height: 50px;
  background: var(--button-bg);
  border: 2px solid var(--button-border);
  color: var(--button-text);
  font-weight: 400;
  font-size: 17px;
  border-radius: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  letter-spacing: 1.3px;
  transition: all 0.2s ease;
}

.product-button:hover {
  background: #1d2f66;
  transform: translateY(-2px);
}

.product-grid .product-item:nth-child(1) { transition-delay: 0.05s; }
.product-grid .product-item:nth-child(2) { transition-delay: 0.1s; }
.product-grid .product-item:nth-child(3) { transition-delay: 0.15s; }
.product-grid .product-item:nth-child(4) { transition-delay: 0.2s; }
.product-grid .product-item:nth-child(5) { transition-delay: 0.25s; }
.product-grid .product-item:nth-child(6) { transition-delay: 0.3s; }

/* ===== Заголовки секций ===== */

.section-title {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.section-title.show {
  opacity: 1;
  transform: translateY(0);
}



/* =========================================
   АДАПТИВ
========================================= */

@media (max-width: 1200px) {
  .product-row {
    gap: 25px;
  }
}

@media (max-width: 900px) {
  .product-row,
  .product-row.reverse {
    flex-direction: column;
  }

  .page-title {
    text-align: center;
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  .product-item img {
    height: 220px;
  }

  .product-info {
    padding: 16px;
  }

  .price {
    font-size: 18px;
  }

  .features li,
  .description {
    font-size: 13px;
  }
}

/*МОБИЛКА — ОДИН ТОВАР В РЯД */
@media (max-width: 768px) {
  .product-grid.windows {
    grid-template-columns: 1fr; /* 1 колонка */
    gap: 25px;
  }

  .product-item {
    max-width: 100%;
  }

  .product-button {
    width: 100%; /* кнопка на всю ширину */
  }
}

@media (max-width: 768px) {
  .product-name {
    font-size: 18px;
  }

  .desc-list li {
    font-size: 13px;
  }

  .price {
    font-size: 17px;
  }
}

/* МОБИЛКА — ДВЕРИ В 1 КОЛОНКУ */
@media (max-width: 768px) {
  .product-grid.doors {
    grid-template-columns: 1fr; /* 1 колонка */
    width: 100%; /* убираем fit-content */
  }

  .product-grid.doors .product-item {
    width: 100%;
  }
}

/* === Футер === */
.footer-contacts {
  background: var(--header-bg); /* такой же цвет как верхний бар */
  color: var(--header-text);
  padding: 20px 20px; /* было 40px -> футер стал ниже */
  font-family: 'Akshar', sans-serif;
  font-size: 16px; 
  line-height: 1.5;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px; /* было 25px */
  text-align: center;
}

.footer-contacts-info {
  display: flex;
  flex-direction: column;
  gap: 6px; /* было 10px */
}

.footer-contacts-info a {
  color: var(--header-text);
  text-decoration: none;
}

.footer-contacts-info a:hover {
  text-decoration: underline;
}

.footer-phones {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-weight: 600;
}

.footer-phones a {
  color: var(--header-text);
  text-decoration: none;
}

.footer-phones a:hover {
  text-decoration: underline;
}

.page-footer__button {
  background: #FFC107;
  color: #23365F;
  border: none;
  padding: 10px 26px; /* чуть меньше */
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px; /* было 18 */
  font-weight: 600;
  transition: background 0.3s;
}

.page-footer__button:hover {
  background: #ffdb4d;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 18px; /* было 25 */
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

.footer-bottom-address {
  text-align: center;
  font-size: 14px; /* было 16 */
  color: rgba(244, 245, 248, 0.7); /* мягкий сероватый */
}

@media (max-width: 480px) {
  .footer-phones {
    font-size: 14px;
    gap: 12px;
  }
}