:root {
  --bg: #fffaf6;
  --tint: #f6ece3;
  --ink: #2a2123;
  --muted: #6a5d5f;
  --accent: #8c3b4a;
  --accent-dark: #6e2634;
  --line: #e6d8cc;
  --white: #ffffff;
  --wa: #1a7f4b;
  --radius: 16px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--accent); }

:focus-visible {
  outline: 3px solid #d98a2b;
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; margin-bottom: 24px; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 12px; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 6px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.header__phone {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 8px;
  white-space: nowrap;
}
.nav__list a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav__list a:hover { background: var(--tint); }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #12623a; }

/* Первый экран */
.hero {
  padding: 32px 0 48px;
  background: linear-gradient(180deg, #f9e9e3 0%, var(--bg) 100%);
}
.hero__grid { display: grid; gap: 28px; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead { font-size: 1.1rem; color: var(--muted); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 14px; }
.hero__note { font-size: 0.95rem; color: var(--muted); }
.hero__art { max-width: 320px; margin: 0 auto; width: 100%; }

/* Секции */
.section { padding: 48px 0; }
.section--tint { background: var(--tint); }
.muted { color: var(--muted); font-size: 0.95rem; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card--check::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 22px no-repeat,
    var(--accent);
}
.card p { margin: 0; color: var(--muted); }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative;
  counter-increment: step;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 20px 20px 70px;
  border: 1px solid var(--line);
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* Цены */
.prices { display: grid; gap: 16px; margin-bottom: 16px; }
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.price--main { border: 2px solid var(--accent); }
.price__badge {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.price__sum {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 4px 0 14px;
}
.price__list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price__list li {
  padding: 8px 0 8px 26px;
  position: relative;
  border-top: 1px solid var(--line);
}
.price__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Отзывы */
.review {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}
.review blockquote { margin: 0 0 14px; }
.review blockquote p { margin: 0; }
.review figcaption { font-weight: 600; color: var(--accent); }

/* Вопросы */
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
}
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Контакты и форма */
.contacts { display: grid; gap: 32px; }
.contacts__phone { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; margin: 16px 0; }
.contacts__phone a { color: var(--ink); text-decoration: none; }
.contacts__buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.contacts__list { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.contacts__list li { padding: 4px 0; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.95rem; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9a99b;
  border-radius: 10px;
}
.form textarea { resize: vertical; }
.form .btn { width: 100%; margin-top: 20px; }
.form__hint { font-size: 0.9rem; color: var(--muted); margin: 12px 0 0; }

/* Подвал */
.footer { padding: 24px 0; background: var(--ink); color: #eadfd6; font-size: 0.95rem; }
.footer__row { display: flex; flex-direction: column; gap: 6px; }
.footer p { margin: 0; }
.footer a { color: #fff; }

/* Планшет */
@media (min-width: 700px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .hero__actions { flex-direction: row; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contacts__buttons { flex-direction: row; flex-wrap: wrap; }
  .footer__row { flex-direction: row; justify-content: space-between; }
}

/* Компьютер */
@media (min-width: 960px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 18px; }
  .header__row { padding-bottom: 10px; padding-top: 14px; }
  .header { display: flex; align-items: center; }
  .header .container { max-width: none; width: auto; margin: 0; }
  .header__row { padding-left: max(20px, calc((100vw - 1100px) / 2)); gap: 40px; }
  .header__row { flex: 0 0 auto; }
  .nav { overflow: visible; flex: 1; }
  .nav__list { justify-content: flex-end; padding: 0 max(20px, calc((100vw - 1100px) / 2)) 0 0; max-width: none; }
  .header__phone { order: 3; }

  .hero { padding: 72px 0 80px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; }
  h1 { font-size: 3rem; }
  .hero__art { max-width: 380px; }
  .section { padding: 80px 0; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 70px 20px 22px; }
  .step::before { left: 20px; top: 20px; }
  .prices { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .contacts { grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; }
}

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