/*
Theme Name: Домбай Тур
Theme URI: https://dombay-tur.ru
Author: Домбай Team
Description: Независимый рейтинг туров в Домбай
Version: 9.0
Text Domain: dombaj-tour
*/


:root {
  --primary: #006dff;
  --primary-light: #f0ffff;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0b1120;
  --light: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #111827;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.header {
  background: var(--dark);
  color: #e5e7eb;
}

.header-inner-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: clamp(18px, 4vw, 22px);
  color: white;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  color: #e5e7eb;
  font-size: clamp(14px, 3.5vw, 16px);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

/* HERO SECTION - МОБИЛЬНАЯ ОПТИМИЗАЦИЯ */
.hero {
  padding: clamp(24px, 8vh, 60px) 0 clamp(20px, 6vh, 32px);
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  color: #f9fafb;
  overflow: hidden;
}

.hero-title-2 {
  font-size: clamp(28px, 8vw, 48px); /* Меньше на мобиле */
  font-weight: 700;
  margin-bottom: clamp(12px, 4vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle-2 {
  font-size: clamp(14px, 4vw, 18px);
  max-width: 100%;
  opacity: 0.95;
  margin-bottom: clamp(20px, 6vw, 32px);
  line-height: 1.5;
}

/* ФИЛЬТРЫ НА МОБИЛЕ */
.hero-filters {
  margin-top: 20px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr; /* Мобильная сетка */
  gap: 12px;
}

@media (min-width: 768px) {
  .hero-filters {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* SECTION */
.section {
  padding: clamp(24px, 8vw, 48px) 0;
}

.section-title {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(14px, 3.5vw, 16px);
  color: #6b7280;
  margin-bottom: 24px;
}

/* TOURS GRID */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(12px, 4vw, 20px);
}

/* TOUR CARD */
.tour-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: all 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.tour-card-title {
  font-weight: 600;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.3;
  margin-bottom: 8px;
}

.tour-card-meta {
  font-size: clamp(12px, 3vw, 14px);
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-card-price {
  font-weight: 700;
  font-size: clamp(18px, 5vw, 24px);
  margin-top: auto;
  color: var(--primary);
}

.rating-badge {
  background: #ecfdf5;
  color: #166534;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 500;
}

/* TRUST BAR */
.trust-bar {
  display: flex;
  gap: 12px;
  font-size: clamp(12px, 3vw, 14px);
  margin-top: 12px;
}

/* FAQ */
.faq {
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
  padding-top: 24px;
}

.faq-item {
  margin-bottom: 16px;
}

.faq-item-question {
  font-weight: 600;
  cursor: pointer;
  font-size: clamp(14px, 4vw, 16px);
}

/* BADGES */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: clamp(11px, 3vw, 12px);
  background: #f1f5f9;
  color: #475569;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }
  
  .hero {
    padding: 32px 0 24px;
  }
  
  .hero-title-2 {
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .hero-filters {
    padding: 16px;
    margin-top: 24px;
  }
  
  .tours-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tour-card {
    padding: 16px;
  }
}

/* TABLET */
@media (min-width: 768px) {
  .hero-title-2 {
    font-size: 40px;
  }
}

/* HOVER EFFECTS */
.tour-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* SCROLLBAR (Webkit) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
/* --- НОВАЯ ШАПКА --- */
.site-header {
  position: absolute; /* Шапка лежит поверх фото */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
}

.header-inner-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 24px;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.header-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.header-btn:hover {
  background: #fff;
  color: #333;
}
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('https://dombay-tur.ru/wp-content/uploads/2026/07/logo.png') center/cover no-repeat;
  margin-bottom: 40px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  display: inline-block;
  background: #006dff;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-title-2 {
  font-size: clamp(32px, 6vw, 56px); /* Крупный заголовок */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle-2 {
  font-size: clamp(16px, 3vw, 20px);
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* --- КРУПНЫЕ ПРЕИМУЩЕСТВА --- */
.features-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15); /* Стекло */
  padding: 10px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.feature-icon {
  font-size: 20px;
}

.feature-text {
  font-weight: 600;
  font-size: 15px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .site-header { padding: 15px 0; }
  .main-nav { display: none; } /* Скрываем меню на мобиле (нужен бургер, но пока просто скроем лишнее) */
  .brand-logo { font-size: 18px; }
  .header-btn { padding: 6px 12px; font-size: 13px; }
  
  .hero-section { height: 500px; }
  .features-grid { flex-direction: column; gap: 10px; align-items: center; }
  .feature-item { width: 100%; justify-content: center; }
}

.faq-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #ffffff;
    overflow: hidden;
}

.faq-block summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 15px 52px 15px 18px;
    color: #343a40;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-block summary:hover {
    color: #f59e0b;
    background-color: #f8f9fa;
}

.faq-block summary::marker {
    content: "";
    display: none;
}

.faq-block summary::-webkit-details-marker {
    display: none;
}

.faq-block summary::after {
    content: "";
    position: absolute;
    right: 20px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #198754;
    border-bottom: 2px solid #198754;
    transform: rotate(45deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-block[open] summary {
    color: #202020;
    background-color: #f8f9fa;
}

.faq-block[open] summary::after {
    border-color: #198754;
    transform: rotate(225deg);
}

.faq-block p {
    margin: 0;
    padding: 0 18px 18px;
    color: #555555;
    line-height: 1.6;
}

.usage-box {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.usage-box > i {
    position: static !important;
    display: block;
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    line-height: 22px !important;
    text-align: center;
    vertical-align: baseline;
}

.usage-box > div {
    flex: 1 1 auto;
    min-width: 0;
}

.usage-box > div > strong {
    display: block;
    margin: 0 0 8px;
}

.usage-box > div > p {
    margin: 0 0 8px;
}

.usage-box > div > p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   МОДАЛЬНОЕ ОКНО ФОРМЫ
========================================================= */

.modal-dialog-narrow {
    position: relative;
    width: min(100%, 620px);
    max-height: 90vh;
    overflow-y: auto;

    margin: 0 auto;
    padding: 30px;

    background: #ffffff;
    border-radius: 22px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, .25);

    box-sizing: border-box;
}

/* Заголовок */
.modal-dialog-narrow .modal-title {
    margin: 0 48px 8px 0;

    color: #111827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

/* Эмодзи в заголовке */
.modal-dialog-narrow .modal-title .emoji {
    display: inline-block;

    width: 27px;
    height: 27px;

    margin-left: 5px;

    vertical-align: -4px;
}

/* Подзаголовок */
.modal-dialog-narrow .modal-subtitle {
    margin: 0 0 24px;

    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}

/* Кнопка закрытия */
.modal-dialog-narrow .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #f3f4f6;
    color: #111827;

    font-size: 27px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.modal-dialog-narrow .modal-close:hover {
    background: #e5e7eb;
    color: #000000;
    transform: scale(1.06);
}

.modal-dialog-narrow .modal-close:active {
    transform: scale(.97);
}

.modal-dialog-narrow .modal-close:focus,
.modal-dialog-narrow .modal-close:focus-visible {
    outline: none;
    background: #eaf6fc;
    box-shadow: 0 0 0 4px rgba(34, 158, 217, .2);
}


/* =========================================================
   CONTACT FORM 7
========================================================= */

.modal-dialog-narrow .cf7-form-wrap {
    width: 100%;
}

.modal-dialog-narrow .wpcf7 {
    width: 100%;
}

.modal-dialog-narrow .wpcf7-form {
    width: 100%;
    margin: 0;
}

.modal-dialog-narrow .wpcf7-form p {
    margin: 0 0 18px;
}

.modal-dialog-narrow .wpcf7-form label {
    display: block;

    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

/* Обёртки полей */
.modal-dialog-narrow .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-top: 8px;
}

/* Поля формы */
.modal-dialog-narrow input[type="email"],
.modal-dialog-narrow input[type="text"],
.modal-dialog-narrow input[type="tel"],
.modal-dialog-narrow input[type="url"],
.modal-dialog-narrow textarea,
.modal-dialog-narrow select {
    display: block;

    width: 100%;
    max-width: 100%;
    min-height: 54px;

    padding: 14px 16px;

    border: 1px solid #d1d5db;
    border-radius: 14px;

    background: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.45;

    outline: none;
    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

/* Поле сообщения */
.modal-dialog-narrow textarea {
    min-height: 160px;
    resize: vertical;
}

/* Состояние фокуса */
.modal-dialog-narrow input[type="email"]:focus,
.modal-dialog-narrow input[type="text"]:focus,
.modal-dialog-narrow input[type="tel"]:focus,
.modal-dialog-narrow input[type="url"]:focus,
.modal-dialog-narrow textarea:focus,
.modal-dialog-narrow select:focus {
    border-color: #229ed9;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(34, 158, 217, .14);
}

/* Placeholder */
.modal-dialog-narrow input::placeholder,
.modal-dialog-narrow textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Кнопка отправки */
.modal-dialog-narrow .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 54px;

    padding: 14px 24px;

    border: 0;
    border-radius: 999px;

    background: #16a34a;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 8px 18px rgba(22, 163, 74, .2);

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

.modal-dialog-narrow .wpcf7-submit:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 163, 74, .28);
}

.modal-dialog-narrow .wpcf7-submit:active {
    transform: translateY(0);
}

.modal-dialog-narrow .wpcf7-submit:focus,
.modal-dialog-narrow .wpcf7-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .2);
}

/* Индикатор отправки */
.modal-dialog-narrow .wpcf7-spinner {
    display: block;
    margin: 12px auto 0;
}

/* Сообщения об ошибках около полей */
.modal-dialog-narrow .wpcf7-not-valid-tip {
    display: block;

    margin-top: 7px;

    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* Общий ответ Contact Form 7 */
.modal-dialog-narrow .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 14px 16px !important;

    border-radius: 13px;

    font-size: 14px;
    line-height: 1.45;
}

/* Успешная отправка */
.modal-dialog-narrow
.wpcf7 form.sent
.wpcf7-response-output {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

/* Ошибка валидации */
.modal-dialog-narrow
.wpcf7 form.invalid
.wpcf7-response-output,
.modal-dialog-narrow
.wpcf7 form.unaccepted
.wpcf7-response-output {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* Ошибка сервера */
.modal-dialog-narrow
.wpcf7 form.failed
.wpcf7-response-output,
.modal-dialog-narrow
.wpcf7 form.aborted
.wpcf7-response-output {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

/* Скрытые элементы Contact Form 7 */
.modal-dialog-narrow .screen-reader-response,
.modal-dialog-narrow .hidden-fields-container,
.modal-dialog-narrow .akismet-fields-container {
    display: none !important;
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
========================================================= */

@media (max-width: 700px) {

    .modal-dialog-narrow {
        width: 100%;
        max-height: 92vh;

        padding: 22px 15px
            calc(15px + env(safe-area-inset-bottom));

        border-radius: 20px 20px 0 0;
    }

    .modal-dialog-narrow .modal-title {
        margin-right: 46px;
        font-size: 22px;
    }

    .modal-dialog-narrow .modal-title .emoji {
        width: 22px;
        height: 22px;
        vertical-align: -3px;
    }

    .modal-dialog-narrow .modal-subtitle {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .modal-dialog-narrow .modal-close {
        top: 10px;
        right: 10px;

        width: 40px;
        height: 40px;

        font-size: 24px;
    }

    .modal-dialog-narrow .wpcf7-form p {
        margin-bottom: 15px;
    }

    .modal-dialog-narrow .wpcf7-form label {
        font-size: 13px;
    }

    .modal-dialog-narrow input[type="email"],
    .modal-dialog-narrow input[type="text"],
    .modal-dialog-narrow input[type="tel"],
    .modal-dialog-narrow input[type="url"],
    .modal-dialog-narrow textarea,
    .modal-dialog-narrow select {
        font-size: 16px;
    }

    .modal-dialog-narrow textarea {
        min-height: 135px;
    }

    .modal-dialog-narrow .wpcf7-submit {
        min-height: 52px;
        font-size: 15px;
    }
}