/* ==========================================================================
   Агентство недвижимости «Кейт» — kateagency.ru
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-cyr.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-lat.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-cyr.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-lat.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #2e2d40;
  --navy-2: #444257;
  --navy-3: #5a586f;
  --gold: #cdab85;
  --gold-2: #b8925f;
  --gold-soft: #f4ebe0;
  --text: #45445a;
  --muted: #7b7a8c;
  --line: #e7e4ea;
  --bg: #ffffff;
  --bg-soft: #f5f6f9;
  --ok: #3f8f6b;
  --err: #c0483f;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(46, 45, 64, .10);
  --shadow-lg: 0 24px 60px rgba(46, 45, 64, .18);
  --header-h: 128px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ---------- Типографика ---------- */
.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
.h2--center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  box-shadow: 0 8px 22px rgba(46, 45, 64, .25), inset 0 0 0 1px rgba(205, 171, 133, .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46, 45, 64, .32), inset 0 0 0 1px var(--gold); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn--sm { min-height: 42px; padding: 10px 22px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 16px 38px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); }
.btn--gold:hover { color: var(--navy); }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--navy-2);
}
.link-more .icon { transition: transform .25s var(--ease); color: var(--gold-2); }
.link-more:hover .icon { transform: translateX(4px); }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer;
  display: inline-grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.round-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.round-btn:disabled { opacity: .4; cursor: default; }
.round-btn--prev .icon { transform: rotate(180deg); }

/* ---------- Мессенджеры и контакты ---------- */
.messengers { display: flex; gap: 10px; }
.messenger {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-2); color: #fff;
  transition: background .2s, transform .25s var(--ease);
}
.messenger .icon { width: 20px; height: 20px; }
.messenger .icon--max { width: 16px; height: 16px; }
.messenger:hover { background: var(--gold-2); color: #fff; transform: translateY(-3px); }

.contact-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.contact-link .icon { color: var(--gold-2); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(46, 45, 64, .10); }
.header__bar { display: flex; align-items: center; gap: 28px; min-height: 76px; transition: min-height .3s; }
.header.is-scrolled .header__bar { min-height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo img { border-radius: 8px; width: 48px; height: auto; }
.logo__text { font-size: 13px; font-weight: 500; line-height: 1.25; letter-spacing: .02em; }
.logo:hover { color: var(--navy); }
.header__contacts { display: flex; gap: 26px; margin-left: auto; }
.header__cta { flex: none; }

.nav { background: var(--navy); }
.nav__list { display: flex; justify-content: space-between; }
.nav__list a {
  position: relative; display: block; padding: 15px 4px;
  color: #e9e7f0; font-size: 14px; font-weight: 500;
}
.nav__list a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 10px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--gold); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

.burger {
  display: none; width: 44px; height: 44px; margin-left: 8px; padding: 10px;
  border: 0; background: transparent; cursor: pointer;
}
.burger span { display: block; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.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); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(520px, 41vw, 700px);
  display: flex; align-items: center;
  background: #e8dfc4;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
  transform: scale(1.08); animation: heroZoom 2.4s var(--ease) forwards;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(250, 245, 228, .92) 0%, rgba(250, 245, 228, .6) 38%, rgba(250, 245, 228, 0) 60%);
}
.hero__inner { padding-top: 64px; padding-bottom: 96px; }
.hero__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.015em;
  color: var(--navy); max-width: 520px;
}
.hero__title span { color: var(--gold-2); white-space: nowrap; }
.hero__lead { margin: 22px 0 26px; max-width: 420px; font-size: clamp(17px, 1.6vw, 20px); color: var(--navy-2); }
.hero__points { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 38px; }
.hero__points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.hero__points .icon { color: var(--gold-2); width: 22px; height: 22px; }

.hero__title, .hero__lead, .hero__points li, .hero .btn { opacity: 0; animation: fadeUp .9s var(--ease) forwards; }
.hero__lead { animation-delay: .15s; }
.hero__points li:nth-child(1) { animation-delay: .3s; }
.hero__points li:nth-child(2) { animation-delay: .4s; }
.hero__points li:nth-child(3) { animation-delay: .5s; }
.hero .btn { animation-delay: .65s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { to { transform: scale(1); } }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--pattern { background: var(--bg-soft) url("../img/pattern.webp") center / cover no-repeat; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Чек-лист */
.checklist { display: grid; gap: 14px; margin-bottom: 32px; }
.checklist li { position: relative; padding-left: 34px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8925f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; }

/* ---------- О юристе ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__photo { position: relative; }
.about__photo picture { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 44% 50%; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.03); }
.about__photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 1px solid var(--gold); border-radius: var(--radius);
}
.about__badge {
  position: absolute; left: -24px; bottom: 40px;
  background: var(--navy); color: #fff; border-radius: var(--radius-sm);
  padding: 16px 22px; box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.about__badge b { font-family: var(--font-serif); font-size: 30px; line-height: 1; color: var(--gold); }
.about__badge span { font-size: 13px; opacity: .85; max-width: 150px; line-height: 1.3; }
.about__lead { font-size: 18px; color: var(--navy-2); margin-bottom: 24px; }

/* ---------- Услуги ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 16px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .9s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card__img { overflow: hidden; aspect-ratio: 380 / 260; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__title { font-size: 18px; font-weight: 600; line-height: 1.35; padding: 24px 26px 12px; flex: 1; }
.service-card .link-more { margin: 0 26px 26px; }
.services__grid .service-card:nth-child(2) { transition-delay: .1s; }
.services__grid .service-card:nth-child(3) { transition-delay: .2s; }
.services__grid .service-card.is-visible { transition-delay: 0s; }

/* ---------- Детали услуг ---------- */
.detail__head { max-width: 760px; margin-bottom: 36px; }
.detail__cta { margin-top: 8px; }
.detail__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 56px; align-items: start; }
.detail__grid .detail__media { grid-row: span 2; position: sticky; top: calc(var(--header-h) + 24px); }
.detail__grid .detail__media img { aspect-ratio: 4 / 3.4; }
.detail__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover; }
.detail__media--wide { margin-bottom: 40px; }
.detail__media--wide img { aspect-ratio: 21 / 8; }
.detail__cta--inline { grid-column: 2; }

/* ---------- Защитим интересы ---------- */
.protect__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.protect__images { position: relative; min-height: 480px; }
.protect__img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover; }
.protect__img--1 { left: 0; top: 0; width: 58%; aspect-ratio: 412 / 467; }
.protect__img--2 { right: 0; bottom: 0; width: 56%; aspect-ratio: 412 / 385; border: 8px solid var(--bg-soft); }
.protect__text p { font-size: 17px; }
.protect__text .btn { margin-top: 12px; }

/* ---------- Отзывы ---------- */
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.reviews__head .h2 { margin-bottom: 0; }
.reviews__nav { display: flex; gap: 10px; }
.reviews__grid { display: grid; grid-template-columns: 3fr 1fr; gap: 28px; align-items: stretch; }
.carousel { position: relative; min-width: 0; display: flex; flex-direction: column; --per-view: 3; --gap: 28px; }
.carousel__viewport { overflow: hidden; flex: 1; margin: -12px; padding: 12px; }
.carousel__track { display: flex; gap: var(--gap); height: 100%; transition: transform .6s var(--ease); }
.review-card {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: 0 8px 24px rgba(46, 45, 64, .06);
  position: relative;
}
.review-card::before {
  content: "“"; position: absolute; right: 22px; top: 6px;
  font-family: var(--font-serif); font-size: 84px; line-height: 1; color: var(--gold-soft);
}
.review-card__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.review-card__stars .icon { width: 18px; height: 18px; }
.review-card__stars .is-off { color: var(--line); }
.review-card__text {
  flex: 1; font-size: 15px; line-height: 1.65; margin-bottom: 18px; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 14; -webkit-box-orient: vertical; overflow: hidden;
}
.review-card.is-expanded .review-card__text { -webkit-line-clamp: unset; display: block; }
.review-card__more {
  align-self: flex-start; margin: -10px 0 16px; padding: 0; border: 0; background: none;
  color: var(--gold-2); font-size: 14px; font-weight: 600; cursor: pointer;
}
.review-card__footer { border-top: 1px solid var(--line); padding-top: 14px; }
.review-card__name { font-weight: 600; color: var(--navy); }
.review-card__meta { font-size: 13px; color: var(--muted); }

.carousel__empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 360px; padding: 40px; border: 1px dashed #d8cbb8; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--gold-soft));
  color: var(--muted);
}
.carousel__empty p { max-width: 420px; }
.carousel__empty-icon { width: 54px; height: 54px; color: var(--gold); margin-bottom: 16px; }
.carousel__empty-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1.2; }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; min-height: 10px; }
.carousel__dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.carousel__dot[aria-selected="true"] { width: 28px; background: var(--gold); }

.review-form-card {
  background: var(--navy); color: #e9e7f0; border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-lg);
}
.review-form-card__title { font-family: var(--font-serif); font-size: 28px; color: #fff; margin-bottom: 14px; }
.review-form-card .field { margin-bottom: 10px; }
.review-form-card .field__input { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.review-form-card textarea.field__input { min-height: 84px; }
.review-form-card .rating-input { margin-bottom: 8px; }
.review-form-card .field__label { color: #d6d3e0; }
.review-form-card .field__input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.review-form-card .field__input:focus { border-color: var(--gold); background: rgba(255, 255, 255, .1); }
.review-form-card select.field__input option { color: var(--navy); }
.review-form-card .checkbox, .review-form-card .form__note, .review-form-card .form__captcha-note { color: #b9b6c7; }
.review-form-card .checkbox a, .review-form-card .form__captcha-note a { color: var(--gold); }
.review-form-card .btn { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); }
.review-form-card .form__status.is-ok { color: #8fd3b2; }
.review-form-card .form__status.is-err { color: #ffb0a8; }

.rating-input { border: 0; padding: 0; margin: 0 0 14px; }
.rating-input__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input__stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input__stars label { cursor: pointer; color: rgba(255, 255, 255, .25); transition: color .15s, transform .15s; }
.rating-input__stars label .icon { width: 28px; height: 28px; }
.rating-input__stars label:hover { transform: scale(1.12); }
.rating-input__stars input:checked ~ label,
.rating-input__stars label:hover, .rating-input__stars label:hover ~ label { color: var(--gold); }
.rating-input__stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 0; }
.field { margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy-2); }
.field__opt { font-weight: 400; opacity: .7; }
.field__input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.field__input { resize: vertical; min-height: 96px; }
.field__input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(205, 171, 133, .25); }
.field__input.is-invalid { border-color: var(--err); }
.field__input::placeholder { color: #a9a7b6; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); margin: 2px 0 16px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--gold-2); }
.checkbox a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.checkbox.is-invalid span { color: var(--err); }
.review-form-card .checkbox.is-invalid span { color: #ffb0a8; }
.form__status { margin: 12px 0 0; font-size: 14px; font-weight: 500; min-height: 0; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.form__note { font-size: 12px; margin: 10px 0 0; color: var(--muted); }
.form__captcha-note { font-size: 11px; line-height: 1.4; margin: 10px 0 0; color: var(--muted); }
.form__captcha-note a { text-decoration: underline; }
.form.is-done > :not(.form__success) { display: none; }
.form__success { text-align: center; padding: 24px 0 8px; }
.form__success-icon { width: 56px; height: 56px; color: var(--gold-2); margin: 0 auto 14px; }
.form__success h3 { font-family: var(--font-serif); font-size: 28px; margin-bottom: 8px; }
.review-form-card .form__success h3 { color: #fff; }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.contacts__form { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.contacts__lead { font-size: 15px; color: var(--muted); margin: -12px 0 24px; }
.contacts__side { position: relative; }
.contacts__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.contacts__card {
  position: absolute; left: -32px; bottom: -32px;
  background: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg);
  display: grid; gap: 10px;
}
.contacts__card .contact-link { font-size: 16px; font-weight: 600; color: var(--navy); }
.contacts__card .messengers { margin-top: 6px; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: #c9c6d6; padding: 64px 0 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; padding-bottom: 48px; }
.logo--light, .logo--light:hover { color: #fff; }
.footer__legal { margin-top: 18px; line-height: 1.7; color: #a6a3b6; font-size: 13px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 40px; align-content: start; }
.footer__nav a:hover { color: var(--gold); }
.footer__contacts { display: grid; gap: 14px; justify-items: start; align-content: start; }
.footer__contacts .contact-link { color: #fff; }
.footer__contacts .contact-link:hover { color: var(--gold); }
.footer .messenger { background: rgba(255, 255, 255, .08); }
.footer .messenger:hover { background: var(--gold-2); }
.footer .btn { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: #8f8ca2; }

/* ---------- Модальное окно ---------- */
.modal {
  width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--text);
  box-shadow: 0 40px 100px rgba(20, 19, 30, .45); overflow: auto;
}
.modal::backdrop { background: rgba(30, 29, 44, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .4s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .3s ease; }
.modal.is-closing { animation: modalOut .25s ease forwards; }
.modal.is-closing::backdrop { animation: fadeOut .25s ease forwards; }
.modal__box { position: relative; padding: 40px 36px 32px; border-top: 4px solid var(--gold); }
.modal__close {
  position: absolute; right: 14px; top: 14px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--navy); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, transform .3s var(--ease);
}
.modal__close:hover { background: var(--gold-soft); transform: rotate(90deg); }
.modal__title { font-family: var(--font-serif); font-size: 34px; line-height: 1.1; margin-bottom: 8px; padding-right: 32px; }
.modal__lead { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
body.modal-open { overflow: hidden; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px;
  display: flex; gap: 16px; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.45; animation: fadeUp .5s var(--ease);
}
.cookie p { margin: 0; }
.cookie a { color: var(--gold-2); text-decoration: underline; }

/* ---------- Страница политики ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-family: var(--font-serif); font-size: clamp(34px, 4.5vw, 54px); line-height: 1.1; }
.breadcrumbs { font-size: 13px; color: #a6a3b6; margin-bottom: 12px; }
.breadcrumbs a:hover { color: var(--gold); }
.legal { max-width: 860px; }
.legal h2 { font-family: var(--font); font-size: 20px; font-weight: 700; margin: 36px 0 14px; }
.legal p { margin-bottom: .8em; }
.legal ul { margin: 0 0 1em; }
.legal li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal a { color: var(--gold-2); text-decoration: underline; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
  .hero::before { background: linear-gradient(90deg, rgba(250, 245, 228, .95) 0%, rgba(250, 245, 228, .82) 42%, rgba(250, 245, 228, 0) 72%); }
  .hero__lead { max-width: 360px; }
  .header__contacts { display: none; }
  .header__bar .messengers { margin-left: auto; }
  .reviews__grid { grid-template-columns: 1fr; }
  .carousel { --per-view: 2; }
  .review-form-card { max-width: 640px; width: 100%; justify-self: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
  :root { --header-h: 68px; }
  .header { backdrop-filter: none; background: #fff; }
  .header__bar { min-height: 68px; gap: 14px; }
  .header__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 68px 0 0 0; z-index: 49;
    background: var(--navy); overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; padding-top: 16px; }
  .nav__list a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__list a::after { display: none; }
  .nav__mobile-extra { display: grid; gap: 16px; padding: 28px 24px 40px; }
  .nav__mobile-extra .contact-link { color: #fff; font-size: 16px; }
  .nav__mobile-extra .btn { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); }

  .about__grid, .protect__grid, .contacts__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 560px; margin: 0 auto 24px; width: 100%; }
  .about__badge { left: 16px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .detail__grid { grid-template-columns: 1fr; }
  .detail__grid .detail__media { grid-row: auto; position: static; order: -1; }
  .detail__cta--inline { grid-column: auto; }
  .detail__grid .detail__media img { aspect-ratio: 16 / 10; }
  .protect__images { min-height: 0; aspect-ratio: 1 / .9; max-width: 560px; width: 100%; margin: 0 auto; }
  .contacts__side { max-width: 640px; margin: 0 auto 32px; width: 100%; }
  .contacts__card { left: 16px; bottom: -24px; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .logo__text { font-size: 12px; }
  .messengers { gap: 8px; }
  .messenger { width: 36px; height: 36px; }
  .messenger .icon { width: 18px; height: 18px; }
  .messenger .icon--max { width: 15px; height: 15px; }
  .hero { display: block; min-height: 0; background: #1d2130; }
  .hero::before { display: none; }
  .hero__bg { position: relative; inset: auto; z-index: 0; }
  .hero__bg img { height: auto; aspect-ratio: 900 / 704; object-position: 50% 0; }
  .hero__inner { position: relative; z-index: 1; margin-top: -16px; padding-top: 0; padding-bottom: 48px; }
  .about__photo::before { inset: 14px -8px -14px 14px; }
  .about__badge { left: auto; right: 12px; bottom: -18px; padding: 12px 16px; }
  .about__badge b { font-size: 24px; }
  .hero__title { color: #fff; }
  .hero__title span { color: var(--gold); }
  .hero__lead { color: #d9d6e3; }
  .hero__points li { color: #fff; }
  .hero__points .icon { color: var(--gold); }
  .hero .btn { width: 100%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); }
  .services__grid { grid-template-columns: 1fr; }
  .checklist--cols { grid-template-columns: 1fr; }
  .detail__media--wide img { aspect-ratio: 16 / 10; }
  .carousel { --per-view: 1; --gap: 16px; }
  .carousel__track { align-items: flex-start; }
  .reviews__head { align-items: center; }
  .round-btn { width: 42px; height: 42px; }
  .contacts__card { position: relative; left: auto; bottom: auto; z-index: 1; margin: -40px 16px 0; }
  .contacts__card .contact-link { white-space: normal; word-break: break-word; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .modal__box { padding: 36px 20px 24px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
  .logo__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title, .hero__lead, .hero__points li, .hero .btn { opacity: 1; }
}

/* ---------- Политика: нумерация и приложения ---------- */
.page-hero__meta { margin: 14px 0 0; color: var(--gold); font-size: 14px; letter-spacing: .02em; }
.legal { text-align: justify; hyphens: auto; }
.legal h2 { text-align: left; }
.legal h3 { font-family: var(--font); font-size: 16px; font-weight: 700; margin: 20px 0 10px; }
.legal .pnum { font-weight: 700; color: var(--navy); margin-right: 4px; }
.legal .term { margin: 18px 0 4px; }
.legal .term strong { color: var(--navy); }
.legal li.li-num { padding-left: 0; }
.legal li.li-num::before { display: none; }
.legal li.li-num span { font-weight: 600; color: var(--navy); margin-right: 4px; }
.appendix {
  margin-top: 56px; padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 8px 24px rgba(46, 45, 64, .05);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.appendix__label { text-align: right; font-size: 13px; color: var(--muted); font-style: italic; }
.legal .appendix__title {
  text-align: center; font-family: var(--font-serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2;
  margin: 18px auto 24px; max-width: 640px;
}
.legal .blank { text-align: left; color: var(--muted); overflow-wrap: anywhere; }
.legal .center { text-align: center; }
.legal .right { text-align: right; }
@media print {
  .header, .footer, .cookie, .page-hero .breadcrumbs, .modal { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero h1 { color: #000; }
  .appendix { break-before: page; box-shadow: none; border: 0; padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
