/* ============================================================
   TIMTONY — интернет-магазин
   Дизайн: тёплый монохром, издательская типографика
   ============================================================ */

:root {
  --paper: #FAF8F4;
  --paper-2: #F2EEE6;
  --ink: #17140F;
  --ink-2: #45403A;
  --muted: #6E6960; /* ≥4.5:1 на --paper для WCAG AA */
  --line: #E4DFD4;
  --accent: #8A3B2A;
  --sale: #B3372E;
  --white: #FFFFFF;
  --shadow: 0 24px 60px -24px rgba(23, 20, 15, .22);
  --radius: 2px;
  --header-h: 72px;
  --wrap: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
#app { flex: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.serif { font-family: 'Prata', Georgia, serif; font-weight: 400; }

h1, h2, h3 { font-family: 'Prata', Georgia, serif; font-weight: 400; line-height: 1.2; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 14px; letter-spacing: .04em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), transform .15s var(--ease);
  user-select: none;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--line {
  background: transparent; color: var(--ink); border: 0; padding: 6px 0;
  border-bottom: 1px solid var(--ink); border-radius: 0; letter-spacing: .06em;
}
.btn--line:hover { color: var(--accent); border-color: var(--accent); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.topbar {
  background: var(--ink); color: var(--paper);
  font-size: 12.5px; letter-spacing: .05em;
  text-align: center; padding: 8px 16px;
}
.topbar a { text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.topbar a:hover { opacity: 1; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: 'Italiana', 'Prata', Georgia, serif;
  font-size: 30px; letter-spacing: .14em; line-height: 1;
  transform: translateY(-1px);
  white-space: nowrap;
}
.logo:hover { opacity: .75; }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 0; position: relative; color: var(--ink-2);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--ink); }

.header__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  transition: background .2s;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 21px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  border-radius: 9px;
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.is-on { transform: scale(1); }

.burger { display: none; }

/* ---------- Мобильное меню ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 90; display: none;
}
.mnav.is-open { display: block; }
.mnav__bg { position: absolute; inset: 0; background: rgba(23,20,15,.4); }
.mnav__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--paper); padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
  animation: slideR .3s var(--ease);
}
@keyframes slideR { from { transform: translateX(-100%); } to { transform: none; } }
.mnav__panel .logo { margin-bottom: 20px; font-size: 26px; }
.mnav__panel a:not(.logo) {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; letter-spacing: .05em; font-size: 15px;
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__in {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; padding: 64px 28px 72px;
}
.hero__overline {
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.12; letter-spacing: .01em;
  margin-bottom: 24px;
}
.hero__text { color: var(--ink-2); font-size: 16.5px; max-width: 46ch; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero__vis { position: relative; height: 560px; }
.hero__img {
  position: absolute; overflow: hidden; background: var(--paper-2);
  box-shadow: var(--shadow);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--a { width: 62%; height: 82%; left: 0; top: 0; z-index: 2; }
.hero__img--b { width: 48%; height: 62%; right: 0; bottom: 0; z-index: 3; border: 6px solid var(--paper); }
.hero__stamp {
  position: absolute; z-index: 4; right: 12%; top: 4%;
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.5; padding: 14px;
  transform: rotate(12deg);
}

/* ---------- Бегущая строка ---------- */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 14px 0; background: var(--paper);
}
.marquee__track {
  display: flex; width: max-content;
  animation: mq 38s linear infinite;
}
.marquee span {
  font-family: 'Prata', Georgia, serif; font-size: 14px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
  padding-right: 56px; /* интервал внутри элемента — трек ровно 2 периода, цикл бесшовный */
}
.marquee em { color: var(--accent); font-style: normal; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: 76px 0; }
.section--tint { background: var(--paper-2); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px;
}
.section__title { font-size: clamp(26px, 3vw, 38px); }
.section__sub { color: var(--muted); margin-top: 10px; max-width: 60ch; }

/* ---------- Статистика доверия ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.trust__cell {
  padding: 30px 28px; text-align: center;
  border-left: 1px solid var(--line);
}
.trust__cell:first-child { border-left: 0; }
.trust__num { font-family: 'Prata', Georgia, serif; font-size: 32px; margin-bottom: 4px; }
.trust__num em { font-style: normal; color: var(--accent); }
.trust__lbl { color: var(--muted); font-size: 13.5px; letter-spacing: .04em; }

/* ---------- Категории ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 14px; background: var(--white);
  transition: border-color .2s, background .2s, color .2s;
}
.cat-chip:hover { border-color: var(--ink); }
.cat-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-chip small { color: inherit; opacity: .55; margin-left: 6px; font-size: 12px; }

/* ---------- Сетка товаров ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px;
}
.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--paper-2); border-radius: var(--radius);
}
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.card__media img.alt { opacity: 0; }
.card:hover .card__media img.alt { opacity: 1; }
.card:hover .card__media img.main { transform: scale(1.03); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--sale); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: var(--radius);
}
.card__badge--hit { background: var(--ink); }
.card__badge + .card__badge { top: 42px; }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 12px; text-align: center;
  background: rgba(250,248,244,.95); backdrop-filter: blur(4px);
  font-weight: 700; font-size: 13px; letter-spacing: .06em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__quick { opacity: 1; transform: none; }
.card__body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__rating { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.card__rating .star { color: var(--accent); }
.newmark {
  color: var(--accent); font-weight: 700; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase;
}
.card__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.card__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.card__price .now { font-family: 'Prata', Georgia, serif; font-size: 17px; }
.card__price .now.is-request { font-size: 14px; color: var(--ink-2); font-family: 'Manrope', sans-serif; font-weight: 600; }
.pinfo__price .now.is-request { font-size: 21px; color: var(--ink-2); }
.card__price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.card__colors { display: flex; gap: 5px; align-items: center; }
.dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(23,20,15,.18); display: inline-block;
}
.card__colors .more { font-size: 11.5px; color: var(--muted); margin-left: 3px; }

/* ---------- Панель каталога ---------- */
.catbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.select {
  padding: 11px 38px 11px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2317140F' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none;
  font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.catalog-empty { text-align: center; color: var(--muted); padding: 80px 0; }

/* ---------- О бренде (лента) ---------- */
.about-band__in {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center;
}
.about-band__img { aspect-ratio: 4 / 5; overflow: hidden; box-shadow: var(--shadow); }
.about-band__img img { width: 100%; height: 100%; object-fit: cover; }
.about-band h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 20px; }
.about-band p { color: var(--ink-2); margin-bottom: 16px; max-width: 56ch; }
.about-band .btn { margin-top: 12px; }

/* ---------- Страница товара ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 26px 0 30px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 8px; opacity: .5; }

.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; padding-bottom: 90px; }

.gallery { display: flex; gap: 14px; align-items: flex-start; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; width: 72px; flex-shrink: 0; }
.gallery__thumb {
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2);
  border: 1px solid transparent; cursor: pointer; padding: 0;
  opacity: .75; transition: opacity .2s, border-color .2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--ink); opacity: 1; }
.gallery__thumb:hover { opacity: 1; }
.gallery__main {
  flex: 1; min-width: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2);
  position: relative;
}
.gallery__main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.pinfo__cat { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pinfo__title { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 14px; }
.pinfo__rating { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.pinfo__rating .star { color: var(--accent); }
.pinfo__price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.pinfo__price .now { font-family: 'Prata', Georgia, serif; font-size: 30px; }
.pinfo__price .was { color: var(--muted); text-decoration: line-through; font-size: 17px; }
.pinfo__price .off { color: var(--sale); font-weight: 700; font-size: 14px; }
.pinfo__wbnote { font-size: 13px; color: var(--muted); margin-bottom: 26px; }

.opt { margin-bottom: 24px; }
.opt__label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 11px; display: flex; justify-content: space-between; }
.opt__label .val { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(23,20,15,.15);
  position: relative; transition: transform .15s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active::after {
  content: ''; position: absolute; inset: -5px;
  border: 1.5px solid var(--ink); border-radius: 50%;
}
.sizes { display: flex; gap: 9px; flex-wrap: wrap; }
.size {
  min-width: 58px; padding: 11px 14px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: 13.5px; background: var(--white);
  transition: border-color .2s, background .2s, color .2s;
}
.size small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size.is-active small { color: var(--paper); opacity: .7; }

.buyrow { display: flex; gap: 12px; margin: 30px 0 14px; }
.qty {
  display: flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--radius);
}
.qty button { width: 44px; height: 100%; font-size: 18px; }
.qty input {
  width: 40px; text-align: center; border: 0; background: none; font-weight: 700;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buyrow .btn { flex: 1; }
.opt-error { color: var(--sale); font-size: 13px; min-height: 20px; }

.plinks { display: flex; gap: 20px; margin-bottom: 34px; font-size: 13.5px; }
.plinks a { border-bottom: 1px solid var(--line); padding-bottom: 2px; color: var(--ink-2); }
.plinks a:hover { color: var(--ink); border-color: var(--ink); }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 2px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-align: left;
}
.acc__head .x { font-size: 20px; font-weight: 400; transition: transform .3s var(--ease); }
.acc__item.is-open .acc__head .x { transform: rotate(45deg); }
.acc__body { display: none; padding: 0 2px 20px; color: var(--ink-2); font-size: 14.5px; }
.acc__item.is-open .acc__body { display: block; }
.acc__body table { width: 100%; border-collapse: collapse; }
.acc__body td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.acc__body td:first-child { color: var(--muted); width: 45%; padding-right: 14px; }

/* ---------- Похожие ---------- */
.similar { padding: 0 0 90px; }

/* ---------- Корзина (drawer) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg {
  position: absolute; inset: 0; background: rgba(23,20,15,.45);
  opacity: 0; transition: opacity .3s;
}
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100vw);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  box-shadow: -20px 0 60px rgba(23,20,15,.15);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 20px; }
.drawer__close { font-size: 26px; line-height: 1; padding: 4px 8px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 10px 26px; }
.citem {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.citem__img { width: 76px; aspect-ratio: 3/4; object-fit: cover; background: var(--paper-2); }
.citem__title { font-weight: 600; font-size: 13.5px; line-height: 1.35; margin-bottom: 4px; }
.citem__meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.citem__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.citem__qty button { width: 28px; height: 28px; font-size: 15px; }
.citem__qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 13px; }
.citem__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.citem__price { font-family: 'Prata', Georgia, serif; font-size: 15px; white-space: nowrap; }
.citem__rm { color: var(--muted); font-size: 12px; border-bottom: 1px dashed var(--muted); }
.citem__rm:hover { color: var(--sale); border-color: var(--sale); }
.drawer__empty { text-align: center; color: var(--muted); padding: 70px 20px; }
.drawer__empty .big { font-size: 44px; margin-bottom: 14px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 26px 26px; }
.drawer__total {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px;
}
.drawer__total .sum { font-family: 'Prata', Georgia, serif; font-size: 24px; }
.drawer__note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Оформление заказа ---------- */
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 10px 0 90px; align-items: start; }
.checkout h1 { font-size: clamp(26px, 3vw, 36px); margin: 30px 0 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; }
.field label .req { color: var(--sale); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s;
  font-size: 16px; /* <16px заставляет iOS Safari зумить страницу при фокусе */
}
.radio input { width: auto; padding: 0; border: 0; }
.field-err { color: var(--sale); font-size: 12.5px; margin-top: 6px; min-height: 0; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input.is-bad { border-color: var(--sale); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radios { display: flex; flex-direction: column; gap: 10px; }
.radio {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--white);
}
.radio input { accent-color: var(--ink); margin-top: 3px; }
.radio.is-active { border-color: var(--ink); }
.radio b { display: block; font-size: 14px; }
.radio small { color: var(--muted); font-size: 12.5px; }

.osum { background: var(--white); border: 1px solid var(--line); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.osum h3 { font-size: 19px; margin-bottom: 18px; }
.osum__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.osum__item img { width: 48px; aspect-ratio: 3/4; object-fit: cover; }
.osum__item .m { color: var(--muted); font-size: 12px; }
.osum__item .p { margin-left: auto; white-space: nowrap; font-weight: 600; }
.osum__row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.osum__row.total { font-family: 'Prata', Georgia, serif; font-size: 20px; padding-top: 16px; }
.osum__row .free { color: #3E7247; font-weight: 600; }

/* ---------- Подтверждение заказа ---------- */
.done { max-width: 680px; margin: 0 auto; padding: 60px 0 100px; text-align: center; }
.done__icon {
  width: 74px; height: 74px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.done h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.done p { color: var(--ink-2); margin-bottom: 10px; }
.done__order {
  text-align: left; background: var(--white); border: 1px solid var(--line);
  padding: 22px 26px; margin: 30px 0; white-space: pre-wrap;
  font-size: 13px; color: var(--ink-2); max-height: 300px; overflow: auto;
}
.done__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.done__warn {
  background: #FBF3E4; border: 1px solid #E4CFA3; color: #6B5327;
  padding: 16px 22px; margin: 22px 0 4px; font-size: 14.5px; line-height: 1.55;
  text-align: left; border-radius: var(--radius);
}
.done__hint { font-size: 13px; color: var(--muted); margin-top: 18px; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Статичные страницы ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 30px 0 100px; }
.page h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 30px 0 30px; }
.page h2 { font-size: 22px; margin: 36px 0 14px; }
.page p, .page li { color: var(--ink-2); margin-bottom: 12px; font-size: 15.5px; }
.page ul { padding-left: 22px; }

/* ---------- Футер ---------- */
.footer { background: var(--ink); color: #CFC9BE; margin-top: auto; }
.footer__in {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 64px 28px 48px;
}
.footer .logo { color: var(--paper); font-size: 34px; margin-bottom: 18px; display: inline-block; }
.footer__blurb { font-size: 14px; max-width: 40ch; line-height: 1.7; }
.footer h4 {
  color: var(--paper); font-size: 12.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px;
}
.footer__col a { display: block; padding: 6px 0; font-size: 14.5px; transition: color .2s; }
.footer__col a:hover { color: var(--paper); }
.footer__legal {
  border-top: 1px solid rgba(250,248,244,.14);
  padding: 22px 28px; font-size: 12.5px; color: #8F897D;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  padding: 13px 26px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  z-index: 200; box-shadow: var(--shadow); max-width: 90vw; text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal-анимация ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Тач-таргеты ≥40px на сенсорных устройствах ---------- */
@media (pointer: coarse) {
  .select { font-size: 16px; }
  .citem__qty button { width: 40px; height: 40px; }
  .citem__qty span { min-width: 30px; }
  .citem__rm { padding: 10px 0; display: inline-block; }
  .swatch { width: 40px; height: 40px; }
  .gallery__thumb { min-width: 64px; }
  .plinks a { padding: 8px 0; display: inline-block; }
  .drawer__close { padding: 8px 14px; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero__in { grid-template-columns: 1fr; padding: 48px 28px; }
  .hero__vis { height: 440px; order: -1; }
  .product { grid-template-columns: 1fr; gap: 36px; }
  .checkout { grid-template-columns: 1fr; }
  .osum { position: static; }
  .about-band__in { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .hero__in { padding: 36px 18px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .section { padding: 52px 0; }
  .trust { grid-template-columns: 1fr; }
  .trust__cell { border-left: 0; border-top: 1px solid var(--line); }
  .trust__cell:first-child { border-top: 0; }
  .gallery { flex-direction: column-reverse; }
  .gallery__thumbs { flex-direction: row; width: auto; overflow-x: auto; }
  .gallery__thumb { width: 60px; flex-shrink: 0; }
  .card__quick { display: none; }
  .footer__in { grid-template-columns: 1fr; gap: 36px; padding: 48px 18px 36px; }
  .hero__vis { height: 350px; }
  .hero__stamp { width: 92px; height: 92px; font-size: 10px; right: 4%; }
  .field2 { grid-template-columns: 1fr; }
  .buyrow { flex-direction: column; }
  .qty { justify-content: center; height: 48px; }
  .logo { font-size: 25px; }
}

/* ловушка для спам-ботов: поле не видно людям */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
