/*
Theme Name: Expert Destinations
Theme URI: https://nepalexpert.ru/
Author: Mountain Guide
Description: Лёгкая тема для специализированных сайтов путешествий.
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: expert-destinations
*/

:root {
  --ink: #14201d;
  --muted: #5f6b67;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --line: rgba(20, 32, 29, .14);
  --accent: #b64f36;
  --accent-dark: #713223;
  --forest: #163f37;
  --radius: 1.5rem;
  --shadow: 0 24px 70px rgba(17, 31, 27, .12);
  --serif: Iowan Old Style, Baskerville, Palatino Linotype, Book Antiqua, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

body.site-toubkal {
  --paper: #f3eee4;
  --surface: #fffaf0;
  --accent: #b54d27;
  --accent-dark: #713017;
  --forest: #123d46;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: white;
  padding: 24px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.brand-mark svg { width: 23px; height: 23px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: rgba(255,255,255,.86); text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }

.hero {
  min-height: 88vh;
  color: #fff;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero) center 46% / cover no-repeat;
  transform: scale(1.015);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8,17,15,.52) 0%, rgba(8,17,15,.28) 38%, rgba(8,17,15,.88) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .55fr); align-items: end; gap: 64px; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; }
.hero h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; }
.hero h1 { max-width: 880px; margin: 0; font-size: clamp(52px, 8vw, 104px); line-height: .92; text-wrap: balance; }
.hero-copy { max-width: 680px; margin: 28px 0 0; color: rgba(255,255,255,.86); font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: white; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--accent-dark); box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.button-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); backdrop-filter: blur(10px); }
.button-light:hover { background: rgba(255,255,255,.22); }
.hero-note { border-left: 1px solid rgba(255,255,255,.45); padding-left: 24px; color: rgba(255,255,255,.78); font-size: 14px; }
.hero-note strong { display: block; color: #fff; font: 500 29px/1.1 var(--serif); margin-bottom: 8px; }

.stats { position: relative; z-index: 3; margin-top: -1px; background: var(--forest); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 30px 5vw 32px 0; border-right: 1px solid rgba(255,255,255,.15); }
.stat + .stat { padding-left: 5vw; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 500 clamp(28px, 4vw, 44px)/1 var(--serif); }
.stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.72); font-size: 13px; }

.section { padding: clamp(76px, 10vw, 132px) 0; }
.section-white { background: var(--surface); }
.section-head { display: grid; grid-template-columns: .68fr 1.32fr; gap: 60px; align-items: start; margin-bottom: 52px; }
.section-head h2 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1; text-wrap: balance; }
.section-head p { max-width: 680px; margin: 8px 0 0; color: var(--muted); font-size: 20px; }

.route-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.route-card { grid-column: span 6; min-height: 390px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; border-radius: var(--radius); color: white; box-shadow: var(--shadow); }
.route-card:first-child { grid-column: span 7; }
.route-card:nth-child(2) { grid-column: span 5; }
.route-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--image) center/cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.route-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 15%, rgba(8,17,15,.84) 100%); }
.route-card:hover::before { transform: scale(1.04); }
.route-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(0,0,0,.16); backdrop-filter: blur(8px); font-size: 12px; }
.route-card h3 { max-width: 620px; margin: 0; font-size: clamp(30px, 4vw, 49px); line-height: 1.02; }
.route-card p { max-width: 570px; margin: 16px 0 0; color: rgba(255,255,255,.79); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.story-photo { min-height: 630px; border-radius: var(--radius); background: var(--image) center/cover; box-shadow: var(--shadow); }
.story h2 { margin: 0 0 26px; font-size: clamp(42px, 6vw, 72px); line-height: 1; }
.story > p { color: var(--muted); font-size: 19px; }
.principles { display: grid; gap: 0; margin-top: 38px; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principle b { color: var(--accent); font: 500 21px/1 var(--serif); }
.principle strong { display: block; margin-bottom: 4px; }
.principle span { color: var(--muted); font-size: 14px; }

.faq { max-width: 900px; margin: 0 auto; }
.faq h2 { margin: 0 0 46px; font-size: clamp(42px, 6vw, 72px); text-align: center; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 760px; margin: -5px 0 26px; color: var(--muted); }

.request { background: var(--forest); color: white; }
.request-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 78px; align-items: start; }
.request h2 { margin: 0 0 24px; font-size: clamp(46px, 7vw, 82px); line-height: .96; }
.request-intro { color: rgba(255,255,255,.72); font-size: 18px; }
.request-email { display: inline-block; margin-top: 26px; color: white; font-weight: 700; }
.lead-form { padding: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; color: rgba(255,255,255,.72); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 13px 14px; background: rgba(255,255,255,.09); color: white; outline: none; }
.field select option { color: var(--ink); background: white; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255,255,255,.7); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; color: rgba(255,255,255,.7); font-size: 12px; }
.consent input { margin-top: 4px; }
.form-message { padding: 14px 16px; margin-bottom: 18px; border-radius: 12px; background: rgba(255,255,255,.12); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { padding: 34px 0; background: #0d2621; color: rgba(255,255,255,.63); font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; }
.footer-grid a { color: white; }
.interior-header { position: static; background: var(--forest); }
.content-page { min-height: 70vh; padding: clamp(70px, 9vw, 120px) 0; background: var(--surface); }
.prose { max-width: 780px; }
.prose h1 { margin: 0 0 42px; font: 500 clamp(44px, 7vw, 78px)/1 var(--serif); letter-spacing: -.03em; }
.prose h2 { margin: 44px 0 14px; font-size: clamp(28px, 4vw, 38px); }
.prose p { color: var(--muted); }

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { min-height: 760px; }
  .hero-grid, .section-head, .split, .request-grid { grid-template-columns: 1fr; }
  .hero-note { display: none; }
  .section-head { gap: 24px; }
  .route-card, .route-card:first-child, .route-card:nth-child(2) { grid-column: span 12; }
  .story-photo { min-height: 470px; order: -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, 1180px); }
  .site-header { padding: 16px 0; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { min-height: 720px; padding: 118px 0 46px; }
  .hero h1 { font-size: clamp(49px, 17vw, 74px); }
  body.site-toubkal .hero h1 { font-size: clamp(44px, 12.8vw, 54px); line-height: .96; }
  .hero-copy { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat:last-child { border-bottom: 0; }
  .section { padding: 70px 0; }
  .section-head p { font-size: 17px; }
  .route-card { min-height: 430px; padding: 24px; }
  .story-photo { min-height: 390px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .lead-form { padding: 22px; }
  .footer-grid { flex-direction: column; }
}

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