/* GOKSEN Turkmenistan — Phase 7A design system (from clean-source css-reference tokens) */
:root {
  --navy: #08111f;
  --navy-2: #0b1626;
  --navy-3: #0e1a2b;
  --navy-4: #111e31;
  --red: #e52b35;
  --red-hover: #bd1f27;
  --red-soft: #ff666f;
  --cream: #f3eee3;
  --text: #f7f8fb;
  --muted: #aab4c3;
  --muted-2: #9eabba;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shell: min(1240px, calc(100% - 48px));
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: #fff; }
p { margin: 0 0 1.1em; color: var(--muted); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 17, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo__img { width: 36px; height: 36px; object-fit: contain; }
.logo__text { font-weight: 800; font-size: 15px; letter-spacing: 0.02em; color: #fff; white-space: nowrap; }
.logo__text span { color: var(--red); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--muted);
  border-radius: 8px; transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--navy-3);
}
.lang-switch__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px;
  padding: 8px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--navy-3); box-shadow: var(--shadow); display: none;
}
.lang-switch.is-open .lang-switch__list { display: block; }
.lang-switch__list a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.lang-switch__list a:hover, .lang-switch__list a.is-active { color: #fff; background: rgba(229,43,53,.18); }
.lang-switch__list a.is-disabled { opacity: .45; pointer-events: none; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: #fff; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 20px 0 0; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em;
}
.breadcrumbs a { color: rgba(255,255,255,.72); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs__sep { opacity: .5; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 48px 0 72px; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: flex-end; }
.hero__media, .hero__shade { position: absolute; inset: 0; z-index: -2; }
.hero__media { z-index: -3; background: #050b13; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: saturate(.9) contrast(1.03); }
.hero__shade {
  background:
    linear-gradient(90deg, rgba(5,12,22,.96) 0%, rgba(5,12,22,.78) 42%, rgba(5,12,22,.28) 72%, rgba(5,12,22,.45) 100%),
    linear-gradient(0deg, #08111f 0%, transparent 40%);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red-soft); font-size: 12px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--red); }
.hero h1 {
  max-width: 920px; margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 84px); line-height: .99; letter-spacing: -.045em;
}
.hero__lead { max-width: 760px; margin-bottom: 28px; color: #d4dce7; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 960px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.facts > div { padding: 16px 16px 16px 0; border-right: 1px solid var(--line); }
.facts > div + div { padding-left: 16px; }
.facts > div:last-child { border-right: 0; }
.facts strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.facts span { display: block; color: var(--muted-2); font-size: 12px; line-height: 1.45; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 800; text-align: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--red); border: 1px solid var(--red); color: #fff; box-shadow: 0 12px 32px rgba(229,43,53,.18); }
.btn--primary:hover { background: var(--red-hover); border-color: var(--red-hover); transform: translateY(-1px); }
.btn--ghost { background: var(--navy-3); border: 1px solid #66758a; color: #fff; }
.btn--ghost:hover { background: #1a2a40; border-color: var(--red); }

/* Sections */
.section { padding: 96px 0; background: var(--navy); }
.section--soft { background: var(--navy-2); }
.section--deep { background: #07101d; }
.section--grad {
  background: linear-gradient(135deg, #111e31, #07101d 70%);
  border-top: 1px solid var(--line);
}
.section__head {
  display: flex; justify-content: space-between; gap: 40px; align-items: end;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section__head > div { max-width: 760px; }
.section__head h2 { font-size: clamp(32px, 3.7vw, 52px); margin-top: 8px; }
.section__aside { max-width: 380px; color: var(--muted-2); font-size: 14px; line-height: 1.7; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 720px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

/* Cards */
.card {
  background: var(--navy-3); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(229,43,53,.38); box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.card__media { position: relative; height: 240px; background: #111b29; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.035); }
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 7px 11px; border-radius: 999px; background: var(--red);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.card__body { padding: 22px; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px;
  color: var(--red-soft); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.card__meta span + span { color: #8896a8; }
.card h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 10px; letter-spacing: -.02em; }
.card h3 a { color: #fff; }
.card p { font-size: 13px; line-height: 1.75; color: var(--muted-2); margin-bottom: 16px; }
.card__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #fff; }
.card__link::after { content: "→"; color: var(--red); font-size: 18px; transition: transform .2s; }
.card__link:hover::after { transform: translateX(4px); }

.card--flat { display: block; }
.card--flat .card__media { height: 200px; }

/* Feature / step cards */
.feature {
  padding: 26px; background: var(--navy-3);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.feature small {
  display: block; margin-bottom: 16px; color: var(--red);
  font-size: 13px; font-weight: 900; letter-spacing: .12em;
}
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted-2); }
.feature ul { display: grid; gap: 10px; }
.feature li {
  position: relative; padding: 12px 14px 12px 34px;
  border: 1px solid var(--line); border-radius: 10px;
  color: #dbe2eb; font-size: 14px;
}
.feature li::before {
  content: "✓"; position: absolute; left: 13px; color: var(--red); font-weight: 900;
}

/* Destinations mosaic */
.destinations {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, 1fr); gap: 14px;
}
.dest {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1); min-height: 240px;
}
.dest--lg { grid-column: span 2; grid-row: span 2; min-height: 480px; }
.dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dest:hover img { transform: scale(1.04); }
.dest__label {
  position: absolute; inset: auto 0 0 0; padding: 22px;
  background: linear-gradient(0deg, rgba(3,8,14,.92), transparent);
}
.dest__label strong { display: block; font-size: 22px; color: #fff; letter-spacing: -.02em; }
.dest__label span { color: #c5ced9; font-size: 13px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  padding: 24px; background: var(--navy-3);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step span {
  display: block; margin-bottom: 14px; color: var(--red);
  font-size: 13px; font-weight: 900; letter-spacing: .12em;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted-2); }

/* FAQ */
.faq { max-width: 920px; margin-top: 28px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; text-align: left; color: #fff;
  font-size: 17px; font-weight: 800;
}
.faq__icon {
  width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 22px; line-height: 1; transition: .2s;
}
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 48px 20px 0; margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--red); color: #fff; }

/* CTA / note */
.note {
  margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--red);
  background: rgba(255,255,255,.035); color: #d5dce5;
  font-size: 13px; line-height: 1.7;
}
.cta-band { padding: 88px 0; background: linear-gradient(135deg, #111e31, #07101d 70%); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(30px, 3.5vw, 46px); margin-bottom: 14px; }
.cta-band p { max-width: 640px; color: var(--muted); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Answer block (AI/SEO) */
.answer {
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.03); margin-bottom: 28px;
}
.answer p { margin: 0; color: #d7dee8; font-size: 16px; line-height: 1.75; }
.answer strong { color: #fff; }

/* Direct answer opener on informational pages */
.direct-answer {
  margin-bottom: 8px; padding: 20px 22px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(229,43,53,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(229,43,53,.28);
}
.direct-answer p { margin: 0; color: #f0f3f8; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7; font-weight: 500; }

/* Content prose */
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 40px 0 16px; }
.prose h3 { font-size: 22px; margin: 28px 0 12px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.prose ul { display: grid; gap: 10px; margin: 0 0 20px; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.prose a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(229,43,53,.5); }
.prose a:hover { color: var(--red-soft); }

/* Image block */
.media-card {
  min-height: 320px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

/* Blog list */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }

/* Footer */
.site-footer { background: #060d17; border-top: 1px solid var(--line); padding: 56px 0 28px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
.site-footer h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer p, .site-footer li { color: var(--muted-2); font-size: 14px; line-height: 1.7; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__brand img { width: 42px; height: 42px; object-fit: contain; }
.site-footer__bottom {
  padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #6f7d8f; font-size: 13px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: grid; gap: 16px; }

/* Responsive */
@media (max-width: 1100px) {
  .grid-4, .steps, .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .destinations { grid-template-columns: repeat(2, 1fr); }
  .dest--lg { grid-column: span 2; grid-row: span 1; min-height: 280px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .blog-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: rgba(8,17,31,.98);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 15px; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 72px 0; }
  .hero { min-height: auto; padding-top: 36px; }
}
@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); }
  .grid-3, .grid-4, .blog-grid, .steps, .facts, .destinations,
  .site-footer__grid { grid-template-columns: 1fr; }
  .dest--lg { grid-column: auto; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .facts > div + div { padding-left: 0; }
  .facts > div:last-child { border-bottom: 0; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .section__head { flex-direction: column; align-items: start; }
  .faq__q { font-size: 15px; }
  .logo__text { font-size: 13px; }
}
@media (max-width: 360px) {
  .site-header__inner { gap: 8px; min-height: 64px; }
  .lang-switch__btn { padding: 0 8px; }
}
/* Trip planner */
.planner-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px; align-items: start;
}
.planner-panel {
  padding: 26px; background: var(--navy-3);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.planner-panel h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
.planner-panel > p { font-size: 14px; color: var(--muted-2); }
.planner-field { margin-bottom: 22px; }
.planner-field > legend,
.planner-field > .planner-label {
  display: block; margin-bottom: 10px; padding: 0;
  color: #fff; font-size: 13px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.planner-field fieldset { border: 0; margin: 0; padding: 0; }
.planner-input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--navy-2); color: #fff; font: inherit;
}
.planner-input:focus { outline: 2px solid rgba(229,43,53,.45); border-color: var(--red); }
.planner-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.planner-chip { position: relative; }
.planner-chip input {
  position: absolute; opacity: 0; pointer-events: none;
}
.planner-chip span {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--navy-2);
  color: var(--muted); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.planner-chip input:checked + span {
  border-color: rgba(229,43,53,.65); background: rgba(229,43,53,.16);
  color: #fff;
}
.planner-chip input:focus-visible + span { outline: 2px solid var(--red-soft); outline-offset: 2px; }
.planner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.planner-status { min-height: 1.4em; margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.planner-result[hidden] { display: none !important; }
.planner-result {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(229,43,53,.12), rgba(255,255,255,.03) 42%, var(--navy-3));
  border: 1px solid rgba(229,43,53,.28);
}
.planner-result h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 10px; }
.planner-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px; margin: 18px 0;
}
.planner-meta div {
  padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(8,17,31,.45);
}
.planner-meta strong { display: block; color: #fff; font-size: 18px; }
.planner-meta span { color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.planner-block { margin-top: 18px; }
.planner-block h3 { font-size: 15px; margin-bottom: 10px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.planner-list { display: grid; gap: 10px; }
.planner-list li {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(8,17,31,.35); color: #d7dee8; font-size: 14px; line-height: 1.6;
}
.planner-list li strong { display: block; color: #fff; margin-bottom: 4px; }
.planner-list li span { display: block; margin-top: 4px; }
.planner-list li a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(229,43,53,.45); }
.planner-list li a:hover { color: var(--red-soft); }
.planner-list--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.planner-list--inline li { padding: 8px 12px; }
.planner-list--inline li span { display: none; }
.planner-price {
  margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--red);
  background: rgba(255,255,255,.04); color: #f3f6fa;
  font-size: 14px; font-weight: 700;
}
.planner-cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.planner-link { display: inline-block; margin-left: 8px; color: var(--red-soft); font-weight: 800; font-size: 12px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }

@media (max-width: 900px) {
  .planner-grid, .tools-grid { grid-template-columns: 1fr; }
  .planner-meta { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .planner-panel, .planner-result { padding: 18px; }
  .planner-actions .btn, .planner-cta .btn { width: 100%; }
  .planner-chip span { width: 100%; justify-content: center; }
  .planner-chips { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .planner-chips { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
