/* ==========================================================================
   АДВОКАТ КЕВЧЕНКОВ — MAIN.CSS
   Единый файл стилей. Структура:
   01. Токены (CSS-переменные)
   02. Reset / Base
   03. Типографика
   04. Утилиты (container, skip-link, visually-hidden)
   05. Кнопки (.btn)
   06. Логотип
   07. Хедер + навигация + бургер
   08. Hero
   09. Trust-bar
   10. Секции (общие)
   11. Услуги (.services-grid, .service-card)
   12. УТП-блок
   13. Принципы
   14. Процесс
   15. Кейсы
   16. Отзывы
   17. FAQ
   18. Контакты + форма
   19. Футер
   20. Cookie-баннер
   21. Анимации / reduced-motion
   22. Адаптив (media-queries)
   23. Print
   ========================================================================== */

/* ==========================================================================
   01. ТОКЕНЫ
   ========================================================================== */
:root {
  /* Цвета */
  --ink:        #0E1311;
  --graphite:   #1C2421;
  --sage:       #95AA9E;
  --sage-light: #C8D4CC;
  --gold:       #B8925A;
  --gold-dark:  #A47C47;
  --cream:      #F7F5F0;
  --paper:      #FDFCF9;
  --text:       #20261F;
  --muted:      #5C6660;
  --white:      #FFFFFF;
  --line-light: rgba(0, 0, 0, 0.08);
  --line-dark:  rgba(255, 255, 255, 0.12);

  /* Типографика */
  --font-h: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Размеры */
  --container: 1200px;
  --radius: 18px;
  --radius-sm: 10px;

  /* Отступы */
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --gap: clamp(1rem, 2.5vw, 2rem);

  /* Тени */
  --shadow-photo: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  --shadow-card:  0 2px 20px -6px rgba(14, 19, 17, 0.12);

  /* Переходы */
  --t-fast: 0.18s ease;
  --t-med:  0.28s ease;

  /* Z-index */
  --z-header: 50;
  --z-cookie: 100;
}

/* ==========================================================================
   02. RESET / BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* чтобы якоря не прятались под sticky-хедер */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   03. ТИПОГРАФИКА
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  max-width: 68ch;
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

/* ==========================================================================
   04. УТИЛИТЫ
   ========================================================================== */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 1rem;
}

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

.eyebrow {
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  max-width: none;
}
.eyebrow--light {
  color: var(--sage-light);
}

.accent {
  color: var(--gold);
  font-style: italic;
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 1.2rem 0 1.8rem;
  max-width: 56ch;
}

/* ==========================================================================
   05. КНОПКИ
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--sage);
  color: var(--sage);
}
.btn--ghost:hover {
  background: var(--sage);
  color: var(--ink);
}

.btn--link {
  padding: 0.4rem 0;
  color: var(--ink);
  border-radius: 0;
  border-bottom: 1px solid currentColor;
}
.btn--link:hover {
  color: var(--gold);
}

.btn--lg {
  padding: 1.05rem 2rem;
  font-size: 1rem;
}

/* ==========================================================================
   06. ЛОГОТИП
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text small {
  font-family: var(--font-b);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.logo--footer {
  color: var(--cream);
}
.logo--footer .logo__mark {
  background: var(--gold);
  color: var(--ink);
}
.logo--footer .logo__text small {
  color: var(--sage-light);
}

/* ==========================================================================
   07. ХЕДЕР + НАВИГАЦИЯ
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.nav ul {
  display: flex;
  gap: 1.8rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 0.3rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-med);
}
.nav a:hover {
  color: var(--gold);
}
.nav a:hover::after {
  width: 100%;
}

.header__phone {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.header__phone:hover {
  color: var(--gold);
}

/* Бургер — только на мобильных */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  transition: background var(--t-fast);
}
.burger:hover {
  background: rgba(0, 0, 0, 0.04);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}

/* Крестик при открытом меню */
body.nav-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   08. HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--graphite) 100%);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(4rem, 8vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(184, 146, 90, 0.14), transparent 55%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__copy h1 {
  color: var(--cream);
}

.hero__copy .lead {
  color: #C9CEC8;
}

.motto {
  margin: 1.6rem 0 2.2rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.motto em {
  font-family: var(--font-h);
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 500;
}
.motto span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--sage-light);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.hero .btn--link {
  color: var(--cream);
}
.hero .btn--link:hover {
  color: var(--gold);
}

.hero__photo img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-photo);
}

/* ==========================================================================
   09. TRUST-BAR
   ========================================================================== */
.trust-bar {
  background: var(--graphite);
  color: var(--cream);
  border-top: 1px solid var(--line-dark);
  padding: 2rem 0;
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.trust-bar__item strong {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.trust-bar__item span {
  font-size: 0.82rem;
  color: var(--sage-light);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   10. СЕКЦИИ
   ========================================================================== */
.section {
  padding: var(--section-y) 0;
}

.section--cream {
  background: var(--cream);
}

.section--dark {
  background: var(--ink);
  color: var(--cream);
}
.section--dark h2 {
  color: var(--cream);
}
.section--dark h3 {
  color: var(--cream);
}
.section--dark p {
  color: #C9CEC8;
}
.section--dark a:not(.btn) {
  color: var(--cream);
}

/* ==========================================================================
   11. УСЛУГИ
   ========================================================================== */
.services-grid {
  display: grid;
  gap: 1.2rem;
}

.service-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem;
  transition:
    background var(--t-med),
    border-color var(--t-med),
    transform var(--t-med);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 146, 90, 0.4);
  transform: translateY(-3px);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__num {
  display: block;
  font-family: var(--font-h);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.service-card__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 0.7rem;
}

.service-card h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  margin-bottom: 1.4rem;
  color: var(--cream);
}

.service-card__arrow {
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform var(--t-med);
  display: inline-block;
}
.service-card:hover .service-card__arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   12. УТП-БЛОК
   ========================================================================== */
.usp__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.usp__case {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-card);
}

.usp__case-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.usp__case-text {
  font-family: var(--font-h);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

/* ==========================================================================
   13. ПРИНЦИПЫ
   ========================================================================== */
.principles {
  display: grid;
  gap: 1.5rem;
}

.principle {
  background: var(--paper);
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  transition: border-color var(--t-med), transform var(--t-med);
}
.principle:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}

.principle__num {
  display: block;
  font-family: var(--font-h);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1rem;
}

.principle h3 {
  margin-bottom: 0.8rem;
}

.principle p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   14. ПРОЦЕСС
   ========================================================================== */
.process-list {
  display: grid;
  gap: 1.5rem;
  counter-reset: process;
}

.process-list li {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 4.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}

.process-list__num {
  position: absolute;
  left: 1.4rem;
  top: 1.5rem;
  font-family: var(--font-h);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}

.process-list h3 {
  margin-bottom: 0.5rem;
}

.process-list p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   15. КЕЙСЫ
   ========================================================================== */
.cases-grid {
  display: grid;
  gap: 1.2rem;
}

.case-card {
  display: block;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color var(--t-med), background var(--t-med);
}
.case-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 146, 90, 0.4);
}

.case-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184, 146, 90, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.case-card h3 {
  margin-bottom: 0.8rem;
}

.case-card p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.case-card__arrow {
  display: inline-block;
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform var(--t-med);
}
.case-card:hover .case-card__arrow {
  transform: translateX(6px);
}

.cases-more {
  margin-top: 2.5rem;
  text-align: center;
}

/* ==========================================================================
   16. ОТЗЫВЫ
   ========================================================================== */
.reviews {
  display: grid;
  gap: 1.5rem;
}

.review {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.review::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  right: 1.4rem;
  font-family: var(--font-h);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}

.review__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.review blockquote {
  margin-bottom: 1.4rem;
}

.review blockquote p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #D4D8D3;
}

.review figcaption {
  font-family: var(--font-h);
  font-size: 1.05rem;
  color: var(--gold);
  font-style: italic;
}

.reviews-more {
  margin-top: 2.5rem;
  text-align: center;
}
.section--dark .reviews-more .btn--link {
  color: var(--gold);
  border-color: var(--gold);
}

/* ==========================================================================
   17. FAQ
   ========================================================================== */
.faq {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-med);
}

.faq details[open] {
  border-color: var(--sage);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  font-family: var(--font-b);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-h);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--t-med);
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   18. КОНТАКТЫ + ФОРМА
   ========================================================================== */
.contact__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-list li {
  font-size: 1rem;
  color: #C9CEC8;
}
.contact-list a {
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.contact-list a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Форма */
.form {
  display: grid;
  gap: 1.2rem;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__row label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sage-light);
  letter-spacing: 0.04em;
}

.form input[type="text"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-b);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(200, 212, 204, 0.5);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--sage-light);
  cursor: pointer;
}

.form__consent input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form__consent a {
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}

.form__note {
  font-size: 0.78rem;
  color: rgba(200, 212, 204, 0.7);
  margin: 0;
}

.form .btn--primary {
  justify-self: start;
}

/* Сообщения валидации */
.form__error {
  font-size: 0.8rem;
  color: #E57373;
  margin-top: 0.2rem;
}

.form input:invalid:not(:placeholder-shown),
.form input.is-invalid {
  border-color: #E57373;
}

/* Успех */
.form__success {
  background: rgba(149, 170, 158, 0.15);
  border: 1px solid var(--sage);
  color: var(--cream);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* ==========================================================================
   19. ФУТЕР
   ========================================================================== */
.footer {
  background: var(--graphite);
  color: #C9CEC8;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--line-dark);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

.footer__col h4 {
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1.1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
}

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

.footer__copy {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(200, 212, 204, 0.7);
  margin-top: 1.2rem;
  max-width: none;
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(200, 212, 204, 0.55);
  max-width: none;
}

/* ==========================================================================
   20. COOKIE-БАННЕР
   ========================================================================== */
.cookie {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: var(--z-cookie);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.35);
  padding: 1.4rem;
  animation: cookie-slide 0.3s ease;
}

@keyframes cookie-slide {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie__body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.cookie__body p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  max-width: none;
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.cookie__link {
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid currentColor;
  margin-left: auto;
}
.cookie__link:hover {
  color: var(--gold);
}

.cookie .btn--ghost {
  border-color: var(--sage);
  color: var(--text);
}
.cookie .btn--ghost:hover {
  background: var(--sage);
  color: var(--white);
}

/* ==========================================================================
   21. АНИМАЦИИ / REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   22. АДАПТИВ
   ========================================================================== */

/* --- ≥ 480px: чуть больше воздуха --- */
@media (min-width: 480px) {
  .cookie__body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie__body p {
    flex: 1;
  }
  .cookie__link {
    margin-left: 0;
  }
}

/* --- ≥ 768px: планшет --- */
@media (min-width: 768px) {
  .trust-bar__inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

/* --- ≥ 1024px: десктоп --- */
@media (min-width: 1024px) {
  .burger {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .hero__photo img {
    margin-left: auto;
  }

  .usp__grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-list li {
    padding: 4.5rem 1.6rem 1.6rem;
  }

  .process-list__num {
    top: 1.4rem;
    left: 1.6rem;
  }
}

/* --- ≤ 1023px: мобильная навигация --- */
@media (max-width: 1023px) {
  .nav,
  .header__phone,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Открытое меню */
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    padding: 2rem 1.25rem;
    border-top: 1px solid var(--line-light);
    overflow-y: auto;
    animation: nav-fade 0.25s ease;
  }

  @keyframes nav-fade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  body.nav-open .nav ul {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 1.15rem;
  }

  body.nav-open .nav li {
    border-bottom: 1px solid var(--line-light);
  }

  body.nav-open .nav a {
    display: block;
    padding: 1rem 0;
  }

  body.nav-open .nav a::after {
    display: none;
  }
}

/* --- ≤ 480px: очень узкие экраны --- */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.75rem);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    justify-content: center;
  }

  .trust-bar {
    padding: 1.5rem 0;
  }

  .cookie {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 1.1rem;
  }

  .cookie__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cookie__link {
    text-align: center;
    margin: 0.4rem 0 0;
  }
}

/* ==========================================================================
   23. PRINT
   ========================================================================== */
@media print {
  .site-header,
  .cookie,
  .hero__photo,
  .footer,
  .burger {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .section {
    padding: 1rem 0;
    background: #fff !important;
    color: #000 !important;
  }

  .section--dark,
  .hero {
    background: #fff !important;
    color: #000 !important;
  }

  h1, h2, h3, h4 {
    color: #000 !important;
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}