/* Styles of every page of winauto03.ru.
   House rules (see .claude/skills/site-audit): sections are told apart by a step in background tone, not by lines;
   one moving thing per screen (the hero video), the rest of the motion answers the visitor's own touch. */
:root {
  --bg: #0f0d0d; --bg-2: #161212; --card: #1d1817; --card-2: #251f1e; --line: #2e2625;
  --text: #f1ece6; --text-2: #d2c9c0; --muted: #a49b93; --accent: #c8302c; --accent-2: #a3201d; --accent-text: #ff6b5e;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; z-index: 5; background: var(--bg); }
.bar { display: flex; align-items: center; gap: 16px; height: 68px; }
.bar img { height: 46px; width: auto; display: block; }
.bar nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--muted); transition: color .15s ease; }
.bar nav a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 22px; border-radius: 12px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--card); white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .16s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: #4f4240; }
  .btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
}

/* Hero: words on the left, the night-drive loop on the right (a still frame on phones). */
.hero { padding: 64px 0 60px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.07; margin: 0 0 18px; letter-spacing: -.025em; max-width: 13em; }
.hero p { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.alt-phone { margin: 16px 0 0 !important; font-size: 15px !important; color: var(--muted) !important; }
.alt-phone a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero-media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin-top: 32px;
  background: #120f0f url(/hero-poster.jpg) center / cover; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1, .hero p, .hero .cta, .hero .alt-phone { animation: rise .7s var(--ease-out) both; }
.hero p { animation-delay: .06s; }
.hero .cta, .hero .alt-phone { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 48px; align-items: center; }
  .hero-grid h1 { font-size: clamp(34px, 4vw, 50px); }
  .hero-media { margin-top: 0; animation: rise .9s .2s var(--ease-out) both; }
}

/* Today's CBR rates: one quiet band under the hero. */
.rates { background: var(--bg-2); padding: 14px 0; font-size: 14.5px; }
.rates .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.rates-title { color: var(--muted); }
.rate-list { display: contents; }
.rate { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.rate b { color: var(--text); font-weight: 600; margin-left: 4px; }

section { padding: 84px 0; }
section.tone { background: var(--bg-2); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.015em; }
.lead { color: var(--text-2); margin: 0 0 32px; max-width: 40em; font-size: 17px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.flag { width: 42px; height: 28px; display: block; border-radius: 4px; margin-bottom: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

/* Recent lots from the channel (data/site.json): a grid on wide screens, a strip swiped by thumb on phones. */
.lots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 16px; }
.lot { background: var(--card); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.lot-photo { position: relative; aspect-ratio: 4 / 3; background: var(--card-2); overflow: hidden; }
.lot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
.lot-flag { position: absolute; left: 12px; top: 12px; width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.lot-date { position: absolute; right: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px;
  background: rgba(15, 13, 13, .82); color: var(--text); }
.lot-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lot-body h3 { margin: 0; font-size: 18px; }
.lot-specs { color: var(--muted); font-size: 14px; }
.lot-price { margin-top: auto; padding-top: 10px; font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lot-price small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.lot .btn { margin-top: 12px; }
@media (hover: hover) and (pointer: fine) { .lot:hover .lot-photo img { transform: scale(1.04); } }
.lots-note { color: var(--muted); font-size: 14px; margin: 0 0 40px; max-width: 46em; }

/* Our channels, where new lots appear every day. */
.channels-title { font-size: 19px; margin: 0 0 14px; }
.channels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--card);
  text-decoration: none; transition: background-color .15s ease, transform .16s var(--ease-out); }
.channel:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .channel:hover { background: var(--card-2); } }
.channel b { display: block; }
.channel small { color: var(--muted); font-size: 14px; }
.channel .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; font-weight: 800; }
.channel .ic svg { width: 24px; height: 24px; }

/* Countries: cards with the link pinned to the bottom, so the links line up. */
.countries .card { display: flex; flex-direction: column; }
.more { display: inline-block; margin-top: auto; padding-top: 14px; color: var(--accent-text); font-weight: 600; font-size: 15px; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Steps: a real ordered list with large numerals, no boxes. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { display: grid; gap: 6px; align-content: start; }
.step-n { font-size: 44px; line-height: 1; font-weight: 800; color: var(--accent-text); letter-spacing: -.03em; margin-bottom: 8px; }
.steps h3 { margin: 0; font-size: 19px; }
.steps p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Contacts: the numbers are the buttons; the address and maps beside them. */
.contact { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.contact-actions { display: grid; gap: 12px; max-width: 420px; }
.contact-actions .btn { justify-content: flex-start; padding: 16px 20px; font-size: 18px; }
.contact-actions .btn svg { width: 20px; height: 20px; }
.addr { font-size: 21px; line-height: 1.4; margin: 0 0 18px; }
.addr b { display: block; }
.maps { display: flex; flex-wrap: wrap; gap: 10px; }
.reviews { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--text-2); font-size: 15px; text-decoration: none; }
.reviews .stars { color: #ffb400; letter-spacing: 2px; font-size: 17px; }
.reviews:hover { color: var(--text); text-decoration: underline; }
.map-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }

/* Country pages (/iz-yaponii/ …) and links to them. */
.hero-sub { padding-top: 34px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; opacity: .6; }
.hero-flag { width: 54px; height: 36px; border-radius: 5px; display: block; margin-bottom: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--card); border-radius: 14px; padding: 0 20px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 17px 30px 17px 0; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--accent-text); transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--text-2); }
.others { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.others a { color: var(--accent-text); white-space: nowrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); }

/* Turnkey calculator: the form on the left, the answer with its breakdown on the right. */
.calc { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.calc-form { background: var(--card); border-radius: 20px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px 14px;
  grid-template-columns: 1fr 1fr; margin: 0; }
.calc-country { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.calc-country legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.calc-country label { flex: 1 1 0; }
.calc-country input { position: absolute; opacity: 0; pointer-events: none; }
.calc-country span { display: block; text-align: center; padding: 12px 10px; border-radius: 12px; background: var(--card-2);
  font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease; }
.calc-country input:checked + span { background: var(--accent); color: #fff; }
.calc-country input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .calc-country span:hover { border-color: var(--accent); } }
.calc-field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.calc-wide { grid-column: 1 / -1; }
.calc-field input, .calc-field select { font: inherit; font-size: 17px; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; font-variant-numeric: tabular-nums; }
.calc-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.calc-field input:focus, .calc-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.calc-field input[aria-invalid="true"] { border-color: var(--accent-text); }
.calc-go { grid-column: 1 / -1; font-size: 17px; padding: 15px 22px; }
.calc-go[disabled] { opacity: .7; cursor: progress; }
.calc-error { grid-column: 1 / -1; margin: 0; color: var(--accent-text); font-size: 15px; }
.calc-result { background: var(--card); border-radius: 20px; padding: clamp(20px, 3vw, 30px); min-height: 100%; }
.calc-empty { color: var(--muted); margin: 0; }
.calc-total-label { margin: 0; color: var(--muted); font-size: 15px; }
.calc-total { margin: 2px 0 18px; font-size: clamp(32px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-parts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.calc-parts li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--text-2); }
.calc-parts b { color: var(--text); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
#calcOut:not([hidden]) { animation: rise .3s var(--ease-out) both; }

/* Quiz */
.quiz { background: var(--card); border-radius: 22px; padding: clamp(22px, 4vw, 44px); }
.quiz .lead { margin-bottom: 20px; }
.quiz-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 26px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease-out); }
.quiz-step h3 { margin: 0 0 16px; font-size: clamp(19px, 2.4vw, 23px); }
.quiz-n { color: var(--accent-text); font-size: 14px; font-weight: 600; margin-right: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips button { font: inherit; font-weight: 600; color: var(--text); background: var(--card-2); border: 1px solid transparent;
  border-radius: 12px; padding: 13px 18px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out); }
.chips button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chips button:hover { border-color: var(--accent); } }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.quiz-step:not([hidden]) { animation: rise .3s var(--ease-out) both; }
.quiz-sum { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.quiz-sum li span { color: var(--muted); }
.quiz-note { display: grid; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 18px; max-width: 520px; }
.quiz-note input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.quiz-note input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.quiz-back { margin-top: 18px; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 0; }
.quiz-back:hover { color: var(--text); }

/* Floating chat button: hidden while the page's own call/chat buttons are on screen. */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 6; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px 13px 15px; border-radius: 999px; background: #229ed9; color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: opacity .2s ease, transform .25s var(--ease-out), background-color .15s ease; }
.fab svg { width: 22px; height: 22px; }
.fab.off { opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .fab:hover { background: #1b8bc0; } }

footer { padding: 30px 0 96px; color: var(--muted); font-size: 14px; background: var(--bg); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; padding: 10px 14px; }
  .hero { padding: 40px 0 44px; }
  .cta .btn { flex: 1 1 100%; }
  section { padding: 56px 0; }
  .lead { font-size: 16px; }
  /* Lots: one swipeable row; the next card peeks in so the swipe is obvious. */
  .lots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; gap: 12px;
    margin: 0 -20px 14px; padding: 0 20px 4px; scrollbar-width: none; }
  .lots::-webkit-scrollbar { display: none; }
  .lot { flex: 0 0 84%; scroll-snap-align: start; }
  .countries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .countries .card { padding: 16px; }
  .countries .card h3 { font-size: 17px; }
  .countries .card p { font-size: 14px; }
  .flag { width: 36px; height: 24px; margin-bottom: 10px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { grid-template-columns: 48px 1fr; column-gap: 12px; }
  .step-n { font-size: 34px; grid-row: span 2; margin: 0; }
  .contact { grid-template-columns: 1fr; }
  .calc-form { gap: 12px 10px; }
  .contact-actions { max-width: none; }
  .chips button { flex: 1 1 calc(50% - 10px); }
  .fab { right: 16px; bottom: 16px; padding: 15px; }
  .fab span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
