/* ============================================================
   Ольга Варежкина — персональный сайт финансового консультанта
   Эстетика: private banking / strategy consulting.
   Тонкая типографика, воздух, спокойное движение.
   ============================================================ */

:root {
  --paper: #f5f2ec;
  --paper-alt: #efeadf;
  --ink: #191c1a;
  --ink-soft: #454a45;
  --muted: #5a5f57;
  --line: #d8d2c4;
  --green: #1d3a2c;
  --green-deep: #12241b;
  --green-ink: #0e1712;
  --brass: #a5824c;
  --brass-soft: #c8b28a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-h: 76px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

section { scroll-margin-top: calc(var(--head-h) + 12px); }

/* ---------- Типографика ---------- */

.section { padding: 112px 0; }
.section-alt { background: var(--paper-alt); }

.kicker {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 18px;
}
.kicker-light { color: var(--brass-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin-bottom: 52px;
}

/* ---------- Кнопки ----------
   Отклик на нажатие, а не на отпускание (pointer-down / :active). */

.btn {
  display: inline-block;
  padding: 16px 30px;
  font: 600 15px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition:
    transform 120ms ease-out,
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
  transition-duration: 60ms;
}

.btn-primary {
  background: var(--green);
  color: #f4f1e9;
  box-shadow: 0 1px 2px rgba(18, 36, 27, 0.25);
}
.btn-primary:hover { background: #254a38; }

.btn-dark {
  background: var(--green-ink);
  color: #f4f1e9;
}
.btn-dark:hover { background: var(--green); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: rgba(25, 28, 26, 0.06); }

.btn-light {
  background: #f4f1e9;
  color: var(--green-ink);
}
.btn-light:hover { background: #ffffff; }

.btn-outline {
  background: transparent;
  color: #f4f1e9;
  border-color: rgba(244, 241, 233, 0.45);
}
.btn-outline:hover { border-color: #f4f1e9; }

.btn-sm { padding: 12px 22px; font-size: 14px; }

.phone-link {
  font-weight: 600;
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
}

/* ---------- Шапка ----------
   Полупрозрачный слой поверх контента (material), тень — только
   когда контент реально проскальзывает под ней. */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--head-h);
  display: flex;
  align-items: center;
  background: rgba(245, 242, 236, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.site-head.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(25, 28, 26, 0.06);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { text-decoration: none; line-height: 1.2; margin-right: auto; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav { display: flex; gap: 26px; }
.nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 140ms var(--ease-out);
}
.nav a:hover { color: var(--ink); }

/* ---------- Первый экран ---------- */

.hero {
  padding: calc(var(--head-h) + 72px) 0 96px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(165, 130, 76, 0.10), transparent 65%),
    var(--paper);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--green);
}

.hero-lead {
  max-width: 620px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.hero-issues {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  max-width: 720px;
  margin-bottom: 44px;
}
.hero-issues li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 18px 8px 0;
  border-bottom: 1px solid var(--line);
  width: 50%;
}
.hero-issues li::before {
  content: "—";
  color: var(--brass);
  margin-right: 12px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.hero-phone { font-size: 15px; color: var(--ink-soft); }

/* ---------- Цифры ---------- */

.stats {
  background: var(--green-ink);
  color: #e9e6da;
  padding: 88px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(233, 230, 218, 0.14);
  border: 1px solid rgba(233, 230, 218, 0.14);
}

.stat {
  background: var(--green-ink);
  padding: 30px 26px 34px;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: #f4f1e9;
  margin-bottom: 10px;
}
.stat-cap {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(233, 230, 218, 0.62);
}

.stats-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(233, 230, 218, 0.5);
}

/* ---------- Проблемы ---------- */

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.problem-card {
  padding: 34px 34px 30px;
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(25, 28, 26, 0.08);
}
.problem-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.problem-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Услуги ---------- */

.lead-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.lead-service {
  background: var(--green-ink);
  color: #e9e6da;
  border-radius: 6px;
  padding: 40px 38px 36px;
}
.lead-service-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
}
.lead-index {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--brass-soft);
}
.lead-service h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f4f1e9;
}
.lead-service-lead {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(233, 230, 218, 0.72);
  margin-bottom: 20px;
}
.lead-service-list {
  list-style: none;
  margin-bottom: 28px;
}
.lead-service-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(233, 230, 218, 0.10);
}
.lead-service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 10px;
  height: 1.5px;
  background: var(--brass-soft);
}
.lead-service .btn { margin-left: -10px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  padding: 28px 30px;
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--brass-soft);
  box-shadow: 0 14px 34px rgba(25, 28, 26, 0.08);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Экспресс-анализ ---------- */

.express-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.express-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.express-left .section-title { margin-bottom: 28px; }

.express-right { display: grid; gap: 22px; }
.express-block {
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 32px;
}
.express-block h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}
.express-block ul { list-style: none; }
.express-block li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.express-block li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 9px;
  height: 1.5px;
  background: var(--brass);
}

.express-result {
  margin-top: 56px;
  padding: 30px 34px;
  border-left: 3px solid var(--brass);
  background: var(--paper-alt);
  border-radius: 0 6px 6px 0;
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.express-result-label {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
}
.express-result p { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Кейсы ---------- */

.section-dark {
  background: var(--green-ink);
  color: #e9e6da;
}
.section-dark .section-title { color: #f4f1e9; margin-bottom: 60px; }

.cases { display: grid; gap: 20px; }

.case {
  border: 1px solid rgba(233, 230, 218, 0.14);
  border-radius: 6px;
  padding: 34px 36px;
  position: relative;
  transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.case:hover {
  border-color: rgba(200, 178, 138, 0.5);
  background: rgba(233, 230, 218, 0.03);
}
.case-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 20px;
}
.case-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--brass-soft);
}
.case h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f4f1e9;
}

.case-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-cols > div p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(233, 230, 218, 0.78);
}
.case-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brass-soft);
  margin-bottom: 8px;
}

.case-badge {
  position: absolute;
  top: 32px;
  right: 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brass-soft);
  border: 1px solid rgba(200, 178, 138, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ---------- Об эксперте ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: start;
}

.about-photo {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(25, 28, 26, 0.14);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1122 / 1402;
  object-fit: cover;
}

.about-text p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.about-text .section-title { margin-bottom: 28px; }

.about-education {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-education h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}
.about-education ul { list-style: none; }
.about-education li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 5px 0 5px 18px;
  position: relative;
}
.about-education li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 1.5px;
  background: var(--brass);
}

/* ---------- Компетенции ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.skill-chip {
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 22px 24px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.skill-chip:hover {
  transform: translateY(-3px);
  border-color: var(--brass-soft);
  box-shadow: 0 10px 26px rgba(25, 28, 26, 0.07);
}
.skill-chip span {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- Формат работы ---------- */

.format-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 28px 8px;
  border-top: 1px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--brass);
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
}
.step h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0 10px;
}
.step p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- CTA / контакты ---------- */

.cta {
  background:
    radial-gradient(900px 420px at 15% 120%, rgba(165, 130, 76, 0.14), transparent 60%),
    var(--green-deep);
  color: #e9e6da;
  padding: 110px 0;
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #f4f1e9;
  max-width: 18ch;
  margin-bottom: 24px;
}
.cta-text {
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(233, 230, 218, 0.75);
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.cta-meta { font-size: 13.5px; color: rgba(233, 230, 218, 0.5); }

/* ---------- Подвал ---------- */

.site-foot {
  background: var(--green-ink);
  color: rgba(233, 230, 218, 0.55);
  padding: 28px 0;
  font-size: 13px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Появление при скролле ----------
   Анимация прерываемая и короткая; при prefers-reduced-motion
   — только мягкое затухание (без смещения). */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптивность ---------- */

@media (max-width: 960px) {
  .nav { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .problems-grid { grid-template-columns: 1fr; }
  .lead-services, .services-grid { grid-template-columns: 1fr; }
  .express-layout { grid-template-columns: 1fr; gap: 40px; }
  .case-cols { grid-template-columns: 1fr; gap: 18px; }
  .case-badge { position: static; display: inline-block; margin-top: 18px; }
  .about-layout { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 400px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .format-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section { padding: 76px 0; }
  .hero { padding-top: calc(var(--head-h) + 44px); }
  .hero-issues li { width: 100%; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .stats { padding: 60px 0; }
  .stat { padding: 24px 20px 26px; }
  .brand-sub { display: none; }
  .head-cta { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .format-steps { grid-template-columns: 1fr; }
  .case { padding: 26px 24px; }
  .lead-service { padding: 30px 26px; }
  .foot-inner { flex-direction: column; }
}

/* ---------- Доступность ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 0;
    transform: none;
    transition: opacity 300ms ease;
  }
  .reveal.is-in { opacity: 1; }
  .btn, .problem-card, .service-card, .skill-chip {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-head {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
