/* ── Variables ───────────────────────────────────────────── */
:root {
  --navy:      #1a1a1a;   /* заголовки — графит (тёмно-синий убран) */
  --navy-dark: #0e0e10;
  --gold:      #4f63e0;   /* золото убрано → василёк (светлые фоны) */
  --gold-h:    #4356d8;
  --accent:    #4f63e0;   /* василёк для светлых фонов (насыщеннее) */
  --accent-h:  #4356d8;
  --blue:      #2f5cff;   /* синий — ссылки, детали */
  --sea:       #6f8eed;   /* васильковый синий (по референсу) — hover заголовка */
  --coral:     #ff6b52;   /* коралл — точечные акценты */
  --text:      #1a1a1a;
  --muted:     #5c5c5c;
  --bg:        #ffffff;
  --bg-alt:    #f4f3f0;
  --border:    #ddd9d1;
  --max-w:     1100px;
  --serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:      'Inter', system-ui, -apple-system, sans-serif;
  --radius:    4px;
  --shadow:    0 2px 12px rgba(0, 0, 0, .08);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilities ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section       { padding: 4.5rem 0; }
.section--alt  { background: var(--bg-alt); }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 2rem; }
h3 { font-size: 1.1rem; margin-bottom: .5rem; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  border: 2px solid transparent;
  line-height: 1;
}
.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-h); border-color: var(--gold-h); }

/* Кнопка действия — васильковый синий, как заголовок на главной */
.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--accent:hover { background: #5b7fe8; border-color: #5b7fe8; }

/* Чёрная кнопка с инверсией (Контакты) */
.btn--dark {
  background: #0e0e10;
  color: #fff;
  border-color: #0e0e10;
}
.btn--dark:hover { background: #fff; color: #0e0e10; border-color: #0e0e10; }

/* Васильковая кнопка (Контакты — Отправить) — насыщеннее */
.btn--sea {
  background: var(--accent-h);
  color: #fff;
  border-color: var(--accent-h);
}
.btn--sea:hover { background: #3a4dcf; color: #fff; border-color: #3a4dcf; }

/* Outline-кнопка (для CTA-контактов) */
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.logo span { color: var(--gold); }

.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .2s;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .2s;
}
.site-nav a:hover,
.site-nav a.active           { color: #fff; }
.site-nav a:hover::after,
.site-nav a.active::after    { width: 100%; }

/* ── Mobile nav toggle ──────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero (index) — стиль Kirkland ──────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: #0e0e10;
  color: #fff;
  overflow: hidden;
  display: flex;
}

/* Картинка-текстура — фон на всю ширину (чёрный блок прикрывает справа) */
.hero__media {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 100%;
  overflow: hidden;
}
.hero__media-zoom {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transition: transform 4.5s ease-out;
  will-change: transform;
}
/* Наведение на заголовок -> картинка приближается; уход -> отъезжает */
.hero.is-zoom .hero__media-zoom { transform: scale(1.22); }

.hero__media-inner {
  position: absolute;
  inset: -16%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: heropan 15s linear infinite alternate;
}
@keyframes heropan {
  from { transform: translateX(0); }
  to   { transform: translateX(-9%); }
}

/* Тёмный блок справа (в закрытом виде — бирюза ~40%) */
.hero__dark {
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 60%;
  display: flex;
  flex-direction: column;
  padding: 0 5vw 0 12vw;
  background: #0e0e10;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 70px 50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 70px 50%);
  transition: width .85s cubic-bezier(0.76, 0, 0.12, 1), padding .85s cubic-bezier(0.76, 0, 0.12, 1),
              transform .85s cubic-bezier(0.76, 0, 0.12, 1);
}
.hero__dark .hero__content { margin-top: auto; }

/* Прозрачная шапка */
.k-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 2rem 0 0;
}
.k-logo {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
}
.k-menu-btn {
  position: absolute;
  top: 3rem;
  right: 5vw;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  z-index: 400;
  width: 3.2rem;
}
.k-menu-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.k-menu-lines span {
  display: block;
  width: 100%; height: 3px;
  background: var(--coral);
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
}
/* Наведение на бургер — линии белеют (крестик в открытом меню остаётся коралловым) */
.k-menu-btn:hover .k-menu-lines span { background: #fff; }
body.nav-open .k-menu-btn:hover .k-menu-lines span { background: var(--coral); }
/* Открытое меню — три линии превращаются в крестик размером с бургер */
body.nav-open .k-menu-lines { align-items: center; }
body.nav-open .k-menu-lines span:nth-child(1) { width: 28px; transform: translateY(8px) rotate(45deg); }
body.nav-open .k-menu-lines span:nth-child(2) { opacity: 0; }
body.nav-open .k-menu-lines span:nth-child(3) { width: 28px; transform: translateY(-8px) rotate(-45deg); }
.k-menu-text {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin-top: 5px;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  text-align: center;
  transition: color .3s ease;
}
/* При раскрытии бургер оказывается на светлой панели — держим «МЕНЮ» видимым тем же приглушённым тоном */
.hero.is-open .k-menu-text { color: rgba(0,0,0,.5); }

/* Контент hero */
.hero__content {
  margin: auto 0;
  padding: 0;
  max-width: 480px;
  transform: translateY(-42px);
  transition: transform .85s cubic-bezier(0.76, 0, 0.12, 1);
}
.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.1rem;
}
.hero__title-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  color: #fff;
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  transform: scaleX(0.92);
  transform-origin: left;
  transition: color .25s;
}
.hero__title-btn:hover { color: var(--sea); }

.hero__lead {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  max-width: 460px;
}
.hero__lead li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: .55rem;
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255,255,255,.62);
}
.hero__lead li:last-child { margin-bottom: 0; }
.hero__lead li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sea);
}
.hero.is-open .hero__lead { display: none; }

/* Логотип на светлой панели при раскрытии — как закрытый (тот же размер и место) */
.hero__expand-logo {
  position: absolute;
  top: 2rem;
  left: 52vw;
  z-index: 5;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: #1a1a1a;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease .2s;
}
.hero.is-open .hero__expand-logo { opacity: 1; pointer-events: auto; transition: opacity .45s ease .5s; }

/* Кнопка BACK (проявляется к концу раскрытия) */
.hero__back {
  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
  transition: transform .85s cubic-bezier(0.76, 0, 0.12, 1), opacity .3s ease;
  position: absolute;
  left: -7vw; top: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,.7);
  z-index: 5;
}
.hero__back { gap: 8px; }
.hero__back-icon {
  position: relative;
  isolation: isolate;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__back-icon::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(255,255,255,.5);
  transition: border-color .2s ease;
  z-index: 1;
}
.hero__back-fill {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  overflow: hidden;
  z-index: 0;
}
.hero__back-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform .55s cubic-bezier(0.76, 0, 0.12, 1);
}
.hero__back-chev {
  position: relative;
  z-index: 2;
  display: flex;
  color: rgba(255,255,255,.5);
  transition: color .06s ease .26s;
}
.hero__back-chev svg { width: 40px; height: 40px; }
.hero__back:hover .hero__back-icon::before { border-color: #fff; }
.hero__back:hover .hero__back-fill::before { transform: scaleY(1); }
.hero__back:hover .hero__back-chev { color: #0e0e10; }
.hero__back-text {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* Полоса услуг внизу во всю ширину (скрыта до раскрытия) */
.hero__services {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  grid-template-columns: repeat(4, 1fr);
  background: #0e0e10;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__services a {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: .95rem 1rem;
  font-size: clamp(.95rem, 1.15vw, 1.15rem);
  white-space: nowrap;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  border-left: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: color .06s ease .1s;
}
.hero__services a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .22s cubic-bezier(0.76, 0, 0.12, 1);
  z-index: -1;
}
.hero__services a:first-child { border-left: none; }
.hero__services a:hover { color: #0e0e10; }
.hero__services a:hover::before { transform: scaleY(1); }

.hero.is-open .hero__services { display: grid; }

/* Раскрывающаяся светлая панель */
.hero__expand {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 0;
  background: #f4f3f0;
  overflow: hidden;
  z-index: 3;
  transition: width .85s cubic-bezier(0.76, 0, 0.12, 1);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 70px 50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 70px 50%);
}
.hero__expand-inner {
  position: absolute;
  top: 0; bottom: 0;
  left: 10vw; right: 4vw;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transition: opacity .25s ease;
}
.hero__expand-inner p {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--text);
}
.hero__expand-list {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
}
.hero__expand-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: .55rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
}
.hero__expand-list li:last-child { margin-bottom: 0; }
.hero__expand-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Состояние: раскрыто — чёрный блок закрывает бирюзу, светлый выезжает справа */
.hero.is-open .hero__dark {
  width: 100%;
  padding-left: 8vw;
  transform: translateX(-80px);
}
.hero.is-open .hero__expand { width: 58%; }
.hero.is-open .hero__content { transform: translateX(80px) translateY(-42px); }
.hero.is-open .hero__expand-inner { opacity: 1; transition: opacity .35s ease .45s; }
.hero.is-open .hero__back { opacity: 1; pointer-events: auto; transform: translateX(80px); transition: transform .85s cubic-bezier(0.76, 0, 0.12, 1), opacity .3s ease .55s; }
.hero .k-logo { transition: opacity .45s ease .5s; }
.hero.is-open .k-logo { opacity: 0; transition: opacity .3s ease .2s; }
.hero.is-open .hero__title-btn { pointer-events: none; }
.hero.is-open .hero__services { display: grid; }
.hero.is-open .hero__content { max-width: 560px; }

/* Выпадающее меню — светлый фон с прожилками, пункты справа */
.k-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #e7e7e4 url('../images/menu-lines.svg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: translateY(0);
  visibility: visible;
  transition: transform .85s cubic-bezier(0.76, 0, 0.12, 1), visibility 0s;
}
/* Закрыто — задвинуто вниз за экран (не display:none, чтобы плавно ехало) */
.k-nav-overlay[hidden] {
  display: flex;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .85s cubic-bezier(0.76, 0, 0.12, 1), visibility 0s linear .85s;
}
.k-nav-close {
  display: none;
}
.k-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
  align-items: flex-end;
  padding-right: 6vw;
}
.k-nav a,
.k-nav a:visited {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 500;
  color: var(--accent);
  transition: color .2s;
}
.k-nav a:hover { color: #1a1a1a; }
body.nav-open .k-menu-text { color: #1a1a1a; }

/* Логотип в открытом меню — на том же месте, что и на главной */
.k-nav-logo {
  position: absolute;
  top: 2rem; left: 52vw;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: #1a1a1a;
}

/* ── Cards (index — направления) ───────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
  margin-top: .5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { stroke: var(--gold); }
.card h3 { color: var(--navy); }
.card p  { font-size: .92rem; color: var(--muted); margin-top: .4rem; }

/* ── Flagship (главное направление на index) ───────────── */
.flagship {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.flagship:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.flagship__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(197, 152, 46, .5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.flagship__icon svg { stroke: var(--gold); }
.flagship h3 { color: #fff; font-size: 1.35rem; margin-bottom: .6rem; }
.flagship p  { color: rgba(255, 255, 255, .8); font-size: .96rem; line-height: 1.6; }

/* ── Lead block (обращение к проблеме) ─────────────────── */
.lead-block { max-width: 820px; }
.lead-block p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}

/* ── Results (кейсы) ────────────────────────────────────── */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.result-card__row { margin-bottom: 1rem; }
.result-card__row:last-child { margin-bottom: 0; }
.result-card__label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .3rem;
}
.result-card__row p { font-size: .95rem; line-height: 1.6; color: var(--text); }
.result-card__row--win p { color: var(--navy); font-weight: 600; }

.results__more { text-align: center; margin-top: 2.5rem; }

/* Вводный текст под заголовком раздела (Результаты) */
.results-lead {
  max-width: 820px;
  margin-bottom: 2rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
}

/* Подзаголовок подгруппы (Постановления отменены / Штрафы снижены) */
.results-subhead {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.results + .results-subhead { margin-top: 2.5rem; }

.disclaimer {
  margin-top: 2rem;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 820px;
  font-style: italic;
}

/* ── Steps (как строится работа) ────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step__num {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}
.step__body h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: .35rem; }
.step__body p  { font-size: .92rem; color: var(--muted); }

/* ── Geo text ───────────────────────────────────────────── */
.geo-text { max-width: 820px; font-size: 1.05rem; line-height: 1.75; }

/* ── CTA buttons row ────────────────────────────────────── */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ── Courts block ───────────────────────────────────────── */
.courts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .5rem;
}
.courts__item {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: .8rem 1.25rem;
  font-size: .95rem;
  color: var(--navy);
  font-weight: 500;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

/* ── Hero with photo ────────────────────────────────────── */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
}
.hero__content { min-width: 0; }
.hero__name {
  font-size: .95rem;
  color: rgba(255, 255, 255, .65);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: .9rem 0 1.75rem;
}
.hero__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
  display: block;
}

/* ── About with photo ───────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.about-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.about-subheading {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 1.75rem 0 .55rem;
}
.contact-intro { max-width: 680px; margin-bottom: 2.5rem; }
.contact-intro p + p { margin-top: .6rem; }

/* ── Page hero (внутренние страницы) ───────────────────── */
.page-hero {
  background: var(--navy);
  padding: 3rem 0 2.75rem;
}
.page-hero h1 { color: #fff; }

/* ── Тёмная шапка-полоса внутренних страниц (стиль Kirkland) ── */
.page-head {
  position: relative;
  background:
    repeating-conic-gradient(from 172deg at 118% 42%,
      rgba(255,255,255,.05) 0deg 1.8deg,
      rgba(255,255,255,0) 1.8deg 6deg),
    radial-gradient(130% 160% at 94% 18%,
      rgba(255,255,255,.06), rgba(255,255,255,0) 50%),
    linear-gradient(242deg, #1b1b20 0%, #101013 50%, #080809 100%);
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  padding: 2.6rem 5vw 3rem;
}
.page-head__top {
  display: flex;
  align-items: center;
}
.page-head .k-menu-btn { top: 2.6rem; right: 5vw; }
.page-head__title-wrap {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.page-head__title {
  font-family: var(--serif);
  font-weight: 400;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
}
.page-head__rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.22);
}
.page-head__link,
.page-head__link:visited {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  color: var(--sea);
  white-space: nowrap;
  transition: color .2s;
}
.page-head__link:hover { color: #fff; }

/* ── Services page ──────────────────────────────────────── */
.svc-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2a2a2e;
  margin-bottom: 3.5rem;
}
.svc-catalog a {
  display: flex;
  align-items: center;
  padding: 1.15rem 1.35rem;
  background: #1a1a1a;
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  transition: background .2s, color .2s;
}
.svc-catalog a:hover { background: #fff; color: #0e0e10; }
.svc-catalog--5 { grid-template-columns: repeat(4, 1fr); }
.section[id] { scroll-margin-top: 24px; }
.service-block { scroll-margin-top: 90px; }

.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; padding-bottom: 0; }
.service-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: .35;
  line-height: 1;
  margin-bottom: .4rem;
}
.service-block h2 { font-size: 1.45rem; margin-bottom: .75rem; }
.service-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
}
.intro-text { margin-bottom: 1rem; }
.note-text  { margin-top: 2rem; color: var(--muted); }

/* ── Service detail list ────────────────────────────────── */
.service-list {
  margin-top: .9rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.service-list li {
  padding-left: 1.1rem;
  position: relative;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.55;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ── CTA strip (uslugi, index) ──────────────────────────── */
.cta-strip { text-align: center; }
.cta-strip p { color: var(--muted); margin-bottom: 1.5rem; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ── About page ─────────────────────────────────────────── */
.about-text {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-text p + p { margin-top: .25rem; }

/* ── Contacts layout ────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.75rem;
}
.contact-info__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--bg-alt);
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.contact-info__icon svg { stroke: var(--navy); }
.contact-info__label {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact-info__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-info__value a { transition: color .2s; }
.contact-info__value a:hover { color: var(--gold); }

/* ── Form ────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
}
.form-card h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.field input,
.field textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 45, 91, .1);
}
.field textarea { resize: vertical; min-height: 120px; }

.form__submit { width: 100%; padding: .9rem; font-size: 1rem; margin-top: .25rem; }
.form__submit:disabled { opacity: .55; cursor: default; }

.form-message {
  display: none;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
}
.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  display: block;
}
.form-message.error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
  display: block;
}

/* ── MAX button ─────────────────────────────────────────── */
.max-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: #0e0e10;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #0e0e10;
  transition: background .2s, color .2s, border-color .2s;
  margin-top: .5rem;
}
.max-button:hover {
  background: #0e0e10;
  color: #fff;
  border-color: #0e0e10;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .5);
  padding: 3rem 0 1.4rem;
  font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2rem;
}
.footer-logo {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 1.5rem;
  color: #fff;
}
/* Единый масштабируемый шеврон логотипа (подвал / шапка / раскрытие) */
.lchev { height: .853em; width: auto; margin: 0 .28em; position: relative; top: .074em; flex: 0 0 auto; }
.footer-logo, .page-head .k-logo, .hero__expand-logo { display: inline-flex; align-items: baseline; white-space: nowrap; }
.footer-tagline { margin-top: .5rem; color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .65); transition: color .2s; }
.site-footer a:hover { color: var(--sea); }
.footer-logo:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* Кнопка «Наверх» */
.to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 300;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top-icon {
  width: 44px; height: 44px;
  background: #1a1a1a;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.to-top:hover .to-top-icon { background: var(--accent); }
.to-top-text {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: .5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    display: block;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .site-nav a::after { display: none; }

  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { max-width: 260px; aspect-ratio: 3 / 4; margin: 1.75rem auto 0; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; }

  .flagship { flex-direction: column; gap: 1rem; padding: 1.75rem; }
  .results { grid-template-columns: 1fr; }

  /* Hero на мобильном: картинка сверху, текст снизу, без диагонали */
  .hero { flex-direction: column; min-height: 0; }
  .hero__media {
    position: relative;
    width: 100%;
    height: 200px;
    -webkit-clip-path: none;
    clip-path: none;
  }
  .hero__dark {
    width: 100%;
    margin-left: 0;
    padding: 1.75rem 1.5rem 2.25rem;
    -webkit-clip-path: none;
    clip-path: none;
  }
  .k-header { justify-content: flex-start; padding-top: 1.5rem; }
  .k-logo { font-size: 1.3rem; }
  .k-menu-btn { top: 1.5rem; }
  .page-head { min-height: 240px; padding: 1.6rem 1.5rem 2rem; }
  .page-head .k-menu-btn { top: 1.7rem; right: 1.5rem; }
  .page-head__title { white-space: normal; }
  .page-head__rule, .page-head__link { display: none; }

  /* Hero mobile: без раскрытия — контент показываем сразу */
  .hero__content { transform: none; margin: 1rem 0 0; max-width: none; padding: 0; }
  .hero__title-btn { pointer-events: none; }        /* раскрытие на мобильном отключено */
  .hero__expand {
    position: static;
    width: 100% !important;
    -webkit-clip-path: none;
    clip-path: none;
    background: #f4f3f0;
    overflow: visible;
    transition: none;
  }
  .hero__expand-inner {
    position: static;
    width: 100%;
    padding: 1.75rem 1.5rem;
    opacity: 1 !important;
    transition: none;
  }
  .hero__expand-inner p { font-size: 1rem; }
  .hero__expand-list li { font-size: 1rem; }
  .hero__services { display: none !important; }
  .hero__back { display: none !important; }

  /* Меню на мобильном: логотип влево, чтобы не наезжал на крестик */
  .k-nav-logo {
    top: 1.6rem;
    left: 1.5rem;
    font-size: 1.15rem;
    max-width: 55vw;
  }
  .k-nav { padding-right: 1.5rem; gap: 1.4rem; }
  .k-nav a, .k-nav a:visited { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .form-card { padding: 1.5rem 1.25rem; }
}

@media (max-width: 900px){ .svc-catalog{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .svc-catalog{ grid-template-columns: 1fr;} }

/* ── Юридический текст (политика) ───────────────────────── */
.legal { max-width: 820px; }
.legal__intro { font-size: 1.05rem; line-height: 1.7; color: var(--text); margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; color: var(--navy); }
.legal p { line-height: 1.7; color: var(--text); margin-bottom: .5rem; }
.legal a { color: var(--accent); }
.legal__back { margin-top: 2.5rem; }

/* ── Галочка согласия в форме ───────────────────────────── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .25rem 0 1.1rem;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input {
  margin-top: .18rem;
  flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-consent a { color: var(--accent); text-decoration: underline; }

/* ── Модалка результата отправки формы ──────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(14,14,16,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFade .2s ease;
}
.modal[hidden] { display: none; }
.modal__card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 440px;
  width: 100%;
  padding: 2.6rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  animation: modalPop .25s ease;
}
.modal__close {
  position: absolute;
  top: .7rem; right: .95rem;
  background: none; border: none;
  font-size: 1.7rem; line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.modal__close:hover { color: var(--text); }
.modal__icon {
  width: 66px; height: 66px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.modal.is-error .modal__icon { background: var(--coral); }
.modal__title {
  font-size: 1.6rem;
  margin-bottom: .5rem;
  color: var(--navy);
}
.modal__text {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.6rem;
}
.modal__ok { min-width: 160px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ── Плавность: общий мягкий переход и появления ─────────── */
a { transition: color .2s ease; }
button { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }

/* Плавное появление выпадающего меню */
.card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
  border-color: var(--accent);
}

/* Подвал на мобильном — в одну колонку */
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
  .to-top { bottom: 1rem; right: 1rem; }
  .to-top-icon { width: 40px; height: 40px; }
}
