/* ===== Design System — Official Government / Legal ===== */
:root {
  /* Greens — primary institutional */
  --color-primary: #0f5132;
  --color-primary-hover: #0a3d26;
  --color-secondary: #198754;
  --color-emerald: #146c43;
  --color-green: #0f5132;
  --color-green-soft: #198754;
  --color-green-muted: rgba(15, 81, 50, 0.1);
  --color-accent-glow: rgba(15, 81, 50, 0.12);

  /* Blue — official secondary */
  --color-accent: #0b5ed7;
  --color-accent-hover: #084298;
  --color-accent-blue: #0b5ed7;
  --color-blue-muted: rgba(11, 94, 215, 0.1);
  --color-blue-deep: #052c65;

  /* Red — official accent */
  --color-red: #c1121f;
  --color-red-hover: #9b0e18;
  --color-red-muted: rgba(193, 18, 31, 0.1);
  --color-gold: #a16207;

  /* Surfaces */
  --color-bg: #ffffff;
  --color-bg-alt: #f2f6f4;
  --color-bg-blue: #f3f7fc;
  --color-surface: #ffffff;
  --color-surface-solid: #ffffff;
  --color-border: #c9d6cf;
  --color-border-blue: #c5d4eb;
  --color-text: #12201a;
  --color-text-muted: #4d5f56;

  /* Typography */
  --font-sans: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Manrope', 'Inter', system-ui, sans-serif;

  /* Shape & elevation — stricter official forms */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --shadow-soft: 0 8px 24px rgba(18, 32, 26, 0.08);
  --shadow-card: 0 1px 2px rgba(18, 32, 26, 0.05), 0 3px 10px rgba(18, 32, 26, 0.04);
  --glass-blur: none;
  --transition: 0.2s ease;
  --header-h: 76px;
  --gov-stripe-h: 4px;
  --container: 1180px;
  --section-pad: clamp(56px, 7vw, 88px);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); }
h3 { font-size: clamp(1.125rem, 2.2vw, 1.35rem); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--alt { background: var(--color-bg-alt); }
.section--green {
  background: linear-gradient(180deg, #f0f6f3 0%, #e8f1ec 100%);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding: 6px 12px;
  background: var(--color-green-muted);
  border-left: 3px solid var(--color-primary);
  border-right: 3px solid var(--color-red);
  border-top: 1px solid rgba(15, 81, 50, 0.15);
  border-bottom: 1px solid rgba(15, 81, 50, 0.15);
  border-radius: 0;
}

.section__subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.0625rem);
  margin-top: 14px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ===== Surfaces ===== */
.glass {
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 46px;
}

.btn--primary,
.btn--green {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 81, 50, 0.25);
}

.btn--primary:hover,
.btn--green:hover {
  background: var(--color-primary-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 81, 50, 0.28);
}

.btn--outline {
  background: #fff;
  color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

.btn--outline:hover {
  border-color: var(--color-accent-hover);
  color: #fff;
  background: var(--color-accent-blue);
}

.btn--ghost {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn--red {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.btn--red:hover {
  background: var(--color-red-hover);
  color: #fff;
  border-color: var(--color-red-hover);
}

.btn--sm { padding: 9px 16px; font-size: 0.875rem; min-height: 40px; }
.btn--lg { padding: 16px 28px; font-size: 1rem; min-height: 52px; }
.btn--block { width: 100%; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===== Official tricolor stripe ===== */
.gov-stripe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--gov-stripe-h);
  background: linear-gradient(
    90deg,
    var(--color-primary) 0 33.33%,
    var(--color-accent-blue) 33.33% 66.66%,
    var(--color-red) 66.66% 100%
  );
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: var(--gov-stripe-h);
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--header-h) - var(--gov-stripe-h));
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 2px solid var(--color-primary);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.is-scrolled {
  background: #fff;
  box-shadow: 0 2px 16px rgba(18, 32, 26, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo:hover { color: var(--color-text); }

.logo__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo__text { display: flex; flex-direction: column; }
.logo__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}
.logo__sub {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  padding: 8px 14px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-primary);
  background: var(--color-green-muted);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header__phone {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.header__phone:hover { color: var(--color-primary-hover); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  border-radius: 1px;
}

.burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #f7faf8 0%, #ffffff 45%, #eef5f1 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 60%, rgba(27, 77, 62, 0.04) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(27, 77, 62, 0.018) 48px,
      rgba(27, 77, 62, 0.018) 49px
    );
  pointer-events: none;
}

.hero--donetsk {
  background:
    linear-gradient(135deg, rgba(247, 250, 248, 0.97) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(238, 245, 241, 0.96) 100%),
    url('/images/cities/donetsk.svg') right center / cover no-repeat;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__grid--home {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero--home .hero__intro {
  grid-column: 1;
  grid-row: 1;
}

.hero--home .hero__details {
  grid-column: 1;
  grid-row: 2;
}

.hero--home .hero__card--lead {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.hero__subtitle--mobile { display: none; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--color-primary);
  border-left: 4px solid var(--color-red);
  border-radius: 0;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero__title { margin-bottom: 18px; }

.hero--home h1 {
  max-width: 22ch;
  color: var(--color-primary);
}

.hero__confidential {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  background: var(--color-red-muted);
  border: 1px solid rgba(193, 18, 31, 0.25);
  border-left: 3px solid var(--color-red);
}

.hero-promises {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  max-width: 540px;
}

.hero-promises__item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
}

.hero-promises__verb {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.35;
}

.hero-promises__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.hero-details__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin: 0 0 12px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.hero__check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.hero__check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-green-muted);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.hero__card {
  padding: clamp(20px, 3vw, 28px);
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero__card--lead {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1a2420;
  aspect-ratio: auto;
  max-height: none;
  border-bottom: 3px solid var(--color-primary);
}

.hero__portrait-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  aspect-ratio: 4 / 5;
  display: block;
}

.hero__portrait-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 35, 28, 0.88) 72%);
}

.hero__portrait-meta--below {
  position: static;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #0f5132 0%, #0a3d26 100%);
  border-bottom: 3px solid var(--color-red);
}

.hero__portrait-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b7d4c6;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__portrait-meta--below .hero__portrait-role {
  color: #9fd4b8;
}

.hero__portrait-quote {
  font-style: normal;
  font-size: clamp(0.875rem, 1.6vw, 0.975rem);
  color: #fff;
  line-height: 1.45;
  margin: 0;
  border: none;
  padding: 0;
  font-weight: 500;
}

.hero__card-phone {
  text-align: center;
  margin: 0;
  padding: 18px 18px 8px;
  border-bottom: none;
}

.hero__card-phone--xl {
  margin: 0;
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--color-border);
}

.hero__card-phone-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.hero__card-phone-number {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
}

.hero__card-phone--xl .hero__card-phone-number {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.hero__card-phone-number a { color: inherit; }
.hero__card-phone-number a:hover { color: var(--color-secondary); }

.hero__card-anon {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.hero__lawyer {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.hero__lawyer-img {
  width: 72px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.hero__lawyer-quote {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border-left: 2px solid var(--color-primary);
  padding-left: 16px;
}

.consultation-form--compact {
  padding: 18px 20px 20px;
}

.consultation-form--compact .form-group { margin-bottom: 12px; }

.consultation-form--compact .form-input {
  font-size: 1rem;
  padding: 13px 14px;
  background: #fff;
  border-color: var(--color-border);
}

.consultation-form--compact .form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-green-muted);
}

/* ===== Site images ===== */
.site-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.lawyer-photo {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
  object-position: center 12%;
  aspect-ratio: 417 / 520;
  border: 1px solid var(--color-border);
}

.service-hero__photo {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center 12%;
  aspect-ratio: 417 / 520;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

/* ===== Form ===== */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 7px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8a9891;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-green-muted);
}

.form-input.is-error,
.form-textarea.is-error {
  border-color: var(--color-red);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-red);
  margin-top: 6px;
  display: none;
}

.form-error.is-visible { display: block; }

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

.form-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-note a { color: var(--color-accent-blue); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.form-success.is-visible { display: block; }

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-green-muted);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.form-success__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.form-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.form-loader.is-visible { display: flex; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== About Lawyer ===== */
.about-lawyer {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about-lawyer__media {
  position: relative;
}

.about-lawyer__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 12%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  background: #1a2420;
}

.about-lawyer__accent {
  position: absolute;
  left: -10px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.about-lawyer__role {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-lawyer__name {
  margin-bottom: 14px;
  color: var(--color-text);
}

.about-lawyer__text {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  max-width: 54ch;
}

.about-lawyer__quote {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--color-primary);
  background: var(--color-green-muted);
  color: var(--color-text);
  font-weight: 500;
}

.about-lawyer__points {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.about-lawyer__point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.about-lawyer__point-mark {
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.about-lawyer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Benefits ===== */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  padding: 28px 22px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  border-color: rgba(27, 77, 62, 0.28);
  box-shadow: var(--shadow-soft);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
  background: var(--color-green-muted);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.benefit-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.benefit-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ===== Services ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(27, 77, 62, 0.28);
  box-shadow: var(--shadow-soft);
}

.service-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-green-muted);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.service-card__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-green-muted);
  color: var(--color-primary);
}

.service-card__title { margin-bottom: 10px; }
.service-card__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 20px;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Why / Process ===== */
.why__grid,
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card,
.process-step {
  padding: 28px 24px;
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.process__grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: process;
}

.process-step__num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  opacity: 0.85;
}

.process-step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.process-step__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ===== Stats ===== */
.stats {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: left;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.stat-item__icon { font-size: 1.5rem; margin-bottom: 12px; color: var(--color-primary); }
.stat-item__title {
  font-size: 1.0625rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.stat-item__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== Important Block ===== */
.important-block {
  padding: clamp(28px, 4vw, 40px);
  border-left: 4px solid var(--color-red);
  background: var(--color-red-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.important-block__title {
  color: var(--color-red);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.important-block p {
  color: var(--color-text);
  font-size: 0.9375rem;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-item__question:hover { background: var(--color-bg-alt); }

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-green-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item__answer-inner {
  padding: 0 20px 20px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item__answer-inner p { margin-bottom: 12px; }
.faq-item__answer-inner ul { list-style: disc; padding-left: 20px; margin: 12px 0; }
.faq-item__answer-inner li { margin-bottom: 6px; }

/* ===== Reviews ===== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.review-card__stars {
  color: var(--color-gold);
  font-size: 0.875rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.7;
}

.review-card__author { font-size: 0.875rem; font-weight: 700; }
.review-card__meta { font-size: 0.8125rem; color: var(--color-text-muted); }

/* ===== CTA Banner ===== */
.cta-banner {
  padding: clamp(36px, 5vw, 56px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.cta-banner__title { margin-bottom: 12px; color: var(--color-primary); }
.cta-banner__text {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ===== Contacts ===== */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-muted);
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border-blue);
}

.contact-info__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.contact-info__value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
}

.contact-info__value a { color: inherit; }
.contact-info__value a:hover { color: var(--color-primary); }

/* ===== Footer ===== */
.footer {
  background: #0a2e1f;
  border-top: none;
  padding: clamp(48px, 6vw, 72px) 0 28px;
  color: #c5d4cc;
  position: relative;
}

.footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0 33.33%,
    var(--color-accent-blue) 33.33% 66.66%,
    var(--color-red) 66.66% 100%
  );
  margin: calc(-1 * clamp(48px, 6vw, 72px)) 0 clamp(40px, 5vw, 56px);
}

.footer .logo__title { color: #fff; }
.footer .logo__sub { color: #9bb0a4; }
.footer .logo:hover { color: #fff; }

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

.footer__desc {
  color: #9bb0a4;
  font-size: 0.875rem;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer__title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: #fff;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__link {
  color: #9bb0a4;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__link:hover { color: #fff; }

.footer__link--phone {
  color: #8fd0ad;
  font-weight: 700;
  font-size: 1rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #8a9e94;
}

.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a { color: #8a9e94; }
.footer__legal a:hover { color: #fff; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: calc(var(--header-h) + 24px) 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: '/'; opacity: 0.4; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ===== Article ===== */
.article-page { padding-bottom: var(--section-pad); }

.article-header {
  padding: calc(var(--header-h) + 40px) 0 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.article-header__tag {
  padding: 4px 12px;
  background: rgba(29, 78, 137, 0.08);
  color: var(--color-accent-blue);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-content h2 { margin: 48px 0 20px; font-size: 1.625rem; }
.article-content h3 { margin: 32px 0 16px; font-size: 1.2rem; }

.article-content p,
.article-content li {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin: 16px 0;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }

.article-content blockquote {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-green-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
}

.article-content th,
.article-content td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.article-content th {
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 600;
}

.article-content td { color: var(--color-text-muted); }

.article-toc {
  padding: 24px 28px;
  margin-bottom: 40px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.article-toc__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.article-toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.article-toc li { margin-bottom: 8px; }
.article-toc a { color: var(--color-text-muted); font-size: 0.9375rem; }
.article-toc a:hover { color: var(--color-primary); }

.article-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.article-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.article-card:hover { border-color: rgba(27, 77, 62, 0.3); }

.article-card__tag {
  font-size: 0.75rem;
  color: var(--color-accent-blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.article-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-card__title a { color: var(--color-text); }
.article-card__title a:hover { color: var(--color-primary); }

/* ===== Geo Cities ===== */
.geo-cities {
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.geo-cities__title {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  margin-bottom: 10px;
  text-align: center;
  color: var(--color-primary);
}

.geo-cities__subtitle {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.geo-cities__groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.geo-cities__group-title {
  font-size: 1.0625rem;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.geo-cities__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.geo-cities__list li {
  padding: 6px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== Covers ===== */
.article-cover {
  margin: 0 0 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.article-cover__img,
.service-hero__cover-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.article-cover__caption {
  padding: 12px 20px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  text-align: center;
}

.service-hero__cover {
  margin: 0 auto 32px;
  max-width: var(--container);
  padding: 0 clamp(20px, 4vw, 40px);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.patriot-banner__wide { border-radius: var(--radius-md); }

/* ===== Articles Index ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ===== Service Page ===== */
.service-hero {
  padding: calc(var(--header-h) + 48px) 0 48px;
  background: var(--color-bg-alt);
}

.service-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.service-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-feature__icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Floating ===== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}

.floating-btn:hover { transform: translateY(-2px); }

.floating-btn--call {
  background: var(--color-primary);
  color: #fff;
  display: none;
}

.floating-btn--top {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.floating-btn--top.is-visible {
  opacity: 1;
  visibility: visible;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--color-border);
  display: none;
  gap: 10px;
  box-shadow: 0 -4px 18px rgba(26, 36, 33, 0.08);
}

.sticky-cta .btn { flex: 1; }

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===== 404 / Thank you ===== */
.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) 20px 40px;
}

.page-center__code {
  font-size: clamp(4rem, 12vw, 7rem);
  color: rgba(27, 77, 62, 0.15);
  line-height: 1;
  font-weight: 700;
}

.page-center__title { margin: 16px 0; }
.page-center__text { color: var(--color-text-muted); margin-bottom: 32px; max-width: 480px; }

/* ===== Legal ===== */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 0 var(--section-pad);
}

.legal-content h2 {
  margin: 40px 0 16px;
  font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.legal-content ul { list-style: disc; padding-left: 24px; margin: 16px 0; }

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