/* Prosto Project — общие стили сайта */

/* ---------- Шрифт ---------- */
@font-face {
  font-family: "TildaSans";
  src: url("/assets/fonts/TildaSans-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TildaSans";
  src: url("/assets/fonts/TildaSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TildaSans";
  src: url("/assets/fonts/TildaSans-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TildaSans";
  src: url("/assets/fonts/TildaSans-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TildaSans";
  src: url("/assets/fonts/TildaSans-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TildaSans";
  src: url("/assets/fonts/TildaSans-Extrabold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Переменные ---------- */
:root {
  --accent: #ff8562;
  --ink: #000;
  --ink-soft: #333;
  --muted: #737373;
  --line: #e6e6e6;
  --bg: #fff;
  --bg-soft: #f2f2f2;
  --bg-soft-2: #f5f5f5;
  --dark: #111;
  --maxw: 1200px;
  --pad: 20px;
  --section-y: 100px;
  --radius: 0px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "TildaSans", Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.18; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; }
h4 { font-size: 20px; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--accent); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--bg-soft); }
.section--soft2 { background: var(--bg-soft-2); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { max-width: 820px; margin: 0 auto 60px; text-align: center; }
.section__head h2 { margin-bottom: 24px; }
.section__lead { color: var(--ink-soft); font-size: 19px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 18px 40px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; text-decoration: none; text-align: center;
  cursor: pointer; transition: opacity .2s, background .2s, color .2s;
  background: var(--ink); color: #fff;
}
.btn:hover { opacity: .82; }
.btn--ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; opacity: 1; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--wide { width: 100%; }

.link-more {
  display: inline-block; margin-top: 18px; font-size: 16px;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor;
}

/* ---------- Шапка: бургер и меню ---------- */
.burger {
  position: fixed; top: 18px; right: 18px; z-index: 60;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.burger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: 55; background: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--pad) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.nav.is-open { opacity: 1; visibility: visible; }
.nav__list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; width: 100%; }
.nav__list a {
  display: block; padding: 10px 0; font-size: 22px; font-weight: 500;
  letter-spacing: .04em; text-decoration: none; text-transform: uppercase;
}
.nav__list a:hover { color: var(--accent); }
.nav__list .nav__sub a { padding-left: 18px; font-size: 18px; text-transform: none; font-weight: 300; }
.nav__lang { margin: 28px auto 0; max-width: 720px; width: 100%; display: flex; gap: 10px; }
.nav__lang a {
  padding: 8px 18px; border: 1px solid var(--line); font-size: 14px;
  text-decoration: none; letter-spacing: .08em;
}
.nav__lang a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav__note {
  margin: 34px auto 0; max-width: 720px; width: 100%;
  font-size: 14px; color: var(--muted); line-height: 1.5;
}
body.nav-open { overflow: hidden; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; min-height: 720px; display: flex; align-items: center;
  color: #fff; background: #2b3138 center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.1) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { max-width: 780px; margin-bottom: 34px; }
.hero__lead { max-width: 640px; margin-bottom: 40px; font-size: 20px; font-weight: 300; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Коллаж из трёх фото ---------- */
.collage { position: relative; padding-bottom: 60px; }
.collage img { box-shadow: 0 8px 30px rgba(0,0,0,.14); }
.collage__a { width: 68%; }
.collage__b { position: absolute; right: 0; top: 18%; width: 42%; }
.collage__c { position: absolute; left: 24%; bottom: 0; width: 56%; }
.uptitle { text-transform: uppercase; letter-spacing: .01em; }

/* ---------- Плитки услуг ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.tile { display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 20px; }
.tile h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.tile p { font-size: 16px; color: var(--ink-soft); margin-bottom: 20px; }
.tile .btn { margin-top: auto; align-self: flex-start; padding: 12px 22px; font-size: 14px; }

/* ---------- Форма на всю ширину поверх фото ---------- */
.form-hero {
  position: relative; padding: var(--section-y) 0;
  background: #333 center/cover no-repeat; color: #fff;
}
.form-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.form-hero > .container { position: relative; z-index: 2; }
.form-hero .section__head h2, .form-hero .section__head p { color: #fff; }
.form-hero .form { max-width: 560px; margin: 0 auto; }
.form-hero .form__label { color: rgba(255,255,255,.85); }
.form-hero select, .form-hero input, .form-hero textarea { background: #fff; }
.form-hero .form__check { color: rgba(255,255,255,.9); }
.form-hero .form__note { color: rgba(255,255,255,.8); text-align: center; }
.form select {
  width: 100%; padding: 16px 18px; border: 1px solid var(--line);
  font-family: inherit; font-size: 16px; background: #fff; color: var(--ink);
}

/* ---------- Показатели «работать выгодно» ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat h3 { font-size: 27px; font-weight: 700; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 22px; }
.stat p { font-size: 16px; color: var(--ink-soft); }

/* ---------- Этапы ---------- */
.steps { max-width: 820px; margin: 0 auto; }
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 26px; padding-bottom: 40px; }
.step::before {
  content: ""; position: absolute; left: 23px; top: 46px; bottom: 0; width: 1px; background: var(--line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500;
}
.step h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 16px; margin-bottom: 4px; }
.step .muted { color: var(--accent); }
.step a { color: #5257de; }

/* ---------- Отзывы (слайдер) ---------- */
.slider { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.slider__track { position: relative; min-height: 300px; }
.slide { display: none; }
.slide.is-active { display: block; }
.slide__text { font-size: 19px; margin-bottom: 32px; }
.slide__avatar {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px;
}
.slide__name { font-weight: 600; margin-bottom: 2px; }
.slide__from { font-size: 14px; color: #b3b3b3; }
.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}
.slider__nav--prev { left: -70px; }
.slider__nav--next { right: -70px; }
.slider__dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.slider__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.35); cursor: pointer;
}
.slider__dots button.is-active { background: #fff; }

/* ---------- Призыв к действию на фото ---------- */
.cta {
  position: relative; padding: 120px 0; background: #333 center/cover no-repeat;
  color: #fff; text-align: center;
}
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.cta > .container { position: relative; z-index: 2; }
.cta p { max-width: 620px; margin: 0 auto 34px; font-size: 19px; }

/* ---------- Два столбца: фото + текст ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__media > img { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; object-fit: cover; }
.split__body { max-width: 560px; }
.split--center .split__body { text-align: center; margin: 0 auto; }
.split__divider { width: 60px; height: 1px; background: var(--ink); margin: 26px auto; border: 0; }

/* ---------- Карточки-фото ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; padding: 34px; color: #fff; text-decoration: none;
  background: #555 center/cover no-repeat; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.62) 100%);
  transition: background .25s;
}
.card:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.75) 100%); }
.card > * { position: relative; z-index: 2; }
.card h3 { margin-bottom: 14px; font-weight: 400; }
.card ul { margin: 0 0 18px; padding-left: 20px; font-size: 16px; }
.card li { margin-bottom: 6px; }
.card__more { font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.6); align-self: flex-start; }

/* ---------- Аккордеон ---------- */
.accordion { max-width: 900px; margin: 0 auto; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%; padding: 26px 44px 26px 0; border: 0; background: none;
  font-size: 21px; font-weight: 300; text-align: left; color: var(--ink);
  cursor: pointer; position: relative;
}
.accordion__btn::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px;
  margin-top: -9px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 100% no-repeat;
  transition: transform .25s;
}
.accordion__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion__panel { display: none; padding: 0 40px 28px 0; color: var(--ink-soft); font-size: 17px; }
.accordion__panel.is-open { display: block; }

/* ---------- Карточки в рамке ---------- */
.feature { max-width: 900px; margin: 0 auto; display: grid; gap: 24px; }
.feature__item { padding: 34px 38px; border: 1px solid var(--line); }
.feature__item h3 { margin-bottom: 14px; font-size: 25px; }
.feature__item p { font-size: 17px; color: var(--ink-soft); }

/* ---------- Люди ---------- */
.people { display: grid; gap: 70px; max-width: 1050px; margin: 0 auto; }
.person { display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: center; }
.person__photo img { width: 100%; }
.person h3 { margin-bottom: 4px; font-weight: 600; font-size: 26px; }
.person__role { margin-bottom: 16px; color: var(--accent); font-size: 16px; }
.person p { font-size: 17px; color: var(--ink-soft); }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery__item {
  position: relative; display: block; min-height: 420px; text-decoration: none;
  background: #ddd center/cover no-repeat; overflow: hidden;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); transition: background .25s;
}
.gallery__item:hover::after { background: rgba(0,0,0,.42); }
.gallery__caption {
  position: absolute; left: 30px; bottom: 28px; z-index: 2;
  color: #fff; font-size: 24px; font-weight: 400; max-width: 80%;
}

/* ---------- Полоса-фото ---------- */
.photoband { min-height: 520px; background: #333 center/cover no-repeat; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 14px; max-width: 520px; }
.form--center { margin: 0 auto; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"],
.form input[type="file"], .form textarea {
  width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 0;
  font-family: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.form__check input { margin-top: 4px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__status { font-size: 16px; }
.form__status.is-ok { color: #1f9d55; }
.form__status.is-err { color: #d83a3a; }

/* Форма-подчёркивание (как в блоке отзывов) */
.form--line input[type="text"], .form--line input[type="tel"],
.form--line input[type="email"], .form--line textarea {
  border: 0; border-bottom: 1px solid #c9c9c9; padding: 10px 0; background: transparent;
}
.form--line input:focus, .form--line textarea:focus {
  outline: 0; border-bottom-color: var(--accent);
}
.form__label { font-size: 14px; color: var(--muted); margin-bottom: -6px; }

/* Половина фото + половина формы */
.review { display: grid; grid-template-columns: 1fr 1fr; background: #efefef; }
.review__photo { min-height: 620px; background: #ccc center/cover no-repeat; }
.review__body { padding: 80px clamp(24px, 5vw, 90px); align-self: center; max-width: 680px; }
.review__body h2 { margin-bottom: 10px; }
.review__body .form { max-width: none; margin-top: 34px; gap: 26px; }

/* ---------- Юридический текст ---------- */
.prose { max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.65; }
.prose h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 30px; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose h3, .prose h4 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 12px 14px; vertical-align: top; text-align: left; }
.prose thead td, .prose th { background: var(--bg-soft); font-weight: 600; }
.prose table p { margin: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- Контакты: карточки ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.contact-card img { width: 46px; height: 46px; margin: 0 auto 18px; }
.contact-card a, .contact-card p { font-size: 18px; text-decoration: none; }
.contact-card a:hover { color: var(--accent); }

.title-hero {
  position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; background: #333 center/cover no-repeat;
}
.title-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.title-hero > .container { position: relative; z-index: 2; }
.title-hero h1 { letter-spacing: .06em; }

.band { padding: 60px 0; text-align: center; }
.band p { font-size: 21px; margin-bottom: 26px; }

/* ---------- Анкета кредитоспособности ---------- */
.quiz { max-width: 720px; margin: 0 auto; background: #fff; padding: 40px; }
.quiz__progress { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.quiz__bar { flex: 1; height: 3px; background: var(--line); margin-left: 12px; position: relative; }
.quiz__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); transition: width .25s; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__title { font-size: 23px; font-weight: 600; margin-bottom: 12px; }
.quiz__desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border: 1px solid var(--line); cursor: pointer; font-size: 17px;
}
.quiz__opt:hover { border-color: var(--accent); }
.quiz__opt input { accent-color: var(--accent); }
.quiz__opt:has(input:checked) { border-color: var(--accent); background: #fff7f4; }
.quiz select, .quiz input[type="text"], .quiz input[type="tel"] {
  width: 100%; padding: 16px 18px; border: 1px solid var(--line);
  font-family: inherit; font-size: 16px; background: #fff; margin-bottom: 12px;
}
.quiz__range input[type="range"] { width: 100%; accent-color: var(--accent); }
.quiz__value { display: block; font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.quiz__hint { font-size: 15px; color: var(--muted); margin-top: 6px; }
.quiz__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.quiz__nav { display: flex; gap: 12px; margin-top: 34px; }
.quiz__nav .btn { padding: 14px 30px; font-size: 15px; }
.quiz__back[hidden], .quiz__next[hidden], .quiz__submit[hidden] { display: none; }

/* ---------- Логотипы банков ---------- */
.banks { display: flex; flex-wrap: wrap; gap: 34px 50px; align-items: center; justify-content: center; margin-top: 40px; }
.banks img { max-height: 46px; width: auto; }

/* ---------- Карточки-иконки ---------- */
.icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.icon-card { background: #fff; padding: 34px; text-align: center; }
.icon-card img { width: 48px; height: 48px; margin: 0 auto 18px; }
.icon-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.icon-card p { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }

/* ---------- Контакты на карте ---------- */
.map { position: relative; }
.map iframe { display: block; width: 100%; height: 600px; border: 0; filter: grayscale(1); }
.map__card {
  position: absolute; left: max(20px, calc(50% - 590px)); top: 50%; transform: translateY(-50%);
  width: min(460px, calc(100% - 40px)); background: var(--dark); color: #fff; padding: 44px 46px;
}
.map__card h2 { font-size: 20px; font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; color: var(--accent); }
.map__card p { margin: 0 0 24px; font-size: 17px; }
.map__card ul { list-style: none; margin: 0 0 24px; padding: 0; font-size: 17px; }
.map__card li { margin-bottom: 8px; }
.map__card a { color: #fff; text-decoration: none; }
.map__card a:hover { color: var(--accent); }
.map__social { display: flex; gap: 16px; }
.map__social a { display: inline-flex; width: 26px; height: 26px; }
.map__social svg { width: 100%; height: 100%; fill: #fff; transition: fill .2s; }
.map__social a:hover svg { fill: var(--accent); }

/* ---------- Низ ---------- */
.footer-legal { background: var(--dark); color: #fff; padding: 26px 0; }
.footer-legal .container {
  display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center;
  font-size: 14px;
}
.footer-legal a { color: #fff; text-decoration: none; opacity: .85; }
.footer-legal a:hover { opacity: 1; color: var(--accent); }

/* ---------- Плавающий блок связи ---------- */
.widget { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.widget__toggle {
  width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
}
.widget__list {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: none; flex-direction: column; gap: 10px; align-items: flex-end;
}
.widget.is-open .widget__list { display: flex; }
.widget__list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 40px;
  font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.widget__list a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 18px; bottom: 18px; z-index: 70; width: min(430px, calc(100vw - 36px));
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 26px rgba(0,0,0,.14);
  padding: 22px 24px; font-size: 14px; line-height: 1.5; display: none;
}
.cookie.is-visible { display: block; }
.cookie h4 { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.cookie p { margin-bottom: 14px; color: var(--ink-soft); }
.cookie__actions { display: flex; gap: 12px; align-items: center; }
.cookie__actions .btn { padding: 12px 22px; font-size: 14px; }
.cookie__decline {
  border: 0; background: none; font-size: 14px; color: var(--muted);
  cursor: pointer; text-decoration: underline;
}

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.55);
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto;
  background: #fff; padding: 46px 40px 40px;
}
.modal--wide .modal__box { width: min(980px, 100%); padding: 46px 24px 24px; }
.modal__close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px;
  border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal h2 { font-size: 30px; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  :root { --section-y: 70px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .people { gap: 46px; }
  .person { grid-template-columns: 1fr; gap: 24px; max-width: 560px; }
  .gallery { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .review { grid-template-columns: 1fr; }
  .review__photo { min-height: 300px; }
  .review__body { padding: 50px var(--pad) 60px; max-width: none; }
  .map iframe { height: 380px; }
  .map__card { position: static; transform: none; width: auto; padding: 34px var(--pad); }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .collage { padding-bottom: 0; }
  .collage__a { width: 100%; }
  .collage__b, .collage__c { display: none; }
  .slider__nav--prev { left: -6px; }
  .slider__nav--next { right: -6px; }
  .cta { padding: 80px 0; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  :root { --section-y: 56px; --pad: 18px; }
  .hero { min-height: 480px; }
  .hero__lead { font-size: 18px; }
  .btn { width: 100%; padding: 16px 24px; }
  .btn--auto { width: auto; }
  .card { min-height: 380px; padding: 26px; }
  .gallery__item { min-height: 300px; }
  .feature__item { padding: 26px 22px; }
  .modal__box { padding: 40px 22px 28px; }
  .section__head { margin-bottom: 40px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .step { grid-template-columns: 38px 1fr; gap: 16px; }
  .step__num { width: 38px; height: 38px; font-size: 14px; }
  .step::before { left: 19px; top: 38px; }
  .slider__nav { display: none; }
  .slide__text { font-size: 17px; }
}
