/* ==========================================================================
   Snezha Capital — вёрстка по макету Figma «Snezha Capital UI»
   Токены, база, сетка, переиспользуемые компоненты
   ========================================================================== */

/* ---------- 1. Токены -------------------------------------------------- */
:root {
  /* Цвета */
  --navy:        #0e1d2f;   /* тёмно-синий: кнопки, тёмные секции */
  --navy-deep:   #0b1929;   /* фон секции «Как начинается работа» */
  --ink:         #10141a;   /* основной текст */
  --ink-2:       #5a6472;   /* вторичный текст */
  --ink-3:       #8b94a1;   /* подписи, мета */

  --accent:      #b0793d;   /* золото-коричневый: акцент в заголовках */
  --accent-2:    #c9a063;   /* золото: иконки, цифры, обводки */
  --accent-3:    #d8b485;   /* светлое золото: текст на тёмном */
  --accent-soft: #f6ecdc;   /* фон «крипто»-баннера */

  --bg:          #ffffff;
  --bg-warm:     #faf9f7;   /* тёплая альтернативная секция */
  --bg-cool:     #eff2f6;   /* холодная альтернативная секция */
  --surface:     #ffffff;
  --line:        #e9e7e3;
  --line-2:      #dfe3e9;

  --footer-bg:   #191919;

  /* Типографика */
  --font-serif: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Скругления и тени */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 26, .04), 0 4px 12px rgba(16, 20, 26, .04);
  --shadow-md: 0 2px 4px rgba(16, 20, 26, .04), 0 12px 28px rgba(16, 20, 26, .07);
  --shadow-lg: 0 8px 20px rgba(16, 20, 26, .08), 0 24px 60px rgba(16, 20, 26, .10);

  /* Сетка */
  --container: 1184px;   /* 1440 − 2×128 */
  --gutter: 24px;

  /* Вертикальный ритм секций */
  --section-y: 104px;
}

@media (max-width: 900px) { :root { --section-y: 72px; } }
@media (max-width: 600px) { :root { --section-y: 56px; --gutter: 20px; } }

/* ---------- 2. Сброс и база -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
/* Подзаголовки карточек в макете — гротеск (Manrope), а не антиква */
h4 { margin: 0; font-family: var(--font-sans); font-size: 16px; font-weight: 700; line-height: 1.35; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
blockquote, figure { margin: 0; }

::selection { background: var(--accent-2); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Сетка ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1441px) { .container { max-width: calc(var(--container) + 256px); padding-inline: 128px; } }

.section { padding-block: var(--section-y); }
.section--warm { background: var(--bg-warm); }
.section--cool { background: var(--bg-cool); }
.section--dark { background: var(--navy-deep); color: #fff; }

/* ---------- 4. Типографика --------------------------------------------- */
/* Кегли сняты с макета (1440): h1 ≈ 30, h2 ≈ 26, h4 ≈ 16, текст ≈ 14 */
.h1 { font-size: clamp(26px, 2.2vw, 31px); line-height: 1.3; }
.h2 { font-size: clamp(22px, 1.85vw, 26px); line-height: 1.28; }
.h3 { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.3; }
.h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }

.lead      { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.body      { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.body-sm   { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.meta      { font-size: 12px; color: var(--ink-3); }

.accent    { color: var(--accent); }
.accent-2  { color: var(--accent-2); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 14px;
}
.eyebrow--plain { background: transparent; border: 0; padding: 0; color: var(--accent-2); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .h2 { margin-bottom: 12px; }
.section-head .lead { max-width: 720px; margin-inline: auto; }
.section-head--left { text-align: left; }
.section-head--left .lead { margin-inline: 0; }

/* Цитата с золотой линией слева */
.quote {
  position: relative;
  border-left: 2px solid var(--accent-2);
  padding: 6px 96px 6px 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
}
.quote::after {
  content: "”";
  position: absolute;
  right: 18px; top: -14px;
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 1;
  color: var(--accent-2);
  opacity: .28;
  pointer-events: none;
}
.quote__author { display: block; margin-top: 14px; font-family: var(--font-sans); font-style: normal; font-size: 14px; }
.quote__author b { font-weight: 700; letter-spacing: .02em; }
.quote__author span { color: var(--ink-2); margin-left: 10px; }
@media (max-width: 600px) { .quote { padding-right: 24px; } .quote::after { display: none; } }

/* ---------- 5. Кнопки --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary   { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: #16293f; box-shadow: var(--shadow-lg); }

.btn--secondary { background: #fff; color: var(--ink); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }

.btn--light     { background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.btn--light:hover { background: #f4f4f4; }

.btn--tertiary  { background: transparent; color: var(--ink); min-height: 40px; padding: 0 4px; }
.btn--tertiary:hover { color: var(--accent); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; font-size: 15px; padding: 0 24px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-weight: 600; font-size: 15px;
  transition: gap .18s ease, color .18s ease;
}
.link-arrow:hover { gap: 12px; color: var(--accent); }

/* ---------- 6. Карточки -------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card--dark { background: var(--navy); border-color: transparent; color: #fff; }
.card--flat { box-shadow: none; }

/* Иконка в круге */
.icon-circle {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  flex: none;
}
.icon-plain { color: var(--accent-2); flex: none; }

/* Пилюля-бейдж */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 12.5px;
  line-height: 1.35;
}
.pill svg { color: var(--accent-2); flex: none; }

.tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: #f2f2f0;
  color: var(--ink-2);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.tag--dark { background: var(--navy); color: #fff; }

/* Список с золотыми галочками */
.checklist { display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.45; }
.checklist svg { margin-top: 3px; color: var(--accent-2); }

/* ---------- 7. Плейсхолдеры изображений --------------------------------- */
/* Реальные фото кладутся в /images (см. README). Пока файла нет —
   показывается градиент, повторяющий настроение кадра из макета.        */
.ph { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #e8e6e2; }
.ph > img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.ph > img[data-broken] { display: none; }
.ph--sea    { background: linear-gradient(170deg, #9fd4e8 0%, #63b6d6 38%, #2f8fae 62%, #1d6f8c 100%); }
.ph--gold   { background: linear-gradient(150deg, #3a3128 0%, #7a5f34 35%, #d7b25f 60%, #8a6a33 100%); }
.ph--silver { background: linear-gradient(150deg, #26262a 0%, #565a61 42%, #b9bcc2 62%, #6a6e75 100%); }
.ph--resort { background: linear-gradient(165deg, #8ec6d8 0%, #4f9e8c 45%, #2f6f63 75%, #24403a 100%); }
.ph--dusk   { background: linear-gradient(165deg, #4a5b78 0%, #8c7a72 40%, #c0906a 70%, #43372f 100%); }
.ph--person { background: linear-gradient(160deg, #ded9d6 0%, #c9c2bd 55%, #b0a7a1 100%); }
.ph--dark   { background: linear-gradient(150deg, #14161a 0%, #24272c 55%, #3a3f47 100%); }
.ph--warm   { background: linear-gradient(150deg, #f0e6d8 0%, #e5d6c2 100%); }
.ph::after {
  content: attr(data-label);
  position: absolute; inset: auto 12px 12px 12px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
  z-index: 0;
}
.ph--warm::after, .ph--person::after { color: rgba(20,20,20,.4); }

/* ---------- 8. Утилиты --------------------------------------------------- */
.stack   { display: grid; }
.gap-8   { gap: 8px; }  .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24  { gap: 24px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.center { text-align: center; }
.flex-center { display: flex; justify-content: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Появление секций при скролле */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
