/* ЕДТЕ (edte.ru) — единый stylesheet. Mobile-first, light theme, teal accent. */

:root {
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #ccfbf1;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

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

/* ---------- header ---------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text);
}
.brand:hover { color: var(--accent); text-decoration: none; }
.brand-dot { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 16px;
  font-size: .95rem;
  flex-wrap: wrap;
}
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */

.hero { padding: 40px 0 8px; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .4em;
}
.hero h1 { font-size: 2rem; max-width: 22ch; }
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.cta-row { margin: 18px 0 0; }

/* ---------- sections & cards ---------- */

.section { margin: 36px 0; }
.section-sub { color: var(--muted); margin-top: -0.6em; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.route-card, .country-card { padding: 0; }
.route-link {
  display: block;
  padding: 18px 20px;
  color: var(--text);
  border-radius: var(--radius);
}
.route-link:hover { text-decoration: none; background: #f0fdfa; }
.route-link h3 { margin-bottom: .25em; }

.route-iata {
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .5em;
}
.route-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: .15em;
}
.route-avg { color: var(--muted); font-size: .9rem; margin: 0; }
.country-visa { color: var(--muted); font-size: .92rem; margin-bottom: .4em; }

.flag { margin-right: .2em; }
.arrow { color: var(--accent); }

/* ---------- page head / breadcrumbs ---------- */

.breadcrumbs {
  font-size: .85rem;
  color: var(--muted);
  margin: 20px 0 8px;
}
.breadcrumbs span { margin: 0 4px; }

.page-head { margin-bottom: 8px; }
.page-head h1 { font-size: 1.8rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 65ch; }
.updated { font-size: .82rem; color: var(--muted); }

/* ---------- facts list ---------- */

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0 0 20px;
}
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }

.dot-list { margin: 0 0 8px; padding-left: 20px; }
.dot-list li { margin-bottom: .4em; }

/* ---------- month strip ---------- */

.month-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.month {
  text-align: center;
  padding: 10px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: .85rem;
  color: var(--muted);
}
.month.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ---------- chart ---------- */

.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 560px; height: auto; }
.chart .gl { stroke: var(--border); stroke-width: 1; }
.chart .bar { fill: #99f6e4; }
.chart .bar-min { fill: var(--accent); }
.chart .axis-x { fill: var(--muted); font-size: 15px; }
.chart .axis-y { fill: var(--muted); font-size: 14px; }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; }
.price-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .95rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.price-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.price-table tbody tr:hover { background: #f0fdfa; }

.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.tag-min { background: var(--accent-soft); color: var(--accent-dark); }
.tag-best { background: #fef3c7; color: #92400e; }

/* ---------- widget placeholder ---------- */

.widget-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  background: #f8fafc;
}
.widget-placeholder p { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  margin-top: 48px;
  padding: 24px 0 32px;
  font-size: .9rem;
  color: var(--muted);
}
.footer-inner p { margin: 0 0 .4em; }
.footer-brand { font-weight: 600; color: var(--text); }
.footer-note { font-size: .8rem; }

/* ---------- larger screens ---------- */

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .month-strip { grid-template-columns: repeat(12, 1fr); }
  h1, .hero h1 { font-size: 2.2rem; }
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 56px 0 12px; }
  .hero h1 { font-size: 2.6rem; }
}
