/* =========================================================
   Просто по-сибирски — витрина
   ========================================================= */
/* Фирменный шрифт заголовков (как в логотипе). Знаков ₽ + … в нём нет — их подставит Manrope. */
@font-face {
    font-family: "UrbanSlavic";
    src: url("../fonts/UrbanSlavic.woff2") format("woff2"), url("../fonts/UrbanSlavic.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
:root {
    /* Цвета логотипа: слива (надпись, свёкла), малина (клубника), оранжевый (морковь), зелёный (яблоко) */
    --bg: #fbf6f2;
    --bg-2: #f4ebe6;
    --surface: #ffffff;
    --ink: #2a1a28;
    --ink-2: #4a3947;
    --muted: #7a6b77;
    --line: rgba(74, 34, 66, .11);
    --brand: #6e3266;
    --brand-2: #8a4580;
    --brand-dark: #3a1636;
    --brand-soft: #f5e9f2;
    --raspberry: #d1456c;
    --raspberry-2: #b8355b;
    --raspberry-soft: #fbe6ec;
    --accent: #f1883c;
    --accent-2: #d96c1f;
    --accent-soft: #fdeedf;
    --berry: #a5557d;
    --berry-soft: #f6e8ef;
    --leaf: #78b941;
    --leaf-soft: #ecf5e2;
    --danger: #c43d3d;
    --radius-lg: 32px;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow-sm: 0 1px 2px rgba(58, 22, 54, .05), 0 4px 14px rgba(58, 22, 54, .05);
    --shadow: 0 2px 6px rgba(58, 22, 54, .04), 0 18px 40px rgba(58, 22, 54, .09);
    --shadow-lg: 0 30px 70px rgba(58, 22, 54, .2);
    --container: 1280px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "UrbanSlavic", "Manrope", system-ui, sans-serif;
    --font-num: "Manrope", system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: 1; }
p { margin: 0; }
.icon { flex: none; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 20px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
    transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
    background: transparent;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(110, 50, 102, .25); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-accent { background: var(--raspberry); color: #fff; box-shadow: 0 12px 28px rgba(209, 69, 108, .38); }
.btn-accent:hover { background: var(--raspberry-2); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-disabled { background: var(--bg-2); color: var(--muted); cursor: default; }
.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--brand); }
.icon-btn-sm { width: 36px; height: 36px; border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn-sm:hover { background: var(--bg); color: var(--danger); border-color: transparent; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-back:hover .icon { transform: translateX(-4px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: #ffc58f;
}
.eyebrow-dark { color: var(--raspberry); }

/* ---------- Шапка ---------- */
.topbar { background: var(--brand-dark); color: rgba(255, 255, 255, .82); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; min-height: 38px; align-items: center; }
.topbar-inner > * { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }

.header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(27, 38, 32, .06); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { white-space: nowrap; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: 12px; margin-top: 4px; white-space: nowrap; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.is-active { background: var(--brand); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search {
    display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
    width: 220px; transition: width .3s var(--ease), border-color .2s;
}
.header-search:focus-within { width: 280px; border-color: var(--brand); }
.header-search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); }
.cart-badge {
    position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 6px;
    display: grid; place-items: center; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; border: 2px solid var(--bg);
    transition: transform .3s var(--ease);
}
.cart-badge.is-empty { transform: scale(0); }
.cart-badge.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }

/* ---------- Уведомления ---------- */
.notice { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.notice-error { background: #fbe5e3; color: #9b2c2c; }

/* ---------- Hero с видео ----------
   Правила размещения контента поверх видео:
   — затемнение в цвете бренда даёт контраст текста не ниже 4.5:1 на любом кадре;
   — текст в левой «безопасной» колонке, правая часть кадра остаётся для картинки;
   — видео без звука, есть кнопка паузы, при prefers-reduced-motion показывается постер. */
.hero { padding: 16px 0 0; }
.hero-stage {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    min-height: clamp(560px, 84vh, 780px);
    padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px) clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--brand-dark) center / cover no-repeat;
    color: #fff;
}
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(38, 12, 35, .9) 0%, rgba(58, 22, 54, .78) 34%, rgba(58, 22, 54, .38) 62%, rgba(58, 22, 54, .12) 100%),
        linear-gradient(0deg, rgba(38, 12, 35, .7) 0%, rgba(38, 12, 35, 0) 38%);
}
.hero-copy { position: relative; max-width: 640px; text-shadow: 0 1px 18px rgba(30, 8, 28, .35); }
.hero h1 { margin: 18px 0 22px; font-size: clamp(56px, 7.6vw, 108px); line-height: .92; letter-spacing: .01em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffb06b, #ff8fae); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.lead { max-width: 540px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions-center { justify-content: center; }
.hero-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(36px, 6vw, 72px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px; margin: 0; }
.hero-stats div { display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-stats dt { font-family: var(--font-num); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats dd { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .78); max-width: 150px; line-height: 1.35; }
.hero-pause {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .3); background: rgba(38, 12, 35, .35); color: #fff;
    font-size: 13px; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: background-color .2s;
}
.hero-pause:hover { background: rgba(38, 12, 35, .6); }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }

/* Полоска и точки из четырёх цветов логотипа */
.brand-stripe { display: flex; height: 4px; }
.brand-stripe i { flex: 1; }
.brand-stripe i:nth-child(1), .dots i:nth-child(1) { background: var(--leaf); }
.brand-stripe i:nth-child(2), .dots i:nth-child(2) { background: var(--accent); }
.brand-stripe i:nth-child(3), .dots i:nth-child(3) { background: var(--brand); }
.brand-stripe i:nth-child(4), .dots i:nth-child(4) { background: var(--raspberry); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0 0; }
.section-last { padding-bottom: clamp(56px, 7vw, 96px); }
.section-tint { margin-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); background: var(--bg-2); }
.section-tint + .section { padding-top: clamp(56px, 7vw, 96px); }
.section-catalog { padding: 32px 0 clamp(56px, 7vw, 96px); }
.section-product { padding: 24px 0 clamp(40px, 5vw, 72px); }
.section-success { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 { margin-top: 10px; font-size: clamp(40px, 4.8vw, 64px); }

/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 260px; padding: 26px; border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-text { display: grid; gap: 4px; max-width: 62%; }
.cat-text strong { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .01em; }
.cat-text small { font-weight: 700; color: var(--muted); }
.cat-desc { max-width: 56%; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.cat-img { position: absolute; z-index: -1; right: -30px; bottom: -30px; width: 54%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; transition: transform .5s var(--ease); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat-img { transform: scale(1.06) rotate(-3deg); }
.cat-go { margin-top: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; transition: background-color .2s, transform .3s var(--ease); }
.cat:hover .cat-go { background: var(--raspberry); transform: translateX(4px); }
.cat-0 { background: linear-gradient(160deg, #fff 40%, var(--accent-soft)); }
.cat-1 { background: linear-gradient(160deg, #fff 40%, var(--leaf-soft)); }
.cat-2 { background: linear-gradient(160deg, #fff 40%, var(--berry-soft)); }
.cat-3 { background: linear-gradient(160deg, #fff 40%, #fbe3df); }
.cat-4 { background: linear-gradient(160deg, #fff 40%, var(--brand-soft)); }
.cat-5 { background: linear-gradient(160deg, #fff 40%, #f7efd5); }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.is-placeholder { background: linear-gradient(145deg, #f3ede3, #e9e0d1); }
.is-placeholder img { object-fit: contain !important; padding: 14%; }
.card.is-out .card-media img { filter: grayscale(.7); opacity: .7; }
.card-flag {
    position: absolute; top: 14px; left: 14px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: var(--brand);
    font-size: 12px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.card-flag-sale { background: var(--accent); color: #fff; }
.card-flag-muted { background: var(--ink); color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 18px; gap: 6px; }
.card-cat { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--raspberry); }
.card-cat:hover { color: var(--brand); }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.card-title a:hover { color: var(--brand-2); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.card-buy { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 12px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-family: var(--font-num); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.price s { color: var(--muted); font-size: 14px; }
.price-lg strong { font-size: 34px; }
.btn-buy { min-height: 42px; padding: 0 16px; background: var(--brand); color: #fff; font-size: 14px; }
.btn-buy:hover { background: var(--raspberry); }
.btn-buy.is-added { background: var(--leaf); }
.variant-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 700; }
.variant-switch label { position: relative; }
.variant-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant-switch span { display: block; padding: 6px 4px; text-align: center; border-radius: 999px; color: var(--muted); transition: background-color .2s, color .2s; }
.variant-switch input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.variant-switch input:focus-visible + span { outline: 2px solid var(--accent); }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature h3 { margin: 18px 0 8px; font-size: 18px; }
.feature p { color: var(--muted); font-size: 14.5px; }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none; }
.fi-1 { background: var(--leaf-soft); color: #5c7d1c; }
.fi-2 { background: var(--accent-soft); color: var(--accent-2); }
.fi-3 { background: var(--berry-soft); color: var(--berry); }
.fi-4 { background: var(--brand-soft); color: var(--brand); }

/* ---------- Промо-баннер ---------- */
.promo {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 40px;
    padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(50% 90% at 100% 100%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(120deg, #d9621d, #e8792e 50%, #f09a45);
}
.promo h2 { margin: 12px 0 14px; font-size: clamp(36px, 4.4vw, 58px); }
.promo p { max-width: 620px; color: rgba(255, 255, 255, .9); }
.promo .eyebrow { color: #fff3e6; }
.promo-actions { display: flex; flex-direction: column; gap: 12px; }
.promo-flat { margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 700; font-size: 14px; }
.wholesale-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.wholesale-grid div { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .14); }
.wholesale-grid span { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* ---------- Заголовок страницы ---------- */
.page-head { padding: 36px 0 8px; }
.page-head h1 { margin: 14px 0 12px; font-size: clamp(46px, 6.2vw, 80px); }
.page-head-sm h1 { font-size: clamp(40px, 5vw, 64px); }
.lead-dark { max-width: 680px; color: var(--ink-2); font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs b { color: var(--ink); font-weight: 600; }

/* ---------- Фильтры каталога ---------- */
.filter-bar { display: grid; gap: 16px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; scroll-snap-type: x proximity; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    flex: none; scroll-snap-align: start;
    padding: 11px 18px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-weight: 700; font-size: 14.5px; transition: all .2s;
}
.cat-chip sup { margin-left: 2px; font-size: 11px; color: var(--muted); vertical-align: super; }
.cat-chip:hover { border-color: var(--brand); }
.cat-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-chip.is-active sup { color: rgba(255, 255, 255, .7); }
.filter-tools { display: grid; grid-template-columns: 1fr 230px; gap: 12px; }
.search-field, .select-field {
    display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted);
}
.search-field:focus-within, .select-field:focus-within { border-color: var(--brand); }
.search-field input, .select-field select { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; color: var(--ink); }
.select-field select { cursor: pointer; font-weight: 600; }
.result-count { margin: 22px 0 18px; color: var(--muted); font-weight: 600; }
.result-count a { color: var(--brand); text-decoration: underline; }

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: 24px; align-items: start; }
.product-gallery { position: sticky; top: 100px; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-2); aspect-ratio: 1; box-shadow: var(--shadow); }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .card-flag { top: 20px; left: 20px; font-size: 13px; padding: 8px 14px; }
.product-info h1 { margin: 10px 0 22px; font-size: clamp(42px, 5vw, 68px); }
.spec { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.spec .icon { color: var(--accent-2); margin-bottom: 6px; }
.spec span { font-size: 12.5px; color: var(--muted); }
.spec b { font-size: 15px; }
.spec .ok { color: #3f7a1f; }
.spec .off { color: var(--danger); }
.buy-box { display: grid; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.variant-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.variant-cards label { position: relative; cursor: pointer; }
.variant-cards input { position: absolute; opacity: 0; }
.variant-cards span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line); transition: border-color .2s, background-color .2s; }
.variant-cards small { color: var(--muted); font-size: 12.5px; }
.variant-cards em { font-style: normal; font-weight: 800; margin-top: 6px; }
.variant-cards input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.variant-cards input:focus-visible + span { outline: 3px solid var(--accent); }
.prose { margin-top: 24px; color: var(--ink-2); }
.composition { margin-top: 28px; }
.composition h3 { font-size: 18px; margin-bottom: 12px; }
.composition ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.composition li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.composition li::first-letter { text-transform: uppercase; }
.perks { display: grid; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.perks div { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; }
.perks .icon { color: var(--brand); margin-top: 1px; }
.perks b { color: var(--ink); }

/* ---------- Количество ---------- */
.qty { display: inline-grid; grid-template-columns: 34px 38px 34px; align-items: center; height: 38px; border-radius: 999px; background: var(--bg); }
.qty button { display: grid; place-items: center; height: 100%; border: 0; background: transparent; border-radius: 999px; color: var(--ink-2); transition: background-color .2s; }
.qty button:hover { background: var(--bg-2); }
.qty span, .qty input { text-align: center; font-weight: 800; }
.qty-lg { grid-template-columns: 48px 56px 48px; height: 52px; }
.qty input { width: 100%; border: 0; background: transparent; outline: 0; -moz-appearance: textfield; font-size: 17px; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Корзина, оформление ---------- */
.panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); border: 0; margin: 0; }
.panel-empty { max-width: 560px; margin-inline: auto; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.checkout-main { display: grid; gap: 20px; }
.cart-list { list-style: none; margin: 0 0 20px; padding: 0; }
.cart-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px 36px; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:first-child { padding-top: 0; }
.cart-thumb { width: 88px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: grid; gap: 2px; }
.cart-name { font-weight: 700; font-size: 16px; }
.cart-name:hover { color: var(--brand-2); }
.cart-sum { text-align: right; font-size: 17px; }
.summary { position: sticky; top: 100px; display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.summary h3 { font-size: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary-row.muted { color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px dashed var(--line); }
.summary-total strong { font-family: var(--font-num); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.summary-note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.summary-note .icon { color: var(--brand); margin-top: 1px; }
.summary-items { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 12px; max-height: 340px; overflow: auto; border-bottom: 1px solid var(--line); }
.summary-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.summary-thumb { position: relative; width: 52px; height: 52px; border-radius: 12px; background: var(--bg-2); }
.summary-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.summary-thumb.is-placeholder img { padding: 10%; }
.summary-thumb i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
.summary-name { display: grid; font-weight: 600; line-height: 1.3; }
.summary-name small, .mini-meta { color: var(--muted); font-size: 13px; font-weight: 500; }

fieldset.panel legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 19px; font-weight: 800; padding: 0; }
fieldset.panel legend + * { clear: both; }
.step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; }
.fields { display: grid; gap: 16px; }
.fields-2 { grid-template-columns: 1fr 1fr; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field > span:first-child { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 13px; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 52px; padding: 13px 16px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
    outline: 0; transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.has-error input, .has-error textarea { border-color: var(--danger); background: #fff8f7; }
.field-error { display: block; color: var(--danger); font-size: 13px; font-weight: 600; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.delivery-options { display: grid; gap: 10px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option-box { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border: 2px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, background-color .2s; }
.option-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg); color: var(--brand); }
.option-text { display: grid; gap: 2px; }
.option-text small { color: var(--muted); font-size: 13px; }
.option-price { font-weight: 800; white-space: nowrap; }
.option input:checked + .option-box { border-color: var(--brand); background: var(--brand-soft); }
.option input:checked + .option-box .option-icon { background: var(--brand); color: #fff; }
.option input:focus-visible + .option-box { outline: 3px solid var(--accent); }
.address-fields { margin-top: 18px; }
.address-fields[hidden] { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.check.has-error span { color: var(--danger); }

/* ---------- Заказ оформлен ---------- */
.success { text-align: center; display: grid; justify-items: center; gap: 14px; }
.success h1 { font-size: clamp(44px, 6vw, 72px); }
.success-icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--leaf); color: #fff; box-shadow: 0 20px 40px rgba(139, 177, 58, .35); animation: pop .6s var(--ease); }
.success-icon-muted { background: var(--bg-2); color: var(--muted); box-shadow: none; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.success-mail { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14.5px; }
.status-pill { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; background: #e3ecff; color: #2a4fa8; }
.order-panel { margin-top: 36px; display: grid; gap: 12px; }
.order-items { list-style: none; margin: 0 0 4px; padding: 0; }
.order-items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-items span { display: grid; font-weight: 600; }
.order-items small { color: var(--muted); font-weight: 500; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 36px; }
.steps div { display: grid; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.steps span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-weight: 800; margin-bottom: 6px; }
.steps small { color: var(--muted); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.contact-card h2, .info-blocks h2 { font-size: 34px; margin-bottom: 18px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.contact-line span:last-child { display: grid; }
.contact-line small { color: var(--muted); font-size: 13px; }
.contact-line b { font-size: 17px; }
a.contact-line:hover b { color: var(--accent-2); }
.map-card { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-sm); }
.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.info-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; scroll-margin-top: 100px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c7d1c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
#wholesale { scroll-margin-top: 100px; }

/* ---------- Пустые состояния ---------- */
.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 32px 12px; }
.empty-state-lg { padding: 64px 16px; }
.empty-state p { color: var(--muted); max-width: 340px; margin-bottom: 8px; }
.empty-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--bg-2); color: var(--muted); margin-bottom: 6px; }
.empty-state strong { font-size: 19px; }

/* ---------- Мини-корзина ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(42, 16, 38, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
    width: min(440px, 100%); display: flex; flex-direction: column;
    background: var(--bg); box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .4s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; }
.drawer-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.drawer-body .empty-state { margin: auto; }
.mini-cart { list-style: none; margin: 0; padding: 8px 24px; flex: 1; overflow-y: auto; }
.mini-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-thumb { width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-info { display: grid; gap: 3px; min-width: 0; }
.mini-name { font-weight: 700; line-height: 1.3; }
.mini-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.mini-row .qty { background: var(--surface); }
.drawer-foot { display: grid; gap: 10px; padding: 18px 24px 24px; background: var(--surface); border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.drawer-total strong { font-family: var(--font-num); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.progress-note { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding-bottom: 6px; }
.progress { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--raspberry)); transition: width .5s var(--ease); }
.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* ---------- Тост ---------- */
.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 300;
    display: flex; align-items: center; gap: 10px;
    max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 999px;
    background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg);
    transform: translate(-50%, 140%); opacity: 0; transition: transform .4s var(--ease), opacity .3s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast .icon { color: var(--leaf); }
.toast.is-error .icon { color: #ff8b7b; }

/* ---------- Подвал ---------- */
.footer { margin-top: 0; padding: 64px 0 28px; background: var(--brand-dark); color: rgba(255, 255, 255, .72); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: 14.5px; }
.footer .brand-text strong { color: #fff; }
.footer h4 { margin-bottom: 16px; color: #fff; font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer-contacts li > * { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-contacts .icon { margin-top: 3px; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Адаптив ---------- */
@media (max-width: 1440px) {
    .nav-cat { display: none; }
}
@media (max-width: 1180px) {
    .nav-cat { display: none; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
    .hero-scrim { background: linear-gradient(90deg, rgba(38, 12, 35, .88), rgba(58, 22, 54, .62)), linear-gradient(0deg, rgba(38, 12, 35, .7), rgba(38, 12, 35, 0) 45%); }
    .cats { grid-template-columns: repeat(2, 1fr); }
    .product { grid-template-columns: 1fr; }
    .product-gallery { position: relative; top: 0; max-width: 620px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
    .promo { grid-template-columns: 1fr; }
    .promo-actions { flex-direction: row; flex-wrap: wrap; }
    .contact-grid, .info-blocks { grid-template-columns: 1fr; }
    .header-search { display: none; }
    .menu-btn { display: inline-grid; }
    .nav {
        position: absolute; inset: 100% 0 auto 0; z-index: 99;
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 16px; margin: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav a { padding: 14px 16px; font-size: 16px; }
    .nav-cat { display: block; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 720px) {
    .topbar-hide-sm { display: none; }
    .header-inner { min-height: 66px; gap: 12px; }
    .brand img { width: 44px; height: 44px; border-radius: 13px; }
    .brand-text small { display: none; }
    .brand-text strong { font-size: 19px; }
    .hero { padding-top: 12px; }
    .hero-stage { min-height: 0; padding: 40px 22px 22px; border-radius: 26px; }
    .hero-scrim { background: linear-gradient(180deg, rgba(38, 12, 35, .78) 0%, rgba(58, 22, 54, .7) 55%, rgba(38, 12, 35, .9) 100%); }
    .hero-foot { flex-direction: column; align-items: stretch; gap: 14px; }
    .hero-pause { align-self: flex-start; }
    .variant-switch span { padding: 6px 2px; letter-spacing: -.01em; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .hero-stats div { padding: 12px; border-radius: 14px; }
    .hero-stats dt { font-size: 19px; white-space: nowrap; }
    .hero-stats dd { font-size: 12px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .cats { grid-template-columns: 1fr; }
    .cat { min-height: 200px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card-body { padding: 14px; }
    .card-title { font-size: 15px; }
    .card-meta span:nth-child(2) { display: none; }
    .card-foot { flex-direction: column; align-items: stretch; }
    .btn-buy { width: 100%; }
    .price strong { font-size: 18px; }
    .variant-switch { font-size: 11.5px; }
    .features { grid-template-columns: 1fr; }
    .filter-tools { grid-template-columns: 1fr; }
    .spec { grid-template-columns: 1fr 1fr; }
    .spec li:last-child { grid-column: 1 / -1; }
    .fields-2 { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 72px minmax(0, 1fr) 32px; gap: 6px 14px; }
    .cart-thumb { width: 72px; grid-row: span 2; }
    .cart-row .qty { grid-column: 2; justify-self: start; }
    .cart-sum { grid-column: 3; grid-row: 2; text-align: right; white-space: nowrap; justify-self: end; margin-left: -60px; }
    .cart-row form:last-child { grid-column: 3; grid-row: 1; }
    .option-box { grid-template-columns: 40px 1fr; }
    .option-icon { width: 40px; height: 40px; }
    .option-price { grid-column: 2; }
    .steps { grid-template-columns: 1fr; }
    .wholesale-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .promo-actions .btn { flex: 1 1 auto; }
}

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

/* ---------- Соцсети ---------- */
.topbar-right { display: inline-flex; align-items: center; gap: 14px; }
.socials { display: inline-flex; align-items: center; gap: 6px; }
.social { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.social:hover { transform: translateY(-2px); }
.socials-topbar .social { width: 26px; height: 26px; background: rgba(255, 255, 255, .12); color: #fff; }
.socials-topbar .social .icon { width: 14px; height: 14px; }
.socials-topbar .social:hover { background: var(--raspberry); }
.socials-footer { margin-top: 20px; gap: 10px; }
.socials-footer .social { width: 42px; height: 42px; background: rgba(255, 255, 255, .1); color: #fff; }
.socials-footer .social-telegram:hover { background: #229ed9; }
.socials-footer .social-whatsapp:hover { background: #25d366; }
.socials-footer .social-vk:hover { background: #0077ff; }

.messengers h2 { font-size: 34px; margin-bottom: 10px; }
.messengers p { margin: 0 0 18px; }
.messenger-list { display: grid; gap: 12px; }
.messenger {
    display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px;
    padding: 14px 18px 14px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.messenger:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: transparent; }
.messenger > span:nth-child(2) { display: grid; }
.messenger small { color: var(--muted); font-size: 13px; }
.messenger > .icon { color: var(--muted); transition: transform .2s var(--ease); }
.messenger:hover > .icon { transform: translateX(4px); color: var(--ink); }
.messenger-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; }
.messenger-telegram .messenger-icon { background: #229ed9; }
.messenger-whatsapp .messenger-icon { background: #25d366; }
.messenger-vk .messenger-icon { background: #0077ff; }

/* ---------- Партнёры ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner {
    display: grid; place-items: center; height: 140px; padding: 26px 32px;
    border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.partner img { max-height: 64px; max-width: 82%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner:hover img, .partner:focus-visible img { filter: none; opacity: 1; }

@media (max-width: 980px) {
    .partners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .topbar-inner { justify-content: space-between; font-size: 12.5px; }
    .partners { gap: 10px; }
    .partner { height: 104px; padding: 18px; }
    .partner img { max-height: 56px; }
}
@media (max-width: 480px) {
    .topbar-right > a { display: none; }
}

/* ---------- О нас в СМИ ---------- */
/* Колонки одной высоты: в более короткой растягивается главная карточка, картинка обрезается по object-fit */
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.press-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.press-col > .news-list, .press-col > .video-grid { flex: 1 1 auto; }
.press-col-title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.press-col-title .icon { color: var(--raspberry); }
.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-lg { display: flex; flex-direction: column; flex: 1 1 auto; }
.news-cover { position: relative; display: block; overflow: hidden; background: var(--bg-2); min-height: 150px; }
.news-card-lg .news-cover { flex: 1 0 auto; aspect-ratio: 16 / 9; }
.news-card-lg .news-cover img { position: absolute; inset: 0; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-date { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--brand); font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow-sm); }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.news-source { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--raspberry); }
.news-body h3 { font-size: 19px; line-height: 1.25; }
.news-card-lg .news-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; letter-spacing: .01em; }
.news-body h3 a:hover { color: var(--brand-2); }
.news-body p { color: var(--ink-2); font-size: 15px; }
.news-body .link-arrow { margin-top: 6px; }
.news-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.news-thumbs a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--bg-2); }
.news-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.news-thumbs em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(58, 22, 54, .62); color: #fff; font-style: normal; font-weight: 800; font-size: 18px; }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: stretch; }
.video-card { display: flex; flex-direction: column; padding: 0; border: 0; text-align: left; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.video-card-horizontal { grid-column: 1 / -1; }
.video-poster { position: relative; display: block; flex: 1 0 auto; overflow: hidden; background: var(--brand-dark); aspect-ratio: 16 / 9; }
.video-card-vertical .video-poster { aspect-ratio: 4 / 5; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover .video-poster img { transform: scale(1.04); }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(38, 12, 35, .55), transparent 55%); }
.video-play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--raspberry); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.video-play svg { margin-left: 3px; }
.video-card:hover .video-play { transform: scale(1.1); background: var(--raspberry); color: #fff; }
.video-duration { position: absolute; z-index: 1; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; }
.video-meta { display: grid; gap: 4px; padding: 14px 18px 18px; }
.video-meta b { font-size: 16px; line-height: 1.3; }
.video-meta small { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-grid-row { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video-grid-row .video-card-horizontal { grid-column: auto; }
.video-grid-row .video-card-vertical .video-poster { aspect-ratio: 16 / 9; }
.video-grid-row .news-card { grid-template-columns: 1fr; }
.video-grid-row .news-cover { aspect-ratio: 16 / 9; }

/* Окно просмотра */
.media-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 8, 22, .94); color: #fff; }
.media-dialog::backdrop { background: rgba(24, 8, 22, .6); }
.media-dialog[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.media-stage { display: grid; place-items: center; width: min(92vw, 1200px); height: calc(100vh - 120px); }
.media-stage video, .media-stage iframe, .media-stage img { max-width: 100%; max-height: 100%; border-radius: 16px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.media-stage iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.media-stage.is-vertical iframe { width: auto; height: 100%; aspect-ratio: 9 / 16; }
.media-image img { background: transparent; object-fit: contain; }
.media-caption { min-height: 24px; margin: 12px 0 20px; padding: 0 16px; text-align: center; font-weight: 600; color: rgba(255, 255, 255, .85); }
.media-close, .media-nav { position: fixed; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s; }
.media-close:hover, .media-nav:hover { background: rgba(255, 255, 255, .25); }
.media-close { top: 18px; right: 18px; }
.media-prev { left: 18px; top: 50%; margin-top: -26px; }
.media-next { right: 18px; top: 50%; margin-top: -26px; }

/* Страница публикации */
.container-article { max-width: 900px; }
.article-head { margin: 22px 0 28px; }
.article-head h1 { margin: 14px 0 14px; font-size: clamp(42px, 5.6vw, 72px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.article-meta > * { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 700; color: var(--brand); }
.article-meta a:hover { color: var(--raspberry); }
.article-cover { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius-lg); cursor: zoom-in; box-shadow: var(--shadow); background: var(--bg-2); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.article-body { margin-top: 32px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.article-body p + p { margin-top: 18px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags span { padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; }
.article-subtitle { margin: 44px 0 18px; font-size: 38px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--bg-2); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.article-back { margin-top: 36px; }

@media (max-width: 980px) {
    .press-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .news-card { grid-template-columns: 1fr; }
    .news-cover { aspect-ratio: 16 / 9; }
    .video-grid { gap: 10px; }
    .video-meta { padding: 12px 14px 14px; }
    .video-meta b { font-size: 14.5px; }
    .video-card-vertical .video-meta small { display: none; }
    .video-play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .article-body { font-size: 16.5px; }
    .media-nav { top: auto; bottom: 14px; margin: 0; }
    .media-stage { height: calc(100vh - 150px); }
}

/* ---------- Почему выбирают нас ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.why-media { position: relative; aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; justify-self: center; }
.why-blob {
    position: absolute; inset: 6% 0 0 10%; z-index: -1;
    border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
    background:
        radial-gradient(circle at 30% 30%, rgba(241, 136, 60, .35), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(209, 69, 108, .3), transparent 55%),
        var(--brand-soft);
}
.why-arch {
    position: absolute; left: 8%; top: 0; width: 72%; height: 88%; overflow: hidden;
    border-radius: 999px 999px 36px 36px;
    box-shadow: var(--shadow-lg); border: 6px solid #fff; background: var(--bg-2);
}
.why-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 30%; transition: transform 1.2s var(--ease); }
.why-media:hover .why-arch img { transform: scale(1.05); }
.why-stamp { position: absolute; right: 0; top: 10%; width: 34%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--raspberry); box-shadow: 0 18px 40px rgba(209, 69, 108, .35); }
.why-stamp-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.why-stamp-text text { font-family: var(--font-display); font-size: 21px; letter-spacing: .215em; fill: #fff; text-transform: uppercase; }
.why-stamp img { width: 46%; border-radius: 50%; background: #fff; padding: 6%; }
@keyframes spin { to { transform: rotate(360deg); } }
.why-note {
    position: absolute; right: 4%; bottom: 10%; display: grid; padding: 14px 18px; border-radius: 18px;
    background: #fff; box-shadow: var(--shadow); font-size: 13.5px; color: var(--muted); line-height: 1.3;
}
.why-note b { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--brand); }

.why-copy h2 { margin: 12px 0 30px; font-size: clamp(40px, 4.8vw, 64px); }
.why-list { list-style: none; margin: 0; padding: 0; counter-reset: why; }
.why-list li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-num { font-family: var(--font-display); font-size: 64px; line-height: .8; transition: transform .3s var(--ease); }
.why-list li:nth-child(1) .why-num { color: var(--leaf); }
.why-list li:nth-child(2) .why-num { color: var(--accent); }
.why-list li:nth-child(3) .why-num { color: var(--berry); }
.why-list li:nth-child(4) .why-num { color: var(--raspberry); }
.why-list li:hover .why-num { transform: translateX(6px); }
.why-list h3 { font-size: 19px; margin: 2px 0 6px; }
.why-list p { color: var(--ink-2); font-size: 15.5px; max-width: 520px; }

@media (max-width: 980px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-media { max-width: 460px; }
}
@media (max-width: 720px) {
    .why-media { max-width: 340px; }
    .why-list li { grid-template-columns: 62px 1fr; gap: 12px; padding: 18px 0; }
    .why-num { font-size: 48px; }
    .why-note { padding: 10px 14px; font-size: 12px; }
    .why-note b { font-size: 22px; }
}
