@charset "UTF-8";
/* ==================================================================
   Адвокатское бюро «Юг-Право» — Ставрополь
   1. Переменные, сброс, типографика, контейнер, кнопки, формы
   ================================================================== */

:root {
  --bg:          #DEE0E4;
  --surface:     #FFFFFF;
  --surface-alt: #FAFAFA;
  --teal:        #006F8F;
  --teal-dark:   #005872;
  --teal-press:  #004A61;
  --teal-light:  #008FB3;
  --ink:         #1B1C1E;
  --muted:       #6E7178;
  --dark:        #333440;
  --dark-line:   #43444F;
  --dark-text:   #B9BCC4;
  --dark-mute:   #9A9DA6;
  --line:        #C7CAD1;
  --radius:      0;

  --container:   1140px;
  --gutter:      24px;
  --gap:         30px;
  --sec-pad:     88px;

  --font: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
}

h1 { font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: 30px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .18s ease;
}
a:hover { color: var(--teal-dark); }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

strong { font-weight: 700; }
em { font-style: italic; }

button { font: inherit; color: inherit; }

figure { margin: 0; }
dl, dd { margin: 0; }

time, .num { font-variant-numeric: tabular-nums; }

::selection { background: var(--teal); color: #fff; }

/* ---------- Служебное ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ic { flex: 0 0 auto; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.accent { color: var(--teal); font-weight: 500; }
.lead { font-size: 18px; line-height: 1.55; }

/* ---------- Полосы-секции ---------- */

.section {
  padding: var(--sec-pad) 0;
}
.section--grey  { background: var(--bg); }
.section--white { background: var(--surface); }

.section__lead {
  max-width: 760px;
  margin: -14px 0 36px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.section__head { margin-bottom: 36px; }
.section__head .section__lead { margin-bottom: 0; }

.section__actions,
.section__foot {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.section__foot { justify-content: center; }

/* Заголовок секции: линия ровно по ширине текста */
.sec-title,
.section__title {
  margin: 0 0 36px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}
.sec-title > span,
.section__title > span {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.sec-title--on-teal { color: #fff; }
.sec-title--on-teal > span { border-bottom: 2px dashed rgba(255, 255, 255, .7); }

/* Заголовок с вертикальной чертой слева */
.bar-title {
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.h-sub {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 600;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn .ic { transition: transform .18s ease; }
.btn:hover .ic { transform: translateX(4px); }

.btn--primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn--primary:active { background: var(--teal-press); border-color: var(--teal-press); }

.btn--outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--outline:active { background: var(--teal-dark); border-color: var(--teal-dark); }

.btn--white { background: #fff; color: var(--teal); border-color: #fff; }
.btn--white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn--ghost-light:hover { background: #fff; color: var(--teal); border-color: #fff; }

.btn--sm { min-height: 42px; padding: 0 20px; }
.btn--block { display: flex; width: 100%; }

/* Ссылка-действие «Читать далее →» */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.link-more .ic { transition: transform .18s ease; }
.link-more:hover { text-decoration: underline; }
.link-more:hover .ic { transform: translateX(4px); }
.link-more--light { color: #fff; }
.link-more--light:hover { color: #fff; }

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  text-decoration: none;
}
.link-back:hover { text-decoration: underline; }
.link-back .ic { transition: transform .18s ease; }
.link-back:hover .ic { transform: translateX(-4px); }

/* ---------- Чипы ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.chips li { margin: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.chip:hover { background: rgba(0, 111, 143, .1); color: var(--teal-dark); }
.chip.is-active { background: var(--teal); color: #fff; }

/* ---------- Формы ---------- */

.form { max-width: 100%; }
.form--wide { max-width: 900px; }

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px var(--gap);
  margin-bottom: 24px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form__grid .field { margin-bottom: 0; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .18s ease;
}
.field__input:hover { border-color: var(--muted); }
.field__input:focus { outline: none; border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.field__input--area { min-height: 128px; resize: vertical; }
.field__input::placeholder { color: #9C9FA6; }

.field__input.is-invalid { border-color: #B02121; box-shadow: inset 0 0 0 1px #B02121; }

.field__error { color: #B02121; font-size: 13px; }

.field--check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px 12px;
  align-items: start;
}
.field__check {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--teal);
}
.field--check label { font-size: 14px; line-height: 1.5; color: var(--ink); }
.field--check .field__error { grid-column: 2; }

.form__status {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--teal);
  min-height: 1.4em;
}
.form__status.is-error { color: #B02121; }

/* ---------- Списки с галочками и линейками ---------- */

.check-list,
.rule-list,
.arrow-links,
.hours,
.org__list,
.price-rows,
.sitemap-list,
.footer-contacts,
.aside-list,
.crumbs__list,
.main-nav__list,
.mobile-nav__list,
.tiles,
.adv-grid,
.post-grid,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li,
.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.check-list li .ic,
.rule-list li .ic { color: var(--teal); margin-top: 4px; }

.check-list--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
}

.num-list {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}
.num-list li { padding-left: 4px; margin-bottom: .5em; }

/* ---------- Таблица реквизитов ---------- */

.facts { margin: 0 0 24px; }
.facts__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts__row dt { font-size: 13px; color: var(--muted); }
.facts__row dd { margin: 0; font-size: 16px; font-weight: 500; }
.facts--wide .facts__row { grid-template-columns: 240px 1fr; gap: 20px; align-items: baseline; }
.facts--wide .facts__row dt { padding-top: 2px; }

/* ==================================================================
   2. Шапка, навигация, бургер, мобильное меню, футер
   ================================================================== */

.site-header {
  position: relative;
  z-index: 60;
  background: var(--bg);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

/* Логотип: не сжимается и не наезжает на меню */
.logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.logo__mark { display: flex; flex: 0 0 auto; }
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}
.logo__line1 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.logo__line2 { font-size: 16px; font-weight: 600; }

.crest .crest-shield { fill: none; stroke: var(--ink); stroke-width: 4; }
.crest .crest-wing   { fill: var(--teal); }
.crest .crest-line   { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: square; }
.crest .crest-dot    { fill: var(--ink); }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.header-mail { font-size: 14px; color: var(--teal); white-space: nowrap; }

.header-sep {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .ic { color: var(--teal); }
.header-phone:hover { color: var(--teal); }

/* ---------- Бургер ---------- */

.burger {
  display: none;
  align-items: stretch;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.burger__box {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 0 11px;
}
.burger__box span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Ряд 2: основное меню ---------- */

.header-bottom { border-top: 1px solid var(--line); }

.main-nav { display: flex; }

.main-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 56px;
}

.main-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  height: 56px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.main-nav__link:hover { color: var(--ink); border-bottom-color: var(--line); }
.main-nav__link.is-active { border-bottom-color: var(--teal); color: var(--teal); font-weight: 500; }

.main-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  cursor: pointer;
}
.main-nav__toggle .ic { transition: transform .18s ease; }
.main-nav__toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }

/* Выпадающее меню направлений */
.drop {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 70;
  width: 640px;
  max-width: calc(100vw - 48px);
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.drop[hidden] { display: none; }
.drop__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drop__list li { margin: 0; }
.drop__list a {
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.drop__list a:hover { background: var(--surface-alt); border-left-color: var(--teal); color: var(--teal); }

/* Компактная закреплённая шапка */
.header-compact { display: none; }

.site-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .2s ease;
}
.site-header.is-stuck .header-top__inner { min-height: 64px; }
.site-header.is-stuck .header-mail,
.site-header.is-stuck .header-sep { display: none; }
.site-header.is-stuck .logo__mark .crest { width: 38px; height: 38px; }

body.has-stuck-header { padding-top: 140px; }

/* ---------- Мобильное меню ---------- */

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(27, 28, 30, .5);
}
.nav-backdrop[hidden] { display: none; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(380px, 92vw);
  background: #fff;
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.mobile-nav__close:hover { background: var(--surface-alt); color: var(--teal); }

.mobile-nav__body { flex: 1 1 auto; padding: 8px 0; }
.mobile-nav__item { margin: 0; border-bottom: 1px solid var(--line); }

.mobile-nav__row { display: flex; align-items: stretch; }

.mobile-nav__link {
  flex: 1 1 auto;
  display: block;
  padding: 15px 20px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}
.mobile-nav__link:hover { color: var(--teal); }
.mobile-nav__link.is-active { color: var(--teal); font-weight: 600; }

.mobile-nav__expand {
  flex: 0 0 auto;
  width: 52px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--teal);
  cursor: pointer;
}
.mobile-nav__expand .ic { margin: 0 auto; transition: transform .18s ease; }
.mobile-nav__expand[aria-expanded="true"] .ic { transform: rotate(180deg); }

.mobile-nav__sub {
  margin: 0;
  padding: 6px 0 12px;
  list-style: none;
  background: var(--surface-alt);
}
.mobile-nav__sub[hidden] { display: none; }
.mobile-nav__sub li { margin: 0; }
.mobile-nav__sub a {
  display: block;
  padding: 9px 20px 9px 32px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.mobile-nav__sub a:hover { color: var(--teal); }

.mobile-nav__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav__phone,
.mobile-nav__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav__phone { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mobile-nav__mail { font-size: 15px; }
.mobile-nav__phone .ic,
.mobile-nav__mail .ic { color: var(--teal); }

/* ==================================================================
   Футер
   ================================================================== */

.site-footer {
  background: var(--dark);
  color: var(--dark-text);
  padding: 56px 0 28px;
  font-size: 14px;
}
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-top { text-align: center; }
.footer-crest { display: inline-flex; }
.footer-crest .crest .crest-shield { stroke: #fff; }
.footer-crest .crest .crest-wing { fill: var(--teal-light); }
.footer-crest .crest .crest-line { stroke: var(--teal-light); }
.footer-crest .crest .crest-dot { fill: #fff; }

.footer-name {
  margin: 14px 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.footer-sub { margin: 0; color: var(--dark-mute); font-size: 14px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.footer-col__title { margin: 0 0 14px; font-size: 16px; }

.footer-col__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: default;
}
.footer-col__chev { display: none; color: var(--teal-light); }

.footer-col__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col__body li { margin: 0 0 9px; }

.footer-col--wide .footer-col__body ul { columns: 1; }

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
}
.footer-contacts .ic { color: var(--teal-light); margin-top: 3px; }

.footer-social__label { margin: 18px 0 10px; color: var(--dark-mute); font-size: 13px; }

.footer-social { display: flex; gap: 10px; }
.footer-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #565866;
  color: var(--teal-light);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.footer-social__btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
  color: #7E818A;
  font-size: 13px;
}
.footer-bottom a { color: #7E818A; }

/* ==================================================================
   3. Секции страниц
   ================================================================== */

/* ---------- Водяной знак-герб ---------- */

.watermark {
  position: absolute;
  top: 50%;
  right: -180px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .06;
  z-index: 0;
  display: block;
  line-height: 0;
}
.watermark .crest { width: 900px; height: 900px; max-width: none; }
.watermark--hero { right: -220px; }
.watermark--hero .crest { width: 860px; height: 860px; }
.watermark--soft { opacity: .05; right: -180px; }
.watermark--soft .crest { width: 520px; height: 520px; }

/* ---------- Первый экран главной ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 56px 0 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: var(--gap);
  align-items: end;
}

.hero__content { padding-bottom: 64px; }

.hero__title {
  margin: 0 0 24px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero__name { color: var(--teal); }

.hero__list {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  max-width: 540px;
}
.hero__list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
  font-size: 17px;
}
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 2px;
  background: var(--teal);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.hero__phone .ic { color: var(--teal); }
.hero__phone:hover { color: var(--teal); }

.hero__figure { align-self: end; }
.hero__figure img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Полоса фактов ---------- */

.creds {
  background: var(--bg);
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.creds__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.cred { display: flex; flex-direction: column; gap: 6px; }
.cred__value {
  color: var(--teal);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cred__label { font-size: 14px; line-height: 1.45; }

/* ---------- О нас (главная) ---------- */

.about-lawyer__grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 40px var(--gap);
}
.about-lawyer__text .btn { margin-top: 12px; }

/* ---------- Плитки направлений ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tiles > * {
  margin: 0;
  display: flex;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 24px;
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, padding-left .18s ease;
}
.tile:hover { background: #fff; border-left-color: var(--teal); padding-left: 27px; }
.tile__icon { color: var(--teal); }
.tile__title { color: var(--teal); font-size: 17px; font-weight: 600; line-height: 1.35; }
.tile__text { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Бирюзовая полноширинная полоса ---------- */

.band {
  background: var(--teal);
  color: #fff;
  padding: var(--sec-pad) 0;
}
.band a { color: #fff; }
.band__lead {
  max-width: 760px;
  margin: -18px 0 36px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

.band-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
}
.band-tiles--text { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.band-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: border-color .18s ease, padding-left .18s ease;
}
.band-tile:hover { border-left-color: var(--teal-light); padding-left: 23px; color: var(--ink); }
.band-tile__icon { color: var(--teal); }
.band-tile__title { color: var(--teal); font-size: 17px; font-weight: 600; line-height: 1.35; }
.band-tile__text { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Преимущества ---------- */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.adv {
  position: relative;
  margin: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 24px 28px;
  background: var(--surface-alt);
  overflow: hidden;
}
.adv__mark {
  position: absolute;
  right: -12px;
  bottom: -18px;
  color: var(--teal);
  opacity: .07;
  pointer-events: none;
}
.adv__title { position: relative; margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.adv__text { position: relative; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- Карточка-«папка» и записи блога ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.post-grid > li { margin: 0; }

.folder { position: relative; height: 100%; }
.folder__sheet {
  position: absolute;
  left: 7px;
  top: 7px;
  right: -7px;
  bottom: -7px;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 0;
}
.folder__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 20px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 145px 0, 165px 22px, 100% 22px, 100% 100%, 0 100%);
  padding-top: 32px;
}

.post-card__media { display: block; margin-bottom: 14px; }
.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.post-card__cat { color: var(--teal); }
.post-card__dot { color: var(--line); }

.post-card__title { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.post-card__title a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.post-card__title a:hover { color: var(--teal); }
.post-card__title--lg { font-size: 26px; font-weight: 700; }

.post-card__lead { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Сетка блога с широкой первой карточкой */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.blog-grid .post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
}
.blog-grid .post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; }
.blog-grid .post-card__media { margin-bottom: 0; }
.blog-grid .post-card .link-more { margin-top: auto; }

.post-card--feature {
  grid-column: span 2;
  flex-direction: row;
}
.post-card--feature .post-card__body { flex: 1 1 55%; justify-content: center; }
.post-card--feature .post-card__media--feature { flex: 1 1 45%; }
.post-card--feature .post-card__media--feature img { height: 100%; aspect-ratio: auto; min-height: 260px; }
.post-card.is-hidden { display: none; }

.blog-count { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.blog-empty { margin: 32px 0 0; color: var(--muted); }

.pager { margin-top: 32px; }
.pager ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pager li { margin: 0; }
.pager__cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
a.pager__cell:hover { border-color: var(--teal); color: var(--teal); }
.pager__cell.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Как строится работа ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 20px;
  height: 1px;
  background: var(--line);
}
.step { position: relative; margin: 0; }
.step__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.step__title { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.step__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- Полоса с картой ---------- */

.map-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bg);
}
.map-band__panel {
  display: flex;
  justify-content: flex-end;
  background: var(--surface);
}
.map-band__inner {
  width: 100%;
  max-width: calc(var(--container) / 2 + var(--gutter));
  padding: 64px var(--gutter) 64px calc(50vw - var(--container) / 2 - var(--gutter));
}
.map-band__title { margin: 0 0 24px; font-size: 30px; font-weight: 700; line-height: 1.2; }
.map-band__list { margin: 0 0 28px; }
.map-band__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.map-band__list .ic { color: var(--teal); margin-top: 3px; }
.map-band__list a { color: var(--ink); text-decoration: none; }
.map-band__list a:hover { color: var(--teal); }
.map-band__list .map-band__route {
  display: inline-block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-band__list .map-band__route:hover { color: var(--ink); }
.map-band__map { min-height: 460px; }
.map-band__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------- Баннер-CTA ---------- */

.cta { background: var(--surface-alt); padding: 64px 0; border-top: 1px solid var(--line); }
.cta__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.cta__art { color: var(--line); }
.cta__title { margin: 0 0 14px; font-size: 34px; font-weight: 700; line-height: 1.15; }
.cta__text { margin: 0 0 24px; max-width: 720px; color: var(--muted); }
.cta__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.cta__phone {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.cta__phone:hover { color: var(--teal); }

/* ---------- Верхняя полоса внутренней страницы ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 40px 0 52px;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
.page-hero__lead { margin: 18px 0 0; max-width: 780px; font-size: 18px; line-height: 1.55; }

.crumbs { margin-bottom: 18px; }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.crumbs__item a { color: var(--muted); text-decoration: none; }
.crumbs__item a:hover { color: var(--teal); text-decoration: underline; }
.crumbs__sep { color: var(--line); }

/* ---------- О нас ---------- */

.about-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 48px var(--gap);
  align-items: start;
}
.about-intro__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-intro__photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.about-two__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px var(--gap);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.doc {
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease;
}
.doc:hover { border-color: var(--teal); }
.doc img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.doc.is-hidden { display: none; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 150; display: flex; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(27, 28, 30, .85); }
.lightbox__dialog {
  position: relative;
  margin: auto;
  max-width: min(900px, 92vw);
  max-height: 92vh;
  padding: 16px;
  background: #fff;
}
.lightbox__figure img { max-width: 100%; max-height: 72vh; margin: 0 auto; object-fit: contain; }
.lightbox__figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.lightbox__close { top: -52px; right: 0; border-color: rgba(255,255,255,.4); background: transparent; color: #fff; }
.lightbox__nav--prev { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: -56px; top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover,
.lightbox__close:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Страница направления ---------- */

.service-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px var(--gap);
  align-items: start;
}
.service-intro__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.service-price__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 40px var(--gap);
  align-items: start;
}
.service-price__note { margin: 20px 0 0; color: rgba(255,255,255,.85); font-size: 14px; }
.service-price__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.price-rows li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.price-rows__ico { display: inline-flex; color: var(--teal); align-self: center; }
.price-rows__name { flex: 1 1 auto; }
.price-rows__value {
  flex: 0 0 auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-rows--light li { border-bottom-color: rgba(255,255,255,.35); }

.price-group { margin-bottom: 48px; }
.price-group:last-child { margin-bottom: 0; }

.price-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--gap);
  margin-top: 48px;
}

/* ---------- Примечание ---------- */

.note-box {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 20px;
  padding: 28px;
  background: var(--surface-alt);
  border-left: 3px solid var(--teal);
}
.section--white .note-box { background: var(--bg); }
.note-box__icon { color: var(--teal); }
.note-box__title { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.note-box__date { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- Справочник ---------- */

.search-box { max-width: 720px; }
.search-box__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-box__row {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}
.search-box__row:focus-within { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.search-box__icon { display: inline-flex; padding: 0 12px; color: var(--teal); }
.search-box__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  padding: 12px 6px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
}
.search-box__input:focus { outline: none; }
.search-box__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 48px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.search-box__reset:hover { color: var(--teal); }
.search-box__count { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.chips-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.chips-bar .chips { margin: 0; flex-wrap: wrap; }

.acc { margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); }
.acc__head { margin: 0; }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.acc__title {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 4px;
}
.acc__btn:hover .acc__title { border-bottom-color: var(--teal); color: var(--teal); }
.acc__arrow { display: inline-flex; color: var(--teal); transition: transform .2s ease; }
.acc__btn[aria-expanded="true"] .acc__arrow { transform: rotate(180deg); }
.acc__body { padding: 0 24px 26px; }
.acc__note { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.org {
  padding: 20px;
  background: var(--surface-alt);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.org.is-hidden { display: none; }
.org__name { margin: 0 0 12px; color: var(--teal); font-size: 17px; font-weight: 600; }
.org__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}
.org__list .ic { color: var(--teal); margin-top: 3px; }
.org__list a { color: var(--ink); text-decoration: none; }
.org__list a:hover { color: var(--teal); text-decoration: underline; }
.org-empty { margin: 20px 0 0; color: var(--muted); }

/* ---------- Статья ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px var(--gap);
  align-items: start;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.article-meta__cat { color: var(--teal); font-weight: 600; }
.article-meta__read { display: inline-flex; align-items: center; gap: 6px; }

.article-hero { margin: 0 0 28px; }
.article-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.article-body h2 { margin: 36px 0 14px; font-size: 26px; }
.article-body h3 { margin: 28px 0 10px; font-size: 19px; }
.article-body ul,
.article-body ol { margin: 0 0 1.2em; padding-left: 20px; }
.article-body ul li,
.article-body ol li { margin-bottom: .5em; }
.article-body ol { list-style: decimal; }
.article-body ol li::marker { color: var(--teal); font-weight: 700; }

.article-quote {
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--teal);
  font-style: italic;
  color: var(--ink);
}

.article-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--surface-alt);
  border-left: 3px solid var(--teal);
}
.article-note__ico { color: var(--teal); }
.article-note__title { margin: 0 0 6px; font-weight: 700; }

.article-links {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.law-ref { color: var(--teal); font-weight: 600; white-space: nowrap; }

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.share { display: flex; align-items: center; gap: 10px; }
.share__label { color: var(--muted); font-size: 13px; }
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.share__btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.share__done { color: var(--teal); font-size: 13px; }

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.article-nav > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-nav__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}
.article-nav__item:hover { background: #fff; }
.article-nav__item--next { text-align: right; align-items: flex-end; }
.article-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13px;
}
.article-nav__title { font-size: 15px; font-weight: 600; line-height: 1.4; }

.article-aside__sticky { position: sticky; top: 96px; }
.aside-title { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
.aside-list { margin-bottom: 32px; }
.aside-list li { margin: 0; border-bottom: 1px solid var(--line); }
.aside-list a {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.aside-list img { width: 80px; height: 60px; object-fit: cover; }
.aside-list__date { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.aside-list__title { display: block; font-size: 14px; line-height: 1.4; }
.aside-list a:hover .aside-list__title { color: var(--teal); text-decoration: underline; }

.aside-cta { padding: 24px; background: var(--surface-alt); border-left: 3px solid var(--teal); }
.aside-cta__title { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.aside-cta p { font-size: 14px; color: var(--muted); }
.aside-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.aside-cta__phone .ic { color: var(--teal); }
.aside-cta .btn { width: 100%; }

/* ---------- Контакты ---------- */

.ccards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ccard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  background: var(--surface-alt);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ccard__icon { color: var(--teal); margin-bottom: 6px; }
.ccard__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ccard__value { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ccard__value a { color: var(--ink); text-decoration: none; }
.ccard__value a:hover { color: var(--teal); }
.ccard__extra { margin-top: 6px; color: var(--muted); font-size: 13px; }

.contacts-hours__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px var(--gap);
}
.hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hours li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contacts-hours__note { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* ---------- Модальное окно ---------- */

.modal { position: fixed; inset: 0; z-index: 160; display: flex; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(27, 28, 30, .6); }
.modal__dialog {
  position: relative;
  margin: auto;
  width: min(480px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  background: #fff;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--teal); }
.modal__title { margin: 0 0 10px; font-size: 24px; font-weight: 700; }
.modal__lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

/* ---------- 404 и карта сайта ---------- */

.error-404__inner { max-width: 680px; }
.error-404__code {
  margin: 0;
  color: var(--line);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.error-404__title { margin: 8px 0 14px; font-size: 30px; }
.error-404__text { color: var(--muted); }
.error-404__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.arrow-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gap);
}
.arrow-links li { margin: 0; border-bottom: 1px solid var(--line); }
.arrow-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  color: var(--ink);
  text-decoration: none;
}
.arrow-links a .ic { color: var(--teal); transition: transform .18s ease; }
.arrow-links a:hover { color: var(--teal); }
.arrow-links a:hover .ic { transform: translateX(4px); }

.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--gap);
}
.sitemap-col__title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}
.sitemap-col__title + .sitemap-list { margin-bottom: 36px; }
.sitemap-list li { margin: 0; border-bottom: 1px solid var(--line); }
.sitemap-list a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.sitemap-list a:hover { color: var(--teal); text-decoration: underline; }

.policy { max-width: 820px; }

/* ==================================================================
   4. Адаптив, фокус, анимации, печать
   ================================================================== */

@media (max-width: 1200px) {
  :root { --sec-pad: 72px; }

  .hero__title { font-size: 42px; }
  .watermark--hero .crest { width: 700px; height: 700px; }

  .map-band__inner {
    max-width: none;
    padding: 56px var(--gutter);
  }
  .map-band { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }

  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px var(--gutter); }
}

@media (max-width: 1024px) {
  :root { --gutter: 20px; --gap: 24px; }

  h1 { font-size: 38px; }
  .hero__title { font-size: 36px; }
  .page-hero__title { font-size: 36px; }

  .header-mail { display: none; }
  .header-sep { display: none; }

  .main-nav__link { font-size: 15px; }

  .creds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); }

  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .about-lawyer__grid { grid-template-columns: 1fr; }
  .about-intro__grid { grid-template-columns: 1fr; }
  .about-intro__photo { max-width: 420px; }

  .service-intro__grid { grid-template-columns: 1fr; }
  .service-intro__photo { max-width: 560px; }
  .service-price__inner { grid-template-columns: 1fr; }

  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card--feature { grid-column: span 2; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); }
  .steps::before { display: none; }

  .article-layout { grid-template-columns: 1fr; }
  .article-aside__sticky { position: static; }
  .aside-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }

  .sitemap-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 900px) {
  .header-bottom { display: none; }
  .header-contacts .btn { display: none; }
  .burger { display: inline-flex; }

  .site-header.is-stuck .header-top__inner { min-height: 60px; }
  body.has-stuck-header { padding-top: 84px; }

  .hero { padding-top: 36px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { padding-bottom: 32px; }
  .hero__figure { max-width: 420px; }
  .hero__figure img { max-height: 420px; }
  .creds { margin-top: 0; }

  .map-band { grid-template-columns: 1fr; }
  .map-band__map { min-height: 320px; }
  .map-band__map iframe { min-height: 320px; }

  .cta__inner { grid-template-columns: 1fr; gap: 28px; }
  .cta__art { max-width: 150px; }
  .cta__art .scales-art { width: 150px; height: 150px; }

  .modal__dialog { padding: 26px 22px; }
}

@media (max-width: 760px) {
  :root { --sec-pad: 56px; --gutter: 16px; }

  .chips-bar .chips { overflow-x: auto; flex-wrap: nowrap; }

  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .sec-title, .section__title { font-size: 25px; margin-bottom: 28px; }
  .section__lead { font-size: 16px; margin-bottom: 28px; }
  .bar-title { font-size: 21px; }

  .hero__title { font-size: 29px; }
  .hero__list li { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
  .page-hero { padding: 28px 0 40px; }
  .page-hero__title { font-size: 29px; }
  .page-hero__lead { font-size: 16px; }

  .watermark--soft .crest { width: 340px; height: 340px; }
  .watermark--hero .crest { width: 460px; height: 460px; }

  .creds { padding: 32px 0 40px; }
  .creds__grid { grid-template-columns: 1fr; gap: 22px; }
  .cred__value { font-size: 21px; }

  .tiles { grid-template-columns: 1fr; }
  .band-tiles { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccards { grid-template-columns: 1fr; }
  .org-grid { grid-template-columns: 1fr; }

  .post-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-card--feature { grid-column: auto; flex-direction: column; }
  .post-card--feature .post-card__title--lg { font-size: 21px; }
  .post-card--feature .post-card__media--feature img { min-height: 0; aspect-ratio: 16 / 10; }

  .folder__body { clip-path: none; padding-top: 20px; }
  .folder__sheet { display: none; }

  .steps { grid-template-columns: 1fr; }

  .about-two__grid { grid-template-columns: 1fr; gap: 36px; }
  .check-list--two { grid-template-columns: 1fr; }
  .price-extra { grid-template-columns: 1fr; }
  .contacts-hours__grid { grid-template-columns: 1fr; gap: 36px; }
  .arrow-links { grid-template-columns: 1fr; }
  .sitemap-cols { grid-template-columns: 1fr; gap: 28px; }
  .aside-list { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__item--next { text-align: left; align-items: flex-start; }
  .article-body h2 { font-size: 22px; }

  .form__grid { grid-template-columns: 1fr; }

  .facts--wide .facts__row { grid-template-columns: 1fr; gap: 2px; }

  .cta__title { font-size: 26px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { width: 100%; }
  .cta__phone { text-align: center; }

  .note-box { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }

  .error-404__code { font-size: 84px; }
  .error-404__actions .btn { width: 100%; }

  /* Футер: колонки становятся аккордеонами */
  .footer-cols { grid-template-columns: 1fr; gap: 0; }
  .footer-col { border-bottom: 1px solid var(--dark-line); }
  .footer-col__title { margin: 0; }
  .footer-col__btn { padding: 16px 0; cursor: pointer; }
  .footer-col__chev { display: inline-flex; transition: transform .2s ease; }
  .footer-col__btn[aria-expanded="true"] .footer-col__chev { transform: rotate(180deg); }
  .footer-col__body { padding-bottom: 18px; }
  .footer-col__body[hidden] { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .article-foot { flex-direction: column; align-items: flex-start; }
}

/* Логотип «Адвокатское бюро» шире прежнего — телефон сворачивается в иконку раньше */
@media (max-width: 560px) {
  .header-phone span { display: none; }
  .header-phone { width: 42px; height: 42px; justify-content: center; border: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .docs-grid { grid-template-columns: 1fr; }
}

/* ---------- Фокус ---------- */

:focus { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.band a:focus-visible,
.band button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.service-price a:focus-visible,
.service-price button:focus-visible,
.btn--primary:focus-visible,
.btn--ghost-light:focus-visible {
  outline-color: #fff;
}

/* ---------- Уменьшенная анимация ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover .ic,
  .link-more:hover .ic,
  .link-back:hover .ic,
  .arrow-links a:hover .ic { transform: none; }

  .tile:hover,
  .band-tile:hover { padding-left: 24px; }
  .tile:hover { padding-left: 24px; }

  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Появление при скролле (сдержанное) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Печать ---------- */

@media print {
  :root { --sec-pad: 18px; }

  body { background: #fff; color: #000; font-size: 11pt; }

  .site-header,
  .mobile-nav,
  .nav-backdrop,
  .burger,
  .modal,
  .lightbox,
  .cta,
  .map-band__map,
  .chips-bar,
  .pager,
  .share,
  .section__actions,
  .section__foot,
  .article-nav,
  .article-aside,
  .site-footer,
  .skip-link,
  .watermark,
  .watermark--hero,
  .adv__mark,
  .btn { display: none !important; }

  .section, .band, .page-hero, .hero { padding: 12pt 0; background: #fff !important; color: #000 !important; }
  .band, .sec-title--on-teal, .band-tile__title, .tile__title { color: #000 !important; }
  .sec-title > span, .section__title > span { border-bottom: 1pt solid #000; }

  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  a[href^="tel"]::after,
  a[href^="mailto"]::after { content: ""; }

  .article-layout,
  .about-intro__grid,
  .about-lawyer__grid,
  .contacts-hours__grid,
  .service-intro__grid { display: block; }

  .tiles, .adv-grid, .org-grid, .ccards, .post-grid, .blog-grid {
    display: block;
    border: 0;
    background: none;
  }
  .tile, .adv, .org, .ccard { border-bottom: 1pt solid #999; background: none !important; }

  .folder__sheet { display: none; }
  .folder__body { clip-path: none; border: 0; }

  img { max-width: 100% !important; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}
