/* ─────────────────────────────────────────────────────────────
   antonustinov.com — основные стили
   Все решения взяты из паспорта стиля (~/ClaudeProjects/2-сферы/продвижение/паспорт-стиля.md).
   Цвета и размеры собраны в одном месте: правишь здесь —
   меняется на всём сайте сразу.
   ───────────────────────────────────────────────────────────── */

@import url('fonts.css?v=8143ea71');

:root {
  /* цвета */
  --bg:          #FCFAF6;   /* основной фон */
  --surface:     #F3ECE0;   /* выделенные блоки — «острова» */
  --ink:         #262220;   /* текст и заголовки */
  --muted:       #74695F;   /* подписи, второстепенное */
  --line:        #E7DFD2;   /* разделители */
  --accent:      #9A4A32;   /* кнопки и ссылки */
  --accent-dark: #843E2A;   /* кнопка под курсором */
  --accent-soft: #D9C3B8;   /* рамка второстепенной кнопки, кавычка цитаты */
  --on-accent:   #FDF9F4;   /* текст на кнопке */

  /* шрифты */
  --font-head: 'Literata', Georgia, 'Times New Roman', serif;
  --font-text: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* размеры и ритм */
  --col:   720px;  /* ширина текстовой колонки */
  --wide: 1080px;  /* ширина широких блоков с фото */
  --gap:    96px;  /* отступ между блоками */
  --stack:  16px;  /* между абзацами */
  --radius: 28px;  /* скругление островов и фото */
}

/* ── основа ────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── раскладка ─────────────────────────────────────────────── */

.section { padding: var(--gap) 0; }

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--wide { max-width: var(--wide); }

/* остров: выделенный блок — карточка со скруглением, а не полоса во всю ширину */
.section--tinted { padding: calc(var(--gap) / 2) 0; }
.section--tinted > .wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 64px 72px;
  max-width: calc(var(--col) + 144px);
}

/* ── типографика ───────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  margin: 0;
  line-height: 1.12;
}

h1 { font-size: 60px; letter-spacing: -0.015em; margin-bottom: 14px; }
h2 { font-size: 40px; letter-spacing: -0.01em; margin-bottom: 32px; max-width: 18em; }

.subhead {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 14px;
}

p { margin: 0 0 var(--stack); max-width: 36em; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(154, 74, 50, .55);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--accent); }

.role {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
}

.lead {
  font-size: 26px;
  line-height: 1.45;
  max-width: 30em;
  margin-bottom: 32px;
}

/* ── кнопки ────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 15px 28px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 16px/1.5 var(--font-text);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-soft);
}
.btn--ghost:hover {
  background: rgba(154, 74, 50, .07);
  border-color: var(--accent);
}

/* ── первый экран ──────────────────────────────────────────── */

.hero { padding: 48px 0 var(--gap); }

.hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
}

/* ── кредо — как манифест ──────────────────────────────────── */

.credo {
  font-family: var(--font-head);
  font-size: 46px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 500;
  max-width: 17em;
  margin-bottom: 32px;
}
.credo-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 14px;
}
.credo-sub:last-child { margin-bottom: 0; }

/* ── сложности: сетка с тонкой линией сверху ───────────────── */

.cases {
  display: grid;
  gap: 8px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cases li {
  padding: 22px 0 6px;
  border-top: 1px solid var(--line);
}
.cases b {
  display: block;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 6px;
}
/* «И другие сложности, …» — не заголовок, а строка-хвост */
.cases li:last-child b { display: inline; font: inherit; font-weight: 600; margin: 0; }

/* ── акцентная строка-вывод ────────────────────────────────── */

.accent-line {
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 0;
  max-width: 30em;
}

/* ── цитата — отдельный «дыхательный» экран ────────────────── */

.section--quote { padding: calc(var(--gap) * 1.2) 0; }

.quote { margin: 0; }
.quote::before {
  content: "“";
  display: block;
  font-family: var(--font-head);
  font-size: 120px;
  line-height: .6;
  height: 52px;
  color: var(--accent-soft);
}
.quote p {
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1.32;
  font-style: italic;
  max-width: 20em;
  margin-bottom: 20px;
}
.quote footer {
  font-size: 16px;
  color: var(--muted);
}
.quote + p { margin-top: 48px; }

/* ── блок «обо мне» ────────────────────────────────────────── */

.about__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.about__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

/* ── цены — плитками ───────────────────────────────────────── */

.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
  border-radius: 18px;
  padding: 24px 26px;
}
.price__name,
.price__time { font-size: 15px; color: var(--muted); }
.price__sum {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

/* ── раскрывающиеся вопросы ────────────────────────────────── */

.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }

/* плюс, который в открытом вопросе поворачивается в крестик */
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

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

.faq details p { margin: 0; padding-bottom: 20px; }

/* ── финал — крупно, по центру ─────────────────────────────── */

.final > .wrap { text-align: center; }
.final h2 { font-size: 48px; margin-left: auto; margin-right: auto; }
.final .lead { font-size: 20px; margin: 0 auto 28px; }

/* ── тихое появление при прокрутке ─────────────────────────── */
/* класс js ставит скрипт: без скрипта всё видно сразу */

.js main > section:not(.hero) .wrap {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js main > section:not(.hero) .wrap.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js main > section:not(.hero) .wrap { opacity: 1; transform: none; transition: none; }
}

/* ── широкий экран ─────────────────────────────────────────── */

@media (min-width: 820px) {
  .hero { padding: 64px 0 var(--gap); }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .hero__photo img { object-position: center 18%; }

  .cases { grid-template-columns: 1fr 1fr; }
  .cases li:last-child { grid-column: 1 / -1; }

  .about__grid {
    grid-template-columns: .85fr 1.15fr;
    gap: 48px;
    align-items: center;
  }
  .about__photo img { aspect-ratio: 3 / 4; }
}

/* ── телефон ───────────────────────────────────────────────── */

@media (max-width: 600px) {
  :root { --gap: 64px; --radius: 22px; }

  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section--tinted > .wrap { margin: 0 10px; padding: 40px 22px; }

  h1 { font-size: 40px; }
  h2 { font-size: 30px; margin-bottom: 24px; }
  .lead { font-size: 21px; }
  .credo { font-size: 31px; }
  .credo-sub { font-size: 17px; }
  .accent-line { font-size: 22px; }

  .quote::before { font-size: 96px; height: 40px; }
  .quote p { font-size: 25px; }

  .prices { grid-template-columns: 1fr; gap: 10px; }
  .price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 18px 20px; }
  .price__name { flex-basis: 100%; }
  .price__sum { font-size: 28px; }

  .final h2 { font-size: 34px; }

  .btn { display: block; text-align: center; }
}
