/* Дом страхования Мека — корпоративная тема.
   Фирменные цвета: фиолетовый #965CA6, бирюзовый #32C9B5, оранжевый #FCA44B.
   Шрифт: Golos Text (локальные файлы из /fonts/). */

@font-face {
  font-family: "Golos Text";
  src: url("/fonts/GolosText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/GolosText-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/GolosText-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/GolosText-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/GolosText-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #965ca6;
  --purple-dark: #7b4a8b;
  --purple-deep: #5e3869;
  --purple-ink: #4a2f55;
  --teal: #32c9b5;
  --teal-dark: #1fa896;
  --orange: #fca44b;
  --orange-dark: #f08c2e;
  --ink: #2c2333;
  --body: #4a4155;
  --muted: #7e7489;
  --line: #ece6f1;
  --soft: #f8f5fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(94, 56, 105, .06);
  --shadow-md: 0 14px 34px rgba(94, 56, 105, .12);
  --shadow-lg: 0 26px 60px rgba(94, 56, 105, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple-dark); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
  margin: 0 0 14px;
  color: var(--purple-dark);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(28px, 3.3vw, 44px); letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 2.7vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 16px; padding: 0; list-style: none; }

::selection { background: rgba(50, 201, 181, .3); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 74px 0; }

section[id], .zayavka { scroll-margin-top: 96px; }

.bg-soft { background: var(--soft); }

.bg-navy,
.page-hero__card,
.zayavka {
  background: linear-gradient(150deg, var(--purple-deep) 0%, var(--purple-dark) 55%, var(--purple) 100%);
}

.bg-navy { color: rgba(255, 255, 255, .84); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy b { color: #fff; }
.bg-navy p { color: rgba(255, 255, 255, .84); }
.bg-navy a { color: #fff; }
.bg-navy .ticks li { color: rgba(255, 255, 255, .88); }

/* ---------- Верхняя полоса ---------- */

.topstrip {
  background: var(--purple-deep);
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
}
.topstrip__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  flex-wrap: wrap;
}
.topstrip__right { display: flex; gap: 22px; flex-wrap: wrap; }
.topstrip a { color: #fff; }
.topstrip a:hover { color: var(--teal); }

/* ---------- Шапка ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 80px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { height: 48px; width: 48px; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text b { color: var(--purple-ink); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.logo__text i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 2px;
}
.logo--light .logo__text b { color: #fff; }
.logo--light .logo__text i { color: rgba(255, 255, 255, .62); }
.logo--light img {
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  box-sizing: content-box;
}

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  font-size: 15px;
  color: var(--body);
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transition: right .22s ease;
}
.nav a:hover { color: var(--purple-dark); }
.nav a:hover::after { right: 0; }

.hdr__phone { font-size: 15px; font-weight: 600; color: var(--purple-ink); white-space: nowrap; }
.hdr__burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  color: var(--purple-dark);
  cursor: pointer;
}
.hdr__mobnav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 22px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.hdr__mobnav a { padding: 12px 2px; font-size: 16px; border-bottom: 1px solid var(--soft); }
.hdr__mobnav .btn { margin-top: 12px; justify-content: center; }
body.nav-open .hdr__mobnav { display: flex; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--main {
  background: var(--orange);
  color: #3a2410;
  box-shadow: 0 10px 24px rgba(252, 164, 75, .34);
}
.btn--main:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 14px 30px rgba(240, 140, 46, .38); }

.btn--ghost {
  background: transparent;
  border-color: rgba(123, 74, 139, .3);
  color: var(--purple-dark);
}
.btn--ghost:hover { border-color: var(--purple); background: rgba(150, 92, 166, .06); }

.bg-navy .btn--ghost, .page-hero__card .btn--ghost, .zayavka .btn--ghost {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.bg-navy .btn--ghost:hover, .page-hero__card .btn--ghost:hover, .zayavka .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .14);
}

.btn--pill {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
}
.btn--pill:hover { background: var(--purple-dark); color: #fff; }

.btn--line {
  border-color: var(--line);
  color: var(--purple-dark);
  background: #fff;
}
.btn--line:hover { border-color: var(--purple); }

/* ---------- Секции ---------- */

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.bg-navy .eyebrow, .page-hero__card .eyebrow, .zayavka .eyebrow { color: var(--teal); }

.sect-head { max-width: 760px; margin-bottom: 38px; }
.sect-head p { color: var(--muted); font-size: 17px; margin-bottom: 0; }

.small { font-size: 14px; color: var(--muted); line-height: 1.55; }
.tiny { font-size: 12.5px; color: var(--muted); }

.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  font-size: 15.5px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(50, 201, 181, .16);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 10px;
  width: 7px; height: 4px;
  border-left: 1.8px solid var(--teal-dark);
  border-bottom: 1.8px solid var(--teal-dark);
  transform: rotate(-45deg);
}
.bg-navy .ticks li::before { background: rgba(255, 255, 255, .16); }
.bg-navy .ticks li::after { border-color: #fff; }

/* ---------- Первый экран ---------- */

.hero { padding: 64px 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -240px; right: -160px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(50, 201, 181, .16), rgba(50, 201, 181, 0) 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 40px; right: 180px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(252, 164, 75, .14), rgba(252, 164, 75, 0) 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 18px; color: var(--body); max-width: 560px; margin-bottom: 26px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__btns .btn { min-width: 168px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.hero__side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hero__side::before {
  content: "";
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--teal), var(--purple));
}
.hero__side h3 { font-size: 17px; margin-bottom: 16px; }
.hero__side ul { margin: 0; }
.hero__side li {
  font-size: 15px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hero__side li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.hero__side b { color: var(--purple-dark); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.fact b { display: block; font-size: 30px; color: var(--purple-dark); letter-spacing: -.03em; line-height: 1.1; }
.fact span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Карточки ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--body);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(150, 92, 166, .35);
  box-shadow: var(--shadow-md);
}
.card__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--teal-dark);
}
.card h3 { font-size: 19px; margin: 0; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.card__more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-dark);
}
.card:hover .card__more { color: var(--teal-dark); }

.card--wide {
  grid-column: 1 / -1;
  background: linear-gradient(115deg, var(--purple-deep), var(--purple));
  border-color: transparent;
  color: rgba(255, 255, 255, .86);
}
.card--wide h3 { color: #fff; }
.card--wide p { color: rgba(255, 255, 255, .78); }
.card--wide .card__num { color: var(--teal); }
.card--wide .card__more { color: #fff; }
.card--wide:hover { border-color: transparent; }

/* ---------- Две колонки, панели ---------- */

.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.panel h3 { font-size: 17px; margin-bottom: 14px; }
.panel--navy {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}
.panel--navy h3 { color: #fff; }

/* ---------- Преимущества ---------- */

.adv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; }
.adv__item { padding: 22px 0 0; border-top: 2px solid var(--line); position: relative; }
.adv__item::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 54px; height: 2px;
  background: var(--purple);
}
.adv__num {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--teal-dark);
}
.adv__item b { display: block; font-size: 17px; color: var(--purple-ink); margin-bottom: 6px; }
.adv__item p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  counter-increment: step;
}
.bg-soft .step { box-shadow: var(--shadow-sm); }
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--purple);
}
.step b { display: block; font-size: 16.5px; color: var(--purple-ink); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- О компании ---------- */

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: start; }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; }
.stat b { display: block; font-size: 24px; color: var(--purple-dark); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- Реквизиты ---------- */

.req { width: 100%; border-collapse: collapse; margin-top: 8px; }
.req th, .req td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}
.req th { width: 42%; color: var(--muted); font-weight: 400; }
.req td { color: var(--purple-ink); font-weight: 500; }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }

/* ---------- Заявка ---------- */

.zayavka {
  color: rgba(255, 255, 255, .84);
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}
.zayavka::before {
  content: "";
  position: absolute;
  left: -160px; bottom: -220px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(50, 201, 181, .22), rgba(50, 201, 181, 0) 70%);
}
.zayavka__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.zayavka__text h2 { color: #fff; }
.zayavka__text p { color: rgba(255, 255, 255, .82); }
.zayavka__text .ticks li { color: rgba(255, 255, 255, .88); }
.zayavka__text .ticks li::before { background: rgba(255, 255, 255, .16); }
.zayavka__text .ticks li::after { border-color: #fff; }
.zayavka__text .small { color: rgba(255, 255, 255, .66); margin-top: 18px; }

.zform {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { display: block; }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fdfcfe;
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #a99dae; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(150, 92, 166, .14);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.consent input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--purple); }
.consent a { color: var(--purple-dark); text-decoration: underline; text-underline-offset: 2px; }

.zform .btn--main { width: 100%; padding: 15px 22px; font-size: 16px; }
.zform .tiny { text-align: center; margin: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.alert {
  background: #fdeef0;
  border: 1px solid #f4c6cd;
  color: #96323f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

/* ---------- Футер ---------- */

.ftr {
  background: var(--purple-ink);
  color: rgba(255, 255, 255, .7);
  padding: 56px 0 0;
  font-size: 14.5px;
}
.ftr__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 40px; }
.ftr__col h4 { color: rgba(255, 255, 255, .5); font-size: 11.5px; letter-spacing: .12em; margin-bottom: 14px; }
.ftr__col p { margin: 0 0 8px; }
.ftr a { color: rgba(255, 255, 255, .84); }
.ftr a:hover { color: var(--teal); }
.ftr__about { margin-top: 16px; color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.6; }
.ftr__legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 22px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* ---------- Страница услуги ---------- */

.breadcrumbs { padding: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--purple-dark); }

.page-hero { padding: 26px 0 56px; }
.page-hero__card {
  border-radius: 24px;
  padding: 48px 46px;
  color: rgba(255, 255, 255, .86);
  position: relative;
  overflow: hidden;
}
.page-hero__card::after {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(50, 201, 181, .3), rgba(50, 201, 181, 0) 70%);
}
.page-hero__card h1 { color: #fff; max-width: 720px; }
.page-hero__card p { color: rgba(255, 255, 255, .84); max-width: 640px; font-size: 17.5px; }
.page-hero__card .hero__btns { margin-top: 24px; position: relative; z-index: 1; }

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__side { max-width: 620px; }
  .two, .about, .zayavka__grid { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ftr__in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav, .hdr__phone { display: none; }
  .hdr__burger { display: block; margin-left: auto; }
  .hdr__in { min-height: 70px; }
  .hdr .btn--pill { display: none; }
  .hdr__mobnav .btn--pill { display: inline-flex; }
}

@media (max-width: 720px) {
  section { padding: 52px 0; }
  .hero { padding: 40px 0 0; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
  .adv { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .zayavka { padding: 52px 0; }
  .zform { padding: 22px; }
  .page-hero__card { padding: 32px 24px; border-radius: 18px; }
  .topstrip { font-size: 11.5px; }
  .topstrip__in { min-height: 34px; }
  .topstrip__right { gap: 14px; }
  .topstrip span:nth-child(2) { display: none; }
  .about__stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero__btns .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: 1fr; gap: 26px; }
  .fact b { font-size: 26px; }
  .logo__text b { font-size: 15px; }
  .logo img { height: 40px; width: 40px; }
}

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