/* Ürker — стили. Mobile-first: сначала телефон, дальше @media для планшета и компьютера. */

/* Шрифты лежат в fonts/ (Lora, Golos Text, Bad Script — лицензия SIL OFL). */
@font-face { font-family: 'Lora'; font-weight: 400 500; font-display: swap; src: url(fonts/lora-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Lora'; font-weight: 400 500; font-display: swap; src: url(fonts/lora-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; font-weight: 400 500; font-display: swap; src: url(fonts/lora-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-weight: 400 500; font-display: swap; src: url(fonts/lora-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-weight: 400 500; font-display: swap; src: url(fonts/golos-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-weight: 400 500; font-display: swap; src: url(fonts/golos-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400 500; font-display: swap; src: url(fonts/golos-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-weight: 400 500; font-display: swap; src: url(fonts/golos-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Рукописный шрифт гравировки — браузер скачает его, только когда он понадобится */
@font-face { font-family: 'Bad Script'; font-display: swap; src: url(fonts/script-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Bad Script'; font-display: swap; src: url(fonts/script-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Bad Script'; font-display: swap; src: url(fonts/script-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #121212;
  --bg-2: #1A1918;
  --text: #EDE8DF;
  --text-soft: #B3ADA3;
  --brass: #B8975A;
  --brass-light: #D4B67A;
  --paper: #F4EFE6;
  --ink: #1C1A17;
  --rule: #2E2C29;
  --field: #8A847A;
  --error: #E8A598;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 22px;
  --section: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], [data-gap] { display: none !important; }
a, button, summary, label, select, input { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select, output { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 34px; margin-bottom: 28px; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 760px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(18, 18, 18, .94); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.logo-mark { width: 34px; height: 22px; color: var(--brass); }
.logo-word { font-family: var(--serif); font-size: 21px; letter-spacing: 0.08em; }
.header-right { display: flex; align-items: center; gap: 6px; }
.ig-link { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-soft); }
.ig-link:hover { color: var(--text); }
.ig-link svg { width: 22px; height: 22px; }
.lang-switch { display: flex; border: 1px solid var(--text-soft); }
.lang-switch button { appearance: none; background: transparent; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; min-width: 50px; min-height: 44px; padding: 0 10px; }
.lang-switch button + button { border-left: 1px solid var(--text-soft); }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; background: var(--text); color: var(--bg); border: 1px solid var(--text); font-size: 16px; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text-soft); }
.btn-outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Первый экран ---------- */
.hero { padding: 16px 0 56px; }
.hero-grid { display: grid; gap: 12px; }
.hero-text { order: 2; }
.hero-media { order: 1; }
.kind { font-size: 16px; color: var(--brass); margin-bottom: 10px; }
h1 { margin-bottom: 18px; }
h1 .product { display: block; font-size: 22px; color: var(--text-soft); margin-bottom: 8px; letter-spacing: .02em; }
h1 .slogan { display: block; font-size: 42px; }
.lead { color: var(--text-soft); font-size: 17px; max-width: 32em; margin-bottom: 24px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.price-star { width: 28px; height: 18px; color: var(--brass); align-self: center; }
.price-label { font-size: 14px; color: var(--text-soft); }
.price { font-family: var(--serif); font-size: 32px; font-variant-numeric: lining-nums tabular-nums; }
.hero-text .btn { width: 100%; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.35; color: var(--text-soft); }
.facts li { padding: 10px 8px 0 0; }
.facts li + li { padding-left: 10px; border-left: 1px solid var(--rule); }
.art svg, .art img { width: 100%; height: auto; }
.hero-media .art { max-width: 250px; margin: 0 auto; }
.sketch-note { font-size: 12px; color: var(--text-soft); text-align: center; margin-top: -6px; }

/* ---------- Почему Үркер (светлый блок) ---------- */
.story { background: var(--paper); color: var(--ink); padding: 64px 0; color-scheme: light; }
.story h2 { margin-bottom: 14px; }
.story-grid { display: grid; gap: 24px; }
.story-stars { width: 140px; height: 88px; color: var(--ink); }
.story-text { font-family: var(--serif); font-size: 20px; line-height: 1.55; max-width: 34em; }

/* ---------- Секции ---------- */
.section { padding: var(--section) 0; }
.divider { display: flex; align-items: center; gap: 18px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); color: var(--brass); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.divider svg { width: 44px; height: 28px; }

.feature-list { display: grid; gap: 48px; }
.feature .art { background: #0D0D0D; margin-bottom: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.feature .art svg, .feature .art img { width: 100%; height: 100%; object-fit: contain; }
.feature h3 { font-size: 24px; margin-bottom: 6px; }
.feature p { color: var(--text-soft); max-width: 28em; }

.specs-grid { display: grid; gap: 40px; }
.spec { border-top: 1px solid var(--text-soft); }
.spec > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--text-soft); font-size: 15px; }
.spec dd { font-family: var(--serif); font-size: 19px; }

/* ---------- Конструктор ---------- */
.builder { background: var(--bg-2); padding: var(--section) 0; outline: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.builder-grid { display: grid; gap: 20px; }
.preview-col { position: sticky; top: 60px; z-index: 5; background: var(--bg-2); padding: 8px 0 6px; margin: 0 calc(-1 * var(--gutter)); border-bottom: 1px solid var(--rule); }
.preview { max-width: 132px; margin: 0 auto; }
.preview-caption { display: flex; justify-content: center; gap: 14px; color: var(--text-soft); font-size: 13px; margin-top: -6px; }
.preview-caption span + span { color: var(--brass-light); }
.builder-intro { color: var(--text-soft); margin: -14px 0 28px; }
#order-form { display: grid; gap: 24px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .label-row label, .qty-label { display: block; font-weight: 500; margin-bottom: 10px; padding: 0; }
.field legend strong { font-weight: 400; color: var(--brass-light); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.counter.is-full { color: var(--brass-light); }
.field-hint { font-size: 14px; color: var(--text-soft); margin-top: 6px; }
.field-error { font-size: 15px; color: var(--error); margin-top: 6px; font-weight: 500; }

input[type="text"], input[type="tel"], select { width: 100%; min-height: 52px; padding: 12px 14px; font-size: 17px; background: var(--bg); color: var(--text); border: 1px solid var(--field); border-radius: 0; appearance: none; }
input::placeholder { color: #8A847A; }
input:focus, select:focus { border-color: var(--text); outline: 2px solid var(--text); outline-offset: -2px; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); outline-color: var(--error); }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 1px solid #4A4743; cursor: pointer; display: grid; place-items: center; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch span { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); pointer-events: none; }
.swatch:has(input:checked) { border: 2px solid var(--brass); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--field); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.choice input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brass); flex: none; }
.choice .sample { font-size: 18px; }

.qty-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.qty-label { margin: 0 !important; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--field); }
.qty-btn { appearance: none; width: 48px; height: 48px; background: transparent; border: 0; cursor: pointer; font-size: 22px; }
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty output { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; font-size: 18px; }
.qty-more { flex-basis: 100%; font-size: 14px; color: var(--brass-light); }

.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--text-soft); border-bottom: 1px solid var(--rule); }
.total strong { font-family: var(--serif); font-weight: 400; font-size: 30px; font-variant-numeric: lining-nums tabular-nums; }
.contacts-title { font-size: 22px; margin-top: 8px; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { margin-top: 3px; }
.consent-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 0 32px; font-size: 14px; color: var(--text-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: 12px 14px; border-left: 3px solid var(--error); background: var(--bg); color: var(--error); font-weight: 500; }
.pay-note { font-size: 14px; color: var(--text-soft); text-align: center; margin-top: -8px; }

.result { padding: 24px 0; outline: none; }
.result-stars { width: 64px; height: 40px; color: var(--brass); margin-bottom: 16px; }
.result-title { font-family: var(--serif); font-size: 34px; margin-bottom: 6px; }
.result-order { color: var(--brass-light); margin-bottom: 10px; }
.result-text { color: var(--text-soft); margin-bottom: 22px; max-width: 30em; }
.result-fail .result-title { font-size: 26px; }

/* ---------- Шаги ---------- */
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 24px; }
.step-list li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; }
.step-list li::before { content: counter(s); font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--brass); }
.step-list li p { font-size: 18px; }

/* ---------- Для компаний (светлый блок) ---------- */
.business { background: var(--paper); color: var(--ink); padding: 64px 0; color-scheme: light; }
.business h2 { margin-bottom: 12px; }
.business-text { font-family: var(--serif); font-size: 21px; max-width: 30em; margin-bottom: 26px; }
.business .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.business .btn:hover { background: #000; border-color: #000; }

/* ---------- Вопросы ---------- */
.faq-list { border-top: 1px solid var(--text-soft); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 20px 0; font-family: var(--serif); font-size: 20px; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--sans); font-size: 24px; line-height: 1; color: var(--brass); flex: none; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 22px; color: var(--text-soft); max-width: 36em; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 120px; font-size: 15px; color: var(--text-soft); }
.footer-inner { display: grid; gap: 28px; }
.footer-mark { width: 48px; height: 30px; color: var(--brass); margin-bottom: 10px; }
.footer-word { font-family: var(--serif); font-size: 26px; letter-spacing: .08em; color: var(--text); margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.footer-seller, .footer-copy { font-size: 14px; }

/* ---------- Плавающая кнопка WhatsApp (телефон) ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: opacity .2s, transform .2s; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------- Первый экран: звёзды загораются, имя гравируется ---------- */
.u-anim .u-dots circle { fill-opacity: .2; transition: fill .5s ease, fill-opacity .5s ease; }
.u-anim .u-dots circle.on { fill: #F6E3B0; fill-opacity: 1; }
.u-anim .u-lines { opacity: .12; transition: opacity .9s ease, stroke .9s ease; }
.u-anim .u-led.lit .u-lines { opacity: .75; stroke: #F6E3B0; }
.art.is-playable { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ---------- Заглушки (?draft=1) ---------- */
mark.draft { background: #FFE34D; color: #121212; padding: 0 2px; }

/* ---------- Мягкое появление ---------- */

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

/* ---------- Планшет ---------- */
@media (min-width: 700px) {
  :root {
  color-scheme: dark; --gutter: 40px; --section: 110px; }
  .hero-media .art { max-width: 340px; }
  h2 { font-size: 44px; margin-bottom: 36px; }
  h1 .slogan { font-size: 60px; }
  h1 .product { font-size: 26px; }
  .hero-text .btn { width: auto; }
  .story-grid { grid-template-columns: 200px 1fr; align-items: center; gap: 48px; }
  .story-stars { width: 200px; height: 125px; }
  .story-text { font-size: 24px; }
  .feature-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .spec > div { grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; }
  .step-list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step-list li { grid-template-columns: 1fr; gap: 14px; }
  .step-list li::before { font-size: 48px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-seller, .footer-copy { grid-column: 1 / -1; }
}

/* ---------- Компьютер ---------- */
@media (min-width: 1024px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .hero-text { order: 1; }
  .hero-media { order: 2; }
  .hero-media .art { max-width: 480px; }
  h1 .slogan { font-size: 74px; }
  .specs-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
  .builder-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .preview-col { position: sticky; top: 90px; background: none; padding: 0; margin: 0; border: 0; }
  .preview { max-width: 440px; }
  .wa-float { display: none; }
  .site-footer { padding-bottom: 56px; }
}
