/* Лёгкость движения — оформление */
:root {
  --accent: #0d8ea8;
  --accent-soft: #e6f6fa;
  --dark: #0d2b33;
  --hero-from: #0e7490;
  --hero-to: #0891b2;
  --hero-text: #ecfeff;
  --text: #1f2733;
  --muted: #5b6773;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); }

/* ------------------------------------------------------------- шапка */
.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
}
.logo-name { font-weight: 700; font-size: 18px; }
.logo-note { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.topnav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.topnav a:hover { color: var(--accent); }

/* --------------------------------------------------------------- герой */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--hero-text);
  padding: 64px 0 72px;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  letter-spacing: .3px;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -.5px;
  max-width: 15em;
}
.hero p.lead {
  margin: 0 0 26px;
  font-size: 18px;
  max-width: 44em;
  opacity: .92;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 15px;
}
.hero-bullets li { position: relative; padding-left: 22px; opacity: .95; }
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 14px 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.07); }
.btn-light { background: #fff; color: var(--dark); }

/* -------------------------------------------------------------- секции */
section { padding: 58px 0; }
section.alt { background: var(--bg-alt); }
h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--dark);
  letter-spacing: -.3px;
}
.section-sub { color: var(--muted); margin: 0 0 30px; max-width: 46em; }
.prose p { margin: 0 0 14px; max-width: 48em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--dark); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { padding-top: 6px; }
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; color: var(--dark); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.checklist { list-style: none; padding: 0; margin: 0; max-width: 46em; }
.checklist li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 19px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  max-width: 52em;
}
details.faq summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  color: var(--dark);
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: " +"; color: var(--accent); font-weight: 700; }
details.faq[open] summary::after { content: " –"; }
details.faq p { margin: 0 0 16px; color: var(--muted); }

/* --------------------------------------------------------------- форма */
.form-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  max-width: 560px;
  box-shadow: 0 10px 30px rgba(20,30,45,.06);
}
.form-box h2 { margin-bottom: 6px; }
.form-box .section-sub { margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input[type=text],
.field input[type=tel] {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 20px;
  line-height: 1.5;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ------------------------------------------------------------- контакты */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.contact-grid div b { display: block; color: var(--dark); margin-bottom: 4px; }
.contact-grid div span { color: var(--muted); font-size: 15px; }

.disclaimer {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 30px;
}

/* --------------------------------------------------------------- подвал */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: 34px 0;
  font-size: 14px;
}
footer a { color: rgba(255,255,255,.9); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* -------------------------------------------------- текстовые страницы */
.doc { padding: 44px 0 60px; }
.doc h1 { font-size: 32px; color: var(--dark); margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.doc h2 { font-size: 21px; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--text); max-width: 52em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

.thanks { text-align: center; padding: 90px 0 100px; }
.thanks .mark {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 36px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.thanks h1 { font-size: 30px; color: var(--dark); margin: 0 0 12px; }
.thanks p { color: var(--muted); max-width: 34em; margin: 0 auto 26px; }

/* ---------------------------------------------------------- фотографии */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 44px;
  align-items: center;
}
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  line-height: 0;
  aspect-ratio: 4 / 3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* кнопка не должна упираться в фотографию */
.hero .btn { margin-bottom: 6px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.about-photo {
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 4 / 3;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Почта показывается, только когда сайт открыт на своём домене:
   на голом адресе сервера подставлять её некуда и незачем. */
.mail-row, .mail-inline { display: none; }
html.has-domain .mail-row { display: block; }
html.has-domain .mail-inline { display: inline; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  /* в одну колонку фотография не должна занимать пол-экрана */
  .hero-photo { max-width: 460px; margin: 6px auto 0; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { max-width: 480px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 50px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 17px; }
  h2 { font-size: 25px; }
  section { padding: 44px 0; }
  .form-box { padding: 22px; }
  .topnav { gap: 14px; }
  .topnav a { font-size: 14px; }
}
