/* Aesthetics — «Стекло и кожа» */
:root {
  --bg: #FAFAF8;
  --ink: #1F2123;
  --ink-2: #6B7075;
  --ink-3: #A3A8AD;
  --ice: #E6EDEF;
  --ice-2: #F1F5F6;
  --glass: #0F5C63;
  --glass-2: #DCE9EA;
  --skin: #E9D5C7;
  --skin-2: #F4EAE2;
  --rule: #DEE1E3;
  --white: #FFFFFF;
  --display: 'Prata', 'Times New Roman', serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--glass); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(32px, 4.6vw, 60px); }
h2 { font-size: clamp(22px, 2.6vw, 34px); }
h3 { font-size: 18px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
p { margin: 0 0 1em; max-width: 68ch; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); border-radius: 2px; cursor: pointer; font-weight: 500; font-size: 15px; line-height: 1; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--glass); border-color: var(--glass); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-line { border: 0; background: none; padding: 0; color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; font-weight: 500; }
.btn-line:hover { color: var(--glass); border-color: var(--glass); background: none; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- шапка ---------- */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 21px; letter-spacing: 0.18em; color: var(--ink); }
.wordmark .mark { width: 22px; height: 28px; color: var(--glass); flex: 0 0 auto; }
.wordmark:hover { color: var(--glass); }
.main-nav { display: flex; gap: 32px; font-size: 15px; }
.main-nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-color: var(--ink); color: var(--ink); }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 26px; font-size: 15px; }
.header-tools .phone { font-size: 15px; white-space: nowrap; }
.bag { display: inline-flex; align-items: center; gap: 8px; }
.bag-count { font-size: 12px; font-weight: 500; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--skin); color: var(--ink); }
.bag-count:empty { display: none; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.burger { display: none; border: 0; background: none; padding: 8px; margin-left: -8px; }
.cat-strip { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; font-size: 14px; color: var(--ink-2); }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a { white-space: nowrap; }
.cat-strip a.active { color: var(--ink); }

.search-bar { display: none; padding: 16px 0 20px; }
.search-bar.open { display: block; }
.search-form { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 8px; max-width: 720px; }
.search-form input { flex: 1; border: 0; background: none; padding: 8px 0; font-size: 22px; font-family: var(--display); }
.search-form input::placeholder { color: var(--ink-3); }
.search-form button { border: 0; background: none; padding: 8px; cursor: pointer; }

/* ---------- hero (видео) ---------- */
.hero-video { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-video video, .hero-video .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transform: translateZ(0); }
.hero-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,33,35,.66) 0%, rgba(31,33,35,.38) 50%, rgba(31,33,35,.12) 100%), linear-gradient(180deg, rgba(31,33,35,0) 40%, rgba(31,33,35,.7) 100%); }
.hero-video .wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: clamp(48px, 7vw, 96px); }
.hero-video h1 { max-width: 14ch; color: var(--white); }
.hero-video .lead { font-size: 18px; margin: 24px 0 36px; max-width: 48ch; color: rgba(255,255,255,.82); }
.hero-video .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero-video .btn:hover { background: var(--skin); border-color: var(--skin); color: var(--ink); }
.hero-video .btn-line { color: var(--white); border-color: rgba(255,255,255,.7); }
.hero-video .btn-line:hover { color: var(--skin); border-color: var(--skin); }
.hero-video .credit { position: absolute; right: var(--gutter); bottom: 14px; font-size: 11px; color: rgba(255,255,255,.45); z-index: 1; }
.hero-video .poster { z-index: 0; }
.hero-video video { z-index: 0; }


/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 7vw, 96px) 0; }
.hero h1 { max-width: 12ch; }
.hero .lead { font-size: 18px; margin: 28px 0 36px; max-width: 46ch; color: var(--ink-2); }
.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-figure { position: relative; background: var(--ice); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 8%; }
.hero-figure img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-figure figcaption { position: absolute; left: 24px; bottom: 20px; font-size: 13px; color: var(--ink-2); }
.hero-figure figcaption b { display: block; font-weight: 500; color: var(--ink); font-size: 13px; }

/* ---------- разделы списком ---------- */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head .more { font-size: 15px; border-bottom: 1px solid var(--ink); }
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cat-list li { border-bottom: 1px solid var(--rule); }
.cat-list a { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 28px; padding: 18px 0; }
.cat-list .thumb { width: 96px; height: 72px; background: var(--ice); display: flex; align-items: center; justify-content: center; padding: 8px; }
.cat-list .thumb img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-list .thumb.empty { font-family: var(--display); color: var(--glass); font-size: 24px; }
.cat-list .name { font-family: var(--display); font-size: clamp(18px, 1.7vw, 24px); }
.cat-list .count { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.cat-list a:hover .name { color: var(--glass); }

/* ---------- сетка товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-img { background: var(--ice); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 12%; position: relative; isolation: isolate; contain: paint; }
.card-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img .flag { position: absolute; top: 12px; left: 12px; font-size: 12px; background: var(--skin); padding: 4px 8px; }
.card-body { padding: 16px 0 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 13px; color: var(--ink-2); }
.card-name { font-size: 15px; line-height: 1.4; }
.card-name a:hover { color: var(--glass); }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { font-family: var(--display); font-size: 18px; white-space: nowrap; }
.price-old { display: block; font-family: var(--body); font-size: 13px; color: var(--ink-3); text-decoration: line-through; margin-bottom: 2px; }
.card .btn-add { border: 1px solid var(--rule); background: var(--white); width: 40px; height: 40px; padding: 0; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.card .btn-add:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.card .btn-add.done { background: var(--glass); border-color: var(--glass); color: var(--white); }

/* ---------- страница раздела ---------- */
.page-head { padding: clamp(28px, 4vw, 48px) 0 24px; }
.crumbs { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.crumbs span::before { content: '/'; margin-right: 8px; color: var(--ink-3); }
.crumbs span:first-child::before { content: none; }
.page-head .count { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding-bottom: 80px; align-items: start; }
.side { position: sticky; top: 100px; }
.side h3 { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 14px; font-family: var(--body); }
.side ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.side li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.side li a em { font-style: normal; color: var(--ink-3); font-size: 13px; }
.side li a.active { color: var(--glass); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; font-size: 14px; color: var(--ink-2); }
.toolbar select { border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 6px 0; color: var(--ink); cursor: pointer; }
.listing .grid { grid-template-columns: repeat(3, 1fr); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 56px; font-size: 15px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-bottom: 1px solid transparent; }
.pager a:hover { border-color: var(--ink); }
.pager .current { border-color: var(--ink); }
.empty { padding: 60px 0; color: var(--ink-2); }

/* ---------- товар ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); padding: 16px 0 72px; align-items: start; }
.product-figure { background: var(--ice); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 8%; position: sticky; top: 100px; }
.product-figure img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-info .brand { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.product-info h1 { font-size: clamp(28px, 3.2vw, 40px); }
.specs { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); font-size: 15px; }
.specs li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.specs li span:first-child { color: var(--ink-2); }

.label { margin-top: 36px; background: var(--skin); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 22px; }
.label .price { font-size: clamp(32px, 3.6vw, 44px); line-height: 1; }
.label .price small { font-family: var(--body); font-size: 15px; font-weight: 400; margin-left: 6px; }
.label .price-old { font-size: 15px; margin: 0 0 10px; color: var(--ink-2); white-space: nowrap; }
.label .save { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.label form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.label form .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); }
.qty button { width: 40px; height: 48px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 44px; height: 48px; border: 0; text-align: center; background: none; -moz-appearance: textfield; font-size: 15px; font-weight: 500; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.label .btn { height: 50px; }
.one-click { display: block; margin-top: 14px; font-size: 14px; }
.one-click a { border-bottom: 1px solid var(--ink-3); }
.desc { max-width: 68ch; margin-top: 56px; font-size: 16px; line-height: 1.65; }
.desc h2, .desc h3 { font-family: var(--body); font-weight: 500; font-size: 17px; margin: 28px 0 10px; }
.desc h1 { font-family: var(--body); font-weight: 500; font-size: 17px; margin: 28px 0 10px; }
.desc ul { padding-left: 20px; }
.desc hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
.desc p { max-width: none; }
.related { padding: 0 0 80px; }

/* ---------- корзина / заявка ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; padding-bottom: 80px; }
.cart-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.cart-table .c-img { width: 88px; }
.cart-table .c-img div { width: 72px; height: 72px; background: var(--ice); display: flex; align-items: center; justify-content: center; padding: 8px; }
.cart-table .c-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-table .c-name { padding-left: 20px; padding-right: 20px; }
.cart-table .c-name small { display: block; color: var(--ink-2); margin-top: 4px; font-size: 13px; }
.cart-table .c-sum { text-align: right; white-space: nowrap; }
.cart-table .c-del { width: 40px; text-align: right; }
.cart-table .c-del button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 20px; line-height: 1; }
.cart-table .c-del button:hover { color: var(--ink); }
.cart-table .qty { transform: scale(.85); transform-origin: left center; }
.summary { position: sticky; top: 100px; }
.summary .label { margin-top: 0; display: block; }
.summary .row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; }
.summary .total { font-family: var(--display); font-size: 30px; margin: 12px 0 20px; }
.summary .btn { width: 100%; }
.summary .note { font-size: 13px; color: var(--ink-2); margin-top: 16px; }

.form-layout { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; padding-bottom: 80px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink-3); background: none; padding: 10px 0; font-size: 17px; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.form-error { color: #9B2C2C; margin-bottom: 20px; }
.order-list { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--rule); font-size: 14px; }
.order-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.order-list li span:last-child { white-space: nowrap; color: var(--ink-2); }

/* ---------- инфо-блоки ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--rule); padding-top: 40px; }
.facts h3 { font-family: var(--body); font-weight: 500; font-size: 17px; margin-bottom: 10px; }
.facts p { color: var(--ink-2); font-size: 15px; margin: 0; }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.65; padding-bottom: 80px; }
.prose h2 { font-family: var(--body); font-weight: 500; font-size: 20px; margin: 32px 0 12px; }
.prose ul { padding-left: 20px; }
.thanks { padding: 24px 0 96px; max-width: 60ch; font-size: 17px; }
.thanks h1 { margin-bottom: 24px; }

/* ---------- футер ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 32px; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
.footer-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .wordmark { margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer h4 { margin: 0 0 14px; font-weight: 500; color: var(--ink); font-size: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: var(--white); padding: 14px 20px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 100; display: flex; gap: 16px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--skin); border-bottom: 1px solid currentColor; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .header-tools .phone { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .listing { grid-template-columns: 220px 1fr; gap: 36px; }
  .listing .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-row { grid-template-columns: auto 1fr auto; height: 64px; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .burger { display: inline-flex; }
  .header-tools .phone { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-figure { order: -1; aspect-ratio: 1; }
  .grid, .listing .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .listing { grid-template-columns: 1fr; }
  .side { position: static; }
  .side ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .side li a { border: 1px solid var(--rule); padding: 8px 12px; font-size: 14px; }
  .product { grid-template-columns: 1fr; }
  .product-figure { position: static; }
  .cart-layout, .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .summary { position: static; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .cat-list a { grid-template-columns: 72px 1fr auto; gap: 16px; }
  .cat-list .thumb { width: 72px; height: 56px; }
  .specs li { grid-template-columns: 120px 1fr; }
}
@media (max-width: 480px) {
  .grid, .listing .grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-name { font-size: 14px; }
  .price { font-size: 15px; }
  .cart-table .c-name { padding-left: 12px; }
}

/* ---------- программы ---------- */
.programs-intro { max-width: 62ch; font-size: 18px; color: var(--ink-2); margin-bottom: 40px; }
.tiers { list-style: none; margin: 0 0 72px; padding: 0; border-top: 1px solid var(--rule); }
.tiers li { display: grid; grid-template-columns: 200px 1fr 1.4fr auto; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.tiers .tier { font-family: var(--display); font-size: 24px; }
.tiers .tier small { display: block; font-family: var(--body); font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.tiers .sum { font-family: var(--display); font-size: 20px; white-space: nowrap; }
.tiers .sum small { display: block; font-family: var(--body); font-size: 13px; color: var(--ink-2); }
.tiers .gift { font-size: 15px; }
.tiers .btn-ghost { padding: 12px 20px; font-size: 14px; }
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; padding-bottom: 80px; }
.package h3 { font-size: 26px; margin-bottom: 6px; }
.package .threshold { color: var(--ink-2); margin-bottom: 16px; }
.package ul { margin: 0 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.package li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.package p { font-size: 14px; color: var(--ink-2); }
.terms { max-width: 68ch; color: var(--ink-2); font-size: 14px; padding-bottom: 80px; }
@media (max-width: 900px) {
  .tiers li { grid-template-columns: 1fr 1fr; }
  .tiers .gift { grid-column: 1 / -1; }
  .packages { grid-template-columns: 1fr; }
}

/* ---------- плитки разделов ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; gap: 28px; }
.cat-tile { display: flex; flex-direction: column; min-width: 0; }
.cat-tile .pic { position: relative; background: var(--ice); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 14%; overflow: hidden; isolation: isolate; contain: paint; }
.cat-tile .pic img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.cat-tile:hover .pic img { transform: scale(1.04); }
.cat-tile .pic .letter { font-family: var(--display); font-size: 64px; color: var(--glass); opacity: .5; }
.cat-tile .meta { padding: 14px 0 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cat-tile .name { font-family: var(--display); font-size: 20px; line-height: 1.25; }
.cat-tile:hover .name { color: var(--glass); }
.cat-tile .count { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.cat-tile.big { grid-column: span 2; grid-row: span 2; }
.cat-tile.big .pic { aspect-ratio: auto; height: 100%; min-height: 420px; padding: 10% 10% 26%; }
.cat-tile.big .meta { position: absolute; left: 28px; right: 28px; bottom: 24px; padding: 0; z-index: 1; flex-direction: column; align-items: flex-start; gap: 6px; }
.cat-tile.big .pic::after { content: ''; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, rgba(230,237,239,0) 0%, rgba(230,237,239,.92) 70%); }
.cat-tile.big .name { font-size: clamp(24px, 2.4vw, 34px); max-width: 100%; }
.cat-tile.big .subs { font-size: 14px; color: var(--ink-2); max-width: 46ch; }
.section-foot { margin-top: 36px; text-align: center; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .cat-tile.big { grid-column: span 2; grid-row: span 1; }
  .cat-tile.big .pic { min-height: 280px; }
  .cat-tile .name { font-size: 17px; }
}

/* ---------- фон: свет в стекле ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; border-radius: 50%; opacity: .7; will-change: transform; transform: translateZ(0); }
.ambient .a1 { width: 56vw; height: 56vw; left: -14vw; top: -18vw; background: radial-gradient(circle, #DCE9EA 0%, rgba(220,233,234,.5) 30%, rgba(220,233,234,0) 68%); animation: drift1 46s ease-in-out infinite alternate; }
.ambient .a2 { width: 48vw; height: 48vw; right: -16vw; top: 30vh; background: radial-gradient(circle, #F1E4DA 0%, rgba(241,228,218,.5) 30%, rgba(241,228,218,0) 68%); animation: drift2 58s ease-in-out infinite alternate; }
.ambient .a3 { width: 40vw; height: 40vw; left: 30vw; bottom: -22vw; background: radial-gradient(circle, #E6EDEF 0%, rgba(230,237,239,.5) 30%, rgba(230,237,239,0) 68%); animation: drift1 70s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vw, 6vh) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-8vw, -7vh) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .ambient span { animation: none; } }
main, .site-header, .site-footer { position: relative; z-index: 1; }
.site-header { background: rgba(250,250,248,.96); }

/* ---------- водяной знак ---------- */
.watermark { position: relative; }
.watermark::before { content: ''; position: absolute; right: -9vw; top: 0; width: clamp(200px, 22vw, 360px); aspect-ratio: 28 / 36; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'><path d='M9 3h10M11 3v6.5L4.5 30a3 3 0 0 0 2.8 4h13.4a3 3 0 0 0 2.8-4L17 9.5V3' fill='none' stroke='%230F5C63' stroke-width='.12' stroke-linejoin='round'/></svg>") no-repeat center / contain; opacity: .5; pointer-events: none; z-index: 0; }
.watermark > * { position: relative; z-index: 1; }
.watermark.left::before { right: auto; left: -12vw; }
@media (max-width: 820px) { .watermark::before { display: none; } }
