/* === BASE === */
:root {
  --brand-red: #B71C1C;
  --brand-red-dark: #7F0000;
  --brand-red-light: #E53935;
  --gold: #ffde86;
  --dark: #1A1A1A;
  --gray: #4A4A4A;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  min-width: 370px;
}

h1, h2, h3 { font-family: 'El Messiri', sans-serif; font-weight: 700; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Шиммер — бегущий блик по кнопке */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  background-size: 220% 100%;
  background-position: -120% 0;
  animation: btn-shimmer 3.2s ease-in-out infinite;
}
.btn-outline::before { animation-delay: 1.6s; }

@keyframes btn-shimmer {
  0%   { background-position: -120% 0; }
  60%  { background-position: 120% 0; }
  100% { background-position: 120% 0; }
}

.btn-gold { background: var(--gold); color: var(--brand-red-dark); }
.btn-gold:hover { background: #ffe9a8; }

.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--brand-red-dark); }

@media (prefers-reduced-motion: reduce) {
  .btn::before { animation: none; }
  .service-card::before { animation: none; }
}

/* === HEADER === */
header {
  background: var(--white);
  padding: 12px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  text-decoration: none;
}

.logo img { height: 50px; width: auto; }

.logo-text { font-family: 'El Messiri', sans-serif; }
.logo-text strong { display: block; font-size: 18px; font-weight: 800; }
.logo-text span { font-size: 11px; color: var(--gray); }

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all .2s;
}

.main-nav a:hover { background: var(--light); color: var(--brand-red); }

.dropdown { position: relative; }

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all .2s;
}

.dropdown-toggle::after { content: "▼"; font-size: 10px; color: var(--gray); }

/* Отбивка в мобильном меню: телефон + адрес + МАКС/Телеграм (ЛОГ 67; скрыто на десктопе) */
.mobile-nav-contacts { display: none; }

.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .2s;
  z-index: 1001;
  border: 1px solid #eee;
}

.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown--end .dropdown-menu { left: auto; right: 0; }

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-weight: 400;
  border-radius: 0;
}

.dropdown-menu a:hover { background: var(--light); }

/* Вложенное подменю (Военный юрист → 6 аудиторий) */
.dropdown-sub { position: relative; }
.dropdown-sub-link {
  display: block;
  padding: 10px 34px 10px 18px;
  font-weight: 400;
  border-radius: 0;
  text-decoration: none;
  color: var(--dark);
}
.dropdown-sub-link:hover { background: var(--light); }
.dropdown-sub-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  transition: transform .2s, color .2s;
}
.dropdown-sub-toggle:hover { color: var(--brand-red); }
.dropdown-sub.open .dropdown-sub-toggle { transform: translateY(-50%) rotate(90deg); }
.dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  min-width: 280px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all .2s;
  z-index: 1002;
  border: 1px solid #eee;
}
.dropdown-sub:hover .dropdown-submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.dropdown-submenu a {
  display: block;
  padding: 10px 18px;
  font-weight: 400;
  border-radius: 0;
}
.dropdown-submenu a:hover { background: var(--light); }

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

.header-phone { text-align: right; }
.header-phone a {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-phone a::before { content: "📞"; font-size: 16px; }
.header-phone small { display: block; color: var(--gray); font-size: 11px; }

/* === SECTIONS === */
section { padding: 70px 0; }

.section-title {
  font-size: 36px;
  color: var(--brand-red-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 700px;
}

.section-header { text-align: center; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* === HERO === */
.hero {
  background: #A3050E;
  color: var(--white);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

/* Hero-мини для внутренних страниц (услуги, блог) — десктопный padding;
   на узких экранах уменьшается в media queries ниже. */
.hero.hero--mini { padding: 140px 0 70px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
  padding: 70px 0;
}

.hero-content h1 { font-size: 44px; line-height: 1.1; margin-bottom: 20px; }
.hero-content h1 span { color: var(--gold); }

.hero-lead {
  font-size: 18px;
  color: #ffdddd;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #ffcccc;
  margin-bottom: 12px;
}

.hero-stat .num {
  font-family: 'El Messiri', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 0;
}

.hero-visual img {
  height: 100%;
  max-width: none;
  width: auto;
  object-fit: cover;
  object-position: left center;
}

.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ffcccc;
  background: rgba(255,255,255,.1);
  padding: 10px 16px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

.hero-badge .icon { color: var(--gold); font-size: 18px; }

/* === ABOUT === */
.about { background: var(--light); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.about-logo {
  text-align: center;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.about-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray);
  font-size: 16px;
}

.about-features {
  list-style: none;
  margin-top: 24px;
}

.about-features li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  color: var(--dark);
}

.about-features li::before { content: "🛡"; color: var(--brand-red); margin-right: 12px; }

/* === Service parts: разбивка контента услуги на мелкие секции (как на voenniy-yurist) === */
.service-parts { padding: 56px 0; background: #faf7f7; }
.service-parts + .service-parts { background: #fff; }
.service-parts .section-header { margin-bottom: 28px; }
.service-parts-body { max-width: 920px; margin: 0 auto; }
.service-parts-body p { color: var(--dark); line-height: 1.7; }
.service-parts-body p:last-child { margin-bottom: 0; }
.service-parts-body .btn { margin-top: 8px; }
/* ul.about-features внутри подсекции → карточки сеткой */
.service-parts ul.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 0;
}
.service-parts ul.about-features li {
  background: var(--white);
  padding: 18px 20px;
  border: 1px solid #ececec;
  border-left: 4px solid var(--brand-red);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  align-items: flex-start;
}
@media (max-width: 600px) {
  .service-parts { padding: 40px 0; }
  .service-parts ul.about-features { grid-template-columns: 1fr; }
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border-top: 4px solid var(--brand-red);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

/* Шиммер — бегущий блик по плитке услуги (диагональная серебристая полоса) */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(0,0,0,.06) 50%, transparent 62%);
  background-size: 220% 100%;
  background-position: -120% 0;
  animation: btn-shimmer 3.6s ease-in-out infinite;
}
.service-card:nth-child(2)::before { animation-delay: .5s; }
.service-card:nth-child(3)::before { animation-delay: 1s; }
.service-card:nth-child(4)::before { animation-delay: 1.5s; }
.service-card:nth-child(5)::before { animation-delay: 2s; }
.service-card:nth-child(6)::before { animation-delay: 2.5s; }
.service-card:nth-child(7)::before { animation-delay: 3s; }

.service-card .icon {
  height: 54px;
  width: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 18px;
  color: var(--brand-red-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}

a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card__more {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.service-card__more::after { content: "→"; transition: transform .2s; }
.service-card:hover .service-card__more { gap: 10px; }
.service-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* === BANKRUPTCY BANNER === */
.bankruptcy {
  background: linear-gradient(135deg, #8B0000 0%, var(--brand-red) 100%);
  color: var(--white);
}

.bankruptcy-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 24px;
}

.bankruptcy-header img {
  max-width: 180px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)) drop-shadow(0 0 30px rgba(255,255,255,.4));
}

.bankruptcy-header-text { text-align: left; }

.bankruptcy .section-title { color: var(--white); font-size: 38px; }
.bankruptcy .section-subtitle { color: #ffcccc; }

.bankruptcy-amount {
  font-size: 72px;
  font-weight: 800;
  color: var(--gold);
  font-family: 'El Messiri', sans-serif;
  margin: 8px 0 24px;
  text-align: center;
  text-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.bankruptcy-cta { text-align: center; margin-bottom: 40px; }

.bankruptcy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bankruptcy-feature {
  background: rgba(255,255,255,.12);
  padding: 28px 20px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
}

.bankruptcy-feature .icon {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.bankruptcy-feature h3 { font-size: 18px; margin-bottom: 8px; }
.bankruptcy-feature p { font-size: 14px; color: #ffcccc; }

/* === PROCESS === */
.process { background: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr 1fr;
  grid-template-areas:
    "step1 step1"
    "step2 step4"
    "step3 step4";
  gap: 16px;
}

.process-step {
  text-align: center;
  padding: 28px 16px;
  background: var(--light);
  border-radius: 8px;
}

.process-step:nth-child(1) { grid-area: step1; }
.process-step:nth-child(2) { grid-area: step2; }
.process-step:nth-child(3) { grid-area: step3; }
.process-step:nth-child(4) {
  grid-area: step4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-step .num {
  width: 50px;
  height: 50px;
  background: var(--brand-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 14px;
  font-family: 'El Messiri', sans-serif;
}

.process-step h3 { font-size: 17px; color: var(--brand-red-dark); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--gray); }

/* === RESULTS === */
.results { background: var(--light); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.result-card {
  background: var(--white);
  padding: 28px;
  border-radius: 8px;
  border-left: 4px solid var(--brand-red);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.result-card h3 {
  font-size: 18px;
  color: var(--brand-red-dark);
  margin-bottom: 12px;
}

.result-card p { color: var(--gray); font-size: 14px; margin-bottom: 14px; }

.result-card .sum {
  color: var(--brand-red);
  font-size: 20px;
  font-weight: 800;
  font-family: 'El Messiri', sans-serif;
}

/* === REVIEWS === */
.reviews { background: var(--white); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--light);
  padding: 28px;
  border-radius: 8px;
}

.review-card p { font-style: italic; color: var(--gray); margin-bottom: 16px; }
.review-card strong { color: var(--brand-red-dark); }

/* --- Полная карточка отзыва (страница /otzyvy/) --- */
.review-card--full { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.review-card--full .review-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; line-height: 1; }
.review-source { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.review-source--yandex { background: #FFE000; color: #000; }
.review-source--2gis { background: #0AA65B; color: #fff; }
.review-card--full .review-text { font-style: italic; color: var(--gray); margin: 0; line-height: 1.55; max-height: 180px; overflow-y: auto; padding-right: 6px; }
.review-card--full .review-text::-webkit-scrollbar { width: 6px; }
.review-card--full .review-text::-webkit-scrollbar-thumb { background: #c8ccd2; border-radius: 3px; }
.review-card--full .review-text::-webkit-scrollbar-track { background: transparent; }
.review-answer { background: #fff8e8; border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--gray); }
.review-answer strong { color: var(--brand-red-dark); }
.review-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; }
.review-author { color: var(--brand-red-dark); font-size: 15px; font-style: normal; }
.review-date { color: #999; font-size: 13px; white-space: nowrap; }
.reviews-summary { margin-top: 18px; color: var(--gray); font-size: 15px; }
.reviews-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }
@media (max-width: 600px) { .review-card--full .review-card__foot { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* === Слайдер отзывов на страницах услуг (ЛОГ 61) === */
.reviews-slider { position: relative; margin-top: 8px; }
.reviews-slider__viewport { overflow: hidden; padding: 4px 0; }
.reviews-slider__track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.review-slide { flex: 0 0 100%; max-width: 100%; padding: 0 10px; box-sizing: border-box; }
.review-slide .review-card--full { height: 100%; }
.reviews-slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--white); color: var(--gold);
  font-size: 26px; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .2s, color .2s, opacity .2s;
}
.reviews-slider__btn:hover, .reviews-slider__btn:focus-visible { background: var(--gold); color: #fff; outline: none; }
.reviews-slider__btn--prev { left: -10px; }
.reviews-slider__btn--next { right: -10px; }
.reviews-slider__btn[disabled] { opacity: 0; pointer-events: none; }
.reviews-slider__dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.reviews-slider__dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #d9d9d9; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.reviews-slider__dot.is-active { background: var(--gold); transform: scale(1.25); }
.reviews-slider__all { text-align: center; margin-top: 22px; }
.reviews-slider__all a { display: inline-block; font-weight: 700; color: var(--brand-red-dark); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: color .2s; }
.reviews-slider__all a:hover { color: var(--gold); }
@media (min-width: 701px) {
  .review-slide { flex: 0 0 50%; max-width: 50%; }
  .reviews-slider__btn--prev { left: -22px; }
  .reviews-slider__btn--next { right: -22px; }
}
@media (max-width: 700px) {
  .reviews-slider__btn { width: 38px; height: 38px; font-size: 22px; }
  .reviews-slider__btn--prev { left: 2px; }
  .reviews-slider__btn--next { right: 2px; }
  .review-slide { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-slider__track { transition: none; }
}

/* === FORM SECTION === */
.form-section {
  background: #5F1413;
  color: var(--white);
  padding: 0;
  overflow: hidden;
}

.form-section .section-title { color: var(--white); text-align: center; }
.form-section .section-subtitle {
  color: #d1d5db;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.form-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 20px 0px;
}

.form-head { padding-bottom: 30px; }

.form-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.form-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  max-width: 100%;
}

.form-media video,
.form-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 50px;
}

.form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  color: var(--dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px; /* ≥16px — чтобы iOS Safari не зумил страницу при фокусе */
  font-family: inherit;
}

.form-card textarea {
  min-height: 100px;
  resize: vertical;
  grid-column: 1 / -1;
}

.form-card button { width: 100%; }

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  margin-top: 14px;
}

/* === CONTACTS === */
.contacts { background: var(--light); }

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contacts-info p {
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--gray);
}

.contacts-info a { color: var(--brand-red); text-decoration: none; font-weight: 700; }
.contacts-info strong { color: var(--dark); }

.map-placeholder {
  background: #e0e0e0;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.sign-photo { margin-top: 0; }
.sign-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* === FOOTER === */
footer {
  background: var(--dark);
  color: #aaa;
  padding: 24px 0;
  font-size: 13px;
  text-align: center;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  text-align: left;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'El Messiri', sans-serif;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  -webkit-overflow-scrolling: touch;
  animation: modalIn .22s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

.modal-head {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  padding: 26px 28px 22px;
  border-radius: 16px 16px 0 0;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.16);
  border: none; border-radius: 50%;
  font-size: 22px; line-height: 1;
  cursor: pointer; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.modal-close:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }
.modal-title {
  font-family: 'El Messiri', serif;
  font-size: 24px; font-weight: 700;
  margin: 0 0 6px;
  padding-right: 36px;
}
.modal-subtitle {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  margin: 0;
}

.modal-body { padding: 24px 28px 26px; }

/* --- Поля формы (scoped: только внутри модалки) --- */
.mf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.mf-field { display: flex; flex-direction: column; }
.mf-label {
  font-size: 13px; font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d2c6;
  border-radius: 9px;
  font: 400 16px/1.4 inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.modal textarea {
  min-height: 96px;
  resize: vertical;
}
.modal input::placeholder,
.modal textarea::placeholder { color: #9a948a; }
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(183,28,28,.14);
}
/* Кастомная стрелка для select */
.modal select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237F0000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.mf-submit {
  width: 100%;
  margin-top: 4px;
  padding: 15px 24px;
  font-size: 15px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(183,28,28,.18);
}
.mf-submit:hover { box-shadow: 0 6px 18px rgba(183,28,28,.26); }
.mf-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  margin: 14px 0 0;
  line-height: 1.5;
}
.mf-note::before {
  content: "🔒 ";
  font-size: 11px;
}

/* Адаптив модалки */
@media (max-width: 600px) {
  .modal-overlay { padding: 12px; }
  .modal-head { padding: 22px 20px 18px; }
  .modal-title { font-size: 21px; }
  .modal-body { padding: 20px 18px 22px; }
  .mf-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 370px) {
  .modal-head { padding: 20px 16px 16px; }
  .modal-body { padding: 18px 14px 20px; }
  .modal-title { font-size: 19px; }
}

/* === Контент услуг/блога (вставляется из БД) === */
.service-cta {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--light);
  border-radius: 10px;
  border-left: 4px solid var(--brand-red);
}
.service-cta .link-phone,
.link-phone {
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--brand-red);
}
.service-cta .link-phone:hover,
.link-phone:hover { color: var(--brand-red-dark); border-bottom-color: var(--brand-red-dark); }

/* Таблицы в контенте — горизонтальный скролл на узких экранах */
.about-text table,
.about-text .table-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.about-text table { border-collapse: collapse; width: 100%; }
.about-text table th, .about-text table td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; }

/* === ADAPTIVE === */
@media (max-width: 1024px) {
  .services-grid,
  .bankruptcy-features,
  .results-grid,
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1150px) {
  .header-inner { flex-wrap: nowrap; }
  .logo-text strong { font-size: 15px; }
  .logo-text span { display: none; }
  .logo img { height: 40px; }
  .header-phone { display: none; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h, 57px); left: 0; right: 0; bottom: 0;
    z-index: 1001;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.active { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; }
  .main-nav .dropdown { width: 100%; }
  .main-nav .dropdown-toggle { width: 100%; padding: 12px 0; }

  .mobile-nav-contacts { display: block; width: 100%; padding: 4px 0 8px; }
  .mobile-nav-divider { border: none; border-top: 1px solid #e2e3e6; margin: 6px 0 14px; }
  .mobile-nav-phone { display: block; color: var(--brand-red); font-weight: 700; font-size: 18px; text-decoration: none; padding: 4px 0; font-family: 'El Messiri', sans-serif; }
  .mobile-nav-address { color: var(--gray); font-size: 13px; line-height: 1.4; padding: 0 0 14px; }
  .mobile-nav-messengers { display: flex; gap: 10px; }
  .mn-btn { flex: 1 1 0; text-align: center; padding: 11px 0; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
  .mn-btn:hover { opacity: .88; }
  .mn-btn--max { background: #7C5CFF; }
  .mn-btn--telegram { background: #229ED9; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }

  .dropdown.open .dropdown-menu { display: block; }

  .dropdown-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav .dropdown-sub-link { flex: 1 1 auto; min-width: 0; width: auto; padding: 12px 0; }
  .dropdown-sub-toggle {
    position: static;
    transform: none;
    padding: 12px 8px;
    font-size: 14px;
    flex: 0 0 auto;
  }
  .dropdown-sub.open .dropdown-sub-toggle { transform: rotate(90deg); }
  .dropdown-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    flex-basis: 100%;
    padding: 0 0 0 16px;
    display: none;
  }
  .dropdown-sub.open .dropdown-submenu { display: block; }
  .mobile-menu-toggle { display: block; }
}

@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .contacts-inner { grid-template-columns: 1fr; }

  .hero { padding-top: 110px; min-height: auto; }
  .hero-content h1 { font-size: 26px; }
  .hero-lead { font-size: 16px; }

  .btn {
    padding: 14px 22px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .btn-outline { margin-left: 0; margin-top: 10px; }
  .hero-buttons { display: flex; flex-direction: column; }

  .hero-visual {
    position: relative;
    width: 100%;
    min-height: 350px;
    margin-top: 30px;
  }

  .hero-visual img {
    position: static;
    inset: auto;
    height: auto;
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
  }

  .hero-badges { flex-direction: column; gap: 10px; }

  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 15px; }

  .process-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "step1"
      "step2"
      "step3"
      "step4";
  }

  .process-step:nth-child(4) { justify-content: flex-start; }

  .service-card,
  .result-card,
  .review-card,
  .process-step { padding: 20px; }

  .bankruptcy-amount { font-size: 48px; }
  .bankruptcy .section-title { font-size: 28px; }
  .hero-badge { font-size: 13px; }
  .hero-badge .icon { font-size: 22px; }

  .form-wrap { padding: 50px 20px; }
  .form-body { grid-template-columns: 1fr; }
  .form-head { padding: 0 0 20px; }
  .form-content { padding: 0; }
  .form-media { min-height: 240px; }
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .about-inner { gap: 30px; }
  .about-logo { height: auto; min-height: 300px; }
  .map-placeholder { height: 220px; }
  .sign-photo img { height: 220px; }

  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 600px) {
  /* Сетки карточек — в одну колонку на узких экранах (иначе 2 колонки теснятся) */
  .services-grid,
  .bankruptcy-features,
  .results-grid,
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .logo img { height: 36px; }
  .logo-text strong { font-size: 13px; }
  .mobile-menu-toggle { font-size: 20px; }
  .hero { padding-top: 95px; }
  .hero--mini { padding: 80px 0 40px; }
  .hero-content h1 { font-size: 22px; }
  .hero-lead { font-size: 14px; }
  .btn { padding: 12px 18px; font-size: 13px; }
  section { padding: 40px 0; }
  .section-title { font-size: 20px; }
  .section-subtitle { font-size: 14px; }
  .bankruptcy-amount { font-size: 36px; }
  .bankruptcy-feature .icon { height: 40px; }
  .bankruptcy-feature h3 { font-size: 15px; }
  .service-card h3, .result-card h3 { font-size: 16px; }
  .process-step .num { width: 40px; height: 40px; font-size: 18px; }
  .form-card { padding: 18px; }
  .contacts-info p { font-size: 14px; }
  .modal { padding: 20px; }
  .modal-title { font-size: 20px; }
  .bankruptcy-header { gap: 20px; }
}

@media (max-width: 370px) {
  .container { padding: 0 10px; }
  .logo img { height: 32px; }
  .logo-text strong { font-size: 11px; }
  .hero-content h1 { font-size: 20px; }
  .hero-lead { font-size: 13px; }
  .btn { padding: 12px 16px; font-size: 12px; }
  section { padding: 32px 0; }
  .hero--mini { padding: 70px 0 30px; }
  .section-title { font-size: 18px; }
  .bankruptcy-amount { font-size: 30px; }
  .bankruptcy-header img { max-width: 140px; }
  .service-card { padding: 16px; }
  .form-card { padding: 14px; }
  .modal { padding: 16px; }
}

/* =========================================================
   Лендинг «Услуги военного юриста» (services/voenniy-yurist.php)
   Новые блоки; существующие правила не переопределяются.
   ========================================================= */

/* --- Блок 1. Hero --- */
/* .hero--vy наследует layout главной (.hero) без переопределений:
   padding 80px 0 0, .hero-content padding 70px 0, h1 44px, lead max-width 500,
   .hero-visual абсолют к .hero-inner (position:relative) — вёрстка 1:1 с index.
   VY-специфика только ниже: заглавный H1 + блоки .vy-messengers / .vy-reg-number. */
.hero--vy .hero-content h1 { text-transform: uppercase; }

.vy-messengers { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.vy-messenger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.vy-messenger:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.vy-messenger--max { background: #7C5CFF; color: #fff; }
.vy-messenger--tg { background: #229ED9; color: #fff; }
.vy-messenger .ic { font-size: 18px; line-height: 1; }

.vy-reg-number {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 10px 18px;
  background: rgba(255,255,255,.08); border-left: 3px solid var(--gold);
  border-radius: 4px; font-size: 14px;
}
.vy-reg-number strong { color: var(--gold); }

/* --- Блок 2. Социальное доказательство --- */
.trust { background: var(--light); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 36px;
}
.trust-stat { text-align: center; padding: 22px 16px; background: var(--white); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.trust-stat .num { display: block; font-family: 'El Messiri', serif; font-size: 34px; color: var(--brand-red-dark); font-weight: 700; line-height: 1; }
.trust-stat .lbl { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); }
.trust-stars { color: var(--gold); font-size: 20px; letter-spacing: 2px; line-height: 1; }
.trust-stars .lbl { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); letter-spacing: 0; }
.trust-quote { padding: 22px 20px; background: var(--white); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); font-style: italic; color: var(--gray); font-size: 15px; }
.trust-quote strong { display: block; margin-top: 10px; font-style: normal; color: var(--brand-red-dark); }
/* Иконки-ссылки на отзывы (2ГИС, Яндекс.Карты) в первой плитке — в стиле сайта */
.trust-map-links { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.trust-map-link {
  width: 44px; height: 44px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .3px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .15s, box-shadow .15s;
}
.trust-map-link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.trust-map-link--2gis { background: #19AA3F; }
.trust-map-link--ymaps { background: #FC3F1D; }
.trust-reg { text-align: center; padding: 22px 16px; background: var(--white); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.trust-reg .num { display: block; font-family: 'El Messiri', serif; font-size: 20px; color: var(--brand-red-dark); font-weight: 700; }
.trust-reg .lbl { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); }

/* --- Блок 4. Как работаем (своя сетка, не .process-grid) --- */
.vy-process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px;
}
.vy-process-step {
  background: var(--light); border-radius: 10px; padding: 26px 20px; text-align: center;
  position: relative;
}
.vy-process-step .num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-red);
  color: var(--gold); font-family: 'El Messiri', serif; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.vy-process-step h3 { font-size: 16px; color: var(--brand-red-dark); margin-bottom: 8px; }
.vy-process-step p { font-size: 13px; color: var(--gray); }
.vy-process-step::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--brand-red-light); font-size: 22px; font-weight: 700;
}
.vy-process-step:last-child::after { display: none; }

/* --- Блок 6. FAQ (нативный details/summary, без JS) --- */
.faq { background: var(--white); }
.faq-list { max-width: 820px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid #e3e3e3; border-radius: 10px; background: var(--white);
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] { border-color: var(--brand-red); box-shadow: 0 4px 14px rgba(183,28,28,.08); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 16px; color: var(--dark);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; font-size: 24px; line-height: 1; color: var(--brand-red); font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] > summary::after { content: "−"; }
.faq-answer { padding: 0 22px 20px; color: var(--gray); font-size: 15px; line-height: 1.6; }

/* --- Блок 7. Финальный CTA --- */
.cta-final { background: #5F1413; color: var(--white); }
.cta-final-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: var(--max-width); margin: 0 auto; padding: 70px 20px;
}
.cta-final .section-title,
.cta-final .section-subtitle { color: var(--white); text-align: left; }
.cta-final .section-subtitle { color: #ffd; max-width: 460px; }
.cta-final-lead { margin-top: 24px; font-size: 16px; color: #ffd; }
.cta-messengers { margin-top: 24px; }
.cta-final .form-card { background: var(--white); color: var(--dark); }

/* --- Блок 8. Контакты лендинга (не трогая footer.php) --- */
.vy-contacts { background: var(--light); }
.vy-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.vy-contacts-card { background: var(--white); border-radius: 10px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.vy-contacts-card h3 { color: var(--brand-red-dark); font-size: 18px; margin-bottom: 14px; }
.vy-contacts-card p { color: var(--gray); font-size: 15px; margin-bottom: 10px; }
.vy-contacts-card a { color: var(--brand-red); font-weight: 600; }
.vy-social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.vy-social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: #fff;
}
.vy-social .max { background: #7C5CFF; }
.vy-social .tg { background: #229ED9; }
.vy-social .vk { background: #0077FF; }

/* --- Адаптив для новых блоков --- */
@media (max-width: 1024px) {
  .vy-process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cta-final-inner { grid-template-columns: 1fr; gap: 30px; padding: 50px 20px; }
  .cta-final .section-title,
  .cta-final .section-subtitle { text-align: center; }
  .cta-final-lead { text-align: center; }
  .cta-messengers { justify-content: center; }
  .vy-contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
  .vy-process-grid { grid-template-columns: 1fr; }
  .vy-process-step::after { display: none; }
}
@media (max-width: 480px) {
  .vy-messenger { padding: 10px 16px; font-size: 14px; }
  .trust-stat .num { font-size: 28px; }
  .faq-item > summary { font-size: 14px; padding: 14px 16px; }
  .faq-answer { font-size: 14px; padding: 0 16px 16px; }
  .vy-contacts-card { padding: 20px; }
}
@media (max-width: 370px) {
  .vy-messengers { flex-direction: column; align-items: stretch; }
  .vy-messenger { justify-content: center; }
  .trust-stat .num { font-size: 24px; }
  .cta-final-inner { padding: 40px 14px; }
}

/* =========================================================
   Подстраницы-аудитории военного юриста (services/{slug}.php)
   Новые блоки: breadcrumb, Боль/Архетип, Главный оффер 4U.
   Существующие правила не переопределяются.
   ========================================================= */

/* --- Хлебные крошки --- */
.breadcrumb {
  background: var(--light);
  border-bottom: 1px solid #ececec;
  font-size: 13px;
  color: var(--gray);
}
.breadcrumb .container { padding-top: 14px; padding-bottom: 14px; }
/* Breadcrumb ниже fixed-хедера (иначе скрыт за ним); hero--vy сразу за крошками —
   без top-padding, чтобы фото шло сразу за breadcrumb без красной полосы над фото
   (как на index, где фото вплотную к хедеру). Master/index без breadcrumb не затрагиваются. */
.breadcrumb { margin-top: 80px; }
.breadcrumb + section.hero--vy { padding-top: 0; }
@media (max-width: 900px) {
  .breadcrumb { margin-top: 110px; }
}
@media (max-width: 480px) {
  .breadcrumb { margin-top: 95px; }
}
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: #bbb; }
.breadcrumb a { color: var(--brand-red-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--gray); }

/* --- Блок «Боль и мотивация» + Архетип --- */
.pain { background: var(--light); }
.pain-text {
  max-width: 760px; margin: 0 auto;
  font-size: 19px; line-height: 1.6; color: var(--dark); text-align: center;
}
.pain-archetype {
  max-width: 620px; margin: 28px auto 0; padding: 18px 24px;
  background: var(--white); border-left: 4px solid var(--gold);
  border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  font-size: 15px; color: var(--gray);
}
.pain-archetype strong { color: var(--brand-red-dark); font-weight: 700; }

/* --- Блок «Главный оффер (4U)» --- */
.offer-4u {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  text-align: center;
}
.offer-4u .offer-4u-inner { max-width: 860px; margin: 0 auto; padding: 64px 20px; }
.offer-4u .offer-4u-eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 16px;
  background: rgba(255,255,255,.12); border-radius: 30px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold);
}
.offer-4u-text {
  font-size: 26px; line-height: 1.4; font-weight: 700; margin: 0 0 28px;
}
.offer-4u .btn-gold { font-size: 17px; padding: 16px 34px; }
.offer-4u .btn-outline {
  margin-left: 12px; color: var(--white); border-color: rgba(255,255,255,.55);
}
.offer-4u .btn-outline:hover { background: rgba(255,255,255,.12); }
.offer-4u-note { margin-top: 18px; font-size: 13px; color: #ffd; opacity: .9; }
/* Дубль оффера с фоновой картинкой справа снизу (поверх красного градиента) */
.offer-4u--pic {
  background:
    url(/assets/img/logo-trancperency-22-33.png) right 20% bottom 0 / auto 88% no-repeat,
    linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
}
@media (max-width: 600px) {
  .offer-4u--pic {
    background:
      url(/assets/img/logo-trancperency-22-33.png) right 20% bottom 0 / auto 62% no-repeat,
      linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  }
}

/* --- Обратная ссылка на мастер-страницу --- */
.vy-back {
  background: var(--white); border-top: 1px solid #ececec;
  padding: 28px 0; text-align: center;
}
.vy-back a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-red-dark); font-weight: 600; text-decoration: none;
  padding: 10px 22px; border: 1px solid #e0d8c8; border-radius: 30px;
  transition: background .15s;
}
.vy-back a:hover { background: var(--light); }

/* --- Адаптив для новых блоков подстраниц --- */
@media (max-width: 1024px) {
  .offer-4u-text { font-size: 23px; }
}
@media (max-width: 900px) {
  .offer-4u-text { font-size: 20px; }
  .pain-text { font-size: 17px; }
  .offer-4u .offer-4u-inner { padding: 48px 20px; }
}
@media (max-width: 600px) {
  .offer-4u-text { font-size: 18px; }
  .pain-text { font-size: 16px; }
  .offer-4u .btn-gold,
  .offer-4u .btn-outline { display: block; margin: 0 auto 12px; max-width: 320px; }
  .offer-4u .btn-outline { margin-left: auto; }
  .breadcrumb { font-size: 12px; }
}
@media (max-width: 480px) {
  .offer-4u-text { font-size: 17px; }
  .offer-4u .offer-4u-inner { padding: 40px 16px; }
  .pain-archetype { padding: 16px 18px; font-size: 14px; }
}
@media (max-width: 370px) {
  .offer-4u-text { font-size: 16px; }
  .pain-text { font-size: 15px; }
  .breadcrumb .container { padding-top: 10px; padding-bottom: 10px; }
}

/* =========================================================
   Доп. блоки лендинга/подстраниц ВЮ: О юристе, Стоимость, Блог.
   ========================================================= */

/* --- Блок «О юристе» (мастер) --- */
.vy-about { background: var(--white); }
.vy-about-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center;
  margin-top: 36px;
}
.vy-about-photo { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.vy-about-photo img { display: block; width: 100%; height: auto; }
.vy-about-bio h3 { color: var(--brand-red-dark); font-size: 22px; margin-bottom: 12px; }
.vy-about-bio p { color: var(--gray); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.vy-about-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.vy-about-fact {
  background: var(--light); border-radius: 8px; padding: 14px 18px; text-align: center;
  min-width: 120px;
}
.vy-about-fact .num { display: block; font-family: 'El Messiri', serif; font-size: 24px; color: var(--brand-red-dark); font-weight: 700; line-height: 1; }
.vy-about-fact .lbl { display: block; margin-top: 6px; font-size: 12px; color: var(--gray); }
.vy-about-pubs { margin-top: 18px; font-size: 14px; color: var(--gray); }
.vy-about-pubs strong { color: var(--dark); display: block; margin-bottom: 6px; }

/* --- Блок «Стоимость» (мастер + подстраницы) --- */
.vy-pricing { background: var(--light); }
.vy-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px;
}
.vy-pricing-card {
  background: var(--white); border-radius: 12px; padding: 28px 22px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); border-top: 3px solid var(--brand-red);
}
.vy-pricing-card h3 { color: var(--brand-red-dark); font-size: 17px; margin-bottom: 10px; }
.vy-pricing-card p { color: var(--gray); font-size: 14px; margin-bottom: 16px; min-height: 40px; }
.vy-pricing-price {
  font-family: 'El Messiri', serif; font-size: 28px; color: var(--brand-red-dark); font-weight: 700;
}
.vy-pricing-price .from { font-size: 14px; color: var(--gray); font-weight: 400; }
.vy-pricing-note { margin-top: 22px; text-align: center; font-size: 15px; color: var(--dark); }
.vy-pricing-note strong { color: var(--brand-red-dark); }

/* --- Секция «Блог / база знаний» (мастер) --- */
.vy-blog { background: var(--white); }
.vy-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px;
}
.vy-blog-card {
  background: var(--light); border-radius: 10px; padding: 24px 20px; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.vy-blog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.vy-blog-card .cat { font-size: 12px; color: var(--brand-red); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.vy-blog-card h3 { font-size: 17px; color: var(--dark); margin-bottom: 12px; line-height: 1.35; }
.vy-blog-card p { color: var(--gray); font-size: 14px; flex-grow: 1; }
.vy-blog-card a.read { margin-top: 16px; color: var(--brand-red-dark); font-weight: 600; text-decoration: none; }
.vy-blog-card a.read::after { content: " →"; }
.vy-blog-empty { text-align: center; color: var(--gray); font-size: 15px; padding: 30px 0; }
.vy-blog-all { text-align: center; margin-top: 30px; }
.vy-blog-all a { color: var(--brand-red-dark); font-weight: 600; }
.vy-blog-all a::after { content: " →"; }

/* --- Адаптив доп. блоков --- */
@media (max-width: 1024px) {
  .vy-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .vy-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .vy-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .vy-about-photo { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .vy-pricing-grid { grid-template-columns: 1fr; }
  .vy-blog-grid { grid-template-columns: 1fr; }
  .vy-about-facts { justify-content: center; }
}
@media (max-width: 480px) {
  .vy-about-bio h3 { font-size: 19px; }
  .vy-pricing-card { padding: 22px 16px; }
  .vy-pricing-price { font-size: 24px; }
}
@media (max-width: 370px) {
  .vy-about-fact { min-width: 100px; padding: 12px 14px; }
  .vy-pricing-card p { min-height: 0; }
}

/* =========================================================
   Плавающие FAB-кнопки быстрого доступа (ТЗ).
   Стек справа снизу. z-index 900 — выше контента, ниже
   шапки (1000) и модалки консультации (2000).
   ========================================================= */
/* === Мегакнопка FAB (speed-dial, ЛОГ 63) === */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none; /* контейнер не перехватывает клики мимо кнопок */
}

/* Оверлей-затемнение при раскрытом меню (клик-вне → закрыть) */
.fab-overlay {
  position: fixed; inset: 0; z-index: 0;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background .22s;
}
.fab.is-open .fab-overlay { background: rgba(0,0,0,.28); pointer-events: auto; }

/* Меню действий — раскрывается вверх из мегабаттона */
.fab-dial { position: relative; z-index: 2; }
.fab-menu {
  position: absolute; right: 0; bottom: 100%; padding-bottom: 12px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.fab-menu .fab-btn {
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px) scale(.5);
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.fab.is-open .fab-menu { pointer-events: auto; }
.fab.is-open .fab-menu .fab-btn {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}
/* Каскад: нижний (ближе к кнопке) появляется первым */
.fab.is-open .fab-menu .fab-btn:nth-child(6) { transition-delay: .04s; }
.fab.is-open .fab-menu .fab-btn:nth-child(5) { transition-delay: .08s; }
.fab.is-open .fab-menu .fab-btn:nth-child(4) { transition-delay: .12s; }
.fab.is-open .fab-menu .fab-btn:nth-child(3) { transition-delay: .16s; }
.fab.is-open .fab-menu .fab-btn:nth-child(2) { transition-delay: .20s; }
.fab.is-open .fab-menu .fab-btn:nth-child(1) { transition-delay: .24s; }

/* Сами круглые кнопки действий (цвета — ниже) */
.fab-btn {
  pointer-events: auto;
  position: relative;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .18s, box-shadow .18s, opacity .25s;
  text-decoration: none;
  isolation: isolate;
}
/* Шиммер — бегущий блик по круглой кнопке.
   clip-path circle() обрезает блик по кругу БЕЗ overflow:hidden,
   чтобы не обрезать подпись-пилюлю .fab-label (она слева ВНЕ круга). */
.fab-btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  background-size: 220% 100%; background-position: -120% 0;
  animation: btn-shimmer 3.2s ease-in-out infinite;
}
.fab-menu .fab-btn:nth-child(2)::before { animation-delay: .4s; }
.fab-menu .fab-btn:nth-child(3)::before { animation-delay: .8s; }
.fab-menu .fab-btn:nth-child(4)::before { animation-delay: 1.2s; }
.fab-menu .fab-btn:nth-child(5)::before { animation-delay: 1.6s; }
.fab-menu .fab-btn:nth-child(6)::before { animation-delay: 2.0s; }
.fab-btn svg { width: 24px; height: 24px; display: block; position: relative; z-index: 1; }
.fab-btn:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(0,0,0,.26); }
.fab-btn:active { transform: translateY(-1px) scale(.96); }
.fab-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Подпись-«пилюля» слева от кнопки */
.fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px);
  white-space: nowrap; background: var(--dark); color: #fff;
  font: 600 13px/1 system-ui,Segoe UI,Roboto,Arial,sans-serif;
  padding: 6px 12px; border-radius: 18px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.fab-label::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--dark);
}
/* В раскрытом меню пилюли видны всегда */
.fab.is-open .fab-menu .fab-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.fab-btn:hover .fab-label,
.fab-btn:focus-visible .fab-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Цвета кнопок действий */
.fab-btn--consult   { background: var(--brand-red); }
.fab-btn--consult:hover { background: var(--brand-red-dark); }
.fab-btn--call      { background: #1a7f37; }
.fab-btn--call:hover { background: #156a2c; }
.fab-btn--telegram  { background: #229ED9; }
.fab-btn--telegram:hover { background: #1d8ac4; }
.fab-btn--max       { background: #7C5CFF; }
.fab-btn--max:hover { background: #6a4df0; }
.fab-btn--yandex    { background: #FC3F1D; }
.fab-btn--yandex:hover { background: #e02d0d; }
.fab-btn--twogis    { background: #0AA65B; }
.fab-btn--twogis:hover { background: #08924f; }

/* «Наверх» — отдельная над мегабаттоном, появляется по скроллу */
.fab-btn--top {
  background: #2b2f36; color: #fff;
  opacity: 0; transform: translateY(12px) scale(.7);
  pointer-events: none;
}
.fab-btn--top:hover { background: #1A1A1A; }
.fab.is-scrolled .fab-btn--top { opacity: 1; transform: none; pointer-events: auto; }

/* Мегабаттон-тоггл «+» → «✕» */
.fab-toggle {
  pointer-events: auto;
  position: relative;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; padding: 0;
  background: var(--brand-red);
  box-shadow: 0 6px 20px rgba(163,5,14,.4);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s;
  isolation: isolate;
  z-index: 1;
}
.fab-toggle:hover { background: var(--brand-red-dark); box-shadow: 0 8px 26px rgba(163,5,14,.5); }
.fab-toggle:active { transform: scale(.94); }
.fab-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fab-toggle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  background-size: 220% 100%; background-position: -120% 0;
  animation: btn-shimmer 3.2s ease-in-out infinite;
}
.fab-toggle__icon { width: 28px; height: 28px; display: block; position: relative; z-index: 1; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.fab.is-open .fab-toggle { background: var(--dark); }
.fab.is-open .fab-toggle__icon { transform: rotate(135deg); }

@media (prefers-reduced-motion: reduce) {
  .fab-btn::before, .fab-toggle::before { animation: none; }
  .fab-menu .fab-btn, .fab-toggle__icon { transition: none; }
}

/* Адаптив */
@media (max-width: 600px) {
  .fab { right: 14px; bottom: 14px; gap: 10px; }
  .fab-btn { width: 46px; height: 46px; }
  .fab-btn svg { width: 22px; height: 22px; }
  .fab-toggle { width: 54px; height: 54px; }
  .fab-toggle__icon { width: 26px; height: 26px; }
}
@media (max-width: 370px) {
  .fab { gap: 8px; }
  .fab-btn { width: 42px; height: 42px; }
  .fab-toggle { width: 50px; height: 50px; }
  .fab-toggle__icon { width: 24px; height: 24px; }
}

/* === Баннер уведомления о куки (раз в сутки, ЛОГ 64) === */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(130%);
  z-index: 800; /* ниже FAB (900) и модалки (2000) */
  max-width: 460px; width: calc(100% - 100px);
  background: var(--dark); color: #fff;
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  font: 400 13px/1.45 system-ui,Segoe UI,Roboto,Arial,sans-serif;
  opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s, visibility .3s;
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 220px; }
.cookie-banner__text a { color: var(--gold); text-decoration: underline; }
.cookie-banner__text a:hover { text-decoration: none; }
.cookie-banner__btn {
  flex: 0 0 auto; border: none; cursor: pointer;
  background: var(--gold); color: #1a1a1a;
  font: 600 14px/1 system-ui,Segoe UI,Roboto,Arial,sans-serif;
  padding: 9px 18px; border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.cookie-banner__btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.cookie-banner__btn:active { transform: translateY(0) scale(.96); }
.cookie-banner__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 600px) {
  /* Поднимаем баннер НАД FAB (который снизу-справа ~68px), чтобы не перекрывал «Принял» */
  .cookie-banner { width: calc(100% - 24px); left: 12px; bottom: 86px; transform: translateY(160%); padding: 12px 14px; }
  .cookie-banner.is-visible { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cookie-banner.is-visible { transition: none; }
}

/* === Юридические страницы (Политика конфиденциальности, Согласие) === */
.legal-page { padding: 64px 0 80px; background: var(--light); }
.legal-inner { max-width: 820px; margin: 0 auto; padding: 0 20px;
  font-size: 16px; line-height: 1.75; color: var(--dark); }
.legal-inner h1 { font-family: 'El Messiri', serif; font-size: 30px; font-weight: 700;
  text-align: center; margin: 0 0 26px; color: var(--brand-red); }
.legal-inner h2 { font-family: 'El Messiri', serif; font-size: 20px; font-weight: 600;
  margin: 30px 0 12px; color: var(--brand-red-dark);
  border-left: 3px solid var(--brand-red); padding-left: 12px; }
.legal-inner p { margin: 0 0 12px; }
.legal-inner ul { margin: 0 0 16px; padding-left: 24px; }
.legal-inner li { margin-bottom: 6px; }
.legal-inner a { color: var(--brand-red-dark); }
.legal-inner strong { font-weight: 700; }
@media (max-width: 600px) {
  .legal-page { padding: 44px 0 56px; }
  .legal-inner { padding: 0 16px; font-size: 15px; }
  .legal-inner h1 { font-size: 23px; }
  .legal-inner h2 { font-size: 18px; }
}
@media (max-width: 370px) {
  .legal-inner { padding: 0 12px; }
}
/* === BASE === */
:root {
  --brand-red: #B71C1C;
  --brand-red-dark: #7F0000;
  --brand-red-light: #E53935;
  --gold: #ffde86;
  --dark: #1A1A1A;
  --gray: #4A4A4A;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  min-width: 370px;
}

h1, h2, h3 { font-family: 'El Messiri', sans-serif; font-weight: 700; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Шиммер — бегущий блик по кнопке */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  background-size: 220% 100%;
  background-position: -120% 0;
  animation: btn-shimmer 3.2s ease-in-out infinite;
}
.btn-outline::before { animation-delay: 1.6s; }

@keyframes btn-shimmer {
  0%   { background-position: -120% 0; }
  60%  { background-position: 120% 0; }
  100% { background-position: 120% 0; }
}

.btn-gold { background: var(--gold); color: var(--brand-red-dark); }
.btn-gold:hover { background: #ffe9a8; }

.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--brand-red-dark); }

@media (prefers-reduced-motion: reduce) {
  .btn::before { animation: none; }
  .service-card::before { animation: none; }
}

/* === HEADER === */
header {
  background: var(--white);
  padding: 12px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  text-decoration: none;
}

.logo img { height: 50px; width: auto; }

.logo-text { font-family: 'El Messiri', sans-serif; }
.logo-text strong { display: block; font-size: 18px; font-weight: 800; }
.logo-text span { font-size: 11px; color: var(--gray); }

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all .2s;
}

.main-nav a:hover { background: var(--light); color: var(--brand-red); }

.dropdown { position: relative; }

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all .2s;
}

.dropdown-toggle::after { content: "▼"; font-size: 10px; color: var(--gray); }

/* Отбивка в мобильном меню: телефон + адрес + МАКС/Телеграм (ЛОГ 67; скрыто на десктопе) */
.mobile-nav-contacts { display: none; }

.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .2s;
  z-index: 1001;
  border: 1px solid #eee;
}

.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown--end .dropdown-menu { left: auto; right: 0; }

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-weight: 400;
  border-radius: 0;
}

.dropdown-menu a:hover { background: var(--light); }

/* Вложенное подменю (Военный юрист → 6 аудиторий) */
.dropdown-sub { position: relative; }
.dropdown-sub-link {
  display: block;
  padding: 10px 34px 10px 18px;
  font-weight: 400;
  border-radius: 0;
  text-decoration: none;
  color: var(--dark);
}
.dropdown-sub-link:hover { background: var(--light); }
.dropdown-sub-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  transition: transform .2s, color .2s;
}
.dropdown-sub-toggle:hover { color: var(--brand-red); }
.dropdown-sub.open .dropdown-sub-toggle { transform: translateY(-50%) rotate(90deg); }
.dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  min-width: 280px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all .2s;
  z-index: 1002;
  border: 1px solid #eee;
}
.dropdown-sub:hover .dropdown-submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.dropdown-submenu a {
  display: block;
  padding: 10px 18px;
  font-weight: 400;
  border-radius: 0;
}
.dropdown-submenu a:hover { background: var(--light); }

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

.header-phone { text-align: right; }
.header-phone a {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-phone a::before { content: "📞"; font-size: 16px; }
.header-phone small { display: block; color: var(--gray); font-size: 11px; }

/* === SECTIONS === */
section { padding: 70px 0; }

.section-title {
  font-size: 36px;
  color: var(--brand-red-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 700px;
}

.section-header { text-align: center; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* === HERO === */
.hero {
  background: #A3050E;
  color: var(--white);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

/* Hero-мини для внутренних страниц (услуги, блог) — десктопный padding;
   на узких экранах уменьшается в media queries ниже. */
.hero.hero--mini { padding: 140px 0 70px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
  padding: 70px 0;
}

.hero-content h1 { font-size: 44px; line-height: 1.1; margin-bottom: 20px; }
.hero-content h1 span { color: var(--gold); }

.hero-lead {
  font-size: 18px;
  color: #ffdddd;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #ffcccc;
  margin-bottom: 12px;
}

.hero-stat .num {
  font-family: 'El Messiri', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 0;
}

.hero-visual img {
  height: 100%;
  max-width: none;
  width: auto;
  object-fit: cover;
  object-position: left center;
}

.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ffcccc;
  background: rgba(255,255,255,.1);
  padding: 10px 16px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

.hero-badge .icon { color: var(--gold); font-size: 18px; }

/* === ABOUT === */
.about { background: var(--light); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.about-logo {
  text-align: center;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.about-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray);
  font-size: 16px;
}

.about-features {
  list-style: none;
  margin-top: 24px;
}

.about-features li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  color: var(--dark);
}

.about-features li::before { content: "🛡"; color: var(--brand-red); margin-right: 12px; }

/* === Service parts: разбивка контента услуги на мелкие секции (как на voenniy-yurist) === */
.service-parts { padding: 56px 0; background: #faf7f7; }
.service-parts + .service-parts { background: #fff; }
.service-parts .section-header { margin-bottom: 28px; }
.service-parts-body { max-width: 920px; margin: 0 auto; }
.service-parts-body p { color: var(--dark); line-height: 1.7; }
.service-parts-body p:last-child { margin-bottom: 0; }
.service-parts-body .btn { margin-top: 8px; }
/* ul.about-features внутри подсекции → карточки сеткой */
.service-parts ul.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 0;
}
.service-parts ul.about-features li {
  background: var(--white);
  padding: 18px 20px;
  border: 1px solid #ececec;
  border-left: 4px solid var(--brand-red);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  align-items: flex-start;
}
@media (max-width: 600px) {
  .service-parts { padding: 40px 0; }
  .service-parts ul.about-features { grid-template-columns: 1fr; }
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border-top: 4px solid var(--brand-red);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

/* Шиммер — бегущий блик по плитке услуги (диагональная серебристая полоса) */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(0,0,0,.06) 50%, transparent 62%);
  background-size: 220% 100%;
  background-position: -120% 0;
  animation: btn-shimmer 3.6s ease-in-out infinite;
}
.service-card:nth-child(2)::before { animation-delay: .5s; }
.service-card:nth-child(3)::before { animation-delay: 1s; }
.service-card:nth-child(4)::before { animation-delay: 1.5s; }
.service-card:nth-child(5)::before { animation-delay: 2s; }
.service-card:nth-child(6)::before { animation-delay: 2.5s; }
.service-card:nth-child(7)::before { animation-delay: 3s; }

.service-card .icon {
  height: 54px;
  width: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 18px;
  color: var(--brand-red-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}

a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card__more {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.service-card__more::after { content: "→"; transition: transform .2s; }
.service-card:hover .service-card__more { gap: 10px; }
.service-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* === BANKRUPTCY BANNER === */
.bankruptcy {
  background: linear-gradient(135deg, #8B0000 0%, var(--brand-red) 100%);
  color: var(--white);
}

.bankruptcy-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 24px;
}

.bankruptcy-header img {
  max-width: 180px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)) drop-shadow(0 0 30px rgba(255,255,255,.4));
}

.bankruptcy-header-text { text-align: left; }

.bankruptcy .section-title { color: var(--white); font-size: 38px; }
.bankruptcy .section-subtitle { color: #ffcccc; }

.bankruptcy-amount {
  font-size: 72px;
  font-weight: 800;
  color: var(--gold);
  font-family: 'El Messiri', sans-serif;
  margin: 8px 0 24px;
  text-align: center;
  text-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.bankruptcy-cta { text-align: center; margin-bottom: 40px; }

.bankruptcy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bankruptcy-feature {
  background: rgba(255,255,255,.12);
  padding: 28px 20px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
}

.bankruptcy-feature .icon {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.bankruptcy-feature h3 { font-size: 18px; margin-bottom: 8px; }
.bankruptcy-feature p { font-size: 14px; color: #ffcccc; }

/* === PROCESS === */
.process { background: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr 1fr;
  grid-template-areas:
    "step1 step1"
    "step2 step4"
    "step3 step4";
  gap: 16px;
}

.process-step {
  text-align: center;
  padding: 28px 16px;
  background: var(--light);
  border-radius: 8px;
}

.process-step:nth-child(1) { grid-area: step1; }
.process-step:nth-child(2) { grid-area: step2; }
.process-step:nth-child(3) { grid-area: step3; }
.process-step:nth-child(4) {
  grid-area: step4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-step .num {
  width: 50px;
  height: 50px;
  background: var(--brand-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 14px;
  font-family: 'El Messiri', sans-serif;
}

.process-step h3 { font-size: 17px; color: var(--brand-red-dark); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--gray); }

/* === RESULTS === */
.results { background: var(--light); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.result-card {
  background: var(--white);
  padding: 28px;
  border-radius: 8px;
  border-left: 4px solid var(--brand-red);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.result-card h3 {
  font-size: 18px;
  color: var(--brand-red-dark);
  margin-bottom: 12px;
}

.result-card p { color: var(--gray); font-size: 14px; margin-bottom: 14px; }

.result-card .sum {
  color: var(--brand-red);
  font-size: 20px;
  font-weight: 800;
  font-family: 'El Messiri', sans-serif;
}

/* === REVIEWS === */
.reviews { background: var(--white); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--light);
  padding: 28px;
  border-radius: 8px;
}

.review-card p { font-style: italic; color: var(--gray); margin-bottom: 16px; }
.review-card strong { color: var(--brand-red-dark); }

/* --- Полная карточка отзыва (страница /otzyvy/) --- */
.review-card--full { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.review-card--full .review-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; line-height: 1; }
.review-source { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.review-source--yandex { background: #FFE000; color: #000; }
.review-source--2gis { background: #0AA65B; color: #fff; }
.review-card--full .review-text { font-style: italic; color: var(--gray); margin: 0; line-height: 1.55; max-height: 180px; overflow-y: auto; padding-right: 6px; }
.review-card--full .review-text::-webkit-scrollbar { width: 6px; }
.review-card--full .review-text::-webkit-scrollbar-thumb { background: #c8ccd2; border-radius: 3px; }
.review-card--full .review-text::-webkit-scrollbar-track { background: transparent; }
.review-answer { background: #fff8e8; border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--gray); }
.review-answer strong { color: var(--brand-red-dark); }
.review-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; }
.review-author { color: var(--brand-red-dark); font-size: 15px; font-style: normal; }
.review-date { color: #999; font-size: 13px; white-space: nowrap; }
.reviews-summary { margin-top: 18px; color: var(--gray); font-size: 15px; }
.reviews-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }
@media (max-width: 600px) { .review-card--full .review-card__foot { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* === Слайдер отзывов на страницах услуг (ЛОГ 61) === */
.reviews-slider { position: relative; margin-top: 8px; }
.reviews-slider__viewport { overflow: hidden; padding: 4px 0; }
.reviews-slider__track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.review-slide { flex: 0 0 100%; max-width: 100%; padding: 0 10px; box-sizing: border-box; }
.review-slide .review-card--full { height: 100%; }
.reviews-slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--white); color: var(--gold);
  font-size: 26px; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .2s, color .2s, opacity .2s;
}
.reviews-slider__btn:hover, .reviews-slider__btn:focus-visible { background: var(--gold); color: #fff; outline: none; }
.reviews-slider__btn--prev { left: -10px; }
.reviews-slider__btn--next { right: -10px; }
.reviews-slider__btn[disabled] { opacity: 0; pointer-events: none; }
.reviews-slider__dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.reviews-slider__dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #d9d9d9; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.reviews-slider__dot.is-active { background: var(--gold); transform: scale(1.25); }
.reviews-slider__all { text-align: center; margin-top: 22px; }
.reviews-slider__all a { display: inline-block; font-weight: 700; color: var(--brand-red-dark); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: color .2s; }
.reviews-slider__all a:hover { color: var(--gold); }
@media (min-width: 701px) {
  .review-slide { flex: 0 0 50%; max-width: 50%; }
  .reviews-slider__btn--prev { left: -22px; }
  .reviews-slider__btn--next { right: -22px; }
}
@media (max-width: 700px) {
  .reviews-slider__btn { width: 38px; height: 38px; font-size: 22px; }
  .reviews-slider__btn--prev { left: 2px; }
  .reviews-slider__btn--next { right: 2px; }
  .review-slide { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-slider__track { transition: none; }
}

/* === FORM SECTION === */
.form-section {
  background: #5F1413;
  color: var(--white);
  padding: 0;
  overflow: hidden;
}

.form-section .section-title { color: var(--white); text-align: center; }
.form-section .section-subtitle {
  color: #d1d5db;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.form-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 20px 0px;
}

.form-head { padding-bottom: 30px; }

.form-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.form-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  max-width: 100%;
}

.form-media video,
.form-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 50px;
}

.form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  color: var(--dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px; /* ≥16px — чтобы iOS Safari не зумил страницу при фокусе */
  font-family: inherit;
}

.form-card textarea {
  min-height: 100px;
  resize: vertical;
  grid-column: 1 / -1;
}

.form-card button { width: 100%; }

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  margin-top: 14px;
}

/* === CONTACTS === */
.contacts { background: var(--light); }

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contacts-info p {
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--gray);
}

.contacts-info a { color: var(--brand-red); text-decoration: none; font-weight: 700; }
.contacts-info strong { color: var(--dark); }

.map-placeholder {
  background: #e0e0e0;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.sign-photo { margin-top: 0; }
.sign-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* === FOOTER === */
footer {
  background: var(--dark);
  color: #aaa;
  padding: 24px 0;
  font-size: 13px;
  text-align: center;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  text-align: left;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'El Messiri', sans-serif;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  -webkit-overflow-scrolling: touch;
  animation: modalIn .22s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

.modal-head {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  padding: 26px 28px 22px;
  border-radius: 16px 16px 0 0;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.16);
  border: none; border-radius: 50%;
  font-size: 22px; line-height: 1;
  cursor: pointer; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.modal-close:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }
.modal-title {
  font-family: 'El Messiri', serif;
  font-size: 24px; font-weight: 700;
  margin: 0 0 6px;
  padding-right: 36px;
}
.modal-subtitle {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  margin: 0;
}

.modal-body { padding: 24px 28px 26px; }

/* --- Поля формы (scoped: только внутри модалки) --- */
.mf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.mf-field { display: flex; flex-direction: column; }
.mf-label {
  font-size: 13px; font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d2c6;
  border-radius: 9px;
  font: 400 16px/1.4 inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.modal textarea {
  min-height: 96px;
  resize: vertical;
}
.modal input::placeholder,
.modal textarea::placeholder { color: #9a948a; }
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(183,28,28,.14);
}
/* Кастомная стрелка для select */
.modal select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237F0000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.mf-submit {
  width: 100%;
  margin-top: 4px;
  padding: 15px 24px;
  font-size: 15px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(183,28,28,.18);
}
.mf-submit:hover { box-shadow: 0 6px 18px rgba(183,28,28,.26); }
.mf-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  margin: 14px 0 0;
  line-height: 1.5;
}
.mf-note::before {
  content: "🔒 ";
  font-size: 11px;
}

/* Адаптив модалки */
@media (max-width: 600px) {
  .modal-overlay { padding: 12px; }
  .modal-head { padding: 22px 20px 18px; }
  .modal-title { font-size: 21px; }
  .modal-body { padding: 20px 18px 22px; }
  .mf-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 370px) {
  .modal-head { padding: 20px 16px 16px; }
  .modal-body { padding: 18px 14px 20px; }
  .modal-title { font-size: 19px; }
}

/* === Контент услуг/блога (вставляется из БД) === */
.service-cta {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--light);
  border-radius: 10px;
  border-left: 4px solid var(--brand-red);
}
.service-cta .link-phone,
.link-phone {
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--brand-red);
}
.service-cta .link-phone:hover,
.link-phone:hover { color: var(--brand-red-dark); border-bottom-color: var(--brand-red-dark); }

/* Таблицы в контенте — горизонтальный скролл на узких экранах */
.about-text table,
.about-text .table-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.about-text table { border-collapse: collapse; width: 100%; }
.about-text table th, .about-text table td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; }

/* === ADAPTIVE === */
@media (max-width: 1024px) {
  .services-grid,
  .bankruptcy-features,
  .results-grid,
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1150px) {
  .header-inner { flex-wrap: nowrap; }
  .logo-text strong { font-size: 15px; }
  .logo-text span { display: none; }
  .logo img { height: 40px; }
  .header-phone { display: none; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h, 57px); left: 0; right: 0; bottom: 0;
    z-index: 1001;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.active { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; }
  .main-nav .dropdown { width: 100%; }
  .main-nav .dropdown-toggle { width: 100%; padding: 12px 0; }

  .mobile-nav-contacts { display: block; width: 100%; padding: 4px 0 8px; }
  .mobile-nav-divider { border: none; border-top: 1px solid #e2e3e6; margin: 6px 0 14px; }
  .mobile-nav-phone { display: block; color: var(--brand-red); font-weight: 700; font-size: 18px; text-decoration: none; padding: 4px 0; font-family: 'El Messiri', sans-serif; }
  .mobile-nav-address { color: var(--gray); font-size: 13px; line-height: 1.4; padding: 0 0 14px; }
  .mobile-nav-messengers { display: flex; gap: 10px; }
  .mn-btn { flex: 1 1 0; text-align: center; padding: 11px 0; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
  .mn-btn:hover { opacity: .88; }
  .mn-btn--max { background: #7C5CFF; }
  .mn-btn--telegram { background: #229ED9; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }

  .dropdown.open .dropdown-menu { display: block; }

  .dropdown-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav .dropdown-sub-link { flex: 1 1 auto; min-width: 0; width: auto; padding: 12px 0; }
  .dropdown-sub-toggle {
    position: static;
    transform: none;
    padding: 12px 8px;
    font-size: 14px;
    flex: 0 0 auto;
  }
  .dropdown-sub.open .dropdown-sub-toggle { transform: rotate(90deg); }
  .dropdown-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    flex-basis: 100%;
    padding: 0 0 0 16px;
    display: none;
  }
  .dropdown-sub.open .dropdown-submenu { display: block; }
  .mobile-menu-toggle { display: block; }
}

@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .contacts-inner { grid-template-columns: 1fr; }

  .hero { padding-top: 110px; min-height: auto; }
  .hero-content h1 { font-size: 26px; }
  .hero-lead { font-size: 16px; }

  .btn {
    padding: 14px 22px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .btn-outline { margin-left: 0; margin-top: 10px; }
  .hero-buttons { display: flex; flex-direction: column; }

  .hero-visual {
    position: relative;
    width: 100%;
    min-height: 350px;
    margin-top: 30px;
  }

  .hero-visual img {
    position: static;
    inset: auto;
    height: auto;
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
  }

  .hero-badges { flex-direction: column; gap: 10px; }

  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 15px; }

  .process-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "step1"
      "step2"
      "step3"
      "step4";
  }

  .process-step:nth-child(4) { justify-content: flex-start; }

  .service-card,
  .result-card,
  .review-card,
  .process-step { padding: 20px; }

  .bankruptcy-amount { font-size: 48px; }
  .bankruptcy .section-title { font-size: 28px; }
  .hero-badge { font-size: 13px; }
  .hero-badge .icon { font-size: 22px; }

  .form-wrap { padding: 50px 20px; }
  .form-body { grid-template-columns: 1fr; }
  .form-head { padding: 0 0 20px; }
  .form-content { padding: 0; }
  .form-media { min-height: 240px; }
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .about-inner { gap: 30px; }
  .about-logo { height: auto; min-height: 300px; }
  .map-placeholder { height: 220px; }
  .sign-photo img { height: 220px; }

  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 600px) {
  /* Сетки карточек — в одну колонку на узких экранах (иначе 2 колонки теснятся) */
  .services-grid,
  .bankruptcy-features,
  .results-grid,
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .logo img { height: 36px; }
  .logo-text strong { font-size: 13px; }
  .mobile-menu-toggle { font-size: 20px; }
  .hero { padding-top: 95px; }
  .hero--mini { padding: 80px 0 40px; }
  .hero-content h1 { font-size: 22px; }
  .hero-lead { font-size: 14px; }
  .btn { padding: 12px 18px; font-size: 13px; }
  section { padding: 40px 0; }
  .section-title { font-size: 20px; }
  .section-subtitle { font-size: 14px; }
  .bankruptcy-amount { font-size: 36px; }
  .bankruptcy-feature .icon { height: 40px; }
  .bankruptcy-feature h3 { font-size: 15px; }
  .service-card h3, .result-card h3 { font-size: 16px; }
  .process-step .num { width: 40px; height: 40px; font-size: 18px; }
  .form-card { padding: 18px; }
  .contacts-info p { font-size: 14px; }
  .modal { padding: 20px; }
  .modal-title { font-size: 20px; }
  .bankruptcy-header { gap: 20px; }
}

@media (max-width: 370px) {
  .container { padding: 0 10px; }
  .logo img { height: 32px; }
  .logo-text strong { font-size: 11px; }
  .hero-content h1 { font-size: 20px; }
  .hero-lead { font-size: 13px; }
  .btn { padding: 12px 16px; font-size: 12px; }
  section { padding: 32px 0; }
  .hero--mini { padding: 70px 0 30px; }
  .section-title { font-size: 18px; }
  .bankruptcy-amount { font-size: 30px; }
  .bankruptcy-header img { max-width: 140px; }
  .service-card { padding: 16px; }
  .form-card { padding: 14px; }
  .modal { padding: 16px; }
}

/* =========================================================
   Лендинг «Услуги военного юриста» (services/voenniy-yurist.php)
   Новые блоки; существующие правила не переопределяются.
   ========================================================= */

/* --- Блок 1. Hero --- */
/* .hero--vy наследует layout главной (.hero) без переопределений:
   padding 80px 0 0, .hero-content padding 70px 0, h1 44px, lead max-width 500,
   .hero-visual абсолют к .hero-inner (position:relative) — вёрстка 1:1 с index.
   VY-специфика только ниже: заглавный H1 + блоки .vy-messengers / .vy-reg-number. */
.hero--vy .hero-content h1 { text-transform: uppercase; }

.vy-messengers { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.vy-messenger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.vy-messenger:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.vy-messenger--max { background: #7C5CFF; color: #fff; }
.vy-messenger--tg { background: #229ED9; color: #fff; }
.vy-messenger .ic { font-size: 18px; line-height: 1; }

.vy-reg-number {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 10px 18px;
  background: rgba(255,255,255,.08); border-left: 3px solid var(--gold);
  border-radius: 4px; font-size: 14px;
}
.vy-reg-number strong { color: var(--gold); }

/* --- Блок 2. Социальное доказательство --- */
.trust { background: var(--light); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 36px;
}
.trust-stat { text-align: center; padding: 22px 16px; background: var(--white); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.trust-stat .num { display: block; font-family: 'El Messiri', serif; font-size: 34px; color: var(--brand-red-dark); font-weight: 700; line-height: 1; }
.trust-stat .lbl { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); }
.trust-stars { color: var(--gold); font-size: 20px; letter-spacing: 2px; line-height: 1; }
.trust-stars .lbl { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); letter-spacing: 0; }
.trust-quote { padding: 22px 20px; background: var(--white); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); font-style: italic; color: var(--gray); font-size: 15px; }
.trust-quote strong { display: block; margin-top: 10px; font-style: normal; color: var(--brand-red-dark); }
/* Иконки-ссылки на отзывы (2ГИС, Яндекс.Карты) в первой плитке — в стиле сайта */
.trust-map-links { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.trust-map-link {
  width: 44px; height: 44px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .3px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .15s, box-shadow .15s;
}
.trust-map-link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.trust-map-link--2gis { background: #19AA3F; }
.trust-map-link--ymaps { background: #FC3F1D; }
.trust-reg { text-align: center; padding: 22px 16px; background: var(--white); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.trust-reg .num { display: block; font-family: 'El Messiri', serif; font-size: 20px; color: var(--brand-red-dark); font-weight: 700; }
.trust-reg .lbl { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); }

/* --- Блок 4. Как работаем (своя сетка, не .process-grid) --- */
.vy-process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px;
}
.vy-process-step {
  background: var(--light); border-radius: 10px; padding: 26px 20px; text-align: center;
  position: relative;
}
.vy-process-step .num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-red);
  color: var(--gold); font-family: 'El Messiri', serif; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.vy-process-step h3 { font-size: 16px; color: var(--brand-red-dark); margin-bottom: 8px; }
.vy-process-step p { font-size: 13px; color: var(--gray); }
.vy-process-step::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--brand-red-light); font-size: 22px; font-weight: 700;
}
.vy-process-step:last-child::after { display: none; }

/* --- Блок 6. FAQ (нативный details/summary, без JS) --- */
.faq { background: var(--white); }
.faq-list { max-width: 820px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid #e3e3e3; border-radius: 10px; background: var(--white);
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] { border-color: var(--brand-red); box-shadow: 0 4px 14px rgba(183,28,28,.08); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 16px; color: var(--dark);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; font-size: 24px; line-height: 1; color: var(--brand-red); font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] > summary::after { content: "−"; }
.faq-answer { padding: 0 22px 20px; color: var(--gray); font-size: 15px; line-height: 1.6; }

/* --- Блок 7. Финальный CTA --- */
.cta-final { background: #5F1413; color: var(--white); }
.cta-final-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: var(--max-width); margin: 0 auto; padding: 70px 20px;
}
.cta-final .section-title,
.cta-final .section-subtitle { color: var(--white); text-align: left; }
.cta-final .section-subtitle { color: #ffd; max-width: 460px; }
.cta-final-lead { margin-top: 24px; font-size: 16px; color: #ffd; }
.cta-messengers { margin-top: 24px; }
.cta-final .form-card { background: var(--white); color: var(--dark); }

/* --- Блок 8. Контакты лендинга (не трогая footer.php) --- */
.vy-contacts { background: var(--light); }
.vy-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.vy-contacts-card { background: var(--white); border-radius: 10px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.vy-contacts-card h3 { color: var(--brand-red-dark); font-size: 18px; margin-bottom: 14px; }
.vy-contacts-card p { color: var(--gray); font-size: 15px; margin-bottom: 10px; }
.vy-contacts-card a { color: var(--brand-red); font-weight: 600; }
.vy-social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.vy-social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: #fff;
}
.vy-social .max { background: #7C5CFF; }
.vy-social .tg { background: #229ED9; }
.vy-social .vk { background: #0077FF; }

/* --- Адаптив для новых блоков --- */
@media (max-width: 1024px) {
  .vy-process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cta-final-inner { grid-template-columns: 1fr; gap: 30px; padding: 50px 20px; }
  .cta-final .section-title,
  .cta-final .section-subtitle { text-align: center; }
  .cta-final-lead { text-align: center; }
  .cta-messengers { justify-content: center; }
  .vy-contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
  .vy-process-grid { grid-template-columns: 1fr; }
  .vy-process-step::after { display: none; }
}
@media (max-width: 480px) {
  .vy-messenger { padding: 10px 16px; font-size: 14px; }
  .trust-stat .num { font-size: 28px; }
  .faq-item > summary { font-size: 14px; padding: 14px 16px; }
  .faq-answer { font-size: 14px; padding: 0 16px 16px; }
  .vy-contacts-card { padding: 20px; }
}
@media (max-width: 370px) {
  .vy-messengers { flex-direction: column; align-items: stretch; }
  .vy-messenger { justify-content: center; }
  .trust-stat .num { font-size: 24px; }
  .cta-final-inner { padding: 40px 14px; }
}

/* =========================================================
   Подстраницы-аудитории военного юриста (services/{slug}.php)
   Новые блоки: breadcrumb, Боль/Архетип, Главный оффер 4U.
   Существующие правила не переопределяются.
   ========================================================= */

/* --- Хлебные крошки --- */
.breadcrumb {
  background: var(--light);
  border-bottom: 1px solid #ececec;
  font-size: 13px;
  color: var(--gray);
}
.breadcrumb .container { padding-top: 14px; padding-bottom: 14px; }
/* Breadcrumb ниже fixed-хедера (иначе скрыт за ним); hero--vy сразу за крошками —
   без top-padding, чтобы фото шло сразу за breadcrumb без красной полосы над фото
   (как на index, где фото вплотную к хедеру). Master/index без breadcrumb не затрагиваются. */
.breadcrumb { margin-top: 80px; }
.breadcrumb + section.hero--vy { padding-top: 0; }
@media (max-width: 900px) {
  .breadcrumb { margin-top: 110px; }
}
@media (max-width: 480px) {
  .breadcrumb { margin-top: 95px; }
}
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: #bbb; }
.breadcrumb a { color: var(--brand-red-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--gray); }

/* --- Блок «Боль и мотивация» + Архетип --- */
.pain { background: var(--light); }
.pain-text {
  max-width: 760px; margin: 0 auto;
  font-size: 19px; line-height: 1.6; color: var(--dark); text-align: center;
}
.pain-archetype {
  max-width: 620px; margin: 28px auto 0; padding: 18px 24px;
  background: var(--white); border-left: 4px solid var(--gold);
  border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  font-size: 15px; color: var(--gray);
}
.pain-archetype strong { color: var(--brand-red-dark); font-weight: 700; }

/* --- Блок «Главный оффер (4U)» --- */
.offer-4u {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  text-align: center;
}
.offer-4u .offer-4u-inner { max-width: 860px; margin: 0 auto; padding: 64px 20px; }
.offer-4u .offer-4u-eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 16px;
  background: rgba(255,255,255,.12); border-radius: 30px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold);
}
.offer-4u-text {
  font-size: 26px; line-height: 1.4; font-weight: 700; margin: 0 0 28px;
}
.offer-4u .btn-gold { font-size: 17px; padding: 16px 34px; }
.offer-4u .btn-outline {
  margin-left: 12px; color: var(--white); border-color: rgba(255,255,255,.55);
}
.offer-4u .btn-outline:hover { background: rgba(255,255,255,.12); }
.offer-4u-note { margin-top: 18px; font-size: 13px; color: #ffd; opacity: .9; }
/* Дубль оффера с фоновой картинкой справа снизу (поверх красного градиента) */
.offer-4u--pic {
  background:
    url(/assets/img/logo-trancperency-22-33.png) right 20% bottom 0 / auto 88% no-repeat,
    linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
}
@media (max-width: 600px) {
  .offer-4u--pic {
    background:
      url(/assets/img/logo-trancperency-22-33.png) right 20% bottom 0 / auto 62% no-repeat,
      linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  }
}

/* --- Обратная ссылка на мастер-страницу --- */
.vy-back {
  background: var(--white); border-top: 1px solid #ececec;
  padding: 28px 0; text-align: center;
}
.vy-back a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-red-dark); font-weight: 600; text-decoration: none;
  padding: 10px 22px; border: 1px solid #e0d8c8; border-radius: 30px;
  transition: background .15s;
}
.vy-back a:hover { background: var(--light); }

/* --- Адаптив для новых блоков подстраниц --- */
@media (max-width: 1024px) {
  .offer-4u-text { font-size: 23px; }
}
@media (max-width: 900px) {
  .offer-4u-text { font-size: 20px; }
  .pain-text { font-size: 17px; }
  .offer-4u .offer-4u-inner { padding: 48px 20px; }
}
@media (max-width: 600px) {
  .offer-4u-text { font-size: 18px; }
  .pain-text { font-size: 16px; }
  .offer-4u .btn-gold,
  .offer-4u .btn-outline { display: block; margin: 0 auto 12px; max-width: 320px; }
  .offer-4u .btn-outline { margin-left: auto; }
  .breadcrumb { font-size: 12px; }
}
@media (max-width: 480px) {
  .offer-4u-text { font-size: 17px; }
  .offer-4u .offer-4u-inner { padding: 40px 16px; }
  .pain-archetype { padding: 16px 18px; font-size: 14px; }
}
@media (max-width: 370px) {
  .offer-4u-text { font-size: 16px; }
  .pain-text { font-size: 15px; }
  .breadcrumb .container { padding-top: 10px; padding-bottom: 10px; }
}

/* =========================================================
   Доп. блоки лендинга/подстраниц ВЮ: О юристе, Стоимость, Блог.
   ========================================================= */

/* --- Блок «О юристе» (мастер) --- */
.vy-about { background: var(--white); }
.vy-about-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center;
  margin-top: 36px;
}
.vy-about-photo { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.vy-about-photo img { display: block; width: 100%; height: auto; }
.vy-about-bio h3 { color: var(--brand-red-dark); font-size: 22px; margin-bottom: 12px; }
.vy-about-bio p { color: var(--gray); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.vy-about-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.vy-about-fact {
  background: var(--light); border-radius: 8px; padding: 14px 18px; text-align: center;
  min-width: 120px;
}
.vy-about-fact .num { display: block; font-family: 'El Messiri', serif; font-size: 24px; color: var(--brand-red-dark); font-weight: 700; line-height: 1; }
.vy-about-fact .lbl { display: block; margin-top: 6px; font-size: 12px; color: var(--gray); }
.vy-about-pubs { margin-top: 18px; font-size: 14px; color: var(--gray); }
.vy-about-pubs strong { color: var(--dark); display: block; margin-bottom: 6px; }

/* --- Блок «Стоимость» (мастер + подстраницы) --- */
.vy-pricing { background: var(--light); }
.vy-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px;
}
.vy-pricing-card {
  background: var(--white); border-radius: 12px; padding: 28px 22px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); border-top: 3px solid var(--brand-red);
}
.vy-pricing-card h3 { color: var(--brand-red-dark); font-size: 17px; margin-bottom: 10px; }
.vy-pricing-card p { color: var(--gray); font-size: 14px; margin-bottom: 16px; min-height: 40px; }
.vy-pricing-price {
  font-family: 'El Messiri', serif; font-size: 28px; color: var(--brand-red-dark); font-weight: 700;
}
.vy-pricing-price .from { font-size: 14px; color: var(--gray); font-weight: 400; }
.vy-pricing-note { margin-top: 22px; text-align: center; font-size: 15px; color: var(--dark); }
.vy-pricing-note strong { color: var(--brand-red-dark); }

/* --- Секция «Блог / база знаний» (мастер) --- */
.vy-blog { background: var(--white); }
.vy-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px;
}
.vy-blog-card {
  background: var(--light); border-radius: 10px; padding: 24px 20px; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.vy-blog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.vy-blog-card .cat { font-size: 12px; color: var(--brand-red); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.vy-blog-card h3 { font-size: 17px; color: var(--dark); margin-bottom: 12px; line-height: 1.35; }
.vy-blog-card p { color: var(--gray); font-size: 14px; flex-grow: 1; }
.vy-blog-card a.read { margin-top: 16px; color: var(--brand-red-dark); font-weight: 600; text-decoration: none; }
.vy-blog-card a.read::after { content: " →"; }
.vy-blog-empty { text-align: center; color: var(--gray); font-size: 15px; padding: 30px 0; }
.vy-blog-all { text-align: center; margin-top: 30px; }
.vy-blog-all a { color: var(--brand-red-dark); font-weight: 600; }
.vy-blog-all a::after { content: " →"; }

/* --- Адаптив доп. блоков --- */
@media (max-width: 1024px) {
  .vy-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .vy-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .vy-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .vy-about-photo { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .vy-pricing-grid { grid-template-columns: 1fr; }
  .vy-blog-grid { grid-template-columns: 1fr; }
  .vy-about-facts { justify-content: center; }
}
@media (max-width: 480px) {
  .vy-about-bio h3 { font-size: 19px; }
  .vy-pricing-card { padding: 22px 16px; }
  .vy-pricing-price { font-size: 24px; }
}
@media (max-width: 370px) {
  .vy-about-fact { min-width: 100px; padding: 12px 14px; }
  .vy-pricing-card p { min-height: 0; }
}

/* =========================================================
   Плавающие FAB-кнопки быстрого доступа (ТЗ).
   Стек справа снизу. z-index 900 — выше контента, ниже
   шапки (1000) и модалки консультации (2000).
   ========================================================= */
/* === Мегакнопка FAB (speed-dial, ЛОГ 63) === */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none; /* контейнер не перехватывает клики мимо кнопок */
}

/* Оверлей-затемнение при раскрытом меню (клик-вне → закрыть) */
.fab-overlay {
  position: fixed; inset: 0; z-index: 0;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background .22s;
}
.fab.is-open .fab-overlay { background: rgba(0,0,0,.28); pointer-events: auto; }

/* Меню действий — раскрывается вверх из мегабаттона */
.fab-dial { position: relative; z-index: 2; }
.fab-menu {
  position: absolute; right: 0; bottom: 100%; padding-bottom: 12px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.fab-menu .fab-btn {
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px) scale(.5);
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.fab.is-open .fab-menu { pointer-events: auto; }
.fab.is-open .fab-menu .fab-btn {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}
/* Каскад: нижний (ближе к кнопке) появляется первым */
.fab.is-open .fab-menu .fab-btn:nth-child(6) { transition-delay: .04s; }
.fab.is-open .fab-menu .fab-btn:nth-child(5) { transition-delay: .08s; }
.fab.is-open .fab-menu .fab-btn:nth-child(4) { transition-delay: .12s; }
.fab.is-open .fab-menu .fab-btn:nth-child(3) { transition-delay: .16s; }
.fab.is-open .fab-menu .fab-btn:nth-child(2) { transition-delay: .20s; }
.fab.is-open .fab-menu .fab-btn:nth-child(1) { transition-delay: .24s; }

/* Сами круглые кнопки действий (цвета — ниже) */
.fab-btn {
  pointer-events: auto;
  position: relative;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .18s, box-shadow .18s, opacity .25s;
  text-decoration: none;
  isolation: isolate;
}
/* Шиммер — бегущий блик по круглой кнопке.
   clip-path circle() обрезает блик по кругу БЕЗ overflow:hidden,
   чтобы не обрезать подпись-пилюлю .fab-label (она слева ВНЕ круга). */
.fab-btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  background-size: 220% 100%; background-position: -120% 0;
  animation: btn-shimmer 3.2s ease-in-out infinite;
}
.fab-menu .fab-btn:nth-child(2)::before { animation-delay: .4s; }
.fab-menu .fab-btn:nth-child(3)::before { animation-delay: .8s; }
.fab-menu .fab-btn:nth-child(4)::before { animation-delay: 1.2s; }
.fab-menu .fab-btn:nth-child(5)::before { animation-delay: 1.6s; }
.fab-menu .fab-btn:nth-child(6)::before { animation-delay: 2.0s; }
.fab-btn svg { width: 24px; height: 24px; display: block; position: relative; z-index: 1; }
.fab-btn:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(0,0,0,.26); }
.fab-btn:active { transform: translateY(-1px) scale(.96); }
.fab-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Подпись-«пилюля» слева от кнопки */
.fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px);
  white-space: nowrap; background: var(--dark); color: #fff;
  font: 600 13px/1 system-ui,Segoe UI,Roboto,Arial,sans-serif;
  padding: 6px 12px; border-radius: 18px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.fab-label::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--dark);
}
/* В раскрытом меню пилюли видны всегда */
.fab.is-open .fab-menu .fab-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.fab-btn:hover .fab-label,
.fab-btn:focus-visible .fab-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Цвета кнопок действий */
.fab-btn--consult   { background: var(--brand-red); }
.fab-btn--consult:hover { background: var(--brand-red-dark); }
.fab-btn--call      { background: #1a7f37; }
.fab-btn--call:hover { background: #156a2c; }
.fab-btn--telegram  { background: #229ED9; }
.fab-btn--telegram:hover { background: #1d8ac4; }
.fab-btn--max       { background: #7C5CFF; }
.fab-btn--max:hover { background: #6a4df0; }
.fab-btn--yandex    { background: #FC3F1D; }
.fab-btn--yandex:hover { background: #e02d0d; }
.fab-btn--twogis    { background: #0AA65B; }
.fab-btn--twogis:hover { background: #08924f; }

/* «Наверх» — отдельная над мегабаттоном, появляется по скроллу */
.fab-btn--top {
  background: #2b2f36; color: #fff;
  opacity: 0; transform: translateY(12px) scale(.7);
  pointer-events: none;
}
.fab-btn--top:hover { background: #1A1A1A; }
.fab.is-scrolled .fab-btn--top { opacity: 1; transform: none; pointer-events: auto; }

/* Мегабаттон-тоггл «+» → «✕» */
.fab-toggle {
  pointer-events: auto;
  position: relative;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; padding: 0;
  background: var(--brand-red);
  box-shadow: 0 6px 20px rgba(163,5,14,.4);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s;
  isolation: isolate;
  z-index: 1;
}
.fab-toggle:hover { background: var(--brand-red-dark); box-shadow: 0 8px 26px rgba(163,5,14,.5); }
.fab-toggle:active { transform: scale(.94); }
.fab-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fab-toggle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  background-size: 220% 100%; background-position: -120% 0;
  animation: btn-shimmer 3.2s ease-in-out infinite;
}
.fab-toggle__icon { width: 28px; height: 28px; display: block; position: relative; z-index: 1; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.fab.is-open .fab-toggle { background: var(--dark); }
.fab.is-open .fab-toggle__icon { transform: rotate(135deg); }

@media (prefers-reduced-motion: reduce) {
  .fab-btn::before, .fab-toggle::before { animation: none; }
  .fab-menu .fab-btn, .fab-toggle__icon { transition: none; }
}

/* Адаптив */
@media (max-width: 600px) {
  .fab { right: 14px; bottom: 14px; gap: 10px; }
  .fab-btn { width: 46px; height: 46px; }
  .fab-btn svg { width: 22px; height: 22px; }
  .fab-toggle { width: 54px; height: 54px; }
  .fab-toggle__icon { width: 26px; height: 26px; }
}
@media (max-width: 370px) {
  .fab { gap: 8px; }
  .fab-btn { width: 42px; height: 42px; }
  .fab-toggle { width: 50px; height: 50px; }
  .fab-toggle__icon { width: 24px; height: 24px; }
}

/* === Баннер уведомления о куки (раз в сутки, ЛОГ 64) === */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(130%);
  z-index: 800; /* ниже FAB (900) и модалки (2000) */
  max-width: 460px; width: calc(100% - 100px);
  background: var(--dark); color: #fff;
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  font: 400 13px/1.45 system-ui,Segoe UI,Roboto,Arial,sans-serif;
  opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s, visibility .3s;
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 220px; }
.cookie-banner__text a { color: var(--gold); text-decoration: underline; }
.cookie-banner__text a:hover { text-decoration: none; }
.cookie-banner__btn {
  flex: 0 0 auto; border: none; cursor: pointer;
  background: var(--gold); color: #1a1a1a;
  font: 600 14px/1 system-ui,Segoe UI,Roboto,Arial,sans-serif;
  padding: 9px 18px; border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.cookie-banner__btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.cookie-banner__btn:active { transform: translateY(0) scale(.96); }
.cookie-banner__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 600px) {
  /* Поднимаем баннер НАД FAB (который снизу-справа ~68px), чтобы не перекрывал «Принял» */
  .cookie-banner { width: calc(100% - 24px); left: 12px; bottom: 86px; transform: translateY(160%); padding: 12px 14px; }
  .cookie-banner.is-visible { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cookie-banner.is-visible { transition: none; }
}

/* === Юридические страницы (Политика конфиденциальности, Согласие) === */
.legal-page { padding: 64px 0 80px; background: var(--light); }
.legal-inner { max-width: 820px; margin: 0 auto; padding: 0 20px;
  font-size: 16px; line-height: 1.75; color: var(--dark); }
.legal-inner h1 { font-family: 'El Messiri', serif; font-size: 30px; font-weight: 700;
  text-align: center; margin: 0 0 26px; color: var(--brand-red); }
.legal-inner h2 { font-family: 'El Messiri', serif; font-size: 20px; font-weight: 600;
  margin: 30px 0 12px; color: var(--brand-red-dark);
  border-left: 3px solid var(--brand-red); padding-left: 12px; }
.legal-inner p { margin: 0 0 12px; }
.legal-inner ul { margin: 0 0 16px; padding-left: 24px; }
.legal-inner li { margin-bottom: 6px; }
.legal-inner a { color: var(--brand-red-dark); }
.legal-inner strong { font-weight: 700; }
@media (max-width: 600px) {
  .legal-page { padding: 44px 0 56px; }
  .legal-inner { padding: 0 16px; font-size: 15px; }
  .legal-inner h1 { font-size: 23px; }
  .legal-inner h2 { font-size: 18px; }
}
@media (max-width: 370px) {
  .legal-inner { padding: 0 12px; }
}

/* === Чекбокс согласия на обработку ПД (все формы) === */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: inherit;          /* наследует: тёмный на белом, белый на тёмном */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.consent-box {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border: 2px solid #c8ccd2;
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.consent-box svg { opacity: 0; transition: opacity .12s ease; }
.consent input:checked + .consent-box {
  background: var(--brand-red);
  border-color: var(--brand-red);
}
.consent input:checked + .consent-box svg { opacity: 1; }
.consent input:focus-visible + .consent-box {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.consent-text { padding-top: 5px; }
.consent-text a {
  color: #b71c1c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-text a:hover { text-decoration: none; }
@media (max-width: 600px) {
  .consent { gap: 9px; font-size: 12.5px; }
}
@media (max-width: 370px) {
  .consent { font-size: 12px; }
}

/* === Hero-копия: два блока друг под другом === */
.hero--split { padding: 0; }
.hero--split .container { padding: 0; max-width: none; margin-top: 30px; }
.hero--split .hero-split-top {
  background-image: url('../img/hero-back3.png');
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  padding: 70px 20px;
}
.hero--split .hero-split-top .hero-content {
  padding: 0;
  height: auto;
  max-width: 1200px;
  margin: 0 auto;
  width: 60%;
  margin-left: 0;
  padding-top: 20px;
}
.hero--split .hero-split-bottom {
  background: #A3050E;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero--split .hero-badges { margin-top: 24px; }
.hero--split .hero-content h1 { text-transform: uppercase; }
@media (max-width: 768px) {
  .hero--split .hero-split-top { padding: 50px 20px; }
  .hero--split .hero-split-bottom { padding: 30px 20px; }
}

/* Первый хиро — только десктоп; второй хиро — мобильные + планшеты */
@media (max-width: 1024px) {
  .hero:not(.hero--split) { display: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .hero--split .hero-split-top {
    background-image: url('../img/hero-back3.png');
    background-size: cover;
    background-position: 60% center;
    background-repeat: no-repeat;
    padding: 70px 20px;
    padding-top: 200px;
    min-height: 600px;
  }
}
@media (min-width: 1025px) {
  .hero.hero--split { display: none; }
}
@media (max-width: 767px) {
  .hero--split .hero-split-top {
    padding-top: var(--header-h, 110px);
    background-origin: content-box;
    background-position: 60% top;
    margin-bottom: -35px;
  }
}

/* === Вторая секция формы (#form-2): 2 блока — текст+форма, видео-фон === */
#form-2.form-section--stack { padding: 0; }

#form-2 .fs2-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 20px 50px;
  text-align: center;
}

#form-2 .fs2-text .section-subtitle {
  margin-bottom: 34px;
}

#form-2 .fs2-form {
  display: flex;
  justify-content: center;
}

#form-2 .fs2-form .form-card {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

#form-2 .fs2-video {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

#form-2 .fs2-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  #form-2 .fs2-text { padding: 50px 16px 34px; }
}

/* Видимость секций формы по устройству:
   .form-section#form (оригинал, десктоп) — только десктоп; #form-2 — только планшет/телефон.
   cta-final#form (услуги, без видео) не трогаем. */
@media (max-width: 1024px) {
  .form-section#form { display: none; }
}
@media (min-width: 1025px) {
  #form-2 { display: none; }
}

/* Подпись-фото в подвале: скрыть на телефонах и планшетах (≤900px) */
@media (max-width: 900px) {
  .sign-photo { display: none; }
}

/* .about (светлый фон) — btn-outline белый-на-белом → бренд-красный */
.about .btn-outline {
  border-color: var(--brand-red);
  color: var(--brand-red);
}
.about .btn-outline:hover {
  background: var(--brand-red);
  color: var(--white);
}

@media (max-width: 480px) {
  .modal {
    padding: 0px;
  }
}

