/* ============================================
   DENTAL BENTO SYSTEM — COMPONENTS
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-16);
  line-height: var(--line-height-160);
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* A11y: видимый фокус для клавиатурной навигации */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip-link: скрыт до фокуса */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-tooltip);
  background: var(--primary);
  color: var(--text-white);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-inner) 0;
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-14);
}

.skip-link:focus-visible {
  left: 0;
  outline: none;
}

/* Тактильный отклик нажатия */
.btn:active {
  transform: translateY(1px);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
.display-xl,
.display-lg,
.display-md,
.section-title,
.hero-title {
  text-wrap: balance;
}

/* Цены: табличные цифры */
.promo-price-new,
.promo-price-old,
.pricing-price,
.price-tag,
.price-tag-old {
  font-variant-numeric: tabular-nums;
}

.display-xl {
  font-family: var(--font-display);
  font-size: var(--font-size-display-xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--line-height-110);
  letter-spacing: var(--letter-spacing-tight-02);
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--font-size-display-lg);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-115);
  letter-spacing: var(--letter-spacing-tight-015);
}

.display-md {
  font-family: var(--font-display);
  font-size: var(--font-size-display-md);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-120);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: var(--font-size-heading-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-130);
}

.heading-md {
  font-family: var(--font-display);
  font-size: var(--font-size-18);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-140);
}

.body-lg {
  font-size: var(--font-size-18);
  line-height: var(--line-height-160);
  color: var(--text-secondary);
}

.body-md {
  font-size: var(--font-size-16);
  line-height: var(--line-height-160);
  color: var(--text-secondary);
}

.body-sm {
  font-size: var(--font-size-14);
  line-height: var(--line-height-150);
  color: var(--text-muted);
}

.caption {
  font-size: var(--font-size-12);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide-05);
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--font-size-15);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-glow-md);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-lg);
  color: var(--text-white);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: var(--border-rule);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary-subtle);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: var(--border-rule);
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: var(--space-3) var(--space-8);
  font-size: var(--font-size-16);
}

/* Cards - mobile first */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  border: var(--border-rule-light);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-featured {
  grid-column: 1 / -1;
  grid-row: auto;
  padding: var(--space-lg);
}

.card-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-image:hover img {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .card-featured {
    grid-column: span 6;
    grid-row: span 1;
    padding: var(--space-xl);
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-12);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-outline {
  background: transparent;
  border: var(--border-rule-base);
  color: var(--text-secondary);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-13);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-secondary);
}

/* Forms */
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--font-size-15);
  border: var(--border-rule-input);
  border-radius: var(--radius-inner);
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow-sm);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Icon base */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: var(--font-size-24);
  line-height: 1;
  vertical-align: middle;
  color: inherit;
}

.icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* Icon size utilities */
.icon-2xs { font-size: var(--font-size-14); }
.icon-xs { font-size: var(--font-size-16); }
.icon-sm { font-size: var(--font-size-18); }
.icon-md { font-size: var(--font-size-20); }
.icon-lg { font-size: var(--font-size-24); }
.icon-xl { font-size: var(--font-size-28); }
.icon-2xl { font-size: var(--font-size-32); }
.icon-3xl { font-size: var(--font-size-64); }

.star-icon {
  display: block;
  flex-shrink: 0;
}

/* Section backgrounds */
.section-muted {
  background: var(--surface-2);
}

.section-surface {
  background: var(--surface);
  border-top: var(--border-rule-light);
  border-bottom: var(--border-rule-light);
}

.section-primary {
  background: var(--primary);
  color: var(--white-90);
}

.section-primary .section-title,
.section-primary .display-lg {
  color: var(--text-white);
}

.section-primary .section-subtitle,
.section-primary .body-lg {
  color: var(--white-90);
}

.section-primary .section-label {
  color: var(--white-70);
}

.section-primary .lead-capture-hint {
  color: var(--text-muted);
}

/* Тексты формы на белой карточке — тёмные */
.section-primary .lead-capture-form .cf7-field > span:first-child,
.section-primary .lead-capture-form .cf7-field .cf7-label {
  color: var(--text-secondary);
}

.section-primary .lead-capture-form .wpcf7-acceptance,
.section-primary .lead-capture-form .wpcf7-acceptance .wpcf7-list-item-label {
  color: var(--text-muted);
}

.section-primary .lead-capture-form .wpcf7-acceptance a {
  color: var(--primary);
}

/* Icon boxes */
.icon-box {
  width: var(--size-icon-xl);
  height: var(--size-icon-xl);
  border-radius: var(--radius-inner);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-sm {
  width: var(--size-icon-lg);
  height: var(--size-icon-lg);
  border-radius: var(--radius-inner);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-inner);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-xl {
  width: var(--size-icon-2xl);
  height: var(--size-icon-2xl);
  border-radius: var(--radius-inner);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-rounded {
  border-radius: var(--radius-full);
}

.icon-box-primary {
  background: var(--primary-subtle);
  color: var(--primary);
}

.icon-box-success,
.icon-box-warning,
.icon-box-danger {
  background: var(--primary-subtle);
  color: var(--primary);
}

.icon-box-white {
  background: var(--white-20);
  color: var(--text-white);
}

.icon-box-sm .icon {
  font-size: var(--font-size-18);
}

.overflow-hidden {
  overflow: hidden;
}

/* Scenario card */
.scenario-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.scenario-card-primary {
  background: var(--primary);
  color: var(--white-90);
}

.scenario-card-primary .heading-lg {
  color: var(--text-white);
}

.scenario-card__desc {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
}

.scenario-card-primary .scenario-card__desc {
  color: var(--text-white);
}

.scenario-card-primary .scenario-link {
  color: var(--text-white);
}

.scenario-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--primary);
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-14);
}

/* Service card */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex: 1;
}

.service-card-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.service-card-main .badge {
  align-self: flex-start;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-18);
  font-weight: var(--weight-bold);
  color: var(--text);
  line-height: var(--line-height-130);
}

.service-card-desc {
  font-size: var(--font-size-14);
  color: var(--text-secondary);
  line-height: var(--line-height-150);
}

.service-card-icon {
  width: var(--size-icon-lg);
  height: var(--size-icon-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: var(--font-size-22);
}

.service-card-icon .icon {
  font-size: var(--font-size-22);
}

.service-card-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}

.service-card-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.service-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.service-card-btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-btn {
    width: auto;
    align-self: flex-start;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Service card - legacy selectors kept for compatibility */
.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.service-card-header .badge {
  margin-bottom: var(--space-3);
}

.service-card-body {
  margin-bottom: var(--space-6);
}

.service-tags {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.price-tag-sm {
  font-size: var(--font-size-20);
}

/* Contact info item */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item-flush {
  margin-bottom: 0;
}

.contact-info-label {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.contact-info-item-spaced {
  margin-bottom: var(--space-6);
}

/* Lead capture */
.lead-capture-layout {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}

.lead-capture-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.lead-capture-photo {
  display: none;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--white-10);
}

.lead-capture-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.lead-capture-photo::before {
  content: attr(alt);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  color: var(--text);
  opacity: 0.7;
  font-size: var(--font-size-sm);
  text-align: center;
}

@media (min-width: 1024px) {
  .lead-capture-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-8);
    text-align: left;
  }

  .lead-capture-content {
    margin: 0;
  }

  .lead-capture-photo {
    display: block;
    align-self: stretch;
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 1280px) {
  .lead-capture-layout {
    gap: var(--space-12);
  }
}

.lead-capture-form {
  text-align: left;
  background: var(--surface);
  padding: var(--space-5);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .lead-capture-form {
    padding: var(--space-8);
  }
}

.lead-capture-form .form-input {
  background: var(--surface);
  border-color: var(--border-input);
  color: var(--text);
}

.lead-capture-form .btn-primary {
  background: var(--primary);
  color: var(--text-white);
  width: 100%;
  justify-content: center;
}

.lead-capture-form .btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-white);
}

.lead-capture-hint {
  text-align: center;
  margin-top: var(--space-4);
  color: var(--text-secondary);
}

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.lead-capture-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.lead-capture-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .lead-capture-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact Form 7 */
.cf7-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cf7-form p {
  margin: 0;
}

.cf7-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .cf7-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cf7-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
}

.cf7-field br {
  display: none;
}

.cf7-field > span:first-child,
.cf7-field .cf7-label {
  font-size: var(--font-size-14);
  color: var(--text-secondary);
}

.cf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.cf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
  background: var(--surface);
  border: var(--border-rule-input);
  border-radius: var(--radius-inner);
  color: var(--text);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-16);
  line-height: var(--line-height-150);
}

.cf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance)::placeholder {
  color: var(--text-muted);
}

.cf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow-sm);
}

.cf7-form .wpcf7-acceptance,
.cf7-acceptance {
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-12);
  line-height: var(--line-height-140);
  cursor: pointer;
}

.cf7-form .wpcf7-acceptance .wpcf7-list-item label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.cf7-form .wpcf7-acceptance input[type="checkbox"],
.cf7-acceptance input[type="checkbox"] {
  appearance: none;
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
  min-width: var(--size-icon-sm);
  flex-shrink: 0;
  margin: 0;
  background: var(--surface);
  border: var(--border-rule-input);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: background var(--transition-duration-200) var(--transition-timing-ease), border-color var(--transition-duration-200) var(--transition-timing-ease);
}

.cf7-form .wpcf7-acceptance input[type="checkbox"]:checked,
.cf7-acceptance input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.cf7-form .wpcf7-acceptance input[type="checkbox"]:checked::after,
.cf7-acceptance input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 2px;
  width: var(--size-checkmark-width);
  height: var(--size-checkmark-height);
  border: solid var(--text-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cf7-form .wpcf7-acceptance .wpcf7-list-item-label,
.cf7-acceptance .wpcf7-list-item-label {
  display: inline;
}

.cf7-form .wpcf7-acceptance a,
.cf7-acceptance a {
  color: var(--text);
  text-decoration: underline;
}

.cf7-form .wpcf7-submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

.cf7-form .wpcf7-spinner {
  display: none;
}

.cf7-form .wpcf7-not-valid-tip {
  color: var(--danger-light);
  font-size: var(--font-size-12);
  margin-top: var(--space-1);
}

.cf7-form .wpcf7-response-output {
  margin: var(--space-2) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-14);
}

.cf7-form .wpcf7-response-output.wpcf7-validation-errors,
.cf7-form .wpcf7-response-output.wpcf7-aborted {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--text);
}

.cf7-form .wpcf7-response-output.wpcf7-mail-sent-ok,
.cf7-form .wpcf7-response-output.wpcf7-sent-ok {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--text);
}

/* Price card featured */
.price-card-featured {
  background: var(--primary);
  color: var(--white-90);
}

.price-card-featured .heading-lg {
  color: var(--text-white);
}

.price-card-featured .price-tag {
  color: var(--text-white);
}

.price-card-featured .body-sm {
  color: var(--text-white);
}

/* Feature list */
/* Installment banner */
.installment-banner-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.installment-banner-text .heading-lg {
  margin-bottom: 0;
}

.installment-banner-text .body-md {
  margin-bottom: 0;
}

.installment-banner {
  margin-top: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  background: var(--primary-light);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}

.installment-banner-icon {
  background: var(--surface);
  border-radius: var(--radius-inner);
}

@media (min-width: 768px) {
  .installment-banner {
    padding: var(--space-8);
  }
}

.installment-banner-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* FAQ — строки с разделителями вместо карточек
   (JS-хуки .faq-toggle/.accordion-* сохранены) */
.faq-list {
  max-width: none;
  margin: 0;
  display: grid;
  gap: var(--space-3) var(--space-16);
  align-content: start;
  align-items: start; /* карточка — по высоте контента: раскрытие одной не растягивает соседнюю в строке */
}

.faq-item {
  background: var(--surface);
  border: var(--border-rule-light);
  border-radius: var(--radius-card);
  padding: 0 var(--space-5);
  overflow: hidden;
}

.faq-item:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}

.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-toggle .heading-md {
  margin: 0;
}

.faq-icon {
  color: var(--primary);
  flex-shrink: 0;
  font-size: var(--font-size-20);
}

.faq-content {
  padding: 0;
}

.faq-content p {
  color: var(--text-secondary);
  padding-bottom: var(--space-5);
}

@media (min-width: 1024px) {
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Trust strip - compact */
/* Trust strip — ряд без карточек, крупные цифры */
.trust-strip {
  padding: var(--space-8) 0;
  background: var(--surface);
  border-top: var(--border-rule-light);
  border-bottom: var(--border-rule-light);
}

.trust-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  text-align: center;
}

.trust-strip-main {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
}

.trust-strip-main .trust-strip-icon {
  color: var(--primary);
  font-size: var(--font-size-28);
}

.trust-strip-license {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-0-5);
  font-size: var(--font-size-13);
  line-height: var(--line-height-130);
  text-align: center;
}

.trust-strip-license strong {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-15);
}

.trust-strip-license span {
  color: var(--text-muted);
}

.trust-strip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
}

.trust-strip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}

.trust-strip-stat-value {
  font-family: var(--font-display);
  font-size: var(--font-size-20);
  font-weight: var(--weight-extrabold);
  color: var(--primary);
  line-height: var(--line-height-120);
  letter-spacing: var(--letter-spacing-tight-015);
}

.trust-strip-stat-label {
  font-size: var(--font-size-14);
  color: var(--text-muted);
  line-height: var(--line-height-150);
}

@media (min-width: 768px) {
  .trust-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .trust-strip-license {
    align-items: flex-start;
    text-align: left;
  }

  .trust-strip-stats {
    gap: var(--space-6);
  }

  .trust-strip-stat {
    align-items: flex-start;
    text-align: left;
  }

  .trust-strip-stat-value {
    font-size: var(--font-size-24);
  }
}

@media (min-width: 1024px) {
  .trust-strip-inner {
    align-items: center;
    gap: var(--space-16);
  }

  .trust-strip-stats {
    gap: 0;
  }

  .trust-strip-stat {
    padding: 0 var(--space-10);
  }

  .trust-strip-stat:first-child {
    padding-left: 0;
  }

  .trust-strip-stat + .trust-strip-stat {
    border-left: var(--border-rule-base);
  }

  .trust-strip-stat-value {
    font-size: var(--font-size-28);
  }
}

/* Legal tail */
.legal-tail {
  background: var(--primary);
  border-top: 1px solid var(--primary-hover);
  padding: var(--space-6) 0;
}

.legal-tail__warning {
  color: var(--white-90);
  font-size: var(--font-size-14);
  font-weight: var(--weight-medium);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide-02);
  overflow-wrap: break-word;
}

.legal-tail__notice {
  color: var(--white-90);
  font-size: var(--font-size-14);
  font-weight: var(--weight-medium);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide-02);
  padding: var(--space-6) 0;
  overflow-wrap: break-word;
}

.legal-tail__divider {
  border-top: 1px solid var(--primary-hover);
}

.legal-tail__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
}

.legal-tail__copy,
.legal-tail__dev {
  color: var(--white-90);
  font-size: var(--font-size-14);
}

.legal-tail__dev {
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-tail__dev:hover {
  color: var(--text);
}

/* Geo map */
.geo-map {
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

.geo-map-inner {
  width: 100%;
  height: auto;
  min-height: 0;
  background: transparent;
  display: block;
  position: relative;
}

.geo-map-placeholder {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.geo-map-placeholder .icon {
  color: var(--text);
  opacity: 0.4;
}

.geo-map-placeholder p {
  color: var(--text);
  opacity: 0.6;
  margin-top: var(--space-2);
}

.geo-map-card {
  position: static;
  margin: var(--space-3);
  background: var(--surface);
  border-radius: var(--radius-inner);
  padding: var(--space-4);
  box-shadow: none;
}

.geo-map-iframe-wrap {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  z-index: 1;
}

.geo-map-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}

.geo-map-static-wrap {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  z-index: 1;
}

.geo-map-static-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.geo-map-static-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border: 0 !important;
  display: block;
}

@media (min-width: 768px) {
  .geo-map {
    min-height: var(--map-min-height);
  }

  .geo-map-inner {
    height: 100%;
    min-height: var(--map-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .geo-map-placeholder {
    padding: 0;
  }

  .geo-map-card {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    margin: 0;
    box-shadow: var(--shadow-lg);
    z-index: 2;
  }

  .geo-map-iframe-wrap,
  .geo-map-static-wrap {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

/* Contact info */
.contact-info-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-card .heading-lg {
  margin-bottom: var(--space-6);
}

.contact-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.contact-info-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: fit-content;
}

.geo-map-note {
  color: var(--primary);
  font-weight: var(--weight-medium);
  margin-top: var(--space-1);
}

.contact-social {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--border-rule-light);
}

.contact-social-label {
  display: block;
  font-size: var(--font-size-14);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.bento-grid-gap-sm {
  gap: var(--space-4);
}

.bento-row-span-2 {
  grid-row: span 2;
}

/* Bento Grid - mobile first */
.bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.bento-grid > * {
  min-width: 0;
}

/* Grid column utilities - mobile base (single column) */
.bento-col-1,
.bento-col-2,
.bento-col-3,
.bento-col-4,
.bento-col-5,
.bento-col-6,
.bento-col-7,
.bento-col-8,
.bento-col-9,
.bento-col-10,
.bento-col-11,
.bento-col-12 {
  grid-column: 1 / -1;
}

.bento-item,
.bento-item-2,
.bento-item-3,
.bento-item-4 {
  grid-column: 1 / -1;
}

/* Small screens and up (480px+) */
@media (min-width: 480px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .bento-col-1-sm { grid-column: span 1; }
  .bento-col-2-sm { grid-column: span 2; }
  .bento-col-3-sm { grid-column: span 2; }
  .bento-col-4-sm { grid-column: span 2; }
  .bento-col-6-sm { grid-column: span 2; }
  .bento-col-12-sm { grid-column: 1 / -1; }

  .bento-item-sm { grid-column: span 1; }
  .bento-item-2-sm { grid-column: span 2; }
}

/* Medium screens and up (768px+) */
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .bento-col-1-md { grid-column: span 1; }
  .bento-col-2-md { grid-column: span 2; }
  .bento-col-3-md { grid-column: span 3; }
  .bento-col-4-md { grid-column: span 4; }
  .bento-col-5-md { grid-column: span 5; }
  .bento-col-6-md { grid-column: span 6; }
  .bento-col-12-md { grid-column: 1 / -1; }

  .bento-item-md { grid-column: span 2; }
  .bento-item-2-md { grid-column: span 3; }
  .bento-item-3-md { grid-column: span 4; }
  .bento-item-4-md { grid-column: span 6; }
}

/* Large screens and up (1024px+) */
@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .bento-col-1 { grid-column: span 1; }
  .bento-col-2 { grid-column: span 2; }
  .bento-col-3 { grid-column: span 3; }
  .bento-col-4 { grid-column: span 4; }
  .bento-col-5 { grid-column: span 5; }
  .bento-col-6 { grid-column: span 6; }
  .bento-col-7 { grid-column: span 7; }
  .bento-col-8 { grid-column: span 8; }
  .bento-col-9 { grid-column: span 9; }
  .bento-col-10 { grid-column: span 10; }
  .bento-col-11 { grid-column: span 11; }
  .bento-col-12 { grid-column: span 12; }

  .bento-col-1-lg { grid-column: span 1; }
  .bento-col-2-lg { grid-column: span 2; }
  .bento-col-3-lg { grid-column: span 3; }
  .bento-col-4-lg { grid-column: span 4; }
  .bento-col-5-lg { grid-column: span 5; }
  .bento-col-6-lg { grid-column: span 6; }
  .bento-col-7-lg { grid-column: span 7; }
  .bento-col-8-lg { grid-column: span 8; }
  .bento-col-9-lg { grid-column: span 9; }
  .bento-col-10-lg { grid-column: span 10; }
  .bento-col-11-lg { grid-column: span 11; }
  .bento-col-12-lg { grid-column: span 12; }

  .bento-item { grid-column: span 4; }
  .bento-item-2 { grid-column: span 6; }
  .bento-item-3 { grid-column: span 8; }
  .bento-item-4 { grid-column: span 12; }

  .bento-item-lg { grid-column: span 4; }
  .bento-item-2-lg { grid-column: span 6; }
  .bento-item-3-lg { grid-column: span 8; }
  .bento-item-4-lg { grid-column: span 12; }
}

/* Extra large screens (1280px+) */
@media (min-width: 1280px) {
  .bento-grid {
    gap: var(--space-xl);
  }

  .bento-col-1-xl { grid-column: span 1; }
  .bento-col-2-xl { grid-column: span 2; }
  .bento-col-3-xl { grid-column: span 3; }
  .bento-col-4-xl { grid-column: span 4; }
  .bento-col-5-xl { grid-column: span 5; }
  .bento-col-6-xl { grid-column: span 6; }
  .bento-col-7-xl { grid-column: span 7; }
  .bento-col-8-xl { grid-column: span 8; }
  .bento-col-9-xl { grid-column: span 9; }
  .bento-col-10-xl { grid-column: span 10; }
  .bento-col-11-xl { grid-column: span 11; }
  .bento-col-12-xl { grid-column: span 12; }
}

/* Section */
.section {
  /* ponytail: половинные паддинги — зазор между соседними секциями = 1x --section-pad-y, цветные секции остаются симметричными */
  padding: calc(var(--section-pad-y) / 2) 0;
}

.section-header {
  text-align: left;
  margin: 0 0 var(--space-xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-14);
  font-weight: var(--weight-semibold);
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-section-title);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-115);
  letter-spacing: var(--letter-spacing-tight-02);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-16);
  color: var(--text-secondary);
  line-height: var(--line-height-150);
}

.btn,
.badge {
  white-space: normal;
}

.display-xl {
  font-size: var(--font-size-display-xl-mobile);
}

.display-lg {
  font-size: var(--font-size-display-lg-mobile);
}

@media (min-width: 768px) {
  .display-xl {
    font-size: var(--font-size-display-xl);
  }

  .display-lg {
    font-size: var(--font-size-display-lg);
  }
}

.review-card {
  display: flex;
  flex-direction: column;
}

.review-card .stars {
  margin-bottom: var(--space-4);
}

.review-quote {
  margin-bottom: var(--space-4);
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
}

.review-author-name {
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-15);
}

/* Avatar */
.avatar {
  width: var(--size-avatar);
  height: var(--size-avatar);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--font-size-14);
  flex-shrink: 0;
}

.avatar-primary {
  background: var(--primary-subtle);
  color: var(--primary);
}

/* Rating badges — чистый ряд без карточек */
.rating-badges {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: var(--border-rule-light);
  flex-wrap: wrap;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

a.rating-badge {
  cursor: pointer;
}

a.rating-badge .rating-badge-logo {
  transition: transform var(--transition-fast);
}

a.rating-badge:hover .rating-badge-logo {
  transform: scale(1.08);
}

a.rating-badge:hover .rating-badge-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.rating-badge:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-inner);
}

.rating-badge-logo {
  width: var(--size-40);
  height: var(--size-40);
  border-radius: var(--radius-inner);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.rating-badge-score {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--font-size-18);
  color: var(--primary);
}

/* Rating Stars */
.stars {
  display: flex;
  gap: 2px;
  color: var(--star);
}

/* Price Tag */
.price-tag {
  font-family: var(--font-display);
  font-size: var(--font-size-24);
  font-weight: var(--weight-bold);
  color: var(--text);
}

.price-tag-old {
  font-size: var(--font-size-16);
  font-weight: var(--weight-regular);
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: var(--space-2);
}

/* ============================================
   HERO — split с фото
   ============================================ */
.hero-section {
  position: relative;
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-content .hero-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-14);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.hero-title {
  margin-bottom: var(--space-6);
  line-height: var(--line-height-110);
}

.hero-accent {
  color: var(--primary);
}

.hero-desc {
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.hero-card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-card-actions .btn {
  width: 100%;
  justify-content: center;
  white-space: normal;
}

@media (min-width: 480px) {
  .hero-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-card-actions .btn {
    width: auto;
    flex: 1;
  }
}

.hero-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--primary-light);
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}

/* Факты под сплитом: ряд без карточек, монохром navy */
.hero-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--space-8);
  border-top: var(--border-rule-base);
}

.hero-fact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero-fact-icon {
  font-size: var(--font-size-24);
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-fact-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--font-size-16);
  line-height: var(--line-height-130);
}

.hero-fact-text {
  font-size: var(--font-size-14);
  line-height: var(--line-height-150);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

@media (min-width: 640px) {
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-16);
  }

  .hero-image img {
    max-height: none;
    height: clamp(440px, 42vw, 580px);
  }

  .hero-card-actions .btn {
    flex: 0 1 auto;
  }

  .hero-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-8);
  }
}

/* ============================================
   PROMOTIONS — featured-панель + стек
   ============================================ */
.promotions-header {
  max-width: none;
}

.promotions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.promotions-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.promotions-stack:only-child {
  grid-column: 1 / -1;
}

/* Featured-панель: светлый navy-тинт */
.promo-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  background: var(--primary-light);
  border-radius: var(--radius-card);
  padding: var(--space-8);
}

/* Featured-панель с фоновым фото: полупрозрачный слой поверх primary-light */
.promo-feature--image {
  position: relative;
  overflow: hidden;
}

.promo-feature--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--promo-image) center / cover no-repeat;
  opacity: 0.3;
}

.promo-feature--image .promo-feature-body,
.promo-feature--image .promo-feature-side {
  position: relative;
  z-index: 1;
}

.promo-feature-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.promo-feature-icon {
  width: var(--size-icon-2xl);
  height: var(--size-icon-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--primary);
  border-radius: var(--radius-inner);
  font-size: var(--font-size-32);
}

.promo-feature-badge {
  background: var(--primary);
  color: var(--text-white);
}

.promo-feature-title {
  font-family: var(--font-display);
  font-size: var(--font-size-32);
  font-weight: var(--weight-extrabold);
  line-height: var(--line-height-120);
  letter-spacing: var(--letter-spacing-tight-015);
  margin-top: var(--space-5);
}

.promo-feature-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
  margin-top: var(--space-2);
}

.promo-feature-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.promo-feature-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.promo-price-new {
  font-family: var(--font-display);
  font-size: var(--font-size-28);
  font-weight: var(--weight-extrabold);
  color: var(--primary);
  letter-spacing: var(--letter-spacing-tight-015);
  white-space: nowrap;
}

.promo-feature .promo-price-new {
  font-size: var(--font-size-32);
}

.promo-price-old {
  font-size: var(--font-size-16);
  color: var(--text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

/* Компактные карточки */
.promo-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border-rule-light);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}

.promo-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.promo-item-icon {
  width: var(--size-icon-lg);
  height: var(--size-icon-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-inner);
  font-size: var(--font-size-22);
}

.promo-item-title {
  font-family: var(--font-display);
  font-size: var(--font-size-20);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-125);
  margin-bottom: var(--space-2);
}

.promo-item-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
}

.promo-item-list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.promo-item-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.promo-item-list li::before {
  content: '';
  width: var(--size-checkmark-width);
  height: var(--size-bullet);
  margin-top: 0.55em;
  background: var(--primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.promo-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-5);
}

.promo-item-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .promo-feature {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-10);
  }

  .promo-feature-side {
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .promotions-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* ============================================
   SERVICES — список-строки
   ============================================ */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-6) 0;
}

.service-row + .service-row {
  border-top: var(--border-rule-light);
}

.service-row-icon {
  margin-top: var(--space-1);
}

.service-row-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.service-row-title {
  font-family: var(--font-display);
  font-size: var(--font-size-20);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-125);
}

.service-row-title a {
  color: var(--text);
}

.service-row-title a:hover {
  color: var(--primary);
}

.service-row-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
  margin-top: var(--space-2);
  max-width: 65ch;
}

.service-row-children {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
}

.service-row-child {
  font-size: var(--font-size-14);
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.service-row-child:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

.service-row-side {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.service-row-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  min-width: 0;
}

.service-row-price .promo-price-new {
  font-size: var(--font-size-22);
}

.service-row-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-14);
  color: var(--primary);
  white-space: nowrap;
}

/* Featured-строка: светлый navy-тинт */
.service-row--featured {
  background: var(--primary-light);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  margin: var(--space-2) 0;
}

.service-row--featured + .service-row {
  border-top: none;
}

.service-row--featured .service-row-icon {
  background: var(--surface);
}

@media (min-width: 1024px) {
  .service-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) 0;
  }

  .service-row--featured {
    padding: var(--space-6) var(--space-8);
  }

  .service-row-side {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
    text-align: right;
  }

  .service-row-price .promo-price-new {
    font-size: var(--font-size-28);
  }
}

/* ============================================
   WHY US — цифры крупно, без карточек
   ============================================ */
.why-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10) var(--space-8);
}

.why-item {
  border-top: 2px solid var(--primary);
  padding-top: var(--space-5);
}

.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--font-size-32);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-tight-02);
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.why-title {
  font-family: var(--font-display);
  font-size: var(--font-size-20);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-125);
  margin-bottom: var(--space-2);
}

.why-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
  margin-bottom: var(--space-4);
}

.why-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.why-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-14);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.why-check .icon {
  color: var(--primary);
}

@media (min-width: 768px) {
  .why-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .why-item:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .why-item:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* ============================================
   PRICING — ценовые колонки без карточек
   ============================================ */
.pricing-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

.pricing-item {
  border-top: var(--border-rule-base);
  padding-top: var(--space-6);
}

.pricing-item-title {
  font-family: var(--font-display);
  font-size: var(--font-size-18);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-130);
  margin-bottom: var(--space-3);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: var(--font-size-28);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--letter-spacing-tight-015);
  color: var(--primary);
  white-space: nowrap;
  margin-bottom: var(--space-2);
}

.pricing-subtitle {
  font-size: var(--font-size-14);
  color: var(--text-muted);
  line-height: var(--line-height-150);
  margin-bottom: var(--space-5);
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-14);
  color: var(--text-secondary);
}

.pricing-features .icon {
  color: var(--primary);
}

.pricing-item--featured {
  border-top: none;
  background: var(--primary-light);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}

@media (min-width: 768px) {
  .pricing-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pricing-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .pricing-item {
    padding-left: var(--space-6);
  }

  /* Фичи стартуют на одной высоте: 2 строки под подзаголовок */
  .pricing-subtitle {
    min-height: 3em;
  }

  .pricing-item--featured {
    padding: var(--space-6);
  }
}

/* ============================================
   PROCESS — линия шагов без карточек
   ============================================ */
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

/* Вертикальная линия (mobile) */
.process-steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: var(--space-2);
  bottom: var(--space-2);
  width: 2px;
  background: var(--primary-mid);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.process-step-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--font-size-15);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--font-size-18);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-130);
  margin-bottom: var(--space-2);
  padding-top: var(--space-2);
}

.process-step-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
}

/* Горизонтальная линия (desktop) */
@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .process-steps::before {
    left: 12.5%;
    right: 12.5%;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .process-step {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: var(--space-4);
  }

  .process-step-title {
    padding-top: 0;
  }
}

/* ============================================
   REVIEWS — большая цитата + компактные
   ============================================ */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
}

.review-feature {
  margin: 0;
  padding-left: var(--space-6);
  border-left: 3px solid var(--primary);
}

.review-feature .stars {
  margin-bottom: var(--space-4);
}

.review-feature-text {
  font-family: var(--font-display);
  font-size: var(--font-size-22);
  font-weight: var(--weight-medium);
  line-height: var(--line-height-140);
  letter-spacing: var(--letter-spacing-tight-015);
  color: var(--text);
  margin-bottom: var(--space-6);
}

.reviews-side {
  display: grid;
  gap: var(--space-8);
  align-content: start;
}

.review-compact {
  margin: 0;
  border-top: var(--border-rule-base);
  padding-top: var(--space-5);
}

.review-compact .stars {
  margin-bottom: var(--space-3);
}

.review-compact-text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
  .reviews-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-16);
  }

  .review-feature-text {
    font-size: var(--font-size-24);
  }
}

/* ============================================
   NAVIGATION - mobile first
   ============================================ */

/* Utility Bar - hidden on mobile by default */
.utility-bar {
  display: none;
  background: var(--surface);
  border-bottom: var(--border-rule-light);
}

.utility-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.utility-bar-info {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.utility-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-13);
  color: var(--text-secondary);
}

.utility-bar-icon {
  font-size: var(--font-size-16);
  color: var(--primary);
}

.utility-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.utility-bar-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-14);
  font-weight: var(--weight-semibold);
  color: var(--text);
  text-decoration: none;
}

.utility-bar-socials {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.utility-bar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-white);
  background: var(--primary-hover);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.utility-bar-social:hover {
  transform: translateY(-2px);
  background: var(--text);
}

.utility-bar-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.utility-bar-social img {
  width: 16px;
  height: 16px;
}

/* Site Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-rule-light);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.site-logo {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: var(--font-size-20);
  font-weight: var(--weight-bold);
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  max-width: var(--logo-width);
  overflow: hidden;
}

.site-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  width: var(--logo-width);
  max-height: 60px;
  object-fit: contain;
}

/* Desktop Navigation - hidden on mobile */
.nav-center,
.nav-right {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-15);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-item-arrow {
  font-size: var(--font-size-16);
  transition: transform var(--transition-fast);
}

/* Submenu wrapper (dropdown container) */
.nav-submenu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: var(--space-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-item:hover > .nav-submenu-wrapper,
.nav-item:focus-within > .nav-submenu-wrapper,
.nav-item.is-hovered > .nav-submenu-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-item:hover > .nav-link .nav-item-arrow,
.nav-item.is-hovered > .nav-link .nav-item-arrow {
  transform: rotate(180deg);
}

.nav-link.is-active {
  color: var(--primary);
}

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: var(--border-rule-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  min-width: min(220px, calc(100vw - 2rem));
  overflow: hidden;
}

/* Mega Menu */
.nav-megamenu {
  background: var(--surface);
  border: var(--border-rule-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
  width: min(900px, calc(100vw - 2 * var(--container-padding)));
}

.nav-megamenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: var(--border-rule-light);
}

.nav-megamenu-heading {
  font-family: var(--font-display);
  font-size: var(--font-size-18);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.nav-megamenu-all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-14);
  font-weight: var(--weight-medium);
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-megamenu-all:hover {
  color: var(--primary-hover);
}

.nav-megamenu-all .icon {
  font-size: var(--font-size-16);
}

.nav-megamenu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.nav-megamenu-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border: var(--border-rule-transparent);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-megamenu-card:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-mid);
}

.nav-megamenu-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: var(--size-icon-lg);
  height: var(--size-icon-lg);
  background: var(--surface);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: var(--font-size-20);
  box-shadow: var(--shadow-sm);
}

.nav-megamenu-card:hover .nav-megamenu-icon {
  background: var(--primary);
  color: var(--surface);
}

.nav-megamenu-card-title {
  font-size: var(--font-size-15);
  font-weight: var(--weight-medium);
  color: var(--text);
  line-height: var(--line-height-130);
}

.nav-megamenu-card:hover .nav-megamenu-card-title {
  color: var(--primary);
}

/* Standard submenu (non-mega) */
.nav-submenu-standard {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
}

.nav-submenu-standard .nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-15);
  border-radius: 0;
}

/* Nav CTA */
.nav-cta {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-14);
}

.nav-cta-icon {
  font-size: var(--font-size-18);
}

.nav-cta-text {
  display: none;
}

@media (min-width: 1280px) {
  .nav-cta {
    padding: var(--space-2) var(--space-5);
  }

  .nav-cta-text {
    display: inline;
  }
}

/* Burger Toggle - visible on mobile by default */
.nav-toggle {
  grid-column: 3;
  display: flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: var(--size-touch-target);
  height: var(--size-touch-target);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.nav-toggle-icon {
  font-size: var(--font-size-24);
  color: var(--text);
}

.nav-toggle-close {
  display: none;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 400px);
  max-width: 0;
  overflow: hidden;
  background: var(--surface);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transition: max-width var(--transition-base), visibility var(--transition-base);
  visibility: hidden;
}

.nav-mobile.is-open {
  max-width: min(100%, 400px);
  visibility: visible;
}

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: var(--border-rule-light);
  flex-shrink: 0;
}

.nav-mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}

.nav-menu-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-menu-mobile .nav-item {
  border-bottom: var(--border-rule-light);
}

.nav-menu-mobile .nav-item:last-child {
  border-bottom: none;
}

.nav-menu-mobile .nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  font-size: var(--font-size-18);
  font-weight: var(--weight-medium);
  color: var(--text);
  border-radius: 0;
  background: none;
}

.nav-menu-mobile .nav-link:hover {
  color: var(--primary);
  background: none;
}

/* Mobile accordion for submenus */
.nav-menu-mobile .nav-submenu-wrapper {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding: 0;
  display: none;
}

.nav-menu-mobile .nav-item.is-open > .nav-submenu-wrapper {
  display: block;
}

.nav-menu-mobile .nav-submenu {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  min-width: auto;
  padding: 0 0 var(--space-3) var(--space-4);
}

.nav-menu-mobile .nav-megamenu {
  padding: 0;
  width: auto;
}

.nav-menu-mobile .nav-megamenu-header {
  display: none;
}

.nav-menu-mobile .nav-megamenu-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-2);
}

.nav-menu-mobile .nav-megamenu-card {
  flex-direction: row;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border-radius: var(--radius-md);
}

.nav-menu-mobile .nav-megamenu-card:hover {
  background: var(--primary-subtle);
}

.nav-menu-mobile .nav-megamenu-icon {
  width: var(--size-icon-md);
  height: var(--size-icon-md);
  font-size: var(--font-size-18);
}

.nav-menu-mobile .nav-megamenu .nav-submenu {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: auto;
  max-width: none;
}

.nav-menu-mobile .nav-megamenu-title {
  font-size: var(--font-size-16);
  border-bottom: none;
  margin-bottom: var(--space-1);
  padding: var(--space-2) 0;
}

.nav-menu-mobile .nav-megamenu-list {
  gap: 0;
  padding-left: var(--space-4);
}

.nav-menu-mobile .nav-megamenu-link {
  padding: var(--space-2) 0;
  font-size: var(--font-size-15);
}

.nav-menu-mobile .nav-item-arrow {
  transition: transform var(--transition-fast);
}

.nav-menu-mobile .nav-item.is-open > .nav-link .nav-item-arrow {
  transform: rotate(180deg);
}

/* Mega menu columns (hub + auto child links) */

.nav-megamenu__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: stretch;
}

.nav-megamenu-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 calc(var(--space-4) + var(--size-icon-lg) + var(--space-3));
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-megamenu-list li {
  margin: 0;
}

.nav-megamenu-link {
  display: inline-block;
  padding: var(--space-1) 0;
  font-size: 0.75rem;
  line-height: var(--line-height-130);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-megamenu-link::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: var(--space-2);
  vertical-align: middle;
}

.nav-megamenu-link:hover {
  color: var(--primary);
}

.nav-megamenu-link.is-active {
  color: var(--primary);
  font-weight: var(--weight-semibold);
}

.nav-menu-mobile .nav-megamenu__col {
  gap: var(--space-1);
}


.nav-mobile-footer {
  padding: var(--space-4) var(--space-6);
  border-top: var(--border-rule-light);
  flex-shrink: 0;
}

.nav-mobile-cta {
  width: 100%;
  justify-content: center;
}

.nav-mobile-socials {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.nav-mobile-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-white);
  background: var(--primary-hover);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.nav-mobile-social:hover {
  transform: translateY(-2px);
  background: var(--text);
}

.nav-mobile-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-mobile-social img {
  width: 22px;
  height: 22px;
}

/* Desktop navigation (1024px+) */
@media (min-width: 1024px) {
  .utility-bar {
    display: block;
  }

  .nav-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-3);
  }

  .nav-center {
    display: block;
    grid-column: 2;
    justify-self: center;
    position: relative;
  }

  .nav-right {
    display: flex;
    grid-column: 3;
    justify-self: end;
    align-items: center;
    gap: var(--space-2);
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    gap: 0;
  }

  .nav-link {
    padding: var(--space-2) var(--space-1);
    font-size: var(--font-size-13);
  }

  .nav-megamenu-trigger {
    position: static;
  }

  .nav-megamenu-trigger > .nav-submenu-wrapper {
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-megamenu {
    padding: var(--space-4);
    width: min(1240px, calc(100vw - 2 * var(--container-padding)));
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .nav-megamenu-header {
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
  }

  .nav-megamenu::-webkit-scrollbar {
    width: 6px;
  }

  .nav-megamenu::-webkit-scrollbar-track {
    background: transparent;
  }

  .nav-megamenu::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
  }

  .nav-megamenu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-megamenu-card {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }

  .nav-megamenu-icon {
    width: var(--size-icon-md);
    height: var(--size-icon-md);
    font-size: var(--font-size-18);
  }

  .nav-megamenu-card-title {
    font-size: var(--font-size-14);
  }

  .nav-megamenu-list {
    padding-left: calc(var(--space-3) + var(--size-icon-md) + var(--space-2));
  }
}

/* Narrow desktop: keep 3 columns so the mega menu fits vertically */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-megamenu {
    width: min(1000px, calc(100vw - 2 * var(--container-padding)));
  }

  .nav-megamenu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .nav-inner {
    gap: var(--space-4);
  }

  .nav-right {
    gap: var(--space-3);
  }

  .nav-link {
    padding: var(--space-2) var(--space-2);
    font-size: var(--font-size-14);
  }
}

@media (min-width: 1320px) {
  .nav-inner {
    gap: var(--space-6);
  }

  .nav-right {
    gap: var(--space-4);
  }

  .nav-menu {
    gap: var(--space-1);
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-15);
  }
}

/* Tablet mega menu (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-megamenu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.case-card-title {
  margin-bottom: 0;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.case-card .case-image {
  flex: none;
  border-radius: 0;
}

.case-card .case-image-img {
  border-radius: 0;
}

.case-card > .case-card-title,
.case-card > .case-card-text {
  padding-inline: var(--space-4);
}

.case-card-text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
  color: var(--text-muted);
}

.case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.case-card .case-badges {
  margin-top: auto;
  padding-inline: var(--space-4);
}

.case-card > :last-child {
  padding-bottom: var(--space-4);
}

.case-image {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.case-image-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.case-image-wide .case-image-img {
  aspect-ratio: 16 / 10;
}

.case-image-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--border-light);
}

.case-image-half {
  position: relative;
  overflow: hidden;
}

.case-image-half .case-image-img {
  border-radius: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.case-image-wide .case-image-comparison .case-image-img {
  aspect-ratio: 1 / 1;
}

.case-image-label {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(var(--primary-rgb), 0.85);
  color: var(--text-white);
  font-size: var(--font-size-12);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide-02);
}

.case-hero .case-image--single .case-image-img {
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  margin-inline: auto;
  object-fit: contain;
}

.case-card .case-image--single .case-image-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: none;
  margin-inline: 0;
  object-fit: cover;
}

.case-image-img--bottom {
  object-position: center bottom;
}

/* ============================================
   SINGLE CASE PAGE
   ============================================ */

.case-header-badges {
  margin-top: var(--space-3);
  justify-content: flex-start;
}

.case-hero .case-image-img {
  cursor: zoom-in;
}

.case-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .case-grid .case-hero {
    grid-column: 1 / span 8;
    grid-row: 1;
  }

  .case-grid .case-description {
    grid-column: 1 / span 8;
    grid-row: 2;
  }

  .case-grid .case-sidebar {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 96px; /* ponytail: хардкод под высоту sticky-навигации (~72px) + отступ */
  }

  .case-grid--full .case-hero,
  .case-grid--full .case-description {
    grid-column: 1 / -1;
  }

  .case-grid .case-gallery {
    grid-column: 1 / -1;
  }
}

.case-gallery__title {
  margin-bottom: var(--space-4);
}

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.case-gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .case-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .case-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.case-description__title {
  margin-bottom: var(--space-4);
}

.case-doctor__link {
  margin-top: var(--space-2);
}

.case-services__title {
  margin-bottom: var(--space-3);
}

a.badge-outline {
  transition: color var(--transition-base), border-color var(--transition-base);
}

a.badge-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.case-cta {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.case-cta__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.case-cta__note {
  color: var(--text-secondary);
}

@media (min-width: 1024px) {
  .case-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .case-cta__actions {
    flex: none;
  }
}

@media (min-width: 768px) {
  .case-image-img {
    aspect-ratio: 4 / 3;
  }

  .case-image-wide .case-image-img {
    aspect-ratio: 3 / 2;
  }

  .case-image-half .case-image-img,
  .case-image-wide .case-image-comparison .case-image-img {
    aspect-ratio: 1 / 1;
  }
}

/* ============================================
   FOUNDERS
   ============================================ */

.founders-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.founders-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.founder-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: var(--border-rule-light);
  background: var(--surface);
  height: 100%;
}

.founder-card:hover {
  transform: none;
  box-shadow: var(--shadow-card-hover);
}

.founder-photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--primary-light);
  flex: none;
  aspect-ratio: 4 / 5;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.founder-photo--portrait {
  aspect-ratio: 4 / 5;
}

.founder-info {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}

.doctor-card .founder-info {
  flex-grow: 1;
  gap: var(--space-4);
}

.doctor-card .case-badges {
  margin-top: auto;
}

.founder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.founder-titles {
  min-width: 0;
}

.founder-name {
  font-family: var(--font-display);
  font-size: var(--font-size-22);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-1);
}

.founder-role {
  font-size: var(--font-size-15);
  color: var(--primary);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--letter-spacing-wide-02);
}

.founder-spec {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-150);
  margin-top: 0;
}

.founder-team-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.founder-team-column > * {
  min-width: 0;
}

.founder-team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: var(--border-rule-light);
  background: var(--surface);
  height: auto;
}

.founder-team-card:hover {
  transform: none;
  box-shadow: var(--shadow-card-hover);
}

.founder-team-photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--primary-light);
  aspect-ratio: 4 / 5;
  width: 100%;
  flex: none;
}

.founder-team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.founder-team-info {
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-height: 0;
  flex-shrink: 0;
}

.founder-team-name {
  font-family: var(--font-display);
  font-size: var(--font-size-14);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: 0;
  line-height: var(--line-height-125);
}

.founder-team-spec {
  font-size: var(--font-size-12);
  color: var(--text-secondary);
  line-height: var(--line-height-130);
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.founder-team-info .badge {
  font-size: var(--font-size-10);
  padding: var(--space-1) var(--space-2);
  align-self: flex-start;
}

/* Title links inherit card title color (featured cards, dark cards) */
.service-card-title a,
.founder-name a,
.founder-team-name a,
.case-card-title a {
  color: inherit;
  text-decoration: none;
}

.service-card-title a:hover,
.founder-name a:hover,
.founder-team-name a:hover,
.case-card-title a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .founders-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .founders-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-team-column {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .founders-grid {
    grid-template-columns: 2fr 1fr;
  }

  .founders-grid--solo {
    grid-template-columns: 1fr;
  }

  .founders-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-team-column {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: var(--space-6);
  }

  .founder-card--large {
    grid-row: span 1;
  }

  .founder-team-card {
    flex-direction: column;
    height: auto;
  }

  .founder-team-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    flex: none;
  }

  .founder-team-info {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-4);
  }
}

/* ============================================
   FOOTER - mobile first
   ============================================ */

.site-footer-main {
  background: var(--primary);
  color: var(--text-white);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-12) 0 var(--space-10);
}

.footer__logo {
  display: inline-flex;
}

/* Логотип в футере: белая версия на тёмном фоне */
.footer__logo img {
  filter: brightness(0) invert(1);
}

.footer__logo img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.footer__top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-white);
  background: var(--primary-hover);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.footer__messenger:hover {
  transform: translateY(-2px);
  background: var(--text);
}

.footer__messenger svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer__messenger img {
  width: 22px;
  height: 22px;
}

.footer__phone-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__phone {
  color: var(--text-white);
  font-size: var(--font-size-20);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

.footer__phone-sub {
  color: var(--white-70);
  font-size: var(--font-size-14);
}

.footer__mid {
  display: grid;
  gap: var(--space-10);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--primary-hover);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer__minzdrav {
  display: inline-block;
}

.footer__minzdrav img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

.footer__legal-text {
  color: var(--white-90);
  font-size: var(--font-size-14);
  line-height: var(--line-height-160);
  margin: 0;
}

.footer__legal-line {
  display: block;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer__links-group {
  min-width: 0;
}

.footer__links-title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-15);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide-05);
  color: var(--white-70);
}

.footer__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links-list a,
.footer__links-list .footer__link {
  color: var(--white-90);
  text-decoration: none;
  font-size: var(--font-size-15);
  transition: color var(--transition-fast);
}

.footer__links-list .footer__link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.footer__links-list a:hover,
.footer__links-list .footer__link:hover {
  color: var(--text-white);
}

.footer__note {
  color: var(--white-90);
  font-size: var(--font-size-15);
  margin: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - var(--space-8));
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-fast);
}

.modal.is-open .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--font-size-24);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal__close:hover {
  color: var(--text);
}

.modal__title {
  font-size: var(--font-size-24);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  padding-right: var(--space-8);
}

.modal__desc {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-6);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal__label {
  font-size: var(--font-size-14);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.modal__hint {
  color: var(--text-muted);
  font-size: var(--font-size-14);
  margin-top: var(--space-4);
  margin-bottom: 0;
}

/* Responsive */
@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .footer__top-actions {
    flex-direction: row;
    align-items: center;
  }

  .footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .footer__mid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__top {
    padding: var(--space-16) 0 var(--space-12);
  }

  .footer__mid {
    grid-template-columns: 1.2fr 1.5fr 1fr;
  }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
  margin-bottom: var(--space-4);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-13);
  line-height: var(--line-height-140);
}

.breadcrumbs__item:not(:last-child)::after {
  content: '\203A';
  color: var(--text-muted);
}

.breadcrumbs__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs__link:hover {
  color: var(--primary);
}

.breadcrumbs__current {
  color: var(--text);
  font-weight: var(--weight-medium);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-submenu-wrapper,
  .nav-overlay,
  .nav-mobile,
  .nav-item-arrow,
  .modal,
  .modal__content,
  .footer__messenger {
    transition: none;
  }
}







/* ============================================
   STATIC PAGES — otzyvy / o-nas / kontakty / blog
   ============================================ */
.otzyvy-ratings {
  margin-top: 0;
  margin-bottom: var(--space-8);
  padding-top: 0;
  border-top: none;
}

.otzyvy-grid {
  margin-bottom: var(--space-8);
}

.o-nas-stats {
  margin-bottom: var(--space-10);
}

.o-nas-block {
  max-width: 720px;
  margin-bottom: var(--space-10);
}

.o-nas-text {
  margin-top: var(--space-4);
}

.o-nas-docs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.kontakty-head {
  padding-bottom: var(--space-8);
}

.kontakty-call {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.blog-card {
  gap: var(--space-3);
  padding: var(--space-6);
}

.blog-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-18);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-130);
}

@media (min-width: 768px) {
  .o-nas-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Documents page (юридические документы, WP) ---------- */

.documents-requisites {
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.documents-requisites__title {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-20);
  font-weight: var(--weight-bold);
  color: var(--text);
}

.documents-requisites__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.documents-requisites__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
}

.documents-requisites__row:last-child {
  border-bottom: none;
}

.documents-requisites__row dt {
  flex-shrink: 0;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .documents-requisites__row {
    flex-direction: row;
    gap: var(--space-3);
  }

  .documents-requisites__row dt {
    width: 180px;
  }
}

.documents-requisites__row dd {
  margin: 0;
  color: var(--text);
  font-size: var(--font-size-sm);
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.documents-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
}

.documents-item__icon {
  flex-shrink: 0;
  width: var(--size-icon-lg);
  height: var(--size-icon-lg);
  display: grid;
  place-items: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-md);
}

.documents-item__title {
  margin: 0;
  font-size: var(--font-size-16);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.documents-item__desc {
  margin: var(--space-1) 0 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.documents-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.documents-item__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  color: var(--primary);
  text-decoration: none;
}

.documents-item__link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.documents-item__link--download {
  color: var(--text-secondary);
}

.documents-item__details {
  margin-top: var(--space-3);
}

.documents-item__details summary {
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  color: var(--primary);
}

.documents-item__details summary:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.documents-item__content {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.documents-item__content p {
  margin: 0 0 var(--space-2);
}

.documents-item__content ul,
.documents-item__content ol {
  margin: 0 0 var(--space-2);
  padding-left: var(--space-5);
}

/* ---------- License page (сканы + лицензирующий орган) ---------- */

.license-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.license-gallery__item {
  display: block;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.license-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.12));
}

.license-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

.license-issuer {
  margin-top: var(--space-6);
}

@media (min-width: 1024px) {
  .license-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Single doctor page ===== */

.doctor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "crumbs"
    "info"
    "photo";
  gap: var(--space-6);
  align-items: start;
}

.doctor-hero__crumbs {
  grid-area: crumbs;
}

.doctor-hero__crumbs .breadcrumbs {
  margin-bottom: 0;
}

.doctor-hero__info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.doctor-hero__name {
  margin: 0;
  font-family: var(--font-display);
}

.doctor-hero__role {
  margin: var(--space-2) 0 0;
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.doctor-hero__spec {
  margin: var(--space-1) 0 0;
  color: var(--text-secondary);
}

.doctor-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: var(--border-rule-light);
  border-radius: var(--radius-inner, 12px);
}

.doctor-hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl, 2rem);
  font-weight: var(--weight-bold);
  color: var(--primary);
}

.doctor-hero__stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.doctor-hero__cta {
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.doctor-hero__prodoctorov-logo {
  height: 20px;
  width: auto;
  display: block;
}

.doctor-hero__photo-wrap {
  grid-area: photo;
  background: var(--primary-light);
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.doctor-hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.doctor-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.doctor-about__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.doctor-about__photo-wrap {
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  background: var(--surface);
}

.doctor-about__photo {
  display: block;
  width: 100%;
  object-fit: cover;
}

.doctor-about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.doctor-about__heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
}

.doctor-about__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}

.doctor-about__list {
  margin: 0;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.doctor-about__schedule {
  margin: 0;
  color: var(--text);
}

.doctor-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-services__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--border-rule-light);
  border-radius: var(--radius-card, 16px);
  background: var(--surface);
  color: var(--text);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.doctor-services__link:hover {
  color: var(--primary);
  box-shadow: var(--shadow-card-hover);
}

.doctor-certs,
.doctor-work,
.doctor-videos {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.doctor-certs::-webkit-scrollbar,
.doctor-work::-webkit-scrollbar,
.doctor-videos::-webkit-scrollbar {
  display: none;
}

.doctor-certs__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.doctor-work__item {
  flex: 0 0 calc(50% - var(--space-4) / 2);
  scroll-snap-align: start;
}

.doctor-videos__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.doctor-slider__nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.doctor-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: var(--border-rule-light);
  border-radius: var(--radius-full, 9999px);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.doctor-slider__btn:hover {
  color: var(--primary);
  box-shadow: var(--shadow-card-hover);
}

.doctor-slider__btn--prev .icon {
  transform: scaleX(-1);
}

.doctor-certs__item,
.doctor-work__item {
  border: var(--border-rule-light);
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  background: var(--surface);
}

.doctor-certs__img {
  display: block;
  width: auto;
  height: clamp(160px, 20vw, 220px);
  max-width: 85vw;
  object-fit: contain;
}

.doctor-work__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-video-frame {
  display: block;
  width: min(420px, 100%);
  aspect-ratio: 382 / 646;
  border: 0;
  border-radius: var(--radius-inner, 12px);
}

.doctor-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-4);
  overflow: hidden;
}

.doctor-cta__title {
  margin: 0 0 var(--space-5);
}

.doctor-cta__photo-wrap {
  display: none;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--primary-light);
  border-radius: var(--radius-card, 16px);
}

@media (min-width: 768px) {
  .doctor-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "crumbs photo"
      "info   photo";
    column-gap: var(--space-10);
    row-gap: var(--space-6);
  }

  .doctor-hero__photo-wrap {
    aspect-ratio: 4 / 5;
  }

  .doctor-about {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: var(--space-10);
  }

  .doctor-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-work__item {
    flex-basis: calc(25% - var(--space-4) * 3 / 4);
  }

  .doctor-cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    gap: var(--space-8);
    padding: var(--space-6);
  }

  .doctor-cta__photo-wrap {
    display: block;
  }

.doctor-cta__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
}

.doctor-certs__img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-inner, 12px);
}

/* ============================================================
   Front page decorative patterns (dymkovo + zub, webp)
   Scoped by section IDs — doctor page not affected.
   ============================================================ */

#services,
#appointment,
#promotions,
#scenarios,
#why-us,
#founders,
#cases,
#pricing,
#process,
#faq,
#reviews {
  position: relative;
  overflow: hidden;
}

#contacts {
  position: relative;
}

#services > .container,
#appointment > .container,
#promotions > .container,
#scenarios > .container,
#why-us > .container,
#founders > .container,
#cases > .container,
#pricing > .container,
#process > .container,
#faq > .container,
#reviews > .container,
#contacts > .container {
  position: relative;
  z-index: 1;
}

/* Hero: tooth outline bottom-right */
#hero::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(200px, 24vw, 320px);
  aspect-ratio: 297 / 402;
  background: url('../images/patterns/zub/zub-bg-1.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

/* Hero: dymkovo vertical frieze, left edge (desktop only) */
#hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(80px, 8vw, 120px);
  aspect-ratio: 223 / 828;
  max-height: 80%;
  background: url('../images/patterns/dymkovo/element_01.webp') no-repeat center / contain;
  pointer-events: none;
  display: none;
}

/* Services: sparkle accents top-right */
#services::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(180px, 22vw, 300px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* CTA: dymkovo arc behind the heading */
#appointment::before {
  content: '';
  position: absolute;
  left: 50%;
  top: var(--space-6);
  transform: translateX(-50%);
  width: min(560px, 90%);
  aspect-ratio: 532 / 317;
  background: url('../images/patterns/dymkovo/element_05.webp') no-repeat top center / contain;
  pointer-events: none;
}

/* Dymkovo divider under key section titles */
#services .section-title::after,
#reviews .section-title::after,
#why-us .section-title::after {
  content: '';
  display: block;
  width: min(280px, 60%);
  aspect-ratio: 474 / 59;
  margin-top: var(--space-3);
  background: url('../images/patterns/dymkovo/element_09.webp') no-repeat left center / contain;
}

/* Promotions: dymkovo fan, top-right */
#promotions::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(240px, 28vw, 380px);
  aspect-ratio: 280 / 170;
  background: url('../images/patterns/dymkovo/element_08.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* Scenarios: dymkovo branch, top-left */
#scenarios::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 177 / 178;
  background: url('../images/patterns/dymkovo/element_07.webp') no-repeat left top / contain;
  pointer-events: none;
}

/* Why-us: tooth outline, bottom-right */
#why-us::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 297 / 402;
  background: url('../images/patterns/zub/zub-bg-1.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

/* Founders: dymkovo medallion, bottom-left */
#founders::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 233 / 230;
  background: url('../images/patterns/dymkovo/element_03.webp') no-repeat left bottom / contain;
  pointer-events: none;
}

/* Cases: sparkle accents, top-left */
#cases::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat left top / contain;
  pointer-events: none;
}

/* Pricing: dymkovo ornament, top-right */
#pricing::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(160px, 18vw, 240px);
  aspect-ratio: 154 / 152;
  background: url('../images/patterns/dymkovo/element_04.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* Process: horizontal dymkovo frieze, bottom center */
#process::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  width: min(520px, 70%);
  aspect-ratio: 483 / 146;
  background: url('../images/patterns/dymkovo/element_06.webp') no-repeat bottom center / contain;
  pointer-events: none;
}

/* FAQ: sparkle accents, top-left */
#faq::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat left top / contain;
  pointer-events: none;
}

/* Contacts: small dymkovo rosette, bottom-left (no overflow:hidden — карта) */
#contacts::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(110px, 11vw, 150px);
  aspect-ratio: 109 / 110;
  background: url('../images/patterns/dymkovo/element_12.webp') no-repeat left bottom / contain;
  pointer-events: none;
}

/* Services (extra): dymkovo vertical frieze, right edge (desktop only) */
#services::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(80px, 8vw, 120px);
  aspect-ratio: 246 / 826;
  max-height: 80%;
  background: url('../images/patterns/dymkovo/element_02.webp') no-repeat center / contain;
  pointer-events: none;
  display: none;
}

/* Reviews (extra): tooth outline, top-right */
#reviews::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 297 / 402;
  background: url('../images/patterns/zub/zub-bg-1.webp') no-repeat right top / contain;
  pointer-events: none;
}

@media (min-width: 768px) {
  #hero::after,
  #services::after {
    display: block;
  }
}

/* ============================================================
   Sitewide decorative patterns (archives, singles, 404, footer)
   Scoped by WP body classes — front page rules above untouched.
   ============================================================ */

.post-type-archive-doctor .section,
.post-type-archive-case .section,
.single-case .section,
.error404 .section,
.single-post .article,
.blog .site-main,
.site-footer-main,
body.single-doctor .section:has(.doctor-cta),
body.single-doctor .section:has(.doctor-about),
body.single-doctor .section:has(.doctor-services) {
  position: relative;
  overflow: hidden;
}

.post-type-archive-doctor .section > .container,
.post-type-archive-case .section > .container,
.single-case .section > .container,
.error404 .section > .container,
.single-post .article > .container,
.site-footer-main > .container,
body.single-doctor .section:has(.doctor-cta) > .container,
body.single-doctor .section:has(.doctor-about) > .container,
body.single-doctor .section:has(.doctor-services) > .container {
  position: relative;
  z-index: 1;
}

/* Doctor page hero: same recipe as front page hero */
body.single-doctor .hero-section::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(200px, 24vw, 320px);
  aspect-ratio: 297 / 402;
  background: url('../images/patterns/zub/zub-bg-1.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

body.single-doctor .hero-section::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(80px, 8vw, 120px);
  aspect-ratio: 223 / 828;
  max-height: 80%;
  background: url('../images/patterns/dymkovo/element_01.webp') no-repeat center / contain;
  pointer-events: none;
  display: none;
}

@media (min-width: 768px) {
  body.single-doctor .hero-section::after {
    display: block;
  }
}

/* Doctor page «О враче»: small dymkovo ornament, bottom-right */
body.single-doctor .section:has(.doctor-about)::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 154 / 152;
  background: url('../images/patterns/dymkovo/element_04.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

/* Doctor page «Услуги»: dymkovo branch, bottom-left */
body.single-doctor .section:has(.doctor-services)::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 177 / 178;
  background: url('../images/patterns/dymkovo/element_07.webp') no-repeat left bottom / contain;
  pointer-events: none;
}

/* Doctor page CTA: dymkovo arc behind the card */
body.single-doctor .section:has(.doctor-cta)::before {
  content: '';
  position: absolute;
  left: 50%;
  top: var(--space-6);
  transform: translateX(-50%);
  width: min(560px, 90%);
  aspect-ratio: 532 / 317;
  background: url('../images/patterns/dymkovo/element_05.webp') no-repeat top center / contain;
  pointer-events: none;
}

/* Dymkovo divider under section titles */
.post-type-archive-doctor .section-title::after,
.post-type-archive-case .section-title::after,
body.single-doctor .section:has(.doctor-certs) .section-title::after,
body.single-doctor .section:has(.doctor-videos) .section-title::after {
  content: '';
  display: block;
  width: min(280px, 60%);
  aspect-ratio: 474 / 59;
  margin-top: var(--space-3);
  background: url('../images/patterns/dymkovo/element_09.webp') no-repeat left center / contain;
}

/* Doctors archive: dymkovo medallion, top-right */
.post-type-archive-doctor .section::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 233 / 230;
  background: url('../images/patterns/dymkovo/element_03.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* Cases archive: tooth outline, bottom-right */
.post-type-archive-case .section::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 297 / 402;
  background: url('../images/patterns/zub/zub-bg-1.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

/* Single case: dymkovo fan, top-right (small — фото кейса важнее) */
.single-case .section::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(140px, 16vw, 220px);
  aspect-ratio: 280 / 170;
  background: url('../images/patterns/dymkovo/element_08.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* Blog article: dymkovo branch, bottom-left */
.single-post .article::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 177 / 178;
  background: url('../images/patterns/dymkovo/element_07.webp') no-repeat left bottom / contain;
  pointer-events: none;
}

/* Blog index: sparkle accents, top-right */
.blog .site-main::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* 404: dymkovo arc behind the heading */
.error404 .section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: var(--space-6);
  transform: translateX(-50%);
  width: min(560px, 90%);
  aspect-ratio: 532 / 317;
  background: url('../images/patterns/dymkovo/element_05.webp') no-repeat top center / contain;
  pointer-events: none;
}

/* Footer (all pages): sparkle accents, top-right */
.site-footer-main::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* ============================================================
   Service pages decorative patterns (dymkovo + zub)
   Scoped by service template body classes; :has() pins blocks.
   contacts_cta already decorated via shared #appointment/#contacts.
   ============================================================ */

.page-template-service-page .service-hero,
.page-template-service-hub .service-hero,
.page-template-service-page .service-block,
.page-template-service-hub .service-block,
.page-template-service-page .service-intro,
.page-template-service-hub .service-intro {
  position: relative;
  overflow: hidden;
}

.page-template-service-page .service-hero > .container,
.page-template-service-hub .service-hero > .container,
.page-template-service-page .service-block > .container,
.page-template-service-hub .service-block > .container,
.page-template-service-page .service-intro > .container,
.page-template-service-hub .service-intro > .container {
  position: relative;
  z-index: 1;
}

/* Hero: dymkovo vertical frieze, left edge (desktop only) */
.page-template-service-page .service-hero::after,
.page-template-service-hub .service-hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(80px, 8vw, 120px);
  aspect-ratio: 223 / 828;
  max-height: 80%;
  background: url('../images/patterns/dymkovo/element_01.webp') no-repeat center / contain;
  pointer-events: none;
  display: none;
}

@media (min-width: 768px) {
  .page-template-service-page .service-hero::after,
  .page-template-service-hub .service-hero::after {
    display: block;
  }
}

/* Trust: tooth outline, bottom-right (аналог #why-us) */
.page-template-service-page .service-block:has(.icon-cards--trust)::before,
.page-template-service-hub .service-block:has(.icon-cards--trust)::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 297 / 402;
  background: url('../images/patterns/zub/zub-bg-1.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

/* Cases/reviews: sparkle accents, top-left (аналог #cases) */
.page-template-service-page .service-block:has(.service-cases)::before,
.page-template-service-hub .service-block:has(.service-cases)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat left top / contain;
  pointer-events: none;
}

/* Prices: dymkovo ornament, top-right (аналог #pricing)
   Hook .price-table: в manual-режиме обёртки .price-group нет. */
.page-template-service-page .service-block:has(.price-table)::before,
.page-template-service-hub .service-block:has(.price-table)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(160px, 18vw, 240px);
  aspect-ratio: 154 / 152;
  background: url('../images/patterns/dymkovo/element_04.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* Steps: horizontal dymkovo frieze, bottom center (аналог #process) */
.page-template-service-page .service-block:has(.service-steps)::before,
.page-template-service-hub .service-block:has(.service-steps)::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  width: min(520px, 70%);
  aspect-ratio: 483 / 146;
  background: url('../images/patterns/dymkovo/element_06.webp') no-repeat bottom center / contain;
  pointer-events: none;
}

/* Reviews: tooth outline, top-right (аналог #reviews) */
.page-template-service-page .service-block:has(.service-reviews-grid)::before,
.page-template-service-hub .service-block:has(.service-reviews-grid)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 297 / 402;
  background: url('../images/patterns/zub/zub-bg-1.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* FAQ: sparkle accents, top-left (аналог #faq) */
.page-template-service-page .service-block:has(.faq-list)::before,
.page-template-service-hub .service-block:has(.faq-list)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat left top / contain;
  pointer-events: none;
}

/* Doctors: dymkovo medallion, bottom-left (аналог #founders) */
.page-template-service-page .service-block:has(.doctors-grid)::before,
.page-template-service-hub .service-block:has(.doctors-grid)::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 233 / 230;
  background: url('../images/patterns/dymkovo/element_03.webp') no-repeat left bottom / contain;
  pointer-events: none;
}

/* Dymkovo divider under prices/reviews titles */
.page-template-service-page .service-block:has(.price-table) .section-title::after,
.page-template-service-hub .service-block:has(.price-table) .section-title::after,
.page-template-service-page .service-block:has(.service-reviews-grid) .section-title::after,
.page-template-service-hub .service-block:has(.service-reviews-grid) .section-title::after {
  content: '';
  display: block;
  width: min(280px, 60%);
  aspect-ratio: 474 / 59;
  margin-top: var(--space-3);
  background: url('../images/patterns/dymkovo/element_09.webp') no-repeat left center / contain;
}

/* Lead form: dymkovo arc behind card content (аналог #appointment) */
.page-template-service-page .service-lead-form__card,
.page-template-service-hub .service-lead-form__card {
  position: relative;
  overflow: hidden;
}

.page-template-service-page .service-lead-form__card::before,
.page-template-service-hub .service-lead-form__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: min(420px, 70%);
  aspect-ratio: 532 / 317;
  background: url('../images/patterns/dymkovo/element_05.webp') no-repeat left top / contain;
  pointer-events: none;
}

.page-template-service-page .service-lead-form__content,
.page-template-service-hub .service-lead-form__content,
.page-template-service-page .service-lead-form__form,
.page-template-service-hub .service-lead-form__form {
  position: relative;
  z-index: 1;
}

/* Promo banner: dymkovo fan, top-right (аналог #promotions) */
.page-template-service-page .service-block:has(.promo-banner)::before,
.page-template-service-hub .service-block:has(.promo-banner)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(240px, 28vw, 380px);
  aspect-ratio: 280 / 170;
  background: url('../images/patterns/dymkovo/element_08.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* Text block: small dymkovo wreath, top-right */
.page-template-service-page .service-block:has(.text-block__content)::before,
.page-template-service-hub .service-block:has(.text-block__content)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(110px, 11vw, 150px);
  aspect-ratio: 1 / 1;
  background: url('../images/patterns/dymkovo/element_10.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* Icon list (кроме trust): dymkovo branch, bottom-left */
.page-template-service-page .service-block:has(.icon-cards):not(:has(.icon-cards--trust))::before,
.page-template-service-hub .service-block:has(.icon-cards):not(:has(.icon-cards--trust))::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 177 / 178;
  background: url('../images/patterns/dymkovo/element_07.webp') no-repeat left bottom / contain;
  pointer-events: none;
}

/* Contraindications: small dymkovo rosette, bottom-right */
.page-template-service-page .service-block:has(.contra-grid)::before,
.page-template-service-hub .service-block:has(.contra-grid)::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(110px, 11vw, 150px);
  aspect-ratio: 109 / 110;
  background: url('../images/patterns/dymkovo/element_12.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

/* Service types: sparkle accents, top-right */
.page-template-service-page .service-block:has(.types-grid)::before,
.page-template-service-hub .service-block:has(.types-grid)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* Pros/cons: dymkovo branch, bottom-right */
.page-template-service-page .service-block:has(.pros-cons)::before,
.page-template-service-hub .service-block:has(.pros-cons)::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 177 / 178;
  background: url('../images/patterns/dymkovo/element_07.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

/* Related services: dymkovo medallion, top-right */
.page-template-service-page .service-block:has(.services-grid)::before,
.page-template-service-hub .service-block:has(.services-grid)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 233 / 230;
  background: url('../images/patterns/dymkovo/element_03.webp') no-repeat right top / contain;
  pointer-events: none;
}

/* About clinic: sparkle accents, bottom-right */
.page-template-service-page .service-block:has(.service-stats)::before,
.page-template-service-hub .service-block:has(.service-stats)::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 336 / 443;
  background: url('../images/patterns/zub/zub-bg-2.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

/* Dymkovo dividers: intro («Об услуге») и FAQ */
.page-template-service-page .service-intro .section-title::after,
.page-template-service-hub .service-intro .section-title::after,
.page-template-service-page .service-block:has(.faq-list) .section-title::after,
.page-template-service-hub .service-block:has(.faq-list) .section-title::after {
  content: '';
  display: block;
  width: min(280px, 60%);
  aspect-ratio: 474 / 59;
  margin-top: var(--space-3);
  background: url('../images/patterns/dymkovo/element_09.webp') no-repeat left center / contain;
}

/* ============================================
   Frame corner ornament: медальон за фото,
   правый нижний угол рамки (hero главной,
   hero услуг, фото врача). Обрезается
   overflow:hidden рамки, просвечивает сквозь
   прозрачные области webp-фото.
   ============================================ */

.hero-image,
.service-hero__media,
.doctor-hero__photo-wrap {
  position: relative;
}

.hero-image::before,
.service-hero__media::before,
.doctor-hero__photo-wrap::before {
  content: '';
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: min(300px, 50%);
  aspect-ratio: 1;
  background: url('../images/patterns/dymkovo/element_03.webp') no-repeat right bottom / contain;
  pointer-events: none;
}

.hero-image img,
.service-hero__image,
.doctor-hero__photo {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Sales page (/akcii/)
   ============================================================ */

.sales-list {
  display: grid;
  gap: var(--space-6);
}

.sale-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.sale-card__media {
  display: block;
  min-height: 220px;
  overflow: hidden;
}

.sale-card__media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.sale-card__body {
  display: grid;
  gap: var(--space-5);
  padding: 0 var(--space-5) var(--space-5);
}

.sale-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.sale-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sale-card__title {
  margin: 0;
}

.sale-card__title a {
  color: inherit;
  text-decoration: none;
}

.sale-card__title a:hover {
  color: var(--primary);
}

.sale-card__desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-150);
}

.sale-card__list {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding-left: var(--space-4);
  color: var(--text-secondary);
}

.sale-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
}

.sale-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--primary);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.sale-card__link:hover {
  text-decoration: underline;
}

.sale-card__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow-sm);
}

.sale-card__form-title {
  margin: 0;
}

.sale-card__form-deadline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  align-self: flex-start;
  margin: 0;
  padding: var(--space-1) var(--space-3);
  background: var(--primary-light);
  border-radius: var(--radius-full, 999px);
  color: var(--primary);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
}

@media (min-width: 1024px) {
  .sale-card__body {
    grid-template-columns: 0.9fr 1.4fr 1.1fr;
    align-items: stretch;
    padding: var(--space-5);
    padding-left: 0;
    gap: var(--space-6);
  }

  .sale-card__media {
    min-height: 320px;
  }

  .sale-card__media img {
    height: 100%;
  }
}
