@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #17201c;
  --muted: #65716b;
  --paper: #f4f2e9;
  --white: #fffef9;
  --forest: #17473c;
  --forest-deep: #0d3028;
  --lime: #d9ed8a;
  --red: #d6533d;
  --blue: #345e77;
  --line: #d9ded5;
  --shadow: 0 18px 54px rgba(24, 44, 36, .12);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 15px/1.55 'DM Sans', sans-serif; }
body::before { position: fixed; inset: 0; z-index: 20; pointer-events: none; content: ''; opacity: .022; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(214, 83, 61, .45); outline-offset: 3px; }

.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 clamp(22px, 5.5vw, 84px); border-bottom: 1px solid rgba(23, 32, 28, .09); background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 20px/1 'Manrope', sans-serif; letter-spacing: 0; text-transform: none; }
.brand > span:last-child > span { color: var(--red); }
.brand small { display: inline-block; margin-left: 4px; color: var(--muted); font-size: 9px; vertical-align: top; }
.brand-mark { display: grid; width: 35px; aspect-ratio: 1; place-items: center; border-radius: 50% 50% 50% 8px; background: var(--forest); color: var(--lime); font-size: 18px; }
.main-nav { display: flex; gap: clamp(16px, 2.5vw, 34px); color: #59645e; font-size: 12px; font-weight: 600; }
.main-nav a, .text-link { transition: color .18s ease; }
.main-nav a:hover, .text-link:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.support-phone { color: var(--forest); font-weight: 700; white-space: nowrap; }
.telegram-link, .staff-link { color: var(--muted); }
.telegram-link { padding: 7px 9px; border: 1px solid var(--line); border-radius: 2px; }
.staff-link { margin-right: 7px; font-size: 10px; }
.language { padding: 5px 3px; border: 0; background: transparent; color: #87918b; font-size: 10px; }
.language.active { color: var(--ink); font-weight: 800; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 5px; padding: 10px 13px; border: 1px solid var(--forest); border-radius: 2px; background: transparent; color: var(--forest); font-size: 11px; font-weight: 700; }
.user-icon { font-size: 15px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 23px; }

.hero { position: relative; min-height: 630px; overflow: visible; background: #24483c url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?auto=format&fit=crop&w=2200&q=85') center 55% / cover no-repeat; color: #fffef9; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 34, 28, .92) 0%, rgba(13, 45, 36, .76) 46%, rgba(14, 38, 33, .13) 100%), linear-gradient(0deg, rgba(10, 24, 21, .5), transparent 62%); }
.hero-content { position: relative; z-index: 1; width: min(100%, 1440px); margin: 0 auto; padding: 88px clamp(22px, 7vw, 104px) 34px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.dark { color: var(--red); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(217, 237, 138, .14); }
.hero h1 { max-width: 700px; margin: 0; font: 800 clamp(44px, 6vw, 76px)/1.02 'Manrope', sans-serif; letter-spacing: 0; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 460px; margin: 19px 0 29px; color: rgba(255, 254, 249, .82); font-size: 15px; }
.search-card { display: grid; grid-template-columns: 1fr 38px 1fr 1fr .9fr auto; align-items: center; max-width: 1120px; padding: 10px; border: 1px solid rgba(255, 255, 255, .54); border-radius: 3px; background: var(--white); box-shadow: 0 16px 50px rgba(0, 0, 0, .2); color: var(--ink); }
.field { min-width: 0; padding: 7px 14px; border-right: 1px solid var(--line); }
.field label, .booking-form label, .ops-form label { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.field-control { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.field-control input, .field-control select { width: 100%; min-width: 0; padding: 2px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; }
.field-icon { color: var(--red); font-size: 17px; }
.swap-btn { width: 29px; height: 29px; justify-self: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--forest); font-size: 15px; }
.primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 2px; background: var(--red); color: white; font-size: 12px; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.primary-btn:hover { transform: translateY(-2px); background: #ba402e; }
.search-btn { min-width: 150px; height: 48px; margin-left: 8px; }
.search-btn span, .primary-btn span { font-size: 17px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: rgba(255, 254, 249, .8); font-size: 11px; }
.hero-note span { color: var(--lime); }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px clamp(22px, 9vw, 138px); border-bottom: 1px solid var(--line); background: var(--white); }
.trust-strip > div { display: grid; gap: 2px; padding: 0 21px; border-right: 1px solid var(--line); }
.trust-strip > div:first-child { padding-left: 0; }
.trust-strip > div:last-child { border: 0; }
.trust-strip strong { font: 700 14px 'Manrope', sans-serif; }
.trust-strip span { color: var(--muted); font-size: 10px; }
.city-strip, .routes-section, .how-section, .documents-section, .results-section { width: min(100% - 48px, 1210px); margin: 0 auto; }
.city-strip { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding: 72px 0 66px; }
.city-strip-heading h2, .section-heading h2, .how-copy h2, .documents-section h2 { margin: 0; font: 800 34px/1.12 'Manrope', sans-serif; letter-spacing: 0; }
.city-strip-heading > p:last-child, .how-copy > p:not(.eyebrow) { max-width: 390px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; border-top: 1px solid var(--line); }
.city-list button { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 0 9px; min-height: 66px; padding: 10px 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.city-pin { grid-row: span 2; color: var(--red); font-size: 19px; }
.city-list strong { font: 700 14px 'Manrope', sans-serif; }
.city-list small { color: var(--muted); font-size: 10px; }
.city-list button:hover strong { color: var(--red); }

.results-section { padding: 30px 0 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { font-size: 32px; }
.results-date { color: var(--muted); font-size: 12px; }
.results-list { display: grid; gap: 10px; }
.empty-results { padding: 20px; border: 1px dashed var(--line); color: var(--muted); }
.trip-card, .result-card, .trip-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); background: var(--white); }
.routes-section { padding: 8px 0 76px; border-top: 1px solid var(--line); }
.routes-section > .section-heading { margin: 55px 0 23px; }
.text-link { color: var(--forest); font-size: 12px; font-weight: 700; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.route-card, .route-tile { min-height: 170px; padding: 22px; border: 1px solid var(--line); background: var(--white); transition: border-color .18s ease, transform .18s ease; }
.route-card:hover, .route-tile:hover { transform: translateY(-3px); border-color: var(--red); }
.route-card h3, .route-tile h3 { margin: 0; font: 700 19px 'Manrope', sans-serif; }
.route-card p, .route-tile p { color: var(--muted); font-size: 11px; }
.route-card strong, .route-tile strong { color: var(--forest); }
.how-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; padding: 66px 0 82px; border-top: 1px solid var(--line); }
.how-copy h2 { max-width: 440px; font-size: 40px; }
.how-copy .primary-btn { margin-top: 24px; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 17px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--red); font: 700 14px 'Manrope', sans-serif; }
.step h3 { margin: 0; font: 700 16px 'Manrope', sans-serif; }
.step p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.documents-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding: 55px 0 68px; border-top: 1px solid var(--line); }
.documents-section h2 { font-size: 31px; }
.document-list { border-top: 1px solid var(--line); }
.document-list a { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 13px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.doc-icon { color: var(--red); font-size: 19px; }
.document-list strong, .document-list small { display: block; }
.document-list strong { font-size: 13px; }
.document-list small { color: var(--muted); font-size: 10px; }
.document-list a > span:last-child { color: var(--forest); }
footer { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; align-items: center; gap: 25px; min-height: 145px; padding: 26px clamp(24px, 6vw, 94px); background: var(--forest-deep); color: var(--white); }
footer .brand-mark { background: var(--lime); color: var(--forest-deep); }
footer .brand small { color: #a9b6ad; }
footer p { color: #bac5be; font-size: 11px; }
.footer-links { display: flex; gap: 19px; color: #d7dfd9; font-size: 10px; }
footer > small { color: #a9b6ad; font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; overflow: auto; padding: 20px; background: rgba(10, 27, 22, .66); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.booking-modal, .account-modal, .payment-modal { position: relative; width: min(100%, 540px); max-height: min(90vh, 850px); overflow: auto; padding: 35px; border-top: 4px solid var(--red); background: var(--white); box-shadow: var(--shadow); }
.booking-modal h2, .account-modal h2, .payment-modal h2 { margin: 0 0 9px; font: 800 29px 'Manrope', sans-serif; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 35px; height: 35px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 23px; }
.modal-route, .account-subtitle { color: var(--muted); font-size: 12px; }
.assignment-note { display: grid; gap: 3px; margin: 18px 0; padding: 13px; border-left: 3px solid var(--lime); background: #f0f4e4; }
.assignment-note strong { font-size: 12px; }
.assignment-note span { color: var(--muted); font-size: 10px; }
.booking-form, .ops-form { display: grid; gap: 14px; margin-top: 18px; }
.booking-form input, .ops-form input, .ops-form select, .payment-form input { width: 100%; margin-top: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); }
.booking-form .primary-btn, .payment-form .primary-btn { width: 100%; }
.account-avatar { display: grid; width: 44px; aspect-ratio: 1; place-items: center; margin-bottom: 15px; border-radius: 50%; background: var(--forest); color: var(--lime); font-weight: 800; }
.account-cards { display: flex; gap: 20px; margin: 20px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.account-cards > div { display: grid; gap: 3px; }
.account-cards strong { font: 700 22px 'Manrope', sans-serif; }
.account-cards span { color: var(--red); }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 11px; }
.history-item a { color: var(--forest); font-weight: 700; }
.history-empty, .payment-security { color: var(--muted); font-size: 11px; }
.payment-form { display: grid; gap: 14px; }
.payment-mode { display: grid; gap: 11px; padding: 16px; background: var(--paper); font-size: 12px; }
.payment-mode span { display: grid; gap: 3px; overflow-wrap: anywhere; }
.payment-mode b { color: var(--muted); font-size: 10px; }
.payment-summary { padding: 14px; background: var(--forest); color: white; }
.payment-amount { color: var(--lime); font: 800 26px 'Manrope', sans-serif; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: min(420px, calc(100vw - 44px)); padding: 13px 17px; transform: translateY(20px); opacity: 0; pointer-events: none; background: var(--forest-deep); color: white; font-size: 12px; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1120px) {
  .header-actions .support-phone, .header-actions .staff-link { display: none; }
  .main-nav { margin-left: auto; margin-right: 20px; }
  .search-card { grid-template-columns: 1fr 35px 1fr 1fr; }
  .passenger-field { border-right: 0; }
  .search-btn { grid-column: 1 / -1; margin: 8px 0 0; }
}
@media (max-width: 760px) {
  .site-header { min-height: 68px; padding-inline: 18px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 31px; }
  .main-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--white); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions { gap: 5px; }
  .telegram-link, .header-actions .language { display: none; }
  .account-btn { padding: 8px 9px; font-size: 10px; }
  .menu-toggle { display: block; }
  .hero { min-height: 700px; background-position: 59% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(10, 34, 28, .91), rgba(13, 45, 36, .53)), linear-gradient(0deg, rgba(10, 24, 21, .7), transparent 70%); }
  .hero-content { padding: 63px 20px 24px; }
  .hero h1 { font-size: 47px; }
  .hero-copy { max-width: 350px; font-size: 13px; }
  .search-card { grid-template-columns: 1fr 36px 1fr; padding: 8px; }
  .field { padding: 9px 7px; }
  .date-field { grid-column: 1 / 3; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .passenger-field { grid-column: 3; border-top: 1px solid var(--line); }
  .field-control input, .field-control select { font-size: 11px; }
  .field label { font-size: 9px; }
  .search-btn { grid-column: 1 / -1; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 17px 0; padding: 20px; }
  .trust-strip > div { padding: 0 12px; }
  .trust-strip > div:nth-child(2) { border: 0; }
  .trust-strip > div:nth-child(odd) { padding-left: 0; }
  .city-strip, .routes-section, .how-section, .documents-section, .results-section { width: calc(100% - 40px); }
  .city-strip { grid-template-columns: 1fr; gap: 22px; padding: 54px 0; }
  .city-strip-heading h2, .section-heading h2 { font-size: 28px; }
  .city-list { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .routes-section { padding-bottom: 52px; }
  .routes-section > .section-heading { margin-top: 38px; }
  .section-heading { align-items: start; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card, .route-tile { min-height: 130px; }
  .how-section { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; }
  .how-copy h2 { font-size: 34px; }
  .documents-section { grid-template-columns: 1fr; gap: 22px; padding: 42px 0; }
  footer { grid-template-columns: 1fr 1fr; gap: 12px; padding: 27px 21px; }
  footer .brand { grid-column: 1 / -1; }
  footer > small { grid-column: 1 / -1; }
  .footer-links { flex-direction: column; gap: 7px; }
  .booking-modal, .account-modal, .payment-modal { padding: 30px 21px 22px; }
  .trip-card, .result-card, .trip-result { align-items: start; flex-direction: column; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}