/* =============================================================================
   Лендинг юриста по банкротству физлиц
   Цвета: правьте здесь — весь сайт подхватит палитру.
   ============================================================================= */

:root {
  --navy: #1b2838;
  --navy-deep: #121c28;
  --graphite: #3d4a59;
  --gold: #b08d57;
  --gold-soft: #d4c4a8;
  --paper: #f4f1ea;
  --paper-alt: #eae6dc;
  --white: #fffcf7;
  --text: #1f2a36;
  --muted: #5a6775;
  --line: rgba(27, 40, 56, 0.12);
  --focus: #8a6a32;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(18, 28, 40, 0.08);
  --header-h: 4.5rem;
  --font: "Segoe UI", "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

/* ----- Шапка ----- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}

.logo:hover {
  color: var(--navy);
}

.logo__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.logo__caption {
  font-size: 0.75rem;
  color: var(--muted);
}

.header__phone {
  display: none;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  white-space: nowrap;
}

.nav__list {
  display: flex;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  color: var(--graphite);
  font-size: 0.95rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

/* ----- Кнопки ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn--primary {
  background: #C9A96E;
  color: var(--white);
  border: 1px solid #C9A96E;
}
.btn--primary:hover {
  background: #9a7a48;
  border-color: #9a7a48;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(176, 141, 87, 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid #C9A96E;
}
.btn--ghost:hover {
  border-color: #9a7a48;
  transform: translateY(-2px);
}

/* ----- Секции ----- */

.hero {
  padding: 4.75rem 0 5.25rem;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(27, 40, 56, 0.04), transparent 42%),
    var(--paper);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.35rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #C9A96E;
  margin-top: 1.5rem;
}
.hero__lead {
  max-width: 34em;
  margin-bottom: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--graphite);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__visual {
  min-width: 0;
}

.hero-photo {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1.1rem -0.85rem -0.85rem 1.1rem;
  border: 1px solid var(--gold-soft);
  border-radius: calc(var(--radius) + 4px);
  pointer-events: none;
}

.hero-photo img,
.hero-photo__slot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-photo__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--gold-soft);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(176, 141, 87, 0.18), transparent 46%),
    linear-gradient(165deg, #243447 0%, var(--navy) 48%, var(--navy-deep) 100%);
  box-shadow: var(--shadow);
}

.hero-photo__mark {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.hero-photo__label {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.hero-photo__hint {
  max-width: 16rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(212, 196, 168, 0.82);
}

.section {
  padding: 4.25rem 0;
}

.section--alt {
  background: var(--paper-alt);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section__intro {
  color: var(--muted);
}

.split,
.prices {
  display: grid;
  gap: 1.25rem;
}

.split {
  grid-template-columns: 1fr 1fr;
}

.card,
.price-card,
.steps__item,
.faq__item,
.contacts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.6rem 1.7rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--graphite);
}

.plain-list li + li {
  margin-top: 0.65rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.steps__item {
  padding: 1.4rem 1.3rem 1.5rem;
}

.steps__num {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.08em;
}

.prices {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  padding: 1.7rem 1.5rem 1.8rem;
}

.price-card--accent {
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(176, 141, 87, 0.14);
}

.price-card__name {
  font-family: var(--font);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.price-card__value {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.price-card__note {
  color: var(--graphite);
  margin: 0;
}

.fineprint {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about__photo {
  min-height: 360px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--navy) 0%, #2c3c50 60%, #3f4f40 100%);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about__role {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.facts {
  margin: 0 0 1.25rem;
}

.facts > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.facts dd {
  margin: 0;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq__item {
  padding: 0;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--navy);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 400;
  font-size: 1.2rem;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--graphite);
}

.contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contacts li {
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contacts__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts a {
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer {
  background: var(--navy-deep);
  color: #c9d2dc;
  padding: 2.5rem 0 2.75rem;
}

.footer a {
  color: var(--gold-soft);
}

.footer a:hover {
  color: #fff;
}

.footer__legal {
  max-width: 46rem;
  font-size: 0.92rem;
}

.footer__copy {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: #8b98a6;
}

/* ----- Мобильная версия ----- */

@media (max-width: 900px) {
  .split,
  .steps,
  .prices,
  .about,
  .contacts {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.1rem;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.85rem 0.4rem;
    min-height: 44px;
  }

  .header__phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.92rem;
  }

  .hero {
    padding: 2.75rem 0 3.25rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero__actions .btn {
    flex: 1 1 15rem;
    min-height: 48px;
  }

  .hero-photo {
    max-width: 22rem;
  }

  .hero-photo::before {
    display: none;
  }

  .section {
    padding: 3.25rem 0;
  }

  .facts > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (min-width: 901px) {
  .header__phone {
    display: inline-flex;
    order: 3;
    margin-left: 0.75rem;
  }

  .nav {
    display: block;
  }
}

/* Фотография юриста на первом экране */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 220px 220px 18px 18px;
  background: #e9e4db;
  box-shadow: 0 24px 60px rgba(22, 37, 54, 0.14);
}

.hero-photo__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.hero-photo__caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(22, 37, 54, 0.08);
}

.hero-photo__caption-label {
  color: #a17b3d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-photo__caption-text {
  color: #1d2b3b;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .hero-photo {
    max-width: 340px;
    border-radius: 170px 170px 14px 14px;
  }

  .hero-photo__caption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 12px 14px;
  }
}

/* Блок контактов */
#kontakty {
  padding: 90px 0;
  background: #f7f5f0;
}

#kontakty h2 {
  max-width: 700px;
  margin: 0 0 18px;
  color: #1d2b3b;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.contacts__lead {
  max-width: 650px;
  margin: 0 0 32px;
  color: #5d6670;
  font-size: 17px;
  line-height: 1.7;
}

.contacts__card {
  max-width: 760px;
  padding: 32px;
  border: 1px solid #e7e1d7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(29, 43, 59, 0.07);
}

.contacts__card h3 {
  margin: 0 0 12px;
  color: #1d2b3b;
  font-size: 24px;
}

.contacts__card > p {
  color: #5d6670;
  line-height: 1.7;
}

.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.contacts__note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #eee8df;
  font-size: 13px;
}

@media (max-width: 600px) {
  #kontakty {
    padding: 60px 0;
  }

  .contacts__card {
    padding: 22px 18px;
  }

  .contacts__actions {
    flex-direction: column;
  }

  .contacts__actions .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* ========================================
   PREMIUM LEGAL — обновление дизайна
   ======================================== */

:root {
  --premium-navy: #172638;
  --premium-navy-deep: #101c2a;
  --premium-ivory: #f7f4ed;
  --premium-white: #fffefa;
  --premium-gold: #b3945d;
  --premium-gold-light: #d6c39c;
  --premium-text: #263443;
  --premium-muted: #68717b;
  --premium-border: #e5dfd3;
  --premium-radius: 18px;
  --premium-shadow: 0 18px 50px rgba(16, 28, 42, 0.08);
}

/* Основная типографика */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  color: var(--premium-text);
  background: var(--premium-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--premium-navy);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(38px, 5.2vw, 66px);
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: clamp(21px, 2.5vw, 27px);
}

p {
  line-height: 1.75;
}

/* Подписи над заголовками */
.eyebrow {
  color: var(--premium-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--premium-white);
  background: var(--premium-navy);
  border-color: var(--premium-navy);
}

.btn--primary:hover {
  color: #fff;
  background: var(--premium-navy-deep);
  border-color: var(--premium-navy-deep);
}

.btn--ghost {
  color: var(--premium-navy);
  background: transparent;
  border-color: var(--premium-border);
}

.btn--ghost:hover {
  border-color: var(--premium-gold);
  background: var(--premium-ivory);
}

/* Секции и карточки */
section {
  scroll-margin-top: 90px;
}

.contacts__card,
.service-card,
.price-card,
.stage-card,
.faq-item {
  border-color: var(--premium-border);
  border-radius: var(--premium-radius);
}

.contacts__card {
  box-shadow: var(--premium-shadow);
}

/* Квиз */
.quiz-section {
  padding: 96px 0;
  background: var(--premium-ivory);
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.quiz-intro {
  padding-top: 18px;
}

.quiz-intro p {
  color: var(--premium-muted);
}

.quiz-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--premium-border);
  border-radius: 22px;
  background: var(--premium-white);
  box-shadow: var(--premium-shadow);
}

.quiz-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--premium-muted);
  font-size: 13px;
}

.quiz-progress {
  height: 4px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 10px;
  background: #e9e4da;
}

.quiz-progress__bar {
  width: 25%;
  height: 100%;
  background: var(--premium-gold);
  transition: width 200ms ease;
}

.quiz-step h3 {
  margin: 0 0 20px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--premium-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.quiz-option:hover {
  border-color: var(--premium-gold);
  background: #faf7f0;
}

.quiz-option input {
  flex: 0 0 auto;
  margin-top: 5px;
  accent-color: var(--premium-navy);
}

.quiz-option:has(input:checked) {
  border-color: var(--premium-gold);
  background: #f7f1e5;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.quiz-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
}

.quiz-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.quiz-field label {
  color: var(--premium-navy);
  font-size: 14px;
  font-weight: 600;
}

.quiz-field input,
.quiz-field select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--premium-border);
  border-radius: 8px;
  color: var(--premium-text);
  background: #fff;
  font: inherit;
}

.quiz-field input:focus,
.quiz-field select:focus {
  outline: 2px solid var(--premium-gold-light);
  outline-offset: 1px;
}

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--premium-muted);
  font-size: 12px;
  line-height: 1.6;
}

.quiz-consent input {
  flex: 0 0 auto;
  margin-top: 5px;
}

.quiz-consent a {
  color: var(--premium-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz-status {
  margin-top: 18px;
  color: var(--premium-navy);
  font-size: 14px;
}

.quiz-status:empty {
  display: none;
}

@media (max-width: 760px) {
  .quiz-section {
    padding: 64px 0;
  }

  .quiz-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quiz-intro {
    padding-top: 0;
  }

  .quiz-actions .btn {
    flex: 1;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}
.quiz-option {
    align-items: center;
}

.quiz-option input[type="radio"] {
    flex: 0 0 auto;
    margin: 0;
    transform: translateY(0);
}

.quiz-option span {
    line-height: 1.5;
}
/* ========================================
   ШАПКА САЙТА — премиальный стиль
   ======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 254, 250, 0.97);
    border-bottom: 1px solid var(--premium-border);
    box-shadow: 0 4px 18px rgba(16, 28, 42, 0.035);
    backdrop-filter: blur(12px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

/* Название практики */

.logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 3px;
    color: var(--premium-navy);
    text-decoration: none;
}

.logo__name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.logo__caption {
    color: var(--premium-muted);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Пункты меню */

.nav__list {
    gap: 22px;
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: var(--premium-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
}

.nav__link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: var(--premium-gold);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav__link:hover {
    color: var(--premium-gold);
}

.nav__link:hover::after {
    transform: scaleX(1);
}

/* Телефон в шапке */

.header__phone {
    flex-shrink: 0;
    color: var(--premium-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.header__phone:hover {
    color: var(--premium-gold);
}

/* Клавиатурная навигация */

.header a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--premium-gold);
    outline-offset: 4px;
}

/* Адаптация шапки для телефонов */

@media (max-width: 760px) {
    .header__inner {
        min-height: 72px;
        gap: 12px;
    }

    .logo__name {
        font-size: 18px;
    }

    .logo__caption {
        font-size: 9px;
        letter-spacing: 0.04em;
    }

    .header__phone {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav__link,
    .nav__link::after,
    .header__phone {
        transition: none;
    }
}
/* Телефон и кнопка обратного звонка */

.header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.header__callback {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 12px;
    white-space: nowrap;
}

/* Адаптация для мобильных устройств */

@media (max-width: 760px) {
    .header__actions {
        gap: 8px;
    }

    .header__callback {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .header__phone {
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .header__actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .header__callback {
        min-height: 32px;
        padding: 6px 9px;
        font-size: 10px;
    }
}

/* ========================================
   ПЕРВЫЙ ЭКРАН — PREMIUM HERO
   ======================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 100px) 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(179, 148, 93, 0.10),
            transparent 32%
        ),
        var(--premium-ivory);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(36px, 6vw, 84px);
}

.hero__copy {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero__copy .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.hero__copy .eyebrow::before {
    width: 34px;
    height: 1px;
    background: var(--premium-gold);
    content: "";
}

.hero h1 {
    max-width: 650px;
    margin: 0 0 24px;
    color: var(--premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5.2vw, 68px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero__lead {
    max-width: 560px;
    margin: 0;
    color: var(--premium-muted);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.85;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.hero__actions .btn {
    min-height: 54px;
    padding: 15px 22px;
}

/* Фотография юриста */

.hero__visual {
    position: relative;
    min-width: 0;
}

.hero-photo {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 180px 180px 12px 12px;
    background: #e9e2d5;
    box-shadow: 18px 18px 0 rgba(179, 148, 93, 0.17);
}

.hero-photo__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 500ms ease;
}

.hero-photo:hover .hero-photo__image {
    transform: scale(1.025);
}

/* Подпись поверх фотографии */

.hero-photo__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 36px 24px 22px;
    color: #fffefa;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(16, 28, 42, 0.88)
    );
}

.hero-photo__caption-label {
    color: var(--premium-gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-photo__caption-text {
    max-width: 300px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.35;
}

/* Планшеты и небольшие ноутбуки */

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(38px, 5vw, 52px);
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 320px;
    }

    .hero__actions .btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Мобильные устройства */

@media (max-width: 650px) {
    .hero {
        padding: 48px 0 58px;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .hero__copy {
        max-width: none;
    }

    .hero__copy .eyebrow {
        margin-bottom: 18px;
    }

    .hero h1 {
        max-width: 540px;
        margin-bottom: 18px;
        font-size: clamp(38px, 10vw, 50px);
        line-height: 1.1;
    }

    .hero__lead {
        font-size: 15px;
        line-height: 1.75;
    }

    .hero__actions {
        max-width: none;
        margin-top: 26px;
    }

    .hero__visual {
        width: 100%;
        max-width: 430px;
        margin-inline: auto;
    }

    .hero-photo {
        max-width: none;
        margin-inline: auto;
        box-shadow: 10px 10px 0 rgba(179, 148, 93, 0.17);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo__image {
        transition: none;
    }
}

/* ========================================
   БЛОК «УСЛУГА»
   ======================================== */

#usluga {
    position: relative;
    padding: clamp(64px, 8vw, 104px) 0;
    background: var(--premium-white);
}

/* Заголовок секции */

#usluga .section__head {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}

#usluga .section__head .eyebrow {
    margin-bottom: 16px;
}

#usluga .section__head h2 {
    margin: 0 auto 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

#usluga .section__intro {
    max-width: 720px;
    margin: 0 auto;
    color: var(--premium-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Две карточки */

#usluga .split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

#usluga .card {
    position: relative;
    min-width: 0;
    padding: clamp(24px, 3vw, 36px);
    overflow: hidden;
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius);
    background: var(--premium-white);
    box-shadow: 0 10px 30px rgba(16, 28, 42, 0.035);
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

/* Тонкая золотистая линия сверху */

#usluga .card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--premium-gold);
    content: "";
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 200ms ease;
}

#usluga .card:hover {
    border-color: var(--premium-gold-light);
    box-shadow: var(--premium-shadow);
    transform: translateY(-3px);
}

#usluga .card:hover::before {
    transform: scaleX(1);
}

/* Заголовки карточек */

#usluga .card h3 {
    margin: 0 0 24px;
    color: var(--premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 500;
    line-height: 1.3;
}

/* Списки */

#usluga .plain-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#usluga .plain-list li {
    position: relative;
    padding-left: 25px;
    color: var(--premium-text);
    font-size: 14px;
    line-height: 1.8;
}

#usluga .plain-list li::before {
    position: absolute;
    top: 0.9em;
    left: 0;
    width: 8px;
    height: 8px;
    border: 1px solid var(--premium-gold);
    border-radius: 50%;
    content: "";
    box-sizing: border-box;
}

/* Мобильная адаптация */

@media (max-width: 760px) {
    #usluga {
        padding: 64px 0;
    }

    #usluga .section__head {
        margin-bottom: 30px;
        text-align: left;
    }

    #usluga .section__head h2 {
        margin-left: 0;
        font-size: clamp(29px, 7vw, 38px);
    }

    #usluga .section__intro {
        font-size: 14px;
    }

    #usluga .split {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #usluga .card {
        padding: 25px 22px;
    }

    #usluga .card h3 {
        margin-bottom: 18px;
    }

    #usluga .plain-list {
        gap: 14px;
    }

    #usluga .plain-list li {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #usluga .card,
    #usluga .card::before {
        transition: none;
    }

    #usluga .card:hover {
        transform: none;
    }
}

/* ========================================
   БЛОК «ЭТАПЫ РАБОТЫ»
   ======================================== */

#etapy {
    padding: clamp(64px, 8vw, 100px) 0;
    background: var(--premium-ivory);
}

#etapy .section__head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

#etapy .section__head .eyebrow {
    margin-bottom: 16px;
}

#etapy .section__head h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.2;
}

#etapy .section__intro {
    max-width: 650px;
    margin: 0 auto;
    color: var(--premium-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Сетка этапов */

#etapy .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Карточка */

#etapy .steps__item {
    position: relative;
    min-width: 0;
    padding: 28px 22px 26px;
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius);
    background: var(--premium-white);
    box-shadow: 0 8px 24px rgba(16, 28, 42, 0.035);
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
}

#etapy .steps__item:hover {
    transform: translateY(-4px);
    border-color: var(--premium-gold-light);
    box-shadow: var(--premium-shadow);
}

/* Номер этапа */

#etapy .steps__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border: 1px solid var(--premium-gold-light);
    border-radius: 50%;
    color: var(--premium-gold);
    background: var(--premium-ivory);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1;
}

/* Заголовок и описание */

#etapy .steps__item h3 {
    margin: 0 0 14px;
    color: var(--premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;
}

#etapy .steps__item p {
    margin: 0;
    color: var(--premium-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* Планшеты */

@media (max-width: 1000px) {
    #etapy .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    #etapy .steps__item {
        padding: 26px 24px;
    }
}

/* Телефоны */

@media (max-width: 600px) {
    #etapy {
        padding: 64px 0;
    }

    #etapy .section__head {
        margin-bottom: 30px;
        text-align: left;
    }

    #etapy .section__head h2 {
        font-size: clamp(29px, 7vw, 38px);
    }

    #etapy .section__intro {
        font-size: 14px;
    }

    #etapy .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    #etapy .steps__item {
        padding: 24px 22px;
    }

    #etapy .steps__num {
        width: 44px;
        height: 44px;
        margin-bottom: 18px;
        font-size: 18px;
    }

    #etapy .steps__item h3 {
        margin-bottom: 10px;
        font-size: 22px;
    }

    #etapy .steps__item p {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #etapy .steps__item {
        transition: none;
    }

    #etapy .steps__item:hover {
        transform: none;
    }
}

/* ========================================
   БЛОК «КОНСУЛЬТАЦИЯ И УСЛОВИЯ РАБОТЫ»
   ======================================== */

#stoimost {
    padding: clamp(64px, 8vw, 104px) 0;
    background: var(--premium-white);
}

#stoimost .section__head {
    max-width: 780px;
    margin: 0 auto 46px;
    text-align: center;
}

#stoimost .section__head h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.2;
}

#stoimost .section__intro {
    max-width: 680px;
    margin: 0 auto;
    color: var(--premium-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Общая компоновка */

#stoimost .pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: 28px;
}

/* Карточка бесплатной консультации */

#stoimost .consultation-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--premium-navy);
    border-radius: var(--premium-radius);
    color: var(--premium-white);
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(179, 148, 93, 0.2),
            transparent 38%
        ),
        var(--premium-navy);
    box-shadow: 0 18px 44px rgba(16, 28, 42, 0.12);
}

#stoimost .consultation-card__label {
    margin-bottom: 22px;
    color: var(--premium-gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

#stoimost .consultation-card h3 {
    margin: 0 0 16px;
    color: var(--premium-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.25;
}

#stoimost .consultation-card__description {
    margin: 0;
    color: rgba(255, 254, 250, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

#stoimost .consultation-card__price {
    margin: 24px 0;
    color: var(--premium-gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.2;
}

#stoimost .btn--gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid var(--premium-gold);
    border-radius: 8px;
    color: var(--premium-navy-deep);
    background: var(--premium-gold-light);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

#stoimost .btn--gold:hover {
    background: #e3d2ae;
    transform: translateY(-2px);
}

#stoimost .consultation-card__note {
    margin: 20px 0 0;
    color: rgba(255, 254, 250, 0.68);
    font-size: 12px;
    line-height: 1.7;
}

/* Комплексное сопровождение */

#stoimost .pricing-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius);
    background: var(--premium-ivory);
}

#stoimost .pricing-details > .eyebrow {
    margin: 0 0 16px;
}

#stoimost .pricing-details h3 {
    margin: 0 0 16px;
    color: var(--premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.25;
}

#stoimost .pricing-details > p:not(.eyebrow) {
    margin: 0;
    color: var(--premium-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Список работ */

#stoimost .pricing-list {
    display: grid;
    gap: 16px;
    width: 100%;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}

#stoimost .pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--premium-text);
    font-size: 14px;
    line-height: 1.7;
}

#stoimost .pricing-list__marker {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 0.55em;
    border: 1px solid var(--premium-gold);
    border-radius: 50%;
}

/* Нижняя часть правой карточки */

#stoimost .pricing-details__bottom {
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--premium-border);
}

#stoimost .pricing-details__bottom p {
    margin: 0 0 18px;
    color: var(--premium-muted);
    font-size: 13px;
    line-height: 1.8;
}

#stoimost .pricing-details__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--premium-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration-color: var(--premium-gold);
    text-underline-offset: 5px;
}

#stoimost .pricing-details__link span {
    color: var(--premium-gold);
    font-size: 20px;
    transition: transform 180ms ease;
}

#stoimost .pricing-details__link:hover span {
    transform: translateX(4px);
}

#stoimost .fineprint {
    margin: 24px 0 0;
    color: var(--premium-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* Планшеты и мобильные устройства */

@media (max-width: 760px) {
    #stoimost {
        padding: 64px 0;
    }

    #stoimost .section__head {
        margin-bottom: 30px;
        text-align: left;
    }

    #stoimost .section__head h2 {
        font-size: clamp(29px, 7vw, 38px);
    }

    #stoimost .section__intro {
        font-size: 14px;
    }

    #stoimost .pricing-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #stoimost .consultation-card,
    #stoimost .pricing-details {
        padding: 26px 22px;
    }

    #stoimost .btn--gold {
        width: 100%;
    }

    #stoimost .fineprint {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    #stoimost .btn--gold,
    #stoimost .pricing-details__link span {
        transition: none;
    }

    #stoimost .btn--gold:hover,
    #stoimost .pricing-details__link:hover span {
        transform: none;
    }
}

/* ========================================
   БЛОК «О ЮРИСТЕ»
======================================== */

#o-yuriste {
    background: var(--premium-ivory);
    padding-top: 100px;
    padding-bottom: 100px;
}

#o-yuriste .about {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
}

/* Фотография */

#o-yuriste .about__photo {
    position: relative;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 180px 180px 18px 18px;
    background: var(--premium-navy);
    box-shadow: var(--premium-shadow);
}

#o-yuriste .about__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

#o-yuriste .about__photo-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 42px 24px 24px;
    color: var(--premium-white);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(16, 28, 42, 0.92)
    );
}

#o-yuriste .about__photo-label {
    color: var(--premium-gold-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#o-yuriste .about__photo-subtitle {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.4;
}

/* Текстовая часть */

#o-yuriste .about__body {
    min-width: 0;
}

#o-yuriste .about__body h2 {
    margin: 12px 0 14px;
    color: var(--premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 400;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

#o-yuriste .about__role {
    margin: 0 0 22px;
    color: var(--premium-gold);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#o-yuriste .about__intro {
    margin: 0 0 26px;
    color: var(--premium-text);
    font-size: 17px;
    line-height: 1.8;
}

/* Факты о специалисте */

#o-yuriste .facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0 0 30px;
    padding: 0;
    border-top: 1px solid var(--premium-border);
}

#o-yuriste .facts > div {
    min-width: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--premium-border);
}

#o-yuriste .facts dt {
    margin-bottom: 7px;
    color: var(--premium-muted);
    font-size: 12px;
    line-height: 1.5;
}

#o-yuriste .facts dd {
    margin: 0;
    color: var(--premium-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Подход к работе */

#o-yuriste .about__approach {
    margin: 0 0 28px;
    padding-left: 20px;
    border-left: 2px solid var(--premium-gold);
}

#o-yuriste .about__approach h3 {
    margin: 0 0 10px;
    color: var(--premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.4;
}

#o-yuriste .about__approach p {
    margin: 0;
    color: var(--premium-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Адаптация для планшетов и телефонов */

@media (max-width: 900px) {
    #o-yuriste {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    #o-yuriste .about {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 32px;
    }

    #o-yuriste .facts {
        gap: 0 16px;
    }
}

@media (max-width: 680px) {
    #o-yuriste {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    #o-yuriste .about {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #o-yuriste .about__photo {
        width: 100%;
        max-width: 390px;
        margin: 0 auto;
        aspect-ratio: 4 / 4.5;
        border-radius: 150px 150px 16px 16px;
    }

    #o-yuriste .about__body h2 {
        font-size: 34px;
    }

    #o-yuriste .about__intro {
        font-size: 16px;
    }

    #o-yuriste .facts {
        gap: 0 18px;
    }

    #o-yuriste .about__body > .btn {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    #o-yuriste .facts {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   БЛОК FAQ — ЧАСТЫЕ ВОПРОСЫ
======================================== */

#voprosy {
    padding-top: 96px;
    padding-bottom: 100px;
    background: var(--premium-white);
}

#voprosy .section__head {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

#voprosy .section__head h2 {
    margin-top: 12px;
    color: var(--premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.2;
}

#voprosy .section__intro {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--premium-muted);
    font-size: 15px;
    line-height: 1.8;
}

#voprosy .faq {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

/* Карточка вопроса */

#voprosy .faq__item {
    margin: 0 0 12px;
    border: 1px solid var(--premium-border);
    border-radius: 12px;
    background: var(--premium-white);
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

#voprosy .faq__item:hover {
    border-color: var(--premium-gold-light);
}

#voprosy .faq__item[open] {
    border-color: var(--premium-gold);
    background: #fffdf8;
    box-shadow: 0 10px 30px rgba(16, 28, 42, 0.045);
}

/* Заголовок вопроса */

#voprosy .faq__item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    color: var(--premium-navy);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    list-style: none;
    cursor: pointer;
}

#voprosy .faq__item summary::-webkit-details-marker {
    display: none;
}

#voprosy .faq__item summary::after {
    content: "+";
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--premium-gold-light);
    border-radius: 50%;
    color: var(--premium-gold);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

#voprosy .faq__item[open] summary::after {
    content: "−";
    color: var(--premium-white);
    background: var(--premium-navy);
    border-color: var(--premium-navy);
}

/* Ответ */

#voprosy .faq__item > p {
    margin: 0;
    padding: 0 26px 24px;
    color: var(--premium-muted);
    font-size: 15px;
    line-height: 1.85;
}

#voprosy .faq__item summary:focus-visible {
    outline: 2px solid var(--premium-gold);
    outline-offset: -4px;
    border-radius: 12px;
}

/* Планшеты и мобильные устройства */

@media (max-width: 680px) {
    #voprosy {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    #voprosy .section__head {
        margin-bottom: 30px;
    }

    #voprosy .faq__item summary {
        gap: 14px;
        padding: 18px;
        font-size: 15px;
    }

    #voprosy .faq__item > p {
        padding: 0 18px 20px;
        font-size: 14px;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    #voprosy .faq__item,
    #voprosy .faq__item summary::after {
        transition: none;
    }
}

/* ========================================
   КОНТАКТЫ — ПРЕМИАЛЬНОЕ ОФОРМЛЕНИЕ
======================================== */

#kontakty {
    padding-top: 96px;
    padding-bottom: 100px;
    background: var(--premium-ivory);
}

#kontakty .contacts__header {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

#kontakty .contacts__header h2 {
    margin: 12px 0 18px;
    color: var(--premium-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
}

#kontakty .contacts__lead {
    max-width: 620px;
    margin: 0 auto;
    color: var(--premium-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Основная карточка */

#kontakty .contacts__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 36px;
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(179, 148, 93, 0.35);
    border-radius: 22px;
    background: var(--premium-navy);
    box-shadow: var(--premium-shadow);
}

#kontakty .contacts__card-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

#kontakty .contacts__overline {
    margin: 0 0 14px;
    color: var(--premium-gold-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.6;
    text-transform: uppercase;
}

#kontakty .contacts__card h3 {
    margin: 0 0 16px;
    color: var(--premium-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.3;
}

#kontakty .contacts__description {
    max-width: 560px;
    margin: 0 0 28px;
    color: rgba(255, 254, 250, 0.78);
    font-size: 15px;
    line-height: 1.8;
}

/* Кнопки связи */

#kontakty .contacts__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

#kontakty .contacts__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 19px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

#kontakty .contacts__actions .btn--gold {
    border: 1px solid var(--premium-gold);
    color: var(--premium-navy-deep);
    background: var(--premium-gold-light);
}

#kontakty .contacts__actions .btn--gold:hover {
    border-color: var(--premium-white);
    background: var(--premium-white);
}

#kontakty .contacts__actions .btn--contact-outline {
    border: 1px solid rgba(214, 195, 156, 0.55);
    color: var(--premium-white);
    background: transparent;
}

#kontakty .contacts__actions .btn--contact-outline:hover {
    border-color: var(--premium-gold-light);
    color: var(--premium-gold-light);
    background: rgba(255, 255, 255, 0.06);
}

#kontakty .contacts__actions .btn:focus-visible {
    outline: 2px solid var(--premium-gold-light);
    outline-offset: 4px;
}

/* Юридическое примечание */

#kontakty .contacts__note {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 254, 250, 0.62);
    font-size: 12px;
    line-height: 1.8;
}

/* Декоративный элемент */

#kontakty .contacts__decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 220px;
    border-left: 1px solid rgba(214, 195, 156, 0.25);
    color: var(--premium-gold-light);
    text-align: center;
}

#kontakty .contacts__decoration-line {
    width: 36px;
    height: 1px;
    margin-bottom: 18px;
    background: var(--premium-gold);
}

#kontakty .contacts__decoration-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: 18px;
    border: 1px solid rgba(214, 195, 156, 0.5);
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 400;
}

#kontakty .contacts__decoration-caption {
    color: rgba(255, 254, 250, 0.72);
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Планшеты */

@media (max-width: 800px) {
    #kontakty {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    #kontakty .contacts__card {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #kontakty .contacts__decoration {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        min-height: auto;
        padding-top: 22px;
        border-top: 1px solid rgba(214, 195, 156, 0.25);
        border-left: 0;
    }

    #kontakty .contacts__decoration-line {
        display: none;
    }

    #kontakty .contacts__decoration-mark {
        width: 54px;
        height: 54px;
        margin: 0;
        font-size: 28px;
    }
}

/* Телефоны */

@media (max-width: 520px) {
    #kontakty {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    #kontakty .contacts__header {
        margin-bottom: 30px;
    }

    #kontakty .contacts__lead {
        font-size: 15px;
    }

    #kontakty .contacts__card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    #kontakty .contacts__actions {
        flex-direction: column;
        align-items: stretch;
    }

    #kontakty .contacts__actions .btn {
        width: 100%;
    }

    #kontakty .contacts__note {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #kontakty .contacts__actions .btn {
        transition: none;
    }
}

/* ========================================
   FOOTER — ПОДВАЛ САЙТА
======================================== */

.footer {
    padding: 38px 0 24px;
    color: var(--premium-white);
    background: var(--premium-navy-deep);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Верхняя часть */

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.footer__brand-mark {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--premium-gold);
    border-radius: 50%;
    color: var(--premium-gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.footer__brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__brand-title {
    color: var(--premium-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.3;
}

.footer__brand-subtitle {
    color: rgba(255, 254, 250, 0.6);
    font-size: 11px;
    line-height: 1.5;
}

.footer__policy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--premium-gold-light);
    font-size: 12px;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__policy-link:hover {
    color: var(--premium-white);
}

/* Разделительная линия */

.footer__divider {
    width: 100%;
    height: 1px;
    background: rgba(214, 195, 156, 0.24);
}

/* Юридическая информация */

.footer__legal {
    max-width: 850px;
    margin: 0;
    color: rgba(255, 254, 250, 0.6);
    font-size: 12px;
    line-height: 1.9;
}

/* Нижняя часть */

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
    margin: 0;
    color: rgba(255, 254, 250, 0.55);
    font-size: 11px;
    line-height: 1.7;
}

.footer__up {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--premium-gold-light);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer__up:hover {
    color: var(--premium-white);
}

.footer a:focus-visible {
    outline: 2px solid var(--premium-gold-light);
    outline-offset: 4px;
    border-radius: 3px;
}

/* Мобильная адаптация */

@media (max-width: 600px) {
    .footer {
        padding: 30px 0 22px;
    }

    .footer__inner {
        gap: 20px;
    }

    .footer__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .footer__policy-link {
        font-size: 12px;
    }

    .footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer__policy-link,
    .footer__up {
        transition: none;
    }
}

/* ИСПРАВЛЕНИЕ КОМПОНОВКИ КОНТАКТНОГО БЛОКА */

#kontakty .contacts {
    display: block;
    width: 100%;
    max-width: 100%;
}

#kontakty .contacts__header {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

#kontakty .contacts__card {
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
}

#kontakty .contacts__card-content {
    width: 100%;
    max-width: none;
}

#kontakty .contacts__card h3 {
    max-width: 620px;
    overflow-wrap: normal;
    word-break: normal;
}

#kontakty .contacts__description {
    max-width: 600px;
}

#kontakty .contacts__actions {
    width: 100%;
    align-items: center;
}

#kontakty .contacts__actions .btn {
    flex: 0 1 auto;
    white-space: normal;
}

@media (max-width: 800px) {
    #kontakty .contacts__card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    #kontakty .contacts__actions {
        align-items: stretch;
    }

    #kontakty .contacts__actions .btn {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* Скрытое поле для фильтрации простых ботов */
.quiz-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Фото адвоката: прямоугольный формат */

#o-yuriste .about__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
}

#o-yuriste .about__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 680px) {
    #o-yuriste .about__photo {
        width: 100%;
        max-width: 390px;
        aspect-ratio: 4 / 5;
        margin: 0 auto;
        border-radius: 12px;
    }
}



/* Финальная правка: фотография адвоката — прямоугольная */
#o-yuriste .about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
}

#o-yuriste .about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

@media (max-width: 680px) {
  #o-yuriste .about__photo {
    width: 100%;
    max-width: 390px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }
}


/* Уведомление о cookie и персональных данных */
.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice {
  position: fixed;
  z-index: 10000;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  color: #f8f5ee;
  background: rgba(18, 31, 48, 0.97);
  border: 1px solid rgba(198, 163, 95, 0.55);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.cookie-notice__content {
  min-width: 0;
}

.cookie-notice__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
}

.cookie-notice p {
  margin: 0 0 10px;
  color: rgba(248, 245, 238, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-notice__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.cookie-notice__links a {
  color: #e7c783;
  font-size: 0.85rem;
  text-underline-offset: 3px;
}

.cookie-notice__button {
  flex: 0 0 auto;
  cursor: pointer;
}

.footer__documents {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 24px;
}

@media (max-width: 680px) {
  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .cookie-notice__button {
    width: 100%;
  }

  .footer__documents {
    flex-direction: column;
    gap: 12px;
  }
}


/* Финальные правки: прямоугольная фотография и иконки мессенджеров в шапке */
.hero-photo,
.hero-photo__image,
#o-yuriste .about__photo,
#o-yuriste .about__photo img {
  border-radius: 0 !important;
}

.hero-photo {
  aspect-ratio: 4 / 5;
}

.header__messengers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(198, 163, 95, .65);
  border-radius: 50%;
  color: #c6a35f;
  background: rgba(255,255,255,.04);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.header__messenger svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.header__messenger span {
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
}

.header__messenger:hover,
.header__messenger:focus-visible {
  color: #172538;
  background: #c6a35f;
  border-color: #c6a35f;
}

@media (max-width: 1100px) {
  .header__inner {
    flex-wrap: wrap;
  }
  .header__messengers {
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .header__actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header__messengers {
    order: 2;
  }
  .header__callback {
    order: 3;
  }
}
