/* БСТ-Клуб — тема Webasyst «Сайт».
   Layout concept: a business-class boarding pass. Navy for the journey, ivory for the paperwork,
   gold only where something is booked: routes, the seal, the one primary action. */

@font-face { font-family: "Prata"; src: url("fonts/prata.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/golos.woff") format("woff"); font-weight: 400 900; font-display: swap; }

:root {
  --navy: #0F1C2E;
  --navy-2: #16263C;
  --navy-3: #22344D;
  --navy-deep: #0A1422;
  --ivory: #F6F3EC;
  --paper: #FFFFFF;
  --ink: #0F1C2E;
  --ink-2: #4E5866;
  --ink-3: #7C8592;
  --line: #E4DED2;
  --line-dark: rgba(244, 240, 230, .14);
  --on-dark: #F4F0E6;
  --on-dark-2: #AEB6C2;
  --gold: #C6A15B;
  --gold-light: #D9BC82;
  --gold-text: #8A6A2E;
  --ok: #3C8C64;

  --serif: "Prata", "Georgia", "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.3rem, 1.3rem + 3.9vw, 4.6rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.02rem, .97rem + .25vw, 1.15rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hdr-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-light); color: var(--navy); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ta-r { text-align: right; }

.wrap {
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--navy); color: var(--on-dark); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow { font: 600 .74rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow--gold { color: var(--gold-text); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.sec-title { font: 400 var(--fs-h2)/1.1 var(--serif); letter-spacing: -.01em; }
.sec-title em { font-style: italic; color: var(--gold-text); }
.sec-title--light { color: var(--on-dark); }
.sec-title--light em { color: var(--gold-light); }
.sec-lead { color: var(--ink-2); font-size: var(--fs-lead); max-width: 40em; }
.sec-lead a { color: var(--gold-text); border-bottom: 1px solid currentColor; }
.chip { display: inline-block; vertical-align: middle; font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-text); margin-left: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 .95rem/1 var(--sans);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(198, 161, 91, .7); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: var(--on-dark); }
.btn--navy:hover { background: var(--navy-3); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn--line { border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.btn--line:hover { border-color: var(--navy); background: var(--navy); color: var(--on-dark); }
.link-btn { color: inherit; text-align: left; }
.link-btn:hover { color: var(--gold-light); }

/* ---------- Top bar (Визитка-style) ---------- */
.topbar { background: var(--navy-deep); color: var(--on-dark-2); font-size: .84rem; }
.topbar__in { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar__l, .topbar__r { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .i { width: 15px; height: 15px; color: var(--gold-light); }
.topbar a:hover { color: var(--on-dark); }
.topbar__phone { color: var(--on-dark); font-weight: 600; letter-spacing: .01em; }
@media (max-width: 860px) { .topbar__l > :not(:first-child) { display: none; } }
@media (max-width: 560px) { .topbar__l { display: none; } .topbar__in { justify-content: flex-end; } }

/* ---------- Header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: color-mix(in srgb, var(--navy) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; color: var(--on-dark); --gold: #D9BC82; }
.logo svg { height: 46px; width: auto; }
.nav { display: none; gap: 30px; font-size: .95rem; color: var(--on-dark-2); }
.nav a { position: relative; padding-block: 6px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after { transform: scaleX(1); }
.nav__phone { display: none; }
.hdr__act { display: flex; align-items: center; gap: 12px; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; color: var(--on-dark); }
.burger span { width: 22px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
@media (min-width: 1040px) { .nav { display: flex; } .burger { display: none; } }
@media (max-width: 1039px) {
  .nav.is-open { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px)); background: var(--navy); border-bottom: 1px solid var(--line-dark); font: 400 1.35rem/1.5 var(--serif); color: var(--on-dark); }
  .nav.is-open .nav__phone { display: block; color: var(--gold-light); font-family: var(--sans); font-size: 1.1rem; margin-top: 8px; }
}
@media (max-width: 560px) { .hdr__act .btn { display: none; } .logo svg { height: 38px; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, var(--navy-3) 0%, var(--navy) 55%, var(--navy-deep) 100%); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 28%, #000 62%); mask-image: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 28%, #000 62%); }
@media (max-width: 1039px) { .hero__map { -webkit-mask-image: none; mask-image: none; opacity: .45; } }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.hero--photo .hero__map { opacity: .55; }
.hero__in { display: grid; gap: 40px; padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 96px); align-items: center; }
@media (min-width: 1040px) { .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px); gap: 56px; } }
.hero__copy { display: grid; gap: 26px; min-width: 0; }
.hero__copy .eyebrow--gold { color: var(--gold-light); }
.hero__title { font: 400 var(--fs-hero)/1.05 var(--serif); letter-spacing: -.015em; max-width: 13em; }
.hero__title em { color: var(--gold-light); font-style: italic; }
.hero__lead { font-size: var(--fs-lead); color: var(--on-dark-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badges { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; color: var(--on-dark-2); font-size: .92rem; }
.hero__badges li { display: flex; gap: 10px; align-items: flex-start; }
.hero__badges .i { color: var(--gold-light); width: 18px; height: 18px; margin-top: 3px; }

/* split-flap board */
.board { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.board__label { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }
.board__flaps { display: inline-flex; gap: 3px; font: 600 clamp(.95rem, .85rem + .4vw, 1.2rem)/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--gold-light); min-height: 2.1em; }
.board__flaps .f { position: relative; display: grid; place-items: center; width: 1.25em; height: 1.75em; background: linear-gradient(180deg, #1C2D45 0 49.5%, #15243A 50.5% 100%); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 2px 4px rgba(0,0,0,.3); overflow: hidden; }
.board__flaps .f::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
.board__flaps .f.sp { background: transparent; box-shadow: none; width: .55em; }
.board__flaps .f.flip { animation: flap .32s var(--ease); }
@keyframes flap { 0% { transform: rotateX(0); } 50% { transform: rotateX(-88deg); filter: brightness(.7); } 100% { transform: rotateX(0); } }

/* boarding pass card */
.pass { display: grid; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 40px 90px -30px rgba(0,0,0,.65); position: relative; min-width: 0; }
.pass__main { padding: 24px 24px 22px; display: grid; gap: 18px; }
.pass__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pass__brand { font: 400 .9rem var(--serif); letter-spacing: .14em; color: var(--gold-text); }
.pass__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pass__tab { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 9px; border-radius: 12px; border: 1px solid var(--line); font-size: .7rem; line-height: 1.15; color: var(--ink-2); text-align: center; transition: border-color .2s, background-color .2s, color .2s; }
.pass__tab .i { width: 22px; height: 22px; }
.pass__tab span { white-space: nowrap; }
@media (max-width: 480px) { .pass__tab { font-size: .6rem; padding-inline: 2px; } .pass__main { padding: 20px 16px 18px; } .pass__stub { padding-inline: 16px; } }
.pass__tab:hover { border-color: var(--navy); color: var(--ink); }
.pass__tab.is-on { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.pass__tab.is-on .i { color: var(--gold-light); }
.pass__route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px 0 4px; border-top: 1px dashed var(--line); }
.pass__route small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pass__route b { display: block; font: 400 1.05rem/1.25 var(--serif); margin-top: 4px; overflow-wrap: anywhere; }
.pass__route i { display: block; font: 600 1.55rem/1.1 var(--sans); font-style: normal; letter-spacing: .06em; color: var(--navy); margin-top: 2px; }
.pass__plane { width: 26px; height: 26px; color: var(--gold); }
.pass__hint { font-size: .86rem; color: var(--ink-2); min-height: 2.6em; }
.pass__stub { position: relative; padding: 20px 24px 22px; border-top: 2px dashed var(--line); display: grid; gap: 10px; }
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); }
.pass__stub::before { left: -12px; }
.pass__stub::after { right: -12px; }
.pass__or { font-size: .84rem; color: var(--ink-3); text-align: center; }
.pass__or a { color: var(--ink); font-weight: 600; }

/* ---------- Services: departures board ---------- */
.services { padding-block: clamp(72px, 9vw, 128px); }
.deps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dep { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px 22px; align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--line); position: relative; transition: background-color .3s; }
.dep__no { font: 400 1rem var(--serif); color: var(--ink-3); width: 2ch; }
.dep__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); transition: transform .4s var(--ease); }
.dep__icon .i { width: 26px; height: 26px; }
.dep__main { display: grid; gap: 6px; min-width: 0; }
.dep__main h3 { font: 400 var(--fs-h3)/1.25 var(--serif); }
.dep__main p { color: var(--ink-2); max-width: 42em; }
.dep__main .dep__tags { color: var(--ink-3); font-size: .86rem; }
.dep__code { display: none; }
.dep .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 899px) { .dep { grid-template-columns: 48px minmax(0, 1fr); gap: 12px 16px; align-items: start; } .dep__no { display: none; } .dep__icon { width: 48px; height: 48px; border-radius: 14px; } }
.dep:hover .dep__icon { transform: rotate(-6deg) scale(1.05); }
@media (min-width: 900px) {
  .dep { grid-template-columns: 3ch 56px minmax(0, 1fr) 7ch auto; padding: 30px 12px; }
  .dep .btn { grid-column: auto; justify-self: end; }
  .dep__code { display: block; font: 600 .82rem var(--sans); letter-spacing: .18em; color: var(--ink-3); text-align: right; }
  .dep:hover { background: var(--paper); }
}

/* ---------- Companies ---------- */
.corp { background: var(--navy); color: var(--on-dark); padding-block: clamp(72px, 9vw, 128px); position: relative; overflow: hidden; }
.corp::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-dark); box-shadow: 0 0 0 60px rgba(244,240,230,.015), 0 0 0 120px rgba(244,240,230,.012); pointer-events: none; }
.corp .eyebrow--gold { color: var(--gold-light); }
.corp__head { display: grid; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); position: relative; }
@media (min-width: 960px) { .corp__head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 56px; } }
.corp__head > div { display: grid; gap: 16px; }
.corp__lead { color: var(--on-dark-2); font-size: var(--fs-lead); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-lg); overflow: hidden; position: relative; }
@media (min-width: 640px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.perks li { background: var(--navy); padding: 28px; display: grid; gap: 10px; align-content: start; transition: background-color .3s; }
.perks li:hover { background: var(--navy-2); }
.perks .i { width: 28px; height: 28px; color: var(--gold-light); margin-bottom: 6px; }
.perks b { font: 400 1.2rem/1.25 var(--serif); }
.perks span { color: var(--on-dark-2); font-size: .94rem; }
.steps { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 26px; justify-items: start; position: relative; }
.steps .eyebrow { color: var(--on-dark-2); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; width: 100%; position: relative; }
@media (min-width: 860px) {
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .steps__list::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; border-top: 2px dashed rgba(217, 188, 130, .45); }
}
.steps__list li { display: grid; gap: 6px; position: relative; }
.steps__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font: 400 1.25rem var(--serif); margin-bottom: 10px; box-shadow: 0 0 0 8px var(--navy); }
.steps__list b { font: 400 1.25rem var(--serif); }
.steps__list span:not(.steps__n) { color: var(--on-dark-2); font-size: .94rem; max-width: 22em; }

/* ---------- About ---------- */
.about { padding-block: clamp(72px, 9vw, 128px); }
.about__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.about__copy { display: grid; gap: 22px; min-width: 0; }
.about__text { color: var(--ink-2); font-size: 1.04rem; max-width: 36em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 10px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font: 400 clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem)/1 var(--serif); color: var(--navy); }
.stats dd { margin: 8px 0 0; font-size: .86rem; color: var(--ink-3); }
.about__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__seal { aspect-ratio: 4 / 3; max-width: 100%; background: radial-gradient(80% 80% at 70% 20%, var(--navy-3), var(--navy) 60%, var(--navy-deep)); display: grid; place-items: center; align-content: center; gap: 20px; color: var(--on-dark); --gold: #D9BC82; }
.about__seal svg { width: min(46%, 220px); height: auto; }
.about__seal span { font: 600 .74rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }

/* ---------- Clients ---------- */
.clients { padding-block: 0 clamp(56px, 7vw, 96px); }
.clients .eyebrow { margin-bottom: 22px; }
.clients__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.clients__row li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); height: 96px; display: grid; place-items: center; padding: 18px; }
.clients__row img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.clients__row li:hover img { filter: none; opacity: 1; }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(72px, 9vw, 128px); background: var(--paper); border-block: 1px solid var(--line); }
.faq__grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .9fr 1.2fr; gap: 72px; align-items: start; } .faq .sec-head { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 400 1.12rem/1.35 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.6px; background: var(--gold); transition: transform .35s var(--ease); }
.qa summary::before { transform: rotate(90deg); }
.qa[open] summary::before { transform: rotate(0); }
.qa__a { padding: 0 48px 22px 0; color: var(--ink-2); }

/* ---------- Contacts ---------- */
.contacts { padding-block: clamp(72px, 9vw, 128px); }
.contacts__card { background: var(--navy); color: var(--on-dark); border-radius: calc(var(--r-lg) + 6px); overflow: hidden; display: grid; }
@media (min-width: 960px) { .contacts__card { grid-template-columns: 1.1fr 1fr; } }
.contacts__info { padding: clamp(28px, 4vw, 56px); display: grid; gap: 24px; align-content: start; min-width: 0; }
.contacts__info .eyebrow--gold { color: var(--gold-light); }
.contacts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contacts__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--on-dark-2); }
.contacts__list .i { color: var(--gold-light); margin-top: 3px; }
.contacts__list a { color: var(--on-dark); font-size: 1.1rem; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__map { position: relative; min-height: 300px; background: var(--navy-deep); }
.mini-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.contacts__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -150%); font: 600 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 8px 12px; border-radius: 999px; }
.contacts__pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--gold); }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-deep); color: var(--on-dark-2); padding-block: 64px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.ftr__grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr__brand { display: grid; gap: 18px; max-width: 26em; }
.ftr .eyebrow { color: var(--on-dark-2); margin-bottom: 14px; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr__list a:hover, .ftr__list button:hover { color: var(--gold-light); }
.ftr__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.ftr__bottom a:hover { color: var(--on-dark); }

/* ---------- Request dialogs ---------- */
.rq { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(10, 20, 34, .6); overflow: auto; }
.rq::backdrop { background: rgba(10, 20, 34, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rq[open] { animation: rqin .35s var(--ease); }
@keyframes rqin { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.rq__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--navy); color: var(--on-dark); }
.rq__head h2 { font: 400 1.25rem/1.2 var(--serif); flex: 1; }
.rq__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(244,240,230,.08); color: var(--gold-light); }
.rq__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark-2); }
.rq__close:hover { background: rgba(244,240,230,.1); color: var(--on-dark); }
.rq__body { padding: 22px 20px 24px; }

/* built-in fallback form (when the «Заявки» app is not connected) */
.fb { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.fb__f { grid-column: span 6; display: grid; gap: 6px; min-width: 0; }
.fb__f.w2 { grid-column: span 3; }
.fb__f.w3 { grid-column: span 2; }
@media (max-width: 480px) { .fb__f.w2, .fb__f.w3 { grid-column: span 6; } }
.fb label, .fb legend { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.fb input, .fb select, .fb textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); transition: border-color .2s, background-color .2s; }
.fb textarea { min-height: 84px; resize: vertical; }
.fb input:focus, .fb select:focus, .fb textarea:focus { outline: 0; border-color: var(--navy); background: var(--paper); }
.fb .is-bad { border-color: #C0473B; }
.fb fieldset { border: 0; padding: 0; margin: 0; grid-column: span 6; display: grid; gap: 8px; min-width: 0; }
.fb__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fb__opts input { position: absolute; opacity: 0; pointer-events: none; }
.fb__opts label { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.fb__opts input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.fb__opts input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.fb__agree { grid-column: span 6; display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--ink-2); }
.fb__agree input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.fb__submit { grid-column: span 6; margin-top: 6px; }
.fb__err { grid-column: span 6; color: #C0473B; font-size: .86rem; }
.fb__done { grid-column: span 6; display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--ivory); border: 1px solid var(--line); }
.fb__done b { font: 400 1.15rem var(--serif); }
.fb__done p { font-size: .9rem; color: var(--ink-2); }
.fb__routes { display: flex; flex-wrap: wrap; gap: 8px; }
.fb__done textarea { min-height: 120px; font-size: .84rem; color: var(--ink-2); }

/* ---------- Inner pages ---------- */
.page-shell { padding-block: 64px 96px; max-width: 900px; }
.page-shell h1 { font: 400 var(--fs-h2)/1.1 var(--serif); margin-bottom: 28px; }
.page-shell h2 { font: 400 1.6rem/1.2 var(--serif); margin: 36px 0 12px; }
.page-shell p, .page-shell li { color: var(--ink-2); }
.page-shell p + p { margin-top: 1em; }
.page-shell a:not(.btn) { color: var(--gold-text); border-bottom: 1px solid currentColor; }
.e404 { min-height: 50vh; display: grid; align-content: center; gap: 20px; }
.e404 b { font: 400 clamp(5rem, 3rem + 8vw, 10rem)/1 var(--serif); color: var(--gold); }

/* ---------- Reveal ---------- */
.js .rv { transform: translateY(24px); transition: transform 1s var(--ease); }
.js .rv.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { transform: none; }
}
