/* Палитра взята из логотипа: кремовый фон = фон логотипа, томатный — цвет надписи. */
:root {
  --bg: #fdf6e7;          /* точный фон логотипа — шапка сливается с ним */
  --tint: #f8ead2;
  --card: #fffdf8;
  --ink: #2b211c;         /* 14.6:1 на фоне */
  --muted: #5f5047;       /* ≥ 6.4:1 на обоих фонах */
  --tomato: #e8503f;      /* яркий цвет логотипа — только для украшений, не для текста */
  --accent: #c93a26;      /* кнопки и ссылки: 5.1:1 с белым, 4.7:1 на фоне */
  --accent-dark: #a92f1e;
  --line: #ecdcc0;
  --radius: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.logo img { width: 140px; height: auto; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--accent);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 8px 16px; font-size: .95rem; }
.btn--big { padding: 17px 32px; font-size: 1.1rem; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--card); color: var(--accent-dark); }

.hero { padding: 36px 0 56px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.actions--center { justify-content: center; }
.note { color: var(--muted); font-size: .95rem; }

.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.sub { color: var(--muted); margin-bottom: 28px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 66px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 18px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}

.plans { display: grid; gap: 16px; margin-bottom: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan--featured { border: 2px solid var(--tomato); }
.plan__price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); margin-bottom: .4em; }
.plan ul, .list { margin: 0; padding-left: 1.2em; }
.plan li, .list li { margin-bottom: .35em; }
.plan li::marker, .list li::marker { color: var(--tomato); }
.plans-note { text-align: center; font-weight: 700; margin-bottom: 4px; }
.list { font-size: 1.1rem; }

.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--tint); }
.photo figcaption { margin-top: 8px; font-weight: 700; color: var(--muted); }
.photo--hero img { box-shadow: 0 18px 40px -24px rgba(120, 50, 30, .45); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; }
summary::marker { color: var(--tomato); }
details p { margin: 12px 0 0; color: var(--muted); }
.faq-list { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); }
.faq-list li { margin-bottom: .35em; }
.faq-list li::marker { color: var(--tomato); }
.faq-list strong { color: var(--ink); }

#about { padding-bottom: 8px; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.cta { padding: 72px 0; }
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0; }

@media (min-width: 760px) {
  .top__row { min-height: 92px; }
  .logo img { width: 170px; }
  .hero { padding: 56px 0 80px; }
  .hero__grid { grid-template-columns: 1.2fr 440px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
