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

:root {
  /* Палитра: глубокий индиго (онкология, точность) + янтарный акцент */
  --night:        #232B63;
  --night-deep:   #131840;
  --night-soft:   #E7E9F5;
  --amber:        #C97E2B;
  --amber-deep:   #A2621C;
  --bg:           #F5F3EE;
  --surface:      #FFFFFF;
  --ink:          #1B1E2B;
  --muted:        #5D6070;
  --line:         #DFDDD4;

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

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', 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(--night); 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(--amber-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(--amber);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(201,126,43,.75);
}
.btn--buy:hover { background: var(--amber-deep); }
.btn--buy::after { content: "→"; font-weight: 600; }

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

/* размер кнопки в шапке */
.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(--amber);
  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(--night-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(--night);
  margin: 0 0 22px;
  max-width: 20ch;
}
.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;
  margin: 0;
  box-shadow: 0 40px 80px -50px rgba(19,24,64,.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(--amber-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(3, 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(--night);
  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(--amber-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(--night);
  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(--night-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(201,126,43,.32), transparent 60%);
}
.buy > * { position: relative; }
.buy h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.buy p { color: #C4C8E0; font-size: 18px; max-width: 52ch; margin: 0 auto 32px; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
  background: var(--night-deep);
  color: #B0B5D2;
  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: #B0B5D2; font-weight: 600; }
.site-footer nav a:hover { color: #fff; }
.site-footer__disclaimer {
  margin-top: 28px;
  color: #8A90B4;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 90ch;
}
.site-footer__copy { margin-top: 22px; color: #707698; font-size: 13px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1024px) {
  .actives { grid-template-columns: repeat(3, 1fr); }
}

@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; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .brand__tag { display: none; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .hero__card { padding: 20px; }
  .buy { border-radius: 20px; }
}

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

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