:root {
  --paper: #f5efe3;
  --paper-2: #ece4d3;
  --card: #fbf8f2;
  --ink: #1d1b18;
  --ink-2: #4a453d;
  --muted: #847b6c;
  --line: #d9cfbc;
  --accent: #a8331f;
  --accent-ink: #fff;
  --ok: #2f7d4f;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 8px 30px rgba(40, 30, 10, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 60ch; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: var(--accent); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, transform .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: 16px; }
.btn--grow { flex: 1; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; position: relative; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }

/* шапка */
.announce { background: var(--ink); color: var(--paper); text-align: center; font-size: 13px; padding: 8px var(--gutter); letter-spacing: .01em; }
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.header__burger { display: none; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex-shrink: 0; }
.logo__name { font: 700 22px/1 var(--serif); letter-spacing: -.01em; }
.logo__name i { color: var(--accent); font-style: normal; }
.logo__tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.header__actions { display: flex; gap: 2px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* шухляди */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer::before { content: ''; position: absolute; inset: 0; background: rgba(20, 16, 10, .45); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; background: var(--paper); display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow); }
.drawer--right .drawer__panel { top: 0; right: 0; bottom: 0; width: min(440px, 100%); transform: translateX(100%); }
.drawer--left .drawer__panel { top: 0; left: 0; bottom: 0; width: min(360px, 88%); transform: translateX(-100%); }
.drawer--top .drawer__panel { top: 0; left: 0; right: 0; transform: translateY(-100%); padding: 16px var(--gutter) 24px; max-height: 90vh; overflow: auto; }
.drawer.is-open { visibility: visible; }
.drawer.is-open::before { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; }
.mnav { display: flex; flex-direction: column; padding: 12px 8px; overflow: auto; }
.mnav a { padding: 12px 14px; text-decoration: none; font-size: 17px; border-radius: 10px; display: flex; justify-content: space-between; }
.mnav a:hover { background: var(--paper-2); }
.mnav small { color: var(--muted); }
.mnav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 14px; }

.search { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 12px; border-bottom: 1.5px solid var(--ink); padding: 6px 0; }
.search input { flex: 1; border: 0; background: none; font-size: 20px; padding: 10px 0; outline: none; min-width: 0; }
.search__results { max-width: var(--wrap); margin: 16px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.sr { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.sr:hover { background: var(--paper-2); color: var(--ink); }
.sr img { width: 52px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.sr b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.sr span { font-size: 13px; color: var(--muted); }

/* кошик */
.cart__items { flex: 1; overflow: auto; padding: 8px 20px; }
.cart__empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart__empty .btn { margin-top: 16px; }
.ci { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.ci__name { font-weight: 600; font-size: 14px; line-height: 1.35; text-decoration: none; display: block; }
.ci__var { font-size: 13px; color: var(--muted); }
.ci__price { font-weight: 700; white-space: nowrap; text-align: right; }
.ci__ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ci__rm { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.ci__rm:hover { color: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 50px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; }
.qty input { width: 34px; text-align: center; border: 0; background: none; -moz-appearance: textfield; font-weight: 600; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 34px; }
.qty--sm button { width: 30px; font-size: 16px; }
.qty--sm input { width: 26px; font-size: 14px; }
.cart__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--card); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 17px; }
.cart__total b { font-size: 22px; font-family: var(--serif); }
.cart__foot .muted { text-align: center; margin: 10px 0 0; }

/* hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; margin-bottom: 22px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__art { position: relative; aspect-ratio: 1 / 1.05; }
.hero__ph { position: absolute; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); transition: transform .4s; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; }
.hero__ph:hover { transform: translateY(-6px) rotate(0deg) !important; z-index: 3; }
.hero__ph--1 { inset: 0 22% 8% 6%; z-index: 2; transform: rotate(-2deg); }
.hero__ph--2 { width: 40%; aspect-ratio: 4/5; right: 0; top: 4%; transform: rotate(4deg); }
.hero__ph--3 { width: 36%; aspect-ratio: 4/5; right: 6%; bottom: -2%; z-index: 3; transform: rotate(-5deg); }

.quote { border-block: 1px solid var(--line); padding: 26px 0; background: var(--paper-2); }
.quote blockquote { margin: 0; text-align: center; font: italic 500 clamp(22px, 3vw, 32px)/1.3 var(--serif); }
.quote cite { display: block; font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; font-style: normal; }

/* секції */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: 28px 0 clamp(48px, 7vw, 96px); }
.section--alt { background: var(--paper-2); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__lead { color: var(--ink-2); max-width: 70ch; margin: -10px 0 30px; }

/* картки */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px) clamp(12px, 1.6vw, 22px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card:hover { color: var(--ink); }
.card__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
.card__img2 { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__img img { transform: scale(1.03); }
.card:hover .card__img2 { opacity: 1; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.badge--sale { left: auto; right: 12px; background: var(--accent); color: #fff; }
.badge--inline { position: static; display: inline-block; background: var(--accent); color: #fff; margin-bottom: 14px; }
.card__body { padding: 14px 2px 0; }
.card__title { font: 600 15px/1.35 var(--sans); margin: 0 0 6px; letter-spacing: 0; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card__price { font-weight: 700; }
.card__sw { display: flex; align-items: center; gap: 3px; }
.card__sw small { font-size: 11px; color: var(--muted); margin-left: 3px; }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); display: inline-block; flex-shrink: 0; }

/* категорії */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--paper); }
.cat:first-child { grid-row: span 2; aspect-ratio: auto; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat:hover img { transform: scale(1.05); }
.cat::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(15, 12, 8, .78)); }
.cat__name { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); font: 500 24px/1 var(--serif); display: flex; align-items: baseline; gap: 8px; }
.cat__name small { font: 500 13px var(--sans); opacity: .8; }
.cat:hover { color: #fff; }

.perks { border-block: 1px solid var(--line); padding: clamp(36px, 5vw, 56px) 0; }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.perks svg { color: var(--accent); margin-bottom: 12px; }
.perks h4 { margin: 0 0 6px; font-size: 16px; }
.perks p { margin: 0; color: var(--ink-2); font-size: 14px; }

.about__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.about__text { font-size: 18px; color: var(--ink-2); }
.about__text p:first-child { font: 500 clamp(22px, 2.4vw, 28px)/1.35 var(--serif); color: var(--ink); }

/* каталог */
.page-head { padding: clamp(24px, 4vw, 44px) 0 8px; }
.page-head--slim h1 { font-size: clamp(30px, 4vw, 46px); }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs b { font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 24px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--sm { padding: 6px 12px; font-size: 13px; }
.chip.is-off { opacity: .35; text-decoration: line-through; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 16px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters__group--end { margin-left: auto; gap: 16px; }
.filters__label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.chip--sw span:not(.sw) { display: none; }
.chip--sw { padding: 6px; }
.opt .chip--sw { padding: 8px 14px 8px 9px; }
.opt .chip--sw span:not(.sw) { display: inline; }
select { appearance: none; border: 1.5px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d1b18' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; border-radius: 999px; padding: 9px 38px 9px 16px; font-size: 14px; }
.empty { text-align: center; padding: 60px 0; color: var(--ink-2); }
.card.is-hidden { display: none; }

/* товар */
.product { padding: clamp(20px, 3vw, 36px) 0 clamp(48px, 6vw, 80px); }
.product__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.gallery { position: sticky; top: 96px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.gallery__main { grid-column: 2; grid-row: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; background: var(--paper-2); aspect-ratio: 4 / 5; }
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow: auto; scrollbar-width: none; }
.gallery__thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; background: var(--paper-2); aspect-ratio: 4/5; flex-shrink: 0; opacity: .7; transition: opacity .2s; }
.gallery__thumbs button.is-on { border-color: var(--ink); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery.is-single { grid-template-columns: 1fr; }
.gallery.is-single .gallery__main { grid-column: 1; }
.buy__title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; }
.buy__price { display: flex; align-items: baseline; gap: 12px; font: 500 30px/1 var(--serif); margin-bottom: 28px; }
.buy__price s { font: 500 18px var(--sans); color: var(--muted); }
.opt { margin-bottom: 22px; }
.opt__head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.opt__head b { color: var(--ink); font-weight: 600; }
.opt__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.buy__row { display: flex; gap: 12px; margin: 28px 0 10px; }
.buy__stock { font-size: 14px; color: var(--ok); min-height: 22px; }
.buy__stock.is-out { color: var(--accent); }
.buy__perks { list-style: none; padding: 18px 0; margin: 10px 0 0; border-block: 1px solid var(--line); display: grid; gap: 10px; }
.buy__perks li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.buy__perks svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.attrs { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0; }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; font-weight: 600; color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 14px; position: relative; }
.field > span { color: var(--ink-2); font-weight: 500; }
.field input, .field textarea { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 13px 16px; font-size: 16px; outline: none; transition: border-color .15s; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.is-error input { border-color: var(--accent); }
.buy .field { margin-top: 4px; }

/* модалка */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .2s; background: rgba(20, 16, 10, .5); }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__panel { background: var(--paper); border-radius: 18px; padding: 32px; max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; position: relative; }
.modal__x { position: absolute; top: 12px; right: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(15, 12, 8, .94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; }
.lightbox button { position: absolute; top: 16px; right: 16px; color: #fff; }

/* текстові сторінки */
.prose { font-size: 17px; color: var(--ink-2); }
.prose h2 { font-size: 26px; color: var(--ink); margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { color: var(--ink); font-weight: 600; background: var(--paper-2); }

/* оформлення */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.checkout legend { font: 500 24px var(--serif); margin-bottom: 16px; padding: 0; }
.checkout__summary { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: sticky; top: 96px; }
.checkout__summary .ci { grid-template-columns: 56px 1fr auto; }
.checkout__summary .ci img { width: 56px; height: 70px; }
.checkout__summary .cart__total { margin: 18px 0 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; font-size: 14px; color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg--block { margin-bottom: 18px; }
.seg--block label { flex: 1; }
.seg--block span { width: 100%; text-align: center; border-radius: 12px; padding: 13px 10px; }
.ac { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; margin-top: 4px; max-height: 280px; overflow: auto; display: none; box-shadow: var(--shadow); }
.ac.is-open { display: block; }
.ac button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 16px; font-size: 14px; }
.ac button:hover, .ac button.is-active { background: var(--paper-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-error { color: var(--accent); font-weight: 500; margin-top: 12px; }

.thanks { text-align: center; }
.thanks .lead { margin: 0 auto 32px; }
.thanks__box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; text-align: left; margin: 0 auto 32px; max-width: 520px; }
.line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.line small { color: var(--muted); }
.line--total { border: 0; font-size: 17px; padding-top: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 90; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* підвал */
.footer { background: var(--ink); color: #d9d1c2; padding: 64px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer a { display: block; text-decoration: none; padding: 4px 0; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer .logo--light { color: #fff; display: inline-flex; padding: 0; }
.logo--light .logo__tag { color: #a39a8a; }
.footer__text { margin: 18px 0; font-size: 14px; max-width: 34ch; color: #a39a8a; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #4a453d; border-radius: 50%; }
.footer__bottom { border-top: 1px solid #3a362f; margin-top: 48px; padding-top: 22px; font-size: 13px; color: #8a8172; }

/* адаптив */
@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .header__burger { display: inline-grid; margin-left: -10px; }
  .header__in { gap: 8px; height: 64px; }
  .logo { margin-right: auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat:first-child { grid-row: auto; aspect-ratio: 1; }
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .product__grid, .checkout { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .checkout__summary { position: static; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 1 / .9; margin: 0 4%; }
  .hero h1 { font-size: 40px; }
  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat__name { font-size: 20px; left: 14px; bottom: 12px; }
  .about__in { grid-template-columns: 1fr; gap: 12px; }
  .section__head { flex-wrap: wrap; }
  .filters { gap: 12px; }
  .filters__group--end { margin-left: 0; width: 100%; justify-content: space-between; }
  .gallery { grid-template-columns: 1fr; margin: 0 calc(-1 * var(--gutter)); }
  .gallery__main { grid-column: 1; border-radius: 0; }
  .gallery__thumbs { grid-row: 2; flex-direction: row; padding: 0 var(--gutter); overflow-x: auto; }
  .gallery__thumbs button { width: 56px; }
  .buy__row { position: sticky; bottom: 0; background: var(--paper); margin: 20px calc(-1 * var(--gutter)) 10px; padding: 12px var(--gutter); border-top: 1px solid var(--line); z-index: 5; }
  .perks__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .modal__panel { padding: 24px 18px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .card__title { font-size: 14px; }
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* автори */
.mono { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 16px/1 var(--serif); letter-spacing: .02em; flex-shrink: 0; }
.buy__author { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin: -2px 0 22px; padding: 6px 16px 6px 6px; border: 1.5px solid var(--line); border-radius: 999px; transition: border-color .15s; }
.buy__author:hover { border-color: var(--ink); color: var(--ink); }
.buy__author .mono { width: 38px; height: 38px; font-size: 14px; }
.buy__author span:last-child { display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; font-size: 15px; }
.buy__author small { font-weight: 400; color: var(--muted); font-size: 12px; }
.author { border-top: 1px solid var(--line); }
.author__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.author__head .mono { width: 84px; height: 84px; font-size: 30px; margin-bottom: 18px; background: var(--accent); }
.author__head h2, .author__head h1 { margin-bottom: 6px; }
.author__bio { font-size: 17px; color: var(--ink-2); }
.author__bio p:first-child { font: 500 clamp(19px, 2vw, 23px)/1.45 var(--serif); color: var(--ink); }
.author__in--page { margin-top: 8px; }
.authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.author-card { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--card); transition: border-color .15s, transform .15s; }
.author-card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.author-card .mono { width: 56px; height: 56px; font-size: 20px; }
.author-card span:last-child { display: flex; flex-direction: column; }
.author-card b { font: 500 20px/1.2 var(--serif); }
.author-card small { color: var(--muted); font-size: 13px; }

/* розмірні сітки */
.modal__panel--wide { max-width: 860px; }
.sc { margin-bottom: 8px; }
.sc-list .sc { padding: 28px 0; border-top: 1px solid var(--line); }
.sc__title { font-size: 26px; margin-bottom: 18px; padding-right: 40px; }
.sc__grid { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.sc__diagram { color: var(--ink-2); --card: var(--paper-2); }
.sc__diagram svg { width: 100%; height: auto; }
.sc__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.sc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.sc th, .sc td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.sc thead th { background: var(--paper-2); font-weight: 600; color: var(--ink); }
.sc tbody th { text-align: left; font-weight: 500; color: var(--ink); white-space: normal; min-width: 140px; }
.sc tbody th small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.sc tbody tr:last-child > * { border-bottom: 0; }
.sc__key { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; margin-right: 8px; vertical-align: 1px; }
.sc .is-sel { background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 700; }
.sc thead .is-sel { background: var(--ink); color: var(--paper); }
.sc__tip { margin: 14px 0 6px; padding: 12px 14px; background: var(--paper-2); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.sc__finder { margin-top: 22px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; }
.sc__finder p { margin: 4px 0 12px; }
.sc__finder-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc__finder-row input { width: 110px; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.sc__finder-row output { font-weight: 600; }
.sc__finder-row output b { color: var(--accent); }
.sc__more { margin: 18px 0 0; }
@media (max-width: 720px) {
  .author__in { grid-template-columns: 1fr; gap: 8px; }
  .sc__grid { grid-template-columns: 1fr; gap: 16px; }
  .sc__diagram { max-width: 180px; margin: 0 auto; }
  .sc th, .sc td { padding: 9px 8px; font-size: 14px; }
  .sc tbody th { min-width: 110px; }
}
@media (max-width: 1240px) and (min-width: 981px) { .nav a { padding: 8px 8px; font-size: 14px; } .header__in { gap: 14px; } }

/* швидке замовлення, дата відправки, блок цінності */
.buy__quick { margin: 0 0 6px; flex-direction: row; gap: 10px; }
.buy__quick small { font-weight: 400; color: var(--muted); font-size: 13px; }
.buy__quick:hover small { color: inherit; }
.buy__ship { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); margin: 4px 0 18px; }
.buy__ship svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.buy__ship b { color: var(--ink); }
.value { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 4px; }
.value__title { display: block; font-size: 15px; margin-bottom: 8px; }
.value ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.value li { padding-left: 24px; position: relative; }
.value li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.cart__foot .btn--ghost { margin-top: 8px; }
.modal__panel--quick { max-width: 460px; }
.modal__panel--quick h3 { margin-bottom: 6px; padding-right: 40px; }
.quick__items { margin: 16px 0; }
.quick__line { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--paper-2); border-radius: 10px; font-size: 14px; }
.quick__line b { white-space: nowrap; }
#quick-form .seg { margin-top: 2px; }
#quick-form .muted.small { margin: 12px 0 0; text-align: center; }

/* оформлення без відволікань */
.header--min .header__in { height: 64px; justify-content: space-between; }
.header--min .logo { margin: 0 auto; align-items: center; }
.back-link, .header__help a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); flex: 1; }
.header__help { flex: 1; text-align: right; }
.back-link:hover, .header__help a:hover { color: var(--accent); }
.footer--min { padding: 22px 0; }
.footer--min .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; }
.footer--min a { display: inline; font-size: 13px; }
.next-steps { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.next-steps ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.field > small { margin-top: 2px; }
@media (max-width: 720px) {
  .header--min .logo__tag { display: none; }
  .back-link { font-size: 13px; }
  .header__help { display: none; }
  .header--min .logo { margin: 0 0 0 auto; }
}

/* портрети авторів */
.mono--photo { object-fit: cover; background: var(--paper-2); padding: 0; }
.author__head .mono--photo { width: 160px; height: 160px; }
.author-card .mono--photo { width: 64px; height: 64px; }
.photo-credit { font-size: 11px; color: var(--muted); margin-top: 10px; }
.photo-credit a { color: inherit; }
@media (max-width: 720px) { .author__head .mono--photo { width: 120px; height: 120px; } }
