:root {
  --bg: #f9f7f2;
  --bg-alt: #eeebfa;
  --surface: #ffffff;
  --ink: #201d31;
  --ink-soft: #5a5467;
  --accent: #49378a;
  --accent-dark: #332365;
  --line: #deddd9;
  --focus: #1b5fd1;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(249, 247, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle { display: none; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(42px, 6vw, 88px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font: 500 clamp(2.45rem, 5.7vw, 5.4rem)/1.01 Georgia, serif; letter-spacing: -.067em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: 20px; max-width: 32em; }
.hero .btn { margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 8px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(73, 55, 138, .22); }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
#services { background: var(--surface); }
#pricing { background: var(--bg-alt); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.draft { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); font-style: italic; }

/* Услуги: список с тонкими разделителями */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.services li { grid-column: span 2; padding: clamp(20px, 3vw, 35px); border-radius: 20px; background: #efeaf9; }
.services h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.services p { color: var(--ink-soft); }

/* Процесс */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); counter-increment: step; }
.steps li::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
}
.steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { border-top: 1px solid var(--line); }
.contact-list dt { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list dd { font-size: 1.15rem; font-weight: 500; }
.contact-list a { color: var(--accent); text-decoration-color: currentColor; }
.contact-list a:hover, .contact-list a:focus-visible { color: var(--accent-dark); }
.contacts-note { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--bg-alt); color: var(--ink-soft); }
.contact-list:not(:has([data-contact]:not([hidden]))) { display: none; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-soft); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }

/* Планшет и узкий десктоп */
@media (max-width: 1100px) {
  .hero-grid { gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Телефон */
@media (max-width: 720px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav { gap: 16px; flex-wrap: wrap; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { gap: 28px; }
  .hero .btn { width: 100%; margin-top: 28px; }
  
  .lead { font-size: 1.05rem; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 28px 24px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { top: 4px; left: -7px; }
}

.hero h1 em { color: var(--accent); font-weight: inherit; }
.hero-visual { aspect-ratio: 1.23; overflow: hidden; border-radius: 48% 48% 22px 22px / 22% 22% 22px 22px; background: #dac6e1; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.btn { gap: 20px; border-radius: 100px; }
.logo { color: var(--ink); font: 500 1.55rem/1 Georgia, serif; letter-spacing: .13em; }
.header-contacts { display: flex; align-items: center; gap: 10px; }
.header-phone { font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }
.header-whatsapp { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e3f3e9; color: #176745; }
.header-whatsapp:hover { background: #cfebdb; }
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .header-contacts { order: 2; width: 100%; justify-content: flex-end; }
  html { scroll-padding-top: 124px; }
}
.section h2 { font: 500 clamp(2.1rem, 4.6vw, 4rem)/1.05 Georgia, serif; letter-spacing: -.055em; }
.services li:first-child { grid-column: span 4; background: #ded7f6; }
.services li:nth-child(3) { background: #f2e9dc; }
.services h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.03em; }
.services p { max-width: 36ch; }
.section-alt { background: #28213d; color: #fff; }
.section-alt h2, .section-alt h3 { color: #fff; }
.section-alt p { color: #e4dcef; }
.section-alt .steps li { border-color: #6d5f86; }
.section-alt .steps li::before { background: #c2b1ff; }
.contacts-note { border: 0; border-radius: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-visual img { animation: photo-arrive 850ms cubic-bezier(.2,.7,.25,1) both; transition: transform 450ms ease; }
  .services li { transition: transform 220ms ease, box-shadow 220ms ease; }
  @media (hover: hover) {
    .hero-visual:hover img { transform: scale(1.04); }
    .services li:hover { transform: translateY(-4px); box-shadow: 0 10px 30px #2e1b4920; }
  }
}
@keyframes photo-arrive { from { opacity: .55; scale: 1.09; } to { opacity: 1; scale: 1; } }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pricing-grid li { padding: clamp(18px, 2vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.pricing-grid h3 { font-size: 1.2rem; }
.pricing-grid p { color: var(--ink-soft); }
.pricing-grid .price { margin: 12px 0; color: var(--accent-dark); }
.price strong { font-size: 1.55rem; white-space: nowrap; }
.pricing-note { margin-top: 20px; color: var(--ink-soft); }
.pricing-cta { margin-top: 22px; }
@media (max-width: 1040px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .hero-visual { aspect-ratio: 1.6; }
  .services li { grid-column: span 1; }
  .services li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1.38; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .btn:focus-visible { transform: none; }
}
