:root {
  --bg: #eef4d8;
  --bg-soft: #f4f2e8;
  --ink: #001707;
  --mute: #474a40;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.10);
  --accent: #829b88;
  --accent-dark: #646c50;
  --on: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Rubik', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.site-header__bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img { width: 24px; height: 24px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  font-weight: 600;
  font-size: 16px;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active { color: #606060; }

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 12px;
}

.header-icons button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.header-icons button:hover { opacity: 0.6; }
.header-icons svg { width: 22px; height: 22px; }

.cart-counter {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #c94a4a;
  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;
  font-family: var(--font-body);
}

.cart-counter[hidden] { display: none; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Main --- */
main { flex: 1; width: 100%; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 60px 0; }
.section--tight { padding: 30px 0; }

/* --- Hero (главная) --- */
.hero-uptitle {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--mute);
  text-align: center;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  text-align: center;
  line-height: 1;
  margin-bottom: 60px;
}

.hero-image {
  max-width: 900px;
  margin: 0 auto 60px;
}

.hero-image img { border-radius: 20px; }

.hero-descr {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  color: var(--mute);
}

.hero-descr strong { color: var(--ink); }

/* --- Feature block (бустер + QR) --- */
.feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.feature__uptitle {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 12px;
}

.feature__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.15;
}

.feature__text {
  color: var(--mute);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 28px;
}

.feature__img { display: flex; justify-content: center; }

.feature__img img {
  max-width: 380px;
  border-radius: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--on);
  padding: 14px 32px;
  border-radius: 999px;
  border: 0;
  font: 600 15px var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn:hover {
  background: #1a2e1e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 23, 7, 0.2);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.btn--wide { width: 100%; }

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --- Reviews --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 56px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  background: var(--card);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review p {
  color: var(--mute);
  font-size: 16px;
  line-height: 1.65;
}

.review b {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

/* --- Feedback form --- */
.feedback {
  background: var(--card);
  border-radius: 18px;
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.feedback h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(130, 155, 136, 0.18);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--mute);
  opacity: 0.55;
}

.form-note {
  font-size: 13px;
  color: var(--mute);
  text-align: center;
  margin-top: 14px;
  min-height: 18px;
}

/* --- Catalog --- */
.catalog-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.catalog-sub {
  text-align: center;
  color: var(--mute);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-card__image {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f4ec;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img { transform: scale(1.03); }

.product-card__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1;
}

.product-card__descr {
  font-size: 15px;
  color: var(--mute);
  line-height: 1.6;
}

.product-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.product-card__actions .btn {
  padding: 14px 24px;
  font-size: 14px;
}

.product-card__actions .btn--cart { min-width: 180px; }
.product-card__actions .btn--ghost { padding: 14px 20px; }

/* --- Test --- */
.test-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.test-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  margin-bottom: 20px;
}

.test-intro p {
  color: var(--mute);
  font-size: 17px;
  margin-bottom: 32px;
}

.test-progress {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 8px;
  text-align: center;
}

.test-bar {
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 36px;
}

.test-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.test-question {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.25;
}

.test-options { max-width: 640px; margin: 0 auto; }

.test-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  font: 400 16px var(--font-body);
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.test-option:hover {
  border-color: var(--accent);
  background: rgba(130, 155, 136, 0.07);
  transform: translateX(4px);
}

.test-result {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.test-result h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 600;
  margin-bottom: 20px;
}

.test-result p { color: var(--mute); font-size: 17px; }

.test-result .recommend {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0;
}

.test-result .disclaimer {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 32px;
}

.test-result__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contacts --- */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card p { color: var(--mute); font-size: 15px; }

/* --- Cart modal --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
}

.cart-overlay.is-open { display: flex; }

.cart-panel {
  background: var(--card);
  width: 100%;
  max-width: 460px;
  height: 100vh;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.cart-panel__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
}

.cart-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: var(--mute);
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.cart-panel__close:hover { background: rgba(0, 0, 0, 0.05); }

.cart-list {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item__name {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item__price { font-size: 14px; color: var(--mute); }

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__controls button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  transition: background-color 0.2s ease;
}

.cart-item__controls button:hover { background: rgba(0, 0, 0, 0.05); }
.cart-item__qty { min-width: 20px; text-align: center; font-weight: 500; }

.cart-empty {
  text-align: center;
  color: var(--mute);
  padding: 40px 0;
  font-size: 15px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 300;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer__logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.site-footer__text {
  font-size: 14px;
  color: var(--mute);
  max-width: 280px;
  line-height: 1.55;
}

.site-footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
}

.site-footer ul { list-style: none; }

.site-footer li {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 8px;
}

.site-footer a:hover { color: var(--ink); }

.site-footer__bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 32px;
  font-size: 13px;
  color: var(--mute);
}

/* --- Mobile --- */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 18px; }
  .burger { display: block; }
  .header-icons { margin-left: 0; }

  .feature { grid-template-columns: 1fr; gap: 32px; }
  .reviews { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .cart-panel { padding: 24px; }
  .product-card__actions { flex-direction: column; }
  .product-card__actions .btn { width: 100%; }
}