/* ===== ДЕЛОВОЙ КОНТРАСТНЫЙ СТИЛЬ + WOW-ДЕТАЛИ ===== */
:root {
  --bg-primary: #F5F2EB;
  --bg-secondary: #FFFFFF;
  --text-primary: #1C1C1C;
  --text-secondary: #5A5A5A;
  --accent: #9C7E5C;
  --accent-dark: #6B5740;
  --border-light: #E3DDD3;
  --error: #B8452C;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  --shadow-card: 0 20px 30px -10px rgba(0,0,0,0.05);
  --shadow-elevated: 0 30px 40px -15px rgba(0,0,0,0.1);
  --shadow-hover: 0 30px 40px -15px rgba(0,0,0,0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  --container-width: 1320px;
  --side-padding: clamp(20px, 5vw, 48px);
}

/* ===== СБРОС И БАЗА ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.8s ease;
  font-weight: 400;
}
body.loaded { opacity: 1; }
body.menu-open { overflow: hidden; }

/* Кастомный курсор */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 10000; transform: translate(-50%, -50%);
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  .cursor-dot { width: 5px; height: 5px; background: var(--accent); opacity: 0.9; }
  .cursor-ring { width: 36px; height: 36px; border: 1px solid var(--accent); opacity: 0.25; transition: width 0.25s, height 0.25s, opacity 0.2s; }
  body.hovering .cursor-ring { width: 48px; height: 48px; opacity: 0.5; }
}

/* Скроллбар */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

.noise-overlay { display: none; }

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(40px, 8vw, 72px); margin-bottom: 24px; }
h2 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 24px; }
h3 { font-size: 26px; margin-bottom: 16px; }
p { margin-bottom: 20px; color: var(--text-secondary); font-weight: 400; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
  position: relative;
  z-index: 2;
}
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; z-index: 1; }
.section-title {
  text-align: left; margin-bottom: 16px;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section-title.visible::after { width: 60px; }
.section-center { text-align: center; margin-top: 40px; }

/* Разделитель */
.divider {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 32px 0;
}

/* Анимации */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

/* ===== ПРЕЛОАДЕР ===== */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-primary); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader__logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 12px;
  color: var(--accent);
  animation: pulse 1.8s infinite;
}
.preloader__progress {
  width: 80px;
  height: 1px;
  background: var(--border-light);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.preloader__progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  animation: progress 2s ease-in-out infinite;
}
@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.4; transform: scale(0.98); }
}
@keyframes progress {
  0% { width: 0; left: 0; }
  50% { width: 100%; left: 0; }
  100% { width: 0; left: 100%; }
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 38px; font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1.5px solid var(--text-primary); cursor: pointer;
  position: relative; isolation: isolate; transition: var(--transition-smooth);
  background: transparent; color: var(--text-primary);
  overflow: hidden; border-radius: 0; letter-spacing: 0.05em;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--text-primary); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1); z-index: -1;
}
.btn:hover { color: white; border-color: var(--text-primary); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

/* Основная кнопка: светлый фон, тёмный текст, при наведении инверсия */
.btn--primary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}
.btn--primary::before { background: var(--text-primary); }
.btn--primary:hover { color: white; }

/* Контурная кнопка */
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--accent);
}
.btn--outline::before { background: var(--accent); }
.btn--outline:hover { color: white; border-color: var(--accent); }

/* Текстовая кнопка */
.btn--text {
  border: none; padding-left: 0; padding-right: 0;
  border-bottom: 1.5px solid var(--accent); font-weight: 500;
}
.btn--text:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
.btn--text::before { display: none; }

/* Исправление цвета текста в кнопках-ссылках (чтобы не перебивал :visited) */
a.btn:visited,
a.btn:link {
  color: inherit;
}
a.btn--primary:visited,
a.btn--primary:link {
  color: var(--text-primary);
}
a.btn--primary:hover {
  color: white;
}
a.btn--outline:visited,
a.btn--outline:link {
  color: var(--text-primary);
}
a.btn--outline:hover {
  color: white;
}

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 24px 0; transition: var(--transition-smooth); background: transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-width); margin: 0 auto; padding: 0 var(--side-padding);
}
.logo {
  font-family: var(--font-serif); font-size: 22px; font-weight: 400;
  letter-spacing: 4px; text-decoration: none; color: var(--text-primary);
}
.nav__list { display: flex; gap: 48px; list-style: none; }
.nav__link {
  text-decoration: none; color: var(--text-primary); font-size: 16px;
  padding-bottom: 4px; border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s;
}
.nav__link:hover { border-bottom-color: var(--accent); }
.contact-phone {
  font-family: var(--font-serif); font-size: 18px; text-decoration: none;
  color: var(--text-primary); border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap !important;
  font-family: monospace !important;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.mobile-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 30px; height: 24px; background: transparent; border: none; cursor: pointer;
  padding: 0; z-index: 101;
}
.mobile-toggle span {
  width: 100%; height: 2px; background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: flex-end;
  background: var(--bg-primary); position: relative; isolation: isolate;
  padding: clamp(100px, 12vh, 140px) 0 0; border-bottom: 1px solid var(--border-light);
}
.hero__watermark {
  position: absolute; bottom: 8%; right: 4%;
  font-family: var(--font-serif); font-size: clamp(160px, 30vw, 360px);
  font-weight: 700; color: rgba(10, 10, 10, 0.025);
  transform: rotate(-8deg); pointer-events: none; z-index: 0;
  line-height: 1; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.2em;
}
.hero__grid {
  display: grid; grid-template-columns: 2fr 1fr; align-items: end;
  gap: 60px; position: relative; z-index: 2; width: 100%;
}
.hero__content { padding-right: 24px; }
.hero__supertitle {
  font-size: 14px; text-transform: uppercase; letter-spacing: 6px;
  color: var(--accent);
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--accent);
  display: inline-block; padding-bottom: 8px;
}
.hero__title { margin-bottom: 30px; }
.hero__subtitle { font-size: 20px; color: var(--text-secondary); max-width: 600px; margin-bottom: 40px; }
.hero__cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero__note { font-size: 14px; color: var(--text-secondary); font-style: italic; }
.hero__media { align-self: end; display: flex; justify-content: flex-end; }
.hero__photo-wrapper { overflow: hidden; max-width: 750px; }
.hero__photo {
  display: block; width: 100%; height: auto; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: grayscale(30%) sepia(10%) brightness(1.05) contrast(1.1);
  box-shadow: var(--shadow-card); margin-bottom: 0;
  max-height: 85vh;
}

/* ===== ФИЛОСОФИЯ ===== */
.philosophy { background: var(--bg-secondary); }
.philosophy__grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px;
}
.philosophy__lead {
  padding-top: 30%;
  font-family: var(--font-serif); font-size: 28px; line-height: 1.3;
  margin-bottom: 30px; color: var(--text-primary);
}
.philosophy__signature { margin-top: 40px; font-style: italic; color: var(--text-secondary); }
.philosophy__photo {
  width: 100%; height: auto; filter: grayscale(100%) sepia(20%) contrast(1.2);
  border: 1px solid var(--border-light); transition: filter 0.5s, transform 0.6s;
}
.philosophy__photo:hover { filter: grayscale(0%) sepia(0%); transform: scale(1.01); }

/* ===== ДЛЯ КОГО ===== */
.clients { background: var(--bg-primary); }
.clients__intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: start;
}
.clients__lead {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.clients__photo {
  width: 100%; height: auto; filter: grayscale(100%) sepia(20%) contrast(1.1);
  border: 1px solid var(--border-light); transition: filter 0.5s ease;
}
.clients__photo:hover { filter: grayscale(0%) sepia(0%); }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.client-card {
  padding: 32px 0;
  border-top: 1.5px solid var(--border-light);
  transition: border-color 0.3s;
}
.client-card:hover { border-top-color: var(--accent); }
.client-card__title { font-size: 24px; margin-bottom: 16px; }
.client-card__desc { font-size: 16px; }

/* ===== НАПРАВЛЕНИЯ ПРАКТИКИ ===== */
.services { background: var(--bg-secondary); }
.services__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: center;
}
.services__photo {
  width: 100%; height: auto; filter: grayscale(100%) sepia(20%) contrast(1.1);
  border: 1px solid var(--border-light); transition: filter 0.5s ease;
}
.services__photo:hover { filter: grayscale(0%) sepia(0%); }
.services__lead {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.4;
  color: var(--text-primary);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.service-card {
  padding: 32px 24px 24px;
  border-bottom: 2px solid var(--border-light);
  transition: var(--transition-smooth);
  background: transparent;
}
.service-card:hover {
  border-bottom-color: var(--text-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.service-card__icon { width: 32px; height: 32px; margin-bottom: 24px; color: var(--accent); }
.service-card__title { font-size: 24px; margin-bottom: 12px; }
.service-card__title a {
  text-decoration: none; color: inherit; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card__title a .link-arrow {
  opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.25s;
  font-size: 20px; line-height: 1;
}
.service-card__title a:hover { color: var(--accent); }
.service-card__title a:hover .link-arrow { opacity: 1; transform: translateX(0); }
.service-card__desc { font-size: 16px; margin-bottom: 0; }

/* ===== ЭКСПЕРТИЗА ===== */
.expertise { background: var(--bg-primary); }
.expertise__intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}
.expertise__lead {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.expertise__photo {
  width: 100%; height: auto; filter: grayscale(100%) sepia(20%) contrast(1.1);
  border: 1px solid var(--border-light); transition: filter 0.5s ease;
}
.expertise__photo:hover { filter: grayscale(0%) sepia(0%); }
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.expertise-item__number {
  font-family: var(--font-serif); font-size: 42px; color: var(--accent);
  opacity: 0.4; line-height: 1; margin-bottom: 20px;
}
.expertise-item__title { font-size: 22px; margin-bottom: 16px; }
.expertise-item__desc { font-size: 16px; margin-bottom: 0; }

/* ===== АДВОКАТСКАЯ ТАЙНА ===== */
.confidentiality { background: var(--bg-secondary); }
.confidentiality__container { max-width: 900px; }
.confidentiality__text { font-size: 18px; color: var(--text-secondary); margin-bottom: 50px; }
.confidentiality__demo-text {
  padding: 24px 0; border-top: 1.5px solid var(--border-light);
  font-size: 18px; transition: filter 0.4s, opacity 0.4s; cursor: default;
}
.confidentiality__demo-text:hover { filter: blur(4px); opacity: 0.6; }

/* ===== ПРОЦЕСС ===== */
.workflow { background: var(--bg-primary); }
.workflow__timeline {
  position: relative; margin-top: 80px; display: flex; justify-content: space-between;
}
.workflow__timeline::before {
  content: ''; position: absolute; top: 7px; left: 0; width: 100%; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
}
.timeline-step { position: relative; flex: 1; padding: 0 15px; }
.timeline-marker {
  position: relative; z-index: 2; width: 16px; height: 16px;
  background: var(--bg-primary); border: 2px solid var(--accent);
  border-radius: 50%; margin-bottom: 30px; transition: transform 0.3s;
}
.timeline-step:hover .timeline-marker { transform: scale(1.3); background: var(--accent); }
.marker-dot {
  display: block; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; margin: 3px auto;
}
.timeline-title { font-size: 22px; margin-bottom: 12px; }
.timeline-content p { font-size: 16px; }

/* ===== КАРУСЕЛЬ ПРОЕКТОВ ===== */
.cases-carousel-section { overflow: hidden; }
.cases-carousel-wrapper { position: relative; margin-top: 40px; }
.cases-carousel { overflow: hidden; padding: 10px 0 20px; margin: 0 50px; }
.carousel-track {
  display: flex; gap: 32px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel-track .case-card {
  flex: 0 0 calc(33.333% - 21.33px); min-width: 280px;
  height: auto; display: flex; flex-direction: column;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-secondary); transition: color 0.3s; z-index: 10;
}
.carousel-arrow:hover { color: var(--accent); }
.carousel-arrow--prev { left: 0; }
.carousel-arrow--next { right: 0; }
.carousel-dots {
  display: flex; justify-content: center; gap: 12px; margin-top: 30px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-light); border: none; padding: 0; cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.carousel-dot:hover { background: var(--accent); transform: scale(1.3); }
.carousel-dot.active {
  background: var(--accent); width: 24px; border-radius: 4px;
}

.case-card {
  background: var(--bg-primary); padding: 32px;
  border: 1.5px solid var(--border-light); transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.case-meta {
  font-size: 14px; color: var(--accent); margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--border-light);
  display: block;
}
.case-content { flex: 1; }
.case-label {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-secondary); margin: 16px 0 6px; display: block;
}
.case-result {
  font-family: var(--font-serif); font-size: 20px; font-style: italic;
  color: var(--text-primary); margin-top: auto; padding-top: 20px;
  border-top: 1.5px solid var(--border-light);
}

/* ===== ЦИТАТА ===== */
.quote { background: var(--bg-secondary); }
.quote__content { max-width: 800px; margin: 0 auto; text-align: center; }
.quote__text {
  font-family: var(--font-serif); font-size: clamp(24px, 4vw, 36px);
  font-style: italic; line-height: 1.4; color: var(--text-primary);
  margin-bottom: 30px; position: relative; padding: 0 40px;
}
.quote__text::before, .quote__text::after {
  content: '“'; font-family: var(--font-serif); font-size: 60px;
  color: var(--accent); opacity: 0.2; position: absolute;
}
.quote__text::before { top: -20px; left: 0; }
.quote__text::after { bottom: -50px; right: 0; content: '”'; }
.quote__author { font-size: 18px; color: var(--text-secondary); }

/* ===== КОНТАКТЫ ===== */
.contacts { background: var(--bg-primary); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contacts__note {
  font-size: 18px; margin-bottom: 40px; color: var(--text-secondary);
  font-style: italic; border-left: 2px solid var(--accent); padding-left: 20px;
}
.contact-item { margin-bottom: 12px; }
.contact-item span { font-weight: 500; width: 120px; display: inline-block; }
.contact-item a { color: var(--text-primary); text-decoration: none; border-bottom: 1.5px solid var(--border-light); }
.contact-icons { display: flex; gap: 20px; margin-top: 16px; }
.contact-icon {
  font-size: 28px; text-decoration: none; color: var(--text-primary);
  transition: color 0.2s, transform 0.2s;
}
.contact-icon:hover { color: var(--accent); transform: translateY(-2px); }

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.modal.active { opacity: 1; visibility: visible; }
.modal__container {
  background: var(--bg-primary); max-width: 600px; width: 90%;
  padding: 48px 40px; position: relative; box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
}
.modal__close {
  position: absolute; top: 20px; right: 20px; background: none;
  border: none; font-size: 24px; cursor: pointer; color: var(--text-secondary);
  transition: color 0.2s;
}
.modal__close:hover { color: var(--accent); }

/* ===== ФОРМЫ ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 0; border: none;
  border-bottom: 1px solid var(--border-light); background: transparent;
  font-family: var(--font-sans); font-size: 16px; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-bottom-color: var(--accent);
}
.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-hint {
  font-size: 12px; color: var(--text-secondary); text-align: center; margin-top: 20px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0; background: var(--bg-primary);
  border-top: 1.5px solid var(--border-light);
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 14px; color: var(--text-secondary); }
.footer__link {
  font-size: 14px; color: var(--text-primary); text-decoration: none;
  border-bottom: 1.5px solid var(--border-light);
}

/* ===== СТРАНИЦЫ ===== */

/* offer.html */
.offer-page { padding-top: 140px; padding-bottom: 80px; }
.offer-content {
  max-width: 1000px; margin: 0 auto; background: var(--bg-secondary);
  padding: 60px 50px; border: 1px solid var(--border-light); box-shadow: var(--shadow-card);
}
.offer-content h1 { font-size: 38px; margin-bottom: 24px; }
.offer-content h2 { font-size: 24px; margin: 32px 0 16px; color: var(--accent); }
.offer-content h3 { font-size: 20px; margin: 24px 0 12px; }
.offer-content p { margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.offer-content .indent { padding-left: 30px; }
.offer-footer {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-light);
  font-size: 14px; color: var(--text-secondary);
}

/* privacy.html */
.legal-page { padding-top: 160px; padding-bottom: 80px; }
.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content h2 { font-size: 28px; margin: 40px 0 16px; }

/* cases.html */
.cases-header { padding-top: 160px; padding-bottom: 60px; background: var(--bg-primary); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 60px 0; }
.cases-stats {
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 40px 0; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light); margin: 40px 0;
}

/* practice.html */
.hero-practice {
  min-height: auto; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 60px; background: var(--bg-primary);
}
.hero-practice .hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end;
}
.hero-practice .hero__media { align-self: end; }
.method-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin: 60px 0; }
.principle-card {
  border-left: 3px solid var(--accent); padding: 20px 0 20px 30px; background: transparent;
}
.principle-card h3 { font-size: 26px; margin-bottom: 12px; }
.process-timeline { display: flex; flex-wrap: wrap; gap: 30px; margin: 50px 0; }
.process-step {
  flex: 1; min-width: 200px; background: var(--bg-secondary); padding: 30px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.process-step:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.process-step__number {
  font-family: var(--font-serif); font-size: 48px; font-weight: 600;
  color: var(--accent); opacity: 0.5; margin-bottom: 16px;
}

/* services.html */
.services-hero { padding-top: 140px; padding-bottom: 60px; background: var(--bg-primary); }
.intro-block { max-width: 800px; margin-bottom: 60px; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 60px 0; }
.direction-card {
  border-bottom: 1.5px solid var(--border-light); padding-bottom: 24px;
  transition: transform 0.3s, border-color 0.3s;
}
.direction-card:hover { transform: translateY(-4px); border-bottom-color: var(--accent); }
.direction-card h3 { font-size: 24px; margin-bottom: 12px; }
.direction-card p { font-size: 16px; margin-bottom: 20px; color: var(--text-secondary); }
.direction-link {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--text-primary); border-bottom: 1px solid var(--accent);
  padding-bottom: 2px; transition: color 0.2s;
}
.direction-link:hover { color: var(--accent); }
.philosophy-quote {
  background: var(--bg-secondary); padding: 60px 40px; text-align: center; margin: 60px 0;
}
.philosophy-quote p {
  font-family: var(--font-serif); font-size: 24px; font-style: italic;
  max-width: 800px; margin: 0 auto; color: var(--text-primary);
}
.stat-banner {
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 40px 0; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light); margin: 40px 0;
}
.stat-item { text-align: center; flex: 1; }
.stat-number {
  font-family: var(--font-serif); font-size: 40px; font-weight: 600; color: var(--accent);
}
.stat-label {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary);
}
.action-block { text-align: center; padding: 80px 0; background: var(--bg-primary); }

/* Страницы направлений (общие) */
.service-hero { padding-top: 140px; padding-bottom: 60px; background: var(--bg-primary); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin: 60px 0; }
.service-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin: 60px 0; }
.feature-card { border-left: 2px solid var(--accent); padding-left: 24px; }
.feature-card h3 { font-size: 22px; margin-bottom: 12px; }
.case-mini { background: var(--bg-secondary); padding: 40px; margin: 60px 0; }
.stat-row {
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 40px 0; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light); margin: 40px 0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1100px) {
  .hero__grid { gap: 30px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .expertise__grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track .case-card { flex: 0 0 calc(50% - 16px); }
}
@media (max-width: 1000px) {
  .direction-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header__inner { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin-top: 15px; }
  .nav__list { justify-content: space-between; gap: 20px; }
  .philosophy__grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .workflow__timeline { flex-wrap: wrap; }
  .timeline-step { flex: 0 0 50%; margin-bottom: 40px; }
  .workflow__timeline::before { display: none; }
  .clients__intro-grid,
  .services__intro-grid,
  .expertise__intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .clients__media,
  .services__media,
  .expertise__media {
    transform: none;
    order: -1;
  }
  .method-principles { grid-template-columns: 1fr; }
  .process-timeline { flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-features { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero__media { max-width: 400px; margin: 0 auto; order: -1; }
  .hero__photo-wrapper { max-width: 100%; }
  .hero__photo { max-height: 60vh; }
  .hero__content { padding-right: 0; text-align: center; }
  .hero__cta { align-items: center; }
  .services__grid { grid-template-columns: 1fr; }
  .expertise__grid { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: 1fr; }
  .timeline-step { flex: 0 0 100%; }
  .mobile-toggle { display: flex; }
  .nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-primary); display: flex; align-items: center; justify-content: center;
    transform: translateX(100%); transition: transform 0.4s ease;
    z-index: 99; margin-top: 0;
  }
  .nav.active { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: center; gap: 32px; }
  .cases-carousel { margin: 0 40px; }
  .carousel-track .case-card { flex: 0 0 100%; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow svg { width: 28px; height: 28px; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .direction-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .stat-banner { flex-direction: column; gap: 20px; }
  .philosophy-quote p { font-size: 20px; }
  .hero-practice .hero__grid { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .hero-practice .hero__media { align-self: center; margin-top: 20px; }
  .hero-practice { padding-top: 100px; }
  .stat-row { flex-direction: column; gap: 20px; }
  .cases-stats { flex-direction: column; gap: 20px; text-align: center; }
  .offer-content { padding: 32px 24px; }
  .offer-content h1 { font-size: 28px; }
}
@media (max-width: 480px) {
  .cases-carousel { margin: 0 30px; }
}
.form-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
}