:root {
  --white: #ffffff;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
  --max: 1120px;
  --font: "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 32px, var(--max, 1120px)); margin-inline: auto; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin: 0 0 12px; font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.section-lead { margin: 0 0 32px; max-width: 720px; color: var(--muted); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.logo-tagline { font-size: 12px; line-height: 1.35; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px;
  color: var(--text); font-size: 14px; text-decoration: none; border-radius: 6px;
}
.nav-list a:hover { color: var(--accent); background: var(--bg-alt); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.menu-toggle-bars { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent;
  border-radius: var(--radius-sm); font-family: inherit; font-size: 15px;
  font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .7; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-alt); }
.btn-header { display: none; }

.header-panel { display: none; padding: 8px 0 16px; border-top: 1px solid var(--border); }
.header-panel.is-open { display: block; }
.header-panel .nav { display: block; }
.header-panel .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.header-panel .nav-list a { width: 100%; }
.header-panel .btn { width: 100%; margin-top: 8px; }

.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 700; }
.hero h1 { margin: 0 0 14px; font-size: 34px; line-height: 1.18; letter-spacing: -0.03em; }
.hero-text { margin: 0 0 24px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { margin: 0; max-width: 520px; font-size: 14px; color: var(--muted); }
.hero-media {
  position: relative; min-height: 240px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-alt);
}
.hero-media img { width: 100%; height: 100%; min-height: 240px; max-height: 460px; object-fit: cover; }
.hero-fallback { display: none; min-height: 280px; padding: 28px; }
.hero-media.is-fallback .hero-fallback { display: block; }
.hero-media.is-fallback img { display: none; }
.fallback-scene {
  height: 220px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; position: relative; overflow: hidden;
}
.fallback-window { position: absolute; right: 18px; top: 16px; width: 86px; height: 64px; border-radius: 6px; background: #dbe7f8; }
.fallback-desk { position: absolute; left: 16px; right: 16px; bottom: 36px; height: 14px; border-radius: 4px; background: #d9e2ef; }
.fallback-person { position: absolute; bottom: 50px; width: 36px; height: 58px; border-radius: 18px 18px 8px 8px; background: #c7d7f0; }
.fallback-person-a { left: 48px; background: var(--accent); opacity: .55; }
.fallback-person-b { left: 108px; }
.fallback-paper { position: absolute; left: 86px; bottom: 54px; width: 54px; height: 8px; border-radius: 2px; background: var(--border); }
.fallback-caption { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.about-text p { margin: 0 0 16px; max-width: 760px; }
.advantages { display: grid; gap: 12px; margin-top: 28px; }
.advantage { padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.advantage h3 { margin: 0 0 4px; font-size: 16px; }
.advantage p { margin: 0; font-size: 14px; color: var(--muted); }

.cards { display: grid; gap: 16px; }
.card { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px; border-radius: 10px;
  background: var(--bg-alt); color: var(--accent);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); color: var(--accent); font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.note { margin: 24px 0 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: #fff; color: var(--muted); font-size: 14px; }

.chips { display: grid; gap: 10px; }
.chip { padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; }

.reviews { display: grid; gap: 16px; }
.review { padding: 22px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.review blockquote { margin: 0 0 16px; font-size: 15px; }
.review footer { color: var(--muted); font-size: 14px; }

.request-wrap { display: grid; gap: 28px; }
.request-form { padding: 24px 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); }
.form-row input, .form-row textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input[aria-invalid="true"], .form-row textarea[aria-invalid="true"] { border-color: #b42318; background: #fffafa; }
.field-error { display: none; margin: 6px 0 0; font-size: 13px; color: #b42318; }
.field-error.is-visible { display: block; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.checkbox-row label { margin: 0; font-weight: 400; font-size: 14px; }
#consent-error { margin-top: -8px; margin-bottom: 16px; }
.form-message { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.form-message.is-visible { display: block; }
.form-message.is-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.form-message.is-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.request-form .btn { width: 100%; }

.contacts-grid { display: grid; gap: 12px; }
.contact-item { padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.contact-item dt { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.contact-item dd { margin: 0; font-weight: 700; }
.contact-item a { color: inherit; font-weight: 700; }
.requisites { margin-top: 20px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.requisites h3 { margin: 0 0 10px; font-size: 16px; }
.requisites p { margin: 0 0 6px; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: 14px; }
.footer-top { display: grid; gap: 12px; margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-disclaimer { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.page-main { padding: 40px 0 64px; }
.page-content { max-width: 800px; }
.page-content h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; }
.page-date { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.page-content h2 { margin: 28px 0 10px; font-size: 20px; }
.page-content ul { padding-left: 20px; }
.back-link { display: inline-block; margin-bottom: 20px; }

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 32px; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: 42px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .hero-media img { min-height: 380px; }
  .advantages, .cards, .steps, .chips { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .request-wrap { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .request-form .btn { width: auto; min-width: 220px; }
  .footer-top { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .menu-toggle, .header-panel { display: none !important; }
  .nav { display: block; }
  .btn-header { display: inline-flex; }
}
@media (min-width: 1024px) {
  .advantages { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 374px) {
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


:root {
  --bg: #f5f3ff;
  --bg-alt: #ede9fe;
  --text: #1e1b4b;
  --muted: #5b5678;
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --border: #ddd6fe;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 78px;
}
.site-header { background: #ffffff; }
.card { border-left: 4px solid #6d28d9; }
.steps { position: relative; }
.step { align-items: center; }
.step-num { border-radius: 999px; background: #6d28d9; color: #fff; }
.chip { background: #ffffff; }
.card-icon { background: #ede9fe; color: #6d28d9; border-radius: 999px; }
.request-form { background: #ffffff; border: 0; }
.hero-media { border-radius: 32px 8px 32px 8px; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: 1fr; text-align: center; }
  .step-num { margin: 0 auto 8px; }
}

