/* Syntonik62 — фирменный стиль: тёмно-серый карбон + кислотно-зелёный.
   Зелёный остался акцентом, как на листовках, а чёрная база сменилась
   на графитовую с текстурой — по просьбе Дениса. */

:root {
  --bg:        #15181b;
  --bg-alt:    #1b2023;
  --surface:   #212629;
  --line:      #333b41;
  --text:      #e8f3ea;
  --muted:     #8fa896;
  --green:     #3ddc43;
  --green-dk:  #27a02c;
  --green-glow: rgba(61, 220, 67, .25);
  --warn:      #ffb020;
  --radius:    14px;
  --wrap:      1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Плетение карбона: две встречные штриховки поверх графитовой заливки.
     Шаг мелкий, прозрачность низкая — вблизи видна фактура, издали
     ровный тёмный фон, который не мешает читать текст. */
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .020) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, .26) 0 1px, transparent 1px 4px);
  color: var(--text);
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Чертёжный слой: сетка миллиметровки и инженерные элементы.
   pointer-events: none — слой декоративный и не перехватывает клики. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("assets/techno.svg"),
    repeating-linear-gradient(0deg,
      rgba(61, 220, 67, .038) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg,
      rgba(61, 220, 67, .038) 0 1px, transparent 1px 52px);
  background-repeat: no-repeat, repeat, repeat;
  background-position: center center, 0 0, 0 0;
  background-size: cover, auto, auto;
  opacity: .55;
}

/* Контент — над чертёжным слоем. */
body > * { position: relative; z-index: 1; }

/* На узких экранах чертёж превращается в кашу и ест батарею — убираем,
   текстура карбона остаётся. */
@media (max-width: 760px) {
  body::before { background-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { position: absolute; }
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}
.wrap--narrow { max-width: 780px; }

.center { text-align: center; }
.accent { color: var(--green); }
.good   { color: var(--green); }

/* ---------------------------------- шапка ---------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 16, 10, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.logo:hover { text-decoration: none; }
.logo__mark { color: var(--green); font-size: 14px; }
.logo__num  { color: var(--green); }
.logo--sm { font-size: 18px; margin: 0 0 8px; }

.nav { display: none; gap: 22px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--green); text-decoration: none; }

/* ---------------------------------- кнопки ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  min-height: 52px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green);
  color: #04210a;
  box-shadow: 0 6px 24px var(--green-glow);
}
.btn--primary:hover { background: #4bee52; }

.btn--outline {
  background: transparent;
  border-color: var(--green-dk);
  color: var(--green);
}
.btn--outline:hover { border-color: var(--green); background: rgba(61, 220, 67, .08); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--lg   { padding: 17px 30px; font-size: 16px; min-height: 58px; }
.btn--sm   { padding: 9px 16px; min-height: 40px; font-size: 14px; }
.btn--full { width: 100%; }

/* ---------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 420px at 75% -10%, rgba(61, 220, 67, .18), transparent 60%),
    linear-gradient(180deg, #081a0d 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}
.hero__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 7vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero__sub {
  margin: 0 0 28px;
  max-width: 620px;
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--muted);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.trust li::before { content: "✓ "; color: var(--green); font-weight: 900; }

/* ---------------------------------- секции ---------------------------------- */

.section { padding: 56px 0; }
/* Подложка полупрозрачная, иначе она перекрыла бы текстуру карбона. */
.section--alt {
  background: rgba(255, 255, 255, .028);
  border-block: 1px solid var(--line);
}

.h2 {
  margin: 0 0 32px;
  font-size: clamp(23px, 4.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.h3 { margin: 0 0 16px; font-size: 20px; font-weight: 700; }

.lead { font-size: 18px; color: var(--muted); margin-top: 28px; }
.note { font-size: 14px; color: var(--muted); }

/* ---------------------------------- карточки ---------------------------------- */

.cards { display: grid; gap: 16px; }
.cards--3, .cards--4 { grid-template-columns: 1fr; }

.card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.card p  { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }

.card--warn { border-left: 3px solid var(--warn); }
.card--warn h3::before { content: "⚠ "; color: var(--warn); }

.card__stat {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -.02em;
}
.card__meta { font-size: 13px !important; text-transform: uppercase; letter-spacing: .06em; }
.card__big  { font-size: 24px !important; font-weight: 800; margin: 4px 0 10px !important; }

/* ---------------------------------- таблица дозировок ---------------------------------- */

.dosage { margin-top: 36px; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: rgba(61, 220, 67, .1); color: var(--green); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--muted); }
.table td + td { font-weight: 700; }

/* ---------------------------------- калькулятор ---------------------------------- */

.calc { display: grid; gap: 20px; }

.calc__inputs {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.field output { color: var(--green); font-weight: 800; font-size: 17px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--green-dk), 0 4px 14px var(--green-glow);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  border: 4px solid var(--bg);
  cursor: pointer;
}

.calc__result {
  padding: 24px;
  background: linear-gradient(160deg, #11301a, var(--surface));
  border: 1px solid var(--green-dk);
  border-radius: var(--radius);
}
.calc__label {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}
.calc__rows { margin: 0 0 20px; }
.calc__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.calc__rows dt { color: var(--muted); font-size: 15px; }
.calc__rows dd { margin: 0; font-weight: 700; font-size: 16px; }

.calc__hero {
  padding: 20px;
  margin-bottom: 18px;
  text-align: center;
  background: rgba(61, 220, 67, .08);
  border-radius: var(--radius);
}
.calc__hero-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.calc__hero-value {
  display: block;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 900;
  color: var(--green);
  letter-spacing: -.02em;
  transition: opacity .15s ease;
}
.calc__hero-value.is-updating { opacity: .45; }

.calc__foot { margin: 0 0 20px; font-size: 15px; color: var(--muted); }

/* Количество месяцев — главная цифра в этих строках, поэтому крупнее
   основного текста и фирменным зелёным. */
.calc__months {
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.calc__hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  opacity: .8;
}
.calc__cta { display: grid; gap: 10px; }

/* ---------------------------------- продукты ---------------------------------- */

.product { display: flex; flex-direction: column; }
.product--hit { border-color: var(--green-dk); box-shadow: 0 0 40px rgba(61, 220, 67, .1); }

.badge {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--green);
  color: #04210a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product__name {
  margin: 0 0 6px !important;
  font-size: 15px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted) !important;
}
.product__price {
  margin: 0 0 16px !important;
  font-size: 28px;
  font-weight: 900;
  color: var(--text) !important;
  letter-spacing: -.02em;
}
.product__price s { font-size: 17px; font-weight: 600; color: var(--muted); margin-right: 8px; }

.product__list {
  flex: 1;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.product__list li { padding: 6px 0 6px 20px; position: relative; }
.product__list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--green);
  font-weight: 900;
}
.product__note { margin: 12px 0 0 !important; font-size: 12px !important; text-align: center; }

/* ---------------------------------- комплект ---------------------------------- */

.kit {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}
.kit li {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--green);
}
.kit b { display: block; font-size: 16px; margin-bottom: 2px; }
.kit span { font-size: 14px; color: var(--muted); }

/* ---------------------------------- FAQ ---------------------------------- */

.faq details {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  padding: 18px 48px 18px 20px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* ---------------------------------- форма заказа ---------------------------------- */

.order { display: grid; gap: 20px; }

.order__form, .order__contacts {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

input[type="text"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px — чтобы iOS не зумил при фокусе */
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-dk);
  box-shadow: 0 0 0 3px var(--green-glow);
}
input.is-invalid, textarea.is-invalid { border-color: #ff5a5a; }
textarea { resize: vertical; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); flex: none; }

.form__status { margin: 14px 0 0; font-size: 14px; min-height: 20px; }
.form__status.is-ok   { color: var(--green); }
.form__status.is-fail { color: #ff7a7a; }

.contact {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.contact:hover { text-decoration: none; }
.contact:hover b { color: var(--green); }
.contact b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; font-weight: 700; }
.contact span { font-size: 16px; }
.contact--static span { font-size: 14px; color: var(--muted); }
.order__contacts .btn { margin-top: 20px; }

/* ---------------------------------- футер ---------------------------------- */

.footer {
  padding: 40px 0 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer__inner { display: grid; gap: 24px; }
.footer__note { margin: 0; font-size: 14px; color: var(--muted); }
.footer__nav { display: grid; gap: 10px; font-size: 14px; }
.footer__nav a { color: var(--muted); }
.footer__nav a:hover { color: var(--green); }
.footer__copy { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------- дозировка с картинкой ---------------------------------- */

.dosage__split { display: grid; gap: 24px; align-items: start; }
.dosage__lead { margin: 0 0 18px; font-size: 16px; color: var(--muted); }
.dosage__lead b { color: var(--text); }
.dosage__figure { margin: 0; }
.dosage__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.dosage__figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------- карточки документов ---------------------------------- */

.doc { display: flex; flex-direction: column; }
.doc__kind {
  margin: 0 0 6px !important;
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--green) !important;
}
.doc h3 { margin-bottom: 12px; font-size: 19px; }
.doc > p { flex: 1; }
.doc__facts { margin: 16px 0 18px; }
.doc__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.doc__facts dt { color: var(--muted); }
.doc__facts dd { margin: 0; font-weight: 700; text-align: right; }

@media (min-width: 900px) {
  .dosage__split { grid-template-columns: 1.25fr 1fr; gap: 36px; }
}

/* ---------------------------------- полоса «Отзывы» ---------------------------------- */

/* Полоса отзывов должна бросаться в глаза: насыщенная зелёная заливка,
   светящаяся кромка и медленный блик, пробегающий по ней. */
.ribbon {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #176b24, #27a02c 50%, #176b24);
  border-block: 2px solid var(--green);
  box-shadow: 0 0 34px var(--green-glow);
  color: #ffffff;
  text-decoration: none;
  transition: filter .2s ease;
}
.ribbon:hover { filter: brightness(1.12); text-decoration: none; }

/* Блик. Он чисто декоративный, поэтому отключается вместе с анимациями. */
.ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg,
    transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  animation: ribbon-sheen 4.5s ease-in-out infinite;
}
@keyframes ribbon-sheen {
  0%, 62% { left: -60%; }
  100% { left: 125%; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon::after { animation: none; }
}
.ribbon:hover .ribbon__arrow { transform: translateX(4px); }

.ribbon__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-block: 22px;
}
.ribbon__label {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
  flex: none;
}
.ribbon__text {
  flex: 1 1 260px;
  font-size: 15px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.5;
}
.ribbon__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 2px solid var(--green-dk);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  color: var(--green);
  white-space: nowrap;
}
.ribbon__arrow { display: inline-block; transition: transform .2s ease; }


/* ---------------------------------- фото набора ---------------------------------- */

.kit__shot { margin: 0 0 24px; }
.kit__shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------------------------------- адаптив ---------------------------------- */

@media (min-width: 680px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .kit { grid-template-columns: repeat(2, 1fr); }
  .calc__cta { grid-auto-flow: column; }
  .footer__nav { grid-auto-flow: column; justify-content: start; gap: 24px; }
}

@media (min-width: 900px) {
  .section { padding: 80px 0; }
  .hero { padding: 90px 0 100px; }
  .nav { display: flex; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .kit { grid-template-columns: repeat(5, 1fr); }
  .calc { grid-template-columns: 1fr 1fr; align-items: start; }
  .order { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__copy { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
