:root {
  --ink: #14211f;
  --ink-soft: #3d4c48;
  --muted: #6b7874;
  --paper: #f4f0e7;
  --paper-2: #e8e2d4;
  --white: #fffcf7;
  --line: rgba(20, 33, 31, 0.12);
  --teal: #14675e;
  --teal-deep: #0c3f3a;
  --teal-bright: #1f8a7b;
  --amber: #e2a322;
  --amber-deep: #a8740c;
  --amber-soft: #fff4d8;
  --danger: #9d2c2c;
  --shadow: 0 24px 60px rgba(16, 33, 31, 0.12);
  --radius: 22px;
  --header: 76px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #d7efe9; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

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

.kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 0.96; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; }
h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }

.lead { font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section { padding: 88px 0; }
#steps, #advantages, #price, #certificate, #download, #card, #contacts, #zayavka { scroll-margin-top: 88px; }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head p { margin: 14px 0 0; color: var(--ink-soft); }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(244, 240, 231, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__in {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.logo img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.logo__name {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}
.logo__sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 650; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.header__phone {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  white-space: nowrap;
}
.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.btn {
  --glow: rgba(12, 63, 58, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 10px;
  border-style: solid;
  border-color: transparent;
  border-width: 0 26px;
  border-radius: 0;
  border-image-source: url("assets/btn-teal.png");
  border-image-slice: 0 64 fill;
  border-image-width: 0 26px;
  border-image-repeat: stretch;
  background: none;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  filter: drop-shadow(0 8px 12px var(--glow));
  transition: transform .18s ease, filter .18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 16px var(--glow)) brightness(1.04);
}
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #9ad8ce;
  outline-offset: 2px;
}
.btn svg { width: 18px; height: 18px; }
.btn--amber {
  --glow: rgba(168, 116, 12, 0.32);
  border-image-source: url("assets/btn-amber.png");
  color: #2a2108;
}
.btn--ghost {
  --glow: transparent;
  height: 52px;
  padding: 0 22px;
  border-image: none;
  border: 1.5px solid rgba(20, 33, 31, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  filter: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.55); filter: none; }
.btn--small {
  height: 42px;
  padding: 0 8px;
  font-size: 14px;
  border-width: 0 21px;
  border-image-width: 0 21px;
}
.btn--ghost.btn--small { padding: 0 16px; border-width: 1.5px; }
.btn--block { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  min-height: calc(100vh - var(--header));
  background:
    linear-gradient(180deg, rgba(20,33,31,.04), transparent 28%),
    var(--paper);
}
.hero__copy {
  padding: 54px 28px 64px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 span { display: block; }
.hero h1 .org {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 8px 0 0; padding: 0; list-style: none; }
.hero__facts strong { display: block; font-size: 15px; }
.hero__facts span { color: var(--muted); font-size: 13px; }
.hero__media { position: relative; min-height: 560px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.chip {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(16, 33, 31, 0.88);
  color: #f6f1e7;
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  max-width: 260px;
}
.chip b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 560; }
.chip span { display: block; color: rgba(246,241,231,.72); font-size: 13px; margin-top: 2px; }

.band {
  background: var(--ink);
  color: #f6f1e7;
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.band__grid article { padding: 26px 22px; border-left: 1px solid rgba(246,241,231,.12); }
.band__grid article:first-child { border-left: 0; }
.band__grid strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
.band__grid p { margin: 6px 0 0; color: rgba(246,241,231,.68); font-size: 14px; }

.steps, .advantages, .prices, .docs, .cities {
  display: grid;
  gap: 16px;
}
.advantages { grid-template-columns: 1fr 1fr; }
.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}
.steps { grid-template-columns: repeat(4, 1fr); }
.steps--pair { grid-template-columns: 1fr 1fr; }
.card, .price, .doc, .adv {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.step, .adv { padding: 22px; }
.step__n, .adv__n {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(20, 33, 31, 0.14);
}
.step__n img, .adv__n img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step p, .adv p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }
.adv--hot {
  background: linear-gradient(180deg, #e7f6f3, #fff);
  border-color: #b7ddd6;
}

.prices { grid-template-columns: repeat(3, 1fr); }
.price { overflow: hidden; display: flex; flex-direction: column; }
.price img { height: 210px; width: 100%; object-fit: cover; background: #f7f7f7; }
.price__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price__sum { font-family: var(--serif); font-size: 34px; letter-spacing: -0.04em; }
.price .btn { margin-top: auto; }

.callout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(120deg, #ffe7a8, #fff4d2 55%, #fff);
  border-radius: 28px;
  padding: 28px;
  border: 1px solid #efd48a;
}
.callout h3 { font-family: var(--serif); font-size: 32px; font-weight: 560; }
.callout p { margin: 10px 0 0; max-width: 62ch; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
.split img { width: 100%; height: 460px; object-fit: cover; border-radius: 28px; }
.cert-no {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  margin: 8px 0;
}
.ticks { margin: 16px 0 22px; padding: 0; list-style: none; }
.ticks li { padding: 8px 0 8px 28px; position: relative; }
.ticks li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal-bright);
  position: absolute;
  left: 0; top: 12px;
  box-shadow: inset 0 0 0 3px #e7f4f1;
}

.visit {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.visit img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.visit__copy { padding: 32px 32px 32px 8px; }
.rate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.rate div { background: var(--paper); border-radius: 16px; padding: 12px; }
.rate b { display: block; font-family: var(--serif); font-size: 28px; }
.rate span { color: var(--muted); font-size: 13px; }

.cities { grid-template-columns: repeat(7, 1fr); margin-top: 18px; }
.cities span {
  background: var(--white);
  border-radius: 999px;
  border: 1px solid var(--line);
  text-align: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 700;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfaf6;
  padding: 10px 12px;
}
.form textarea { min-height: 110px; resize: vertical; }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; color: var(--ink-soft) !important; }
.check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.form__note { grid-column: 1 / -1; min-height: 1.2em; margin: 0; font-weight: 700; }
.form__note.is-bad { color: var(--danger); }
.form__note.is-ok { color: var(--teal-deep); }
.chosen {
  display: none;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--amber-soft);
  font-weight: 700;
}

.docs { grid-template-columns: 1fr 1fr; }
.doc { padding: 22px; display: flex; gap: 16px; align-items: flex-start; text-decoration: none; }
.doc:hover { border-color: #b7ddd6; }
.doc__ico {
  width: 72px; height: 72px; flex: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(20, 33, 31, 0.14);
}
.doc__ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc h3 { font-size: 20px; }
.doc p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }

.contacts {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
}
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { font-weight: 800; text-decoration: none; }
.vk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  text-decoration: none;
  font-weight: 800;
}
.vk i {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #2787f5;
  color: white;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.footer {
  background: #0e1a18;
  color: rgba(246,241,231,.78);
  padding: 42px 0 28px;
}
.footer a { color: #f6f1e7; }
.footer__top, .footer__bot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__bot { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(246,241,231,.12); font-size: 13px; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: rgba(246,241,231,.78); }

.dock {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 25;
  gap: 8px;
}
.dock .btn { flex: 1; }

.page-hero { padding: 48px 0 10px; }
.narrow { max-width: 760px; }
.prose p { color: var(--ink-soft); }
.ok-screen, .miss {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
}

@media (max-width: 1140px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: inline-block; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--header);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 22px;
    gap: 14px;
    z-index: 40;
  }
}
@media (max-width: 980px) {
  .hero, .split, .visit, .callout, .contacts, .band__grid, .docs, .form, .advantages, .two-col {
    grid-template-columns: 1fr;
  }
  .steps, .prices { grid-template-columns: 1fr 1fr; }
  .hero__media { min-height: 280px; order: -1; }
  .hero__media img { position: static; height: 280px; }
  .hero__copy { padding: 28px 20px 36px; }
  .band__grid article { border-left: 0; border-top: 1px solid rgba(246,241,231,.12); }
  .visit__copy { padding: 22px; }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .dock { display: flex; }
  body { padding-bottom: 78px; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .wrap { width: min(1180px, calc(100% - 28px)); }
  .rate { grid-template-columns: 1fr; }
  .prices, .steps, .steps--pair { grid-template-columns: 1fr; }
  .hero__media, .hero__media img { height: 176px; min-height: 176px; }
  .hero__actions .btn--ghost { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  h1 { font-size: 36px; }
}

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