/* ==========================================================================
   Fabrico — зеркало магазина.
   Элементы и движение — по системе сайта «Ярослав аэро» (жидкое стекло, капсулы,
   тонкие линии, закрепленные сцены). Цвета и шрифт — фирменные Fabrico
   (глобальные настройки Elementor: Primary #518E94, Secondary #2C2738, Poppins).
   ========================================================================== */

:root {
  --cream: #f0edde;
  --paper: #faf8f1;
  --ink: #2c2738;
  --ink-2: #5b5666;
  --ink-3: #7d7886;
  --line: rgba(44, 39, 56, .12);
  --line-2: rgba(44, 39, 56, .2);
  --teal: #518e94;
  --teal-ink: #3b6c71;
  --mint: #b4d1d4;
  --rose: #945162;
  --pink: #e2bfc0;
  --peach: #e4c9b8;
  --sage: #9ec1a4;
  --greeny: #d8d8bc;
  --on-dark: #f3f0e6;
  --on-dark-2: #c9c3cf;
  --dark-line: rgba(243, 240, 230, .16);

  --f: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 104px;
  --sec: clamp(56px, 6vw, 88px);
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: var(--header-h); scrollbar-color: #b9b3a3 var(--cream); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.65 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button, a, label { touch-action: manipulation; }
button, .btn { -webkit-user-select: none; user-select: none; }
input, select, textarea { font: inherit; font-size: 16px; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 1px solid var(--teal); outline-offset: 4px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #c4bead; border: 3px solid var(--cream); border-radius: 10px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.h2 { font: 300 clamp(32px, 3.9vw, 54px)/1.08 var(--f); letter-spacing: -.035em; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 34em; }
.fine { font-size: 13px; color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Подложка: мягкие пятна фирменных цветов под листом матового стекла ---------- */
.bg-scene, .bg-glass { position: fixed; inset: 0; pointer-events: none; }
.bg-scene { z-index: -2; overflow: hidden; background: var(--cream); }
.bg-scene i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.bg-scene .b1 { left: -22vmax; top: -26vmax; background: radial-gradient(circle, rgba(228,201,184,.95), transparent 62%); animation: drift1 38s ease-in-out infinite alternate; }
.bg-scene .b2 { right: -26vmax; top: 8vh; background: radial-gradient(circle, rgba(180,209,212,.95), transparent 62%); animation: drift2 46s ease-in-out infinite alternate; }
.bg-scene .b3 { left: 6vw; bottom: -38vmax; background: radial-gradient(circle, rgba(158,193,164,.7), transparent 60%); animation: drift3 52s ease-in-out infinite alternate; }
.bg-scene .b4 { right: -12vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(226,191,192,.9), transparent 60%); opacity: 0; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, 18vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(14vw, -16vh) scale(1.2); } }
.bg-glass { z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .15 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, rgba(255,255,255,.35), transparent 30%, transparent 70%, rgba(255,255,255,.2)),
    rgba(244, 241, 230, .42);
  -webkit-backdrop-filter: blur(48px) saturate(1.3); backdrop-filter: blur(48px) saturate(1.3); }

/* ---------- Жидкое стекло (светлое): слой стекла — псевдоэлемент,
   чтобы backdrop-filter не делал блок контейнером для position: fixed ---------- */
.glass { position: relative; isolation: isolate; }
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.38) 45%, rgba(255,255,255,.5));
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.45), 0 18px 40px -22px rgba(44,39,56,.35); }
.glass::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,.5), transparent 55%); mix-blend-mode: soft-light; }
/* Темное стекло — белый текст поверх фото */
.glass--dark { color: #fff; }
.glass--dark::before { background: linear-gradient(160deg, rgba(44,39,56,.62), rgba(44,39,56,.44) 50%, rgba(44,39,56,.56));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.1), 0 18px 40px -18px rgba(0,0,0,.45); }
.glass--dark::after { background: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,.18), transparent 55%); }
/* Матовое — шапка: сильное размытие, ровный тон, легкое зерно, без бликов */
.glass--matte::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .15 0 0 0 0 .22 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    rgba(250, 248, 241, .7);
  -webkit-backdrop-filter: blur(30px) saturate(1.2); backdrop-filter: blur(30px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 12px 32px -18px rgba(44,39,56,.35); }
.glass--matte::after { display: none; }

/* ---------- Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 500 15px/1 var(--f); white-space: nowrap; transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--teal); box-shadow: 0 10px 28px -10px rgba(81,142,148,.7); transform: translateY(-1px); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mint); }
.btn--outline { color: var(--ink); }
.btn--outline:hover::before { background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.7)); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--f); padding: 8px 0; position: relative; cursor: pointer; }
.link::after { content: ""; position: absolute; left: 0; right: 28px; bottom: 0; height: 1px; background: currentColor; opacity: .35; transition: opacity .5s; }
.link:hover::after { opacity: 1; }
.link svg { width: 18px; height: 18px; transition: transform .8s var(--ease); }
.link:hover svg { transform: translateX(5px); }

/* ---------- Шапка: плавающая капсула матового стекла ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px var(--gutter) 0; transition: transform .8s var(--ease); }
.header-in { height: 86px; display: flex; align-items: center; gap: 32px; max-width: calc(var(--wrap) - 2 * var(--gutter) + 40px); margin: 0 auto; padding: 0 10px 0 28px; border-radius: 999px; }
.header.is-hidden { transform: translateY(-130%); }
.menu-open .header { transform: none; }
.logo { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 10px; }
.logo img { height: 68px; width: auto; }
.header .logo img { filter: drop-shadow(0 2px 6px rgba(44,39,56,.12)); }
.logo span { font: 500 17px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; gap: 2px; margin: 0 auto; font-size: 18px; }
.nav > a { position: relative; z-index: 1; padding: 12px 19px; border-radius: 999px; opacity: .8; transition: opacity .3s; }
.nav > a:hover, .nav > a:focus-visible, .nav > a[aria-current="page"] { opacity: 1; }
.nav-foot, .nav-cta { display: none; }
@media (min-width: 961px) { .nav { position: relative; } }
.nav-pill { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; opacity: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.6));
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px -6px rgba(44,39,56,.25);
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .35s; }
.nav-pill.is-on { opacity: 1; }
.header-tools { display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; }
.icon-btn { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: background .4s; }
.icon-btn:hover { background: rgba(255,255,255,.75); }
.icon-btn svg { width: 26px; height: 26px; }
.header-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 500; transition: background .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.header-cta svg { width: 23px; height: 23px; }
.header-cta:hover { background: var(--teal); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(81,142,148,.7); }
.burger { display: none; }

/* ---------- Первый экран ---------- */
.hero { padding: calc(var(--header-h) + 40px) 0 calc(var(--sec) * .6); }
.anim .hero-copy { visibility: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font: 300 clamp(44px, 5.4vw, 84px)/1 var(--f); letter-spacing: -.05em; }
.hero-title b { font-weight: 500; color: var(--teal-ink); }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; }
.hero-lead { margin-top: 28px; max-width: 30em; color: var(--ink-2); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats li { padding: 12px 18px 12px 16px; border-radius: 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.hero-stats b { display: block; font: 300 25px/1.15 var(--f); letter-spacing: -.03em; color: var(--ink); margin-bottom: 2px; }
.hero-media { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero-frame { position: relative; aspect-ratio: 4 / 5; max-height: min(74svh, 660px); margin-left: auto; overflow: hidden; border-radius: 28px; background: var(--peach); clip-path: inset(var(--fi-t, 0px) var(--fi-x, 0px) var(--fi-b, 0px) var(--fi-x, 0px) round var(--fr, 28px)); }
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero-card { position: absolute; left: -36px; bottom: 32px; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 20px; max-width: 300px; }
.hero-card img { width: 52px; height: 64px; object-fit: cover; border-radius: 12px; }
.hero-card small { display: block; font-size: 12px; color: var(--ink-3); }
.hero-card b { font-weight: 500; font-size: 14px; line-height: 1.3; }

/* ---------- Сцена «от выкройки до вещи»: снимок слева, пункты сменяются справа ---------- */
.chapters-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.chapters-media { position: sticky; top: 0; height: 100svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 60%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.cm { position: absolute; inset: 0; overflow: hidden; }
.cm img { width: 100%; height: 100%; object-fit: cover; }
.cm + .cm { clip-path: inset(100% 0 0 0); }
.chapters-text { justify-self: center; width: 100%; max-width: 620px; padding: calc(var(--sec) + 40px) var(--gutter) var(--sec); }
.chapters-lead { margin: 20px 0 14vh; }
.chapter { min-height: 62vh; padding-top: 24px; border-top: 1px solid var(--line-2); }
.chapter:last-child { min-height: 0; }
.chapter-img { display: none; margin: 0 0 20px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; }
.chapter-img img { width: 100%; height: 100%; object-fit: cover; }
.chapter-when { font-size: 13px; font-weight: 500; color: var(--teal-ink); margin-bottom: 14px; }
.chapter h3 { font: 300 clamp(28px, 2.8vw, 40px)/1.12 var(--f); letter-spacing: -.035em; margin-bottom: 14px; }
.chapter p { color: var(--ink-2); font-size: 17px; max-width: 28em; }
.ch-dots { display: none; }
@media (min-width: 961px) {
  .anim .chapters-grid { height: 100svh; }
  .anim .chapters-media { position: relative; top: auto; }
  .anim .chapters-text { position: relative; display: grid; place-items: center; height: 100svh; max-width: none; padding: 0 clamp(32px, 5vw, 88px); }
  .anim .ch-slide { grid-area: 1 / 1; width: 100%; max-width: 560px; min-height: 0; margin: 0; padding: 0; border: 0; text-align: center; }
  .anim .ch-slide + .ch-slide { opacity: 0; visibility: hidden; }
  .anim .ch-slide p { margin-left: auto; margin-right: auto; }
  .anim .chapters-lead { margin-bottom: 0; }
  .anim .chapter h3 { font-size: clamp(40px, 4.2vw, 64px); }
  .anim .chapter p, .anim .chapters-lead { font-size: 19px; }
  .anim .chapters-text .h2 { font-size: clamp(40px, 4.4vw, 66px); }
  .anim .chapter-img { display: none; }
  .anim .ch-dots { display: flex; gap: 8px; position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 2; }
  .ch-dots i { width: 28px; height: 2px; border-radius: 2px; background: var(--line-2); transition: background .4s; }
  .ch-dots i.is-on { background: var(--teal); }
}

/* ---------- Категории: ровная сетка, подписи на снимках ---------- */
.section { padding: calc(var(--sec) * .5) 0 calc(var(--sec) * .25); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-head .lead { margin-top: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gi { position: relative; display: block; margin: 0; aspect-ratio: 5 / 6; overflow: hidden; border-radius: 20px; background: var(--peach); }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gi:hover img { transform: scale(1.05); }
.gi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(44,39,56,.72), transparent 46%); pointer-events: none; }
.gi figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-size: 13px; color: rgba(255,255,255,.8); display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.gi figcaption b { display: block; font: 400 20px/1.2 var(--f); letter-spacing: -.02em; color: #fff; }
.gi figcaption svg { width: 22px; height: 22px; color: #fff; flex: none; transition: transform .8s var(--ease); }
.gi:hover figcaption svg { transform: translateX(5px); }

/* ---------- Карточка товара ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.5); box-shadow: 0 16px 36px -26px rgba(44,39,56,.45); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.card-img img + img { opacity: 0; }
.card:hover .card-img img { transform: scale(1.04); }
.card:hover .card-img img + img { opacity: 1; }
.card-badge { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.card-badge--sale { background: var(--rose); color: #fff; }
.card-body { display: grid; gap: 2px; padding: 0 4px; }
.card-kind { font-size: 13px; color: var(--ink-3); }
.card-title { font: 400 19px/1.25 var(--f); letter-spacing: -.02em; transition: color .4s; }
.card:hover .card-title { color: var(--teal-ink); }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.card-price { font-weight: 500; color: var(--ink); white-space: nowrap; }
.card-price s { color: var(--ink-3); font-weight: 400; margin-right: 6px; }

/* Лента со стрелками и свайпом */
.rv-nav { display: flex; gap: 10px; flex: none; }
.rv-btn { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background .4s, color .4s, border-color .4s, opacity .4s; }
.rv-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rv-btn:disabled { opacity: .35; pointer-events: none; }
.rv-btn svg { width: 20px; height: 20px; }
.rail { --n: 5.3; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; padding: 4px 0 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: none; width: calc((100% - (var(--n) - 1) * 20px) / var(--n)); scroll-snap-align: start; }

/* ---------- Форматы покупки ---------- */
.plans { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; column-gap: clamp(32px, 5vw, 72px); }
.plan { padding: 26px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.plan--main { grid-row: 1 / 3; padding: 36px clamp(24px, 3vw, 44px); border-top: 0; border-radius: 28px; gap: 20px; }
.plan-top { display: grid; gap: 10px; }
.plan h3 { font: 300 clamp(26px, 2.4vw, 34px)/1.12 var(--f); letter-spacing: -.035em; }
.plan--main h3 { font-size: clamp(36px, 3.6vw, 52px); }
.plan-price { font: 300 30px/1 var(--f); letter-spacing: -.03em; white-space: nowrap; }
.plan--main .plan-price { font-size: clamp(36px, 3.2vw, 46px); }
.plan-price small { display: block; margin-top: 8px; font: 400 13px/1 var(--f); letter-spacing: 0; color: var(--ink-3); }
.plan-desc { color: var(--ink-2); max-width: 34em; }
.plan-specs { margin: 4px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.plan-specs dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.plan-specs dd { margin: 0; font-weight: 500; font-size: 15px; }
.plan--main .btn { align-self: flex-start; margin-top: auto; }
.plan .link { align-self: flex-start; color: var(--teal-ink); }

/* ---------- Оглавление (обучение) ---------- */
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { border-top: 1px solid var(--line-2); }
.toc li:last-child { border-bottom: 1px solid var(--line-2); }
.toc a { display: grid; grid-template-columns: 180px 1fr 24px; gap: 32px; align-items: baseline; padding: 20px 0; }
.toc .d { font-size: 13px; color: var(--ink-3); }
.toc .t { font: 300 clamp(22px, 2.2vw, 30px)/1.2 var(--f); letter-spacing: -.03em; transition: color .5s; }
.toc a:hover .t { color: var(--teal-ink); }
.toc .t small { display: block; margin-top: 8px; font: 400 15px/1.55 var(--f); color: var(--ink-3); letter-spacing: 0; }
.toc svg { width: 22px; height: 22px; align-self: center; transition: transform .8s var(--ease); }
.toc a:hover svg { transform: translateX(6px); }

/* ---------- Отзывы ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote { padding: 28px; border-radius: 24px; display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 15.5px; color: var(--ink-2); }
.quote footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.quote footer b { color: var(--ink); font-weight: 500; }
.stars { color: var(--rose); letter-spacing: 2px; font-size: 13px; }

/* ---------- Финал: кадр приближается, проявляется заголовок ---------- */
.final { position: relative; min-height: max(92svh, 640px); display: flex; align-items: flex-end; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.final-bg { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
.final-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink), rgba(44,39,56,.45) 38%, transparent 70%); }
.final-inner { position: relative; z-index: 2; padding-top: 180px; padding-bottom: calc(var(--sec) * 1.1); }
.final-title { font: 300 clamp(44px, 6.4vw, 100px)/.98 var(--f); letter-spacing: -.055em; margin-bottom: 36px; text-shadow: 0 2px 40px rgba(44,39,56,.35); }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final-cta .btn--outline { color: #fff; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); padding: 64px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer .logo img { height: 52px; filter: invert(1) brightness(1.6); }
.footer .logo span { color: #fff; }
.footer-about p { margin-top: 18px; max-width: 24em; }
.footer h4 { font: 500 13px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color .4s; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--dark-line); border-radius: 50%; transition: border-color .5s, color .5s; }
.social:hover { border-color: var(--mint); color: var(--mint) !important; }
.social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--dark-line); font-size: 13px; }

/* ---------- Плашка внизу справа ---------- */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 20px; border-radius: 999px;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.float-cta small { display: block; font-size: 12.5px; color: var(--ink-3); }
.float-cta .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ==========================================================================
   Внутренние страницы: каталог и товар
   ========================================================================== */
.page-head { padding: calc(var(--header-h) + 40px) 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-title { font: 300 clamp(40px, 5vw, 72px)/1.02 var(--f); letter-spacing: -.05em; }

/* Каталог: группы-капсулы, подкатегории, поиск, сортировка */
/* Категории — кнопки переносятся на новую строку (без прокрутки вбок: в прокручиваемой капсуле текст «уезжал») */
.shop-bar { margin-top: 22px; }
.shop-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { flex: none; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2); background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); transition: background .4s, color .4s; }
@media (hover: hover) { .chip:hover { color: var(--ink); background: rgba(255,255,255,.85); } }
.chip.is-on { background: var(--ink); color: #fff; }
.chip small { opacity: .6; margin-left: 4px; font-size: 12px; }
.subchips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14px; }
.subchips:empty { display: none; }
.subchips button { color: var(--ink-3); padding: 2px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.subchips button:hover { color: var(--ink); }
.subchips button.is-on { color: var(--ink); border-color: var(--teal); }
/* Фильтр по атрибутам (filters.js) */
.shop-tools--cat { justify-content: flex-start; margin-bottom: 4px; }
.grid > [hidden] { display: none !important; }
.flt { position: relative; }
.flt-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--ink); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); transition: background .3s, color .3s; }
.flt-btn svg { width: 18px; height: 18px; }
.flt-btn:hover, .flt-btn[aria-expanded="true"] { background: rgba(255,255,255,.9); }
.flt-btn.is-on { background: var(--ink); color: #fff; }
.flt-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--teal); color: #fff; font: 600 12px/20px var(--f); text-align: center; }
.flt-panel { position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; width: min(640px, calc(100vw - 2 * var(--gutter))); max-height: min(70vh, 640px); display: flex; flex-direction: column; border-radius: 24px; color: var(--ink); }
.flt-panel[hidden] { display: none; }
.flt-head { display: none; }
.flt-groups { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 6px; display: grid; gap: 16px; }
.flt-g { border: 0; padding: 0; margin: 0; min-width: 0; }
.flt-g legend { padding: 0; margin-bottom: 8px; font: 500 13px/1.2 var(--f); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.flt-vals { display: flex; flex-wrap: wrap; gap: 6px; }
.flt-v { min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(44,39,56,.08); transition: background .25s, color .25s; }
.flt-v:hover { color: var(--ink); background: #fff; }
.flt-v.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.flt-v small { margin-left: 5px; opacity: .55; font-size: 11.5px; }
.flt-none { color: var(--ink-3); font-size: 14px; }
.flt-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid rgba(44,39,56,.08); }
.flt-clear { font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.flt-clear:disabled { opacity: .35; text-decoration: none; cursor: default; }
.flt-done { min-height: 44px; padding: 0 22px; font-size: 14px; }
.flt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.flt-tags:empty { display: none; }
.flt-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; background: var(--ink); color: #fff; }
.flt-tag span { opacity: .7; font-size: 15px; line-height: 1; }
.flt-tag--clear { background: transparent; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  /* Телефон: панель снизу во весь экран, страница под ней не прокручивается */
  html.flt-open { overflow: hidden; }
  .flt-panel { position: fixed; inset: auto 0 0; top: auto; width: auto; max-height: 82vh; border-radius: 24px 24px 0 0; }
  .flt-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; font-size: 17px; }
  .flt-x { width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; background: rgba(255,255,255,.7); }
  .flt-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .flt-done { flex: 1; }
}
.shop-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0 22px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 10px; min-width: min(360px, 100%); border-bottom: 1px solid var(--line-2); transition: border-color .4s; }
.search:focus-within { border-color: var(--teal); }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { width: 100%; border: 0; background: transparent; padding: 10px 0; outline: none; }
.search input::placeholder { color: var(--ink-3); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.sort select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232c2738' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right center / 16px; padding: 6px 24px 6px 0; color: var(--ink); font-size: 14px; cursor: pointer; outline: none; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 18px; }
.empty { padding: 80px 0; text-align: center; color: var(--ink-3); }
.more { display: flex; justify-content: center; margin-top: 48px; }

/* Товар */
.pd { padding: calc(var(--header-h) + 32px) 0 calc(var(--sec) * .5); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 24px); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.pd-thumbs { display: grid; gap: 10px; align-content: start; max-height: min(78svh, 720px); overflow-y: auto; scrollbar-width: none; }
.pd-thumbs button { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; opacity: .55; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .4s, outline-color .4s; }
.pd-thumbs button.is-on { opacity: 1; outline-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-main { position: relative; aspect-ratio: 3 / 4; max-height: min(80svh, 780px); overflow: hidden; border-radius: 28px; background: #f6f4ee; }
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s var(--ease); }
.pd-info { padding-top: 8px; }
.pd-kind { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.pd-title { font: 300 clamp(44px, 5vw, 76px)/1 var(--f); letter-spacing: -.055em; }
/* Остаток полного названия товара (ключевые слова, как в H1 живого сайта) — мелкой строкой под названием */
.pd-sub { display: block; margin-top: 12px; font: 400 16px/1.4 var(--f); letter-spacing: 0; color: var(--ink-2); }
.pd-rating { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.pd-short { margin-top: 24px; color: var(--ink-2); }
.pd-short p + p { margin-top: 10px; }
.pd-buy { margin-top: 24px; padding: 24px; border-radius: 28px; display: grid; gap: 22px; }
.pd-opt-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.pd-opt-label a { color: var(--teal-ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 52px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: background .4s, color .4s, border-color .4s; }
.size:hover { border-color: var(--ink); }
.size.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size--all { border-style: dashed; }
.size--all.is-on { border-style: solid; }
.size:disabled { opacity: .35; text-decoration: line-through; pointer-events: none; }
.pd-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line-2); }
.pd-price { font: 300 40px/1 var(--f); letter-spacing: -.04em; }
.pd-price s { font-size: 22px; color: var(--ink-3); margin-right: 10px; }
.pd-price small { display: block; margin-top: 8px; font: 400 13px/1 var(--f); letter-spacing: 0; color: var(--ink-3); }
.pd-perks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 14px; color: var(--ink-2); }
.pd-perks li { display: flex; gap: 10px; align-items: flex-start; }
.pd-perks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--teal); }
.specs { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.specs div { padding: 14px 0; border-top: 1px solid var(--line-2); }
.specs dt { font-size: 12.5px; color: var(--ink-3); }
.specs dd { margin: 2px 0 0; font-weight: 500; font-size: 15px; }
.acc { margin-top: 28px; border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font: 400 19px/1.3 var(--f); letter-spacing: -.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 20px; height: 20px; transition: transform .6s var(--ease); }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc .prose { padding: 0 0 24px; }
.prose { color: var(--ink-2); font-size: 15.5px; }
.prose h2, .prose h3, .prose h4, .prose h5 { font: 500 15px/1.4 var(--f); color: var(--ink); margin: 20px 0 6px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; }
.prose ul { padding-left: 18px; margin: 0 0 10px; }
.prose a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose img, .prose iframe { max-width: 100%; height: auto; border-radius: 14px; }
.prose table { border-collapse: collapse; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--line-2); padding: 6px 10px; }

/* Уведомление */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 14px 22px; background: var(--ink); color: #fff; font-size: 14px; border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Согласие на cookie (site.js) — слева внизу, над чатом */
.cookies { position: fixed; left: 20px; bottom: 20px; z-index: 2147483000; width: min(420px, calc(100% - 40px)); padding: 20px 22px; border-radius: 24px; font-size: 14px; line-height: 1.55; color: var(--ink-2); box-shadow: 0 24px 60px -24px rgba(44,39,56,.45); opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.cookies.is-visible { opacity: 1; transform: none; }
.cookies p { margin: 0 0 14px; }
.cookies a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.cookies-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookies .btn { flex: 1 1 auto; min-height: 46px; padding: 0 20px; font-size: 14px; }
@media (max-width: 600px) { .cookies { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 16px 18px; } }
.footer-bottom button[data-cookie-settings] { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

/* Корзина-панель */
.header-cta { position: relative; }
.bag-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--teal); color: #fff; font: 500 11px/1 inherit; font-style: normal; box-shadow: 0 0 0 2px var(--cream); }
.bag-n[hidden] { display: none; }
html.bag-on { overflow: hidden; }
.bag { position: fixed; inset: 0; z-index: 2147483600; } /* выше виджета чата */
.bag[hidden] { display: none; }
.bag-shade { position: absolute; inset: 0; background: rgba(44,39,56,.32); opacity: 0; transition: opacity .45s var(--ease); }
.bag-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; transform: translateX(calc(100% + 20px)); transition: transform .55s var(--ease); }
.bag.is-open .bag-shade { opacity: 1; }
.bag.is-open .bag-panel { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px 24px; }
.bag-head h2 { font-size: 22px; font-weight: 400; }
.bag-x { width: 40px; height: 40px; border-radius: 50%; position: relative; transition: background .3s; }
.bag-x:hover { background: rgba(255,255,255,.75); }
.bag-x span { position: absolute; left: 11px; top: 19px; width: 18px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.bag-x span + span { transform: rotate(-45deg); }
.bag-body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 20px; transition: opacity .3s; }
.bag.is-busy .bag-body { opacity: .6; pointer-events: none; }
.bag-load, .bag-msg { font-size: 14px; color: var(--ink-2); }
.bag-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.6); }
.bag-empty { margin: auto 0; text-align: center; display: grid; gap: 18px; justify-items: center; color: var(--ink-2); }
.bag-items { list-style: none; margin: 0; padding: 0; }
.bag-item { display: grid; grid-template-columns: 72px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity .3s; }
.bag-item.is-gone { opacity: .3; }
.bag-img { grid-row: span 2; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #f6f4ee; }
.bag-img img { width: 100%; height: 100%; object-fit: cover; }
.bag-info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.bag-name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.bag-name:hover { color: var(--teal-ink); }
.bag-var { font-size: 13px; color: var(--ink-3); }
.bag-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.bag-price { margin-left: auto; font-size: 14px; font-weight: 500; }
.bag-price s { margin-right: 6px; color: var(--ink-3); font-weight: 400; }
.bag-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.bag-qty button { width: 30px; height: 30px; font-size: 16px; }
.bag-qty b { min-width: 18px; text-align: center; font-weight: 500; font-size: 14px; }
.bag-rm { justify-self: start; font-size: 12px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.bag-rm:hover { color: var(--ink); }
.bag-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.bag-line { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; color: var(--ink-2); }
.bag-total { padding-top: 6px; font-size: 17px; font-weight: 500; color: var(--ink); }
.bag-go { width: 100%; justify-content: center; min-height: 52px; }
.bag-fine { margin: 0; text-align: center; font-size: 12px; color: var(--ink-3); }
@media (max-width: 600px) {
  .bag-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 88dvh; transform: translateY(calc(100% + 20px)); }
  .bag-head { padding: 16px 16px 8px 20px; }
  .bag-body { padding: 0 20px 16px; }
}

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1240px) {
  .nav { font-size: 16px; }
  .nav > a { padding: 11px 11px; }
  .header-cta { padding: 0 20px; }
  .header-in { gap: 18px; }
}
@media (max-width: 1100px) {
  .nav { font-size: 15px; }
  .nav > a { padding: 10px 8px; white-space: nowrap; }
  .header-in { gap: 12px; padding-left: 22px; }
  .header-cta span { display: none; }
  .header-cta { width: 56px; padding: 0; justify-content: center; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { --n: 4.3; }
}
@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .header { padding-top: 8px; }
  .header-in { gap: 8px; height: 76px; padding: 0 8px 0 18px; }
  .logo img { height: 56px; }

  .logo span { font-size: 15px; }
  .header-tools { margin-left: auto; }
  .header-cta { min-height: 52px; padding: 0 18px; font-size: 17px; }
  .burger { display: grid; place-content: center; gap: 8px; width: 56px; height: 56px; position: relative; z-index: 2; }
  .burger span { width: 28px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease); }
  .menu-open .burger span:first-child { transform: translateY(4.75px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4.75px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: 1; margin: 0; flex-direction: column; gap: 0; padding: calc(var(--header-h) + 28px) var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--cream); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--ease), visibility 0s .9s; }
  .menu-open .nav { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease); }
  .menu-open { overflow: hidden; }
  .nav-pill { display: none; }
  .nav > a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); font: 300 30px/1.15 var(--f); letter-spacing: -.04em; opacity: 1; }
  .nav > a:first-of-type { border-top: 1px solid var(--line); }
  .nav > a[aria-current="page"] { color: var(--teal-ink); }
  .nav > a.nav-cta { display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: auto; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 16px/1 var(--f); letter-spacing: 0; }
  .nav > a:has(+ .nav-cta) { margin-bottom: 32px; }
  .nav-foot { display: block; margin: 20px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-3); }

  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-title { font-size: clamp(40px, 11vw, 64px); }
  .hero-lead { font-size: 16px; margin-top: 20px; }
  .hero-cta { margin-top: 28px; }
  .hero-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats li { padding: 10px 12px; font-size: 11.5px; }
  .hero-stats b { font-size: 21px; }
  .hero-media { max-width: none; }
  .hero-frame { max-height: none; }
  .hero-card { left: 12px; bottom: 12px; }

  .chapters-grid { grid-template-columns: 1fr; }
  .chapters-media { display: none; }
  .chapters-text { padding: var(--sec) var(--gutter) calc(var(--sec) * .5); max-width: none; }
  .chapters-lead { margin-bottom: 40px; }
  .chapter { min-height: 0; padding: 24px 0 44px; }
  .chapter-img { display: block; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gi { border-radius: 16px; }
  .gi figcaption { left: 12px; right: 12px; bottom: 10px; font-size: 12px; }
  .gi figcaption b { font-size: 16px; }
  .gi figcaption svg { display: none; }
  .rv-nav { display: none; }
  .rail { --n: 1.7; gap: 14px; }
  .rail > .card { width: calc((100% - (var(--n) - 1) * 14px) / var(--n)); }

  .plans { grid-template-columns: 1fr; }
  .plan--main { grid-row: auto; margin-bottom: 16px; }
  .plan-specs { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }

  .toc a { grid-template-columns: 1fr 22px; gap: 8px 16px; padding: 24px 0; }
  .toc .d { grid-column: 1; grid-row: 1; }
  .toc .t { grid-column: 1; grid-row: 2; }
  .toc svg { grid-column: 2; grid-row: 1 / 3; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }

  .float-cta { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-img { border-radius: 16px; }
  .card-title { font-size: 16px; }
  .card-meta { flex-direction: column; gap: 2px; }
  .shop-bar { top: calc(var(--header-h) + 2px); }

  .pd { padding-top: calc(var(--header-h) + 20px); }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { position: static; grid-template-columns: 1fr; }
  .pd-thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; max-height: none; }
  .pd-main { max-height: none; border-radius: 22px; }
  .pd-buy { padding: 20px; border-radius: 22px; }
  .pd-perks, .specs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-cta span { display: none; }
  .header-cta { width: 52px; padding: 0; justify-content: center; }
  .header-tools { gap: 2px; }
  .header-tools .icon-btn { width: 50px; height: 50px; }
  .burger { width: 50px; height: 50px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .plan-specs { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-cta small { display: none; }
}
@media (max-width: 960px) {
  .bg-scene i { width: 110vmax; height: 110vmax; }
  .bg-glass { -webkit-backdrop-filter: blur(36px) saturate(1.2); backdrop-filter: blur(36px) saturate(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bg-scene i { animation: none; }
}

/* ==========================================================================
   Главная по содержанию fabrico.design: преимущества бегущей строкой, наборы,
   Why Fabrico, история, квиз, отзывы, мозаика категорий, подписка в финале.
   ========================================================================== */

/* Наборы: первый — главный, крупнее */
.bundles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.bundle { display: flex; flex-direction: column; border-radius: 28px; padding: 10px; }
.bundle-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.5); }
.bundle--main .bundle-img { aspect-ratio: 16 / 11; }
.bundle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bundle:hover .bundle-img img { transform: scale(1.04); }
.bundle-tag { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(250,248,241,.9); font-size: 12px; font-weight: 500; }
.bundle--main .bundle-tag { background: var(--rose); color: #fff; }
.bundle-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 14px 14px; }
.bundle h3 { font: 300 clamp(28px, 2.6vw, 38px)/1.05 var(--f); letter-spacing: -.04em; }
.bundle-text { color: var(--ink-2); font-size: 15px; }
.bundle-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bundle-items li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); }
.bundle-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bundle-price { font: 300 32px/1 var(--f); letter-spacing: -.04em; }
.bundle-price s { margin-left: 10px; font-size: 17px; color: var(--ink-3); letter-spacing: 0; }
.bundle-price small { display: block; margin-top: 6px; font: 400 12.5px/1.3 var(--f); letter-spacing: 0; color: var(--teal-ink); }
.bundle .btn { min-height: 46px; padding: 0 20px; font-size: 14px; }

/* Why Fabrico */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-item { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 26px; border-radius: 28px; }
.why-item h3 { font: 300 clamp(26px, 2.4vw, 34px)/1.1 var(--f); letter-spacing: -.04em; }
.why-item p { color: var(--ink-2); font-size: 15.5px; }
.why-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--teal-ink); }

/* История */
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-media { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 28px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.story-media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.story-text { display: grid; gap: 18px; justify-items: start; }
.story-text p { color: var(--ink-2); font-size: 17px; max-width: 32em; }
.story-text .h2 { margin-bottom: 4px; }

/* Квиз */
.quiz { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: clamp(28px, 4vw, 52px); border-radius: 32px; overflow: hidden; }
.quiz::before { background: linear-gradient(135deg, rgba(44,39,56,.92), rgba(81,142,148,.78)) !important; }
.quiz .h2 { color: #fff; max-width: 14em; margin: 16px 0 14px; }
.quiz p { color: var(--on-dark-2); max-width: 40em; }
.quiz-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-tags li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-size: 12.5px; color: #fff; }
.quiz .btn { flex: none; }

/* Отзывы */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.quote figcaption a, .quote figcaption > span { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.quote figcaption img { width: 40px; height: 50px; object-fit: cover; border-radius: 8px; }
.quote figcaption small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.quote figcaption a:hover { color: var(--teal-ink); }
.lead .stars { margin-right: 8px; }

/* Мозаика категорий: Women — крупная плитка слева */
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: clamp(520px, 52vw, 680px); }
.mosaic .gi { aspect-ratio: auto; }
.mosaic .gi:first-child { grid-row: 1 / 3; }
.mosaic .gi:first-child img { object-position: 30% 10%; }
.mosaic .gi:first-child figcaption b { font-size: 28px; }

/* Финал: подписка на бесплатную выкройку */
.final-lead { max-width: 34em; margin: -16px auto 28px; color: rgba(255,255,255,.85); font-size: 17px; }
.news { width: min(560px, 100%); margin: 0 auto; display: flex; gap: 8px; padding: 6px; border-radius: 999px; }
.news input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 18px; outline: none; }
.news input::placeholder { color: rgba(255,255,255,.65); }
.final-fine { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.7); }
.final-fine a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .bundles, .why { grid-template-columns: 1fr; }
  .bundle--main .bundle-img { aspect-ratio: 4 / 3; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .quiz { flex-direction: column; align-items: flex-start; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .mosaic .gi { aspect-ratio: 4 / 5; }
  .mosaic .gi:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .final-lead { font-size: 15px; }
  .news { flex-direction: column; border-radius: 24px; padding: 8px; }
  .news input { min-height: 48px; }
}

/* ==========================================================================
   Страницы и записи из WordPress: статья, картинки, галереи, таблицы, видео,
   вопросы-ответы, карточки; блог — карточки записей, выкройка сбоку.
   ========================================================================== */
.wrap--art { max-width: calc(860px + 2 * var(--gutter)); }
.wrap--post { max-width: var(--wrap); }
.page-title--post { font-size: clamp(34px, 4.2vw, 60px); max-width: 18em; }
.post-meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.post-meta a { color: var(--teal-ink); }

.art { padding-top: 20px; padding-bottom: calc(var(--sec) * .6); color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.art > * + * { margin-top: 18px; }
.art h2, .art h3, .art h4 { color: var(--ink); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; margin-top: 44px; }
.art h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; }
.art h3 { font-size: clamp(20px, 1.9vw, 25px); }
.art h4 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.art h2 + *, .art h3 + *, .art h4 + * { margin-top: 12px; }
.art > :first-child { margin-top: 0; }
.art p, .art li { max-width: 46em; }
.art strong { color: var(--ink); font-weight: 500; }
.art ul, .art ol { padding-left: 22px; }
.art li + li { margin-top: 6px; }
.art li::marker { color: var(--teal); }
.art a { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art a:hover { color: var(--ink); }
.art img { border-radius: 18px; }
.art hr { border: 0; border-top: 1px solid var(--line-2); margin: 36px 0; }
.art blockquote { margin-left: 0; padding: 18px 24px; border-left: 2px solid var(--teal); background: rgba(255,255,255,.45); border-radius: 0 16px 16px 0; }
.fig { margin-left: 0; margin-right: 0; }
.fig img { width: 100%; height: auto; }
.fig--tall { max-width: 520px; }
.fig figcaption, .gal figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.gal { display: grid; grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); gap: 10px; }
.gal--1 { --c: 1; } .gal--2 { --c: 2; } .gal--3 { --c: 3; } .gal--4 { --c: 4; }
.gal figure { margin: 0; }
.gal img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--ink); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.table { overflow-x: auto; border-radius: 16px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px var(--line); }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tr:first-child td, .table th { font-weight: 500; color: var(--ink); background: rgba(255,255,255,.5); }
.table tr:last-child td { border-bottom: 0; }
.table img { border-radius: 8px; max-width: 120px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; color: var(--ink); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary span::before, .faq summary span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.4px; background: currentColor; transition: transform .5s var(--ease); }
.faq summary span::after { transform: rotate(90deg); }
.faq details[open] summary span::after { transform: rotate(0); }
.faq details > div { padding: 0 0 18px; }
.faq details > div > * + * { margin-top: 10px; }
.art-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.art-card { padding: 16px; border-radius: 20px; }
.art-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.art-card h3 { margin: 0 0 6px; font-size: 18px; }
.art-card p { font-size: 14.5px; }
.art-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 16px; }
.art-products a, .art .card a, .art .card { text-decoration: none; color: inherit; }
.art-products .card-title { color: var(--ink); }

/* Запись: текст слева, выкройка — карточка сбоку, стоит при прокрутке */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.post-grid .art { max-width: 820px; }
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 20px; }
.post-pattern { display: grid; gap: 14px; padding: 14px 14px 16px; border-radius: 26px; }
.post-pattern-label { font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); padding: 4px 6px 0; }
.post-pattern .btn { width: 100%; }

/* Карточки записей */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
.pcard { display: flex; flex-direction: column; gap: 14px; }
.pcard-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.5); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-body { display: grid; gap: 6px; padding: 0 4px; }
.pcard-meta { font-size: 13px; color: var(--ink-3); }
.pcard-title { font: 400 19px/1.3 var(--f); letter-spacing: -.02em; transition: color .4s; }
.pcard:hover .pcard-title { color: var(--teal-ink); }
a.chip { display: inline-flex; align-items: center; }
.cat-desc { margin-top: 56px; max-width: 46em; }

@media (max-width: 1100px) { .post-grid { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-aside { position: static; padding-top: 0; }
  .post-pattern { max-width: 360px; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .pcard-title { font-size: 16px; }
  .gal--3, .gal--4 { --c: 2; }
  .art { font-size: 16px; }
}
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
/* Акцент в заголовках (на fabrico.design — курсив DM Serif) — бирюзой, как на главной */
.art h2 em, .art h3 em, .art h4 em { font-style: normal; color: var(--teal-ink); }

/* Перенесенные как есть блоки: без типографики статьи */
.art .raw { color: initial; font-size: initial; line-height: normal; }
.art .raw p, .art .raw li { max-width: none; }
.art .raw a { text-decoration: none; color: inherit; }
.art .raw img { border-radius: 0; }
.art .raw > * + * { margin-top: 0; }
.art:has(.raw) { max-width: none; }

/* Курс: обложка широкая — показываем целиком, без обрезки под 4:5 */
.pd-main--free { aspect-ratio: auto; max-height: none; align-self: start; }
.pd-main--free img { position: static; height: auto; }

/* Фото шире карточки — целиком на светлой подложке (фото товаров у Fabrico 2:3, 3:4, 4:3 и квадрат) */
.card-img img.fit { object-fit: contain; background: #f6f4ee; }
.card:hover .card-img img.fit { transform: scale(1.02); }

/* ==========================================================================
   Кабинет покупателя (/my-account/, account.js)
   ========================================================================== */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.acc { padding: 28px 0 90px; }
.acc [hidden] { display: none !important; }
.acc-load, .acc-msg { color: var(--ink-2); font-size: 15px; }
.acc-guest { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px; align-items: start; }
.acc-auth { padding: 10px 28px 28px; border-radius: 28px; }
.acc-tabs { display: flex; gap: 6px; margin: 0 -14px 18px; padding: 6px; }
.acc-tabs button { flex: 1; min-height: 44px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .4s, color .4s; }
.acc-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.acc-form { display: grid; gap: 16px; }
.acc-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.acc-form input { width: 100%; min-width: 0; height: 50px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255,255,255,.75); font: 400 15px var(--f); color: var(--ink); transition: border-color .3s; }
.acc-form input:focus { outline: none; border-color: var(--teal); }
.acc-form small { font-weight: 400; color: var(--ink-3); }
.acc-form .btn { width: 100%; }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.acc-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(148,81,98,.1); color: #7a3a4a; font-size: 14px; }
.acc-small { font-size: 13px; color: var(--ink-3); text-align: center; margin: 0; }
.acc-small a, a.acc-small { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.acc-why { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; font-size: 16px; color: var(--ink-2); }
.acc-why b { display: block; font-weight: 500; color: var(--ink); }
.acc-user { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.acc-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 2px; padding: 10px; border-radius: 24px; }
.acc-nav a, .acc-nav button { display: block; text-align: left; padding: 12px 16px; border-radius: 14px; font-size: 15px; color: var(--ink-2); transition: background .3s, color .3s; }
.acc-nav a:hover, .acc-nav button:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.acc-nav a[aria-current] { background: var(--ink); color: #fff; }
.acc-nav button { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; color: var(--ink-3); }
.acc-empty { padding: 36px; border-radius: 24px; display: grid; gap: 18px; justify-items: start; color: var(--ink-2); }
.acc-note { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.acc-note a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.acc-sub { display: block; font-size: 13px; color: var(--ink-3); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.acc-course { display: grid; border-radius: 24px; overflow: hidden; transition: transform .5s var(--ease); }
.acc-course:hover { transform: translateY(-3px); }
.acc-course-img { aspect-ratio: 16/9; overflow: hidden; background: #f6f4ee; }
.acc-course-img img { width: 100%; height: 100%; object-fit: cover; }
.acc-course-body { display: grid; gap: 10px; padding: 18px 20px 20px; }
.acc-course-body b { font-weight: 500; font-size: 17px; line-height: 1.3; }
.acc-meter { height: 6px; border-radius: 999px; background: rgba(44,39,56,.1); overflow: hidden; }
.acc-meter i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.acc-go { font-size: 14px; font-weight: 500; color: var(--teal-ink); }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.acc-dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: 22px; }
.acc-dl-img { aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: #f6f4ee; }
.acc-dl-img img { width: 100%; height: 100%; object-fit: cover; }
.acc-dl-body { display: grid; gap: 8px; align-content: center; min-width: 0; }
.acc-dl-body b { font-weight: 500; }
.acc-dl-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc-file { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: background .4s; }
.acc-file::before { content: "↓"; }
.acc-file:hover { background: var(--teal); }
.acc-order { border-radius: 22px; }
.acc-order summary { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; }
.acc-order summary::-webkit-details-marker { display: none; }
.acc-order b { font-weight: 500; }
.acc-order details > :not(summary) { margin: 0 22px 18px; }
.acc-status { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(44,39,56,.07); color: var(--ink-2); white-space: nowrap; }
.acc-status--completed { background: rgba(158,193,164,.35); color: #35603c; }
.acc-status--processing { background: rgba(180,209,212,.5); color: var(--teal-ink); }
.acc-status--pending, .acc-status--failed { background: rgba(226,191,192,.5); color: #7a3a4a; }
.acc-total { font-weight: 500; }
.acc-lines { list-style: none; padding: 12px 0 0 !important; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.acc-lines li { display: flex; justify-content: space-between; gap: 16px; }
.acc-details { max-width: 560px; padding: 28px; border-radius: 28px; }
@media (max-width: 960px) {
  .acc-guest, .acc-user { grid-template-columns: 1fr; gap: 24px; }
  .acc-nav { position: relative; top: 0; display: flex; overflow-x: auto; scrollbar-width: none; border-radius: 999px; padding: 6px; }
  .acc-nav a, .acc-nav button { white-space: nowrap; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
  .acc-nav button { margin: 0 0 0 auto; border: 0; border-radius: 999px; }
}
@media (max-width: 600px) {
  .acc-auth { padding: 8px 18px 22px; }
  .acc-row { grid-template-columns: 1fr; }
  .acc-order summary { grid-template-columns: 1fr auto; padding: 16px 18px; }
  .acc-order .acc-total { grid-column: 2; }
  .acc-order .acc-status { grid-row: 2; justify-self: start; }
  .acc-dl { grid-template-columns: 60px minmax(0, 1fr); }
}

/* ==========================================================================
   Видеокурсы: страница курса и урок (tools/courses.mjs, course.js)
   ========================================================================== */
.crs-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.crs-hero .lead { margin-top: 18px; }
.crs-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crs-chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.65); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.crs-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.crs-cta .btn svg { width: 14px; height: 14px; }
.crs-cta .btn span { font-weight: 400; opacity: .85; }
.crs-cta s, .crs-card s { opacity: .6; }
.crs-mine { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.crs-mine a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.crs-cover { aspect-ratio: 16/10; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(44,39,56,.4); }
.crs-cover img { width: 100%; height: 100%; object-fit: cover; }
.crs-body { padding: 40px 0 90px; }
.crs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.crs-main { display: grid; gap: 40px; min-width: 0; }
.crs-block h2 { font: 300 clamp(26px, 3vw, 36px)/1.1 var(--f); letter-spacing: -.03em; margin-bottom: 18px; }
.crs-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.crs-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; }
.crs-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.crs-ticks li { display: flex; gap: 12px; color: var(--ink-2); }
.crs-ticks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }
.crs-side { position: sticky; top: calc(var(--header-h) + 16px); }
.crs-card { display: grid; gap: 16px; padding: 26px; border-radius: 26px; }
.crs-card h3 { font-size: 18px; font-weight: 500; }
.crs-card .btn { width: 100%; }
.crs-fine { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.crs-lessons { list-style: none; margin: 0; padding: 0; counter-reset: l; border-top: 1px solid var(--line); }
.crs-lessons li { position: relative; border-bottom: 1px solid var(--line); }
.crs-lessons a { display: grid; grid-template-columns: 36px minmax(0, 1fr) 22px; gap: 14px; align-items: center; padding: 14px 6px; transition: background .3s; }
.crs-lessons a:hover { background: rgba(255,255,255,.55); }
.crs-n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.crs-lt { display: grid; gap: 3px; min-width: 0; }
.crs-lt b { font-weight: 500; font-size: 15px; }
.crs-lt span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crs-st { color: var(--ink-3); }
.crs-st svg { width: 16px; height: 16px; }
.crs-lessons li.is-open .crs-st { color: var(--teal); }
.crs-lessons li.is-done .crs-n { color: var(--teal-ink); }
.crs-lessons li.is-current a { background: rgba(81,142,148,.1); }
.crs-lessons li.is-current b { color: var(--teal-ink); }
.crs-pbar { position: absolute; left: 56px; right: 42px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(44,39,56,.08); overflow: hidden; }
.crs-pbar i { display: block; height: 100%; background: var(--teal); }

.les { padding: calc(var(--header-h) + 28px) 0 90px; }
.les-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.les-main { min-width: 0; }
.les-title { font: 300 clamp(30px, 3.6vw, 48px)/1.08 var(--f); letter-spacing: -.04em; margin-bottom: 22px; }
.les-player { position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; background: var(--ink) var(--cover, none) center/cover; }
.les-player::before { content: ""; position: absolute; inset: 0; background: rgba(44,39,56,.45); }
.les-player.is-on::before { display: none; }
.les-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.les-gate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); padding: 24px; border-radius: 22px; text-align: center; display: grid; gap: 16px; }
.les-gate[hidden] { display: none; }
.les-gate p { margin: 0; font-size: 16px; }
.les-gate-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; }
.les-gate-cta[hidden] { display: none; }
.les-gate .btn { min-height: 46px; padding: 0 20px; font-size: 14px; }
.les-link { width: 100%; font-size: 13px; color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }
.les-about { margin-top: 32px; }
.les-about[hidden] { display: none; }
.les-about h2 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.les-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.les-nav > * { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.5); transition: background .3s, border-color .3s; min-width: 0; }
.les-nav a:hover { background: #fff; border-color: var(--line-2); }
.les-nav .next { justify-content: flex-end; text-align: right; }
.les-nav svg { flex: none; width: 18px; height: 18px; }
.les-nav span { display: grid; gap: 2px; min-width: 0; }
.les-nav small { font-size: 12px; color: var(--ink-3); }
.les-nav b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.les-nav .is-off { opacity: .5; }
.les-side { position: sticky; top: calc(var(--header-h) + 16px); }
.les-card { border-radius: 24px; overflow: hidden; }
.les-card-top { display: grid; gap: 8px; padding: 20px 20px 16px; }
.les-card-top small { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.les-card-top b { font-weight: 500; }
.les-count { font-size: 13px; color: var(--ink-3); }
.crs-lessons--side { max-height: calc(100vh - var(--header-h) - 220px); overflow-y: auto; overscroll-behavior: contain; }
.crs-lessons--side a { grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 10px; padding: 11px 16px; }
.crs-lessons--side .crs-lt b { font-size: 14px; }
.crs-lessons--side .crs-pbar { left: 54px; right: 16px; }
@media (max-width: 960px) {
  .crs-hero, .crs-layout, .les-layout { grid-template-columns: 1fr; gap: 28px; }
  .crs-side, .les-side { position: static; }
  .crs-lessons--side { max-height: none; }
}
@media (max-width: 600px) {
  .les-nav { grid-template-columns: 1fr; }
  .les-gate { padding: 18px; gap: 12px; }
  .les-gate p { font-size: 14px; }
  .les-gate .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
}
.acc-google { display: grid; gap: 14px; justify-items: center; margin-bottom: 18px; }
.acc-google-btn { min-height: 44px; }
.acc-or { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 12px; color: var(--ink-3); }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
/* Свернутые кнопки категорий (site.js); активная остается видна */
.shop-bar-in.is-folded > .is-extra:not(.is-on) { display: none; }
.chip-more { color: var(--teal-ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(81,142,148,.35); }
/* Чат не закрывает панель фильтра */
html.flt-open #fabia-root { display: none !important; }
.flt-panel.glass--matte::before { background-color: rgba(250, 248, 241, .9); }
