:root {
  --ink: #1d1a1f;
  --ink-soft: #5d5560;
  --ink-faint: #8a8290;
  --coral: #ff6a4d;
  --coral-deep: #e8502f;
  --gold: #f2b134;
  --paper: #fffaf6;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(29, 26, 31, 0.08);
  --radius: 22px;
  --shadow: 0 18px 50px -24px rgba(120, 60, 60, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, #ffe1cf 0%, transparent 70%),
    radial-gradient(55% 45% at 95% 15%, #f8dcf0 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 100%, #e9e3fb 0%, transparent 70%),
    var(--paper);
}

a { color: var(--coral-deep); }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(255, 250, 246, 0.78);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--coral-deep); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 64px 40px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 14px; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; }
.fine { font-size: 0.85rem; color: var(--ink-faint); margin-top: 12px; }

.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 34px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); background: #fff; }
.phone img { display: block; width: 100%; height: auto; }
.phone.a { left: 4%; top: 30px; transform: rotate(-5deg); }
.phone.b { right: 4%; top: 0; transform: rotate(4deg); z-index: 2; }

/* Sections */
section { padding-block: 56px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); max-width: 40em; margin-bottom: 30px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.topic { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { font-size: 1.5rem; margin-bottom: 8px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gallery figure { border-radius: 26px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow); background: #fff; }
.gallery img { display: block; width: 100%; height: auto; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.panel ul { padding-left: 1.2em; color: var(--ink-soft); }
.panel li { margin-bottom: 6px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--coral-deep); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-soft); margin-top: 10px; }

/* Document pages */
.doc { padding-block: 48px 72px; max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 6px; }
.doc .updated { color: var(--ink-faint); margin-bottom: 28px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; margin: 8px 0 12px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0 8px; }

footer { border-top: 1px solid var(--line); padding-block: 30px 40px; color: var(--ink-faint); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer nav { position: static; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
footer a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--coral-deep); }
footer a.copy-link { margin-right: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer a.copy-link:hover { color: var(--coral-deep); }
footer a:last-child { margin-right: 0; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .phones { height: 480px; max-width: 460px; margin-inline: auto; width: 100%; }
  .phone { width: 210px; }
  .steps, .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:last-child { display: none; }
}

@media (max-width: 520px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.85rem; }
  .nav-links .hide-sm { display: none; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 30px; height: 30px; }
  .phones { height: 400px; }
  .phone { width: 172px; border-width: 4px; border-radius: 26px; }
  .panel { padding: 22px; }
}
