/*
Theme Name: Usadv — Евгения Григорьева
Theme URI: https://example.com
Author: 
Description: Одностраничный сайт юриста. Все текстовые блоки, изображения и повторяющиеся списки (услуги, кейсы, FAQ и т.д.) редактируются через ACF Pro на странице, назначенной шаблоном "Главная (front-page.php)".
Version: 1.0.0
Requires PHP: 7.4
Text Domain: usadv
*/

/* ============================================
   Евгения Григорьева — юридические услуги
   Вёрстка по макету Figma (frame 1920×4727)
   ============================================ */

:root {
  --burgundy: #94132a;
  --burgundy-deep: #8c0624;
  --gold: #cba670;
  --ink: #1b1b1b;
  --ink-soft: #0f0f0f;
  --gray: #545454;
  --beige: #f2f0eb;
  --white: #fff;
  --line: rgba(0, 0, 0, .1);
  --line-strong: rgba(0, 0, 0, .14);

  --r-sm: 5px;
  --r-md: 10px;
  --r-pill: 50px;

  --f-display: 'Playfair Display', serif;
  --f-body: 'Inter', sans-serif;
  --f-alt: 'Montserrat', sans-serif;
  --f-roboto: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.19;
  color: var(--gray);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1680px, 87.5%);                     /* 1680 / 1920 */
  margin-inline: auto;
}

/* ---- Заголовки секций ---- */
.section { padding-top: 100px; }

.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 3.65vw, 4.375rem);   /* 70px */
  line-height: 1.21;
  color: var(--ink);
}

.underline-gold {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
}

.section > .container > .section-title,
.cases-head { margin-bottom: 40px; }

.block-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.1vw, 2.5rem);      /* 40px */
  line-height: 1.2;
  color: #000;
  margin-bottom: 24px;
}
.block-title--light { color: var(--white); }

/* ---- Кнопки ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 32px;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.125rem;                          /* 18px */
  line-height: 1.22;
  cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s, transform .25s;
}
.btn img {
  width: auto; height: 20px;
  transition: transform .25s;
}
/* стрелка внутри кнопки уезжает вперёд */
.btn:hover img { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--ink-soft); }
.btn-gold:hover {
  background: #dbb984;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(203, 166, 112, .45);
}

.btn-burgundy { background: var(--burgundy); color: var(--white); font-family: var(--f-alt); }
.btn-burgundy:hover {
  background: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(148, 19, 42, .38);
}

.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--gold); }
.btn-outline:hover {
  background: var(--gold);
  color: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(203, 166, 112, .35);
}
/* стрелка на золотой обводке перекрашивается в тёмную */
.btn-outline:hover img { filter: brightness(0); }

.btn-sm { padding: 15px 25px; font-size: 1rem; font-weight: 300; }
.btn-pill { border-radius: var(--r-pill); }
.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 750px;
  background: var(--burgundy);
  overflow: hidden;
  isolation: isolate;
}

.hero-strip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4.64%;                                  /* 89 / 1920 */
  background: url('assets/images/hero-side-strip.png') center/cover;
  z-index: 1;
}

.hero-photo {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 49.7%;                                  /* 954 / 1920 */
  background: url('assets/images/hero-bg.png') center/cover;
  background-color: #fff;
}

/* ---- Шапка поверх hero ---- */
.site-header {
  position: relative;
  z-index: 10;
  padding-top: 15px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo img {
  width: 71px; height: 54px; object-fit: contain;
  transition: transform .3s;
}
.logo:hover img { transform: scale(1.06); }

.nav { display: flex; gap: 30px; margin-left: 76px; }
.nav a {
  position: relative;
  font-family: var(--f-alt);
  font-weight: 500;
  font-size: 1.25rem;                            /* 20px */
  color: var(--white);
  transition: color .25s;
}
/* золотая линия разъезжается из центра */
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .28s ease;
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after { transform: scaleX(1); }

.header-socials { display: flex; gap: 7px; margin-left: auto; }
.header-socials a { transition: transform .25s, filter .25s; }
.header-socials a:hover { transform: translateY(-3px); filter: brightness(1.15); }
.header-socials img { width: 34px; height: 34px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  justify-content: center;
  background: none; border: none; cursor: pointer;
  margin-left: auto;
}
.burger span { height: 2px; background: var(--white); border-radius: 2px; }

/* Облегчённая шапка для не-главных страниц (вне hero-секции) */
.site-header--plain { background: var(--burgundy); padding: 15px 0; z-index: 10; }

/* ---- Контент hero ---- */
.hero-inner { position: relative; z-index: 5; }
.hero-content { max-width: 780px; padding-top: 71px; padding-bottom: 90px; }

.hero-eyebrow {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 2.6vw, 3.125rem);       /* 50px */
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 5px;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 3.65vw, 4.375rem);    /* 70px */
  line-height: 1.21;
  color: var(--white);
  margin-bottom: 25px;
}
.hero-desc {
  font-size: clamp(1.05rem, 1.25vw, 1.5rem);     /* 24px */
  line-height: 1.21;
  color: var(--white);
  margin-bottom: 50px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 47px; }

.trust-row { display: flex; align-items: center; gap: 30px; }
.trust-row li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 30px;
  border-right: 1px solid var(--gold);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.19;
}
.trust-row li:last-child { border-right: none; padding-right: 0; }
.trust-row img { width: 35px; height: 35px; flex-shrink: 0; }

/* ---- Портрет и слоган ---- */
.hero-portrait {
  position: absolute;
  left: 45.94%;                                  /* 882 / 1920 */
  bottom: 0;
  width: 25.26%;                                 /* 485 / 1920 */
  height: auto;
  z-index: 4;
}
.hero-slogan {
  position: absolute;
  left: 71.5%;                                   /* 1373 / 1920 */
  top: 22%;                                      /* 166 / 750 */
  width: 22.3%;                                  /* 428 / 1920 */
  z-index: 6;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 3.125rem);     /* 50px */
  line-height: 1.22;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* ============================================
   ОБО МНЕ
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 688fr 972fr;
  gap: 20px;
  align-items: start;
}

.about-values {
  position: relative;
  min-height: 528px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .78)),
    url('assets/images/about-photo.png') center/cover;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.about-values h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.5rem;                             /* 24px */
  line-height: 1.21;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.about-values p { font-size: 1rem; line-height: 1.19; color: var(--gray); }
.about-values .btn { align-self: flex-start; margin-top: auto; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
.stat {
  min-height: 252px;
  padding: 20px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--burgundy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .3s, box-shadow .3s;
}
.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(148, 19, 42, .3);
}
.stat .stat-num { transition: color .3s; }
.stat:hover .stat-num { color: var(--gold); }
.stat--wide { grid-column: 1 / -1; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 3.65vw, 4.375rem);    /* 70px */
  line-height: .9;
}
.stat-label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.25vw, 1.5rem);     /* 24px */
  line-height: 1.21;
}

/* ============================================
   УСЛУГИ
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 20px;
}
.service {
  min-height: 218px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  transition: box-shadow .28s, transform .28s, border-color .28s;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(148, 19, 42, .12);
}
.service img {
  width: 35px; height: 35px; object-fit: contain;
  margin-bottom: 25px;
  transition: transform .28s;
}
.service:hover img { transform: scale(1.12); }
.service h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.25rem;                            /* 20px */
  line-height: 1.2;
  color: var(--gray);
  margin-bottom: 10px;
  transition: color .28s;
}
.service:hover h3 { color: var(--burgundy); }
.service p { font-size: 1rem; line-height: 1.19; }

/* ---- Прайс ---- */
.pricing {
  margin-top: 20px;
  padding: 50px 60px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--burgundy);
  color: var(--white);
}
.pricing-row {
  display: grid;
  grid-template-columns: 253fr 441fr 411fr 455fr;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gold);
}
.pricing-col { display: flex; gap: 25px; }
.pricing-col:not(:first-child) { border-left: 1px solid var(--gold); padding-left: 55px; }
.pricing-col img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.pricing-col h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 10px;
}
.pricing-col h4 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.25vw, 1.5rem);     /* 24px */
  line-height: 1.21;
  color: var(--white);
  margin-bottom: 5px;
}
.pricing-col--intro p { font-size: 1.25rem; line-height: 1.2; }
.pricing-col .price,
.pricing-col .duration { display: block; font-size: 1rem; line-height: 1.19; }
.pricing-col .price { margin-bottom: 5px; }
.pricing-col .price--free { font-weight: 700; font-size: 1.25rem; }

.pricing-note { margin: 15px 0 23px; font-size: 1.125rem; line-height: 1.22; }
.pricing .btn-gold { color: #000; }

/* ============================================
   КЕЙСЫ
   ============================================ */
.cases-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.slider-nav { display: flex; gap: 20px; }
.slider-btn {
  width: 47px; height: 47px;
  border: none; border-radius: 50%;
  background: none; padding: 0; cursor: pointer;
  transition: transform .25s, box-shadow .25s, opacity .25s;
}
.slider-btn:hover { transform: scale(1.1); box-shadow: 0 8px 20px rgba(148, 19, 42, .35); }
.slider-btn:active { transform: scale(.96); }
.slider-btn[disabled] { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.slider-btn img { width: 100%; height: 100%; }

.cases-viewport { overflow: hidden; }
.cases-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 67.44%;                      /* 1133 / 1680 */
  gap: 20px;
  transition: transform .4s ease;
}

.case {
  display: grid;
  grid-template-columns: 587fr 372fr;             /* текст / документ */
  gap: 75px;
  min-height: 615px;
  padding: 53px 40px 47px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
}
.case-body { display: flex; flex-direction: column; gap: 30px; }
.case-step { display: grid; grid-template-columns: 69px 1fr; gap: 51px; position: relative; }
.case-step::after {
  content: '';
  position: absolute;
  left: 94px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--burgundy);
}
.case-icon {
  width: 69px; height: 69px;
  border-radius: 50%;
  background: var(--beige);
  display: grid;
  place-items: center;
}
.case-icon img { width: 43px; height: 43px; object-fit: contain; }
.case-content h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.5rem;                              /* 24px */
  line-height: 1.21;
  color: #000;
  margin-bottom: 15px;
}
.case-content p { font-size: 1rem; line-height: 1.19; color: #000; }
/* обёртка-ссылка для Fancybox */
.case-doc-link {
  position: relative;
  display: block;
  height: 0;
  min-height: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
}
.case-doc {
  /* height:0 + min-height:100% — картинка тянется на всю строку,
     но не участвует в расчёте её высоты (высоту задаёт текст) */
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .45s ease, filter .35s;
}
.case-doc-link:hover .case-doc { transform: scale(1.06); filter: brightness(.65); }

/* подпись «Смотреть документ», выезжающая по наведению */
.case-zoom {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--r-pill);
  background: rgba(148, 19, 42, .9);
  color: var(--white);
  font-size: .95rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .35s, translate .35s;
}
.case-doc-link:hover .case-zoom { opacity: 1; translate: -50% -50%; }
.case-doc-link .case-zoom { translate: -50% calc(-50% + 12px); }

/* ============================================
   FAQ + ЗАЯВКА
   ============================================ */
.faq-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: stretch; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 14px 25px;
  border-radius: var(--r-pill);
  font-size: 1.125rem;                            /* 18px */
  line-height: 1.22;
  margin-bottom: 35px;
}
.badge img { width: 30px; height: 28px; object-fit: contain; }
.badge--burgundy { background: var(--burgundy); color: var(--white); }
.badge--burgundy img { filter: brightness(0) invert(1); }
.badge--white { background: var(--white); color: var(--ink-soft); }

.faq-card {
  padding: 40px 30px;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: var(--r-md);
  background: var(--white);
}
.accordion { display: flex; flex-direction: column; gap: 15px; }
.accordion-item {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--white);
  transition: border-radius .2s, border-color .25s, box-shadow .25s;
}
.accordion-item:hover { border-color: var(--burgundy); box-shadow: 0 6px 18px rgba(148, 19, 42, .1); }
.accordion-item.is-open { border-radius: 28px; border-color: var(--burgundy); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 30px;
  background: none; border: none; cursor: pointer;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.125rem;                            /* 18–20px */
  line-height: 1.2;
  color: #000;
  text-align: left;
}
.accordion-trigger { transition: color .25s; }
.accordion-trigger:hover { color: var(--burgundy); }
.accordion-trigger i {
  flex-shrink: 0;
  width: 37px; height: 37px;
  border: 1px solid rgba(0, 0, 0, .45);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .3s, background .25s, border-color .25s;
}
.accordion-trigger i img { width: 17px; height: 17px; transition: filter .25s; }
.accordion-trigger:hover i { background: var(--burgundy); border-color: var(--burgundy); }
.accordion-trigger:hover i img { filter: brightness(0) invert(1); }
.accordion-item.is-open .accordion-trigger i {
  transform: rotate(45deg);
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.accordion-item.is-open .accordion-trigger i img { filter: brightness(0) invert(1); }

.accordion-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.accordion-item.is-open .accordion-body { grid-template-rows: 1fr; }
.accordion-body > p { overflow: hidden; padding: 0 30px; font-size: 1rem; line-height: 1.35; }
.accordion-item.is-open .accordion-body > p { padding-bottom: 20px; }

/* ---- Карточка заявки ---- */
.contact-card {
  position: relative;
  border-radius: var(--r-md);
  background: url('assets/images/faq-photo.png') center/cover;
  overflow: hidden;
  color: var(--white);
}
.contact-card::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.contact-inner { position: relative; height: 100%; padding: 40px 30px; display: flex; flex-direction: column; }
.contact-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.5625rem);    /* 25px */
  line-height: 1.2;
  margin-bottom: 40px;
}

.contact-form { margin-bottom: 45px; }
.contact-form-message {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 1rem;
  line-height: 1.35;
}
.contact-form-message--success {
  background: rgba(203, 166, 112, .18);
  border: 1px solid rgba(203, 166, 112, .5);
  color: var(--white);
}
.contact-form-message--error {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--white);
}
.contact-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-form input {
  width: 100%;
  padding: 20px 30px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--f-alt);
  font-weight: 300;
  font-size: 1.125rem;
  color: #000;
  text-align: center;
}
.contact-form input::placeholder { color: #000; opacity: 1; transition: opacity .2s; }
.contact-form input {
  transition: box-shadow .25s, transform .25s;
}
.contact-form input:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.contact-form input:focus {
  outline: 2px solid var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(203, 166, 112, .4);
}
.contact-form input:focus::placeholder { opacity: .45; }
.contact-form .btn { padding: 21px 30px; font-family: var(--f-alt); font-weight: 400; }

.contact-divider {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.3vw, 1.5625rem);    /* 25px */
  line-height: 1.2;
  margin-bottom: 25px;
}
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: auto; }
.method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 12px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: #000;
  font-family: var(--f-roboto);
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.5625rem);       /* 25px */
  transition: transform .25s, box-shadow .25s, background .25s;
}
.method:hover {
  transform: translateY(-3px);
  background: var(--gold);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}
.method img {
  width: 40px; height: 40px;
  object-fit: contain;
  transition: transform .3s;
}
.method:hover img { transform: scale(1.1) rotate(-6deg); }

/* ============================================
   ПОДВАЛ
   ============================================ */
.site-footer {
  position: relative;
  margin-top: 100px;
  padding: 60px 0 0;
  background: var(--burgundy);
  color: var(--white);
  overflow: hidden;
}
.footer-strip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5.4%;                                    /* 104 / 1920 */
  background: url('assets/images/footer-strip.png') center/cover;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-col h4,
.footer-socials a {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.375rem;                            /* 22px */
  line-height: 1.23;
  color: var(--white);
}
.footer-col h4 { margin-bottom: 25px; }
.footer-socials { display: flex; flex-direction: column; gap: 15px; margin-bottom: 18px; }
.footer-socials a { transition: color .2s; }
.footer-socials a:hover { color: var(--gold); }
.footer-note { font-size: .875rem; line-height: 1.21; max-width: 240px; }

.footer-nav { display: flex; flex-direction: column; gap: 15px; }
.footer-nav a { font-size: 1.125rem; line-height: 1.22; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }

.footer-col--right { text-align: right; }
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 1rem;
  color: #fdfdff;
}
.footer-contact img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-contact a { transition: color .25s; }
.footer-contact a:hover { color: var(--gold); }
.footer-col--right .btn { margin-top: 20px; }

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0 30px;
  font-size: .875rem;
  line-height: 1.21;
}
.footer-bottom a:hover { color: var(--gold); }

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 1400px) {
  .nav { margin-left: 30px; gap: 22px; }
  .nav a { font-size: 1.05rem; }
  .hero-slogan { left: 68%; width: 27%; }
  .pricing { padding: 40px; }
  .pricing-col:not(:first-child) { padding-left: 30px; }
  .pricing-col { gap: 16px; }
  .case { padding: 36px 28px; gap: 28px; }
  .case-step { gap: 30px; }
  .case-step::after { left: 84px; }
}

@media (max-width: 1100px) {
  .section { padding-top: 70px; }

  /* шапка */
  .nav, .header-socials { display: none; }
  .burger { display: flex; }
  .header-inner { position: relative; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    z-index: 20;
    margin: 0;
    padding: 22px 26px;
    gap: 18px;
    background: var(--burgundy);
    border: 1px solid var(--gold);
    border-radius: var(--r-md);
  }

  /* hero — портрет уходит фоновым слоем вправо, под текст */
  .hero { min-height: 0; }
  .hero-photo { display: none; }
  .hero-strip { display: none; }
  .hero-content { max-width: none; padding-top: 40px; padding-bottom: 48px; }

  .hero-portrait {
    position: absolute;
    left: auto;
    right: -12%;
    bottom: 0;
    width: min(82%, 380px);                       /* не даём разрастись на планшетах */
    height: auto;
    opacity: .55;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
            mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  }
  .hero-slogan {
    position: static;
    width: min(100% - 48px, 1680px);
    margin: 24px auto 40px;
    text-align: center;
    color: var(--white);
    /* плотная обводка тенью — слоган должен читаться на любом участке фото */
    text-shadow:
      0 0 3px rgba(0, 0, 0, .8),
      0 0 12px rgba(0, 0, 0, .6),
      0 2px 18px rgba(0, 0, 0, .5);
  }
  .trust-row { flex-wrap: wrap; gap: 18px; }
  .trust-row li {
    border-right: none; padding-right: 0; flex: 1 1 240px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
  }

  /* обо мне */
  .about-grid { grid-template-columns: 1fr; }
  .about-values { min-height: 0; }

  /* услуги */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-row { grid-template-columns: 1fr; gap: 26px; }
  .pricing-col:not(:first-child) {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--gold); padding-top: 26px;
  }

  /* кейсы */
  .cases-track { grid-auto-columns: 100%; }
  .case { grid-template-columns: 1fr; min-height: 0; }
  .case-doc { height: 320px; }

  /* faq */
  .faq-contact-grid { grid-template-columns: 1fr; }

  /* подвал */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--right { grid-column: 1 / -1; text-align: left; }
  .footer-contact { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .case { gap: 24px; }
  .section { padding-top: 56px; }

  .btn { padding: 18px 24px; font-size: 1rem; }
  .hero-buttons { gap: 14px; }
  .hero-buttons .btn { width: 100%; }

  .about-values { padding: 22px; }
  .about-stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; padding: 22px; }

  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .pricing { padding: 26px 22px; }

  .faq-card { padding: 26px 18px; }
  .accordion-trigger { padding: 14px 18px; font-size: 1rem; }
  .accordion-trigger i { width: 30px; height: 30px; }
  .accordion-body > p { padding-inline: 18px; }

  .contact-inner { padding: 26px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; gap: 12px; }

  .case { padding: 24px 18px; }
  .case-step { grid-template-columns: 52px 1fr; gap: 18px; }
  .case-step::after { display: none; }
  .case-icon { width: 52px; height: 52px; }
  .case-icon img { width: 32px; height: 32px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
