/* ECOYA — витрина. Светлая, воздушная, спокойная. */
:root {
  --bg: #FBF9F5;
  --paper: #FFFFFF;
  --sand: #F1ECE3;
  --sand-2: #E7E0D3;
  --ink: #1D1B17;
  --ink-2: #55504A;
  --muted: #8C857B;
  --line: #E8E2D8;
  --olive: #6E7A5A;
  --olive-deep: #56613F;
  --clay: #C4906E;
  --ok: #4E7C4A;
  --warn: #B8862B;
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', Roboto, system-ui, sans-serif;
  --wrap: 1280px;
  --r: 4px;
  --shadow: 0 20px 60px -20px rgba(40, 30, 15, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 999; }
.hp { position: absolute; left: -9999px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 820px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* типографика */
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); font-weight: 600; margin-bottom: 14px; }
.eyebrow--light { color: #fff; opacity: .85; }
.h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 12px; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 720px; }
.rich p, .rich li { color: var(--ink-2); font-size: 15.5px; }
.rich h2, .rich h3, .rich h4 { font-family: var(--font-display); font-size: 28px; margin: 28px 0 10px; }
.rich ul { padding-left: 18px; margin: 0 0 1em; }
.rich--page { max-width: 720px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .02em; border: 1px solid transparent; transition: .25s var(--ease); white-space: nowrap; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--olive-deep); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--link { padding-left: 0; padding-right: 0; border-radius: 0; color: var(--ink); border-bottom: 1px solid transparent; }
.btn--link:hover { border-bottom-color: var(--ink); }
.btn--lg { padding: 15px 30px; font-size: 15px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: background .2s; }
.iconbtn:hover { background: var(--sand); }

/* верхняя полоса и шапка */
.topbar { background: var(--ink); color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: .03em; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar__left, .topbar__right { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,245,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; gap: 24px; }
.header__burger { display: none; }
.header__nav, .header__pages { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.menu { position: relative; }
.menu__top { display: inline-flex; align-items: center; gap: 6px; }
.menu__drop { position: fixed; left: 0; right: 0; top: var(--header-h, 118px); background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(40,30,15,.25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease); text-transform: none; letter-spacing: 0; font-weight: 400; }
.menu:hover .menu__drop, .menu:focus-within .menu__drop { opacity: 1; visibility: visible; transform: none; }
.menu__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 28px; padding-top: 28px; padding-bottom: 32px; }
.menu__col { display: flex; flex-direction: column; gap: 5px; }
.menu__cat { font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.menu__cat small { font-size: 11px; color: var(--muted); font-family: var(--font-body); }
.menu__cat:hover { color: var(--olive-deep); }
.menu__sub { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.menu__child { font-size: 13px; color: var(--ink-2); }
.menu__child:hover { color: var(--ink); }
.menu__col--all { justify-content: flex-end; align-items: flex-start; }
.header__nav a, .header__pages a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; color: var(--ink-2); }
.header__nav a:hover, .header__pages a:hover, .header__nav a.is-active, .header__pages a.is-active { border-bottom-color: var(--ink); color: var(--ink); }
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo__word { font-family: var(--font-display); font-size: 30px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; line-height: 1; padding-left: .32em; }
.logo__tag { white-space: nowrap; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.header__tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.header__pages { margin-right: 10px; }
.cartbtn { position: relative; }
.cartbtn__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--olive); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* поиск */
.search { position: fixed; inset: 0 0 auto 0; z-index: 70; background: var(--paper); box-shadow: var(--shadow); padding: 20px 0 24px; animation: drop .3s var(--ease); }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.search__form { display: flex; gap: 10px; align-items: center; }
.search__form input { flex: 1; height: 52px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 20px; font-family: var(--font-display); padding: 0 4px; outline: 0; }
.search__suggest { margin-top: 12px; display: grid; gap: 4px; }
.search__suggest a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 6px; }
.search__suggest a:hover { background: var(--sand); }
.search__suggest img { width: 44px; height: 54px; object-fit: cover; border-radius: 3px; }
.search__suggest small { display: block; color: var(--muted); }
.search__suggest b { font-weight: 500; }
.search__suggest em { margin-left: auto; font-style: normal; font-weight: 600; }

/* выезжающие панели */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__bg { position: absolute; inset: 0; z-index: 1; background: rgba(29,27,23,.45); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer__panel { position: absolute; z-index: 2; top: 0; bottom: 0; width: min(440px, 92vw); background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: slideR .35s var(--ease); }
.drawer--left .drawer__panel { left: 0; animation-name: slideL; }
.drawer--right .drawer__panel { right: 0; }
@keyframes slideR { from { transform: translateX(40px); opacity: 0; } }
@keyframes slideL { from { transform: translateX(-40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-size: 28px; }
.drawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mnav { padding: 6px 22px 16px; overflow: auto; flex: 1; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.mnav__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 0 6px; }
.mnav__label--gap { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.mnav__root { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 16px; font-weight: 500; }
.mnav__root--all { color: var(--olive-deep); }
.mnav__root small { color: var(--muted); font-size: 12px; font-weight: 400; }
.mnav__subs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 10px; }
.mnav__subs a { font-size: 13px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); }
.mnav__page { display: block; padding: 8px 0; font-size: 15px; }
.drawer__foot--menu { padding: 14px 22px 22px; gap: 4px; }
.mnav__phone { font-weight: 600; font-size: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.drawer__foot--menu .muted { margin-top: 4px; }

/* корзина в панели */
.cart-drawer { flex: 1; overflow: auto; padding: 8px 24px; }
.cart-drawer__empty { text-align: center; padding: 60px 0; color: var(--ink-2); }
.cart-drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-drawer__total strong { font-size: 22px; font-family: var(--font-display); font-weight: 600; }
.ci { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ci img, .ci__noimg { width: 72px; height: 90px; object-fit: cover; border-radius: 3px; background: var(--sand); }
.ci__name { font-weight: 500; font-size: 14px; line-height: 1.35; display: block; margin-bottom: 4px; }
.ci__price { font-size: 13px; color: var(--muted); }
.ci__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci__sum { font-weight: 600; }
.ci__del { color: var(--muted); font-size: 12px; text-decoration: underline; }
.ci__del:hover { color: var(--ink); }
.ci__warn { font-size: 12px; color: var(--warn); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 40px; }
.qty button { width: 38px; height: 38px; font-size: 18px; color: var(--ink-2); }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; outline: 0; font-weight: 600; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 32px; }
.qty--sm button { width: 30px; height: 30px; font-size: 15px; }
.qty--sm input { width: 32px; font-size: 13px; }

/* секции */
.section { padding: 64px 0; }
.section--first { padding-top: 36px; }
.section__head { text-align: center; margin-bottom: 36px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; }
.section__head--row .btn { margin-bottom: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero__title { font-family: var(--font-display); font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 20px; text-wrap: balance; }
.hero__sub { font-size: 17px; color: var(--ink-2); max-width: 480px; margin-bottom: 30px; }
.hero__actions { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 32px; }
.hero__facts li { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.hero__facts strong { font-weight: 600; color: var(--ink); font-size: 14px; }
.hero__media { position: relative; }
.hero__media > img, .hero__placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.hero__placeholder { background: linear-gradient(160deg, var(--sand) 0%, var(--sand-2) 100%); }
.hero__chip { position: absolute; left: -36px; bottom: 44px; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); padding: 10px 16px 10px 10px; border-radius: 10px; box-shadow: var(--shadow); max-width: 300px; animation: float 7s ease-in-out infinite; }
.hero__chip img { width: 52px; height: 64px; object-fit: cover; border-radius: 5px; }
.hero__chip span { display: flex; flex-direction: column; line-height: 1.3; }
.hero__chip small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); font-weight: 700; }
.hero__chip b { font-weight: 500; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero__chip em { font-style: normal; font-weight: 700; font-size: 13px; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: float 12s ease-in-out infinite; }
.hero__blob--1 { width: 520px; height: 520px; background: #E9DFCB; top: -160px; right: -120px; }
.hero__blob--2 { width: 380px; height: 380px; background: #DDE3D2; bottom: -140px; left: 30%; animation-delay: -4s; }
.hero__blob--3 { width: 260px; height: 260px; background: #F0D9C8; top: 30%; left: -100px; animation-delay: -8s; opacity: .4; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* плитки категорий */
.cattiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cattile__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--sand); }
.cattile__media img, .cattile__ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cattile__ph { background: linear-gradient(160deg, var(--sand) 0%, var(--sand-2) 100%); }
.cattile:hover .cattile__media img { transform: scale(1.05); }
.cattile__caption { padding: 12px 2px 0; }
.cattile__caption b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.15; font-weight: 500; }
.cattile__caption small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.cattile:hover .cattile__caption b { color: var(--olive-deep); }

/* сетка и карточка товара */
.grid { display: grid; gap: 28px 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 5px; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1.2s var(--ease); }
.card__hover { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__hover { opacity: 1; }
.card:hover .card__media img:first-child { transform: scale(1.04); }
.card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 64px; color: var(--sand-2); background: linear-gradient(160deg, var(--sand) 0%, #EDE6DA 100%); }
.badge { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: #fff; color: var(--ink); }
.badge--hit { background: var(--ink); color: #fff; }
.badge--new { background: var(--olive); color: #fff; }
.badge--sale, .badge--pct { background: var(--clay); color: #fff; }
.badge--pct { left: auto; right: 12px; }
.card__avail { position: absolute; bottom: 12px; left: 12px; font-size: 11px; background: rgba(255,255,255,.9); padding: 4px 9px; border-radius: 999px; color: var(--ink-2); }
.card__avail--out { color: var(--muted); }
.is-out .card__media img { filter: grayscale(.6); opacity: .8; }
.card__body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card__name { font-size: 14.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.card__price { font-weight: 600; font-size: 15px; }
.card__price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.card__add { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; transition: .25s; }
.card__add:hover { background: var(--ink); color: #fff; }
.card__add.is-done { background: var(--olive); border-color: var(--olive); color: #fff; }

/* баннер */
.banner { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; border-radius: 8px; overflow: hidden; background: var(--olive-deep); color: #fff; }
.banner__media img, .banner__ph { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.banner__ph { background: linear-gradient(160deg, #6E7A5A, #56613F); }
.banner__text { padding: 64px 72px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.banner__text .h2 { color: #fff; }
.banner__text p { color: rgba(255,255,255,.85); max-width: 460px; font-size: 16px; }

/* ценности */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value svg { width: 30px; height: 30px; color: var(--olive); margin-bottom: 16px; }
.value h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.value p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* о магазине */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media img, .about__ph { aspect-ratio: 5 / 6; width: 100%; object-fit: cover; border-radius: 6px; }
.about__ph { background: linear-gradient(160deg, var(--sand), var(--sand-2)); }
.about__text .h2 { margin-bottom: 18px; }
.about__text p { color: var(--ink-2); font-size: 16px; margin-bottom: 26px; }

/* каталог */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 22px; letter-spacing: .02em; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { font-weight: 500; color: var(--ink-2); }
.cat-head { display: flex; align-items: baseline; gap: 16px; }
.cat-head__count { color: var(--muted); font-size: 13px; }
.cat-desc { max-width: 720px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: #fff; transition: .2s; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; padding: 18px 0; margin: 12px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters__label { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.select { height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 34px 0 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231D1B17' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 13px; }
.filters__price { display: flex; align-items: center; gap: 8px; }
.filters__price input { width: 90px; height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: #fff; font-size: 13px; -moz-appearance: textfield; }
.filters__price input::-webkit-inner-spin-button { -webkit-appearance: none; }
.filters__reset { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: underline; padding-bottom: 10px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pager a { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid transparent; font-size: 14px; }
.pager a:hover { border-color: var(--line); }
.pager a.is-active { background: var(--ink); color: #fff; }
.empty { text-align: center; padding: 60px 0; }
.empty h3 { font-family: var(--font-display); font-size: 32px; margin-bottom: 10px; }
.empty p { color: var(--ink-2); max-width: 460px; margin: 0 auto 22px; }

/* товар */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.product > * { min-width: 0; }
.gallery { position: sticky; top: 100px; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--sand); }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.gallery__main img.is-active { opacity: 1; }
.gallery__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.gallery__zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; }
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.85); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s; }
.gallery__main:hover .gallery__arrow { opacity: 1; }
.gallery__arrow--prev { left: 12px; } .gallery__arrow--next { right: 12px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { flex: 0 0 68px; height: 84px; border-radius: 4px; overflow: hidden; border: 1px solid transparent; opacity: .7; transition: .2s; padding: 0; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; border-color: var(--ink); }
.product__cat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.product__title { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin: 8px 0 6px; text-wrap: balance; }
.product__sku { font-size: 12px; color: var(--muted); }
.product__price { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; }
.product__price-now { font-size: 30px; font-weight: 600; font-family: var(--font-display); }
.product__price s { color: var(--muted); }
.product__price .badge { position: static; }
.avail { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 18px; color: var(--ink-2); }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.avail--pre i { background: var(--warn); } .avail--out i { background: var(--muted); }
.avail small { color: var(--muted); }
.product__short { color: var(--ink-2); font-size: 15.5px; margin-bottom: 20px; }
.product__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.product__add { flex: 1; min-width: 160px; }
.product__perks { list-style: none; padding: 16px 20px; margin: 0 0 28px; background: var(--sand); border-radius: 6px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; }
.product__perks b { font-weight: 600; color: var(--ink); }
.specs { margin-bottom: 26px; }
.specs .h3, .product__desc .h3 { margin-bottom: 12px; font-size: 22px; }
.specs dl { margin: 0; }
.specs dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }

/* корзина-страница */
.cart-page { margin-top: 16px; }
.cart-page__empty { padding: 40px 0; color: var(--ink-2); }
.cart-page .ci { grid-template-columns: 96px 1fr auto; padding: 18px 0; }
.cart-page .ci img, .cart-page .ci__noimg { width: 96px; height: 120px; }
.cart-page__foot { margin-top: 24px; display: grid; gap: 12px; justify-items: start; }
.cart-page__total { display: flex; gap: 24px; align-items: baseline; font-size: 15px; }
.cart-page__total strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; }

/* оформление */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; margin-top: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-family: var(--font-display); font-size: 24px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field > span small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; background: #fff; outline: 0; transition: border-color .2s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.is-error input { border-color: #C0392B; }
.field__hint { font-size: 12px; color: #C0392B; margin-top: 4px; }
.field__err { background: #FBEDEA; color: #8E2B20; padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 14px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; background: #fff; }
.radios input { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; left: 0; top: 0; pointer-events: none; }
.radios i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink-2); }
.radios input:checked + i { background: var(--ink); box-shadow: inset 0 0 0 3px #fff; border-color: var(--ink); }
.radios label:has(input:checked) { border-color: var(--ink); }
.delivery-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.delivery-opt { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; transition: .2s; }
.delivery-opt:has(input:checked) { border-color: var(--ink); background: var(--sand); }
.delivery-opt input { accent-color: var(--ink); }
.delivery-opt span { display: flex; flex-direction: column; }
.delivery-opt b { font-weight: 600; font-size: 14px; }
.delivery-opt small { color: var(--muted); font-size: 12.5px; }
.fineprint { font-size: 12px; color: var(--muted); margin-top: 12px; }
.checkout__summary { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; position: sticky; top: 100px; }
.checkout__summary .h3 { margin-bottom: 8px; }
.summary .ci { grid-template-columns: 56px 1fr auto; padding: 10px 0; }
.summary .ci img, .summary .ci__noimg { width: 56px; height: 70px; }
.summary__rows { margin-top: 12px; display: grid; gap: 8px; font-size: 14px; }
.summary__rows div { display: flex; justify-content: space-between; }
.summary__total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; }
.summary__total b { font-family: var(--font-display); font-size: 24px; }

/* спасибо */
.thanks { text-align: center; padding: 20px 0 40px; }
.thanks__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--olive); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.thanks .lead { margin: 0 auto 28px; }
.thanks__box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; text-align: left; margin-bottom: 20px; }
.thanks__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.thanks__row--total { border: 0; font-size: 16px; padding-top: 12px; }
.thanks__meta { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* контакты */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.contacts__phones { display: grid; gap: 6px; }
.contacts__big { font-family: var(--font); font-size: 22px; font-weight: 600; letter-spacing: -.01em; display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delivery-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }

/* модалка и лайтбокс */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__bg { position: absolute; inset: 0; background: rgba(29,27,23,.5); animation: fade .3s; }
.modal__panel { position: relative; background: #fff; border-radius: 12px; padding: 32px; width: min(440px, 100%); box-shadow: var(--shadow); animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal .h3 { margin-bottom: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(20,18,15,.92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 16px; right: 16px; color: #fff; }
.lightbox__close:hover { background: rgba(255,255,255,.15); }

/* тост */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); animation: pop .3s var(--ease); display: flex; gap: 14px; align-items: center; }
.toast a { text-decoration: underline; }

/* футер */
.footer { background: var(--sand); margin-top: 40px; border-top: 1px solid var(--line); }
.footer__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer__col h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.footer__col a:hover { color: var(--ink); }
.footer__col p { font-size: 14px; color: var(--ink-2); }
.footer__brand p { max-width: 320px; margin: 14px 0 18px; }
.footer__soc { display: flex; gap: 14px; }
.footer__soc a { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink) !important; }
.footer__phone { font-family: var(--font); font-weight: 600; font-size: 18px !important; color: var(--ink) !important; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 2px 0 !important; }
.footer__phone:last-of-type { margin-bottom: 8px; }
.nowrap { white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }

/* появление */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* адаптив */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .header__nav { gap: 14px; font-size: 11px; }
  .header__pages { display: none; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 18px; }
  .topbar { font-size: 11.5px; }
  .topbar__right { display: none; }
  .header__in { grid-template-columns: auto 1fr auto; height: 60px; gap: 8px; }
  .header__burger { display: inline-flex; }
  .header__nav { display: none; }
  .logo { align-items: flex-start; }
  .logo__word { font-size: 21px; letter-spacing: .26em; padding-left: 0; }
  .logo__tag { display: none; }
  .header__phone { display: none; }
  .section { padding: 40px 0; }
  .section--first { padding-top: 22px; }
  .section__head { margin-bottom: 22px; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 30px; }
  .eyebrow { margin-bottom: 8px; }
  .lead { font-size: 15px; }
  .crumbs { font-size: 12px; margin-bottom: 12px; }
  /* главный экран */
  .hero { padding: 28px 0 40px; }
  .hero__in { grid-template-columns: 1fr; gap: 26px; }
  .hero__title { font-size: clamp(34px, 9.5vw, 46px); margin-bottom: 14px; }
  .hero__sub { font-size: 15px; margin-bottom: 20px; }
  .hero__actions { flex-wrap: wrap; gap: 6px 16px; margin-bottom: 0; }
  .hero__actions .btn--lg { height: 50px; padding: 0 26px; }
  .hero__facts { display: none; }
  .hero__media > img, .hero__placeholder { aspect-ratio: 4 / 3; }
  .hero__chip { left: 10px; bottom: 10px; max-width: 250px; padding: 8px 12px 8px 8px; }
  .hero__chip img { width: 44px; height: 54px; }
  .hero__blob { display: none; }
  /* сетки */
  .grid { gap: 22px 12px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card__add { opacity: 1; }
  .cattiles { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .cattile__media { aspect-ratio: 1 / 1; }
  .cattile__caption { padding-top: 10px; }
  .cattile__caption b { font-size: 19px; }
  .cattile__caption small { font-size: 12px; }
  .menu__drop { display: none; }
  .banner { grid-template-columns: 1fr; min-height: 0; }
  .banner__text { padding: 28px 22px 32px; }
  .values { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 28px; padding-bottom: 28px; }
  .value svg { width: 24px; height: 24px; margin-bottom: 10px; }
  .value h3 { font-size: 15px; margin-bottom: 4px; }
  .value p { font-size: 13px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  /* товар */
  .product { grid-template-columns: 1fr; gap: 22px; }
  .gallery { position: static; margin: 0 -18px; }
  .gallery__main { border-radius: 0; aspect-ratio: 1 / 1; }
  .gallery__thumbs { padding: 0 18px 4px; }
  .gallery__arrow { opacity: 1; }
  .product__title { font-size: 26px; }
  .product__buy { flex-wrap: wrap; }
  .checkout { grid-template-columns: 1fr; gap: 24px; }
  .checkout__summary { position: static; order: -1; }
  .footer__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 40px; padding-bottom: 28px; }
  .contacts { grid-template-columns: 1fr; gap: 20px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* каталог: фильтры компактнее */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 10px -18px 4px; padding: 4px 18px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; margin: 8px 0 20px; }
  .filters__group--price { grid-column: 1 / -1; }
  .filters__price input { width: 100%; }
  .filters__reset { margin-left: 0; grid-column: 1 / -1; padding-bottom: 0; }
  .search__form input { font-size: 17px; }
}
@media (max-width: 480px) {
  .card__name { font-size: 13.5px; }
  .card__price { font-size: 14px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__col--contacts { grid-column: 1 / -1; }
  .footer__col a { padding: 3px 0; }
  .footer__bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
  .cart-page .ci { grid-template-columns: 72px 1fr; }
  .cart-page .ci img, .cart-page .ci__noimg { width: 72px; height: 90px; }
  .cart-page .ci__right { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .product__buy .btn { width: 100%; }
  .values { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .drawer__panel { width: min(360px, 88vw); }
}
