/* Revera — лендинг.
   Палитра и мотивы взяты из самого приложения: тёмный фон, тёплый песочный
   акцент, паспарту как способ подать снимок. Кегль намеренно крупнее обычного:
   аудитория старше, и «Размер текста» у неё часто выкручен. */

:root {
    --ink: #0E0D0C;
    --surface: #1A1817;
    --mount: #171513;
    --border: #2A2725;
    --sand: #E9C39B;
    --sand-dim: #C9A47C;
    --paper: #F2EDE8;
    --muted: #8A8480;
    --rule: rgba(233, 195, 155, .20);
    --warn: #D98C6A;

    --wrap: 1080px;
    --radius: 20px;
    --radius-sm: 12px;
    --step: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font: 400 18px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* `height: auto` обязателен: атрибуты width и height в разметке браузер
   применяет как стиль, и картинка, которой ширину задали через CSS,
   остаётся с прописанной в разметке высотой — то есть растянутой. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sand); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
    outline: 2px solid var(--sand);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---- Типографика ------------------------------------------------------- */

.display {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 0;
}

h1.display { font-size: clamp(38px, 6.4vw, 68px); }
h2.display { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }

/* Подпись на полях отпечатка — так студии штамповали свои снимки. */
.stamp {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sand-dim);
    margin: 0 0 18px;
}

.lede { font-size: clamp(19px, 2.1vw, 23px); color: var(--muted); margin: 20px 0 0; max-width: 58ch; }
.note { font-size: 15px; color: var(--muted); }

/* ---- Паспарту ---------------------------------------------------------- */

.mount {
    background: var(--mount);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 32px);
    /* Внутренняя волосяная линия — край картона под стеклом. */
    box-shadow: inset 0 0 0 1px rgba(242, 237, 232, .03);
}

/* ---- Шапка ------------------------------------------------------------- */

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(14, 13, 12, .82);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.top__in { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span {
    font-family: "Fraunces", Georgia, serif;
    font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 24;
    font-size: 24px;
    font-weight: 500;
    color: var(--sand);
}

.top nav { margin-left: auto; display: flex; gap: 26px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--paper); }

a.chip:hover { border-color: var(--sand); }
.chip {
    border: 1px solid var(--rule);
    color: var(--sand);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.top nav + .chip { margin-left: 0; }
.top__in > .chip:only-of-type { margin-left: auto; }

@media (max-width: 780px) {
    .top nav { display: none; }
    .top__in > .chip { margin-left: auto; }
}

/* ---- Секции ------------------------------------------------------------ */

section { padding-block: var(--step); }
section + section { border-top: 1px solid var(--border); }

.head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---- Герой ------------------------------------------------------------- */

.hero { padding-top: clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn svg { width: 20px; height: 20px; margin-right: 10px; fill: currentColor; flex: none; }
.btn--solid { background: var(--sand); color: #201A14; }
.btn--solid:hover { background: #F0D0AC; }
.btn--ghost { border-color: var(--border); color: var(--paper); }
.btn--ghost:hover { border-color: var(--rule); }

/* ---- Шторка «до и после» ----------------------------------------------- */

.slab { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #000; aspect-ratio: 880 / 1168; }
.slab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Верхний слой — восстановленный снимок; ширина им управляет ползунок. */
.slab__after { clip-path: inset(0 0 0 var(--pos, 50%)); }

.slab__seam {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 2px;
    background: var(--sand);
    box-shadow: 0 0 18px rgba(233, 195, 155, .55);
    pointer-events: none;
}
.slab__grip {
    position: absolute;
    top: 50%;
    left: var(--pos, 50%);
    translate: -50% -50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--sand);
    color: #201A14;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    pointer-events: none;
}

/* Ползунок настоящий — значит работает с клавиатуры и озвучивается. */
.slab input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.slab__tag {
    position: absolute;
    bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(14, 13, 12, .72);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--paper);
    pointer-events: none;
}
.slab__tag--l { left: 12px; }
.slab__tag--r { right: 12px; color: var(--sand); }

figure { margin: 0; }
figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---- Сетки ------------------------------------------------------------- */

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---- Честная записка: центральная часть страницы ----------------------- */

.candid { background: linear-gradient(180deg, rgba(233, 195, 155, .05), transparent 60%); }
.candid__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 56px); align-items: center; }

@media (max-width: 900px) { .candid__grid { grid-template-columns: 1fr; } }

blockquote.said {
    margin: 0;
    padding-left: 22px;
    border-left: 2px solid var(--sand);
    font-family: "Fraunces", Georgia, serif;
    font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 32;
    font-size: clamp(21px, 2.6vw, 28px);
    line-height: 1.35;
    color: var(--paper);
}
blockquote.said cite { display: block; margin-top: 14px; font: 400 14px/1.5 "Inter", sans-serif; color: var(--muted); font-style: normal; }

.shot { border-radius: 22px; border: 1px solid var(--border); overflow: hidden; background: var(--surface); }

/* ---- Двухколонник: слова и телефон ------------------------------------- */

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
/* Стороны меняются местами через одну секцию: страница длинная, и снимок,
   всё время стоящий справа, превращает её в столбик. */
.split--flip > :first-child { order: 2; }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    /* На узком экране порядок всегда один: сначала о чём речь, потом кадр. */
    .split--flip > :first-child { order: 0; }
}

/* Телефон в рамке. Тень мягкая и глубокая: страница тёмная, и обычная
   короткая тень на ней не читается вовсе. */
.device { width: min(100%, 340px); margin-inline: auto; filter: drop-shadow(0 30px 64px rgba(0, 0, 0, .6)); }

/* ---- Частые вопросы ---------------------------------------------------- */

.faq { display: grid; gap: 12px; }

.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--mount);
    padding: 20px 24px;
}
.faq details[open] { border-color: var(--rule); }

.faq summary {
    display: flex;
    align-items: baseline;
    gap: 16px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--paper);
    /* Свой знак вместо системного треугольника: он одинаков во всех
       браузерах и не спорит с песочным акцентом. */
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--sand); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }

.faq p { margin: 14px 0 0; color: var(--muted); font-size: 16px; max-width: 74ch; }

/* ---- Размер отпечатка -------------------------------------------------- */

.sizes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sizes b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 32px; font-weight: 500; color: var(--sand); }

/* ---- Цена -------------------------------------------------------------- */

.price { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price .amount { font-family: "Fraunces", Georgia, serif; font-size: 34px; font-weight: 500; color: var(--paper); }
.price .per { font-size: 15px; color: var(--muted); }
.price .mount--lead { border-color: var(--rule); }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); font-size: 16px; }
ul.plain li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 1px; background: var(--sand); }
ul.plain li:last-child { margin-bottom: 0; }

/* ---- Кросс-промо ------------------------------------------------------- */

.more { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.more a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--paper);
    font-size: 15px;
    font-weight: 500;
}
.more a:hover { border-color: var(--rule); }
.more img { width: 36px; height: 36px; border-radius: 9px; }

/* ---- Подвал ------------------------------------------------------------ */

footer { border-top: 1px solid var(--border); padding-block: 44px; color: var(--muted); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--sand); }

/* ---- Текстовые страницы ------------------------------------------------ */

.doc { max-width: 74ch; }
.doc h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 600; }
.doc h2:first-of-type { margin-top: 28px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; }
.doc strong { color: var(--paper); font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .updated { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--sand-dim); }

/* ---- Появление --------------------------------------------------------- */

/* Класс `js` ставит встроенный скрипт в <head>. Без него правило не сработает,
   и страница без JS видна целиком — так и должно быть. */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rise { opacity: 1; transform: none; transition: none; }
}
