/* Solward Law Firm — стили */

:root {
  /* Палитра */
  --navy: #0d2b40;
  --navy-2: #103449;
  --navy-3: #17415a;
  --accent: #1c5a86;
  --accent-strong: #164365;
  --gold: #b3925a;

  --bg: #f6f4ef;
  --bg-alt: #efece4;
  --surface: #ffffff;

  --text: #17232e;
  --muted: #5b6a76;
  --line: #e2ddd2;
  --line-soft: #ece8df;

  --ok-bg: #e6f1ea;
  --ok-text: #1f6b45;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(16, 40, 60, .06);
  --shadow-md: 0 8px 24px rgba(16, 40, 60, .08);
  --shadow-lg: 0 18px 50px rgba(16, 40, 60, .14);

  /* Геометрия */
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1200px;
  --container-narrow: 860px;

  /* Типографика */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: Georgia, "Times New Roman", "PT Serif", serif;

  --header-h: 76px;
}

/* База */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

/* Контейнеры */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); background: #f3f7fa; }

.btn-block { width: 100%; }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow .25s ease, background-color .25s ease, padding .25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  transition: height .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.site-header.is-scrolled .header-inner { height: 62px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; }
.site-header.is-scrolled .brand-logo { height: 30px; }

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-block;
  padding: 9px 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background-color .2s ease;
  position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-cta { flex-shrink: 0; padding: 11px 20px; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 33, .5);
  z-index: 98;
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-menu-overlay.is-visible { opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--navy);
  z-index: 99;
  padding: calc(var(--header-h) + 12px) 24px 32px;
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav-link {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  color: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mobile-nav-link:hover { color: #fff; }
.mobile-cta { margin-top: 8px; }

/* Секции */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 44px; max-width: 720px; }
.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

/* Первый экран */
.hero { padding: 20px 0 0; }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(640px, 82vh);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 26, 38, .32) 0%, rgba(9, 26, 38, .55) 55%, rgba(9, 26, 38, .82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 56px clamp(24px, 5vw, 64px);
  max-width: 760px;
  color: #fff;
}
.hero-eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, .9);
  max-width: 620px;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .82);
}
.hero-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* О компании */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--text);
}
.about-text p:last-child { margin-bottom: 0; }
.about-cards { display: grid; gap: 16px; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent);
}
.about-card-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.about-card-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* Преимущества */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d6cfc0;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #eef4f8;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-title { font-size: 1.15rem; margin-bottom: 10px; }
.feature-text { margin: 0; color: var(--muted); font-size: .97rem; }

/* Этапы сотрудничества */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.step-title { font-size: 1.1rem; margin-bottom: 10px; }
.step-text { margin: 0; color: var(--muted); font-size: .95rem; }

/* Почему выбирают нас */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.why-lead .section-kicker { margin-top: 0; }
.why-desc { margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.why-list li {
  position: relative;
  padding-left: 30px;
  font-size: .98rem;
  color: var(--text);
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok-bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b45' stroke-width='3'><path d='M20 6L9 17l-5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Юристы */
.lawyers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.lawyer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lawyer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lawyer-photo {
  aspect-ratio: 3 / 4;
  background: #eef1f3;
  overflow: hidden;
}
.lawyer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.lawyer-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.lawyer-name { font-size: 1.08rem; }
.lawyer-role {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.lawyer-desc { margin: 4px 0 14px; font-size: .9rem; color: var(--muted); }
.lawyer-more { margin-top: auto; align-self: flex-start; padding: 9px 18px; font-size: 14px; }

/* Лицензия */
.section-license { background: var(--navy); color: #fff; }
.section-license .section-kicker { color: #9fc2da; }
.section-license .section-title { color: #fff; }
.license-intro {
  max-width: 820px;
  margin: -20px 0 36px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.02rem;
}
.license-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 12px clamp(18px, 3vw, 34px);
}
.license-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.license-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.license-row dt {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .62);
}
.license-row dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
}
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
}
.badge-ok { background: var(--ok-bg); color: var(--ok-text); }
.badge-accent {
  background: rgba(179, 146, 90, .16);
  color: #e8cfa1;
  border: 1px solid rgba(179, 146, 90, .5);
}

/* FAQ */
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: none; }
.faq-question { margin: 0; }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: background-color .2s ease;
}
.faq-trigger:hover { background: #f6f8fa; }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform .25s ease, opacity .2s ease;
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-trigger[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.is-open .faq-answer { max-height: 520px; }
.faq-answer p { margin: 0; padding: 0 0 22px; color: var(--muted); }

/* Контакты и форма */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.contact-value { font-size: 1.05rem; font-weight: 500; color: var(--text); }
a.contact-value:hover { color: var(--accent); }

.messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
/* Иконки мессенджеров */
.msg-btn .msg-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.msg-btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.msg-btn[data-locked="true"] { opacity: .9; cursor: not-allowed; }
.msg-btn[data-locked="true"]:hover { transform: none; border-color: var(--line); box-shadow: none; }

/* Форма */
.contacts-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.lead-form { display: grid; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--text); }
.req { color: #c0392b; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input::placeholder { color: #9aa6b0; }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 90, 134, .15);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6a76' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-input.is-invalid { border-color: #c0392b; background: #fdf4f3; }
.form-error { font-size: 13px; color: #c0392b; min-height: 0; }
.form-error:empty { display: none; }

.link-inline {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-inline:hover { color: var(--accent-strong); }

/* Юридическая информация */
.section-legal { padding: 64px 0; }
.sr-title { margin-bottom: 32px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.legal-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.legal-item h3 { font-size: 1rem; margin-bottom: 8px; }
.legal-item p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Подвал */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .82); padding: 60px 0 26px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.footer-desc { margin: 0 0 18px; font-size: .95rem; color: rgba(255, 255, 255, .68); max-width: 340px; }
.footer-messengers .msg-btn { padding: 9px 16px; font-size: 13.5px; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col ul a:hover { color: #fff; }
.footer-col ul li { font-size: .95rem; color: rgba(255, 255, 255, .72); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
}
.footer-copy { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.footer-disclaimer { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .55); max-width: 620px; }

/* Кнопка «наверх» */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.to-top:not([hidden]) { opacity: 0; }
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--accent-strong); }
.to-top svg { width: 22px; height: 22px; }

/* Модальные окна */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 33, .58);
  animation: fade .2s ease;
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  animation: pop .22s ease;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-dialog-wide { max-width: 640px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color .2s ease, color .2s ease;
}
.modal-close:hover { background: #f0f2f4; color: var(--text); }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 6px; padding-right: 30px; }
.modal-sub {
  margin: 0 0 16px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-text { margin: 0 0 20px; color: var(--muted); }
.modal-areas { margin: 0 0 22px; }
.modal-areas-title {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
}
.modal-areas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-areas-list li {
  padding: 7px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--accent-strong);
  background: #eef4f8;
  border: 1px solid #dbe7f0;
  border-radius: 999px;
}
.modal-note { margin: 0 0 22px; font-size: .92rem; color: var(--muted); }
.modal-doc { color: var(--text); }
.modal-doc p { margin: 0 0 14px; color: var(--muted); font-size: .96rem; }
.modal-doc h4 { font-size: 1rem; margin: 20px 0 8px; color: var(--text); }

/* Уведомление */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(24px);
  z-index: 300;
  max-width: min(520px, 92vw);
  background: var(--navy);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .96rem;
  border-left: 4px solid var(--gold);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Появление секций */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

body.no-scroll { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Адаптивность */
@media (max-width: 1080px) {
  .lawyers-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .legal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .about-grid, .why-grid, .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-list { grid-template-columns: 1fr 1fr; }
  .license-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .container { padding: 0 18px; }

  .hero { padding: 14px 0 0; }
  .hero-media { min-height: 72vh; }
  .hero-content { padding: 30px 20px; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 12px; }
  .hero-title { font-size: 1.7rem; margin-bottom: 14px; }
  .hero-subtitle { font-size: .98rem; margin-bottom: 22px; }
  .hero-note { font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 22px; }
  .hero-actions .btn { width: 100%; }

  .cards-grid,
  .steps,
  .legal-grid,
  .why-list { grid-template-columns: 1fr; }

  /* Юристы — компактные горизонтальные карточки */
  .lawyers-grid { grid-template-columns: 1fr; gap: 14px; }
  .lawyer-card { flex-direction: row; }
  .lawyer-photo { flex: 0 0 108px; aspect-ratio: auto; }
  .lawyer-body { padding: 14px 16px; justify-content: center; gap: 4px; }
  .lawyer-desc { display: none; }
  .lawyer-more { margin-top: 10px; }

  /* FAQ — компактнее */
  .faq-trigger { padding: 15px 16px; font-size: .98rem; gap: 12px; }
  .faq-answer { padding: 0 16px; }
  .faq-answer p { padding-bottom: 16px; font-size: .95rem; }
  .faq-item.is-open .faq-answer { max-height: 640px; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .modal-dialog { padding: 28px 22px; }
  .msg-btn { flex: 1; justify-content: center; }
}

@media (max-width: 400px) {
  .hero-media { min-height: 68vh; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: .94rem; }
  .lawyer-photo { flex-basis: 96px; }
  .lawyer-name { font-size: 1rem; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
