/* Кии Григорьева — тёмное сукно, латунь и слоновая кость (имена переменных --lavender* остались от темы-основы и означают латунь) */
:root {
  --bg: #0e1512;
  --bg-2: #121c17;
  --surface: #17231d;
  --surface-2: #1e2d25;
  --line: #2c3d33;
  --line-strong: #46594c;
  --text: #f2ecdd;
  --muted: #a9b3a6;
  --lavender: #c9a25a;          /* Латунь */
  --lavender-light: #e6cb8f;
  --lavender-deep: #9a7836;
  --on-lavender: #1d1508;
  --danger: #ff9bb0;
  --ok: #a6e3c6;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Onest", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #1f3a2c 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--lavender-light); text-decoration: none; }
a:hover { color: #fff; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: 64px 0; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Шапка --- */
#site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 21, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; letter-spacing: .28em; color: var(--lavender-light); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }

.search { position: relative; margin-left: auto; flex: 0 1 280px; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input[type=search] { padding: 10px 14px 10px 40px; border-radius: 999px; font-size: .92rem; background: var(--bg-2); }
.search input::-webkit-search-cancel-button { filter: invert(.7); }

/* подсказки поиска */
.suggest { position: absolute; top: calc(100% + 8px); right: 0; width: max(100%, 380px); z-index: 60; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); padding: 6px; max-height: min(70vh, 480px); overflow: auto; }
.suggest-note { font-size: .82rem; color: var(--muted); padding: 8px 10px 6px; }
.suggest-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; }
.suggest-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.suggest-item:hover, .suggest-item.active, .suggest-all:hover, .suggest-all.active { background: var(--surface-2); }
.suggest-art { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.suggest-art svg { width: 100%; height: 100%; }
.suggest-text { display: grid; gap: 2px; min-width: 0; }
.suggest-name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-name mark { background: none; color: var(--lavender-light); text-decoration: underline; text-underline-offset: 3px; }
.suggest-meta { font-size: .78rem; color: var(--muted); }
.suggest-price { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.suggest-all { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); margin-top: 4px; padding: 10px; border-radius: 0 0 10px 10px; color: var(--lavender-light); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip-sm { padding: 5px 12px; font-size: .85rem; margin: 4px 2px 0; }
.popular-title { margin: 12px 0 0; font-family: var(--serif); font-size: 1.6rem; }

.header-icons { display: flex; gap: 8px; }
.icon-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line); border-radius: 50%; transition: border-color .2s; }
.icon-link svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-link:hover, .icon-link[aria-current] { border-color: var(--lavender); color: var(--text); }
.icon-link .dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.icon-link .count { position: absolute; top: -4px; right: -6px; background: var(--lavender); color: var(--on-lavender); font-weight: 700; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* --- Подвал --- */
#site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 40px 0 24px; }
.footer-inner h4 { margin: 0 0 10px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.footer-inner a, .footer-inner span { display: block; margin-bottom: 6px; font-size: .95rem; }
.footer-bottom { padding: 16px 0 28px; font-size: .85rem; border-top: 1px solid var(--line); }

/* --- Кнопки и поля --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--sans);
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--lavender); color: var(--on-lavender); cursor: pointer;
  transition: background .2s, transform .1s, border-color .2s;
}
.btn:hover { background: var(--lavender-light); color: var(--on-lavender); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--lavender); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: .88rem; color: var(--muted); }
.field .req { color: var(--lavender); }
input[type=text], input[type=tel], input[type=email], input[type=search], input[type=date], input[type=number], input[type=password],
input[type=file], input[type=color], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px rgba(201, 162, 90, .18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: .82rem; min-height: 0; }
.field:not(.invalid) .error-text { display: none; }
.hint { font-size: .82rem; color: var(--muted); }

/* --- Главная --- */
.hero { position: relative; padding: 80px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 90, .16), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--lavender); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--lavender-light); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; }
.hero-jar { display: block; animation: float 6s ease-in-out infinite; }
.hero-jar:nth-child(1) { animation-delay: -1s; }
.hero-jar:nth-child(2) { transform: translateY(-24px) scale(1.14); animation-name: float-mid; animation-delay: -3s; }
.hero-jar:nth-child(3) { animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-mid { 0%, 100% { transform: translateY(-24px) scale(1.14); } 50% { transform: translateY(-38px) scale(1.14); } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--lavender-light); line-height: 1.1; }
.hero-stats span { font-size: .82rem; color: var(--muted); }
.sprig { position: absolute; width: 90px; opacity: .35; pointer-events: none; transform-origin: bottom center; animation: sway 9s ease-in-out infinite; }
.sprig-1 { right: 3%; bottom: -40px; height: 360px; }
.sprig-2 { right: 9%; bottom: -60px; height: 300px; animation-delay: -4s; opacity: .25; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.benefits { border-block: 1px solid var(--line); background: var(--bg-2); }
.benefits-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px 0; }
.benefits-inner div { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.benefits svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--lavender); stroke-width: 1.5; stroke-linejoin: round; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.section-sm { padding: 48px 0 0; }
.search-info { margin: -8px 0 20px; color: var(--muted); }

/* появление при прокрутке */
.reveal { opacity: 0; }
.reveal.visible { opacity: 1; animation: rise .6s ease var(--d, 0ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; flex: 1; }
.testimonial figcaption { font-size: .88rem; color: var(--muted); }
.testimonial figcaption b { color: var(--text); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed=true] { background: var(--lavender); border-color: var(--lavender); color: var(--on-lavender); font-weight: 600; }
.toolbar select { width: auto; padding: 9px 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-art { padding: 18px 30px 0; aspect-ratio: 5 / 5; display: grid; place-items: center; }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .78rem; color: var(--lavender); text-transform: uppercase; letter-spacing: .12em; }
.card h3 a { color: var(--text); }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* вся карточка кликабельна */
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.card-foot .btn { position: relative; z-index: 1; }
.price { font-weight: 700; font-size: 1.15rem; }
.price-wrap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.old-price { color: var(--muted); font-weight: 500; font-size: .85em; text-decoration-thickness: 1px; }
.suggest-price .old-price { display: block; text-align: right; font-size: .75rem; }
.badge-sale { background: var(--lavender-light); }
.product-price .old-price { font-size: 1.1rem; margin-left: 10px; }
.sale-note { display: block; font-size: .9rem; font-weight: 600; color: var(--lavender-light); margin-top: 4px; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--lavender); color: var(--on-lavender); font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }

.card-art svg { transition: transform .35s ease; }
.card:hover .card-art svg { transform: translateY(-6px) rotate(-2deg); }

/* фото товара вместо рисунка (загружается в панели) */
.product-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-art:has(.product-photo) { padding: 0; overflow: hidden; }
.card-art .product-photo { transition: transform .4s ease; }
.card:hover .card-art .product-photo { transform: scale(1.04); }
.product-art:has(.product-photo) { padding: 0; overflow: hidden; }
.product-art .product-photo { aspect-ratio: 5 / 6; border-radius: 27px; }
.thumb:has(.product-photo), .suggest-art:has(.product-photo) { padding: 0; overflow: hidden; }
.thumb .product-photo { aspect-ratio: 5 / 6; border-radius: inherit; }
.empty .art .product-photo { aspect-ratio: 5 / 6; border-radius: 16px; }

/* избранное */
.fav-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(14, 21, 18, .6); border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.fav-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; transition: fill .2s; }
.fav-btn:hover { color: var(--lavender-light); border-color: var(--lavender); }
.fav-btn[aria-pressed=true] { color: var(--lavender); border-color: var(--lavender-deep); }
.fav-btn[aria-pressed=true] svg { fill: currentColor; }
.fav-btn.on-card { position: absolute; top: 12px; right: 12px; z-index: 2; }
.fav-btn.pop { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }

/* рейтинг */
.stars { --r: 0; display: inline-block; letter-spacing: 2px; font-size: 1rem; line-height: 1;
  background: linear-gradient(90deg, var(--lavender) calc(var(--r) / 5 * 100%), var(--line-strong) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; flex-wrap: wrap; }
.rating b { font-weight: 700; }
a.rating-link { color: inherit; }
a.rating-link:hover .muted { color: var(--text); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature h3 { color: var(--lavender-light); }
.feature-num { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--line-strong); margin-bottom: 14px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* --- Карточка товара --- */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 28px 0 8px; }
.breadcrumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-bottom: 40px; }
.product-art { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px 70px; }
.product-art .fav-btn.on-card { top: 18px; right: 18px; width: 46px; height: 46px; }

/* отзывы */
.reviews-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.rating-box { position: sticky; top: 92px; text-align: center; }
.rating-big { font-family: var(--serif); font-size: 3.6rem; font-weight: 600; line-height: 1; color: var(--lavender-light); }
.rating-box .stars { font-size: 1.3rem; margin: 8px 0 4px; }
.rating-box .btn { margin-top: 20px; }
.small { font-size: .82rem; }
.dist { margin-top: 18px; display: grid; gap: 6px; text-align: left; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 20px; gap: 10px; align-items: center; font-size: .85rem; }
.dist-row .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.dist-row .bar span { display: block; height: 100%; background: var(--lavender); border-radius: 3px; }
.review-list { display: grid; gap: 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.review.pending { border-style: dashed; border-color: var(--lavender-deep); }
.review header { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.review p { margin: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--lavender-light); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.tag { display: inline-block; margin-top: 12px; font-size: .78rem; color: var(--lavender); background: var(--bg-2); border-radius: 999px; padding: 4px 10px; }
.review-form { display: grid; gap: 16px; margin-bottom: 14px; }
.review-form h3 { margin: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* звёзды-кнопки: в разметке идут 5→1, при row-reverse подсвечиваются все слева от выбранной */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: var(--line-strong); cursor: pointer; transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--lavender); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--lavender); outline-offset: 2px; border-radius: 4px; }
.product-price { font-size: 1.8rem; font-weight: 700; margin: 8px 0 20px; }
.product-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
details.info { border-top: 1px solid var(--line); padding: 14px 0; }
details.info summary { cursor: pointer; font-weight: 600; }
details.info p { margin: 10px 0 0; color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { background: transparent; border: 0; color: var(--text); width: 40px; height: 44px; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; padding: 0; border-radius: 0; -moz-appearance: textfield; }
.qty input:focus { box-shadow: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* --- Шаги оформления --- */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 28px 0 24px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); margin-right: 4px; }
.steps .num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: .8rem; }
.steps .done .num { background: var(--surface-2); color: var(--lavender); border-color: var(--lavender-deep); }
.steps .current { color: var(--text); font-weight: 600; }
.steps .current .num { background: var(--lavender); color: var(--on-lavender); border-color: var(--lavender); }

/* --- Корзина и оформление --- */
.layout-2 { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel + .panel { margin-top: 18px; }
.layout-2 > .panel + .panel { margin-top: 0; }
.panel h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.panel h2 .n { font-family: var(--sans); font-size: .85rem; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--lavender); display: grid; place-items: center; flex: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.stack { display: grid; gap: 16px; }

.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item .thumb { background: var(--bg-2); border-radius: 14px; padding: 6px 12px; }
.cart-item h3 { font-size: 1.2rem; margin: 0; }
.cart-item h3 a { color: var(--text); }
.cart-item .controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .88rem; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--danger); }
.cart-item .sum { font-weight: 700; white-space: nowrap; }

.summary { position: sticky; top: 92px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 1.25rem; font-weight: 700; }
.summary .discount { color: var(--ok); }
.summary .mini { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; padding: 6px 0; }
.summary .mini .thumb { background: var(--bg-2); border-radius: 10px; padding: 2px 6px; }
.summary .mini .q { color: var(--muted); font-size: .82rem; }
.summary .items { max-height: 260px; overflow: auto; margin-bottom: 12px; padding-right: 4px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.free-note { font-size: .85rem; color: var(--muted); background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 12px; }
.progress { height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--lavender); }

.promo { display: flex; gap: 8px; margin-top: 14px; }
.promo input { text-transform: uppercase; }
.promo-msg { font-size: .85rem; margin-top: 6px; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.err { color: var(--danger); }

/* выбор способа (доставка / оплата) */
.options { display: grid; gap: 10px; }
.option { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.option:hover { border-color: var(--line-strong); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); margin-top: 2px; display: grid; place-items: center; }
.option input:checked ~ .dot { border-color: var(--lavender); }
.option input:checked ~ .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lavender); }
.option:has(input:checked) { border-color: var(--lavender); background: var(--surface-2); }
.option input:focus-visible ~ .dot { outline: 2px solid var(--lavender); outline-offset: 3px; }
.option .title { font-weight: 600; }
.option .sub { font-size: .85rem; color: var(--muted); }
.option .cost { font-weight: 600; white-space: nowrap; }
.option.disabled { opacity: .45; cursor: not-allowed; }
.option-grid { grid-template-columns: repeat(3, 1fr); }
.option-grid .option { grid-template-columns: 22px 1fr; }

.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slots label { cursor: pointer; }
.slots input { position: absolute; opacity: 0; }
.slots span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted); }
.slots input:checked + span { border-color: var(--lavender); color: var(--text); background: var(--surface-2); }
.slots input:focus-visible + span { outline: 2px solid var(--lavender); outline-offset: 2px; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--lavender); margin-top: 2px; flex: none; }
.form-error { background: rgba(255, 155, 176, .1); border: 1px solid var(--danger); color: var(--danger); padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 14px; font-size: .92rem; }
.legal { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.empty { text-align: center; padding: 60px 20px; }
.empty .art { width: 160px; margin: 0 auto 20px; opacity: .8; }

/* страница успеха */
.success { max-width: 720px; margin: 40px auto; text-align: center; }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--lavender); color: var(--on-lavender); display: grid; place-items: center; margin: 0 auto 20px; }
.success .order-no { font-size: 1.1rem; color: var(--lavender-light); letter-spacing: .06em; }
.success .panel { text-align: left; margin-top: 28px; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.notice { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .88rem; color: var(--muted); margin-top: 18px; }

/* статус оплаты на странице заказа */
.pay-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); }
.pay-box span { color: var(--muted); font-size: .92rem; }
.pay-box .btn { margin-top: 6px; }
.pay-box.ok { border-color: var(--ok); }
.pay-box.ok b { color: var(--ok); }
.pay-box.warn { border-color: var(--lavender); }

/* пункт выдачи: поле + кнопка карты */
.point-row { display: flex; gap: 10px; }
.point-row input { flex: 1; }
.point-row .btn { flex: none; }

/* модальное окно (карта СДЭК) */
.modal { width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(6, 10, 8, .7); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.4rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: var(--lavender); }
/* выбор пункта СДЭК списком */
.modal#cdek-modal, .modal#cdek-picker { width: min(640px, calc(100% - 32px)); }
.pvz-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; height: min(640px, calc(100vh - 120px)); }
.pvz-cities { display: grid; gap: 6px; overflow: auto; }
.pvz-city { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: 12px 14px; font: inherit; cursor: pointer; }
.pvz-city:hover, .pvz-city:focus-visible { border-color: var(--lavender); }
#pvz-step2, .pvz-step2 { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
#pvz-step2[hidden], .pvz-step2[hidden] { display: none; }
.pvz-bar { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.pvz-bar b { font-size: 1.1rem; }
.pvz-price { color: var(--lavender); font-weight: 600; }
.pvz-price:empty { display: none; }

/* расчёт доставки в корзине */
.ship-calc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ship-calc label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.ship-calc .hint { margin: 8px 0 0; font-size: .9rem; min-height: 1.3em; }
.ship-calc .hint .err { color: var(--danger); }
.pvz-list { display: grid; gap: 8px; overflow: auto; min-height: 0; flex: 1; padding-right: 4px; align-content: start; }
.pvz-item { text-align: left; display: grid; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 12px 14px; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.pvz-item:hover, .pvz-item:focus-visible { border-color: var(--lavender); background: var(--surface-2); }
.pvz-addr { font-weight: 600; }
.pvz-meta, .pvz-hours { font-size: .84rem; color: var(--muted); }
.pvz-status { margin: 0; }

/* уведомление */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--surface-2); border: 1px solid var(--lavender-deep); color: var(--text); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); transition: .25s; z-index: 50; font-size: .95rem; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { margin-left: 8px; font-weight: 600; }

.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* приложение на телефоне (PWA) */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--lavender-deep); border-radius: 18px; padding: 10px 10px 10px 12px; box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform .35s ease; }
.install-banner.show { transform: none; }
.install-banner img { border-radius: 11px; }
.install-banner div { display: grid; line-height: 1.25; min-width: 0; }
.install-banner b, .install-banner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-banner span { font-size: .8rem; color: var(--muted); }
.install-close { position: absolute; top: -10px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.install-banner b { font-size: .95rem; }
.install-modal { width: min(440px, calc(100% - 32px)); }
.install-body { padding: 20px; text-align: center; }
.install-body img { border-radius: 18px; margin: 0 auto 14px; display: block; }
.install-body p { color: var(--muted); }
.install-steps { text-align: left; display: grid; gap: 10px; padding-left: 22px; margin: 16px 0 4px; }
@media (prefers-reduced-motion: reduce) { .install-banner { transition: none; } }
@media (max-width: 640px) { .modal.install-modal { height: auto; max-height: calc(100vh - 32px); width: calc(100% - 32px); margin: auto; border-radius: var(--radius); } }

.btn .spinner { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }

/* --- Личный кабинет --- */
.account-main { padding-top: 32px; padding-bottom: 40px; min-height: 60vh; }
.auth-box { max-width: 460px; margin: 20px auto; }
.auth-box h1 { font-size: 2.2rem; margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 14px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--text); }
.tab[aria-selected=true] { color: var(--text); border-bottom-color: var(--lavender); }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-links .link-btn:hover { color: var(--lavender-light); }
.form-msg { margin: 0; font-size: .9rem; }
.form-msg.err, .err { color: var(--danger); }
.form-msg.ok, .ok-text { color: var(--ok); }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.account-head h1 { margin: 0 0 4px; }
.account-tabs { margin-top: 16px; }
.pill-sm { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: .75rem; text-align: center; }
.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.account-grid h2 { font-size: 1.4rem; margin: 0; }
.order-card-head, .order-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-items { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; }
.order-meta { display: grid; gap: 4px; font-size: .92rem; margin-bottom: 14px; }
.order-total b { font-size: 1.15rem; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); white-space: nowrap; }
.s-new { background: var(--lavender); color: var(--on-lavender); border-color: var(--lavender); }
.s-confirmed { color: var(--lavender-light); border-color: var(--lavender-deep); }
.s-paid { color: var(--ok); border-color: var(--ok); }
.s-shipped { color: #9cc8ff; border-color: #6b8fbf; }
.s-delivered { color: var(--muted); }
.s-cancelled { color: var(--danger); border-color: var(--danger); opacity: .8; }
.label-sm { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sessions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.small { font-size: .82rem; }
.danger-details summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.danger-details[open] summary { margin-bottom: 10px; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.checkout-login { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; margin-bottom: 16px; }

/* --- Адаптив --- */
@media (max-width: 960px) {
  .account-grid { grid-template-columns: 1fr; }
  .layout-2 { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product-art { padding: 24px 60px; max-width: 480px; margin: 0 auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .features, .testimonials { grid-template-columns: 1fr; }
  .benefits-inner { grid-template-columns: 1fr 1fr; }
  .reviews-layout { grid-template-columns: 1fr; }
  .rating-box { position: static; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px 16px; }
  .header-icons { margin-left: auto; }
  .search { order: 3; flex: 1 1 100%; margin-left: 0; }
  .suggest { width: 100%; }
  .hero { padding: 40px 0 44px; }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 1.5rem; }
  .sprig { display: none; }
  .benefits-inner div { font-size: .82rem; gap: 8px; }
  .benefits svg { width: 22px; height: 22px; }
  .row, .row-3, .option-grid { grid-template-columns: 1fr; }
  .point-row { flex-direction: column; }
  .modal { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; max-width: none; }
  .modal#cdek-modal, .modal#cdek-picker { width: 100%; }
  .pvz-body { height: calc(100vh - 70px); padding: 14px 16px; }
  .panel { padding: 20px 16px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item .sum { grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .dl dd { margin-bottom: 8px; }
  .steps li + li::before { width: 12px; }
  .section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --- Магазин киёв: дополнения к базовой теме --- */
.logo { display: inline-flex; flex-direction: column; line-height: 1; font-size: 1.45rem; letter-spacing: .2em; }
.logo small { font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.hero::before { background: radial-gradient(circle, rgba(47, 106, 75, .35), transparent 65%); }
.hero h1 { max-width: 12ch; }
.hero-art { gap: 0; }
.hero-jar svg { width: 100%; height: auto; }
.card-art { padding: 6px 14px 0; }
.card-art svg { width: 100%; height: auto; }
.product-art { padding: 20px 40px; }

/* проданный кий: рисунок приглушён, цена зачёркнута */
.badge-sold { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-strong); }
.is-sold .card-art, .product-art.is-sold svg, .product-art.is-sold .product-photo { filter: grayscale(.85); opacity: .55; }
.price-sold { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.price-note { font-size: .98rem; font-weight: 600; color: var(--lavender-light); }
.product-price.price-note { font-size: 1.3rem; }
.product-actions + .hint { margin: -8px 0 18px; }

/* характеристики кия */
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 12px 0 0; }
.specs dt { color: var(--muted); font-size: .92rem; }
.specs dd { margin: 0; font-weight: 500; }
.specs dd.wide { grid-column: 1 / -1; font-weight: 400; color: var(--muted); }

/* блок о мастере */
.master { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 48px; align-items: center; }
.master-photo svg, .master-photo img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); }
.master .eyebrow, .request-side .eyebrow { color: var(--lavender); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.master .lead { font-size: 1.12rem; }
.features-4 { grid-template-columns: repeat(4, 1fr); }
.feature-num { color: var(--lavender-deep); }

/* призыв оставить заявку */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; background: linear-gradient(120deg, #1b3a2b, var(--surface)); border: 1px solid var(--line-strong); border-radius: 24px; padding: 32px 36px; }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; }

/* страница заявки */
.request-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.request-side { position: sticky; top: 96px; }
.request-side ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.type-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-options label { display: block; cursor: pointer; }
.type-options input { position: absolute; opacity: 0; }
.type-options span { display: block; text-align: center; padding: 12px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); font-weight: 600; font-size: .92rem; transition: border-color .2s, background .2s; }
.type-options input:checked + span { border-color: var(--lavender); background: rgba(201, 162, 90, .12); color: var(--lavender-light); }
.type-options input:focus-visible + span { box-shadow: 0 0 0 3px rgba(201, 162, 90, .25); }
.request-done { text-align: center; padding: 40px 24px; }
.request-done .check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(201, 162, 90, .14); color: var(--lavender-light); }

@media (max-width: 960px) {
  .master { grid-template-columns: 1fr; gap: 24px; }
  .master-photo { max-width: 240px; }
  .features-4 { grid-template-columns: 1fr 1fr; }
  .request-layout { grid-template-columns: 1fr; }
  .request-side { position: static; }
}
@media (max-width: 640px) {
  .features-4, .type-options { grid-template-columns: 1fr; }
  .cta { padding: 24px 20px; }
  .product-art { padding: 14px 24px; }
  .logo { font-size: 1.2rem; }
}
.panel + .panel.request-side { margin-top: 0; }
.hero h1 { max-width: 14ch; }
.card-foot .btn { white-space: nowrap; }
.is-sold .card-foot { flex-wrap: wrap; gap: 8px; }
/* фото киёв вертикальные 3:4 — показываем целиком */
.card-art:has(.product-photo) { aspect-ratio: 3 / 4; border-radius: var(--radius) var(--radius) 0 0; }
.product-art .product-photo, .thumb .product-photo, .empty .art .product-photo { aspect-ratio: 3 / 4; }

/* =====================================================================
   ВАРИАНТЫ ОФОРМЛЕНИЯ (временно, пока выбирается стиль; см. js/style-pick.js)
   1 «Классика» — базовый вид выше. Цвета общие; ниже меняются шрифты, кнопки, первый экран.
   ===================================================================== */
.hero-photos { display: none; }
.style-picker { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  background: rgba(14, 21, 18, .94); border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px 10px; font: 500 13px/1 Arial, sans-serif; color: #a9b3a6; max-width: calc(100% - 24px); }
.style-picker button { font: inherit; color: #f2ecdd; background: transparent; border: 1px solid #46594c; border-radius: 9px; padding: 8px 11px; cursor: pointer; }
.style-picker button[aria-pressed="true"] { background: #c9a25a; border-color: #c9a25a; color: #1d1508; font-weight: 700; }
@media print { .style-picker { display: none; } }

/* ---------- 2 «Клуб»: гравированные заглавные, прямоугольные кнопки, первый экран — витрина из фото ---------- */
html[data-style="2"] { --serif: "Forum", "Times New Roman", serif; --sans: "Jost", "Segoe UI", Arial, sans-serif; --radius: 4px; --radius-sm: 3px; }
html[data-style="2"] h1, html[data-style="2"] h2, html[data-style="2"] h3 { font-weight: 400; letter-spacing: .03em; }
html[data-style="2"] h1, html[data-style="2"] h2 { text-transform: uppercase; }
html[data-style="2"] .logo { font-weight: 400; letter-spacing: .32em; }
html[data-style="2"] .btn { border-radius: 2px; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 600; padding: 15px 26px; }
html[data-style="2"] .btn-sm { padding: 11px 14px; font-size: .72rem; letter-spacing: .1em; }
html[data-style="2"] .btn-ghost { border-color: var(--lavender); color: var(--lavender-light); }
html[data-style="2"] .chip, html[data-style="2"] .badge, html[data-style="2"] .search input[type=search] { border-radius: 2px; }
html[data-style="2"] .icon-link { border-radius: 2px; }
html[data-style="2"] .card, html[data-style="2"] .panel, html[data-style="2"] .feature, html[data-style="2"] .cta, html[data-style="2"] .product-art { border-radius: 4px; }
html[data-style="2"] .card { border-color: var(--line-strong); }
html[data-style="2"] .card-art:has(.product-photo), html[data-style="2"] .product-art .product-photo { border-radius: 3px 3px 0 0; }
html[data-style="2"] .card h3, html[data-style="2"] .product h1 { text-transform: none; }
html[data-style="2"] .hero { padding: 0; }
html[data-style="2"] .hero::before { display: none; }
html[data-style="2"] .hero-art { display: none; }
html[data-style="2"] .hero-photos { display: grid; grid-template-columns: repeat(5, 1fr); position: absolute; inset: 0; }
html[data-style="2"] .hero-photos a { overflow: hidden; border-right: 1px solid rgba(201, 162, 90, .35); }
html[data-style="2"] .hero-photos a:last-child { border-right: 0; }
html[data-style="2"] .hero-photos img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.55); }
html[data-style="2"] .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 96px 0 84px; min-height: 620px; align-content: center; }
html[data-style="2"] .hero-inner::before { content: ""; position: absolute; inset: 0 -100vw; background: radial-gradient(ellipse at center, rgba(8, 13, 10, .86) 0%, rgba(8, 13, 10, .72) 45%, rgba(8, 13, 10, .35) 100%); }
html[data-style="2"] .hero-text { position: relative; max-width: 760px; }
html[data-style="2"] .hero h1 { max-width: none; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.08; }
html[data-style="2"] .hero h1 em { font-style: normal; display: block; }
html[data-style="2"] .hero .eyebrow { display: inline-block; border: 1px solid var(--lavender); padding: 7px 16px; margin-bottom: 26px; letter-spacing: .28em; }
html[data-style="2"] .hero p.lead { margin-inline: auto; color: #d9d3c2; }
html[data-style="2"] .hero-actions { justify-content: center; }
html[data-style="2"] .hero-stats { margin-inline: auto; justify-content: center; border-top-color: rgba(201, 162, 90, .5); max-width: 620px; }
html[data-style="2"] .hero-stats div { align-items: center; padding: 0 22px; }
html[data-style="2"] .hero-stats div + div { border-left: 1px solid rgba(201, 162, 90, .4); }
html[data-style="2"] .section-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
html[data-style="2"] .section-head h2::after { content: ""; display: block; width: 64px; height: 2px; background: var(--lavender); margin: 14px auto 0; }

/* ---------- 3 «Спорт»: рубленый шрифт заглавными, кнопки со срезанными углами, фото веером ---------- */
html[data-style="3"] { --serif: "Oswald", "Arial Narrow", Arial, sans-serif; --sans: "Golos Text", "Segoe UI", Arial, sans-serif; --radius: 0px; --radius-sm: 0px; }
html[data-style="3"] h1, html[data-style="3"] h2, html[data-style="3"] h3 { text-transform: uppercase; letter-spacing: .01em; font-weight: 600; }
html[data-style="3"] .card h3 { font-size: 1.2rem; }
html[data-style="3"] .logo { font-weight: 700; letter-spacing: .12em; font-size: 1.6rem; }
html[data-style="3"] .btn { border-radius: 0; border: 0; text-transform: uppercase; font-family: var(--serif); font-weight: 600; letter-spacing: .08em; font-size: 1rem; padding: 15px 30px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
html[data-style="3"] .btn-sm { padding: 10px 16px; font-size: .86rem; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
html[data-style="3"] .btn-ghost { background: var(--surface-2); color: var(--lavender-light); }
html[data-style="3"] .btn-ghost:hover { background: var(--line); color: #fff; }
html[data-style="3"] .chip { border-radius: 0; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; font-weight: 600; }
html[data-style="3"] .badge { border-radius: 0; transform: skewX(-10deg); left: 12px; }
html[data-style="3"] .icon-link, html[data-style="3"] .search input[type=search] { border-radius: 0; }
html[data-style="3"] .card, html[data-style="3"] .panel, html[data-style="3"] .feature, html[data-style="3"] .cta, html[data-style="3"] .product-art { border-radius: 0; }
html[data-style="3"] .card { border-top: 3px solid var(--lavender); }
html[data-style="3"] .card-art:has(.product-photo), html[data-style="3"] .product-art .product-photo { border-radius: 0; }
html[data-style="3"] .hero { padding: 70px 0 70px; background: linear-gradient(115deg, transparent 0 58%, rgba(201, 162, 90, .10) 58% 59%, rgba(31, 70, 50, .55) 59% 100%); }
html[data-style="3"] .hero::before { display: none; }
html[data-style="3"] .hero-art { display: none; }
html[data-style="3"] .hero-inner { grid-template-columns: 1.1fr 1fr; }
html[data-style="3"] .hero h1 { max-width: none; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .98; font-weight: 700; }
html[data-style="3"] .hero h1 em { font-style: normal; color: var(--lavender); display: block; }
html[data-style="3"] .hero .eyebrow { border-left: 4px solid var(--lavender); padding-left: 12px; letter-spacing: .16em; }
html[data-style="3"] .hero-stats { border-top: 0; gap: 12px; padding-top: 0; max-width: none; flex-wrap: wrap; }
html[data-style="3"] .hero-stats div { background: var(--surface); border-left: 3px solid var(--lavender); padding: 12px 18px; min-width: 140px; }
html[data-style="3"] .hero-stats b { font-size: 2rem; }
html[data-style="3"] .hero-photos { display: block; position: absolute; right: max(16px, calc((100% - 1180px) / 2)); top: 50%; width: min(44%, 520px); height: 470px; transform: translateY(-50%); }
html[data-style="3"] .hero-photos a { position: absolute; top: 0; width: 46%; aspect-ratio: 3 / 4; overflow: hidden; border: 3px solid var(--lavender); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transition: transform .3s ease; }
html[data-style="3"] .hero-photos a:nth-child(1) { left: 0; transform: rotate(-8deg) translateY(30px); z-index: 1; }
html[data-style="3"] .hero-photos a:nth-child(2) { left: 27%; transform: rotate(-1deg); z-index: 3; }
html[data-style="3"] .hero-photos a:nth-child(3) { left: 54%; transform: rotate(7deg) translateY(34px); z-index: 2; }
html[data-style="3"] .hero-photos a:nth-child(n+4) { display: none; }
html[data-style="3"] .hero-photos a:hover { transform: rotate(0) translateY(-6px); z-index: 5; }
html[data-style="3"] .hero-photos img { width: 100%; height: 100%; object-fit: cover; }
html[data-style="3"] .section-head h2 { border-left: 5px solid var(--lavender); padding-left: 14px; }
html[data-style="3"] .feature-num { font-family: var(--serif); color: var(--lavender); }

/* ---------- 4 «Галерея»: мягкий гуманистический шрифт, светлые кнопки со стрелкой, большое фото на полэкрана ---------- */
html[data-style="4"] { --serif: "Philosopher", Georgia, serif; --sans: "PT Sans", "Segoe UI", Arial, sans-serif; --radius: 10px; --radius-sm: 8px; }
html[data-style="4"] h1, html[data-style="4"] h2, html[data-style="4"] h3 { font-weight: 700; letter-spacing: 0; }
html[data-style="4"] body { font-size: 17px; }
html[data-style="4"] .logo { font-weight: 700; letter-spacing: .08em; text-transform: none; font-size: 1.7rem; }
html[data-style="4"] .btn { border-radius: 10px; background: var(--text); border-color: var(--text); color: #14201a; font-weight: 700; padding: 14px 22px; }
html[data-style="4"] .btn::after { content: "→"; margin-left: 10px; transition: margin-left .2s; }
html[data-style="4"] .btn:hover { background: #fff; color: #14201a; }
html[data-style="4"] .btn:hover::after { margin-left: 16px; }
html[data-style="4"] .btn-sm { padding: 9px 14px; border-radius: 8px; }
html[data-style="4"] .btn-sm::after { margin-left: 6px; }
html[data-style="4"] .btn-ghost { background: transparent; color: var(--lavender-light); border-color: transparent; border-bottom: 2px solid var(--lavender); border-radius: 0; padding-inline: 4px; }
html[data-style="4"] .btn-ghost:hover { background: transparent; color: #fff; border-color: transparent; border-bottom-color: #fff; }
html[data-style="4"] .chip { border-radius: 8px; }
html[data-style="4"] .badge { border-radius: 6px; background: var(--text); color: #14201a; }
html[data-style="4"] .icon-link { border-radius: 12px; }
html[data-style="4"] .search input[type=search] { border-radius: 10px; }
html[data-style="4"] .card { border-radius: 14px; border-color: transparent; background: transparent; }
html[data-style="4"] .card:hover { background: var(--surface); }
html[data-style="4"] .card-art:has(.product-photo) { border-radius: 14px; }
html[data-style="4"] .hero { padding: 0; }
html[data-style="4"] .hero::before { display: none; }
html[data-style="4"] .hero-art { display: none; }
html[data-style="4"] .hero-inner { grid-template-columns: 1fr 1fr; gap: 56px; min-height: 640px; }
html[data-style="4"] .hero-text { grid-column: 2; padding: 60px 0; }
html[data-style="4"] .hero h1 { max-width: none; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
html[data-style="4"] .hero h1 em { font-style: italic; font-weight: 400; }
html[data-style="4"] .hero .eyebrow { letter-spacing: .1em; text-transform: none; font-size: 1rem; font-weight: 400; color: var(--lavender-light); }
html[data-style="4"] .hero-stats { border-top: 0; padding-top: 0; gap: 0; }
html[data-style="4"] .hero-stats div { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line-strong); }
html[data-style="4"] .hero-stats div:last-child { border-right: 0; }
html[data-style="4"] .hero-photos { display: grid; position: absolute; left: 0; top: 0; bottom: 0; width: calc(50% - 28px); grid-template-columns: 3fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 6px; }
html[data-style="4"] .hero-photos a { overflow: hidden; }
html[data-style="4"] .hero-photos a:nth-child(1) { grid-row: 1 / 4; border-radius: 0 0 24px 0; }
html[data-style="4"] .hero-photos a:nth-child(n+5) { display: none; }
html[data-style="4"] .hero-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
html[data-style="4"] .hero-photos a:hover img { transform: scale(1.05); }
html[data-style="4"] .benefits { border: 0; background: transparent; }
html[data-style="4"] .section-head h2 { font-style: italic; font-weight: 400; }

@media (max-width: 960px) {
  html[data-style="2"] .hero-photos { grid-template-columns: repeat(3, 1fr); }
  html[data-style="2"] .hero-photos a:nth-child(n+4) { display: none; }
  html[data-style="2"] .hero-inner { padding: 64px 0 56px; min-height: 0; }
  html[data-style="3"] .hero { background: none; display: flex; flex-direction: column; }
  html[data-style="3"] .hero-photos { order: 2; }
  html[data-style="3"] .hero-inner { grid-template-columns: 1fr; }
  html[data-style="3"] .hero-photos { position: relative; right: auto; top: auto; transform: none; width: min(100%, 460px); height: 340px; margin: 34px auto 0; }
  html[data-style="4"] .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  html[data-style="4"] .hero-photos { position: relative; width: auto; height: 380px; margin-inline: -16px; }
  html[data-style="4"] .hero-text { grid-column: auto; padding: 32px 0 44px; }
}
@media (max-width: 640px) {
  html[data-style="2"] .hero-stats div { padding: 0 12px; }
  html[data-style="3"] .hero-stats div { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
  html[data-style="4"] .hero-stats div { padding-right: 14px; margin-right: 14px; }
  .style-picker span { display: none; }
  .style-picker button { padding: 7px 8px; font-size: 12px; }
}
@media (max-width: 640px) { html[data-style="3"] .hero-photos { height: 270px; margin-top: 26px; } html[data-style="3"] .hero { padding: 44px 0 36px; } }

/* --- Галерея в карточке товара и просмотр фото на весь экран --- */
.product-media { display: grid; gap: 12px; align-content: start; }
.gallery-main { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-main:focus-visible { outline: 3px solid var(--lavender); outline-offset: -3px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid var(--line); background: var(--surface); cursor: pointer; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-sm); opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--lavender); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 10, 8, .94); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6, 10, 8, .9); }
.lightbox img { max-width: min(94vw, 1100px); max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(23, 35, 29, .85); color: var(--text); border: 1px solid var(--line-strong); cursor: pointer; font: 400 30px/1 Arial, sans-serif; width: 52px; height: 52px; display: grid; place-items: center; }
.lightbox button:hover { border-color: var(--lavender); color: var(--lavender-light); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .lightbox button { width: 44px; height: 44px; font-size: 26px; } .lightbox-nav.prev { left: 6px; } .lightbox-nav.next { right: 6px; } }
html[data-style="3"] .qty, html[data-style="3"] .qty button, html[data-style="3"] .qty input { border-radius: 0; }
