:root {
  --bg: #f3f6fa;
  --bg-deep: #e6edf5;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.92);
  --text: #0c1628;
  --muted: #4a5b73;
  --muted-soft: #6b7c94;
  --primary: #1b6fd0;
  --primary-hover: #1559a8;
  --primary-ink: #0d4a8f;
  --primary-soft: rgba(27, 111, 208, 0.1);
  --primary-border: rgba(27, 111, 208, 0.28);
  --line: rgba(12, 22, 40, 0.1);
  --line-strong: rgba(12, 22, 40, 0.16);
  --success: #0f6b38;
  --danger: #b42318;
  --glow: rgba(27, 111, 208, 0.16);
  --shadow-sm: 0 1px 2px rgba(12, 22, 40, 0.04);
  --shadow-md: 0 10px 28px rgba(12, 22, 40, 0.07);
  --shadow-lg: 0 22px 48px rgba(12, 22, 40, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --container: 1120px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-press: 120ms;
  --duration-fast: 180ms;
  --duration-base: 260ms;
  --focus-ring: 0 0 0 3px rgba(27, 111, 208, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(27, 111, 208, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(27, 111, 208, 0.05), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 40%, var(--bg-deep) 100%);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-ink);
}

a:hover {
  color: var(--primary);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
  outline: none;
  box-shadow: var(--focus-ring);
}

.bg-glow {
  position: fixed;
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
  will-change: transform;
  transition: transform 480ms var(--ease-soft);
}

.bg-glow--one {
  top: -160px;
  left: -120px;
  background: var(--glow);
}

.bg-glow--two {
  right: -160px;
  bottom: -140px;
  background: rgba(27, 111, 208, 0.08);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid var(--line);
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4da3ff 0%, #1b6fd0 70%);
  box-shadow: 0 0 0 4px rgba(27, 111, 208, 0.14);
}

.brand__name {
  display: block;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.brand__tag {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header__link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-soft);
}

.header__link:hover {
  opacity: 1;
  color: var(--text);
}

.header__link--mail {
  display: none;
}

@media (min-width: 1100px) {
  .header__link--mail {
    display: inline;
  }
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  transition:
    border-color var(--duration-fast) var(--ease-soft),
    background var(--duration-fast) var(--ease-soft);
}

.header__phone:hover {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.hero {
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2.25rem);
  margin-top: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 255, 0.88) 100%);
  box-shadow: var(--shadow-md);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-ink);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero h1,
.hero__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.875rem, 4.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
  max-width: 42ch;
}

.zone-note {
  margin: 0 0 var(--space-5);
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 48ch;
}

.hero__actions,
.service-actions,
.cta-band__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__actions {
  margin-bottom: var(--space-8);
}

.hero__stats,
.service-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card {
  background: rgba(255, 255, 255, 0.88);
  padding: var(--space-4) var(--space-5);
  display: grid;
  gap: 4px;
}

.stat-card__value {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}

.seo-section {
  padding: var(--space-12) 0 0;
}

.seo-section > h2,
.section-intro__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.2;
}

.seo-section > h2 {
  margin-bottom: var(--space-6);
}

.section-intro {
  margin-bottom: var(--space-6);
  max-width: 40rem;
}

.section-intro__lead {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.seo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-soft),
    box-shadow var(--duration-fast) var(--ease-soft);
}

.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
}

.service-link:hover {
  color: inherit;
}

.service-link:hover .seo-card,
.service-link:focus-visible .seo-card {
  transform: translateY(-2px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.service-link:focus-visible {
  outline: none;
}

.service-link:focus-visible .seo-card {
  box-shadow: var(--shadow-md), var(--focus-ring);
}

.seo-card__pill {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-ink);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 5px 10px;
}

.seo-card h3,
.faq-item h3,
.before-after-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.3;
}

.seo-card p,
.faq-item p,
.before-after-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.9375rem;
}

.seo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.seo-list li {
  position: relative;
  margin: 0;
  line-height: 1.55;
  color: var(--text);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 16px 14px 44px;
  font-size: 0.975rem;
}

.seo-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  padding-top: calc(var(--space-5) + 4px);
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-3);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.faq-list {
  display: grid;
  gap: var(--space-3);
  padding-bottom: var(--space-12);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration-fast) var(--ease-soft);
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.breadcrumbs {
  margin-top: var(--space-6);
  color: var(--muted-soft);
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: var(--primary-ink);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.service-hero {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  margin-top: var(--space-4);
}

.service-hero .hero__title,
.service-hero h1 {
  max-width: 22ch;
}

.service-kpis {
  margin-top: var(--space-6);
}

.service-actions {
  margin-top: var(--space-6);
}

.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9375rem;
}

.price-table th {
  background: #eef4fb;
  color: var(--primary-ink);
  font-weight: 700;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td:last-child {
  font-weight: 700;
  white-space: nowrap;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.before-after-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.before-after-card--before {
  background: #fafbfc;
}

.before-after-card--after {
  border-color: var(--primary-border);
  background: linear-gradient(160deg, #fff 0%, #f3f8ff 100%);
}

.before-after-card__label {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.before-after-card--after .before-after-card__label {
  color: var(--primary);
}

.service-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.cta-band {
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, #0f2f57 0%, #1b4f8c 55%, #1b6fd0 100%);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: grid;
  gap: var(--space-3);
  color: #fff;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  max-width: 40ch;
  line-height: 1.55;
}

.cta-band__actions {
  margin-top: var(--space-3);
}

.cta-band .btn {
  background: #fff;
  color: var(--primary-ink);
  box-shadow: none;
}

.cta-band .btn:hover {
  background: #f0f6ff;
  filter: none;
}

.cta-band .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-band .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-footer {
  padding: var(--space-12) 0 var(--space-10);
}

.site-footer__card {
  border-top: 1px solid var(--line);
  padding-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__brand strong {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.site-footer__links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

.site-footer__link {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--primary-ink);
  font-weight: 600;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 48ch;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 11px 18px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--duration-press) var(--ease-out),
    background var(--duration-fast) var(--ease-soft),
    border-color var(--duration-fast) var(--ease-soft),
    box-shadow var(--duration-fast) var(--ease-soft),
    color var(--duration-fast) var(--ease-soft);
  box-shadow: 0 8px 18px rgba(27, 111, 208, 0.22);
}

.btn:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 8px 18px rgba(27, 111, 208, 0.22), var(--focus-ring);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.btn.is-loading {
  padding-left: 40px;
}

.btn.is-loading::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  animation: spin 640ms linear infinite;
}

.btn.btn--outline.is-loading::before {
  border-color: rgba(13, 74, 143, 0.25);
  border-top-color: var(--primary-ink);
}

.btn--outline {
  background: var(--surface);
  color: var(--primary-ink);
  border: 1px solid var(--primary-border);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--primary-ink);
  border-color: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: var(--space-4);
}

.modal.hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
}

.modal:not(.hidden) .modal__overlay {
  animation: overlay-in var(--duration-base) var(--ease-soft) forwards;
}

.modal__content {
  position: relative;
  width: min(480px, 100%);
  max-height: min(90dvh, 720px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  z-index: 1;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.modal:not(.hidden) .modal__content {
  animation: modal-in 280ms var(--ease-out) forwards;
}

.modal__content h3 {
  margin: 0;
  padding-right: 40px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.admin-page .modal__content {
  opacity: 1;
  transform: none;
}

.calc-rates {
  margin: var(--space-4) 0 var(--space-3);
  padding-left: 1.15rem;
  display: grid;
  gap: 6px;
  color: var(--primary-ink);
  font-size: 0.9rem;
}

.calc-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  display: grid;
  place-items: center;
  transition:
    background var(--duration-fast) var(--ease-soft),
    border-color var(--duration-fast) var(--ease-soft);
}

.modal__close:hover {
  background: var(--bg);
  border-color: var(--line-strong);
}

.modal__close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.modal__close:active {
  transform: scale(0.96);
}

form {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #c5d3e4;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition:
    border-color var(--duration-fast) var(--ease-soft),
    box-shadow var(--duration-fast) var(--ease-soft);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-soft);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #a9bcd4;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.input--invalid {
  border-color: rgba(180, 35, 24, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14) !important;
  animation: shake-x 280ms var(--ease-soft);
}

.result {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
}

.result.hidden {
  display: none;
}

.status {
  font-size: 0.875rem;
  margin-top: var(--space-3);
  font-weight: 600;
}

.status--ok {
  color: var(--success);
}

.status--error {
  color: var(--danger);
}

.status--muted {
  color: var(--muted-soft);
}

.status--loading {
  color: var(--primary-ink);
}

.status--loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(27, 111, 208, 0.25);
  border-top-color: var(--primary);
  animation: spin 720ms linear infinite;
  vertical-align: -1px;
}

.status--flash {
  animation: fade-up var(--duration-base) var(--ease-out);
}

.result--pop {
  animation: result-pop 360ms var(--ease-out);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 560ms var(--ease-out) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.05s;
}

.reveal:nth-child(3) {
  animation-delay: 0.1s;
}

.hidden {
  display: none !important;
}

.admin-page {
  background: var(--bg);
}

.admin-page .header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.admin-page .header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  font-size: 0.875rem;
}

.admin-table th {
  font-weight: 700;
  color: var(--primary-ink);
  background: #eef4fb;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake-x {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
}

@keyframes result-pop {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .header__content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .header__contacts {
    justify-content: flex-start;
  }

  .hero__stats,
  .service-kpis {
    grid-template-columns: 1fr;
  }

  .seo-grid,
  .steps-grid,
  .before-after-grid,
  .service-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1.5rem));
  }

  .brand__tag {
    white-space: normal;
  }

  .hero {
    margin-top: var(--space-4);
    padding: 1.5rem 1.15rem;
  }

  .hero h1,
  .hero__title {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.125rem);
  }

  .hero__actions,
  .service-actions,
  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .service-actions .btn,
  .cta-band__actions .btn {
    width: 100%;
  }

  .header__contacts .btn {
    flex: 1 1 auto;
  }

  .header__phone {
    flex: 1 1 auto;
    justify-content: center;
  }

  .seo-section {
    padding-top: var(--space-10);
  }

  .cta-band {
    padding: 1.5rem 1.15rem;
  }

  .cta-band h2 {
    max-width: none;
  }

  .site-footer {
    padding-top: var(--space-10);
  }

  .modal__content {
    padding: var(--space-5);
  }
}

@media (max-width: 380px) {
  .header__link:not(.header__phone) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bg-glow {
    transform: none !important;
  }

  .btn:active,
  .modal__close:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .header {
    background: #f8fafc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .modal__overlay {
    backdrop-filter: none;
  }
}
