/* Ebrand — violet and gold from the old logo and service icons */
:root {
    --ink: #24224a;
    --ink-2: #322f63;
    --violet: #5d5aa8;
    --violet-soft: #ecebf7;
    --gold: #f0b429;
    --gold-deep: #b98306;
    --paper: #f6f5fb;
    --text: #1d1c30;
    --muted: #67657f;
    --line: #e1dfee;
    --white: #fff;
    --danger: #b3261e;
    --radius: 10px;
    --wrap: 1200px;
    --head: "Unbounded", "Arial Black", sans-serif;
    --body: "Onest", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--text); font: 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--violet); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.2vw, 38px); }
h2 { font-size: clamp(21px, 2.3vw, 28px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--text); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 2px solid transparent; border-radius: 8px; font: 600 15px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-gold { background: var(--gold); color: var(--text); }
.btn-gold:hover { background: #e3a512; color: var(--text); }
.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--violet); color: var(--violet); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* Header */
.hd { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.hd-top { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.logo-mark { width: auto; height: 64px; display: block; }
.logo-foot { width: 88px; height: auto; display: block; border-radius: 4px; }
.logo-sub { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.hd-search { flex: 1 1 260px; display: flex; max-width: 420px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .15s; }
.hd-search:focus-within { border-color: var(--violet); }
.hd-search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; height: 42px; font: inherit; font-size: 15px; background: transparent; color: var(--text); }
.hd-search input:focus { outline: none; }
.hd-search button { width: 46px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.hd-search svg, .hd-acc svg, .hd-cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd-phones { display: flex; flex-direction: column; line-height: 1.3; flex: none; }
.hd-phones a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; }
.hd-phones .link-btn { font-size: 13px; text-align: left; }
.hd-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: none; }
.cur { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cur a { padding: 5px 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.cur a + a { border-left: 1px solid var(--line); }
.cur a.is-on { background: var(--ink); color: var(--white); }
.hd-acc { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.hd-cart { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; color: var(--ink); text-decoration: none; position: relative; }
.hd-cart svg { grid-row: 1 / 3; width: 30px; height: 30px; }
.hd-cart-count { position: absolute; left: 18px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--text); font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.hd-cart-sum { grid-row: 1 / 3; font-weight: 700; font-size: 15px; white-space: nowrap; }
.hd-burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 11px; flex: none; }
.hd-burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.hd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { background: var(--ink); }
.nav-in { display: flex; flex-wrap: wrap; }
.nav a { color: #d8d6f0; text-decoration: none; padding: 14px 18px; font-weight: 500; font-size: 15px; border-bottom: 3px solid transparent; }
.nav a:first-child { padding-left: 0; }
.nav a:hover { color: var(--white); }
.nav a.is-on { color: var(--white); border-bottom-color: var(--gold); }
.nav .nav-phone, .nav .nav-cur { display: none; }
.nav-cur { gap: 8px; padding: 12px 0; }
.nav .nav-in .nav-cur a { padding: 4px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; font-size: 13px; }
.nav .nav-in .nav-cur a.is-on { background: var(--gold); color: var(--text); border-color: var(--gold); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--ink) url(/images/hero.jpg) center 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,34,74,.96) 0%, rgba(36,34,74,.86) 48%, rgba(36,34,74,.55) 100%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-kicker { color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.hero h1 { color: var(--white); font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: 1.08; margin-bottom: 20px; max-width: 13ch; }
.hero-lead { font-size: 18px; color: #dcdaf2; max-width: 52ch; margin-bottom: 28px; }
.hero-search { display: flex; gap: 8px; max-width: 540px; background: var(--white); padding: 6px; border-radius: 10px; }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; font: inherit; color: var(--text); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-cats a { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 128px; padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: var(--white); text-decoration: none; transition: background .15s, border-color .15s; }
.hero-cats a:hover { background: rgba(255,255,255,.14); border-color: var(--gold); color: var(--white); }
.hero-cat-title { font-family: var(--head); font-weight: 600; font-size: 17px; line-height: 1.25; }
.hero-cat-count { font-size: 14px; color: var(--gold); }

/* Sections */
.sec { padding: 72px 0; }
.sec-tint { background: var(--paper); }
.sec-ink { background: var(--ink); color: #dcdaf2; }
.sec-ink h2, .sec-ink h3 { color: var(--white); }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: none; }
.sec-sub { margin-top: 56px; }

/* Service card: the ticket — info on top, price stub below a perforated edge */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #c9c6e3; box-shadow: 0 8px 24px rgba(36,34,74,.08); }
.card-main { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 18px; color: inherit; text-decoration: none; }
.card-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 16px; }
.card-title { font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.card-main:hover .card-title { color: var(--violet); }
.card-time { font-size: 14px; color: var(--muted); margin: 0; }
.card-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 18px; border-top: 2px dashed var(--line); }
.card-foot::before, .card-foot::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.card-foot::before { left: -10px; clip-path: inset(0 0 0 50%); }
.card-foot::after { right: -10px; clip-path: inset(0 50% 0 0); }
.sec-tint .card-foot::before, .sec-tint .card-foot::after { background: var(--paper); }
.card-badge { position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--text); font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 5px; }
.card-badge-inline { position: static; margin-left: 6px; vertical-align: middle; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price s { color: var(--muted); font-size: 14px; }
.price b { font-size: 20px; color: var(--ink); white-space: nowrap; }
.price .price-ask { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-lg { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 18px; }
.price-lg b { font-size: 30px; font-family: var(--head); }
.price-lg s { font-size: 16px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--gold); font: 700 18px/42px var(--head); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 54px; right: 12px; border-top: 2px dashed #cfcce6; }
.steps p { color: var(--muted); margin: 0; }

/* About + video */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--gold); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .15s; }
.video-play:hover { transform: scale(1.06); }
.video-play svg { width: 30px; height: 30px; fill: var(--ink); margin-left: 4px; }
.video-cap { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Perks */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.perks li { padding: 26px 28px 26px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.perks h3 { font-size: 16px; margin-bottom: 6px; }
.perks h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--gold); border-radius: 2px; margin-right: 10px; vertical-align: 1px; }
.perks p { margin: 0; font-size: 15px; }

/* Articles */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post a { display: block; color: inherit; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; background: var(--paper); }
.post time { font-size: 14px; color: var(--muted); }
.post h3 { font-family: var(--body); font-weight: 600; font-size: 18px; margin: 4px 0 8px; }
.post a:hover h3 { color: var(--violet); }
.post p { color: var(--muted); font-size: 15px; margin: 0; }

/* Consultation band */
.consult { background: var(--violet); color: var(--white); padding: 56px 0; }
.consult h2 { color: var(--white); }
.consult p { color: #e4e3f6; margin: 0; }
.consult-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.consult-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.consult-form .fld span { color: #e4e3f6; }
.consult-form .fld input { border-color: transparent; }
.consult-form .form-msg { grid-column: 1 / -1; }

/* Forms */
.fld { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.fld > span { font-size: 14px; font-weight: 500; color: var(--muted); }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 8px; font: inherit; color: var(--text); background: var(--white); }
.fld textarea { resize: vertical; min-height: 90px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--violet); }
.fld em, .err { font-style: normal; font-size: 14px; color: var(--danger); }
.fld-wide { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--violet); flex: none; }
.form-msg { margin: 8px 0 0; font-size: 15px; font-weight: 500; }
.form-msg.is-error { color: var(--danger); }
.consult .form-msg.is-error { color: #ffd9d6; }
.form-done .fld, .form-done button[type="submit"] { display: none; }

/* Page */
.page { padding-top: 24px; padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-lead { color: var(--muted); font-size: 18px; max-width: 70ch; margin: 0; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.empty { color: var(--muted); font-size: 17px; }
.empty-box { padding: 40px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; }
.seo-text { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose h3 { font-size: 18px; margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1em; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose .docs { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose .docs li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; margin: 0; }
.prose .docs a { font-weight: 600; text-decoration: none; }
.prose .docs small { margin-left: auto; color: var(--muted); font-weight: 600; }

/* Product */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.pd-main h1 { margin-bottom: 20px; font-size: clamp(24px, 2.6vw, 32px); }
.pd-buy { position: sticky; top: 20px; }
.ticket { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.ticket-icon { width: 88px; height: 88px; object-fit: contain; display: block; margin-bottom: 14px; }
.ticket-time { font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.ticket-sku { font-size: 14px; color: var(--muted); margin: 0; }
.ticket-cut { position: relative; border-top: 2px dashed #cfcce6; margin: 22px -26px 20px; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.ticket-cut::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ticket-cut::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ticket .btn + .btn, .ticket form + .btn { margin-top: 10px; }
.extras { border: 0; padding: 0; margin: 0 0 16px; }
.extras legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.extra { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.extra input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); }
.extra-price { font-weight: 600; white-space: nowrap; }

/* Search */
.search-big { display: flex; gap: 10px; max-width: 640px; margin-bottom: 28px; }
.search-big input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 2px solid var(--line); border-radius: 8px; font: inherit; }
.search-big input:focus { outline: none; border-color: var(--violet); }

/* Cart & checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.lines { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 120px 36px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 56px; object-fit: contain; }
.line-info { display: flex; flex-direction: column; gap: 2px; }
.line-info a { font-weight: 600; color: var(--ink); text-decoration: none; }
.line-info a:hover { color: var(--violet); }
.line-info .muted { font-size: 14px; }
.line-sum { text-align: right; white-space: nowrap; }
.line-x { width: 36px; height: 36px; border: 0; background: transparent; font-size: 24px; color: var(--muted); cursor: pointer; border-radius: 6px; }
.line-x:hover { background: var(--paper); color: var(--danger); }
.qty { display: inline-flex; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 34px; height: 38px; border: 0; background: var(--paper); font-size: 18px; cursor: pointer; color: var(--ink); }
.qty-btn:hover { background: var(--violet-soft); }

.order-form h2 { margin-bottom: 10px; }
.seg { border: 0; padding: 0; margin: 20px 0; display: flex; gap: 0; }
.seg legend { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px 14px; border: 2px solid var(--line); font-weight: 600; color: var(--muted); }
.seg label:first-of-type span { border-radius: 8px 0 0 8px; }
.seg label:last-of-type span { border-radius: 0 8px 8px 0; border-left: 0; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.pay { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.pay legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; font-family: var(--head); font-size: 17px; }
.pay-opt { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--violet); margin: 0; flex: none; }
.pay-opt:has(input:checked) { border-color: var(--violet); background: var(--violet-soft); }
.order-form > .fld { margin-bottom: 10px; }
.order-form .btn-lg { margin-top: 16px; }

.summary { position: sticky; top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.summary dl { margin: 0 0 12px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; white-space: nowrap; }
.summary-total { border-top: 2px dashed #cfcce6; margin-top: 8px; padding-top: 14px !important; }
.summary-total dt { color: var(--ink); font-weight: 600; }
.summary-total dd { font: 700 24px var(--head); color: var(--ink); }
.promo-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.promo-form .err, .promo-form p { grid-column: 1 / -1; margin: 0; }

.done { text-align: left; }
.done .btn { margin: 4px 0 28px; }
.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl td:last-child, .tbl th:last-child { text-align: right; white-space: nowrap; }
.tbl tfoot td { border-bottom: 0; }

/* Contacts */
.contacts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list .muted { font-size: 14px; }
.contact-big { font: 600 20px var(--head); color: var(--ink); text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.ask { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 14px; }
.ask h2 { margin: 0; }
.ask .muted { margin: -6px 0 0; }

/* FAQ */
.faq { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: 20px; display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.faq-nav a { padding: 8px 0 8px 16px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.faq-nav a:hover { color: var(--ink); border-left-color: var(--gold); }
.faq-list section { margin-bottom: 40px; scroll-margin-top: 20px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 16px 40px 16px 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 24px; color: var(--violet); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .prose { padding-bottom: 16px; }

.article-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.pager { display: flex; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager span[aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Account */
.auth { display: grid; place-items: center; padding: 24px 0; }
.auth-box { width: 100%; max-width: 440px; display: grid; gap: 16px; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.auth-box h1 { font-size: 26px; margin: 0; }
.auth-box .muted { margin: -8px 0 0; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 15px; }
.orders { display: grid; gap: 16px; }
.order { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.order header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.order h3 { margin: 0; }
.order ul { margin: 12px 0; padding-left: 1.2em; color: var(--muted); }
.order footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 20px; background: var(--violet-soft); color: var(--ink); }
.tag-paid, .tag-done { background: #e3f4e6; color: #1e6b31; }
.tag-cancelled { background: #fbe7e5; color: var(--danger); }
.tag-archived { background: var(--paper); color: var(--muted); }

/* Footer */
.ft { background: var(--ink); color: #c9c7e6; padding: 56px 0 0; font-size: 15px; }
.ft a { color: #e4e3f6; text-decoration: none; }
.ft a:hover { color: var(--gold); }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.ft-brand p { margin: 16px 0 20px; max-width: 34ch; }
.ft-brand p a { text-decoration: underline; }
.logo-light { color: var(--white); }
.ft-h { font: 600 15px var(--head); color: var(--white); margin-bottom: 14px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-addr { color: #a9a6cf; }
.ft-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: 14px; color: #a9a6cf; }

/* Modals, toasts */
.modal { border: 0; padding: 0; border-radius: 14px; width: min(440px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(20,18,50,.35); }
.modal::backdrop { background: rgba(20,18,50,.55); }
.modal-box { position: relative; padding: 32px 28px 28px; display: grid; gap: 14px; }
.modal-box h2 { margin: 0; padding-right: 30px; }
.modal-box .muted { margin: -6px 0 0; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.modal-x:hover { background: var(--paper); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--white); padding: 14px 22px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.added { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: min(360px, calc(100% - 32px)); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; padding: 18px 20px; box-shadow: 0 16px 40px rgba(20,18,50,.2); display: grid; gap: 12px; }
.added[hidden] { display: none; }
.added p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.added p span { color: var(--muted); font-size: 14px; }
.added .link-btn { justify-self: start; font-size: 14px; }

/* Responsive */
@media (max-width: 1180px) {
    .logo-sub { display: none; }
    .hd-top { gap: 18px; }
}
@media (max-width: 1000px) {
    .hd-top { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; gap: 12px 16px; }
    .hd-phones { display: none; }
    .hd-search { order: 5; flex: 1 1 100%; max-width: none; }
    .hd-burger { display: block; order: 4; }
    .hd-tools { gap: 12px; }
    .nav { display: none; }
    .nav.is-open { display: block; }
    .nav-in { flex-direction: column; padding-top: 6px; padding-bottom: 10px; }
    .nav a, .nav a:first-child { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav a.is-on { border-bottom-color: rgba(255,255,255,.08); color: var(--gold); }
    .nav .nav-phone { display: block; color: var(--gold); font-weight: 700; }
    .hero-in, .about, .consult-in, .pd, .checkout, .contacts, .faq { grid-template-columns: 1fr; }
    .hero-in { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
    .steps li:nth-child(2)::after { display: none; }
    .perks { grid-template-columns: 1fr 1fr; }
    .pd-buy, .summary, .faq-nav { position: static; }
    .faq-nav { display: none; }
    .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .hd-tools .cur { display: none; }
    .nav .nav-cur { display: flex; }
    .hd-acc span, .hd-cart-sum { display: none; }
    .cur a { padding: 5px 6px; }
    .logo-mark { height: 48px; }
    .hero h1 { font-size: 32px; }
    .hero-lead { font-size: 16px; }
    .hero-cats a { min-height: 104px; padding: 14px; }
    .hero-cat-title { font-size: 15px; }
    .sec { padding: 52px 0; }
    .grid { grid-template-columns: 1fr; }
    .steps, .perks, .fields, .contact-list, .ft-grid, .consult-form { grid-template-columns: 1fr; }
    .steps li::after { display: none; }
    .perks li { padding-right: 0; }
    .line { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img info x" "img qty sum"; row-gap: 10px; column-gap: 12px; }
    .line .js-remove { justify-self: end; }
    .line img { grid-area: img; width: 48px; height: 48px; align-self: start; }
    .line-info { grid-area: info; }
    .line .qty { grid-area: qty; justify-self: start; }
    .line-sum { grid-area: sum; }
    .line .js-remove { grid-area: x; align-self: start; }
    .search-big, .hero-search { flex-direction: column; }
    .hero-search input { min-height: 44px; }
    .auth-box { padding: 24px 20px; }
    .added { right: 16px; bottom: 16px; }
    .page-head-row { flex-direction: column; }
}
