@font-face{font-family:"AVG Inter";src:url(fonts/inter-400.woff) format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"AVG Inter";src:url(fonts/inter-600.woff) format('woff');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"AVG Inter Display";src:url(fonts/inter-display-700.woff) format('woff');font-weight:700;font-style:normal;font-display:swap}
/* 3D AVG: чёрный, оранжевый, голубой. Светлая страница, чёрные акцентные секции, оранжевый только у главных кнопок. */
:root {
  --ink: #0D0F12;
  --ink-2: #2A2F36;
  --muted: #5C6670;
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --line: #DFE5EA;
  --sky: #CDE8F7;
  --sky-2: #8CCBEE;
  --orange: #F26A1B;
  --orange-d: #D9580F;
  --night: #0D0F12;
  --night-2: #171A1F;
  --night-line: #2A2F36;
  --on-night: #EEF2F5;
  --muted-night: #9AA6B1;
  --ok: #1E7A4C;
  --ok-bg: #E2F3EA;
  --wait: #8A5A00;
  --wait-bg: #FCEFD2;
  --err: #B3261E;
  --f-body: "AVG Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-disp: "AVG Inter Display", "AVG Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); min-width: 0; }
section { padding-block: 56px; }
.eyebrow { font: 600 12px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.on-night .eyebrow { color: var(--muted-night); }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 640px; }
.sec-head h2 { font-size: clamp(28px, 6vw, 40px); }
.sec-head p { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.2; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-d); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.on-night .btn-line { border-color: var(--on-night); color: var(--on-night); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* шапка */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(245, 247, 249, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--f-disp); letter-spacing: -0.01em; }
.logo img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.logo i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--orange); color: var(--ink); font-style: normal; font-size: 15px; }
.nav { display: none; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--orange-d); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: var(--ink); font: 700 12px/22px var(--f-body); text-align: center; }
.menu-panel { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.menu-panel.open { display: block; }
.menu-panel a { display: block; padding: 14px max(16px, env(safe-area-inset-left, 0px)); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .nav { display: flex; } .burger { display: none; } .menu-panel { display: none !important; } }

/* первый экран */
.on-night { background: var(--night); color: var(--on-night); }
.hero { padding-block: 40px 56px; }
.hero .wrap { display: grid; gap: 32px; }
.hero h1 { font-size: clamp(38px, 10vw, 68px); }
.hero .lead { color: var(--muted-night); font-size: 18px; max-width: 520px; margin-top: 16px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--night-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--on-night); }
.hero-photo { position: relative; border-radius: 20px; overflow: hidden; background: var(--night-2); border: 1px solid var(--night-line); max-width: 460px; width: 100%; margin: 0 auto; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) { .hero { padding-block: 72px 80px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; } .hero-photo { margin: 0; justify-self: end; } }

/* коллекция */
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card .ph { background: var(--sky); }
.card .ph img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.card .in { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 22px; }
.card .meta { color: var(--muted); font-size: 14px; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.price { font: 700 22px/1 var(--f-disp); }
.tag { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.wait { background: var(--wait-bg); color: var(--wait); }
@media (min-width: 760px) { .cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-right: 0; padding-right: 0; } }

/* конфигуратор */
.cfg-sec { background: var(--surface); border-block: 1px solid var(--line); }
.cfg { display: grid; gap: 28px; }
.cfg-photo { max-width: 440px; width: 100%; margin: 0 auto; }
.cfg-photo .frame { border-radius: 20px; overflow: hidden; background: var(--sky); border: 1px solid var(--line); }
.cfg-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.views { display: flex; gap: 8px; margin-top: 12px; }
.views button { flex: 1; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-weight: 600; font-size: 14px; }
.views button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.cap { color: var(--muted); font-size: 13px; margin-top: 10px; min-height: 2.6em; }
.steps { display: flex; flex-direction: column; gap: 22px; }
.step .lab { font: 600 12px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.opts { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.opt input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + label { outline: 3px solid var(--sky-2); outline-offset: 2px; }
.opts.three label { flex-direction: column; justify-content: center; text-align: center; gap: 2px; padding: 10px 6px; }
.opts.three .nm { font-weight: 700; font-size: 15px; line-height: 1.2; }
.opts.three .no { color: var(--muted); font-size: 13px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(13, 15, 18, .25); flex: none; }
.kit .nm { font-weight: 600; }
.kit .st { margin-left: auto; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 48px; height: 48px; border: 0; background: var(--surface); font-size: 22px; }
.qty output { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.sum .l { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum .l span:first-child { color: var(--muted); }
.sum .tot { font: 700 26px/1 var(--f-disp); }
.sum .state { font-size: 14px; font-weight: 600; }
.sum .state.ok { color: var(--ok); }
.sum .state.wait { color: var(--wait); }
.sum small { color: var(--muted); }
@media (min-width: 900px) { .cfg { grid-template-columns: minmax(0, 440px) 1fr; gap: 56px; align-items: start; } .cfg-photo { position: sticky; top: 92px; margin: 0; } }

/* о товаре */
.feat { display: grid; gap: 14px; }
.feat article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .feat { grid-template-columns: repeat(4, 1fr); } }
.spec { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(46%, 220px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 28px; padding-bottom: 6px; }
.strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; scroll-snap-align: start; background: var(--sky); }

/* как заказать */
.steps-row { display: grid; gap: 14px; padding: 0; list-style: none; counter-reset: s; }
.steps-row li { counter-increment: s; border: 1px solid var(--night-line); border-radius: 16px; padding: 20px; background: var(--night-2); }
.steps-row li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--ink); font: 700 15px/1 var(--f-disp); margin-bottom: 12px; }
.steps-row b { display: block; font-size: 18px; margin-bottom: 4px; font-family: var(--f-disp); }
.steps-row span { color: var(--muted-night); font-size: 15px; }
@media (min-width: 760px) { .steps-row { grid-template-columns: repeat(4, 1fr); } }

/* доставка */
.info { display: grid; gap: 14px; }
.info article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.info h3 { font-size: 20px; margin-bottom: 10px; }
.info ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
@media (min-width: 760px) { .info { grid-template-columns: repeat(3, 1fr); } }

/* команда */
.team { display: grid; gap: 14px; }
.member { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; gap: 16px; align-items: center; }
.member.draft { border-style: dashed; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member b { display: block; font: 700 18px/1.2 var(--f-disp); }
.member span { color: var(--muted); font-size: 14px; }
.member .draft-tag { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 600; color: var(--wait); background: var(--wait-bg); padding: 3px 8px; border-radius: 999px; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } .member { flex-direction: column; text-align: center; padding: 28px 20px; } }

/* вопросы */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--orange-d); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; }

/* контакты и подвал */
.contact .wrap { display: grid; gap: 20px; }
.contact h2 { font-size: clamp(28px, 6vw, 40px); }
.contact p { color: var(--muted-night); max-width: 520px; }
footer.site-foot { background: var(--night); color: var(--muted-night); padding-block: 36px 44px; border-top: 1px solid var(--night-line); font-size: 14px; }
footer .wrap { display: grid; gap: 20px; }
footer .logo { color: var(--on-night); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--on-night); }
.ph-fill { background: var(--wait-bg); color: var(--wait); border-radius: 4px; padding: 0 4px; }

/* корзина */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(13, 15, 18, .55); }
.drawer .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; background: var(--surface); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.panel .ph-top { display: flex; align-items: center; justify-content: space-between; padding: 16px max(16px, env(safe-area-inset-left, 0px)) 12px; border-bottom: 1px solid var(--line); }
.panel .ph-top h2 { font-size: 22px; }
.panel .body { overflow-y: auto; padding: 16px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; }
.panel .foot { border-top: 1px solid var(--line); padding: 14px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 760px) { .drawer .panel { left: auto; top: 0; width: 460px; max-height: none; border-radius: 20px 0 0 20px; } }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.line-item img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--sky); }
.line-item b { display: block; line-height: 1.25; }
.line-item small { color: var(--muted); }
.line-item .qty button { width: 40px; height: 40px; }
.line-item .qty output { min-width: 32px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: 13px; min-height: 32px; }
.tot-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.tot-row b { font: 700 24px/1 var(--f-disp); }
.note { color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 28px 8px; color: var(--muted); }
.empty b { display: block; font: 700 20px var(--f-disp); color: var(--ink); margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; width: 100%; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .err { color: var(--err); font-size: 13px; min-height: 0; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.order-text { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.toast { color: var(--ok); font-size: 14px; font-weight: 600; min-height: 1.4em; }

/* юридические страницы */
.legal-page { padding-block: 36px 64px; }
.legal-page h1 { font-size: clamp(30px, 7vw, 44px); margin-bottom: 8px; }
.legal-page .upd { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal-page h2 { font-size: 21px; margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page p + p { margin-top: 10px; }
.legal-page ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-wrap { max-width: 760px; }
.legal-modal { position: fixed; inset: 0; z-index: 120; background: var(--bg); overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.legal-modal .bar { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.legal-modal .bar .wrap { display: flex; justify-content: flex-end; min-height: 60px; align-items: center; }

/* ---- мой заказ, контакты, просмотр фото ---- */
.steps-row.five { }
@media (min-width: 760px) { .steps-row.five { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .steps-row.five { grid-template-columns: repeat(5, 1fr); } }
.ask { margin-top: 28px; display: grid; gap: 14px; }
.ask p { color: var(--muted-night); max-width: 520px; }
.ask b { color: var(--on-night); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line-night { background: transparent; color: var(--on-night); border: 1.5px solid var(--night-line); }
.btn-line-night:hover { border-color: var(--on-night); }
.contact .fine { font-size: 12px; opacity: .75; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,12,.92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 900px); max-height: 100%; width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close:focus-visible, .card .ph img:focus-visible, .strip img:focus-visible, #cfg-img:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 2px; }
.on-night .sec-head p { color: var(--muted-night); }
@media (min-width: 760px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(4, 1fr); } }

.panel .body { flex: 1 1 auto; min-height: 0; }
.sr-only { position: absolute; left: -9999px; }
.card .tag { align-self: flex-start; }
