:root {
  --ink: #131c27;
  --ink-soft: #4d5f73;
  --line: #e1e8f1;
  --line-strong: #cbd8e8;
  --bg-alt: #f4f8fd;
  --accent: #1a6fe0;
  --accent-2: #3f95f5;
  --accent-dark: #1155b8;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 60, .06), 0 1px 3px rgba(15, 35, 60, .04);
  --shadow-md: 0 2px 4px rgba(15, 35, 60, .05), 0 14px 30px -12px rgba(15, 35, 60, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.022em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); }

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

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -24px rgba(15, 35, 60, .5);
  backdrop-filter: blur(10px);
}
.top__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand span { color: var(--accent); }
.top__links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: .95rem;
}
.top__links a { color: var(--ink-soft); text-decoration: none; transition: color .15s; }
.top__links a:hover { color: var(--accent); }
.top__phone { padding: 9px 16px; white-space: nowrap; }

/* Выпадающий список мессенджеров: выезжает при наведении на кнопку */
.top__cta { position: relative; margin-left: auto; }
.top__cta .top__phone { margin-left: 0; }
.cta-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 2px;
  min-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* невидимая перемычка, чтобы панель не закрывалась при переводе курсора с кнопки на неё */
.cta-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.top__cta:hover .cta-menu,
.top__cta.is-open .cta-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.cta-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: .95rem;
  text-decoration: none;
  transition: background .15s;
}
.cta-menu a:hover { background: var(--bg-alt); }
.cta-icon { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s, color .16s, border-color .16s;
}
.btn--solid {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 55, 110, .2), 0 10px 22px -10px rgba(26, 111, 224, .75);
}
.btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 55, 110, .22), 0 14px 28px -10px rgba(26, 111, 224, .8);
}
.btn--solid:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(16, 55, 110, .2); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--wide { width: 100%; }
.btn:disabled { opacity: .65; cursor: default; transform: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 84px) 0 clamp(34px, 5vw, 60px);
  background:
    radial-gradient(58% 76% at 88% 0%, rgba(63, 149, 245, .20), transparent 62%),
    radial-gradient(48% 60% at 0% 100%, rgba(26, 111, 224, .10), transparent 62%),
    linear-gradient(180deg, #f7fbff, #fff);
  border-bottom: 1px solid var(--line);
}
.hero__where {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 4.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--accent);
}
.hero__where::before {
  content: "";
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-right: .35em;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 6px rgba(26, 111, 224, .14);
  vertical-align: .04em;
}
.hero__lead {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}
.hero__facts {
  display: grid;
  gap: 8px 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hero__facts li { padding-left: 22px; position: relative; }
.hero__facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 620px; color: var(--ink-soft); }

/* Service cards */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 28px 0 16px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #cfe0f5;
  box-shadow: var(--shadow-md);
}
.card__title { font-weight: 700; margin: 0 0 6px; }
.card__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.card__note { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 22px 22px 22px 58px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: .97rem;
  color: var(--ink-soft);
  counter-increment: step;
  transition: transform .18s ease, box-shadow .18s ease;
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px -4px rgba(26, 111, 224, .8);
}
.steps b { display: block; color: var(--ink); margin-bottom: 4px; }

/* Areas */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.areas li {
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
}

/* Form */
.form {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(15, 35, 60, .05);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(15, 35, 60, .04), 0 0 0 4px rgba(26, 111, 224, .14);
}
.field textarea { resize: vertical; }

.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice__opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, box-shadow .15s, background .15s, color .15s;
}
.choice__opt:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.choice__opt input { accent-color: var(--accent); margin: 0; }
.choice__opt:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(26, 111, 224, .07);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(26, 111, 224, .35);
}
.channels { margin-bottom: 16px; }
.channels__title {
  display: block;
  margin-bottom: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.check {
  display: flex;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.check input { margin-top: 4px; flex: none; accent-color: var(--accent); }
.form__status { margin: 14px 0 0; font-size: .95rem; }
.form__status--ok { color: #17803f; }
.form__status--err { color: #c0392b; }
.hidden { display: none !important; }

/* Contacts */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 24px 0 20px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: #cfe0f5;
  box-shadow: var(--shadow-md);
}
.contact-card__name { display: block; font-weight: 700; }
.contact-card__hint { display: block; font-size: .85rem; color: var(--ink-soft); }
.contact-hours { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.note { font-size: .92rem; color: var(--ink-soft); }
.legal { margin: 10px 0 12px; }
.legal p { margin: 0 0 2px; }

/* Policy page */
.policy h2 { margin-top: 1.7em; font-size: 1.25rem; }
.policy ul { margin: 0 0 1em; padding-left: 22px; }
.policy li { margin-bottom: 6px; color: var(--ink-soft); }

.foot {
  padding: 48px 0 40px;
  font-size: .92rem;
  line-height: 1.55;
  color: #a8b8c9;
  background: #0f1a26;
}
.foot a { color: #8cc0ff; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__grid {
  display: grid;
  grid-template-columns: 1.1fr 2.1fr 1fr 1.2fr;
  gap: 32px 40px;
  align-items: start;
}
.foot__brand .brand--foot { display: inline-block; font-size: 1.3rem; color: #fff; }
.foot__brand .brand--foot span { color: var(--accent-2); }
.foot__domain { margin: 6px 0 0; font-size: .85rem; color: #7d8fa2; }
.foot__title { margin: 0 0 10px; font-weight: 700; color: #fff; }
.foot .note { color: inherit; margin: 0 0 4px; }
.foot .legal { margin: 10px 0 8px; }
.foot .legal p { margin: 0 0 2px; }
.foot__col ul { margin: 0; padding: 0; list-style: none; }
.foot__col li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .top__links { display: none; }
  .top__inner { gap: 12px; }
  .top__phone { margin-left: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .card:hover, .steps li:hover, .contact-card:hover { transform: none; }
}

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