:root {
  --accent: #5b5bd6;
  --accent-dark: #4847b8;
  --ink: #23223a;
  --muted: #6b6983;
  --bg: #f7f6fb;
  --card: #fff;
  --line: #e6e4f1;
  /* кольори тексту, оформленого в адмінці (css/richtext.css) */
  --rt-accent: #5b5bd6;
  --rt-dark: #23223a;
  --rt-light: #f7f6fb;
  --rt-on-accent: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, dl { margin: 0; padding: 0; }
ul { list-style: none; }
h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 18px; line-height: 1.3; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header, main > section, .footer { padding-left: max(20px, calc((100vw - 1160px) / 2)); padding-right: max(20px, calc((100vw - 1160px) / 2)); }
main > section { padding-top: 72px; padding-bottom: 24px; scroll-margin-top: 80px; }
.header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; background: rgb(247 246 251 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.nav { margin: 0 auto; }
.nav ul { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 16px; border: 1px solid var(--line); border-radius: 40px; background: var(--card); text-decoration: none; font-weight: 600; font-size: 14px; }
.cart-link b { min-width: 24px; padding: 0 7px; border-radius: 20px; background: var(--accent); color: #fff; text-align: center; }

.btn { display: inline-block; padding: 13px 24px; border: 1px solid var(--accent); border-radius: 40px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--ghost { background: none; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--card); }
.btn--small { padding: 9px 16px; font-size: 14px; }
.eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.hero { text-align: center; }
.hero__lead { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 19px; }
.hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero__media { margin-top: 44px; aspect-ratio: 2.1 / 1; overflow: hidden; border-radius: 28px; background: var(--line); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.head { margin-bottom: 32px; }
.head__note { margin-top: 10px; color: var(--muted); }
.features__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.feature__num { display: block; margin-bottom: 18px; color: var(--accent); font-weight: 800; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.showcase { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.showcase__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; background: var(--line); }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.showcase__text > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.shop__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.shop__filters button { padding: 8px 16px; border: 1px solid var(--line); border-radius: 40px; background: var(--card); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.shop__filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop__lead { flex-basis: 100%; color: var(--muted); }
.shop__cover { flex-basis: 100%; width: 100%; height: 220px; object-fit: cover; border-radius: 20px; }
.shop__facet { display: flex; flex-wrap: wrap; flex-basis: 100%; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.shop__filters .shop__facet button { padding: 5px 12px; font-size: 13px; }
.shop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shop__empty { grid-column: 1 / -1; color: var(--muted); }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 12px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.card__media { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media { position: relative; }
.card__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.card__badges span { padding: 3px 10px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.product__new { margin-top: 8px; color: var(--accent); font-weight: 800; font-size: 13px; }
.card__title { margin-top: 6px; }
.card__title a { text-decoration: none; }
.card__sub { color: var(--muted); font-size: 14px; }
.card__price { margin: 2px 0 8px; font-size: 18px; }
.card__price s { color: var(--muted); font-size: 14px; }

.faq__list { display: grid; gap: 10px; max-width: 820px; }
.faq__item { padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.faq__item summary { cursor: pointer; font-weight: 700; }
.faq__item p { margin-top: 10px; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-bottom: 80px !important; }
.contact__text > p { margin-top: 12px; color: var(--muted); }
.contact__note { font-size: 14px; }
.contact__form { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.contact__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.contact__form input, .subscribe input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg); color: var(--ink); }
.form__status { min-height: 1.4em; color: var(--accent); font-size: 14px; }

.product { min-height: 60vh; }
.product__back { margin-bottom: 20px; }
.product__view { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: var(--card); }
.product__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.product__thumbs button { padding: 0; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.product__info h1 { font-size: clamp(30px, 4vw, 44px); }
.product__sku { color: var(--muted); font-size: 13px; }
.product__price { margin: 16px 0 10px; font-size: 28px; }
.product__text { margin-top: 28px; }
.product__specs h2 { margin: 26px 0 8px; font-size: 18px; }
.product__specs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.product__specs dt { color: var(--muted); }
.product__specs dd { margin: 0; text-align: right; }
.product__related { grid-column: 1 / -1; margin-top: 32px; }
.product__related h2 { margin-bottom: 18px; font-size: 26px; }

.footer { padding-top: 48px; padding-bottom: 40px; background: var(--ink); color: #fff; }
.footer__main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer__brand { font-size: 26px; font-weight: 800; }
.subscribe { display: grid; grid-template-columns: minmax(200px, 280px) auto; gap: 10px; }
.subscribe input { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: #fff; }
.subscribe button { padding: 0 20px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.subscribe .form__status { grid-column: 1 / -1; color: #c9c8ff; }
.footer__legal { margin-top: 28px; color: rgb(255 255 255 / .6); font-size: 13px; }

@media (max-width: 1023px) {
  .features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase, .contact, .product__view { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .header { flex-wrap: wrap; row-gap: 10px; }
  .cart-link { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { gap: 8px; justify-content: space-between; white-space: nowrap; }
  .nav a { font-size: 13px; }
  main > section { padding-top: 52px; }
  .hero__media { aspect-ratio: 4 / 5; border-radius: 20px; }
  .features__list, .shop__grid { grid-template-columns: minmax(0, 1fr); }
  .subscribe { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .subscribe button { padding: 12px; }
}
