/* ==========================================================================
   ООО «ЦЕНТР ПРАВОВЫХ ТЕХНОЛОГИЙ» — основные стили
   ========================================================================== */

:root {
  --color-navy: #0c2340;
  --color-navy-light: #14325a;
  --color-graphite: #2d3748;
  --color-graphite-muted: #4a5568;
  --color-white: #ffffff;
  --color-gray-50: #f7f9fc;
  --color-gray-100: #edf2f7;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e0;
  --color-accent: #2563eb;
  --color-accent-light: #3b82f6;
  --color-accent-soft: #dbeafe;
  --color-gold: #b8860b;
  --color-gold-soft: #f5e6c8;
  --color-success: #059669;
  --color-error: #dc2626;

  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(12, 35, 64, 0.08);
  --shadow-md: 0 4px 20px rgba(12, 35, 64, 0.1);
  --shadow-lg: 0 12px 40px rgba(12, 35, 64, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-family);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--color-graphite);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.125rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--alt {
  background: var(--color-gray-50);
}

.section__header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__lead {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--color-graphite-muted);
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-white);
}

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

.btn--secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

/* WordPress admin bar: fixed header не перекрывается панелью админа */
body.admin-bar .header {
  top: 32px;
}

body.admin-bar .mobile-nav {
  top: calc(32px + var(--header-height));
}

@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }

  body.admin-bar .mobile-nav {
    top: calc(46px + var(--header-height));
  }
}

body.admin-bar {
  --cpt-admin-bar-offset: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --cpt-admin-bar-offset: 46px;
  }
}

body.admin-bar {
  scroll-padding-top: calc(var(--header-height) + var(--cpt-admin-bar-offset, 0px) + 16px);
}

body.admin-bar .hero {
  padding-top: calc(var(--header-height) + var(--cpt-admin-bar-offset, 0px) + clamp(2rem, 5vw, 4rem));
}

body.admin-bar .legal-page {
  padding-top: calc(var(--header-height) + var(--cpt-admin-bar-offset, 0px) + 2rem);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.logo--header {
  max-width: min(100%, 360px);
}

.logo--footer {
  max-width: 100%;
}

.logo--mode-logo-only.logo--header {
  max-width: min(100%, 300px);
}

.logo__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo__mark--empty {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  border: 1px dashed var(--color-gray-300);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo__mark--has-image {
  width: auto;
  height: auto;
  max-width: none;
  background: transparent;
  border: none;
}

.logo--header .logo__mark--has-image {
  max-width: min(280px, 48vw);
}

.logo--footer .logo__mark--has-image {
  max-width: min(260px, 100%);
}

.logo__img {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--logo-footer-max-height, 48px);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.logo--header .logo__img {
  max-height: var(--logo-header-max-height, 44px);
}

.logo--mode-logo-only.logo--header .logo__img {
  max-width: min(280px, 52vw);
}

.logo__placeholder {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-graphite-muted);
  text-align: center;
  line-height: 1.15;
  padding: 0.15rem;
}

.logo__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo--mode-logo-only .logo__text,
.logo--mode-text-only .logo__mark {
  display: none;
}

.logo__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.logo__abbr {
  font-size: 0.6875rem;
  color: var(--color-graphite-muted);
  font-weight: 500;
}

.nav {
  display: none;
}

.header__inner .burger {
  margin-left: auto;
  flex-shrink: 0;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li {
  margin: 0;
  padding: 0;
}

.nav__link,
.nav__list a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-graphite);
  padding: 0.35rem 0;
  position: relative;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-navy);
}

.nav__link.is-active::after,
.nav__link:hover::after {
  width: 100%;
}

/* Вложенное меню — десктоп */
.nav__item {
  position: relative;
}

.nav__link--parent::after {
  display: none;
}

.nav__item--has-children > .nav__link--parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem;
  margin: -0.45rem -0.35rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__item--has-children:hover > .nav__link--parent,
.nav__item--has-children:focus-within > .nav__link--parent {
  color: var(--color-navy);
}

.nav__chevron-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 4px;
  color: var(--color-graphite-muted);
  background: var(--color-gray-100);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.nav__item--has-children:hover > .nav__link--parent .nav-chevron-wrap,
.nav__item--has-children:focus-within > .nav__link--parent .nav-chevron-wrap {
  transform: rotate(180deg);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.nav__submenu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 15.5rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--color-white);
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.2s ease;
  z-index: 1010;
}

.nav__submenu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--color-white);
  border-top: 1px solid rgba(12, 35, 64, 0.08);
  border-left: 1px solid rgba(12, 35, 64, 0.08);
  transform: rotate(45deg);
  pointer-events: none;
}

.nav__item--has-children:hover > .nav__submenu,
.nav__item--has-children:focus-within > .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__subitem {
  margin: 0;
}

.nav__sublink {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-graphite);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav__sublink:hover {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.nav__sublink.is-active {
  color: var(--color-navy);
  background: var(--color-gray-50);
  font-weight: 600;
}

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

  .nav__sublink {
    transition: none;
  }
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.is-active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-white);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  z-index: 1100;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__list,
.mobile-nav__submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__link,
.mobile-nav__sublink {
  display: block;
  flex: 1;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
}

.mobile-nav__item {
  border-bottom: 1px solid var(--color-gray-100);
}

.mobile-nav__row {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mobile-nav__row .mobile-nav__link {
  padding-right: 0.75rem;
}

.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  padding: 0;
  background: var(--color-gray-50);
  border: none;
  border-left: 1px solid var(--color-gray-100);
  cursor: pointer;
  color: var(--color-navy);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav__toggle:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.mobile-nav__toggle .nav-chevron-wrap {
  background: transparent;
}

.mobile-nav__item--has-children.is-open > .mobile-nav__row .mobile-nav__toggle {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.mobile-nav__item--has-children.is-open > .mobile-nav__row .mobile-nav__toggle .nav-chevron-wrap {
  transform: rotate(180deg);
}

.mobile-nav__submenu {
  display: none;
  padding: 0.25rem 0 0.75rem 0.75rem;
  margin-left: 0.5rem;
  border-left: 2px solid var(--color-accent-soft);
}

.mobile-nav__item--has-children.is-open > .mobile-nav__submenu {
  display: flex;
}

.mobile-nav__sublink {
  font-size: 0.9375rem;
  color: var(--color-graphite-muted);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-nav__sublink:hover,
.mobile-nav__sublink.is-active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.mobile-nav__link.is-active,
.mobile-nav__sublink.is-active {
  color: var(--color-accent);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 1090;
}

.overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-height) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 55%, #1a4a7a 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  color: var(--color-accent-soft);
  margin-bottom: 1.25rem;
}

.hero__desc {
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero-mockup {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.hero-mockup__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.hero-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-mockup__dot:first-child { background: #f87171; }
.hero-mockup__dot:nth-child(2) { background: #fbbf24; }
.hero-mockup__dot:nth-child(3) { background: #34d399; }

.hero-mockup__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.95);
  transition: background var(--transition);
}

.hero-mockup__item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-mockup__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-mockup__icon--yustina { background: var(--color-accent); }
.hero-mockup__icon--yurlist { background: var(--color-gold); color: var(--color-navy); }
.hero-mockup__icon--request { background: #059669; }
.hero-mockup__icon--legaltech { background: #7c3aed; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.cards-grid--2 {
  grid-template-columns: 1fr;
}

.cards-grid--3 {
  grid-template-columns: 1fr;
}

.cards-grid--4 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-300);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-graphite-muted);
}

/* Product cards */
.product-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}

.product-card--featured {
  border-color: var(--color-accent);
  background: linear-gradient(to bottom right, var(--color-white), var(--color-accent-soft));
}

.product-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  background: var(--color-gold-soft);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.product-card__list {
  margin: 1rem 0 1.25rem;
}

.product-card__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-graphite-muted);
}

.product-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Feature block (Yustina / Yurlist) */
.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-block__content {
  max-width: 640px;
}

.feature-list {
  margin: 1.25rem 0 1.5rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.feature-list__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Advocacy notice */
.notice-block {
  background: var(--color-gray-50);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
}

.notice-block p {
  color: var(--color-graphite-muted);
  font-size: 0.9375rem;
}

/* Service cards */
.service-card {
  text-align: left;
}

.service-card .card__icon {
  background: var(--color-navy);
  color: var(--color-white);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.step__number::before {
  content: counter(step);
}

.step__title {
  margin-bottom: 0.35rem;
}

.step__text {
  font-size: 0.9375rem;
  color: var(--color-graphite-muted);
}

/* Documents */
.doc-list {
  display: grid;
  gap: 0.75rem;
}

.doc-list__item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  color: var(--color-navy);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.doc-list__item a:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.doc-list__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-graphite-muted);
}

/* Project cards */
.project-card {
  padding: 0;
  overflow: hidden;
}

.project-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-navy-light), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.875rem;
}

.project-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-card__type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.project-card__works {
  font-size: 0.8125rem;
  color: var(--color-graphite-muted);
  margin: 0.75rem 0 1rem;
}

/* Partners list */
.partners-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  color: var(--color-graphite-muted);
}

.partners-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* Form */
.form-section {
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.375rem;
}

.form__label--required::after {
  content: " *";
  color: var(--color-error);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-graphite);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form__input.is-invalid,
.form__select.is-invalid,
.form__textarea.is-invalid {
  border-color: var(--color-error);
}

.form__error {
  display: none;
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: 0.25rem;
}

.form__error.is-visible {
  display: block;
}

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

.form__checkbox-group {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.form__checkbox-label {
  font-size: 0.875rem;
  color: var(--color-graphite-muted);
  line-height: 1.5;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form__success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form__success.is-visible {
  display: block;
}

.form__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #d1fae5;
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contact-list {
  margin: 1rem 0;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.contact-list__label {
  font-weight: 600;
  color: var(--color-navy);
  min-width: 100px;
}

.requisites {
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
  line-height: 1.8;
  color: var(--color-graphite-muted);
}

.address-placeholder {
  padding: 2rem;
  text-align: center;
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-gray-300);
  color: var(--color-graphite-muted);
  font-size: 0.9375rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.contact-card--phone .contact-card__phone-note {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.contact-card__phone-number {
  margin: 0 0 1.25rem;
}

.contact-card__phone-number a {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
}

.contact-card__phone-number a:hover {
  color: var(--color-accent);
}

.contact-list--secondary {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-gray-200);
}

/* CTA banner */
.cta-banner {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  margin-top: 2rem;
}

.cta-banner h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

/* Footer */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand .logo__title {
  color: var(--color-white);
  font-size: 0.9375rem;
}

.footer__brand .logo__abbr {
  color: rgba(255, 255, 255, 0.6);
}

.footer__brand .logo__mark--empty {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.footer__brand .logo__placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.footer__title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.875rem;
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  text-align: center;
}

.footer__disclaimer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.7;
  line-height: 1.5;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-light);
}

/* Legal pages */
.legal-page {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page__updated {
  font-size: 0.875rem;
  color: var(--color-graphite-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--color-graphite-muted);
  margin-bottom: 0.75rem;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
  .nav__link,
  .nav__list a {
    font-size: 0.75rem;
  }
}

/* Десктопное меню: с 1200px — 9 пунктов не помещаются на планшете */
@media (min-width: 1200px) {
  .nav {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .nav__list {
    justify-content: flex-end;
  }

  .header__inner .burger,
  .mobile-nav,
  .overlay {
    display: none;
  }
}

@media (min-width: 768px) {
  .cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .feature-block {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

/* Desktop */
@media (min-width: 1024px) {
  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .steps .step:nth-child(4),
  .steps .step:nth-child(5) {
    grid-column: span 1;
  }

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

@media (min-width: 1200px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .steps .step {
    flex-direction: column;
    text-align: center;
  }

  .step__number {
    margin: 0 auto 0.75rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
