/* Mansur-Dent — onboarding page styles */
:root {
  --bg: #ffffff;
  --bg-soft: #faf7f1;
  --surface: #ffffff;
  --text: #1f2a2e;
  --muted: #5a656a;
  --line: #ebe4d8;
  --brand: #8a5f1a;        /* бронза из логотипа, контраст AA на белом */
  --brand-soft: #f4ecdd;
  --cta: #128c4a;          /* WhatsApp-зелёный, контраст AA с белым текстом */
  --cta-hover: #0e7a40;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .05), 0 8px 24px rgba(31, 42, 46, .06);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5.2vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: 32px; }
.section__head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn svg, .btn__icon { width: 22px; height: 22px; flex: none; }
.btn__icon { border-radius: 5px; }
.btn--wa { background: var(--cta); color: #fff; }
.btn--wa:hover { background: var(--cta-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; }
.logo img { width: 44px; height: 44px; border-radius: 50%; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--brand); }
.lang { display: flex; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 700; }
.lang a, .lang span { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: var(--brand-soft); color: var(--brand); }
.header .btn--wa { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .lang { margin-left: 8px; }
  .header .btn--wa { display: inline-flex; }
}

/* Hero */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.hero__tagline { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--brand); margin: -4px 0 12px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.hero__badges li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 600;
}
.free {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px;
  padding: 6px 14px; border-radius: 999px;
}

/* Photo slots: если файла нет — показывается подсказка с именем файла */
.ph {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--brand-soft); aspect-ratio: 4 / 3;
}
.ph::before {
  content: "Фото: " attr(data-file);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  color: var(--brand); font-size: 14px; font-weight: 600;
  border: 2px dashed #d9c7a6; border-radius: inherit;
}
.ph img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.ph--hero { aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.ph img { cursor: zoom-in; }

/* Lightbox: фото по клику целиком */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px;
  border: 0; background: transparent; cursor: zoom-out;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(15, 20, 22, .92); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; border-radius: 8px; }
.lightbox__close {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
body:has(.lightbox[open]) { overflow: hidden; }

/* Cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: .6em; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }
.price { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--text); }
.card--accent { border-color: var(--brand); background: var(--brand-soft); }

/* Tech */
.tech { display: grid; gap: 20px; }
.tech__item { display: grid; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
@media (min-width: 820px) {
  .tech__item { grid-template-columns: 340px 1fr; padding: 20px; gap: 32px; }
}
.tech__item p { color: var(--muted); }
.tech__item ul { margin: 0; padding-left: 20px; color: var(--muted); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Reviews */
.reviews { text-align: center; max-width: 640px; margin: 0 auto; }
.reviews .btn { margin-top: 8px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--brand);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Contacts */
.contacts { display: grid; gap: 24px; }
@media (min-width: 900px) { .contacts { grid-template-columns: .9fr 1.1fr; } }
.contacts dl { margin: 0 0 24px; display: grid; gap: 16px; }
.contacts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contacts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.contacts dd a { color: var(--text); text-decoration: none; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { width: 100%; min-height: 320px; height: 100%; border: 0; border-radius: var(--radius); background: var(--bg-soft); }

/* Footer */
.footer { padding: 32px 0 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (min-width: 960px) { .footer { padding-bottom: 32px; } }

/* Floating WhatsApp (mobile) */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  box-shadow: 0 8px 24px rgba(18, 140, 74, .35);
}
@media (min-width: 960px) { .fab { display: none; } }

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