/* Подарки из Крыма. Тёплая светлая гамма: песок, море, терракота. Сначала телефон. */
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #1f1a15;
  --muted: #6d645b;
  --line: #ebe3d7;
  --sea: #0e5b66;
  --sea-dark: #0a434b;
  --sea-tint: #e4f0ef;
  --accent: #d4552c;
  --accent-dark: #b4431e;
  --accent-tint: #fbe9e1;
  --sun: #f2b544;
  --ok: #2f7a4a;
  --err: #b3261e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 26, 21, .06), 0 6px 18px rgba(31, 26, 21, .06);
  --wrap: 1200px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sea-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 5vw, 34px); font-weight: 700; }
h2 { font-size: clamp(20px, 3.6vw, 24px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.page { padding-top: 16px; padding-bottom: 48px; }
.narrow { max-width: 760px; }
.block { margin-top: 40px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn--wide { width: 100%; }
.btn--icon { width: 52px; min-height: 52px; padding: 0; }
.btn--icon svg { fill: none; stroke: currentColor; stroke-width: 2; }
.btn--icon[data-share] svg { fill: currentColor; stroke: none; }
.btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.btn[aria-pressed="true"] svg { fill: var(--accent); }

/* Шапка */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hdr__row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.logo__txt { font-size: 14px; line-height: 1.05; }
.logo__txt b { color: var(--sea); font-weight: 750; }
.hdr__search { flex: 1; display: flex; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.hdr__search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; height: 40px; font: inherit; font-size: 15px; }
.hdr__search input:focus { outline: none; }
.hdr__search:focus-within { border-color: var(--sea); }
.hdr__search button { border: 0; background: transparent; color: var(--muted); width: 42px; cursor: pointer; }
.hdr__spacer { flex: 1; }
.hdr__nav { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr__fav { position: relative; color: var(--ink); display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
.hdr__favn { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.hdr__favn[hidden] { display: none; }
@media (max-width: 560px) {
  .hdr__masters { display: none; }
  .logo__txt { display: none; }
  .home .logo__txt { display: block; font-size: 15px; }
}
.cats { border-top: 1px solid var(--line); }
.cats__row { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.cats__row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--sea); color: var(--sea); }
.chip--on { background: var(--sea); border-color: var(--sea); color: #fff; }
.chip--on:hover { color: #fff; }

/* Главная */
.hero { background: linear-gradient(180deg, var(--sea-tint) 0%, var(--bg) 100%); padding: 28px 0 8px; }
.hero__inner { max-width: var(--wrap); }
.hero__search { max-width: 760px; display: flex; gap: 8px; background: var(--surface); border: 2px solid var(--sea); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.hero__search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: inherit; font-size: 18px; height: 48px; }
.hero__search input:focus { outline: none; }
.hero__search .btn { min-height: 48px; }
.hero__hints { margin: 10px 4px 22px; font-size: 14px; }
.hero__hints a { color: var(--muted); }
.hero__title { font-size: clamp(26px, 6vw, 40px); max-width: 720px; }
.hero__lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.hero__note { display: inline-block; max-width: 640px; margin: 0 0 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); font-size: 15px; }

.shelf { margin-top: 32px; }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.link-more { font-size: 15px; white-space: nowrap; }
.shelf__scroll { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shelf__row { display: flex; gap: 12px; padding: 4px 16px 12px; max-width: var(--wrap); margin: 0 auto; }
.shelf__row .card { flex: 0 0 168px; scroll-snap-align: start; }
@media (min-width: 720px) { .shelf__row .card { flex-basis: 214px; } }
.card--more { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--sea-tint); border-radius: var(--radius); color: var(--sea); font-weight: 600; text-decoration: none; min-height: 220px; }

/* Карточка товара */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__img { display: block; aspect-ratio: 1 / 1; background: var(--sea-tint); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.card__fav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.card__fav[aria-pressed="true"] { color: var(--accent); }
.card__fav[aria-pressed="true"] svg { fill: var(--accent); }
.card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__price { font-weight: 750; font-size: 17px; }
.card__title { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title:hover { color: var(--sea); }
.card__meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__tag { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--ok); font-weight: 600; }

/* Категории */
.catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.catgrid__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.catgrid__item:hover { border-color: var(--sea); }
.catgrid__name { font-weight: 600; line-height: 1.25; }
.catgrid__n { font-size: 13px; margin-top: auto; }

/* Как это работает */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 16px 16px 16px 56px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.steps b { display: block; }
.steps--small { grid-template-columns: 1fr !important; }
.steps--small li { box-shadow: none; border: 1px solid var(--line); padding: 12px 12px 12px 50px; font-size: 15px; }
.steps--small li::before { left: 12px; top: 11px; width: 26px; height: 26px; font-size: 14px; }
.safe { background: var(--sea-tint); border-radius: var(--radius); padding: 16px 18px; }
.safe ul { margin: 0 0 10px; padding-left: 20px; }
.safe li { margin-bottom: 6px; }

.sellers { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .sellers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sellers { grid-template-columns: repeat(4, 1fr); } }
.sellerchip { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-decoration: none; color: var(--ink); }
.sellerchip:hover { border-color: var(--sea); }
.sellerchip img, .sellerchip__ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.sellerchip__ph { background: var(--sea-tint); color: var(--sea); font-weight: 700; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
.sellerchip b { display: block; line-height: 1.25; }
.sellerchip .muted { font-size: 13px; }

.cta { background: var(--sea); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.cta p { color: #d8ebe9; margin: 0; }
@media (min-width: 720px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; } }
.empty { padding-top: 32px; padding-bottom: 32px; color: var(--muted); }

/* Каталог */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--muted); }
.page__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 8px 0 18px; }
.filters__f { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 4px; }
.filters__f input, .filters__f select { height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; font: inherit; font-size: 15px; background: var(--bg); color: var(--ink); }
.filters__f input { width: 96px; }
.filters__check { display: flex; align-items: center; gap: 6px; font-size: 15px; height: 40px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 0; }

/* Товар */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.gallery, .product__info { min-width: 0; }
@media (min-width: 960px) { .product { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 36px; } }
.gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--sea-tint); scrollbar-width: none; }
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1 / 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery__thumbs a { flex: none; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.gallery__thumbs a.is-on { border-color: var(--sea); }
.gallery__thumbs img { width: 64px; height: 64px; object-fit: cover; }
.product__title { font-size: clamp(22px, 4.4vw, 30px); }
.product__price { font-size: 28px; font-weight: 750; margin-bottom: 14px; }
.product__actions { display: flex; gap: 8px; margin-bottom: 18px; }
.product__actions .btn--lg { flex: 1; }
.facts { list-style: none; margin: 0 0 6px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts span { color: var(--muted); flex: none; }
.facts b { font-weight: 550; text-align: right; }
.sellerbox { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 14px 0 8px; }
.sellerbox:hover { border-color: var(--sea); }
.sellerbox img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sellerbox > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.sellerbox .muted { font-size: 13px; }
.badges { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; background: var(--sea-tint); color: var(--sea-dark); border-radius: 999px; padding: 3px 10px 3px 7px; font-size: 13px; font-weight: 550; }
.product__desc { margin-top: 18px; }
.product__desc h2 { font-size: 18px; }

.order { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 36px; scroll-margin-top: 120px; }
@media (min-width: 960px) { .order { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; } }
.order__form { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.order__side h3 { margin-top: 4px; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 46px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sea); background: var(--surface); }
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 14px; }
.form .check input { min-height: 0; width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--sea); }
.note { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 15px; }
.note--err { background: #fdecea; color: var(--err); }
.note--ok { background: #e7f4ec; color: var(--ok); }

.complaint { margin-top: 36px; font-size: 14px; scroll-margin-top: 120px; }
.complaint summary { cursor: pointer; color: var(--muted); }
.complaint form { max-width: 520px; margin-top: 10px; }

/* Мастер */
.master { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.master__ava { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
@media (min-width: 720px) { .master__ava { width: 120px; height: 120px; } }
.master__ava--ph { background: var(--sea-tint); color: var(--sea); display: inline-flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; }
.master__info { flex: 1; min-width: 240px; }
.master__about { max-width: 720px; }
.product__desc, .master__about, .product h1, .master h1, .card__title, .ticket { overflow-wrap: anywhere; }
.preview-note { display: block; margin: 12px 0; }
.contacts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.contacts li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.contacts__label { color: var(--muted); min-width: 92px; font-size: 14px; }

/* Заявка отправлена */
.done { text-align: center; padding: 20px 0 6px; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: #e7f4ec; color: var(--ok); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ticket { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 16px; margin: 16px 0 24px; }
.ticket > div { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ticket > div:last-child { border-bottom: 0; }
.ticket .muted { font-size: 13px; }
.ticket b { font-weight: 600; word-break: break-word; }
.statusbtns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Документы */
.doc h1 { margin-top: 8px; }
.doc h2 { margin-top: 28px; }
.doc h3 { margin-top: 20px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc blockquote { margin: 0 0 1em; padding: 10px 14px; background: var(--sea-tint); border-radius: var(--radius-sm); }
.doc .table-wrap { overflow-x: auto; margin: 0 0 1em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--sea-tint); }

/* Подвал */
.ftr { margin-top: 56px; background: #f3ece2; border-top: 1px solid var(--line); padding: 32px 0 24px; font-size: 15px; }
.ftr__grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ftr__brand { font-weight: 750; font-size: 18px; color: var(--sea); margin-bottom: 6px; }
.ftr__links { display: flex; flex-direction: column; gap: 6px; }
.ftr__links a { color: var(--ink); text-decoration: none; }
.ftr__links a:hover { color: var(--sea); text-decoration: underline; }
.ftr__legal { margin-top: 24px; font-size: 13px; }

.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--sea); text-decoration: underline; cursor: pointer; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(31, 26, 21, .18); padding: 14px 16px; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 10px; }
.cookie__btns { display: flex; gap: 8px; }

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