/* ==========================================================================
   Велакаст — официальный сайт препарата
   Общие стили (подключаются на всех страницах)
   ========================================================================== */

:root {
  /* Палитра: клиническая, «печёночно-зелёный» петроль + зелёный «выздоровления» */
  --petrol:        #0E4D54;
  --petrol-deep:   #072E33;
  --petrol-soft:   #E2EEEC;
  --cure:          #12996B;
  --cure-deep:     #0C7A55;
  --bg:            #EFF3F1;
  --surface:       #FFFFFF;
  --ink:           #12201E;
  --muted:         #566764;
  --line:          #D7E0DD;

  --radius:   16px;
  --radius-s: 10px;
  --maxw:     1140px;
  --gap:      clamp(56px, 8vw, 104px);

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--petrol); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cure-deep);
  margin: 0 0 18px;
}

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--buy {
  background: var(--cure);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(18,153,107,.7);
}
.btn--buy:hover { background: var(--cure-deep); }
.btn--buy::after { content: "→"; font-weight: 600; }

.btn--ghost {
  background: transparent;
  color: var(--petrol);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--petrol); }

/* размер кнопки в шапке */
.btn--sm { padding: 11px 20px; font-size: 15px; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cure);
  display: inline-block;
  transform: translateY(-2px);
}
.brand__tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }

.nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(48px, 7vw, 90px) 0 var(--gap);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 88% 0%, var(--petrol-soft) 0%, transparent 55%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  margin: 0 0 8px;
}
.hero__lede {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--petrol);
  margin: 0 0 22px;
  max-width: 18ch;
}
.hero__formula {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
}
.hero__formula b { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 40px 80px -50px rgba(7,46,51,.55);
  width: 100%;
  max-width: 430px;
}
.hero__card img {
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
}
.hero__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__stat .num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  color: var(--cure-deep);
  line-height: 1;
}
.hero__stat .lbl {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

/* ==========================================================================
   Секции
   ========================================================================== */
.section { padding: var(--gap) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.section__head { max-width: 720px; margin: 0 0 48px; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section__head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Состав — две действующие субстанции */
.actives {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.active {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.section--surface .active { background: var(--bg); }
.active__dose {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--petrol);
  margin-bottom: 4px;
}
.active__name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.active__desc { color: var(--muted); font-size: 16px; margin: 0; }

/* Применение — шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section--surface .step { background: var(--bg); }
.step__n {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--cure-deep);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.step__n::before { content: "0" counter(step) " — "; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* Эффективность — крупный показатель */
.efficacy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.efficacy__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(96px, 16vw, 184px);
  line-height: .9;
  color: var(--cure-deep);
  letter-spacing: -0.03em;
}
.efficacy__big sup { font-size: .4em; vertical-align: super; }
.efficacy__txt p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.efficacy__txt p:first-child { color: var(--ink); font-weight: 600; }

/* Блок «Где купить» */
.buy {
  background: var(--petrol-deep);
  color: #fff;
  border-radius: 28px;
  padding: clamp(44px, 6vw, 76px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.buy::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 130% at 50% 0%, rgba(18,153,107,.35), transparent 60%);
}
.buy > * { position: relative; }
.buy h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.buy p { color: #BFD3CF; font-size: 18px; max-width: 52ch; margin: 0 auto 32px; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
  background: var(--petrol-deep);
  color: #AFC4C0;
  padding: 56px 0 40px;
  font-size: 15px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer nav a { color: #AFC4C0; font-weight: 600; }
.site-footer nav a:hover { color: #fff; }
.site-footer__disclaimer {
  margin-top: 28px;
  color: #87A19C;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 90ch;
}
.site-footer__copy { margin-top: 22px; color: #6F8985; font-size: 13px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__card { max-width: 360px; }
  .actives, .steps { grid-template-columns: 1fr; }
  .efficacy { grid-template-columns: 1fr; text-align: left; }
  .nav { display: none; }
}

/* Доступность */
:focus-visible { outline: 3px solid var(--cure); outline-offset: 2px; border-radius: 4px; }

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