/* Главная страница. Цвета те же, что в cabinet.css */
/* Unbounded для заголовков и Nunito для текста (SIL Open Font License, /fonts/*-OFL.txt): один файл на все начертания */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/unbounded-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: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/nunito-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/nunito-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 { --bg: #f6f3ee; --ink: #211d19; --muted: #6b635b; --line: #e0d9d0; --accent: #c2410c; --accent-dark: #a0340a; --side: #231e1a; --cream: #f3ece4; --sand: #cfc6bc;
    --peach: #f8e4d6; --card: #fffdfa; --shadow: 0 1px 2px rgb(33 29 25 / .05), 0 8px 24px rgb(33 29 25 / .06); }
*, ::before, ::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2 { margin: 0; font-family: "Unbounded", "Nunito", system-ui, sans-serif; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(27px, 3.2vw, 42px); line-height: 1.14; }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 5px 14px; border-radius: 999px; background: var(--peach); color: var(--accent-dark);
    font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.price .eyebrow { background: rgb(255 255 255 / .18); color: #fff; }
p { margin: 0; }
a { color: var(--accent-dark); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible { outline-color: #ffb38a; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
section.wrap, .tint { padding-block: clamp(64px, 9vw, 112px); }
#order { padding-top: clamp(24px, 4vw, 48px); }
.lead { max-width: 56ch; margin-top: 14px; color: var(--muted); font-size: 19px; }
.small { font-size: 15px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 26px; border: 1px solid transparent; border-radius: 14px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: var(--accent-dark); }
.dark .btn.quiet { border-color: rgb(255 255 255 / .28); background: none; color: #fff; font-weight: 500; }
.dark .btn.quiet:hover { background: rgb(255 255 255 / .1); }

.dark { background: var(--side); color: var(--cream); }
.logo { color: #fff; font-family: "Unbounded", "Nunito", system-ui, sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 20px; }
.bar nav { display: flex; gap: 28px; margin-left: auto; }
.bar nav a, .foot a { color: var(--sand); text-decoration: none; }
.bar nav a:hover, .foot a:hover { color: #fff; text-decoration: underline; }
.bar .btn { min-height: 44px; padding: 6px 18px; }

.hero { padding-block: clamp(32px, 5vw, 64px) 70px; }
.pitch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 20px 56px; }
.pitch h1 { grid-row: span 3; max-width: 13ch; }
.pitch p { color: var(--sand); }
.pitch > p:not(.small) { font-size: 19px; }
/* Телефон стоит на границе тёмного и светлого, как на стойке */
.stage { position: relative; margin-top: clamp(40px, 5vw, 64px); padding-right: 12%;  }
.stage::after { content: ""; position: absolute; z-index: 0; right: -50vw; bottom: -70px; left: -50vw; height: 160px; background: var(--bg); }
.dark { overflow: clip; }
.screen { position: relative; z-index: 1; width: 100%; border-radius: 18px; box-shadow: 0 16px 50px rgb(0 0 0 / .35); }
.phone { position: absolute; z-index: 2; right: 0; bottom: 24px; width: 25%; padding: 8px; border-radius: 36px; background: #0f0c0a; box-shadow: 0 16px 44px rgb(0 0 0 / .4); }
.phone img { width: 100%; border-radius: 28px; }

.chats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
figure { display: flex; flex-direction: column; margin: 0; }
figcaption { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--peach); }
figure > p { margin-top: 16px; color: var(--muted); }
.chat { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: clamp(18px, 3vw, 36px);
    border-radius: 28px; background: linear-gradient(160deg, #e3eadc, #d5e0cc); box-shadow: inset 0 0 0 1px rgb(33 29 25 / .04); font-size: 16px; line-height: 1.45; }
.bot, .me { max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 1px 1px rgb(33 29 25 / .08); }
.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: #c9ecb4; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.keys i { flex: 1 1 auto; padding: 7px 12px; border-radius: 10px; background: #eef3ea; color: #2f6b3b; font-size: 15px; font-style: normal; font-weight: 500; text-align: center; white-space: nowrap; }

.try { margin-top: 36px; padding: 18px 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 18px; }

.looks { padding-top: 0 !important; }
.looks-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 16px 72px; }
.looks-head .lead { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.gallery figure { gap: 14px; }
.gallery img { width: 100%; border: 6px solid #1c1814; border-radius: 30px; background: #1c1814; box-shadow: 0 18px 40px rgb(33 29 25 / .18); }
.gallery figcaption { justify-content: center; margin: 0; }
.gallery figcaption::before { display: none; }
.gallery li:nth-child(even) { margin-top: 36px; }

.tint { background: #ede6dc; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; }
.features div { padding: 24px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.features div:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgb(33 29 25 / .05), 0 14px 32px rgb(33 29 25 / .1); }
.features dt { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.features dd { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.ico { display: block; width: 46px; height: 46px; margin-bottom: 18px; padding: 11px; border-radius: 14px; background: var(--peach); color: var(--accent);
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.start, .split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 48px 72px; }
.start .btn { margin-top: 28px; }
.start ol { margin: 0; padding: 0; counter-reset: step; list-style: none; }
.start li { position: relative; padding: 18px 22px 18px 84px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); counter-increment: step; }
.start li + li { margin-top: 14px; }
.start li::before { content: counter(step); position: absolute; top: 18px; left: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; }
.start li b { display: block; margin-bottom: 2px; font-size: 19px; }

#price { padding-top: 0; }
.price { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px 72px; padding: clamp(28px, 5vw, 64px); border-radius: 32px; overflow: hidden;
    background: radial-gradient(circle at 100% 0, #e2652a 0, transparent 55%), radial-gradient(circle at 0 100%, #9c3209 0, transparent 50%), var(--accent); color: #fff; }
.price p { margin-top: 14px; font-size: 19px; }
.price ul { margin: 0; padding: 0; list-style: none; }
.price li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgb(255 255 255 / .3); }
.price li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.price li:first-child { border-top: 0; }
.price .btn { justify-self: start; background: #fff; color: var(--accent-dark); }
.price .btn:hover { background: var(--cream); }
.price :focus-visible { outline-color: #fff; }

.split { padding-top: 0 !important; }
.split h2 { margin-bottom: 24px; }
details { margin-bottom: 10px; padding: 0 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--peach); color: var(--accent-dark);
    font-size: 20px; font-weight: 500; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); }
form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
form h2 { margin: 0; font-size: 28px; }
label { font-weight: 700; }
input, textarea { display: block; width: 100%; min-height: 50px; margin-top: 6px; padding: 11px 14px; border: 1px solid #d3c9be; border-radius: 14px; background: #fff; color: inherit; font: inherit; font-weight: 400;
    resize: vertical; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--peach); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 36px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot small { color: var(--sand); }

/* Условия и политика */
.doc { width: min(760px, 100% - 40px); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(32px, 4.5vw, 48px); }
.doc h2 { font-size: 24px; }
.doc h3 { margin: 20px 0 0; font-size: 18px; }
.doc p { margin-top: 12px; }
.doc .lead { font-size: 16px; }
.doc section { margin-top: 40px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc .note { padding: 24px; border-radius: 20px; background: #ece5db; }

@media (max-width: 860px) {
    .bar nav { display: none; }
    .pitch, .chats, .features, .start, .split, .price { grid-template-columns: minmax(0, 1fr); }
    .looks-head { grid-template-columns: minmax(0, 1fr); }
    /* Темы листаются пальцем */
    .gallery { display: flex; gap: 14px; margin-inline: -20px; padding: 0 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery li { flex: none; width: 58%; scroll-snap-align: center; }
    .gallery li:nth-child(even) { margin-top: 0; }
    .features { gap: 10px; }
    .features div { padding: 16px 18px; border-radius: 18px; }
    .features dt { display: flex; align-items: center; gap: 14px; font-size: 18px; }
    .ico { flex: none; width: 40px; height: 40px; margin: 0; padding: 9px; border-radius: 12px; }
    .features dd { margin-top: 6px; font-size: 15px; }
    .start li { padding: 16px 18px 16px 74px; }
    .start li::before { top: 16px; left: 18px; width: 40px; height: 40px; }
    .pitch h1 { grid-row: auto; }
    .pitch .btn { flex: 1 1 auto; }
    /* Кабинет уходит за правый край, телефон остаётся читаемым */
    .stage { padding: 0 0 0 16%; }
    .screen { width: 680px; max-width: none; margin-top: 0; }
    .phone { right: auto; left: 0; bottom: 16px; width: 46%; padding: 5px; border-radius: 26px; }
    .phone img { border-radius: 21px; }
}
@media (min-width: 861px) and (max-width: 1100px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .features div, summary::after { transition: none; } }
