/* Базовая стилизация */

* {

  box-sizing: border-box;

}



body {

  margin: 0;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color: #1d2935;

  background: #f4f7fb;

  line-height: 1.5;

}

.logo {
  margin-left: auto;
}

a {

  color: inherit;

  text-decoration: none;

  transition: opacity 0.2s;

}



a:hover {

  opacity: 0.8;

}



img {

  max-width: 100%;

  height: auto;

  display: block;

}





.container {

  max-width: 1140px;

  margin: 0 auto;

  padding: 0 16px;

}



/* Хедер / герой */

.hero {

  background: linear-gradient(135deg, #ffca3a, #ff595e);

  color: #fff;

  padding: 40px 0 60px;

  position: relative;

  overflow: hidden;

}



.hero::after {

  content: "";

  position: absolute;

  inset: 35% -80px -60px;

  background: url("banner-placeholder.jpg") center/cover no-repeat;

  opacity: 0.16;

  pointer-events: none;

}



.hero-inner {

  position: relative;

  z-index: 1;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 32px;

}



.hero-text {

  flex: 1 1 320px;

  min-width: 0;

}



.hero-title {

  font-size: clamp(28px, 4vw, 42px);

  font-weight: 800;

  margin: 0 0 16px;

  text-transform: uppercase;

  letter-spacing: .03em;

  line-height: 1.15;

}



.hero-subtitle {

  font-size: clamp(16px, 2vw, 18px);

  margin-bottom: 24px;

  max-width: 480px;

  line-height: 1.4;

}



.hero-list {

  list-style: none;

  padding: 0;

  margin: 0 0 24px;

}



.hero-list li {

  margin-bottom: 10px;

  padding-left: 30px;

  position: relative;

  font-size: clamp(15px, 2vw, 16px);

  font-weight: 500;

}



.hero-list li::before {

  content: "✔";

  position: absolute;

  left: 0;

  color: #1b9a59;

  font-weight: 700;

}



.hero-cta {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 16px 32px;

  border-radius: 999px;

  border: none;

  background: #1d2935;

  color: #fff;

  font-weight: 600;

  font-size: 16px;

  cursor: pointer;

  transition: background .2s, transform .1s, box-shadow .1s;

  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);

}



.hero-cta span {

  font-size: 20px;

  line-height: 1;

}



.hero-cta:hover {

  background: #111822;

  transform: translateY(-2px);

  box-shadow: 0 14px 35px rgba(0, 0, 0, .28);

}



.hero-cta:active {

  transform: translateY(1px);

  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);

}



.hero-right {

  flex: 1 1 340px;

  min-width: 0;

}



.hero-card {

  background: rgba(255, 255, 255, .96);

  color: #222;

  border-radius: 18px;

  padding: 24px;

  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);

  backdrop-filter: blur(12px);

}



.hero-card-title {

  margin: 0 0 10px;

  font-size: 20px;

  font-weight: 700;

  text-transform: uppercase;

}



.hero-card-sub {

  font-size: 14px;

  color: #6c757d;

  margin-bottom: 16px;

}



.hero-mini-list {

  list-style: none;

  padding: 0;

  margin: 0;

  font-size: 14px;

}



.hero-mini-list li {

  margin-bottom: 8px;

  display: flex;

  justify-content: space-between;

  gap: 12px;

  align-items: center;

}



.hero-mini-label {

  color: #6c757d;

}



.hero-mini-value {

  font-weight: 600;

  text-align: right;

}



/* Блок преимуществ */

.section {

  padding: 60px 0;

}



.section-title {

  font-size: clamp(24px, 3vw, 32px);

  margin: 0 0 32px;

  text-align: center;

  font-weight: 800;

}



.benefits {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 24px;

}



.benefit-item {

  background: #fff;

  border-radius: 16px;

  padding: 24px;

  box-shadow: 0 4px 20px rgba(28, 46, 69, .06);

  transition: transform 0.2s, box-shadow 0.2s;

  display: flex;

  flex-direction: column;

}



.benefit-item:hover {

  transform: translateY(-4px);

  box-shadow: 0 8px 24px rgba(28, 46, 69, .12);

}



.benefit-icon {

  width: 44px;

  height: 44px;

  border-radius: 999px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 16px;

  color: #fff;

  font-weight: 700;

  font-size: 18px;

  background: linear-gradient(135deg, #ffca3a, #ff595e);

}



.benefit-title {

  margin: 0 0 12px;

  font-weight: 700;

  font-size: 17px;

  display: flex;

  align-items: center;

  min-height: 48px;

}



.benefit-text {

  margin: 0;

  font-size: 15px;

  color: #5b6674;

}



/* Типы баннеров */

.types {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 24px;

}



.type-card {

  background: #fff;

  border-radius: 16px;

  overflow: hidden;

  box-shadow: 0 4px 20px rgba(28, 46, 69, .06);

  display: flex;

  flex-direction: column;

  transition: transform 0.2s, box-shadow 0.2s;

}



.type-card:hover {

  transform: translateY(-4px);

  box-shadow: 0 8px 24px rgba(28, 46, 69, .12);

}



.type-img-wrapper {

  position: relative;

  padding-top: 60%;

  /* Aspect ratio 5:3 */

  background: #eaeaea;

}



.type-img-wrapper img {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.type-body {

  padding: 24px;

  flex: 1;

  display: flex;

  flex-direction: column;

}



.type-title {

  margin: 0 0 10px;

  font-size: 18px;

  font-weight: 700;

}



.type-tag {

  display: inline-flex;

  padding: 4px 12px;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 600;

  background: #e6f4f1;

  color: #197b5f;

  margin-bottom: 12px;

  text-transform: uppercase;

  letter-spacing: .05em;

  align-self: flex-start;

}



.type-text {

  margin: 0 0 16px;

  font-size: 15px;

  color: #5b6674;

  flex: 1;

}



.type-meta {

  font-size: 14px;

  color: #2f3945;

  background: #f8fafc;

  padding: 12px;

  border-radius: 10px;

  text-align: center;

}



/* Калькулятор */

.calc-wrap {

  background: #fff;

  border-radius: 20px;

  padding: 36px 32px;

  box-shadow: 0 8px 30px rgba(28, 46, 69, .08);

  max-width: 900px;

  margin: 0 auto;

}



.calc-header {

  margin-bottom: 28px;

  text-align: center;

}



.calc-title {

  margin: 0 0 8px;

  font-size: clamp(22px, 3vw, 26px);

  font-weight: 800;

}



.calc-note {

  margin: 0;

  font-size: 15px;

  color: #6c757d;

}



form {

  margin: 0;

}



.calc-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px 24px;

}



.form-group {

  display: flex;

  flex-direction: column;

  gap: 6px;

  font-size: 15px;

}



.form-group.full-width {

  grid-column: 1 / -1;

}



.form-label {

  font-weight: 600;

}



.form-note {

  font-size: 13px;

  color: #8b96a4;

}



select,

input[type="number"],

input[type="text"],

input[type="email"],

input[type="tel"] {

  border-radius: 12px;

  border: 1px solid #ced4da;

  padding: 12px 14px;

  font: inherit;

  outline: none;

  transition: border-color .15s, box-shadow .15s, background .15s;

  background: #fdfdff;

  width: 100%;

}



select:focus,

input:focus {

  border-color: #ff7a1b;

  box-shadow: 0 0 0 3px rgba(255, 122, 27, .18);

  background: #fff;

}



/* Стилизация File Input */

.file-upload-wrapper {

  position: relative;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.file-input-hide {

  position: absolute;

  width: 0.1px;

  height: 0.1px;

  opacity: 0;

  overflow: hidden;

  z-index: -1;

}



.file-custom-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 12px 20px;

  background: #fdfdff;

  border: 1px dashed #ced4da;

  border-radius: 12px;

  color: #5b6674;

  font-weight: 500;

  cursor: pointer;

  transition: all 0.2s;

  text-align: center;

}



.file-custom-btn:hover {

  border-color: #ff595e;

  background: #fffafa;

  color: #ff595e;

}



.file-input-hide:focus+.file-custom-btn {

  border-color: #ff595e;

  box-shadow: 0 0 0 3px rgba(255, 122, 27, .1);

}



.file-name-display {

  font-size: 13px;

  color: #1b9a59;

  font-weight: 600;

  margin-top: 4px;

  display: none;

}



.calc-bottom {

  margin-top: 28px;

  display: grid;

  grid-template-columns: 1fr auto;

  gap: 20px;

  align-items: center;

  background: #f8fafc;

  padding: 24px;

  border-radius: 16px;

}



.calc-result {

  display: flex;

  flex-direction: column;

  gap: 6px;

}



.calc-result-label {

  font-size: 15px;

  color: #5b6674;

}



.calc-result-sum {

  font-size: 30px;

  font-weight: 800;

  color: #1d2935;

  line-height: 1;

}



.calc-result-extra {

  font-size: 13px;

  color: #8b96a4;

}



.submit-wrap {

  display: flex;

}



.submit-btn {

  border: none;

  border-radius: 999px;

  background: linear-gradient(135deg, #ffca3a, #ff595e);

  color: #1d2935;

  font-weight: 700;

  padding: 16px 32px;

  font-size: 16px;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  box-shadow: 0 8px 22px rgba(255, 122, 27, .35);

  transition: transform .1s, box-shadow .1s, opacity .15s;

  width: 100%;

  justify-content: center;

}



.submit-btn:hover {

  transform: translateY(-2px);

  box-shadow: 0 12px 30px rgba(255, 122, 27, .5);

  opacity: .97;

}



.submit-btn:active {

  transform: translateY(1px);

  box-shadow: 0 4px 14px rgba(255, 122, 27, .45);

}



.footer {

  padding: 32px 0;

  font-size: 14px;

  color: #8b96a4;

  text-align: center;

  border-top: 1px solid #e1e7ef;

}



.footer p {

  margin: 0 0 8px;

}




/* --- Стили для секции "Остались вопросы" (Версия 2) --- */

.questions-section {
    width: 100%;
    background-color: #fff; /* Белый фон */
    padding: 60px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* Контейнер-ограничитель ширины, чтобы контент не разъезжался на огромных мониторах */
.questions-container {
    width: 100%;
    max-width: 1200px;
}

/* Шапка с заголовком */
.questions-header {
    text-align: center;
    margin-bottom: 40px;
}

.questions-title {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.questions-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Основной блок: Карта слева, Инфо справа */
.questions-body {
    display: flex;
    align-items: center; /* Вертикальное выравнивание по центру */
    justify-content: center;
    gap: 60px; /* Расстояние между картой и текстом */
}

/* --- Стили Карты --- */
.map-wrapper {
    flex: 0 0 750px; /* Фиксированная ширина карты (можно менять) */
    height: 350px;   /* Высота карты */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Тень для карты */
}

/* --- Стили Правой колонки (Инфо + Кнопки) --- */
.info-wrapper {
    flex: 1; /* Занимает оставшееся место */
    max-width: 600px; /* Ограничение ширины текста */
    text-align: center; /* Центрируем текст как на скриншоте */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phones-row {
    margin-bottom: 10px;
}

.phones-row a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap; /* Чтобы телефоны не переносились внутри номера */
}

.email-link {
    display: block;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    margin-bottom: 20px;
}

.address-block {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.address-block strong {
    font-weight: 700;
    color: #000;
}

.sub-address {
    color: #777;
    margin-top: 5px;
}

/* --- Кнопки (оставляем ваш дизайн) --- */
.questions-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.btn-question {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* Убираем padding сверху/снизу, будем регулировать высотой */
    padding: 0 40px; 
    height: 54px; /* Фиксируем высоту: 50px тело + 4px границы = 54px */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 160px;
    box-sizing: border-box; /* Граница считается внутрь размера */
    font-family: inherit; /* Чтобы у <button> был тот же шрифт */
    line-height: 1; /* Чтобы текст стоял ровно по центру */
}

/* Кнопка "Написать" */
.btn-write {
    background: linear-gradient(90deg, #ffb74d 0%, #ff5252 100%);
    color: white;
    /* Добавляем прозрачную границу 2px, чтобы размер совпал с белой кнопкой */
    border: 2px solid transparent; 
    box-shadow: 0 8px 20px rgba(255, 82, 82, 0.3);
}

.btn-write:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 82, 82, 0.5);
}

/* Кнопка "Позвонить" */
.btn-call {
    background-color: #fff;
    color: #333;
    /* Здесь реальная граница 2px */
    border: 2px solid #e0e0e0; 
}

.btn-call:hover {
    border-color: #333;
    background-color: #333;
    color: #fff;
}


/* Затемненный фон */
  .custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none; /* Скрыто по умолчанию */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  /* Класс для плавного появления */
  .custom-modal-overlay.active {
    opacity: 1;
  }

  /* Белое окно с текстом */
  .custom-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 600px; /* Ширина окна */
    width: 90%;
    max-height: 80vh; /* Максимальная высота - 80% от экрана */
    overflow-y: auto; /* Полоса прокрутки, если текста много */
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
  }
  
  .custom-modal-overlay.active .custom-modal-content {
    transform: translateY(0);
  }

  /* Крестик закрытия */
  .custom-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
  }
  
  .custom-modal-close:hover {
    color: #333;
  }

  /* Контейнер для текста */
  .custom-modal-body {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
  }


/* --- Стили выпадающего меню мессенджеров --- */

/* Обёртка для кнопки и меню */
.dropdown-wrapper {
    position: relative; /* Чтобы меню позиционировалось относительно этой кнопки */
    display: inline-block;
    z-index: 10; /* Чтобы меню было поверх всего */
}

/* Меню (скрыто по умолчанию) */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Появляется сразу под кнопкой */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Центрируем и чуть опускаем */
    width: 200px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* Чтобы нельзя было нажать, пока скрыто */
}

/* Стрелочка сверху меню (для красоты) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #fff;
}

/* --- Логика появления --- */

/* При наведении на обёртку показываем меню */
.dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(1px); /* Плавное всплытие */
    pointer-events: auto;
}

/* --- Стили ссылок внутри меню --- */
.messenger-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.messenger-link:hover {
    background-color: #f5f5f5;
}

/* Иконки */
.messenger-link .icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Цвета при наведении на конкретный мессенджер */
.messenger-link.telegram:hover {
    color: #0088cc;
}

.messenger-link.whatsapp:hover {
    color: #25d366;
}

/* Корректировка кнопки "Написать", так как теперь это тег <button> */
button.btn-question {
    font-family: inherit; /* Чтобы шрифт не слетел */
    border: none;
    outline: none;
}



/* --- Стили для уведомления о Cookie --- */

.cookie-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 340px;
    background-color: #fff;
    border-radius: 20px; /* Как у вашей карточки */
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); /* Мягкая тень */
    padding: 25px;
    z-index: 9999; /* Чтобы было поверх карты и всего остального */
    
    /* Скрыто по умолчанию (уезжает вниз и прозрачное) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

/* Класс для показа (добавляется скриптом) */
.cookie-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Кнопка в стиле вашего сайта */
.cookie-btn {
    background: linear-gradient(90deg, #ffb74d 0%, #ff5252 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(255, 82, 82, 0.25);
    width: 100%; /* Кнопка на всю ширину плашки */
    text-align: center;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 82, 82, 0.4);
}





/* --- MEDIA QUERIES ДЛЯ ПОЛНОЙ АДАПТИВНОСТИ --- */



@media (max-width: 900px) {
/* --- остались вопросы --- */
  .questions-body {
        flex-direction: column; /* Элементы встают друг под другом */
        gap: 30px;
    }
    
    .map-wrapper {
        flex: auto;
        width: 100%; /* Карта на всю ширину экрана на телефоне */
        height: 300px;
    }

    .questions-buttons {
        flex-direction: column; /* Кнопки друг под другом на телефоне */
        gap: 15px;
    }
    
    .btn-question {
        width: 100%; /* Кнопки на всю ширину */
    }
    
    .phones-row {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

/* --- остались вопросы --- */

  .hero-inner {

    flex-direction: column;

    text-align: center;

  }



  .hero-list li {

    text-align: left;

    display: inline-block;

  }



  .hero-list {

    display: flex;

    flex-direction: column;

    align-items: center;

  }



  .hero-right {

    width: 100%;

    max-width: 450px;

  }

}



@media (max-width: 768px) {

  .hero {

    padding: 32px 0 48px;

  }



  .section {

    padding: 48px 0;

  }



  .calc-grid {

    grid-template-columns: 1fr;

  }



  .calc-wrap {

    padding: 24px 20px;

  }



  .calc-bottom {

    grid-template-columns: 1fr;

    text-align: center;

  }



  .calc-result {

    align-items: center;

  }



  .submit-btn {

    width: 100%;

  }



  .hero-card {

    padding: 20px;

  }



  .types {

    grid-template-columns: 1fr;

  }

}



@media (max-width: 480px) {

  body {

    font-size: 14px;

  }

  .logo {
    margin-right: auto;
  }

  .hero-title {

    font-size: 26px;

  }


  .hero-mini-label {
    flex: none;
  }


  .section-title {

    font-size: 22px;

  }



  .hero-cta {

    width: 100%;

    justify-content: center;

  }



  .benefits {

    grid-template-columns: 1fr;

  }



  select,

  input[type="number"],

  input[type="text"],

  input[type="email"],

  input[type="tel"] {

    padding: 10px 12px;

  }

}