﻿:root {
  --ink: #171412;
  --muted: #706b66;
  --soft: #f7f3ee;
  --paper: #fffdf9;
  --line: rgba(23, 20, 18, 0.1);
  --rose: #c96f80;
  --moss: #5d7f68;
  --clay: #b46a4c;
  --blue: #2f6f8f;
  --shadow: 0 18px 48px rgba(37, 28, 22, 0.09);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 111, 128, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(93, 127, 104, 0.16), transparent 26%),
    linear-gradient(180deg, #fffaf5 0%, #f7f3ee 44%, #ffffff 100%);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23,20,18,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,20,18,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { font-weight: 800; letter-spacing: 0; font-size: 1.1rem; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  text-transform: lowercase;
}
.brand-word {
  font-weight: 900;
  background: linear-gradient(90deg, #171412, #5d7f68);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-x {
  display: inline-flex;
  width: 1.45em;
  height: 1.45em;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #c96f80, #2f6f8f);
  box-shadow: 0 8px 18px rgba(201, 111, 128, .28);
  font-weight: 950;
  font-size: .82em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 22px; color: #4f4a45; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-count { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; margin-left: 5px; border-radius: 999px; background: rgba(201,111,128,.16); color: #7a3442; font-size: .76rem; font-weight: 850; }
.btn, .chip-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover, .chip-btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 12px 28px rgba(23,20,18,.16); }
.btn-secondary { background: rgba(255,255,255,.72); border: 1px solid var(--line); color: var(--ink); }
.btn-accent { background: var(--rose); color: white; box-shadow: 0 12px 28px rgba(201,111,128,.22); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 30px 22px 80px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 22px;
  align-items: stretch;
  margin: 10px 0 32px;
}
.panel, .card, .hero-panel {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.card {
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,111,128,.24);
  box-shadow: 0 18px 44px rgba(37,28,22,.11);
}
.hero-panel { padding: clamp(28px, 5vw, 56px); overflow: hidden; position: relative; }
.hero-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(93, 127, 104, .14);
  filter: blur(24px);
  pointer-events: none;
}
.eyebrow { color: var(--moss); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.55rem, 6vw, 5.8rem); line-height: .96; letter-spacing: 0; margin-bottom: 18px; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; margin-bottom: 10px; }
h3 { line-height: 1.2; }
.soft-heading { font-size: 1.05rem; font-weight: 750; color: #4f4a45; margin: 18px 0 8px; }
.lead { color: var(--muted); line-height: 1.72; font-size: 1.08rem; max-width: 720px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 20px; box-shadow: 0 10px 30px rgba(37,28,22,.06); }
.card p { color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.routine-preview { display: grid; gap: 10px; margin-top: 22px; }
.routine-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.routine-row strong { color: var(--ink); }
.section { margin: 46px 0; }
.plan-section { scroll-margin-top: 90px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 18px; }
.section-head p { color: var(--muted); max-width: 460px; line-height: 1.65; }
.quiz-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 22px; align-items: start; }
.quiz-layout-wide-copy { grid-template-columns: 1.08fr 1fr; }
.quiz-layout-wide-copy > .hero-panel:first-child { min-height: 620px; }
.quiz-layout-wide-copy > .hero-panel:first-child .lead { max-width: 860px; }
.quiz-layout-wide-copy .grid-3 { grid-template-columns: 1fr; }
.quiz-panel { padding: 26px; }
.progress-bar { height: 10px; border-radius: 999px; overflow: hidden; background: rgba(23,20,18,.1); margin: 12px 0 24px; }
.progress-fill { height: 100%; width: 20%; background: linear-gradient(90deg, var(--rose), var(--moss)); transition: width .25s ease; }
.step { display: none; }
.step.active { display: block; }
.options { display: grid; gap: 12px; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card label { display: block; border: 1px solid var(--line); background: rgba(255,255,255,.78); border-radius: 18px; padding: 16px 18px; cursor: pointer; font-weight: 750; }
.option-card input:checked + label { border-color: rgba(201,111,128,.55); background: rgba(201,111,128,.12); color: #6f2e3b; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.error-text { display: none; color: #a33b42; font-weight: 700; margin-top: 14px; }
.controls { display: grid; grid-template-columns: 1.2fr .75fr .75fr .75fr; gap: 14px; margin: 22px 0; }
.control { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.control label { display: block; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.control input, .control select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.status-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); margin: 12px 0 18px; flex-wrap: wrap; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(201,111,128,.13), transparent 34%, rgba(93,127,104,.1));
  opacity: 0;
  transition: opacity .18s ease;
}
.product-card:hover::before { opacity: 1; }
.product-image { height: 255px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; border-bottom: 1px solid var(--line); }
.product-image img { max-height: 100%; object-fit: contain; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-name { font-size: 1rem; line-height: 1.38; margin: 0; }
.meta { color: var(--muted); line-height: 1.55; font-size: .92rem; }
.rating-stars { color: #b46a22; font-size: .94rem; font-weight: 850; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 8px; }
.star-meter { position: relative; display: inline-block; line-height: 1; font-size: 1.05em; letter-spacing: .05em; }
.star-empty { color: rgba(180, 106, 34, .28); }
.star-filled { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; white-space: nowrap; color: #b46a22; }
.rating-number { color: var(--muted); font-size: .9em; letter-spacing: 0; }
.rating-large { font-size: 1.12rem; margin: 6px 0 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { border: 1px solid var(--line); background: rgba(255,255,255,.7); color: #57514b; border-radius: 999px; padding: 6px 9px; font-size: .78rem; font-weight: 750; }
.tag-description { color: var(--muted); line-height: 1.62; font-size: .96rem; margin-bottom: 12px; }
.product-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination-controls { justify-content: center; align-items: center; gap: 14px; margin: 24px 0 8px; }
.pagination-label { color: var(--muted); font-weight: 800; font-size: .94rem; }
.plan-section .products-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.plan-group { padding: 18px; }
.plan-group h3 { margin-bottom: 14px; }
.plan-group .products-grid { grid-template-columns: repeat(2, 1fr); }
.plan-card .product-image { height: 150px; padding: 14px; }
.plan-card .product-body { padding: 14px; gap: 8px; }
.plan-card .product-name { font-size: .88rem; line-height: 1.34; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plan-card .tag-row { display: none; }
.plan-card .status-row { margin: 0; font-size: .82rem; }
.plan-card .rating-stars, .plan-card .meta { font-size: .82rem; }
.plan-card .product-actions { gap: 7px; }
.plan-card .btn { padding: 8px 10px; font-size: .78rem; }
.message { padding: 18px; color: var(--muted); line-height: 1.65; }
.results-hero { margin-bottom: 22px; }
.profile-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.routine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step-card { padding: 16px; }
.step-label { color: var(--moss); font-weight: 850; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; margin-bottom: 12px; }
.result-product { display: grid; grid-template-columns: 142px 1fr; gap: 16px; align-items: center; }
.result-product .product-image { height: 142px; border: 1px solid var(--line); border-radius: 18px; }
.reason { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.detail-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 20px; align-items: start; }
.related-head { align-items: center; }
.related-controls { display: flex; gap: 8px; }
.related-grid { display: block; overflow: hidden; }
.related-track { display: flex; gap: 16px; transition: transform .38s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.related-track .product-card { flex: 0 0 calc((100% - 32px) / 3); }
.product-detail-title { font-size: clamp(1.55rem, 2.4vw, 2.45rem); line-height: 1.12; margin-bottom: 12px; }
.product-detail-price { font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.15; margin: 10px 0; }
.gallery-main { height: 500px; display: flex; align-items: center; justify-content: center; padding: 22px; background: white; border-radius: 18px; border: 1px solid var(--line); }
.gallery-main img { max-height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { width: 100%; height: 92px; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.thumb.active { border-color: var(--rose); }
.thumb-arrow { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.82); color: var(--ink); font-size: 1.45rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.thumb-arrow:hover { background: white; }
.thumb-arrow:disabled { opacity: .35; cursor: not-allowed; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 14px; padding: 12px; }
.tile strong { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.footer { text-align: center; padding: 26px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(255,255,255,.55); }
@media (max-width: 980px) {
  .hero, .quiz-layout, .routine-grid, .detail-grid, .plan-groups { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .products-grid, .plan-section .products-grid { grid-template-columns: repeat(2, 1fr); }
  .related-track .product-card { flex-basis: calc((100% - 16px) / 2); }
  .controls { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 680px) {
  .container { padding: 20px 14px 58px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.4rem); }
  .grid-3, .grid-4, .products-grid, .plan-section .products-grid, .controls, .info-grid { grid-template-columns: 1fr; }
  .hero-panel, .panel, .card { border-radius: 18px; }
  .result-product { grid-template-columns: 1fr; }
  .result-product .product-image { height: 220px; }
  .gallery-main { height: 360px; }
  .related-track .product-card { flex-basis: 100%; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thumb { height: 82px; }
  .actions .btn { width: 100%; }
}
