:root {
  --navy: #0c2340;
  --navy-soft: #16365c;
  --orange: #e86a17;
  --orange-deep: #c4510c;
  --white: #ffffff;
  --paper: #f4f7fb;
  --cream: #fff6ee;
  --ink: #16304a;
  --muted: #5c6d80;
  --line: rgba(12, 35, 64, 0.12);
  --shadow: 0 18px 40px rgba(12, 35, 64, 0.08);
  --radius: 20px;
  --header-h: 72px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.lead,
.section-head p,
.lead-tight,
.about-grid > div > p:last-child {
  color: var(--muted);
}

.lead {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.08rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}

.btn-primary:hover {
  background: #f38a3d;
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(12, 35, 64, 0.18);
}

.btn-ghost:hover {
  border-color: var(--navy);
}

.viber-btn {
  gap: 8px;
  background: #7360f2;
  color: var(--white);
}

.viber-btn:hover {
  background: #5b48d6;
}

.viber-btn .viber-icon {
  background: transparent;
  width: 18px;
  height: 18px;
}

.btn:focus-visible,
.nav a:focus-visible,
.topbar a:focus-visible,
.logo:focus-visible,
.menu-toggle:focus-visible,
.steps a:focus-visible,
.contact-list a:focus-visible,
.footer a:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem;
}

.topbar-inner,
.header-inner,
.hero-actions,
.topbar-links,
.footer-grid {
  display: flex;
  gap: 16px;
}

.topbar-inner {
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-block: 8px;
}

.topbar-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.3;
}

.viber-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #7360f2;
  color: var(--white);
  flex: none;
}

.topbar a:hover {
  color: #ffd7b8;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--orange-deep);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.05rem;
}

.logo-text small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -6px;
}

.menu-toggle-lines::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a:not(.btn) {
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--orange-deep);
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(232, 106, 23, 0.16), transparent 28%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 78%);
  padding: 56px 0 28px;
}

.hero-grid,
.about-grid,
.contacts-grid,
.faq-layout {
  display: grid;
  gap: 32px;
}

.hero-grid {
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-facts li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 650;
  box-shadow: 0 1px 0 var(--line);
}

.hero-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-card-kicker {
  color: #ffc397;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card-title {
  margin-top: 12px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero-card-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.hero-card dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.hero-card dd {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.hero-card a {
  color: var(--white);
  text-decoration: none;
}

.hero-card a:hover {
  color: #ffd7b8;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 84px;
}

.section-paper {
  background: var(--paper);
}

.section-cream {
  background: var(--cream);
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head p,
.lead-tight {
  margin-top: 12px;
}

.about-grid > div > p:last-child {
  margin-top: 12px;
}

.card-grid,
.review-grid,
.steps {
  display: grid;
  gap: 16px;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.review,
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(12, 35, 64, 0.03);
}

.card,
.review {
  padding: 22px;
}

.card-index {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-more,
.service-links a,
.breadcrumb a,
.footer-links a {
  font-weight: 700;
  text-decoration: none;
}

.card-more,
.service-links a,
.breadcrumb a {
  color: var(--orange-deep);
}

.card-more {
  display: inline-block;
  margin-top: 12px;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.answer-grid li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.answer-grid strong,
.answer-grid span {
  display: block;
}

.answer-grid strong {
  color: var(--navy);
}

.answer-grid span {
  margin-top: 6px;
  color: var(--muted);
}

.breadcrumb {
  margin-bottom: 12px;
  color: var(--muted);
}

.prose {
  display: grid;
  gap: 14px;
  max-width: 68ch;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 1.15rem;
  list-style: disc;
}

.footer-links {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.card h3,
.steps h3,
.review strong {
  margin-top: 10px;
}

.card p:last-child,
.steps p,
.review p {
  margin-top: 8px;
  color: var(--muted);
}

.about-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.benefits li {
  padding: 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits strong {
  color: var(--navy);
}

.benefits span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.review-grid {
  grid-template-columns: repeat(6, 1fr);
}

.review:nth-child(-n + 3) {
  grid-column: span 2;
}

.review:nth-child(n + 4) {
  grid-column: span 3;
}

.review footer {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.review span {
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  grid-template-columns: repeat(5, 1fr);
}

.steps li {
  padding: 18px 16px 20px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
}

.steps a {
  display: inline-block;
  margin-top: 14px;
  color: var(--orange-deep);
  font-weight: 700;
}

.faq-layout {
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 4px 18px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 28px 14px 0;
  color: var(--navy);
  font-weight: 750;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  color: var(--orange-deep);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
}

.contacts-grid {
  grid-template-columns: minmax(0, 640px);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}

.contact-list span,
.footer-label,
.footer-sub {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-list a,
.contact-list strong,
.footer a,
.footer p {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover,
.footer a:hover {
  color: var(--orange-deep);
}

.map-frame {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0 32px;
}

.footer-grid {
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-sub,
.footer-label,
.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.footer a {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.footer a:hover {
  color: #ffd7b8;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.footer-phones a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.call-bar {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .faq-layout,
  .contacts-grid,
  .card-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review:nth-child(-n + 3),
  .review:nth-child(n + 4) {
    grid-column: auto;
  }

  .review:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  body {
    padding-bottom: 84px;
  }

  .topbar-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .topbar-links {
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header.is-open .menu-toggle-lines {
    background: transparent;
  }

  .header.is-open .menu-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .header.is-open .menu-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 20px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .header.is-open .nav {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 10px 0;
  }

  .hero-grid,
  .about-grid,
  .faq-layout,
  .contacts-grid,
  .card-grid,
  .benefits,
  .review-grid,
  .steps,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .review:last-child {
    grid-column: auto;
  }

  h1 {
    max-width: none;
  }

  .section {
    padding: 56px 0;
  }

  .call-bar {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(12, 35, 64, 0.08);
  }
}

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

  .btn {
    transition: none;
  }
}
