/*
Theme Name: e-Aviabilet
Theme URI: https://e-aviabilet.ru/
Author: e-Aviabilet
Author URI: https://e-aviabilet.ru/
Description: Одностраничная тема-лендинг для сервиса поиска дешевых авиабилетов с интегрированными виджетами Aviakassa (поисковая форма и лента лучших цен). Партнерская ссылка, тексты hero-блока и цены направлений настраиваются через Кастомайзер (Внешний вид → Настроить).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: e-aviabilet
Tags: one-column, custom-menu, translation-ready
*/

:root {
  --font-main: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Rubik", "Golos Text", sans-serif;
  --color-dark: #0e1b33;
  --color-dark-alt: #091226;
  --color-text: #15223b;
  --color-text-muted: #5d6a80;
  --color-accent: #ffb13d;
  --color-accent-hover: #ffa114;
  --color-bg: #f6f8fc;
  --color-card-border: #ccd4e2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* --- Шапка и первый экран --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 16, 34, 0.92) 0%, rgba(10, 20, 42, 0.68) 50%, rgba(12, 22, 44, 0.32) 100%),
    linear-gradient(0deg, rgba(7, 14, 30, 0.72) 0%, transparent 42%),
    url("https://images.pexels.com/photos/10834384/pexels-photo-10834384.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=2000")
      center/cover no-repeat;
}

.site-nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: 12px;
  transform: rotate(-6deg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.nav-links,
.nav-links ul {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.nav-links a {
  transition: color 0.2s;
}

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

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 18px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.support-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
}

/* --- Центр первого экрана --- */
.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 60px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-bottom: 24px;
}

h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 44px;
}

.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-accent);
}

.hero-stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* --- Виджет партнера --- */
.partner-widget {
  max-width: 980px;
}

/* --- Секции --- */
.section {
  padding-block: 100px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  gap: 40px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #3a5a93;
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-header p {
  max-width: 420px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Направления --- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.dest-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(14, 27, 51, 0.05);
  border: 1px solid #e2e8f2;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(14, 27, 51, 0.1);
  border-color: #c6d2e4;
}

.dest-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.dest-info {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dest-city {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.dest-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #7684a0;
}

.dest-price {
  font-size: 14px;
  font-weight: 800;
  color: #0e1b33;
  background: #ffedcb;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* --- О сервисе --- */
.about-wrap {
  background: var(--color-dark);
  color: white;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 80px;
}

.about-content {
  padding: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content .eyebrow {
  color: var(--color-accent);
}

.about-content p {
  color: #a9b6cf;
  line-height: 1.7;
  margin-block: 20px 30px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 35px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
}

.features-list li span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--color-accent);
  color: var(--color-dark);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.about-img {
  background: url("https://images.pexels.com/photos/7292747/pexels-photo-7292747.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1200")
    center/cover no-repeat;
  min-height: 380px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 14px;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* --- FAQ --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 100px;
}

.faq-item {
  border-bottom: 1px solid var(--color-card-border);
  padding-block: 20px;
}

.faq-item details summary {
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item details summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: #8b97ad;
  transition: transform 0.2s;
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-item details p {
  margin-top: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.faq-lead {
  margin-top: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Внутренние страницы: компактная шапка --- */
body.page:not(.home) .hero,
body.single .hero,
body.archive .hero,
body.search .hero,
body.error404 .hero {
  min-height: auto;
}

/* --- Контент обычных страниц/записей --- */
.page-plain {
  padding-block: 140px 80px;
  min-height: 60vh;
}

.page-plain .entry-content {
  max-width: 760px;
  line-height: 1.7;
}

.page-plain .entry-content p {
  margin-bottom: 1em;
}

.page-plain h1 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--color-text);
  margin-bottom: 30px;
}

/* --- Футер --- */
.footer {
  background: #eaeff7;
  border-top: 1px solid #d8e0ec;
  padding-block: 60px 40px;
  font-size: 13px;
  color: #68758d;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-weight: 600;
  color: var(--color-text);
}

.footer-links a:hover {
  color: #3a5a93;
}

/* --- Адаптивность --- */
@media (max-width: 980px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }
  .about-img {
    height: 280px;
    min-height: 0;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .nav-links,
  .support-btn {
    display: none;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
