/* =========================================================================
   Dizani — витрина. Без фреймворков и веб-шрифтов: быстрее первый экран.
   Цвета — фирменные (слива, пудра, вино), см. токены ниже.
   ========================================================================= */

/* Cormorant Garamond (SIL OFL, см. fonts/OFL-CormorantGaramond.txt): только 500, латиница + кириллица. */
@font-face {
    font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/cormorant-garamond-500-normal-nkeh3UG.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
    src: url("../fonts/cormorant-garamond-500-italic-93J8Am1.woff2") format("woff2");
}

:root {
    --ink: #1c1519;
    --ink-soft: #453d41;
    --muted: #6b6367;
    --line: #ece4e6;
    --paper: #fdf8f6;
    --blush: #f7ecee;
    --blush-deep: #f1dfe2;
    --rose: #efd3d6;
    --rose-ink: #b07a86;
    --gold: #b98f6e;
    --plum: #56385e;
    --plum-dark: #3b2441;
    --wine: #6b2232;
    --success: #2f7d5b;

    --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgb(28 21 25 / 6%), 0 8px 24px rgb(28 21 25 / 6%);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 64px;
    --flower-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23000'%3E%3Cpath id='p' d='M12 10.2c-2.2-2.1-2.2-5.6 0-7.7 2.2 2.1 2.2 5.6 0 7.7Z'/%3E%3Cuse href='%23p' transform='rotate(72 12 12)'/%3E%3Cuse href='%23p' transform='rotate(144 12 12)'/%3E%3Cuse href='%23p' transform='rotate(216 12 12)'/%3E%3Cuse href='%23p' transform='rotate(288 12 12)'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

body {
    margin: 0;
    font: 16px/1.6 var(--sans);
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.7vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

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

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--blush { background: var(--blush); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .55em;
    font: italic 500 1.2rem/1.2 var(--serif);
    color: var(--wine);
    margin-bottom: .6rem;
}
/* маленький цветок перед подзаголовком */
.eyebrow::before {
    content: ""; flex: none; width: 1.1em; height: 1.1em; background: currentColor; opacity: .75;
    -webkit-mask: var(--flower-mask) center / contain no-repeat; mask: var(--flower-mask) center / contain no-repeat;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ------------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: 0 1.6em;
    font: 600 .95rem/1 var(--sans); letter-spacing: .02em;
    border-radius: 999px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline-light { border-color: rgb(255 255 255 / 80%); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blush); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 1.2em; font-size: .9rem; }
.btn .icon { width: 1.15em; height: 1.15em; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ------------------------------------------------------------------ header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 253 252 / 88%);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header__logo img { height: 40px; width: auto; }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.nav__link, .nav summary {
    display: block; padding: 10px 14px; border-radius: 999px;
    font-size: .95rem; text-decoration: none; cursor: pointer; list-style: none;
}
.nav summary::-webkit-details-marker { display: none; }
.nav__link:hover, .nav summary:hover, .nav__link[aria-current="page"] { background: var(--blush); color: var(--ink); }
.nav__dropdown { position: relative; }
.nav__dropdown summary::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav__menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
    margin: 0; padding: 8px; list-style: none;
    /* полупрозрачная «матовая» карточка: сквозь неё видно фото главной */
    background: rgb(255 255 255 / 74%); border: 1px solid rgb(255 255 255 / 55%); border-radius: var(--radius); box-shadow: var(--shadow);
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav__menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; }
.nav__menu a:hover { background: rgb(255 255 255 / 70%); }

.lang-switch { display: flex; gap: 2px; font-size: .85rem; font-weight: 600; }
.lang-switch a, .lang-switch span { padding: 6px 8px; border-radius: 6px; text-decoration: none; }
.lang-switch span { background: var(--plum); color: #fff; }

.site-menu { display: contents; }
.burger { display: none; }

@media (max-width: 860px) {
    .burger {
        display: grid; place-items: center;
        width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
    }
    .burger span, .burger span::before, .burger span::after {
        content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: .2s;
    }
    .burger span::before { position: absolute; top: -7px; }
    .burger span::after { position: absolute; top: 7px; }
    .burger[aria-expanded="true"] span { background: transparent; }
    .burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
    .burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

    .site-menu {
        display: none;
        position: absolute; left: 0; right: 0; top: var(--header-h);
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 12px var(--gutter) 24px; box-shadow: var(--shadow);
        max-height: calc(100dvh - var(--header-h)); overflow: auto;
    }
    .site-menu.is-open { display: block; }
    .nav { flex-direction: column; align-items: stretch; margin: 0; }
    .nav__menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .site-header__tools { margin-left: 0; padding-top: 12px; }
}

/* ------------------------------------------------------------------ hero */
.hero {
    position: relative; isolation: isolate; color: #fff;
    min-height: clamp(420px, 70vh, 680px);
    display: grid; align-items: end;
}
.hero--compact { min-height: clamp(220px, 34vh, 340px); }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgb(20 10 18 / 15%) 0%, rgb(20 10 18 / 35%) 45%, rgb(20 10 18 / 78%) 100%);
}
.hero__content { padding-block: clamp(40px, 8vw, 88px); }
.hero__content > * { max-width: 760px; }
.hero h1 { margin-bottom: .3em; }
.hero p { font-size: clamp(1rem, .9rem + .5vw, 1.25rem); opacity: .92; max-width: 56ch; }
.hero .eyebrow { color: var(--rose); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero:not(.hero--compact) .hero__content { padding-bottom: clamp(88px, 12vw, 140px); }

/* Главная: фото на весь экран, текст по центру. Шапка лежит поверх фото (см. «шапка поверх фото»). */
.hero.hero--full { min-height: 100vh; min-height: 100svh; align-items: center; text-align: center; }
.hero.hero--full::before {
    background: linear-gradient(180deg, rgb(20 10 18 / 55%) 0%, rgb(20 10 18 / 22%) 22%, rgb(20 10 18 / 34%) 60%, rgb(20 10 18 / 62%) 100%);
}
.hero.hero--full .hero__content { padding-block: calc(var(--header-h) + 40px) 112px; }
.hero.hero--full .hero__content > * { margin-inline: auto; }
.hero--full .eyebrow { justify-content: center; }
/* «Студия-ателье Dizani» и заголовок страницы (h1 «Цветы из ткани») — две строки одного размера */
.hero.hero--full .hero__brand, .hero.hero--full h1 {
    max-width: none; margin: 0 auto; text-wrap: balance; font: 500 clamp(2.2rem, 1.4rem + 4vw, 4.8rem)/1.08 var(--serif); color: #fff;
    -webkit-text-stroke: .022em currentColor; /* у шрифта есть только начертание 500 — чуть утолщаем */
    text-shadow: 0 2px 28px rgb(20 10 18 / 40%);
}
.hero.hero--full h1 { margin: 0 auto 16px; }
.hero--full p:not(.hero__brand) { max-width: 62ch; text-wrap: balance; color: rgb(255 255 255 / 78%); text-shadow: 0 1px 12px rgb(20 10 18 / 45%); }
/* кнопки: на компьютере — ниже, с воздухом; на телефоне — ближе к тексту */
.hero--full .hero__actions { justify-content: center; margin-top: 56px; }
@media (max-width: 700px) { .hero--full .hero__actions { margin-top: 24px; } }
/* кнопки на фото — светлее и матовые, не спорят с заголовком */
.hero--full .btn--light {
    background: rgb(255 255 255 / 62%); color: var(--ink);
    backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.hero--full .btn--light:hover { background: rgb(255 255 255 / 82%); }
.hero--full .btn--outline-light {
    border-color: rgb(255 255 255 / 45%); color: rgb(255 255 255 / 90%); background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero--full .btn--outline-light:hover { background: rgb(255 255 255 / 22%); color: #fff; }
.hero__scroll {
    position: absolute; left: 50%; bottom: 28px; width: 44px; height: 44px; margin-left: -22px;
    border: 1.5px solid rgb(255 255 255 / 70%); border-radius: 50%;
    animation: hero-scroll 2.4s ease-in-out infinite;
}
.hero__scroll::after {
    content: ""; position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; margin: -6px 0 0 -5px;
    border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg);
}
.hero__scroll:hover { background: rgb(255 255 255 / 15%); }
@keyframes hero-scroll { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* Шапка на всех страницах одинаковая: закреплена сверху, вверху страницы прозрачная (is-clear),
   при прокрутке или открытом меню — светлая матовая. На страницах с фото сверху (--photo) в прозрачном
   виде надписи и логотип белые, под шапкой лёгкое затемнение. */
.site-header--over {
    position: fixed; left: 0; right: 0; top: 0;
    transition: background-color .3s, border-color .3s, color .3s;
}
.site-header--over:not(.site-header--photo) + main { padding-top: var(--header-h); }
.site-header__logo-light { display: none; }
.site-header.is-clear {
    background: transparent; border-bottom-color: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header--photo.is-clear {
    background: linear-gradient(180deg, rgb(20 10 18 / 50%), rgb(20 10 18 / 0%)) border-box;
    color: #fff; text-shadow: 0 1px 3px rgb(20 10 18 / 35%);
}
.site-header--photo.is-clear .site-header__logo-dark { display: none; }
.site-header--photo.is-clear .site-header__logo-light { display: block; }
.site-header--photo.is-clear .header-action { color: #fff; }
.site-header--photo.is-clear .header-action:hover { background: rgb(255 255 255 / 16%); color: #fff; }
.site-header--photo.is-clear .header-action__count { box-shadow: none; }
.site-header--photo.is-clear .burger span, .site-header--photo.is-clear .burger span::before, .site-header--photo.is-clear .burger span::after { background: #fff; }
.site-header--photo.is-clear .burger[aria-expanded="true"] span { background: transparent; }
@media (min-width: 861px) {
    .site-header--photo.is-clear .nav__link:hover, .site-header--photo.is-clear .nav summary:hover,
    .site-header--photo.is-clear .nav__link[aria-current="page"], .site-header--photo.is-clear .nav__dropdown[open] summary {
        background: rgb(255 255 255 / 16%); color: #fff;
    }
    .site-header--photo.is-clear .lang-switch a:hover { color: #fff; background: rgb(255 255 255 / 16%); }
}
/* Под прозрачной шапкой — место для неё в фото (на главной это учтено в .hero--full). */
.site-header--over + main > .hero:first-child:not(.hero--full) { padding-top: var(--header-h); }
.site-header--over + main > .hero--compact:first-child { min-height: calc(clamp(220px, 34vh, 340px) + var(--header-h)); }
/* Шапка с фоном (прокрутка, страницы без фото): матовое размытие вложенному меню недоступно —
   делаем его почти непрозрачным, чтобы текст под ним не мешал. */
@media (min-width: 861px) {
    .site-header:not(.is-clear) .nav__menu { background: rgb(255 253 252 / 97%); border-color: var(--line); }
    .site-header:not(.is-clear) .nav__menu a:hover { background: var(--blush); }
}
/* выпадающий список — всегда белая карточка с тёмным текстом */
.site-header--photo.is-clear .nav__menu { color: var(--ink); text-shadow: none; }
.site-header--photo.is-clear .nav__menu a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding-block: 16px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { text-decoration: none; }
.hero .breadcrumbs { color: rgb(255 255 255 / 75%); padding: 0 0 8px; }

/* ------------------------------------------------------------------ categories */
/* разделы на главной: круглые фото, подпись под ними */
.categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px clamp(24px, 5vw, 64px); }
.category-tile { width: 170px; text-decoration: none; text-align: center; }
.category-tile img {
    width: 170px; height: 170px; border-radius: 50%; object-fit: cover;
    background: #fff; border: 1px solid var(--line); transition: transform .3s, border-color .3s;
}
.category-tile span { display: block; margin-top: 12px; font: 500 1.15rem/1.2 var(--serif); color: var(--ink); }
.category-tile:hover img { transform: scale(1.04); border-color: var(--rose); }
@media (max-width: 520px) {
    .categories { gap: 24px 16px; }
    .category-tile, .category-tile img { width: 140px; }
    .category-tile img { height: 140px; }
}


/* ------------------------------------------------------------------ products */
.product-grid { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-tile { position: relative; }
.product-tile a { text-decoration: none; }
.product-tile__media {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: var(--radius); background: var(--blush);
    box-shadow: 0 1px 2px rgb(86 56 94 / 6%);
}
.product-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-tile:hover .product-tile__media img { transform: scale(1.04); }
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 600; letter-spacing: .03em;
    background: rgb(255 255 255 / 92%); color: var(--ink);
}
.badge--plum { background: var(--plum); color: #fff; }
.badge--order { background: #fff; color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.badge .icon { width: 1.1em; height: 1.1em; }
.product-tile h2, .product-tile h3 { font: 500 1.25rem/1.25 var(--serif); margin: 6px 0 2px; }
/* статус под фото: «В наличии · Мастер-класс», по центру, мелкими заглавными */
.tile-status {
    margin: 10px 0 0; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--plum);
}
.tile-status__item--order { color: var(--rose-ink); }
.tile-status__item--mc { color: var(--ink-soft); }
.tile-status__sep { margin: 0 6px; color: var(--ink-soft); }
.tile-status .badge { letter-spacing: .03em; vertical-align: 1px; }
.tile-category { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.tile-buy { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.tile-buy .product-tile__price { margin: 0; }
.product-tile .price { font-weight: 700; font-size: 1.1rem; color: var(--plum); margin: 0; }

.price { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ chips */
.chips { display: flex; gap: 8px; margin: 0 0 32px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
    flex: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
    text-decoration: none; font-size: .9rem; white-space: nowrap; background: #fff;
}
.chips a:hover { border-color: var(--plum); color: var(--ink); }
.chips [aria-current] { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ------------------------------------------------------------------ pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px;
    border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.pagination a:hover { border-color: var(--plum); }
.pagination [aria-current] { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ------------------------------------------------------------------ product card */
.product { display: grid; gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 8vw, 96px); }
@media (min-width: 900px) {
    .product { grid-template-columns: 1.15fr 1fr; align-items: start; }
    .product__info { position: sticky; top: calc(var(--header-h) + 24px); }
}
.gallery {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    border-radius: var(--radius); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item { position: relative; display: block; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--blush); transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__zoom {
    position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: rgb(255 255 255 / 88%); color: var(--plum);
    opacity: 0; transition: opacity .2s; box-shadow: var(--shadow);
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; }
@media (hover: none) { .gallery__zoom { opacity: 1; width: 34px; height: 34px; } }
@media (min-width: 900px) {
    .gallery { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; }
    .gallery__item:first-child { grid-column: 1 / -1; }
}
.gallery-hint { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 8px; }
@media (min-width: 900px) { .gallery-hint { display: none; } }

.product__info h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.product__description { color: var(--ink-soft); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 24px 0; font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.swatches li { display: inline-flex; align-items: center; gap: 7px; }
.swatch {
    width: 16px; height: 16px; border-radius: 50%; background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgb(28 21 25 / 14%), 0 0 0 2px #fff, 0 0 0 3px var(--line);
}

.offers { display: grid; gap: 12px; margin-top: 24px; }
.offer {
    border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
    background: #fff; display: grid; gap: 6px;
}
.offer--ready { border-color: var(--plum); }
.offer__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.offer__head h2 { font: 600 1.05rem/1.3 var(--sans); margin: 0; display: flex; align-items: center; gap: 10px; }
.offer__head h2 .icon { width: 22px; height: 22px; color: var(--plum); }
.offer--ready { background: linear-gradient(135deg, #fff 55%, var(--blush) 100%); }
.offer__meta { display: flex; gap: 8px; align-items: flex-start; }
.offer__meta .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--rose-ink); }
.offer .price { font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.offer p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.offer .btn { margin-top: 10px; justify-self: start; }
.offer .offer__lead { color: var(--ink); font-weight: 500; }
.offers__diy { margin-top: 14px; padding-top: 18px; border-top: 1px dashed var(--rose); }
.offers__diy h2 { font: 500 1.45rem/1.2 var(--serif); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; color: var(--plum-dark); }
.offers__diy h2 .icon { width: 20px; height: 20px; color: var(--wine); flex: none; }
.offers__diy p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.contact-note {
    margin-top: 24px; padding: 18px 20px; border-radius: var(--radius);
    background: var(--blush); color: var(--ink-soft); font-size: .92rem;
}
.contact-note p { margin: 0 0 12px; display: flex; gap: 10px; }
.contact-note p .icon { flex: none; width: 20px; height: 20px; color: var(--wine); margin-top: 1px; }
.contact-note__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--success); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--order { color: var(--wine); }
.notice {
    margin-top: 8px !important; padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--blush); color: var(--ink) !important; font-size: .85rem !important;
}

/* ------------------------------------------------------------------ split / text */
.split { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.split__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__media img { border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.split__media img:nth-child(2) { margin-top: 48px; }

.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; position: relative; }
/* пунктир между шагами */
.steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 26px; top: 56px; bottom: -16px;
    border-left: 1.5px dashed var(--rose);
}
.steps .icon-badge::after {
    content: counter(step); position: absolute; right: -4px; top: -4px;
    width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    background: var(--plum); color: #fff; font: 600 .7rem/1 var(--sans);
}
.steps strong { display: block; font-size: 1.02rem; }

.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 500 1.3rem/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--plum); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------------ footer */
.site-footer {
    position: relative; background: var(--plum-dark); color: rgb(255 255 255 / 78%);
    padding-top: 56px; font-size: .95rem; overflow: hidden; isolation: isolate;
}
/* цветок-водяной знак */
.site-footer::after {
    content: ""; position: absolute; z-index: -1; right: -90px; bottom: -110px; width: 380px; aspect-ratio: 1;
    background: url("../images/decor/flower-m47hfak.svg") center / contain no-repeat; opacity: .1; filter: brightness(2.2);
}
.site-footer__contacts a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__contacts .icon { width: 18px; height: 18px; opacity: .8; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__logo img { height: 44px; width: auto; margin-bottom: 16px; }
.site-footer__bottom { margin-top: 48px; padding-block: 20px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .85rem; }

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


/* ------------------------------------------------------------------ icons */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.icon-badge {
    position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; color: var(--plum);
    background: radial-gradient(circle at 30% 25%, #fff 0%, var(--blush) 55%, var(--rose) 100%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%), 0 4px 14px rgb(176 122 134 / 18%);
    --icon-bg: var(--blush);
}
.icon-badge .icon { width: 26px; height: 26px; }
.nav__menu .icon { color: var(--rose-ink); margin-right: 4px; }


/* ------------------------------------------------------------------ social */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.social a:hover { transform: translateY(-2px); }
.social--small { gap: 2px; }
.social--small a { width: 30px; height: 30px; }
.social--small .icon { width: 17px; height: 17px; }
.social--footer { margin-top: 20px; }
.social--footer a { background: rgb(255 255 255 / 10%); color: #fff; }
.social--footer a:hover { background: var(--rose); color: var(--plum-dark); text-decoration: none; }
.social--large { justify-content: center; gap: 12px; margin-top: 28px; }
.social--large a { width: 56px; height: 56px; background: #fff; color: var(--plum); box-shadow: var(--shadow); }
.social--large a:hover { background: var(--plum); color: #fff; }
.social--large .icon { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ trust strip */
/* тихая полоса под фото главной: иконка + короткая фраза, между ними точки */
.trust-band { background: var(--blush); scroll-margin-top: var(--header-h); }
.trust {
    list-style: none; margin: 0; padding: 22px 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0;
}
.trust li {
    position: relative; display: flex; align-items: center; gap: 10px; padding: 0 26px;
    font: 500 1.15rem/1.2 var(--serif); color: var(--ink);
}
.trust li + li::before {
    content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2px;
    border-radius: 50%; background: var(--rose);
}
.trust .icon { width: 20px; height: 20px; color: var(--rose-ink); }
@media (max-width: 700px) {
    .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; padding: 18px 0; }
    .trust li { padding: 0; font-size: 1.05rem; }
    .trust li + li::before { display: none; }
}

/* ------------------------------------------------------------------ decorated sections */
.section--decor { position: relative; isolation: isolate; overflow: hidden; }
.section--decor::before, .section--decor::after {
    content: ""; position: absolute; z-index: -1; aspect-ratio: 1;
    background: url("../images/decor/flower-m47hfak.svg") center / contain no-repeat; opacity: .5;
}
.section--decor::before { width: clamp(200px, 24vw, 340px); left: clamp(-200px, -12vw, -110px); top: -110px; transform: rotate(-12deg); opacity: .4; }
.section--decor::after { width: clamp(160px, 20vw, 280px); right: clamp(-120px, -6vw, -60px); bottom: -50px; transform: rotate(18deg); }

.section--blush { background: radial-gradient(1200px 400px at 85% 0%, #fbf3f4 0%, transparent 60%), var(--blush); }

.section--mc { position: relative; overflow-x: clip; }
.section--mc .container { isolation: isolate; }
/* два фото сходинкой, каждое в тонкой рамке с узорными уголками */
.mc-photos { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(40px, 5vw, 56px); padding: 30px 26px 30px; }
.mc-photo { position: relative; display: block; cursor: zoom-in; }
.mc-photo:nth-child(2) { margin-top: 70px; }
.mc-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; transition: transform .4s; }
.mc-photo:hover img { transform: scale(1.02); }
.mc-photo::before { content: ""; position: absolute; inset: -14px; border: 1px solid var(--rose); border-radius: 10px; }
.mc-photo i { position: absolute; z-index: 2; width: 56px; height: 56px; background: url("../images/decor/corner-Wm4t-KB.svg") center / contain no-repeat; }
.mc-photo i:nth-of-type(1) { left: -26px; top: -26px; }
.mc-photo i:nth-of-type(2) { right: -26px; top: -26px; transform: scaleX(-1); }
.mc-photo i:nth-of-type(3) { left: -26px; bottom: -26px; transform: scaleY(-1); }
.mc-photo i:nth-of-type(4) { right: -26px; bottom: -26px; transform: scale(-1); }
@media (max-width: 520px) {
    .mc-photos { gap: 32px; padding: 24px 18px; }
    .mc-photo:nth-child(2) { margin-top: 40px; }
    .mc-photo i { width: 40px; height: 40px; }
    .mc-photo i:nth-of-type(1) { left: -20px; top: -20px; } .mc-photo i:nth-of-type(2) { right: -20px; top: -20px; }
    .mc-photo i:nth-of-type(3) { left: -20px; bottom: -20px; } .mc-photo i:nth-of-type(4) { right: -20px; bottom: -20px; }
    .mc-photo::before { inset: -10px; }
}
/* шаги: крупные цифры вместо значков */
.mc-steps { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 18px; }
.mc-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; color: var(--ink-soft); }
.mc-steps b { font: 500 2.2rem/1 var(--serif); color: var(--rose-ink); }
.mc-steps strong { display: block; font-size: 1.02rem; color: var(--ink); }
.mc-note { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; margin: 18px 0 22px; }

.section__head > div { position: relative; }

/* веточка-разделитель под заголовком FAQ */
.faq > h2::after {
    content: ""; display: block; width: 120px; height: 24px; margin-top: 10px;
    background: url("../images/decor/sprig-GseM2gS.svg") left center / contain no-repeat;
}

.notice { border-left: 3px solid var(--rose); }

.site-footer .social { display: flex; }
.contacts-social { max-width: 640px; text-align: center; }
.contacts-social .lead { margin-inline: auto; }
.prose .eyebrow + h2 { margin-top: 0; }

.hero--compact + .section { padding-top: clamp(16px, 3vw, 32px); }

/* ------------------------------------------------------------------ lightbox */
html.is-locked { overflow: hidden; }
.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgb(28 16 30 / 94%); color: #fff; overscroll-behavior: contain; touch-action: pan-y;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; animation: lightbox-in .2s ease-out; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox__stage { margin: 0; display: grid; place-items: center; padding: 56px 16px; min-height: 0; }
.lightbox__img {
    max-width: 100%; max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain;
    border-radius: var(--radius-sm); user-select: none; -webkit-user-drag: none;
}
.lightbox__btn {
    position: fixed; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; background: rgb(255 255 255 / 12%); color: #fff; transition: background .2s;
}
.lightbox__btn:hover { background: rgb(255 255 255 / 24%); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; translate: none; } }
.lightbox__counter { position: fixed; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: .9rem; opacity: .8; pointer-events: none; }

/* ------------------------------------------------------------------ header actions: избранное, корзина */
.header-actions { display: flex; align-items: center; gap: 2px; order: 3; }
.header-action {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    text-decoration: none; color: var(--ink); transition: background .2s;
}
.header-action:hover { background: var(--blush); color: var(--plum); }
.header-action .icon { width: 24px; height: 24px; }
.header-action__count {
    position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    display: grid; place-items: center; background: var(--plum); color: #fff; font: 600 .68rem/1 var(--sans);
    box-shadow: 0 0 0 2px var(--paper);
}
.header-action__count[hidden] { display: none; }
.site-menu { order: 2; }
.burger { order: 4; }
@media (max-width: 860px) {
    .header-actions { margin-left: auto; }
}

/* ------------------------------------------------------------------ избранное: сердечко */
.fav-btn {
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgb(255 255 255 / 92%); color: var(--plum); box-shadow: 0 2px 8px rgb(86 56 94 / 14%);
    transition: transform .2s, color .2s;
}
.fav-btn .icon { width: 20px; height: 20px; }
.fav-btn:hover { transform: scale(1.08); color: var(--wine); }
.fav-btn[aria-pressed="true"] { color: var(--wine); --icon-fill: currentColor; }
.fav-btn.is-pop { animation: fav-pop .35s ease-out; }
@keyframes fav-pop { 40% { transform: scale(1.25); } }
.fav-btn--large { width: 48px; height: 48px; flex: none; background: var(--blush); box-shadow: none; }
.fav-btn--large .icon { width: 24px; height: 24px; }
/* «избранное» в карточке товара — просто сердечко рядом с ценой */
.fav-btn--plain { width: 34px; height: 34px; background: none; box-shadow: none; }
.fav-btn--plain .icon { width: 22px; height: 22px; }
.fav-btn--plain:hover { background: var(--blush); transform: none; }
.product__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* ------------------------------------------------------------------ кнопка покупки в варианте */
.offer__buy { margin-top: 12px !important; }
.offer__buy.is-added { background: #fff; color: var(--plum); border-color: var(--plum); }
.offer__buy.is-added .icon { --icon-fill: none; }

/* ------------------------------------------------------------------ уведомление */
.toast {
    position: fixed; z-index: 90; left: 50%; bottom: 24px; translate: -50% 140%;
    display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px);
    padding: 14px 20px; border-radius: 999px; background: var(--plum-dark); color: #fff;
    box-shadow: 0 10px 30px rgb(59 36 65 / 30%); font-size: .95rem;
    transition: translate .3s ease;
}
.toast.is-visible { translate: -50% 0; }
.toast a { color: var(--rose); font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------------ служебные страницы */
.page { padding-bottom: clamp(48px, 8vw, 96px); }
.page__title { margin: 8px 0 28px; }
.empty-state {
    max-width: 520px; margin: 24px auto; padding: clamp(28px, 5vw, 48px); text-align: center;
    background: #fff; border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow);
    display: grid; justify-items: center; gap: 4px;
}
.empty-state h2 { margin: 12px 0 4px; }
.empty-state p { color: var(--ink-soft); }
.empty-state .btn { margin-top: 8px; }
.empty-state--success .icon-badge { color: var(--success); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); background: #fbf1e6; color: #7a4a12; border-left: 3px solid #e2a35a; margin: 0 0 16px; }

/* ------------------------------------------------------------------ корзина */
.cart__layout { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 960px) {
    .cart__layout { grid-template-columns: minmax(0, 1fr) 420px; }
    .cart__checkout { position: sticky; top: calc(var(--header-h) + 16px); }
}
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line {
    display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: start;
    padding: 14px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
}
.cart-line__media img { width: 96px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); background: var(--blush); }
.cart-line__kind { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: var(--wine); text-transform: uppercase; }
.cart-line__name { display: block; font: 500 1.3rem/1.2 var(--serif); text-decoration: none; margin: 2px 0 4px; }
.cart-line__note { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.cart-line__controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-line__price { text-align: right; white-space: nowrap; }
.cart-line__price strong { display: block; font-size: 1.1rem; }
.cart-line__price small { color: var(--muted); }
@media (max-width: 560px) {
    .cart-line { grid-template-columns: 72px 1fr; }
    .cart-line__media img { width: 72px; height: 90px; }
    .cart-line__price { grid-column: 2; text-align: left; }
}
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; border-radius: 50%; color: var(--plum); }
.stepper button:hover:not(:disabled) { background: var(--blush); }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper output { min-width: 24px; text-align: center; font-weight: 600; }
.link-button { border: 0; background: none; padding: 4px 0; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--wine); }

/* ------------------------------------------------------------------ оформление */
.checkout {
    display: grid; gap: 16px; padding: clamp(20px, 3vw, 28px);
    background: #fff; border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow);
}
.checkout__sum { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: .95rem; color: var(--ink-soft); }
.checkout__sum dd { margin: 0; text-align: right; color: var(--ink); }
.checkout__total { padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.checkout__total strong { font-size: 1.6rem; }
.checkout fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.checkout legend { padding: 0; margin-bottom: 4px; font: 500 1.35rem/1.2 var(--serif); grid-column: 1 / -1; }
.field { display: grid; gap: 4px; grid-column: span 2; }
@media (min-width: 480px) { .checkout fieldset .field:not(.field--wide) { grid-column: span 1; } }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--ink-soft); }
.field label span { color: var(--wine); }
.field input, .field textarea, .field select {
    width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgb(86 56 94 / 12%); background: #fff; }
.has-error input, .has-error textarea { border-color: #b3261e; }
.field__error { margin: 0; color: #b3261e; font-size: .82rem; }
.field__hint { margin: 0; color: var(--muted); font-size: .8rem; }
.choices { display: grid; gap: 8px; }
.choice {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.choice:has(input:checked) { border-color: var(--plum); background: var(--blush); }
.choice input { accent-color: var(--plum); }
.choice small { margin-left: auto; color: var(--muted); }
.consent { display: grid; gap: 8px; }
.consent .notice { margin: 0 !important; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--plum); flex: none; }
.checkout__payment { margin: 0; display: flex; gap: 10px; font-size: .88rem; color: var(--ink-soft); padding: 12px 14px; background: var(--blush); border-radius: var(--radius-sm); }
.checkout__payment .icon { color: var(--wine); margin-top: 1px; }
.checkout__submit { width: 100%; }
.checkout__submit:disabled { opacity: .7; cursor: progress; }
.cart-contacts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ информационные страницы */
.narrow { max-width: 820px; }
.split--top { align-items: start; }
.cards { display: grid; gap: clamp(16px, 2.5vw, 24px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info-card {
    display: grid; gap: 8px; align-content: start; justify-items: start; padding: clamp(20px, 3vw, 28px);
    background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.25);
    text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rose); color: inherit; }
.info-card h2, .info-card h3 { font-size: 1.5rem; margin: 6px 0 0; }
.info-card p { margin: 0; color: var(--ink-soft); }
.info-card__value { font-weight: 600; color: var(--ink) !important; font-size: 1.1rem; }
.info-card__meta { display: inline-flex; gap: 8px; align-items: center; margin-top: 6px !important; font-weight: 600; color: var(--plum) !important; }
.info-card .link-arrow { margin-top: 8px; color: var(--plum); }

.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: process; }
.process__step { position: relative; counter-increment: process; padding: 24px; background: rgb(255 255 255 / 70%); border-radius: var(--radius); }
.process__step::after {
    content: counter(process, decimal-leading-zero); position: absolute; top: 18px; right: 20px;
    font: 500 2.4rem/1 var(--serif); color: var(--rose);
}
.process__step h3 { margin: 16px 0 6px; }
.process__step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.section:not(.section--blush) .process__step { background: #fff; border: 1px solid var(--line); }

.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--success); margin-top: 3px; }

.legal { padding: clamp(20px, 3vw, 28px); background: var(--blush); border-radius: var(--radius); }
.legal h2 { font-size: 1.6rem; }
.legal .specs { margin: 0; font-size: .9rem; }
.legal-text h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal-text ul { padding-left: 1.2em; }
.legal-text li { margin-bottom: .4em; }

.price-table { margin-top: clamp(32px, 5vw, 48px); max-width: 560px; }
.price-table table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.price-table th, .price-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.price-table td { text-align: right; font-weight: 600; white-space: nowrap; }
.notes { margin-top: clamp(32px, 5vw, 48px); }
.steps--page { margin-top: 0; }
.steps--page li:not(:last-child)::after { top: 56px; }

.info-nav { padding-block: clamp(32px, 5vw, 56px); }
.info-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.info-nav__list a {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 999px;
    background: #fff; text-decoration: none; font-weight: 500; transition: box-shadow .2s, color .2s;
}
.info-nav__list a:hover { box-shadow: var(--shadow); color: var(--plum); }
.info-nav__list .icon-badge { width: 40px; height: 40px; }
.info-nav__list .icon-badge .icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ мастер-классы */
.mc-grid { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mc-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: calc(var(--radius) * 1.25); overflow: hidden; box-shadow: 0 1px 2px rgb(86 56 94 / 6%); transition: box-shadow .25s; }
.mc-card:hover { box-shadow: var(--shadow); }
.mc-card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--blush); overflow: hidden; }
.mc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mc-card:hover .mc-card__media img { transform: scale(1.04); }
.mc-card__media .badge { position: absolute; left: 12px; top: 12px; }
.mc-card__body { padding: 16px 18px 18px; display: grid; gap: 10px; align-content: start; }
.mc-card h3 { margin: 0; font-size: 1.4rem; }
.mc-card h3 a { text-decoration: none; }
.mc-card__offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mc-card__offers li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding-top: 6px; border-top: 1px solid var(--line); font-size: .92rem; }
.mc-card__offers span { color: var(--ink-soft); }
.mc-card__note { margin: 0; display: flex; gap: 6px; font-size: .8rem; color: var(--muted); }
.icon-btn {
    display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--plum); border-radius: 50%;
    background: #fff; color: var(--plum); cursor: pointer; transition: background .2s, color .2s;
}
.icon-btn:hover, .icon-btn.is-added { background: var(--plum); color: #fff; }
.icon-btn .icon { width: 18px; height: 18px; }

/* урок и набор: подсказки и комплект */
.offer__desc { color: var(--ink-soft); }
.offer__cross { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 500; color: var(--plum); margin: 4px 0 0; }
.offer--bundle { border-color: var(--plum); background: linear-gradient(135deg, var(--blush) 0%, #fff 70%); }
.offer--bundle .price s { margin-left: 8px; font-size: .85em; color: var(--muted); font-weight: 400; }
.mc-card__bundle { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--plum); }
.cart-line__suggest { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: -4px 0 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--blush); font-size: .85rem; }
.cart-line__suggest .icon { color: var(--plum); }
.cart-line__suggest strong { color: var(--wine); }
.cart-line__suggest .link-button { color: var(--plum); font-weight: 600; }
.checkout__sum .is-discount { color: var(--success); }

/* акции */
.price s { margin-left: 8px; font-size: .8em; font-weight: 400; color: var(--muted); }
.price--sale { color: var(--wine); }
.badge--sale { background: var(--wine); color: #fff; font-weight: 600; }
.sale-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #f6e3e6; color: var(--wine); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.sale-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 !important; font-size: .88rem !important; color: var(--ink-soft); }
.sale-note .icon { width: 16px; height: 16px; color: var(--wine); }
.cart-line__old { display: block; color: var(--muted); font-size: .85rem; }
.cart-line__price .sale-badge { margin-top: 4px; }

/* ------------------------------------------------------------------ статьи */
.article-grid { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-tile a { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.article-tile__media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--blush); display: grid; place-items: center; }
.article-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-tile a:hover img { transform: scale(1.03); }
.article-tile__placeholder .icon { width: 48px; height: 48px; color: var(--rose-ink); }
.article-tile__meta { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.article-tile h3 { margin: 0; font: 500 1.45rem/1.2 var(--serif); }
.article-tile a:hover h3 { color: var(--wine); }
.article-tile__lead { margin: 0; color: var(--ink-soft); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.article { padding-bottom: clamp(32px, 6vw, 64px); }
.article__head { max-width: 780px; padding-top: 8px; }
.article__head h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.08; margin: 8px 0 12px; }
.article__meta { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.article__lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 24px; }
.article__cover { max-width: 1000px; margin: 0 auto 32px; }
.article__cover img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.article__body { max-width: 780px; }
.article__toc { background: var(--blush); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.article__toc p { margin: 0 0 6px; font-weight: 600; }
.article__toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.article__toc a { color: var(--plum); }

.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
/* :where — чтобы отступ между абзацами не перебивался обнулением полей */
.prose :where(p, ul, ol, figure, blockquote) { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 1.8em 0 .4em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font: 600 1.2rem/1.3 var(--sans); margin: 1.5em 0 .3em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .35em; }
.prose li::marker { color: var(--wine); }
.prose hr { border: 0; height: 1px; margin: 2.2em auto; width: 40%; background: linear-gradient(90deg, transparent, var(--rose-ink), transparent); }
.prose a { color: var(--plum); text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--rose-ink); background: var(--blush); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }

.article-photo { margin: 1.6em 0; }
.article-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; background: var(--blush); }
.article-photo figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); text-align: center; }
.preview-bar { position: sticky; top: var(--header-h); z-index: 50; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px 16px; background: #fdf0dc; color: #6b4300; font-size: .9rem; text-align: center; }
.preview-bar .icon { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ вход и кабинет */
.auth { padding-block: clamp(32px, 6vw, 72px); }
.auth__card { max-width: 460px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 40px); display: grid; gap: 14px; }
.auth__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; color: var(--plum); justify-self: start; }
.auth__icon .icon { width: 26px; height: 26px; }
.auth__card h1 { margin: 0; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); }
.auth__lead { margin: 0; color: var(--ink-soft); }
.auth__form { display: grid; gap: 14px; }
.auth__form .field { grid-column: auto; }
.auth__form input[type="email"], .auth__form input[type="password"], .auth__form input[type="text"] { width: 100%; }
.auth__submit { width: 100%; margin-top: 4px; }
.auth__switch { text-align: center; margin: 18px 0 0; color: var(--ink-soft); }
.auth__switch a, .auth__form a, .auth__lead a { color: var(--plum); font-weight: 500; }
.auth__flash { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
.auth__flash--error { background: #fdecea; color: #8c1d16; }
.auth__flash--success { background: #e3f3eb; color: #1f5c41; }
.auth__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--ink-soft); font-size: .92rem; }
.auth__perks li { display: flex; gap: 8px; align-items: center; }
.auth__perks .icon { width: 18px; height: 18px; color: var(--wine); flex: none; }
.choice--plain { border: 0 !important; padding: 0 !important; background: none !important; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.choice--plain input { margin-top: 3px; }
.field.has-error input { border-color: #b3261e; }
.header-action { position: relative; }
.header-action__dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px #fff; }

.account__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account__head h1 { margin: 0 0 6px; font-size: clamp(2.2rem, 1.7rem + 2vw, 3.2rem); }
.account__email { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--ink-soft); }
.account__email .icon { width: 18px; height: 18px; }
.account__verify { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; margin-bottom: 24px; }
.account__verify p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.account__verify .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--wine); }
.account__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.account__tile { display: grid; gap: 6px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); color: inherit; text-decoration: none; }
a.account__tile:hover { border-color: var(--plum); }
.account__tile .icon { width: 26px; height: 26px; color: var(--plum); }
.account__tile strong { font-size: 1.05rem; }
.account__tile span { color: var(--muted); font-size: .9rem; }
.field--check input, .choice--plain input { width: auto !important; min-height: 0 !important; padding: 0; flex: none; }

/* кабинет: разделы (React) */
.account__app { margin-top: 8px; }
.account__loading { color: var(--muted); }
.account__tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.account__tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.account__tab .icon { width: 18px; height: 18px; }
.account__tab:hover { color: var(--plum); }
.account__tab.is-active { color: var(--plum); border-bottom-color: var(--plum); }
.account__empty { padding: 28px; border-radius: var(--radius); background: var(--blush); display: grid; gap: 14px; justify-items: start; color: var(--ink-soft); }
.account__empty p { margin: 0; }
.account-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 860px; }
.account-orders a { display: grid; gap: 4px; padding: 16px 20px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); color: inherit; text-decoration: none; }
.account-orders a:hover { border-color: var(--plum); }
.account-orders__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.account-orders__meta { color: var(--ink-soft); font-size: .92rem; }
.account-orders__titles { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eee9eb; color: var(--ink-soft); }
.order-status--0 { background: #fdf0dc; color: #7a4a00; }
.order-status--1, .order-status--2, .order-status--5 { background: #efe6f2; color: var(--plum); }
.order-status--3 { background: #e3f3eb; color: #1f5c41; }
.account-order { max-width: 860px; display: grid; gap: 16px; }
.account-order header h2 { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.account-order header p { margin: 4px 0 0; }
.account-order__lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.account-order__lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-order__lines li.is-discount { color: var(--success); }
.account-order__thumb { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--blush); display: grid; place-items: center; color: var(--plum); }
.account-order__thumb img { width: 100%; height: 100%; object-fit: cover; }
.account-order__thumb .icon { width: 22px; height: 22px; }
.account-order__title a { color: inherit; }
.account-order__lesson { display: inline-flex; gap: 4px; align-items: center; margin-left: 10px; font-size: .88rem; color: var(--plum) !important; font-weight: 600; }
.account-order__lesson .icon { width: 15px; height: 15px; }
.account-order__sum { font-weight: 600; white-space: nowrap; }
.account-order__totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; margin: 0; justify-self: end; min-width: 260px; }
.account-order__totals dt { color: var(--ink-soft); }
.account-order__totals dd { margin: 0; text-align: right; }
.account-order__totals .is-total { font-size: 1.2rem; font-weight: 700; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line); }
.account-order__delivery { padding: 16px 20px; border-radius: var(--radius); background: var(--blush); }
.account-order__delivery h3 { margin: 0 0 6px; font: 600 1rem var(--sans); display: flex; gap: 8px; align-items: center; }
.account-order__delivery .icon { width: 18px; height: 18px; color: var(--plum); }
.account-order__delivery p { margin: 0; }
.account-lessons { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.account-lesson-tile { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.account-lesson-tile__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--blush); display: grid; place-items: center; }
.account-lesson-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.account-lesson-tile:hover img { transform: scale(1.03); }
.account-lesson-tile__format { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--plum); font-weight: 600; }
.account-lesson-tile__format .icon { width: 16px; height: 16px; }
.account-lesson-tile strong { font: 500 1.3rem/1.2 var(--serif); }
.account-lesson { max-width: 780px; }
.account-lesson h2 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); margin: 8px 0 10px; }
.account-lesson__lead { font-size: 1.15rem; color: var(--ink-soft); }
.account-lesson .notice { display: flex; gap: 10px; align-items: center; }
.account-lesson .notice .icon { width: 20px; height: 20px; flex: none; color: var(--wine); }
.account-lesson__kit { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 16px 20px; border-radius: var(--radius); background: var(--blush); }
.account-lesson__kit .icon { width: 22px; height: 22px; color: var(--plum); }
.account-profile { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 1000px; }
@media (min-width: 900px) { .account-profile { grid-template-columns: 3fr 2fr; align-items: start; } }
.account-card { display: grid; gap: 14px; padding: clamp(20px, 4vw, 28px); border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); }
.account-card h2 { margin: 0; font: 600 1.15rem var(--sans); display: flex; gap: 8px; align-items: center; }
.account-card h2 .icon { width: 20px; height: 20px; color: var(--plum); }
.account-card > .muted { margin: -6px 0 0; }
.account-card select { width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.account-card input:disabled { color: var(--ink-soft); background: #f4eff1; }
.account-profile__row { display: grid; gap: 14px; grid-template-columns: 2fr 1fr; }
.account-card__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.account-status { font-size: .92rem; color: var(--success); }
.account-status--error { color: #b3261e; }
.account-card .field, .account-profile__row .field { grid-column: auto; }
.order-status { font-family: var(--sans); vertical-align: middle; letter-spacing: 0; }
.account-order__totals { column-gap: 0; }
.account-order__totals dt { padding-right: 32px; }
.auth__oauth { max-width: 460px; margin: 18px auto 0; display: grid; gap: 10px; }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: .88rem; }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth__provider { width: 100%; justify-content: center; gap: 10px; background: #fff; }
.auth__provider .icon { width: 20px; height: 20px; }

/* Защищённый плеер урока: знак «dizani.ru · email» плавает поверх видео */
.lesson-video { margin: 20px 0 28px; }
.lesson-video__box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1b1418; }
.lesson-video__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-video__mark {
    position: absolute; z-index: 2; pointer-events: none; user-select: none; white-space: nowrap;
    padding: 3px 8px; border-radius: 4px; font: 600 clamp(.72rem, .6rem + .5vw, .95rem)/1.3 var(--sans, sans-serif);
    color: rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .18); text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
    transition: left 1.2s ease, top 1.2s ease;
}
.lesson-video__full {
    position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; place-items: center;
    width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
    color: #fff; background: rgba(0, 0, 0, .45); opacity: .8; transition: opacity .2s;
}
.lesson-video__full:hover, .lesson-video__full:focus-visible { opacity: 1; }
.lesson-video__full .icon { width: 20px; height: 20px; }
.lesson-video__box:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.lesson-video__box:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.lesson-video__box.is-full { position: fixed; inset: 0; z-index: 1000; aspect-ratio: auto; border-radius: 0; }
.has-video-overlay, .has-video-overlay body { overflow: hidden; }
.lesson-video figcaption { margin-top: 8px; font-size: .88rem; }

/* Фрагмент урока: кнопка в карточке и окно с плеером */
.offer__actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.offer__actions .btn { margin-top: 0 !important; }
.mc-card__preview { display: inline-flex; gap: 6px; align-items: center; color: var(--plum); font-weight: 600; }
.mc-card__preview .icon { width: 16px; height: 16px; }
.preview-dialog { width: min(960px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--radius); background: #1b1418; color: #fff; }
.preview-dialog::backdrop { background: rgba(20, 12, 18, .72); }
.preview-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; font: 500 1.05rem/1.3 var(--serif); }
.preview-dialog__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.preview-dialog__close .icon { width: 20px; height: 20px; }
.preview-dialog__frame { aspect-ratio: 16 / 9; }
.preview-dialog__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.account-lesson__pdf { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .9rem; }

.field select:disabled { opacity: 1; color: var(--ink-soft); background-color: var(--blush); cursor: default; }

/* Таблицы в статьях и уроках */
.prose .table-wrap { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--blush); font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }

/* Офлайн-занятия: список на «Мастер-классах» и страница занятия */
.ws-list { display: grid; gap: 14px; }
.ws-list { --ws-bg: var(--paper); } /* цвет фона под «вырезами» билета */
/* карточка — «билет»: дата слева отделена пунктиром с полукруглыми вырезами */
.ws-card {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center;
    background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgb(86 56 94 / 6%);
}
.ws-card__date {
    position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 18px 10px; border-right: 2px dashed var(--blush-deep); color: var(--plum); text-decoration: none; line-height: 1.1;
}
.ws-card__date::before, .ws-card__date::after {
    content: ""; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--ws-bg);
}
.ws-card__date::before { top: -8px; }
.ws-card__date::after { bottom: -8px; }
.ws-card__day { font: 500 2.4rem/1 var(--serif); }
.ws-card__month, .ws-card__time { display: inline; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.ws-card__when { margin-top: 4px; white-space: nowrap; }
.ws-card__body { min-width: 0; overflow-wrap: anywhere; padding: 16px 24px; }
.ws-card > .btn { margin-right: 24px; }
.ws-card h3 { margin: 0 0 4px; font: 500 1.3rem/1.2 var(--serif); }
.ws-card h3 a { color: inherit; text-decoration: none; }
.ws-card p { margin: 0; }
.ws-card__meta { margin-top: 6px !important; font-size: .92rem; }
@media (max-width: 640px) {
    .ws-card { grid-template-columns: 92px minmax(0, 1fr); }
    .ws-card__date { padding: 14px 6px; }
    .ws-card__day { font-size: 2rem; }
    .ws-card__when { display: grid; white-space: normal; text-align: center; }
    .ws-card__dot { display: none; }
    .ws-card__body { padding: 14px 16px; }
    .ws-card > .btn { grid-column: 2; justify-self: start; margin: 0 16px 14px; }
}
.workshop { padding-bottom: 64px; }
.workshop__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .workshop__grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); align-items: start; } .workshop__side { position: sticky; top: 90px; } }
.workshop__main h1 { margin: 6px 0 16px; }
.workshop__facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.workshop__facts li { display: flex; gap: 12px; align-items: flex-start; }
.workshop__facts .icon { width: 22px; height: 22px; flex: none; color: var(--plum); margin-top: 2px; }
.workshop__photo { width: 100%; max-width: 520px; height: auto; border-radius: var(--radius); margin: 0 0 22px; }
.catalog-text { max-width: 760px; }
.section__lead { margin: 10px 0 0; max-width: 62ch; font-size: 1.05rem; }
.ws-perks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.ws-perks li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-soft); }
.ws-perks .icon { width: 18px; height: 18px; color: var(--rose-ink); }
/* блок занятий на главной: заголовок по центру, «Всё расписание» внизу */
.ws-home__head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.ws-home__head .section__lead { margin-inline: auto; }
.ws-home__all { margin: 20px 0 0; text-align: center; }
.workshop__how { margin-top: 2em; }
/* способ оплаты занятия: в карточке и на странице; предоплата — заметнее */
.ws-pay { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 !important; font-size: .85rem; color: var(--ink-soft); }
.ws-pay .icon { width: 16px; height: 16px; color: var(--rose-ink); }
.ws-pay--prepay { color: #b3263e; font-weight: 600; }
.ws-pay--prepay .icon { color: currentColor; }
.workshop__rules { font-size: .92rem; color: var(--ink-soft); }
/* галочка «оплачу в течение суток» — красная, чтобы не пропустили */
.prepay-agree .choice { color: #b3263e; font-weight: 600; }
.prepay-agree input[type="checkbox"] { accent-color: #b3263e; outline: 1.5px solid #b3263e; outline-offset: 1px; }
.workshop__steps { padding-left: 20px; display: grid; gap: 8px; }
.workshop__card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 30px); display: grid; gap: 14px; }
.workshop__price { margin: 0; font: 600 1.6rem/1.2 var(--sans, inherit); }
.workshop__price .muted { font-size: .9rem; font-weight: 400; }
.workshop__seats { margin: 0; }
.workshop__ok { display: inline-flex; gap: 6px; align-items: center; color: #1f5c41; font-weight: 600; }
.workshop__ok .icon { width: 16px; height: 16px; }
.workshop__form-title { margin: 6px 0 0; font-size: 1.3rem; }
