:root {
  --bg: #f3eee7;
  --bg-2: #e8e0d4;
  --ink: #161410;
  --ink-soft: #3f3a34;
  --muted: #746d64;
  --line: #d8cfc3;
  --paper: #fffaf4;
  --accent: #b44a2a;
  --accent-hover: #933c22;
  --forest: #1f4a42;
  --forest-2: #163832;
  --dark: #141a18;
  --cream: #e8dcc8;
  --ok: #2f6b4f;
  --err: #a33b2a;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(22, 20, 16, 0.08);
  --wrap: 1180px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--dark);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46rem;
}

h1, .h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 30px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-image {
  display: block;
  width: 260px;
  height: auto;
}
.footer .logo-image {
  width: 260px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 12px;
  margin-left: 0;
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.messengers {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.messengers-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 36px;
  line-height: 0;
  background: transparent;
}
.messengers img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.lead-copy .messengers,
.footer-contacts + .messengers,
.contact-card .messengers {
  display: inline-flex;
  margin-top: 12px;
}
.footer-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  text-decoration: none;
  color: #c9c0b3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-qr img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}
.footer-qr:hover { color: #efe8dc; }

.card-page {
  padding-top: 48px;
  padding-bottom: 64px;
}
.biz-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.biz-card-logo {
  width: min(280px, 100%);
  height: auto;
  margin-bottom: 24px;
}
.biz-card-text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 28px;
}
.biz-card-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.biz-card-contacts span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.biz-card-contacts a {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}
.biz-card-contacts a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 10px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(40deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-40deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
}
.btn-ghost:hover { background: var(--paper); }
.btn-dark {
  background: var(--cream);
  color: var(--dark);
}
.btn-dark:hover { background: #f3ead8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero {
  padding: 48px 0 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lead { margin-top: 18px; }
.hero-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-mock-shop {
  width: 78%;
  transform: rotate(-3deg);
}
.hero-mock-crm {
  position: absolute;
  right: 0;
  top: 56px;
  width: 86%;
  transform: rotate(2.5deg);
}

.section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}
.section-head .lead { margin-top: 10px; }
.section-dark {
  background: var(--dark);
  color: #efe8dc;
}
.section-dark .lead,
.section-dark .muted { color: #c9c0b3; }
.section-dark .eyebrow { color: #e08a6c; }
.section-cream { background: var(--bg-2); }

.split-dirs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dir-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 32px;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dir-card.alt {
  background: var(--dark);
  color: #efe8dc;
  border-color: transparent;
}
.dir-card h2 { margin: 8px 0 12px; }
.dir-card p { color: var(--ink-soft); }
.dir-card.alt p { color: #c9c0b3; }
.dir-card span {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.dir-card.alt span { color: var(--cream); }

.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 16px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.card, .service-card, .case-card, .reason, .scenario {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.service-card, .case-card { text-decoration: none; display: block; height: 100%; transition: transform 0.15s, box-shadow 0.15s; }
.service-card:hover, .case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-card p, .case-card p, .reason p, .scenario p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.step {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, #fff 30%, transparent);
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
}
.step b {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #e08a6c;
  margin-bottom: 8px;
}
.step p { margin-top: 8px; font-size: 0.9rem; color: #c9c0b3; }

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  padding: 0 0 16px;
  color: var(--ink-soft);
}

.lead-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.lead-block.is-compact { padding: 0; border: 0; box-shadow: none; background: transparent; }
.lead-meta {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  color: var(--ink-soft);
}
.lead-meta li { margin: 6px 0; }
.lead-meta a { font-weight: 700; text-decoration: none; }

.form { display: grid; gap: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
}
.check input { width: auto; margin-top: 3px; }
.check a { color: var(--forest); }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.form-status { font-size: 14px; margin: 0; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.page-hero { padding: 42px 0 10px; }
.page-hero .lead { margin-top: 14px; }
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs a { text-decoration: none; color: var(--ink-soft); }

.prose { max-width: 46rem; }
.prose h2 { margin: 28px 0 10px; font-size: 1.35rem; }
.prose p + p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 1.1em; color: var(--ink-soft); }
.geo-prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.geo-prose th, .geo-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.geo-prose th { background: var(--cream); font-weight: 600; }
.geo-prose ol { margin: 12px 0; padding-left: 1.2em; color: var(--ink-soft); }
.geo-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.empty-state { max-width: 40rem; padding: 24px 0 8px; color: var(--ink-soft); font-size: 1.05rem; }
.insight-list { display: grid; gap: 28px; }
.insight-list-compact { gap: 18px; }
.insight-card h2, .insight-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.insight-card p { margin: 0; color: var(--ink-soft); }
.insight-card a { text-decoration: none; color: inherit; }
.insight-card a:hover { color: var(--accent); }
.text-link { display: inline-block; margin-top: 10px; color: var(--accent); text-decoration: none; font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.messengers-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  font-size: 0.92rem;
}
.messengers-link:hover { border-color: var(--accent); color: var(--accent); }

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 18px 0 22px;
}
.spec div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.spec b { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec span { font-weight: 650; }

.service-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: 1px solid var(--line); }
.service-block .btn { margin-top: 8px; }
.service-block .hero-note { margin-top: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  background: var(--bg-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
}
.chip-link {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.chip-link:hover {
  border-color: var(--accent);
  background: var(--cream);
}
.geo-links { margin-top: 8px; }

.cta-band {
  margin: 20px 0 0;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--forest);
  color: #efe8dc;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.cta-band p { color: #c9c0b3; margin-top: 8px; }

.footer {
  background: var(--dark);
  color: #efe8dc;
  padding: 56px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}
.footer-brand p {
  margin-top: 14px;
  color: #c9c0b3;
  font-size: 0.95rem;
}
.footer-title {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e08a6c;
}
.footer-links, .footer-contacts {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
}
.footer-links a, .footer-contacts a { text-decoration: none; }
.footer-links li, .footer-contacts li { margin: 8px 0; color: #c9c0b3; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #2a3330;
  color: #9aa39c;
  font-size: 13px;
}
.footer-bottom a {
  margin-left: 14px;
  color: #c9c0b3;
  text-decoration: none;
}

.mock {
  background: #1b2220;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #ece6db;
  font-size: 12px;
}
.mock-preview {
  margin: 0;
  background: transparent;
  line-height: 0;
  width: 100%;
  max-height: 347px;
  aspect-ratio: 16 / 10;
  justify-self: stretch;
}
.mock-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #101614;
}
.mock-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d4743;
}
.mock-chrome span:nth-child(1) { background: #b44a2a; }
.mock-chrome span:nth-child(2) { background: #c4a574; }
.mock-chrome span:nth-child(3) { background: #2f6b4f; }
.mock-url {
  margin-left: 8px;
  flex: 1;
  background: #1c2623;
  border-radius: 8px;
  padding: 4px 8px;
  color: #9aa39c;
}
.mock-screen { padding: 12px; background: #18201e; }
.mock-shop, .mock-crm { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.mock-side { display: grid; gap: 6px; align-content: start; }
.mock-side b { color: #e8dcc8; }
.mock-side span { padding: 6px 8px; border-radius: 8px; background: #222b28; }
.mock-side .is-on { background: #b44a2a; }
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mock-grid article {
  background: #222b28;
  border-radius: 10px;
  padding: 10px;
}
.mock-grid i {
  display: block;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3a2a24, #2c4a44);
  margin-bottom: 8px;
}
.mock-grid b { display: block; }
.mock-grid em { color: #9aa39c; font-style: normal; }
.mock-kanban { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mock-kanban div { background: #222b28; border-radius: 10px; padding: 8px; }
.mock-kanban small { color: #e08a6c; font-weight: 700; }
.mock-kanban p { margin: 8px 0 0; background: #18201e; border-radius: 8px; padding: 8px; }
.mock-table { display: grid; gap: 6px; }
.mock-table > div {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr 1fr 0.8fr 0.7fr;
  gap: 6px;
  background: #222b28;
  padding: 8px;
  border-radius: 8px;
}
.mock-thead { font-weight: 700; color: #e8dcc8; }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mock-kpis div { background: #222b28; border-radius: 10px; padding: 10px; }
.mock-kpis b { display: block; font-size: 14px; margin-top: 4px; }
.mock-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 90px;
  margin-top: 12px;
}
.mock-bars i {
  flex: 1;
  background: linear-gradient(180deg, #e08a6c, #1f4a42);
  border-radius: 8px 8px 2px 2px;
}
.mock-hero-mini {
  background: linear-gradient(135deg, #2a1c18, #1f4a42);
  border-radius: 12px;
  padding: 22px;
  min-height: 110px;
}
.mock-hero-mini span { display: block; margin-top: 8px; color: #c9c0b3; }
.mock-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.mock-cols p { background: #222b28; border-radius: 10px; padding: 16px 10px; text-align: center; }

.legal { padding-bottom: 40px; }
.legal h2 { margin: 28px 0 10px; font-size: 1.3rem; }
.contacts-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card h2 { margin-bottom: 12px; }
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { margin: 10px 0; }
.contact-card a { font-weight: 700; text-decoration: none; }

.error-page {
  min-height: 50vh;
  display: grid;
  align-content: center;
  padding: 60px 0;
}

.lang-switch {
  position: relative;
}
.lang-switch-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
}
.lang-switch-btn:hover { color: var(--ink); }
.lang-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  min-width: 160px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.lang-switch-menu a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
.lang-switch-menu a:hover,
.lang-switch-menu a[aria-current="true"] {
  color: var(--ink);
  background: var(--bg-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html, body {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 1280px) {
  .header-phone { display: none; }
  .header-actions .btn { display: none; }
  .nav { font-size: 12px; gap: 4px 10px; }
}

@media (max-width: 1100px) {
  .hero-grid, .split-dirs, .grid-4, .steps, .lead-block, .footer-grid, .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-block {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    white-space: normal;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    margin: 0;
    background: var(--bg);
    backdrop-filter: none;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: min(70vh, calc(100dvh - 76px));
    overflow: auto;
  }
  body.nav-open .nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  body.nav-open .nav a:last-child { border-bottom: 0; }
  .header { position: sticky; }
  .header-inner {
    position: relative;
    gap: 12px;
    min-height: 64px;
  }
  .hero-visual { min-height: 340px; }
  .mock-preview { max-height: 300px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  .header .logo-image { width: min(260px, 70vw); }
  .footer .logo-image { width: min(260px, 80vw); }
  .header-actions { gap: 8px; }
  .header-actions .messengers { gap: 6px; }
  .header-actions .messengers-item,
  .header-actions .messengers img {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .hero {
    padding: 28px 0 8px;
  }
  .page-hero { padding: 28px 0 6px; }
  h1, .h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
  h2 { font-size: clamp(1.45rem, 6.5vw, 2rem); }
  .lead { font-size: 1rem; }
  .hero-grid, .split-dirs, .grid-4, .grid-3, .grid-2, .steps, .lead-block, .form-row, .service-block, .footer-grid, .contacts-grid, .spec, .cta-band {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .header-phone { display: none; }
  .hero-visual { display: none; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 22px;
  }
  .hero-actions .btn,
  .service-block .btn,
  .cta-band .btn,
  .form-actions .btn {
    width: 100%;
  }
  .section { padding: 44px 0; }
  .dir-card {
    min-height: 0;
    padding: 24px;
  }
  .lead-block { padding: 20px; gap: 22px; }
  .cta-band {
    display: grid;
    padding: 24px;
  }
  .service-block {
    gap: 18px;
    padding: 24px 0;
  }
  .mock-preview {
    max-height: 220px;
    aspect-ratio: 16 / 10;
  }
  .chips { gap: 6px; }
  .chip {
    font-size: 12px;
    padding: 5px 10px;
  }
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
    padding: 14px;
  }
  .footer {
    padding: 40px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .footer-bottom a { margin-left: 0; margin-right: 14px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .header-actions .messengers { display: none; }
  .steps { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
