/* ==========================================================================
   Перечень услуг — Михаил Посошнов
   Стиль: Premium Dark (Modern Dark Cinema), золотой акцент
   ========================================================================== */

:root {
  /* Цвет */
  --bg: #0C0A09;
  --bg-deep: #080707;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #FAFAF9;
  --text-soft: #D6D3D1;
  --text-mute: #A8A29E;
  --gold: #D4A853;
  --gold-bright: #E3BC6B;
  --gold-dim: rgba(212, 168, 83, 0.35);
  --gold-glow: rgba(212, 168, 83, 0.16);
  --on-gold: #171310;

  /* Шрифт */
  --font-sans: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Prata", Georgia, serif;

  /* Отступы */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --container: 1240px;
  --radius: 4px;
}

/* --- Сброс --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--on-gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--space-3);
}

section[id] { scroll-margin-top: 80px; }

.serif {
  font-family: var(--font-display);
  font-weight: 400;
}

/* ==========================================================================
   Амбиентный фон: свечения и зерно
   ========================================================================== */

body { position: relative; }

.ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.ambient__glow--1 {
  width: 640px;
  height: 640px;
  top: -220px;
  right: -160px;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%);
}

.ambient__glow--2 {
  width: 520px;
  height: 520px;
  top: 22%;
  left: -200px;
  background: radial-gradient(circle, rgba(120, 100, 60, 0.11), transparent 65%);
}

.ambient__glow--3 {
  width: 700px;
  height: 700px;
  top: 45%;
  right: -240px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.12), transparent 65%);
}

.ambient__glow--4 {
  width: 560px;
  height: 560px;
  top: 68%;
  left: -180px;
  background: radial-gradient(circle, rgba(120, 100, 60, 0.10), transparent 65%);
}

.ambient__glow--5 {
  width: 640px;
  height: 640px;
  bottom: -160px;
  right: -160px;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header, main, .footer { position: relative; z-index: 2; }

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-gold);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 250ms ease, border-color 250ms ease,
              color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 28px var(--gold-glow);
}

.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  box-shadow: none;
}

.btn--small { min-height: 40px; padding: 8px 20px; font-size: 14px; }

.btn--large { min-height: 56px; padding: 16px 40px; font-size: 16px; }

/* ==========================================================================
   Хедер
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease;
}

.header.is-scrolled { border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 68px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}

.header__logo-mark {
  width: 11px;
  height: 11px;
  background: var(--gold);
  flex-shrink: 0;
}

.header__nav { display: flex; gap: var(--space-3); }

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.header__link:hover { color: var(--text); border-bottom-color: var(--gold); }

/* ==========================================================================
   Герой
   ========================================================================== */

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(68px + 24px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-5);
  align-items: center;
  width: 100%;
}

.hero__kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.hero__kicker-sep {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: var(--space-3);
}

/* padding-bottom даёт место нижним выносным элементам (у, р, д) внутри
   обрезающего контейнера анимации, отрицательный margin компенсирует ритм */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.hero-line > span { display: block; }

.hero__accent { font-style: normal; color: var(--gold); }

.hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mute);
  max-width: 56ch;
  margin-bottom: var(--space-3);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Панель пути */
.hero__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero__panel-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.hero__panel-steps { position: relative; }

.hero__panel-step {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding-block: 10px;
  border-top: 1px solid var(--border);
}

.hero__panel-num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  flex-shrink: 0;
}

.hero__panel-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.hero__panel-note {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
}

/* ==========================================================================
   Секции
   ========================================================================== */

.section {
  padding-block: 72px;
  border-bottom: 1px solid var(--border);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-4);
}

.section__index {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--text);
}

.section__note {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-mute);
  max-width: 50ch;
}

/* ==========================================================================
   С чем приходят
   ========================================================================== */

.situations-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-5);
  align-items: start;
}

.situations-split__aside {
  position: sticky;
  top: 100px;
}

.situations-split__aside .section__index {
  display: block;
  margin-bottom: var(--space-3);
}

.situations-split__aside .section__title {
  margin-bottom: var(--space-3);
}

.situations-split__aside .section__note {
  margin-bottom: var(--space-4);
}

.situations {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.situation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-2);
  align-items: baseline;
  padding: 20px var(--space-3);
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.situation:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px var(--gold-glow);
}

.situation__num {
  display: block;
  grid-row: 1 / 3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0;
}

.situation__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 6px;
}

.situation__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mute);
}

/* ==========================================================================
   Как устроена работа
   ========================================================================== */

.section--ink {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 70%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.step {
  border-top: 1px solid var(--border-strong);
  padding-top: var(--space-3);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.step__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-1);
  color: var(--text);
}

.step__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
}

.steps__footnote {
  margin-top: var(--space-4);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 56ch;
}

.steps__extra {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mute);
  max-width: 70ch;
}

.steps__extra + .steps__extra {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}


/* ==========================================================================
   Услуги (ступени)
   ========================================================================== */

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-4);
  padding-block: 32px;
  border-top: 1px solid var(--border-strong);
}

.service:last-of-type { padding-bottom: 0; }

.service__left { position: relative; }

.service__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  margin-bottom: var(--space-3);
  user-select: none;
  white-space: nowrap;
}

.service__tags {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.tag--accent {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  background: rgba(212, 168, 83, 0.08);
}

.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.service__task {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mute);
  max-width: 46ch;
}

.service__right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service__item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-3);
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 250ms ease;
}

.service__item:hover { border-color: var(--border-strong); }

.service__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
  padding-top: 3px;
}

.service__item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Опциональный модуль */
.service__module {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  border: 1px solid var(--gold-dim);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(212, 168, 83, 0.05);
  padding: 20px 24px;
}

.service__module-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 4px;
}



.service__types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-3);
}

.service__types li {
  padding-block: 8px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
}

.service__types strong { color: var(--text); font-weight: 600; }

/* Разворот «Подробнее об этапе».
   Без JS (нет .has-js) контент всегда развернут, кнопка скрыта. */
.service__more {
  display: grid;
  grid-template-rows: 1fr;
}

.service__more-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service__more .service__module { margin-top: 4px; }
.service__more .service__types { grid-template-columns: 1fr; }

.has-js .service__more {
  grid-template-rows: 0fr;
  transition: grid-template-rows 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

.has-js .service__more-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 450ms;
}

.has-js .service.is-open .service__more { grid-template-rows: 1fr; }

.has-js .service.is-open .service__more-inner {
  visibility: visible;
  transition: visibility 0s;
}

.service__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 250ms ease, border-color 250ms ease, background 250ms ease;
}

.has-js .service__toggle { display: inline-flex; }

.service__toggle:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.07);
}

.service__toggle-icon { transition: transform 300ms ease; }

.service.is-open .service__toggle-icon { transform: rotate(180deg); }

/* ==========================================================================
   Как начать
   ========================================================================== */

.section--start { border-bottom: none; }

.start {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-5);
  align-items: start;
}

.start__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.25;
  color: var(--text);
  max-width: 18ch;
}

.start__highlight {
  color: var(--gold-bright);
  border-bottom: 2px solid var(--gold-dim);
}

.start__body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mute);
  margin-bottom: var(--space-3);
}

.start__body .btn { margin-top: var(--space-2); }

/* ==========================================================================
   Футер
   ========================================================================== */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__name { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

.footer__role {
  font-size: 14px;
  color: var(--text-mute);
  max-width: 40ch;
}

.footer__col--right { text-align: right; }

.footer__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color 180ms ease, color 180ms ease;
}

.footer__link:hover { color: var(--gold-bright); border-bottom-color: var(--gold-dim); }

.footer__year {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--text-mute);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-4); }

  .hero__panel { max-width: 560px; }

  .service { grid-template-columns: 1fr; gap: var(--space-4); }

  .service__num { margin-bottom: var(--space-2); }

  .situations-split { grid-template-columns: 1fr; gap: var(--space-4); }

  .situations-split__aside { position: static; }

  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .header__nav { display: none; }

  .hero { padding-top: calc(68px + var(--space-4)); padding-bottom: var(--space-4); }

  .section { padding-block: var(--space-5); }

  .section__head { grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }

  .steps { grid-template-columns: 1fr; }

  .service__item { grid-template-columns: 1fr; gap: var(--space-1); }

  .service__module { padding: var(--space-3); }

  .service__types { grid-template-columns: 1fr; }

  .start { grid-template-columns: 1fr; }

  .footer__col--right { text-align: left; }

  .ambient__glow { filter: blur(70px); }
}

/* ==========================================================================
   Анимации: базовые состояния управляет JS.
   При reduced-motion всё видно сразу.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
