.currency-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: -0.08em;
  overflow: visible;
  color: inherit;
}

.currency-symbol__svg,
.currency-symbol__img {
  display: block;
  width: 0.9em;
  height: 0.9em;
  max-width: 0.9em;
  max-height: 0.9em;
  overflow: visible;
  flex-shrink: 0;
  object-fit: contain;
}

.ui-arrow-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: currentColor;
  background-color: currentColor;
  -webkit-mask-image: url("../icons/icon-arrow.c5446e6e89ef.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../icons/icon-arrow.c5446e6e89ef.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  rotate: 0deg;
}

.ui-arrow-icon--right {
  rotate: 0deg;
}

.ui-arrow-icon--down {
  rotate: 90deg;
}

.ui-arrow-icon--left {
  rotate: 180deg;
}

.ui-arrow-icon--up {
  rotate: 270deg;
}

.ui-close-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: currentColor;
  background-color: currentColor;
  -webkit-mask-image: url("../icons/close-icon.90dbaa453653.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../icons/close-icon.90dbaa453653.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.pricing-all-floating__icon span {
  display: inline-block;
}
.pricing-all-floating__icon {
  font-size: 48px;
  line-height: 1;
  color: inherit;
  display: inline-flex;
  gap: 6px;
}

.pricing-all-floating__icon span {
  display: inline-block;
  transition: transform .3s ease;
}

.pricing-all-floating:hover .pricing-all-floating__icon span:first-child,
.pricing-all-floating:focus-visible .pricing-all-floating__icon span:first-child {
  transform: translateX(6px);
}

.pricing-all-floating:hover .pricing-all-floating__icon span:last-child,
.pricing-all-floating:focus-visible .pricing-all-floating__icon span:last-child {
  transform: translateX(14px);
}
.promotions-shell {
  margin-top: 18px;
}

.promotions-grid {
  display: grid;
  gap: clamp(16px, 2.1vw, 24px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promotions-grid--count-1 {
  grid-template-columns: minmax(0, 940px);
  justify-content: center;
}

.promotions-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mts-offer {
  --promo-accent: #dc2626;
  --promo-accent-rgb: 220, 38, 38;
  position: relative;
  border-radius: 28px;
  padding: 0;
  border: 1px solid rgba(var(--promo-accent-rgb), 0.56);
  background: linear-gradient(135deg, rgba(20, 20, 25, 0.95) 0%, rgba(25, 25, 30, 0.98) 100%);
  box-shadow:
    0 24px 52px rgba(var(--promo-accent-rgb), 0.3),
    0 0 0 1px rgba(var(--promo-accent-rgb), 0.3) inset,
    0 8px 28px rgba(var(--promo-accent-rgb), 0.22),
    0 0 72px rgba(var(--promo-accent-rgb), 0.2);
  overflow: hidden;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.promotions-grid .mts-offer {
  height: 100%;
}

.mts-offer__spark {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--promo-accent-rgb), 0.25) 0%,
    rgba(var(--promo-accent-rgb), 0.35) 50%,
    rgba(var(--promo-accent-rgb), 0.18) 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.mts-offer__glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(var(--promo-accent-rgb), 0.3) 0%,
    rgba(var(--promo-accent-rgb), 0.16) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: mtsGlow 9s ease-in-out infinite;
}

.mts-offer__content {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(
    135deg,
    rgba(var(--promo-accent-rgb), 0.92) 0%,
    rgba(var(--promo-accent-rgb), 0.86) 52%,
    rgba(var(--promo-accent-rgb), 0.9) 100%
  );
  border-radius: 26px;
  color: #fff;
  z-index: 2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
}

.promotions-grid .mts-offer__content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

@keyframes mtsGlow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.08) rotate(180deg);
    opacity: 0.52;
  }
}

.mts-offer__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  margin-bottom: 22px;
  position: relative;
  z-index: 3;
}

.mts-offer__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.14);
  color: #fee2e2;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.promotion-card__media {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.22);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
}

.promotion-card__media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mts-offer__body {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 3;
}

.promotions-grid .mts-offer__body {
  flex: 1;
  align-content: start;
}

.mts-offer__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff7ed;
}

.mts-offer__subtitle {
  margin: 0;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.62;
  color: rgba(255, 247, 237, 0.86);
}

.promotion-card__description {
  margin: 0;
  display: grid;
  gap: 10px;
}

.promotion-card__description > * {
  margin: 0;
}

.promotion-card__description p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 247, 237, 0.92);
}

.promotion-card__description ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.promotion-card__description li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 247, 237, 0.92);
}

.promotion-card__description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fda4af 0%, #f43f5e 100%);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22);
}

.mts-offer__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.mts-offer__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 247, 237, 0.92);
}

.mts-offer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fda4af 0%, #f43f5e 100%);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.25);
}

.mts-offer__code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--font-family-base);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mts-offer__footer {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 3;
}

.btn-mts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: 1px solid var(--primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-mts:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}

.btn-mts:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.btn-mts:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.34);
  outline-offset: 2px;
}

.btn-mts::before,
.btn-mts::after {
  content: none !important;
  display: none !important;
}

.mts-offer__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 247, 237, 0.74);
}

.mts-offer:hover,
.mts-offer:focus-within {
  transform: translateY(-2px) translateZ(0);
  box-shadow:
    0 32px 72px rgba(var(--promo-accent-rgb), 0.36),
    0 0 0 1px rgba(var(--promo-accent-rgb), 0.52) inset,
    0 16px 42px rgba(var(--promo-accent-rgb), 0.32),
    0 0 92px rgba(var(--promo-accent-rgb), 0.3);
  border-color: rgba(var(--promo-accent-rgb), 0.82);
}

.mts-offer:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.mts-offer:hover .mts-offer__glow {
  animation-duration: 5s;
}

@media (max-width: 1200px) {
  .promotions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotions-grid--count-1 {
    grid-template-columns: minmax(0, 860px);
  }
}

@media (max-width: 960px) {
  .mts-offer__title {
    font-size: 24px;
  }

  .mts-offer__subtitle {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .promotions-grid,
  .promotions-grid--count-1,
  .promotions-grid--count-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .promotions-shell {
    margin-top: 12px;
  }

  .mts-offer__content {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .promotion-card__media {
    width: 64px;
    height: 64px;
  }

  .mts-offer__title {
    font-size: 21px;
  }

  .mts-offer__subtitle,
  .promotion-card__description p,
  .promotion-card__description li {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mts-offer,
  .mts-offer__glow,
  .bundle-switch__badge,
  .btn-mts {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
/* Button components */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 12px 16px; 
  border-radius: 10px; 
  border: 1px solid var(--border); 
  text-decoration: none; 
  color: var(--fg); 
  background: #fff; 
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; 
}

.btn:hover { 
  box-shadow: 0 4px 12px rgba(0,0,0,.06); 
}

.btn-primary { 
  background: var(--primary); 
  color: #fff; 
  border-color: var(--primary); 
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Градиентный слой для анимации */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    var(--primary-600) 0%, 
    #3b82f6 50%, 
    var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: inherit;
}

/* Эффект блеска */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  z-index: -1;
  border-radius: inherit;
}

.btn-primary.news-view-all{ 
  color: #000; 
}

.btn-primary:hover { 
  background: var(--primary-600); 
  border-color: var(--primary-600); 
  color: #fff;
  transform: scale(1.01);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4),
              0 5px 10px rgba(59, 130, 246, 0.2);
}

.btn-primary.news-view-all:hover {
  color: #000;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover::after {
  left: 150%;
}

/* Активное состояние */
.btn-primary:active {
  transform: scale(1);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Специальные стили для кнопки "Личный кабинет" */
.desktop-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--desktop-user-btn-padding, 12px 16px);
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  position: relative;
}

.user-icon {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.user-icon--small {
  width: 16px;
  height: 16px;
}

.desktop-user-icon {
  display: none;
}

/* Icon-only buttons should allow the icon to fill the button box */
.mobile-user-btn .user-icon,
.site-header[data-header-mode="compact-user"] .desktop-user-btn .user-icon,
.site-header[data-header-mode="compact-logo"] .desktop-user-btn .user-icon {
  width: 100%;
  height: 100%;
}

.mobile-login-btn .user-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* Контейнер для текстов */
.btn-text-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
  z-index: 2;
}

/* Тексты */
.btn-text-default,
.btn-text-hover {
  white-space: nowrap;
  transition: color 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), border-color 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-text-default {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.btn-text-hover {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  transform: translateY(130%);
  opacity: 0;
}

/* Стрелочка */
.desktop-user-btn > .btn-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  display: block;
  line-height: 1;
  opacity: 0;
  width: 20px;
  height: 20px;
  transition: color 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), border-color 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  transform: translate3d(-6px, -50%, 0);
  pointer-events: none;
  z-index: 2;
}

/* При наведении */
.desktop-user-btn:hover .btn-text-default {
  opacity: 0;
  transform: translateY(-130%);
}

.desktop-user-btn:hover .btn-text-hover {
  opacity: 1;
  transform: translateY(0);
}

.desktop-user-btn:hover .btn-arrow {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

/* Убедимся, что элементы остаются поверх эффектов */
.btn-primary > * {
  position: relative;
  z-index: 2;
}

.btn-outline { 
  background: transparent; 
}

.btn-icon { 
  padding: 8px 10px; 
  width: 36px; 
  height: 36px; 
  border-radius: 8px; 
}

/* Feature cards */
.feature { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 20px 16px; 
  text-align: center; 
  box-shadow: 0 8px 24px rgba(0,0,0,.05); 
}

.feature .feature-icon { 
  width: 52px; 
  height: 52px; 
  margin: 0 auto 10px; 
  border-radius: 14px; 
  background: #eef2ff; 
  border: 1px solid #e5e7eb; 
  display: grid; 
  place-items: center; 
  color: var(--primary); 
}

.feature h3 { 
  margin: 0 0 4px; 
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* News cards */
.cards { 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0,1fr)); 
  gap: 16px; 
}

/* Service cards */
.tabs { 
  border: 1px solid var(--border); 
  border-radius: 14px; 
  padding: 12px; 
  background: #fff; 
}

.tablist { 
  display: flex; 
  gap: 8px; 
  border-bottom: 1px solid var(--border); 
  padding-bottom: 8px; 
  justify-content: center; 
}

.tablist [role="tab"] { 
  background: #f8fafc; 
  border: 1px solid var(--border); 
  padding: 8px 12px; 
  border-radius: 10px; 
  cursor: pointer; 
}

.tablist [aria-selected="true"] { 
  background: var(--primary); 
  border-color: var(--primary); 
  color: #fff; 
}

.tabpanels { 
  padding-top: 12px; 
}

.service-cards { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(0,1fr)); 
  gap: 16px; 
}

.service-card { 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 16px; 
  background: #fff; 
  display: grid; 
  gap: 8px; 
}

.service-card img { 
  width: 56px; 
  height: 56px; 
}

.service-card ul { 
  margin: 0; 
  padding-left: 18px; 
}

.service-card li { 
  margin: 2px 0; 
}

.price { 
  color: var(--muted); 
  font-weight: 600; 
}

/* Audience segmented toggle */
/* ВАЖНО: Базовые структурные стили находятся здесь */
/* Тематические стили (светлая/темная тема) управляются через header-light.css и header-dark.css */
.audience-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.audience-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  font-synthesis: none;
  white-space: nowrap;
  color: var(--fg);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.audience-btn[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  transform: translateZ(0);

}

/* Placement-specific visibility */
.audience-toggle--desktop { display: none; }
.audience-toggle--mobile { display: none; }

/* Language switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.language-switcher__link,
.language-switcher__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.language-switcher__link:hover,
.language-switcher__option:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.language-switcher__link.is-active,
.language-switcher__option.is-active {
  color: #fff;
  background: var(--primary);
}

.desktop-actions .language-switcher {
  margin-right: 2px;
}

/* Stats */
.about .stats { 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0,1fr)); 
  gap: 16px; 
  margin: 20px 0; 
}

.stat { 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 20px; 
  background: #fff; 
  display: grid; 
  justify-items: center; 
  text-align: center; 
  gap: 8px; 
  box-shadow: 0 8px 24px rgba(0,0,0,.05); 
}

.stat-icon { 
  width: 48px; 
  height: 48px; 
  border-radius: 12px; 
  background: #eef2ff; 
  border: 1px solid #e5e7eb; 
  display: grid; 
  place-items: center; 
  color: var(--primary); 
}

.stat-num { 
  font-size: 24px; 
  font-weight: 700; 
}

.stat-label { 
  color: var(--muted); 
  font-size: 14px; 
}

.about-text { 
  color: var(--muted); 
}

/* Contacts */
.contacts .grid { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0,1fr)); 
  gap: 16px; 
}

.contact-list { 
  list-style: none; 
  padding: 0; 
  margin: 8px 0 0; 
  display: grid; 
  gap: 6px; 
}

.contact-list li { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
}

.contact-list img { 
  width: 18px; 
  height: 18px; 
}

/* City switcher */
/* ВАЖНО: Базовые структурные стили находятся здесь */
/* Тематические стили (светлая/темная тема) управляются через header-light.css и header-dark.css */
.city-switcher { 
  position: relative; 
}

.city-button { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  padding: 8px 12px; 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  background: #fff; 
  cursor: pointer; 
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative;
  overflow: hidden;
}

/* Анимированный фон */
.city-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(147, 197, 253, 0.05) 50%,
    transparent 100%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.city-button:hover::before {
  width: 200%;
  height: 200%;
}

.city-button:hover { 
  border-color: var(--primary); 
  background: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: scale(1.01);
}

.city-button:active {
  transform: scale(1);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
}

.location-icon { 
  color: var(--primary); 
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.city-button:hover .location-icon {
  transform: scale(1.1) translateZ(0);
}

.chevron { 
  color: var(--muted); 
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.city-button:hover .chevron {
  color: var(--primary);
  transform: translateY(1px);
}

.city-switcher[aria-expanded="true"] .chevron { 
  transform: rotate(180deg); 
  color: var(--primary);
}

.city-switcher[aria-expanded="true"] .city-button {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.city-switcher[aria-expanded="true"] .city-button::before {
  width: 200%;
  height: 200%;
}

/* Текст города */
.city-button [data-city-label] {
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.city-button:hover [data-city-label] {
  color: var(--primary);
}

.city-menu { 
  position: absolute; 
  top: 100%; 
  left: 0; 
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  margin-top: 12px; 
  background: rgba(255, 255, 255, 0.78); 
  border: none;
  border-radius: 16px; 
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.5) inset,
              0 0 0 1px rgba(0, 0, 0, 0.05); 
  z-index: 100; 
  padding: 8px; 
  overflow: hidden; 
  transform-origin: top center; 
  opacity: 0; 
  transform: translateY(-10px) scale(0.96); 
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              backdrop-filter 0.3s ease,
              -webkit-backdrop-filter 0.3s ease; 
  pointer-events: none;
}

.city-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.3) 100%);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.city-menu:not([hidden]) { 
  opacity: 1; 
  transform: translateY(0); 
  pointer-events: auto;
}

.mobile-city-switcher .city-menu {
  left: auto;
  right: 0;
  transform-origin: top right;
}

.city-option { 
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%; 
  padding: 9px 12px; 
  border: none; 
  background: transparent; 
  text-align: left; 
  white-space: nowrap;
  cursor: pointer; 
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
  border-radius: 8px; 
  font-weight: 500; 
  font-size: 14px;
  line-height: 1.25;
  position: relative;
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
}

.city-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%,
    rgba(147, 51, 234, 0.1) 100%);
  opacity: 0;
  border-radius: 8px;
  transition: opacity 0.25s ease;
  z-index: -1;
  pointer-events: none;
}

.city-option:hover::before {
  opacity: 1;
}

.city-option:hover { 
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  transform: scale(1.01);
}

/* Иконка при наведении - убрана */

.city-option:active {
  background: rgba(59, 130, 246, 0.15);
  transform: scale(1);
}

.city-option[aria-selected="true"] { 
  display: none; /* Hide currently selected city */ 
}

/* Анимация появления опций */
@keyframes slideInCity {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.city-menu:not([hidden]) .city-option {
  animation: slideInCity 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.city-menu:not([hidden]) .city-option:nth-child(1) {
  animation-delay: 0.02s;
}

.city-menu:not([hidden]) .city-option:nth-child(2) {
  animation-delay: 0.04s;
}

/* Mobile menu */
/* ВАЖНО: Базовые структурные стили находятся здесь */
/* Тематические стили (светлая/темная тема) управляются через header-light.css и header-dark.css */
html.mobile-menu-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.mobile-menu-scroll-locked body {
  position: fixed;
  top: calc(-1 * var(--mobile-scroll-lock-y, 0px));
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
  padding-right: var(--mobile-scroll-lock-gap, 0px);
  overscroll-behavior: none;
}

.mobile-menu { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: 1200;
  display: none; 
  opacity: 0;
  overflow: hidden;
  overscroll-behavior: none;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu:not([hidden]) {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  touch-action: none;
  transition: opacity 0.3s ease;
}

.mobile-menu:not([hidden]) .mobile-menu-overlay {
  opacity: 1;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* make panel span full width */
  width: 100%; /* full-screen width */
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%); /* slide in from right, full-screen */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.mobile-menu:not([hidden]) .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--safe-top, 0px) + 12px) 12px 12px;
  border-bottom: none;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: none;
}

.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: min(230px, calc(100vw - 88px));
}

.mobile-menu-brand__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 38px;
}

.mobile-menu-brand__image--light {
  display: block;
}

.mobile-menu-brand__image--dark {
  display: none;
}

html.theme-dark .mobile-menu-brand__image--light,
body.theme-dark .mobile-menu-brand__image--light {
  display: none;
}

html.theme-dark .mobile-menu-brand__image--dark,
body.theme-dark .mobile-menu-brand__image--dark {
  display: block;
}

.mobile-menu-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--fg);
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.mobile-menu-close .ui-close-icon,
.mobile-menu-close svg,
.mobile-menu-close img {
  width: 20px;
  height: 20px;
  display: block;
}

.mobile-menu-close:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.mobile-menu-close:focus,
.mobile-menu-close:focus-visible {
  outline: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.mobile-menu-close:active {
  transform: none;
}

.mobile-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #ffffff;
  display: block;
}

.mobile-nav-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
}

.mobile-nav-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.mobile-nav-group__header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-nav-group__list {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  margin: 0 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  backdrop-filter: blur(8px);
}

.mobile-nav-item--label {
  cursor: default;
  backdrop-filter: none;
}

.mobile-nav-item--label::before {
  opacity: 0;
}

.mobile-nav-item--label:hover,
.mobile-nav-item--label:active {
  background: transparent;
  color: var(--fg);
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.mobile-nav-item:last-child { 
  border-bottom: 0; 
  margin-bottom: 0;
}

.mobile-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.mobile-nav-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
  border-bottom-color: transparent;
}

.mobile-nav-item:hover::before {
  opacity: 1;
}

.mobile-nav-item:active {
  transform: scale(1);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.mobile-nav-item .mobile-nav-item__arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
}

.mobile-nav-item:hover .mobile-nav-item__arrow {
  color: var(--primary);
  transform: scale(1.15) rotate(5deg);
  background: rgba(37, 99, 235, 0.2);
}

.mobile-nav-item--child {
  font-size: 15px;
  font-weight: 500;
  padding: 16px 24px 12px 32px;
  margin: 0 18px 6px;
  border-radius: 14px;
}

.mobile-nav-groups > .mobile-nav-item:not(.mobile-nav-item--child) {
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 16px 18px;
}

.mobile-nav-groups > .mobile-nav-item:not(.mobile-nav-item--child)::before {
  border-radius: 20px;
}

.mobile-nav-groups > .mobile-nav-item:not(.mobile-nav-item--child) .mobile-nav-item__arrow {
  margin-left: auto;
}

.mobile-menu-actions {
  flex-shrink: 0;
  display: grid;
  gap: 12px;
  padding: 16px 16px calc(16px + var(--safe-bottom, 0px));
  border-top: none;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-menu .language-switcher {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-menu .language-switcher__link,
.mobile-menu .language-switcher__option {
  min-height: 40px;
  font-size: 14px;
}

.mobile-menu .audience-toggle--mobile {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.mobile-menu .audience-toggle--mobile .audience-btn {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  text-align: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(148, 163, 184, 0.16);
  color: var(--fg);
  box-shadow: none;
}

.mobile-menu .audience-toggle--mobile .audience-btn:hover {
  background: rgba(148, 163, 184, 0.24);
}

.mobile-menu .audience-toggle--mobile .audience-btn[aria-pressed="true"] {
  color: #fff;
  background: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 72%, #0f172a 28%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
}

.mobile-login-btn {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.25;
  border-radius: 13px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
  text-shadow: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mobile-menu .mobile-menu-actions .mobile-login-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: none;
}

.mobile-login-btn::before,
.mobile-login-btn::after {
  content: none;
  display: none;
}

.mobile-login-btn:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  transform: none;
  box-shadow: none;
}

.mobile-menu .mobile-menu-actions .mobile-login-btn:hover,
.mobile-menu .mobile-menu-actions .mobile-login-btn:focus {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  box-shadow: none;
  outline-color: var(--primary-600);
}

.mobile-login-btn:active {
  background: var(--primary);
  border-color: var(--primary);
  transform: none;
  box-shadow: none;
}

.mobile-menu .mobile-menu-actions .mobile-login-btn:active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: none;
}

.mobile-login-btn svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 20px;
  height: 20px;
}

.mobile-login-btn:hover svg {
  transform: none;
}

/* Hide mobile menu by default on all screen sizes */
.mobile-menu[hidden] { 
  display: none !important; 
  opacity: 0 !important;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; 
  bottom: 16px; 
  left: 16px; 
  right: 16px; 
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46) 40%, rgba(255, 255, 255, 0.28) 100%); 
  border: 1px solid rgba(255, 255, 255, 0.55); 
  border-radius: 12px; 
  padding: 16px; 
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -1px 0 rgba(255, 255, 255, 0.25) inset; 
  z-index: 1100;
  display: flex; 
  flex-direction: column;
  align-items: stretch; 
  gap: 12px; 
  max-width: 600px; 
  margin: 0 auto; 
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  backdrop-filter: blur(30px) saturate(160%) contrast(1.05);
  -webkit-backdrop-filter: blur(30px) saturate(160%) contrast(1.05);
  isolation: isolate;
  animation: cookieBannerIn 0.45s ease both;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    opacity 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}


.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.cookie-banner::after {
  content: '';
  position: absolute;
  top: -35%;
  left: 0;
  width: 100%;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.cookie-banner:hover {
  transform: scale(1.01);
  backdrop-filter: blur(34px) saturate(175%) contrast(1.08);
  -webkit-backdrop-filter: blur(34px) saturate(175%) contrast(1.08);
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 -1px 0 rgba(255, 255, 255, 0.3) inset;
}

.cookie-banner > * {
  position: relative;
  z-index: 1;
}

.cookie-banner p { 
  margin: 0; 
  font-size: 14px; 
  color: var(--fg);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cookie-banner a { 
  color: var(--primary); 
  text-decoration: none; 
}

.cookie-banner a:hover { 
  text-decoration: underline; 
}

.cookie-banner .actions { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; 
  align-items: stretch; 
  min-width: 0;
}

.cookie-banner .btn { 
  font-size: 14px; 
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  height: 100%;
  align-self: stretch;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cookie-banner .btn::before,
.cookie-banner .btn::after {
  z-index: -1;
  pointer-events: none;
}

.cookie-banner .btn-primary {
  color: white !important;
}

.cookie-banner .btn-secondary {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.28);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.cookie-banner .btn-secondary:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
  color: #0b1220;
  transform: scale(1.01);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.cookie-banner .btn-secondary:active {
  transform: scale(1);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

body.theme-dark .cookie-banner {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.6) 45%, rgba(15, 23, 42, 0.5) 100%);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(148, 163, 184, 0.3) inset,
    0 -1px 0 rgba(15, 23, 42, 0.45) inset;
  color: #f8fafc;
}

body.theme-dark .cookie-banner p {
  color: #f8fafc;
}

body.theme-dark .cookie-banner .btn-secondary {
  background: transparent;
  border-color: rgba(226, 232, 240, 0.4);
  color: rgba(226, 232, 240, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

body.theme-dark .cookie-banner .btn-secondary:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(226, 232, 240, 0.6);
  color: #f8fafc;
}

body.theme-dark .cookie-banner::before {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.4), rgba(148, 163, 184, 0.12) 55%, rgba(15, 23, 42, 0) 100%);
  opacity: 0.45;
}

body.theme-dark .cookie-banner::after {
  background: radial-gradient(60% 60% at 50% 0%, rgba(148, 163, 184, 0.4), rgba(15, 23, 42, 0) 70%);
  opacity: 0.35;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cookie-banner {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }

  body.theme-dark .cookie-banner {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }

  .cookie-banner::before,
  .cookie-banner::after {
    display: none;
  }
}

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

@keyframes cookieBannerIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    backdrop-filter: blur(18px) saturate(140%) contrast(1.02);
    -webkit-backdrop-filter: blur(18px) saturate(140%) contrast(1.02);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(30px) saturate(160%) contrast(1.05);
    -webkit-backdrop-filter: blur(30px) saturate(160%) contrast(1.05);
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    top: auto;
    max-width: none;
    gap: 12px;
  }

  .cookie-banner p {
    font-size: 13px;
  }

  .cookie-banner .actions {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }

  .cookie-banner .btn {
    text-align: center;
  }

  .cookie-banner .btn-icon {
    flex: 0 0 auto;
    align-self: flex-end;
  }
}

@media (pointer: coarse) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: calc(16px + var(--safe-bottom, 0px));
    border-radius: 14px 14px 0 0;
  }
}

/* Contact Floating Button */
.contact-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 230;
  display: none;
  pointer-events: none;
  font-family: inherit;
}

.contact-fab__link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-fab__link::before {
  content: none;
}

.contact-fab__link > * {
  position: relative;
  z-index: 1;
}

.contact-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.contact-fab__icon img {
  width: 28px;
  height: 28px;
}

.contact-fab__link:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.38);
}

.contact-fab__link:active {
  transform: scale(1.01);
}

/* Pricing (tariff) cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  align-items: stretch; /* equalize card heights within each row */
}

.pricing-layout {
  width: 100%;
  position: relative;
}

.pricing-layout[data-mobile-full="true"] {
  width: 100%;
  margin-left: 0;
}

.pricing-layout__spacer {
  pointer-events: none;
}

.pricing-grid-holder {
  width: 100%;
  position: relative;
  overflow: visible;
}

.pricing-grid.package-grid {
  overflow: visible;
}

.pricing-layout__aside {
  position: static;
  width: 100%;
  margin-top: 20px;
  display: block;
  pointer-events: auto;
}

.pricing-layout__aside[data-pricing-arrow][hidden],
.pricing-layout__aside[data-pricing-arrow].is-hidden {
  display: none !important;
}

.pricing-all-mobile {
  display: none;
  margin: 32px auto 0;
  width: min(100%, 320px);
  text-align: center;
}

.pricing-all-mobile .btn-all-tariffs {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  padding: 16px 24px;
  font-size: 15px;
  
  /* Градиентный фон - перекрываем btn-secondary */
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%) !important;
  background-size: 200% 200%;
  border: none !important;
  color: #fff !important;
  border-radius: 12px;
  
  /* Тени и эффекты */
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35),
              0 4px 12px rgba(37, 99, 235, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  
  /* Анимации */
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradientShift 3s ease infinite;
}

/* Анимация градиента */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Эффект блеска при наведении */
.pricing-all-mobile .btn-all-tariffs::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  z-index: 1;
}

.pricing-all-mobile .btn-all-tariffs:hover::before {
  left: 150%;
}

/* Эффект при наведении */
.pricing-all-mobile .btn-all-tariffs:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45),
              0 6px 16px rgba(37, 99, 235, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
  color: #fff !important;
  border: none !important;
}

/* Активное состояние */
.pricing-all-mobile .btn-all-tariffs:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Иконка стрелки */
.pricing-all-mobile .btn-all-tariffs::after {
  content: '→';
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pricing-all-mobile .btn-all-tariffs:hover::after {
  transform: translateX(4px);
}

/* Текст и содержимое поверх эффектов */
.pricing-all-mobile .btn-all-tariffs > * {
  position: relative;
  z-index: 2;
}

.tariff-shelf {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  padding: 14px 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  font-weight: 400;
}

.tariff-shelf__copy {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding-left: 33px;
}

.tariff-shelf__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.tariff-shelf__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.tariff-shelf__btn {
  grid-column: 3;
  box-sizing: border-box;
  width: calc(100% - 66px);
  margin-inline: auto;
  min-height: 52px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tariff-shelf__btn::before,
.tariff-shelf__btn::after {
  content: none;
}

.tariff-shelf__btn:hover,
.tariff-shelf__btn:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
  border: none;
  color: #fff;
  transform: none;
  letter-spacing: 0.02em;
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.package-grid {
  align-items: stretch;
  gap: 22px;
  padding: 12px 4px 8px;
  overflow: visible;
}

.mts-bonus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  margin-top: 36px;
  padding: 28px 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #e30611 0%, #c4050e 48%, #8f040c 100%);
  color: #fff;
  box-shadow:
    0 22px 48px rgba(227, 6, 17, 0.28),
    0 8px 18px rgba(15, 23, 42, 0.12);
}

.mts-bonus-banner__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mts-bonus-banner__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.mts-bonus-banner__text {
  margin: 0;
  max-width: 48rem;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.mts-bonus-banner__action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.mts-bonus-banner__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
}

.mts-bonus-banner__price strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.mts-bonus-banner__price span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.mts-bonus-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mts-bonus-banner__btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .mts-bonus-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 28px;
    padding: 24px 22px;
  }

  .mts-bonus-banner__title {
    font-size: 22px;
  }

  .mts-bonus-banner__action {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .mts-bonus-banner__btn {
    width: 100%;
  }

  .mts-bonus-banner__price strong {
    font-size: 36px;
  }
}

.package-card {
  --package-accent: #2563eb;
  --package-accent-soft: rgba(37, 99, 235, 0.12);
  --package-divider: rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: visible;
  padding: 28px 26px 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--fg);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.package-card--base:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.1);
}

.package-card--promo {
  --package-accent: #ea580c;
  --package-accent-soft: rgba(234, 88, 12, 0.12);
  --package-on-accent: #ffffff;
  --package-accent-rgb: 234, 88, 12;
  z-index: 10;
  transform: scale(1.05);
  border: 1.5px solid rgba(234, 88, 12, 0.35);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fff7ed 100%);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(234, 88, 12, 0.06);
}

.package-card--promo:hover {
  transform: scale(1.06) translateY(-2px);
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow:
    0 28px 52px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(234, 88, 12, 0.08);
}

.package-card--newyear {
  --package-accent: #c41e3a;
  --package-accent-soft: rgba(196, 30, 58, 0.18);
  --package-on-accent: #ffffff;
  --package-accent-rgb: 196, 30, 58;
  border: 1.5px solid rgba(251, 146, 60, 0.45);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.22) 0 1.5px, transparent 3px),
    radial-gradient(circle at 34% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 68%, rgba(255, 255, 255, 0.24) 0 1px, transparent 2px),
    linear-gradient(165deg, #0b1f3a 0%, #142848 52%, #1a2038 100%);
  color: #f8fafc;
  box-shadow:
    0 26px 56px rgba(11, 31, 58, 0.36),
    0 0 0 1px rgba(251, 146, 60, 0.1);
}

.package-card--newyear:hover {
  border-color: rgba(251, 146, 60, 0.6);
  box-shadow:
    0 32px 64px rgba(11, 31, 58, 0.42),
    0 0 0 1px rgba(251, 146, 60, 0.14);
}

.package-card__snow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
}

.package-card__snow span {
  position: absolute;
  top: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  animation: package-snowfall 7s linear infinite;
}

.package-card__snow span:nth-child(1) { left: 12%; animation-duration: 6.5s; animation-delay: 0s; }
.package-card__snow span:nth-child(2) { left: 28%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: 1.2s; }
.package-card__snow span:nth-child(3) { left: 52%; animation-duration: 7.2s; animation-delay: 0.6s; }
.package-card__snow span:nth-child(4) { left: 70%; width: 5px; height: 5px; animation-duration: 9s; animation-delay: 1.8s; }
.package-card__snow span:nth-child(5) { left: 88%; animation-duration: 6.8s; animation-delay: 0.3s; }

@keyframes package-snowfall {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(420px) translateX(18px); opacity: 0; }
}

.package-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  max-width: 48%;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--package-badge-bg, var(--package-accent, #2563eb));
  color: var(--package-badge-fg, var(--package-on-accent, #fff));
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-align: center;
  box-shadow:
    0 10px 22px rgba(var(--package-accent-rgb, 37, 99, 235), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.package-card__badge--promo {
  top: -16px;
  right: -12px;
  max-width: none;
  padding: 12px 16px 10px;
  border-radius: 18px 18px 18px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, #ef4444 0%, #e11d48 55%, #be123c 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    0 14px 28px rgba(190, 18, 60, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: rotate(8deg);
}

.package-card__badge--newyear {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, #f43f5e 0%, #e11d48 48%, #9f1239 100%);
  color: #fff;
  box-shadow:
    0 14px 28px rgba(159, 18, 57, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.package-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 72px;
}

.package-card--promo .package-card__header {
  padding-right: 88px;
}

.package-card__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--fg);
}

.package-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.package-card__benefits {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.package-card__benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--package-divider);
  background: transparent;
  border-radius: 0;
}

.package-card__benefit:first-child {
  padding-top: 2px;
}

.package-card__benefit:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.package-card__benefit-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.package-card__benefit-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.package-card__benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--package-accent, #2563eb);
  background: var(--package-accent-soft, rgba(37, 99, 235, 0.12));
  flex-shrink: 0;
}

.package-card__benefit-icon svg {
  display: block;
}

.package-card--newyear .package-card__benefit-icon {
  color: #f8e7a1;
  background: rgba(248, 231, 161, 0.14);
}

.package-card__benefit-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.package-card__benefit-value {
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--fg);
}

.package-card__benefit--internet .package-card__benefit-value {
  font-size: 52px;
}

.package-card__benefit--television .package-card__benefit-value {
  font-size: 46px;
}

.package-card__benefit-unit {
  font-size: 15px;
  color: var(--muted);
}

.package-card__benefit-note {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.package-card__speed-meter {
  width: 100%;
  height: 5px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.package-card__speed-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #2563eb 55%, #7c3aed);
}

.package-card--promo .package-card__speed-meter-fill {
  background: linear-gradient(90deg, #fb923c, #ef4444 60%, #a855f7);
}

.package-card--newyear .package-card__header,
.package-card--newyear .package-card__benefits,
.package-card--newyear .package-card__footer {
  position: relative;
  z-index: 1;
}

.package-card--newyear .package-card__title,
.package-card--newyear .package-card__benefit-value,
.package-card--newyear .package-card__price-row strong {
  color: #fff7ed;
}

.package-card--newyear .package-card__desc,
.package-card--newyear .package-card__benefit-eyebrow,
.package-card--newyear .package-card__benefit-unit,
.package-card--newyear .package-card__benefit-note,
.package-card--newyear .package-card__price-row small {
  color: rgba(226, 232, 240, 0.82);
}

.package-card--newyear .package-card__benefit {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.package-card--newyear .package-card__speed-meter {
  background: rgba(255, 255, 255, 0.14);
}

.package-card--newyear .package-card__speed-meter-fill {
  background: linear-gradient(90deg, #f8e7a1, #d4af37 45%, #c41e3a);
}

.package-card--newyear .package-card__price-old {
  color: rgba(226, 232, 240, 0.7);
}

.package-card--newyear .package-card__price-row strong {
  color: #f8e7a1;
}

.package-card--newyear .package-card__cta--promo {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
  box-shadow: 0 16px 32px rgba(196, 30, 58, 0.34);
}

.package-card--newyear .package-card__cta--promo:hover {
  background: #9f1239;
  border-color: #9f1239;
}

.package-card__stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.package-card__stickers--brands {
  margin-top: 8px;
}

.package-card__quality,
.package-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.package-card__quality strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.package-card__quality--hd {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-color: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

.package-card__quality--uhd {
  background: linear-gradient(135deg, #f5d0fe, #fae8ff);
  border-color: rgba(168, 85, 247, 0.25);
  color: #7e22ce;
}

.package-card__brand {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-card__brand--logo {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.package-card__brand-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
}

.package-card--newyear .package-card__brand--logo {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.package-card__brand--start:not(.package-card__brand--logo) {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: #fff;
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.28);
}

.package-card__brand--wink:not(.package-card__brand--logo) {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.28);
}

.package-card__brand--premier:not(.package-card__brand--logo) {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.28);
}

.package-card__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
}

.package-card__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.package-card__price-old-wrap {
  display: flex;
  overflow: visible;
}

.package-card__price-old {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow: visible;
}

.package-card__price-old .currency-symbol {
  font-size: 1em;
  vertical-align: baseline;
}

.package-card__price-old .currency-symbol__svg,
.package-card__price-old .currency-symbol__img {
  width: 0.78em;
  height: 0.78em;
  max-width: 0.78em;
  max-height: 0.78em;
}

.package-card__price-old::after {
  content: '';
  position: absolute;
  left: -2%;
  top: 52%;
  width: 104%;
  height: 1.5px;
  background: #ef4444;
  transform: rotate(-8deg);
  border-radius: 999px;
  pointer-events: none;
}

.package-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.package-card__price-row strong {
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--fg);
}

.package-card--promo .package-card__price-row strong {
  font-size: 56px;
  color: #ea580c;
}

.package-card__price-row small {
  color: var(--muted);
  font-size: 15px;
}

.package-card__cta {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* Disable shared .btn shine overlays if class is added later. */
.package-card__cta::before,
.package-card__cta::after {
  content: none !important;
  display: none !important;
}

.package-card__cta--quiet {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

.package-card__cta--quiet:hover,
.package-card--base:hover .package-card__cta--quiet {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.package-card__cta--promo {
  background: var(--package-accent, #ef4444);
  border-color: var(--package-accent, #ef4444);
  color: #fff;
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

.package-card__cta--promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.36);
}

@media (max-width: 980px) {
  .package-card--promo {
    transform: none;
  }

  .package-card--promo:hover {
    transform: translateY(-2px);
  }

  .package-card__badge--promo {
    top: -12px;
    right: 12px;
    transform: rotate(4deg);
  }

  .package-card__benefit--internet .package-card__benefit-value,
  .package-card__benefit--television .package-card__benefit-value {
    font-size: 40px;
  }

  .package-card--promo .package-card__price-row strong {
    font-size: 48px;
  }
}

.app-form-modal__package-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
}

.app-form-modal__package-summary h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--fg);
}

.app-form-modal__package-summary ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.app-form-modal__package-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 4px 0;
}

.app-form-modal__package-total {
  margin: 0;
  font-size: 15px;
}


/* Science Gothic is only loaded at 400, so heavier weights blur. */
#services,
#services * {
  font-weight: 400 !important;
}

#services .package-card__benefit-value,
#services .package-card__price-row strong,
#services .package-card__quality strong,
#services .package-card__brand,
#services .mts-bonus-banner__title,
#services .mts-bonus-banner__price strong {
  font-weight: 700 !important;
}

#services .package-card__badge,
#services .package-card__badge--promo,
#services .package-card__badge--newyear {
  font-weight: 400 !important;
}

.tariff-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,.08);
  transition: box-shadow .2s ease, border-color .2s ease;
  min-height: 100%;
}

.tariff-card:hover {
  box-shadow: 0 24px 52px rgba(0,0,0,.12), 0 0 0 4px rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.35);
}

.tariff-featured {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), #fff 45%);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 18px 48px rgba(16, 185, 129, 0.25);
  opacity: 0.93;
}

.tariff-featured:hover {
  opacity: 0.98;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 24px 52px rgba(16, 185, 129, 0.35), 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.tariff-badge {
  position: absolute;
  top: -10px; /* overlap the card edge */
  right: 14px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(37,99,235,0.25);
  transform: rotate(-4deg);
  z-index: 3;
  pointer-events: none; /* decorative */
}

/* Badge position and color variants */
.tariff-badge--left { left: 14px; right: auto; }
.tariff-badge--right { right: 14px; left: auto; }
.tariff-badge--popular { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 10px 24px rgba(5,150,105,0.25); }
.tariff-badge--recommended { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 10px 24px rgba(217,119,6,0.25); }

/* Auto color for known cards */
.tariff-card.tariff-featured .tariff-badge { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 10px 24px rgba(5,150,105,0.25); }
.tariff-card--popular {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.9), #fff 45%);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.25);
  opacity: 0.93;
}

.tariff-card--popular:hover {
  opacity: 0.98;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 24px 52px rgba(245, 158, 11, 0.35), 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.tariff-card--popular .tariff-badge {
  transform: rotate(-2deg);
}





.tariff-card--entry {
  opacity: 0.85;
}

.tariff-card--entry .tariff-title {
  font-weight: 600;
}

.tariff-card--entry:hover {
  opacity: 0.95;
}
.tariff-card[data-plan="mega200"] .tariff-badge { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 10px 24px rgba(217,119,6,0.25); }

.tariff-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.tariff-speed {
  font-size: 16px;
  color: var(--muted);
}
.tariff-speed span {
  display: inline-block;
  font-size: 52px;
  line-height: 1;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-right: 8px;
}

/* Highlight the speed number for the Mega 500 plan in green */
.tariff-card[data-plan="mega500"] .tariff-speed span {
  color: #059669;
}

/* Highlight the speed number for the Mega 200 plan in gold */
.tariff-card[data-plan="mega200"] .tariff-speed span {
  color: #d97706;
}

.tariff-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  color: var(--muted);
  min-height: 40px; /* keep price row aligned */
}

.price-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.bundle-extras {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(37,99,235,0.18);
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(59,130,246,0.16));
}

/* Bundle extras на зеленой карточке */
.tariff-card.tariff-featured .bundle-extras {
  border: 1px solid rgba(16,185,129,0.18);
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(5,150,105,0.16));
}

.tariff-card.tariff-featured .chip-soft {
  background: rgba(255,255,255,0.85);
  border-color: rgba(16,185,129,0.32);
  color: #059669;
}

/* Bundle extras на золотой карточке */
.tariff-card.tariff-card--popular .bundle-extras {
  border: 1px solid rgba(245,158,11,0.18);
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(217,119,6,0.16));
}

.tariff-card.tariff-card--popular .chip-soft {
  background: rgba(255,255,255,0.85);
  border-color: rgba(245,158,11,0.32);
  color: #d97706;
}

/* Ensure hidden attribute actually hides bundle extras despite author styles */
.bundle-extras[hidden] { display: none !important; }

.bundle-extras--disabled { border-style: dashed; border-color: rgba(148,163,184,0.6); background: linear-gradient(135deg, rgba(148,163,184,0.12), rgba(226,232,240,0.18)); color: #64748b; }

/* .bundle-extra__price removed per new UI (no price line inside bundle extras) */

.bundle-extra__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bundle-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 0;
  transition: opacity .2s ease;
}

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

.bundle-overlay__dialog {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  max-width: 680px;
  width: min(90vw, 640px);
  padding: 32px 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(59,130,246,0.22));
  color: var(--fg);
  box-shadow: 0 28px 64px rgba(15,23,42,0.35);
}

.bundle-overlay__media {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255,255,255,0.45);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.35);
}

.bundle-overlay__body {
  display: grid;
  gap: 16px;
}

.bundle-overlay__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.bundle-overlay__title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bundle-overlay__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.bundle-overlay__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bundle-overlay__action {
  justify-self: flex-start;
}

.bundle-overlay__skip {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  cursor: pointer;
}

.bundle-overlay__skip:hover {
  color: #dbeafe;
}

.bundle-dock {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 24px;
  border: 1px solid rgba(37,99,235,0.18);
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(59,130,246,0.14));
  color: var(--fg);
  box-shadow: 0 16px 44px rgba(15,23,42,0.14);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .2s ease, transform .2s ease;
}

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

.bundle-dock__media {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255,255,255,0.5);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.28);
}

.bundle-dock__body {
  display: grid;
  gap: 10px;
}

.bundle-dock__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.bundle-dock__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.bundle-dock__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 560px;
}

.bundle-dock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-soft {
  background: rgba(255,255,255,0.85);
  border-color: rgba(37,99,235,0.32);
  color: var(--primary);
}

/* interaction area at the bottom of tariff cards */
.tariff-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.antivirus-grid {
  margin-top: 28px;
  display: block;
}

.antivirus-card {
  border: 1px solid rgba(0, 168, 142, 0.15);
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 253, 250, 0.85) 100%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 
    0 8px 32px rgba(0, 168, 142, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 0 rgba(0, 168, 142, 0.05);
  display: flex;
  flex-direction: column;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.antivirus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 168, 142, 0.03) 0%, 
    rgba(0, 168, 142, 0.01) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  opacity: 1;
  border-radius: 24px;
}

.antivirus-card:hover {
  box-shadow: 
    0 20px 60px rgba(0, 168, 142, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 0 rgba(0, 168, 142, 0.2);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(236, 253, 245, 0.9) 100%);
  border-color: rgba(0, 168, 142, 0.3);
}

.antivirus-head {
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.antivirus-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, 
    #00A88E 0%, 
    #00C9A7 100%);
  box-shadow: 
    0 4px 20px rgba(0, 168, 142, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  z-index: 2;
}

.antivirus-head h3,
.antivirus-head h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.antivirus-card--with-chip .antivirus-head {
  padding-right: 128px;
}

.antivirus-text {
  margin: 0 0 12px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Стили для жирного текста в описании антивируса - зеленый цвет */
.antivirus-card .antivirus-text strong,
.antivirus-card .antivirus-text b,
.antivirus-card .antivirus-text p strong,
.antivirus-card .antivirus-text p b,
.antivirus-card .antivirus-text div strong,
.antivirus-card .antivirus-text div b,
.antivirus-card .antivirus-text span strong,
.antivirus-card .antivirus-text span b,
.antivirus-card .antivirus-text * strong,
.antivirus-card .antivirus-text * b,
.antivirus-card .antivirus-list strong,
.antivirus-card .antivirus-list b,
.antivirus-card .antivirus-list li strong,
.antivirus-card .antivirus-list li b,
.antivirus-card .antivirus-list li * strong,
.antivirus-card .antivirus-list li * b {
  color: #00A88E !important;
  font-weight: 700 !important;
}

/* Дополнительные стили для всех strong/b внутри карточки антивируса */
.antivirus-card strong,
.antivirus-card b,
.antivirus-card * strong,
.antivirus-card * b {
  color: #00A88E !important;
}

/* Переопределяем любые inline стили для strong/b */
.antivirus-card strong[style*="color"],
.antivirus-card b[style*="color"],
.antivirus-card * strong[style*="color"],
.antivirus-card * b[style*="color"],
.antivirus-card p strong[style*="color"],
.antivirus-card p b[style*="color"],
.antivirus-card div strong[style*="color"],
.antivirus-card div b[style*="color"],
.antivirus-card span strong[style*="color"],
.antivirus-card span b[style*="color"] {
  color: #00A88E !important;
}

/* Универсальный селектор для всех strong/b в карточке - максимальный приоритет */
.antivirus-card *:not(.antivirus-chip):not(.antivirus-link):not(.btn) strong,
.antivirus-card *:not(.antivirus-chip):not(.antivirus-link):not(.btn) b {
  color: #00A88E !important;
}

.antivirus-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Специфичные стили для strong/b в списке преимуществ */
.antivirus-list li strong,
.antivirus-list li b,
.antivirus-list li * strong,
.antivirus-list li * b {
  color: #00A88E !important;
  font-weight: 700 !important;
}

.antivirus-list li {
  position: relative;
  padding-left: 28px;
}

.antivirus-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, 
    #00A88E, 
    #00C9A7);
  border-radius: 6px;
  box-shadow: 
    0 2px 12px rgba(0, 168, 142, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.antivirus-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.antivirus-actions--with-price {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.antivirus-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.antivirus-actions .btn {
  flex: 1;
  font-weight: 400;
  background: linear-gradient(135deg, #00A88E 0%, #00C9A7 100%);
  box-shadow: 
    0 6px 24px rgba(0, 168, 142, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white !important;
  position: relative;
  z-index: 1;
}

.antivirus-actions .btn::before,
.antivirus-actions .btn::after {
  z-index: -1;
  pointer-events: none;
}

.antivirus-actions .btn:hover {
  background: linear-gradient(135deg, #00C9A7 0%, #00E5BF 100%) !important;
  box-shadow: 
    0 10px 32px rgba(0, 168, 142, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.antivirus-actions .btn-primary:hover {
  background: linear-gradient(135deg, #00C9A7 0%, #00E5BF 100%) !important;
  color: white !important;
}

.antivirus-actions .btn-primary:hover::before,
.antivirus-actions .btn-primary:hover::after {
  display: none !important;
}

.antivirus-link {
  font-weight: 400;
  font-size: 14px;
  color: #00A88E;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.antivirus-link:hover {
  color: #00C9A7;
  background: rgba(0, 168, 142, 0.1);
}

.antivirus-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  flex-shrink: 0;
}

.antivirus-price-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.antivirus-price-currency {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.antivirus-provider-group {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid rgba(0, 168, 142, 0.15);
}

.antivirus-provider-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.antivirus-provider-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.antivirus-provider-logo {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.antivirus-provider-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.02em;
}

.antivirus-provider-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.antivirus-provider-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.antivirus-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}

@media (max-width: 768px) {
  .antivirus-provider-services {
    grid-template-columns: 1fr;
  }
  
  .antivirus-provider-name {
    font-size: 24px;
  }
}

.addon-callout[hidden] {
  display: none !important;
}

.addon-callout {
  margin-top: 32px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 32px 64px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 8px 32px rgba(37, 99, 235, 0.1);
  display: grid;
  gap: 24px;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.addon-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.08) 0%, 
    rgba(59, 130, 246, 0.12) 50%, 
    rgba(147, 197, 253, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.addon-callout > * {
  position: relative;
  z-index: 2;
}

.addon-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.addon-content--single {
  grid-template-columns: 1fr;
}

/* Header layout: text left, price right */
.addon-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 10px;
  position: relative;
}

.addon-head__text { display: grid; grid-template-rows: auto auto 1fr; gap: 4px; }
.addon-head__text h3 { margin: 0 0 4px; }
.addon-head__text p { margin: 0 0 12px; }

@media (max-width: 860px) {
  .addon-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Right head column: price + CTA */
.addon-head__side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

@media (max-width: 860px) {
  .addon-head__side { justify-items: start; }
}

.addon-head__side .btn { justify-self: end; width: 100%; }

@media (max-width: 860px) {
  .addon-head__side .btn { justify-self: start; width: 100%; }
}

.addon-cta-wrapper {
  display: grid;
  gap: 8px;
  width: 100%;
}

.addon-cta-mobile-wrapper {
  display: none;
  gap: 8px;
  width: 100%;
}

.addon-cta-detail {
  text-align: center;
  text-decoration: none;
  color: var(--accent, #10b981);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, opacity 0.2s;
  display: block;
}

.addon-cta-detail-mobile {
  text-align: center;
  text-decoration: none;
  color: var(--accent, #10b981);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, opacity 0.2s;
  display: none;
}

.addon-cta-detail:hover,
.addon-cta-detail-mobile:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent, #10b981);
}

/* Price chip next to heading */
.addon-price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,.28);
  background: rgba(16,185,129,.10);
}

.addon-price-chip__value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #065f46;
}

.addon-price-chip__unit {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
}

.addon-price-chip__note {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(16,185,129,.9);
}

/* Two-column layout: features left, price right */
.addon-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-top: 12px;
}

@media (max-width: 860px) {
  .addon-layout { grid-template-columns: 1fr; }
}

.addon-features {
  display: grid;
  gap: 16px 24px;
  position: relative;
  padding-left: 0;
  align-items: stretch;
  height: 100%;
  margin-top: 0;
}

@media (min-width: 860px) {
  .addon-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* removed vertical accent for cleaner inline look */

.addon-line {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  height: 100%;
}

.addon-line + .addon-line { border-top: 0; padding-top: 0; margin-top: 0; }

.addon-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  margin-top: 0;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 6px 16px rgba(37,99,235,0.16);
  display: grid;
  place-items: center;
  color: #fff;
}

.addon-dot svg { width: 20px; height: 20px; display: block; }

.addon-line__text { display: grid; gap: 2px; }
.addon-line__text strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.addon-line__text span {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--fg);
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.addon-line:hover .addon-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(59,130,246,0.10);
}

/* no card hover for inner items */

/* Accent colors per line without changing content */
.addon-features .addon-line:nth-child(1) .addon-dot {
  background: linear-gradient(135deg, #38bdf8, #60a5fa);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.14);
}

.addon-features .addon-line:nth-child(1) .addon-line__text strong {
  color: #0284c7;
}

.addon-features .addon-line:nth-child(2) .addon-dot {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  box-shadow: 0 0 0 4px rgba(129,140,248,0.14);
}

.addon-features .addon-line:nth-child(2) .addon-line__text strong {
  color: #956cd5;
}

/* Normalize title color for consistency */
.addon-features .addon-line .addon-line__text strong { color: var(--fg); }

/* removed shine effect for cleaner look */

.addon-price-aside {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  backdrop-filter: blur(6px);
  text-align: center;
  min-width: 240px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.15);
  align-self: start;
}

@media (max-width: 860px) {
  .addon-price-aside { text-align: center; min-width: auto; align-self: start; }
}

@media (min-width: 860px) {
  .addon-price-aside { margin-top: 0; }
}

.addon-price-aside__value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #10b981, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 22px rgba(16,185,129,0.25);
}

.addon-price-aside__unit {
  font-size: 14px;
  font-weight: 700;
  color: rgba(5,46,22,0.85);
}

.addon-price-aside__note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(16,185,129,0.9);
}
.addon-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.1) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: var(--primary);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(37, 99, 235, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.addon-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.1) 0%, 
    rgba(59, 130, 246, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.addon-icon:hover {
  transform: scale(1.05);
  box-shadow: 
    0 12px 40px rgba(37, 99, 235, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.addon-icon:hover::before {
  opacity: 1;
}

.addon-body h3 {
  margin: 0 0 16px;
  font-size: 39px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.addon-body p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.addon-body ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Desktop defaults: show desktop CTA, hide mobile CTA */
.addon-cta { display: none; }
.addon-cta-desktop { display: inline-flex; }

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

.addon-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.addon-benefit {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: center;
  justify-items: center;
  padding: 26px 22px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18) 0%, rgba(148, 163, 184, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 20px 46px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.addon-benefit::before,
.addon-benefit::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.addon-benefit::before {
  background: radial-gradient(circle at top right, rgba(148, 163, 184, 0.24), transparent 60%);
  mix-blend-mode: screen;
  z-index: 0;
}

.addon-benefit::after {
  background: radial-gradient(circle at bottom left, rgba(71, 85, 105, 0.18), transparent 60%);
  mix-blend-mode: soft-light;
  z-index: 0;
}

.addon-benefit:hover {
  transform: scale(1.01);
  box-shadow:
    0 32px 68px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.addon-benefit:hover::before,
.addon-benefit:hover::after {
  opacity: 0.85;
}

.addon-benefit__label {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.24);
  color: rgba(226, 232, 240, 0.9);
  position: relative;
  z-index: 1;
}

.addon-benefit__label svg {
  width: 28px;
  height: 28px;
}

.addon-benefit__heading {
  display: grid;
  gap: 4px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.addon-benefit__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.88);
}

.addon-benefit__subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.9);
}

.addon-benefit__core {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.addon-benefit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 65%);
  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  opacity: 0.9;
  z-index: 0;
}

.addon-benefit__value {
  position: relative;
  z-index: 2;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #fff;
  text-shadow: 0 12px 38px rgba(15, 23, 42, 0.4);
}

.addon-benefit__symbol {
  position: absolute;
  z-index: 1;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.12);
  mix-blend-mode: multiply;
}

.addon-benefit__symbol svg {
  width: 100%;
  height: 100%;
}

.addon-benefit__cluster {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.addon-benefit__corner {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(224, 231, 255, 0.88) 100%);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  text-align: right;
  pointer-events: none;
  z-index: 2;
}

.addon-benefit__corner-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(15, 23, 42, 0.92);
}

.addon-benefit__corner-unit {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(71, 85, 105, 0.85);
}

.addon-benefit__marker {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.32);
  color: rgba(226, 232, 240, 0.92);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.addon-benefit__marker svg {
  width: 20px;
  height: 20px;
}

.addon-benefit__marker:hover {
  transform: scale(1.06);
  box-shadow: 0 20px 34px rgba(37, 99, 235, 0.25);
}

.addon-benefit--city::before {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 62%);
}

.addon-benefit--city .addon-benefit__label {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(59, 130, 246, 0.42) 100%);
  color: #0f172a;
}

.addon-benefit--city .addon-benefit__ring {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%);
  box-shadow:
    0 20px 40px rgba(56, 189, 248, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.addon-benefit--city .addon-benefit__marker {
  background: rgba(59, 130, 246, 0.22);
  color: #0f172a;
}

.addon-benefit--city .addon-benefit__symbol {
  color: rgba(37, 99, 235, 0.15);
}

.addon-benefit--city .addon-benefit__marker:hover {
  box-shadow: 0 20px 34px rgba(59, 130, 246, 0.28);
}

.addon-benefit--city .addon-benefit__title {
  color: rgba(14, 116, 144, 0.95);
}

.addon-benefit--city .addon-benefit__subtitle {
  color: rgba(56, 189, 248, 0.85);
}

.addon-benefit--longdistance::before {
  background: radial-gradient(circle at top right, rgba(129, 140, 248, 0.24), transparent 62%);
}

.addon-benefit--longdistance .addon-benefit__label {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.32) 0%, rgba(59, 130, 246, 0.38) 100%);
  color: #1e1b4b;
}

.addon-benefit--longdistance .addon-benefit__ring {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.38) 0%, transparent 70%);
  box-shadow:
    0 20px 40px rgba(129, 140, 248, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.addon-benefit--longdistance .addon-benefit__marker {
  background: rgba(129, 140, 248, 0.22);
  color: #1e1b4b;
}

.addon-benefit--longdistance .addon-benefit__symbol {
  color: rgba(129, 140, 248, 0.18);
}

.addon-benefit--longdistance .addon-benefit__marker:hover {
  box-shadow: 0 20px 34px rgba(129, 140, 248, 0.3);
}

.addon-benefit--longdistance .addon-benefit__title {
  color: rgba(67, 56, 202, 0.95);
}

.addon-benefit--longdistance .addon-benefit__subtitle {
  color: rgba(129, 140, 248, 0.85);
}

.addon-benefit--price::before {
  background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.26), transparent 62%);
}

.addon-benefit--price .addon-benefit__label {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(52, 211, 153, 0.42) 100%);
  color: #064e3b;
}

.addon-benefit--price .addon-benefit__ring {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.45) 0%, transparent 70%);
  box-shadow:
    0 20px 40px rgba(52, 211, 153, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.addon-benefit--price .addon-benefit__value {
  color: #052e16;
  text-shadow: 0 20px 40px rgba(15, 118, 110, 0.35);
}

.addon-benefit--price .addon-benefit__marker {
  background: rgba(16, 185, 129, 0.24);
  color: #064e3b;
}

.addon-benefit--price .addon-benefit__symbol {
  color: rgba(16, 185, 129, 0.28);
}

.addon-benefit--price .addon-benefit__marker:hover {
  box-shadow: 0 20px 34px rgba(16, 185, 129, 0.28);
}

.addon-benefit--price .addon-benefit__title {
  color: rgba(22, 101, 52, 0.95);
}

.addon-benefit--price .addon-benefit__subtitle {
  color: rgba(16, 185, 129, 0.85);
}

.addon-benefit--price .addon-benefit__corner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 253, 244, 0.92) 100%);
  box-shadow:
    0 18px 30px rgba(15, 118, 110, 0.28),
    0 0 0 1px rgba(209, 250, 229, 0.8) inset;
}

.addon-benefit--price .addon-benefit__corner-value {
  color: rgba(5, 46, 22, 0.95);
}

.addon-benefit--price .addon-benefit__corner-unit {
  color: rgba(16, 185, 129, 0.9);
}

@media (max-width: 680px) {
  .addon-benefit {
    padding: 22px 18px;
  }

  .addon-benefit__core {
    width: 120px;
    height: 120px;
  }

  .addon-benefit__value {
    font-size: 40px;
  }

  .addon-benefit__title {
    font-size: 14px;
  }

  .addon-benefit__subtitle {
    font-size: 11px;
  }

  .addon-benefit__marker {
    width: 38px;
    height: 38px;
  }

  .addon-benefit__corner {
    padding: 8px 12px;
    top: 14px;
    right: 14px;
  }

  .addon-benefit__corner-value {
    font-size: 18px;
  }
}

.addon-callout:hover {
  transform: scale(1.02);
  box-shadow: 
    0 48px 96px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 16px 48px rgba(37, 99, 235, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.addon-callout:hover::before {
  opacity: 1;
}

.addon-callout .btn {
  justify-self: start;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.1) 100%);
  color: var(--primary);
  backdrop-filter: blur(10px);
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 24px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.addon-callout .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.6s ease;
}

.addon-callout .btn:hover {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.9) 0%, 
    rgba(59, 130, 246, 0.9) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 
    0 16px 40px rgba(37, 99, 235, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.addon-callout .btn:hover::before {
  left: 100%;
}

/* Line variant: no glass card, just a clean inline presentation */
.addon-callout--line {
  margin-top: 28px;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.addon-callout--line::before,
.addon-callout--line::after {
  content: none;
}

.addon-callout--line .addon-content {
  align-items: center;
  gap: 20px;
  grid-template-columns: 1fr;
}

.addon-callout--line .addon-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(147,197,253,0.10));
  border: 1px solid rgba(59,130,246,0.25);
  color: #2563eb;
}

.addon-callout--line .addon-body h3 {
  margin-bottom: 12px;
  position: relative;
}

.addon-callout--line .addon-body h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,0.95), rgba(59,130,246,0.65));
}

/* Inline feature line (non-card) */
.addon-features-line {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex; /* override grid to flex */
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.addon-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

/* Dot separators between features on wide screens */
@media (min-width: 860px) {
  .addon-features-line { flex-wrap: nowrap; }
  .addon-feature + .addon-feature::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(148,163,184,0.6);
    margin: 0 6px 0 2px;
  }
}

.addon-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(147,197,253,0.10));
  border: 1px solid rgba(59,130,246,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.addon-feature:hover .addon-feature__icon {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,0.15);
}

.addon-feature__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Meta row: pills left, price right */
.addon-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 860px) {
  .addon-meta {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

.addon-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.addon-pill {
  --accent: #60a5fa;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
  position: relative;
}

.addon-pill::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

.addon-pill--city { --accent: #38bdf8; }
.addon-pill--longdistance { --accent: #818cf8; }

/* Plain features: text only */
.addon-features--plain .addon-feature {
  gap: 0;
}
.addon-features--plain .addon-feature__icon { display: none; }
.addon-features--plain .addon-feature__text strong { font-weight: 800; }

/* Bottom-aligned price container */
.addon-price-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .addon-price-row { justify-content: flex-start; }
}

/* Variant coloring for icons */
.addon-feature--city .addon-feature__icon {
  color: #0284c7; /* cyan-700 */
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(147,197,253,0.10));
  border-color: rgba(56,189,248,0.28);
}

.addon-feature--longdistance .addon-feature__icon {
  color: #6d28d9; /* violet-700 */
  background: linear-gradient(135deg, rgba(129,140,248,0.12), rgba(196,181,253,0.10));
  border-color: rgba(129,140,248,0.28);
}

.addon-feature__text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}

.addon-feature__text span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.addon-feature--price {
  justify-content: flex-start;
}

.addon-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.addon-price__value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #10b981, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.addon-price__unit {
  font-size: 14px;
  font-weight: 700;
  color: rgba(5,46,22,0.85);
}

.addon-price__note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(16,185,129,0.9);
}

.addon-feature--price .addon-price {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.28);
}

@media (max-width: 680px) {
  .addon-price__value {
    font-size: 28px;
  }
}

/* Minimal checklist layout */
.addon-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.addon-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.addon-tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.addon-li__text {
  display: grid;
  gap: 2px;
}

.addon-li__text strong {
  font-size: 15px;
  color: var(--fg);
}

.addon-li__text span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.addon-price-inline {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
}

.addon-price-inline__value {
  font-size: 24px;
  color: #065f46;
}

.addon-price-inline__unit {
  font-size: 14px;
  color: #065f46;
}

.addon-price-inline__note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(16, 185, 129, 0.9);
}

/* Accent tag row for benefits */
.addon-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.addon-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.addon-tag svg {
  color: currentColor;
}

.addon-tag--city {
  color: #0f172a;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
}

.addon-tag--longdistance {
  color: #1e1b4b;
  background: rgba(129, 140, 248, 0.18);
  border-color: rgba(129, 140, 248, 0.35);
}

/* Price block */
.addon-price-block {
  margin-top: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(52,211,153,0.10));
}

.addon-price-block__value {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #065f46;
}

.addon-price-block__unit {
  font-size: 14px;
  font-weight: 700;
  color: #065f46;
}

.addon-price-block__note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(16, 185, 129, 0.9);
}

@media (max-width: 680px) {
  .addon-price-block__value { font-size: 30px; }
}
.tariff-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

/* ensure the button fills the bottom of the action stack */
.tariff-actions .btn {
  min-height: 52px;
  font-size: 15px;
  letter-spacing: .015em;
}

/* Enhanced tariff UI */
.tariff-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tariff-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eef2ff;
  border: 1px solid #e5e7eb;
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(37,99,235,.12);
}

/* Иконка на зеленой карточке */
.tariff-card.tariff-featured .tariff-icon {
  background: #d1fae5;
  color: #059669;
  box-shadow: 0 6px 16px rgba(16,185,129,.12);
}

/* Иконка на золотой карточке */
.tariff-card.tariff-card--popular .tariff-icon {
  background: #fef3c7;
  color: #d97706;
  box-shadow: 0 6px 16px rgba(245,158,11,.12);
}

.tariff-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  min-height: calc(1.6em * 2.2); /* reserve space for up to two lines */
}

.tariff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 56px; /* keep chips area consistent height */
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24px;
  color: var(--fg);
}

.tariff-meter {
  --meter: 0%;
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.tariff-meter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--meter);
  background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 60%, #1d4ed8 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset;
  transition: width .4s ease;
}

/* Метр на зеленой карточке */
.tariff-card.tariff-featured .tariff-meter::before {
  background: linear-gradient(90deg, #10b981 0%, #059669 60%, #047857 100%);
}

/* Метр на золотой карточке */
.tariff-card.tariff-card--popular .tariff-meter::before {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 60%, #b45309 100%);
}

.meter-10 { --meter: 10%; }
.meter-20 { --meter: 20%; }
.meter-40 { --meter: 40%; }
.meter-60 { --meter: 60%; }
.meter-100 { --meter: 100%; }

.tariff-card .btn {
  width: 100%;
}

/* Гарантируем что текст кнопок всегда поверх эффектов */
.tariff-card .btn-primary {
  position: relative;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff !important;
  overflow: hidden;
}

/* Текст всегда поверх эффектов */
.tariff-card .btn-primary * {
  position: relative;
  z-index: 10;
}

/* Сбрасываем базовые стили для карточек тарифов */
.tariff-card .btn-primary::before {
  content: none;
}

/* Кнопка на стандартной карточке (Турбо) - синяя */
.tariff-card.tariff-card--entry .btn-primary {
  background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  background-size: 300% 300%;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ambientGlow 3s ease-in-out infinite;
}

/* Пульсирующее неоновое свечение по краям */
.tariff-card.tariff-card--entry .btn-primary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(45deg, #60a5fa, #3b82f6, #2563eb, #1d4ed8);
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
}

/* Расходящиеся волны */
.tariff-card.tariff-card--entry .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  opacity: 0;
  transform: scale(0);
  z-index: 0;
}

.tariff-card.tariff-card--entry .btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 35px rgba(37, 99, 235, 0.5),
              0 15px 50px rgba(59, 130, 246, 0.4),
              0 0 80px rgba(96, 165, 250, 0.3),
              inset 0 2px 5px rgba(255, 255, 255, 0.3);
  background-position: 100% 50%;
  letter-spacing: 0.05em;
}

/* Включаем неоновое свечение */
.tariff-card.tariff-card--entry .btn-primary:hover::before {
  opacity: 1;
}

/* Волны расходятся */
.tariff-card.tariff-card--entry .btn-primary:hover::after {
  animation: rippleWave 1s ease-out;
}

.tariff-card.tariff-card--entry .btn-primary:active {
  transform: scale(1);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Кнопка на зеленой карточке Мега 500 */
.tariff-card.tariff-featured .btn-primary {
  background: linear-gradient(135deg, #047857, #10b981, #34d399);
  background-size: 300% 300%;
  border: none;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ambientGlow 3s ease-in-out infinite;
}

/* Пульсирующее неоновое свечение по краям */
.tariff-card.tariff-featured .btn-primary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(45deg, #34d399, #10b981, #059669, #047857);
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
}

/* Расходящиеся волны */
.tariff-card.tariff-featured .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  opacity: 0;
  transform: scale(0);
  z-index: 0;
}

.tariff-card.tariff-featured .btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 35px rgba(5, 150, 105, 0.5),
              0 15px 50px rgba(16, 185, 129, 0.4),
              0 0 80px rgba(52, 211, 153, 0.3),
              inset 0 2px 5px rgba(255, 255, 255, 0.3);
  background-position: 100% 50%;
  letter-spacing: 0.05em;
}

/* Включаем неоновое свечение */
.tariff-card.tariff-featured .btn-primary:hover::before {
  opacity: 1;
}

/* Волны расходятся */
.tariff-card.tariff-featured .btn-primary:hover::after {
  animation: rippleWave 1s ease-out;
}

.tariff-card.tariff-featured .btn-primary:active {
  transform: scale(1);
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* Кнопка на золотой карточке Мега 200 */
.tariff-card.tariff-card--popular .btn-primary {
  background: linear-gradient(135deg, #b45309, #f59e0b, #fbbf24);
  background-size: 300% 300%;
  border: none;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ambientGlow 3s ease-in-out infinite;
}

/* Пульсирующее неоновое свечение по краям */
.tariff-card.tariff-card--popular .btn-primary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #b45309);
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
}

/* Расходящиеся волны */
.tariff-card.tariff-card--popular .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  opacity: 0;
  transform: scale(0);
  z-index: 0;
}

.tariff-card.tariff-card--popular .btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 35px rgba(217, 119, 6, 0.5),
              0 15px 50px rgba(245, 158, 11, 0.4),
              0 0 80px rgba(251, 191, 36, 0.3),
              inset 0 2px 5px rgba(255, 255, 255, 0.3);
  background-position: 100% 50%;
  letter-spacing: 0.05em;
}

/* Включаем неоновое свечение */
.tariff-card.tariff-card--popular .btn-primary:hover::before {
  opacity: 1;
}

/* Волны расходятся */
.tariff-card.tariff-card--popular .btn-primary:hover::after {
  animation: rippleWave 1s ease-out;
}

.tariff-card.tariff-card--popular .btn-primary:active {
  transform: scale(1);
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.tariff-card:hover .tariff-title {
  background: linear-gradient(180deg, var(--primary) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Заголовок зеленой карточки при наведении */
.tariff-card.tariff-featured:hover .tariff-title {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Заголовок золотой карточки при наведении */
.tariff-card.tariff-card--popular:hover .tariff-title {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tariff-card.tariff-featured {
  position: relative;
}

.tariff-card.tariff-featured::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(16,185,129,.12), transparent 70%);
  z-index: -1;
  filter: blur(8px);
}


.tariff-note {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
  display: grid;
  place-items: center;
  cursor: help;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tariff-note:hover,
.tariff-note:focus-visible {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #374151;
}

.tariff-note:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tariff-note::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 240px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(17,24,39,.96);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 12px 32px rgba(15,23,42,.26);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
}

.tariff-note:hover::after,
.tariff-note:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* === Bundle Switch - Меню переключения тарифов === */

.bundle-switch-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.bundle-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 2px 8px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bundle-switch__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

.bundle-switch__icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.bundle-switch__btn:hover {
  color: #334155;
  background: rgba(15, 23, 42, 0.03);
}

.bundle-switch__btn:hover .bundle-switch__icon {
  transform: scale(1.1);
}

.bundle-switch__btn.is-active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 
    0 2px 8px rgba(37, 99, 235, 0.2),
    0 6px 20px rgba(37, 99, 235, 0.25);
}

.bundle-switch__btn.is-active .bundle-switch__icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Кнопка пользовательского promo-раздела */
.bundle-switch__btn--promo,
.bundle-switch__btn--mts {
  --bundle-accent: #2563eb;
  --bundle-accent-rgb: 37, 99, 235;
  background: linear-gradient(
    135deg,
    rgba(var(--bundle-accent-rgb), 0.12) 0%,
    rgba(var(--bundle-accent-rgb), 0.07) 100%
  );
  color: var(--bundle-accent);
  border: 1px solid rgba(var(--bundle-accent-rgb), 0.32);
  padding: 11px 22px;
  overflow: visible;
}

.bundle-switch__btn--promo:hover,
.bundle-switch__btn--mts:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--bundle-accent-rgb), 0.18) 0%,
    rgba(var(--bundle-accent-rgb), 0.1) 100%
  );
  border-color: rgba(var(--bundle-accent-rgb), 0.44);
  color: var(--bundle-accent);
}

.bundle-switch__text {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
}

.bundle-switch__ip {
  display: inline-block;
  padding: 1px 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
  margin-left: 4px;
}

.bundle-switch__telcom {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-left: 3px;
}

.bundle-switch__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 4px 10px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  z-index: 10;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.bundle-switch__btn--promo .bundle-switch__badge,
.bundle-switch__btn--mts .bundle-switch__badge {
  background: var(--bundle-accent);
  color: var(--bundle-on-accent, #fff);
  box-shadow: 0 2px 8px rgba(var(--bundle-accent-rgb), 0.32);
}

.bundle-switch__btn--promo.is-active,
.bundle-switch__btn--mts.is-active {
  background: linear-gradient(
    135deg,
    rgba(var(--bundle-accent-rgb), 0.98) 0%,
    rgba(var(--bundle-accent-rgb), 0.86) 100%
  );
  color: #fff;
  border-color: rgba(var(--bundle-accent-rgb), 0.96);
  box-shadow: 
    0 2px 8px rgba(var(--bundle-accent-rgb), 0.25),
    0 6px 20px rgba(var(--bundle-accent-rgb), 0.34);
}

.bundle-switch__btn--promo.is-active .bundle-switch__text,
.bundle-switch__btn--mts.is-active .bundle-switch__text {
  color: #fff !important;
}

.bundle-switch__btn--promo.is-active .bundle-switch__telcom,
.bundle-switch__btn--mts.is-active .bundle-switch__telcom {
  color: #fff !important;
}

.bundle-switch__btn--promo.is-active .bundle-switch__badge,
.bundle-switch__btn--mts.is-active .bundle-switch__badge {
  background: #fff;
  color: var(--bundle-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Адаптивность */
@media (max-width: 768px) {
  .bundle-switch {
    gap: 4px;
    padding: 5px;
  }

  .bundle-switch__btn {
    padding: 10px 15px;
    font-size: 13px;
    gap: 6px;
  }

  .bundle-switch__icon {
    width: 15px;
    height: 15px;
  }

  .bundle-switch__btn--promo,
  .bundle-switch__btn--mts {
    padding: 10px 18px;
  }

  .bundle-switch__text {
    font-size: 13px;
  }

  .bundle-switch__ip {
    font-size: 13px;
    padding: 2px 5px;
  }

  .bundle-switch__telcom {
    font-size: 13px;
  }

  .bundle-switch__badge {
    top: -6px;
    right: -6px;
    padding: 3px 8px;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .bundle-switch {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 6px;
    padding: 8px;
  }

  .bundle-switch__btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 14px;
  }

  .bundle-switch__btn--promo,
  .bundle-switch__btn--mts {
    width: 100%;
    padding: 13px 20px;
  }
}

@media (max-width: 380px) {
  .bundle-switch {
    max-width: 260px;
  }

  .bundle-switch__btn {
    padding: 11px 15px;
    font-size: 13px;
  }

  .bundle-switch__icon {
    width: 14px;
    height: 14px;
  }

  .bundle-switch__text {
    font-size: 12px;
  }

  .bundle-switch__ip {
    font-size: 12px;
    padding: 1px 5px;
  }

  .bundle-switch__telcom {
    font-size: 12px;
  }
}

/* About */
.about {
  padding: clamp(88px, 10vw, 120px) 0;
  background: transparent;
  --container-max: min(1360px, 96vw);
}

.about-inner { display: grid; gap: 28px; }

.about-head h2 {
  color: var(--fg);
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.01em;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
}

.about-intro {
  display: grid;
  gap: 16px;
}

.about-intro p {
  margin: 0;
}

.about-intro ul {
  margin-top: 0;
}

.about-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

/* Minimal timeline accent for history */
.about-timeline {
  position: relative;
  margin-top: 10px;
  padding-left: 26px;
}

.timeline-item { position: relative; padding-bottom: 10px; }
.timeline-dot {
  position: absolute; left: 0; top: 6px;
  width: 10px; height: 10px; border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.22);
}
.timeline-line {
  position: absolute; left: 4px; top: 18px; bottom: -6px;
  width: 2px; background: linear-gradient(180deg, rgba(148,163,184,0.5), rgba(148,163,184,0));
}
.timeline-content { color: var(--muted); font-size: 14px; }

/* Accordion for services */
.about-services { display: grid; gap: 14px; }
.about-subtitle {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--fg);
}

.about-accordion { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.about-accordion__item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.about-accordion__item[open] {
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 16px 40px rgba(37,99,235,0.12);
}

.about-accordion__item summary {
  list-style: none; /* hide default marker */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  color: var(--fg);
}

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

.about-accordion__icon {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: #eef2ff;
  border: 1px solid #e5e7eb;
  color: var(--primary);
}

.about-accordion__text { font-weight: 600; letter-spacing: .01em; }

/* Custom chevron indicator */
.about-accordion__item summary::after {
  content: "›";
  display: inline-block;
  transform: rotate(90deg);
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.about-accordion__item[open] summary::after {
  transform: rotate(-90deg);
  color: var(--primary);
}

.about-accordion__panel {
  padding: 0 16px 14px 64px; /* align with icon */
  color: var(--muted);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .about-accordion__item,
  .about-accordion__item summary::after { transition: none; }
}

/* Background Settings Panel */
.bg-settings-panel {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-settings-panel[hidden] {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(100%);
}

.bg-settings-panel:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.bg-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.bg-settings-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.bg-settings-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.bg-settings-close:hover {
  background: rgba(37, 99, 235, 0.2);
  transform: scale(1.05);
}

.bg-settings-content {
  padding: 20px 24px 24px;
}

.bg-control-group {
  margin-bottom: 20px;
}

.bg-control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.bg-control-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 50px;
  text-align: center;
}

.bg-control-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(37, 99, 235, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.bg-control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.bg-control-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.bg-control-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.bg-control-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.bg-control-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.bg-control-btn {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.bg-control-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bg-control-reset {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.bg-control-reset:hover {
  background: #dc2626;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bg-settings-panel {
    right: 10px;
    left: 10px;
    width: auto;
    max-width: 400px;
    margin: 0 auto;
  }
  
}

/* ==========================================
   🔥 НЕОНОВЫЕ ПРЕМИАЛЬНЫЕ АНИМАЦИИ 🔥
   ========================================== */

/* Легкое пульсирующее свечение фона кнопки */
@keyframes ambientGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Вращение градиента по краю (неоновая рамка) */
@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Расходящиеся волны при наведении */
@keyframes rippleWave {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(4);
  }
}


/* ============================================================================
   АКЦЕНТНЫЙ ЦВЕТ ДЛЯ КАРТОЧЕК ТАРИФОВ
   Применяется через CSS переменную --accent-color и вспомогательные переменные
   --accent-rgb: RGB значения цвета (например: 255, 87, 51)
   --accent-dark: затемненная версия цвета
   --accent-light: осветленная версия цвета
   ============================================================================ */

/* Используем более специфичный селектор для карточек с акцентным цветом */
.tariff-card[style*="--accent-color"],
.tariff-card[style*="--accent-rgb"] {
  /* Свечение карточки с акцентным цветом */
  border-color: var(--accent-border, rgba(var(--accent-rgb, 37, 99, 235), 0.45)) !important;
  box-shadow: 0 18px 48px var(--accent-shadow, rgba(var(--accent-rgb, 37, 99, 235), 0.25)) !important;
}

.tariff-card[style*="--accent-color"]:hover,
.tariff-card[style*="--accent-rgb"]:hover {
  border-color: var(--accent-border-hover, rgba(var(--accent-rgb, 37, 99, 235), 0.55)) !important;
  box-shadow: 0 24px 52px var(--accent-shadow-hover, rgba(var(--accent-rgb, 37, 99, 235), 0.35)), 
              0 0 0 4px var(--accent-glow, rgba(var(--accent-rgb, 37, 99, 235), 0.12)) !important;
}

/* Цвет числа скорости с акцентным цветом */
.tariff-card[style*="--accent-color"] .tariff-speed span,
.tariff-card[style*="--accent-rgb"] .tariff-speed span {
  color: var(--accent-color) !important;
}

/* Полоска скорости (meter) с акцентным цветом */
.tariff-card[style*="--accent-color"] .tariff-meter::before,
.tariff-card[style*="--accent-rgb"] .tariff-meter::before {
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-dark, var(--accent-color)) 60%, var(--accent-darker, var(--accent-color)) 100%) !important;
}

/* Иконка с акцентным цветом */
.tariff-card[style*="--accent-color"] .tariff-icon,
.tariff-card[style*="--accent-rgb"] .tariff-icon {
  background: rgba(var(--accent-rgb, 37, 99, 235), 0.1) !important;
  border-color: rgba(var(--accent-rgb, 37, 99, 235), 0.3) !important;
  color: var(--accent-color) !important;
  box-shadow: 0 6px 16px var(--accent-icon-shadow, rgba(var(--accent-rgb, 37, 99, 235), 0.12)) !important;
}

/* Тег (badge) с акцентным цветом */
.tariff-card[style*="--accent-color"] .tariff-badge,
.tariff-card[style*="--accent-rgb"] .tariff-badge {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark, var(--accent-color)) 100%) !important;
  box-shadow: 0 10px 24px var(--accent-badge-shadow, rgba(var(--accent-rgb, 37, 99, 235), 0.25)) !important;
}

/* Кнопка с акцентным цветом - используем более специфичные селекторы */
.tariff-card[style*="--accent-color"] .btn-primary,
.tariff-card[style*="--accent-rgb"] .btn-primary,
.tariff-card[style*="--accent-color"].tariff-featured .btn-primary,
.tariff-card[style*="--accent-rgb"].tariff-featured .btn-primary,
.tariff-card[style*="--accent-color"].tariff-card--popular .btn-primary,
.tariff-card[style*="--accent-rgb"].tariff-card--popular .btn-primary,
.tariff-card[style*="--accent-color"].tariff-card--entry .btn-primary,
.tariff-card[style*="--accent-rgb"].tariff-card--entry .btn-primary {
  background: linear-gradient(135deg, 
    var(--accent-dark, var(--accent-color)) 0%, 
    var(--accent-color) 50%, 
    var(--accent-light, var(--accent-color)) 100%) !important;
  background-size: 300% 300% !important;
  border: none !important;
  box-shadow: 0 4px 20px var(--accent-btn-shadow, rgba(var(--accent-rgb, 37, 99, 235), 0.3)),
              inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ambientGlow 3s ease-in-out infinite;
}

/* Пульсирующее свечение кнопки */
.tariff-card[style*="--accent-color"] .btn-primary::before,
.tariff-card[style*="--accent-rgb"] .btn-primary::before,
.tariff-card[style*="--accent-color"].tariff-featured .btn-primary::before,
.tariff-card[style*="--accent-rgb"].tariff-featured .btn-primary::before,
.tariff-card[style*="--accent-color"].tariff-card--popular .btn-primary::before,
.tariff-card[style*="--accent-rgb"].tariff-card--popular .btn-primary::before,
.tariff-card[style*="--accent-color"].tariff-card--entry .btn-primary::before,
.tariff-card[style*="--accent-rgb"].tariff-card--entry .btn-primary::before {
  content: '' !important;
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(45deg, 
    var(--accent-light, var(--accent-color)), 
    var(--accent-color), 
    var(--accent-dark, var(--accent-color)), 
    var(--accent-darker, var(--accent-color))) !important;
  background-size: 400% 400% !important;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
}

.tariff-card[style*="--accent-color"] .btn-primary:hover,
.tariff-card[style*="--accent-rgb"] .btn-primary:hover,
.tariff-card[style*="--accent-color"].tariff-featured .btn-primary:hover,
.tariff-card[style*="--accent-rgb"].tariff-featured .btn-primary:hover,
.tariff-card[style*="--accent-color"].tariff-card--popular .btn-primary:hover,
.tariff-card[style*="--accent-rgb"].tariff-card--popular .btn-primary:hover,
.tariff-card[style*="--accent-color"].tariff-card--entry .btn-primary:hover,
.tariff-card[style*="--accent-rgb"].tariff-card--entry .btn-primary:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 35px var(--accent-btn-shadow-hover, rgba(var(--accent-rgb, 37, 99, 235), 0.5)),
              0 15px 50px var(--accent-btn-glow, rgba(var(--accent-rgb, 37, 99, 235), 0.4)),
              0 0 80px var(--accent-btn-glow-strong, rgba(var(--accent-rgb, 37, 99, 235), 0.3)),
              inset 0 2px 5px rgba(255, 255, 255, 0.3) !important;
  background-position: 100% 50% !important;
  letter-spacing: 0.05em;
}

.tariff-card[style*="--accent-color"] .btn-primary:hover::before,
.tariff-card[style*="--accent-rgb"] .btn-primary:hover::before,
.tariff-card[style*="--accent-color"].tariff-featured .btn-primary:hover::before,
.tariff-card[style*="--accent-rgb"].tariff-featured .btn-primary:hover::before,
.tariff-card[style*="--accent-color"].tariff-card--popular .btn-primary:hover::before,
.tariff-card[style*="--accent-rgb"].tariff-card--popular .btn-primary:hover::before,
.tariff-card[style*="--accent-color"].tariff-card--entry .btn-primary:hover::before,
.tariff-card[style*="--accent-rgb"].tariff-card--entry .btn-primary:hover::before {
  opacity: 1 !important;
}

.tariff-card[style*="--accent-color"] .btn-primary:active,
.tariff-card[style*="--accent-rgb"] .btn-primary:active,
.tariff-card[style*="--accent-color"].tariff-featured .btn-primary:active,
.tariff-card[style*="--accent-rgb"].tariff-featured .btn-primary:active,
.tariff-card[style*="--accent-color"].tariff-card--popular .btn-primary:active,
.tariff-card[style*="--accent-rgb"].tariff-card--popular .btn-primary:active,
.tariff-card[style*="--accent-color"].tariff-card--entry .btn-primary:active,
.tariff-card[style*="--accent-rgb"].tariff-card--entry .btn-primary:active {
  transform: scale(1) !important;
  box-shadow: 0 5px 20px var(--accent-btn-shadow-active, rgba(var(--accent-rgb, 37, 99, 235), 0.4)) !important;
}


.tv-providers {
  margin: 48px 0 32px;
}

.tv-providers__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tv-providers__head h3 {
  margin: 0;
  font-size: 26px;
}

.tv-providers__head p {
  margin: 0;
  color: #64748b;
}

.tv-providers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tv-provider-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 255, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 25px 70px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tv-provider-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.14), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(129, 140, 248, 0.16), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  z-index: 0;
  pointer-events: none;
}

.tv-provider-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
}

.tv-provider-card:hover {
  transform: scale(1.01);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.tv-provider-card__hero {
  position: relative;
  padding: 18px 18px 14px;
  overflow: hidden;
  z-index: 1;
}

.tv-provider-card__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.24), transparent 55%),
    radial-gradient(circle at 82% 28%, rgba(59, 130, 246, 0.2), transparent 52%),
    linear-gradient(130deg, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.7));
  z-index: 0;
}

.tv-provider-card__hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tv-provider-card__tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.tv-provider-card__brand {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 6px 8px;
}

.tv-provider-card__logo {
  width: 84px;
  height: 60px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.tv-provider-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tv-provider-card__logo-placeholder {
  font-weight: 700;
  color: #475569;
}

.tv-provider-card__meta h4 {
  margin: 0;
  font-size: 19px;
}

.tv-provider-card__price {
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}

.tv-provider-card__price-label {
  color: #475569;
  font-weight: 600;
}

.tv-provider-card__price-value {
  font-size: 19px;
}

.tv-provider-card__price-currency {
  color: #475569;
  font-weight: 500;
}

.tv-provider-card__body {
  padding: 0 18px 16px;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.tv-provider-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-provider-card__chips .chip {
  background: rgba(255, 255, 255, 0.35);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.tv-provider-card__services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.tv-provider-card__services li {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(241, 245, 255, 0.76));
  backdrop-filter: blur(12px);
  display: grid;
  gap: 6px;
}

.tv-provider-card__service-title {
  font-weight: 600;
  color: #0f172a;
}

.tv-provider-card__service-channels {
  color: #64748b;
}

.tv-provider-card__service-price {
  white-space: nowrap;
  font-weight: 700;
  color: #0f172a;
}

.tv-provider-card__more {
  color: #64748b;
  font-style: italic;
}

.tv-provider-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  z-index: 1;
}

.tv-provider-card .btn {
  padding: 10px 18px;
  border-radius: 10px;
}

.tv-provider-card .btn-ghost {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.tv-provider-card__hint {
  color: #475569;
  font-size: 13px;
}

body.theme-dark .tv-provider-card .btn-ghost {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.35);
  color: #bfdbfe;
}

@media (max-width: 768px) {
  .tv-providers {
    margin: 36px 0 24px;
  }

  .tv-providers__head h3 {
    font-size: 22px;
  }

  .tv-provider-card {
    padding: 16px;
  }
}


/* --- Enhanced TV selector styling --- */
.tv-selector {
  margin: 64px 0 48px;
  padding: 32px;
  border-radius: 32px;
  position: relative;
  background: rgba(248, 251, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.tv-selector::before,
.tv-selector::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tv-selector::before {
  background: radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.18), transparent 45%), radial-gradient(circle at 80% 0%, rgba(129, 140, 248, 0.22), transparent 40%);
  opacity: 0.35;
}

.tv-selector::after {
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.tv-selector__hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #0f172a;
}

.tv-selector__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.78rem;
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  width: fit-content;
}

.tv-selector__hero-text h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.25;
}

.tv-selector__hero-text p {
  margin: 6px 0 0;
  max-width: 720px;
  color: #475569;
}

.tv-selector__stats {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.tv-selector__stats li {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.tv-selector__stats strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #0f172a;
}

.tv-selector__stats span {
  color: #64748b;
  font-size: 0.95rem;
}

.tv-selector__hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.tv-selector__hero-perks span {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.tv-selector__providers {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 32px;
  width: 100%;
}

/* Адаптивная сетка для поставщиков: 1, 2 или 3 карточки */
.tv-selector__providers:has(> :nth-child(1):last-child) {
  grid-template-columns: 1fr;
}

.tv-selector__providers:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.tv-selector__providers:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
  .tv-selector__providers:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tv-selector__providers {
    grid-template-columns: 1fr !important;
  }
}

.tv-selector__providers[hidden] {
  display: none !important;
}

.tv-selector-card {
  position: relative;
  border: none;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-selector-card__inner {
  border-radius: inherit;
  background: #ffffff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  height: 100%;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-selector-card:hover .tv-selector-card__inner {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
}

.tv-selector-card.is-active .tv-selector-card__inner {
  border-color: rgba(37, 99, 235, 1);
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.15),
    0 12px 32px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.tv-selector-card__logo {
  width: 100%;
  min-height: clamp(112px, 10vw, 132px);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: grid;
  place-items: center;
  padding: clamp(16px, 2vw, 24px);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

.tv-selector-card:hover .tv-selector-card__logo {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.tv-selector-card__logo img {
  max-width: min(86%, 320px);
  max-height: clamp(104px, 14vw, 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.tv-selector-card__logo-placeholder {
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0;
}

.tv-selector-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 16px 18px;
  background: rgba(248, 250, 252, 0.96);
  border-top: 1px solid rgba(226, 232, 240, 1);
  flex-shrink: 0;
}

.tv-selector-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  font-size: 0.875rem;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.tv-selector-card:hover .tv-selector-card__cta {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.tv-selector-card__cta .tv-selector-card__cta-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.tv-selector-card:hover .tv-selector-card__cta .tv-selector-card__cta-icon {
  transform: translate(2px, -1px);
}

.tv-selector-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tv-selector-card__pill {
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.tv-selector-card:hover .tv-selector-card__pill {
  background: #f1f5f9;
  color: #334155;
}

.tv-selector__services {
  margin-top: 32px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 1);
  padding: 0;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tv-selector__services[hidden] {
  display: none !important;
}

.tv-selector__services-header {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 1);
}

.tv-selector__services-head {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  align-items: flex-end;
  text-align: right;
}

.tv-selector__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.tv-selector__services-head h4 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  justify-content: flex-end;
  width: 100%;
}

.tv-selector__provider-logo {
  width: min(24vw, 190px);
  min-width: 120px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center end;
  padding: 4px 0 4px 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.tv-selector__provider-logo img {
  max-width: 100%;
  max-height: calc(100% - 8px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
}

.tv-selector__back {
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 1);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.tv-selector__back:hover {
  background: #f1f5f9;
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.3);
}

.tv-selector__back:active {
  transform: translateY(1px);
}

.tv-selector__back .tv-selector__back-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tv-selector__services-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.tv-service-card {
  border-radius: 16px;
  padding: 0;
  position: relative;
}

.tv-service-card__inner {
  border-radius: inherit;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 100%;
}

.tv-service-card__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.tv-service-card:hover .tv-service-card__inner {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.06);
}

.tv-service-card.is-active .tv-service-card__inner {
  border-color: rgba(37, 99, 235, 1);
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.15),
    0 12px 32px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.tv-service-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 1;
}

.tv-service-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 18px;
}

.tv-service-card__head > div:first-child {
  flex: 1;
}

.tv-service-card__head h5 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.tv-service-card__lead {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tv-service-card__price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.tv-service-card__price strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.tv-service-card__price span {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.tv-service-card__description {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 24px 18px;
}

.tv-service-card__features {
  list-style: none;
  padding: 0 24px 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tv-service-card__features li {
  position: relative;
  padding-left: 24px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tv-service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, #2563eb, #60a5fa);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.tv-service-card__footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(226, 232, 240, 1);
  margin-top: auto;
}

.tv-service-card__footer > div:not(:last-child) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px;
  position: relative;
}

/* Вертикальные границы (крестовина) - только для нечетных элементов (левая колонка) */
.tv-service-card__footer > div:not(:last-child):nth-child(odd)::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 0;
  bottom: 25%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.2) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Горизонтальные границы (крестовина) - для всех кроме последней строки */
.tv-service-card__footer > div:not(:last-child):not(:nth-last-child(2)):not(:nth-last-child(3))::before {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.2) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.tv-service-card__footer > .btn {
  grid-column: 1 / -1;
  margin: 0;
}


.tv-service-card__footer span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tv-service-card__footer strong {
  font-size: 1.1rem;
  font-weight: 400;
  color: #0f172a;
}

.tv-service-card__footer strong.is-free {
  color: #22c55e !important;
}

.tv-service-card__footer .btn {
  width: 100%;
  margin: 0;
  padding: 14px 24px;
  font-size: 0.95rem;
  border-radius: 0;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-left: -24px;
  margin-right: -24px;
  width: calc(100% + 48px);
}

.tv-service-card__footer .btn-secondary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  border: none;
  box-shadow: 
    0 4px 16px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.tv-service-card__footer .btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.tv-service-card__footer .btn-secondary > * {
  position: relative;
  z-index: 1;
}

.tv-service-card__footer .btn-secondary:hover {
  box-shadow: 
    0 8px 24px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
}

.tv-service-card__footer .btn-secondary:hover::before {
  opacity: 0;
}

.tv-service-card__footer .btn-secondary:hover > * {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.tv-service-card__footer .btn-secondary:active {
  box-shadow: 
    0 4px 12px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tv-service-card.is-active .tv-service-card__footer .btn-secondary {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  box-shadow: 
    0 8px 24px rgba(37, 99, 235, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(37, 99, 235, 0.3);
}

body.theme-dark .tv-service-card__inner {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

body.theme-dark .tv-service-card:hover .tv-service-card__inner {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.3);
}

body.theme-dark .tv-service-card.is-active .tv-service-card__inner {
  border-color: rgba(59, 130, 246, 1);
  box-shadow:
    0 4px 12px rgba(59, 130, 246, 0.2),
    0 12px 32px rgba(59, 130, 246, 0.15);
}

body.theme-dark .tv-service-card__head h5 {
  color: #f1f5f9;
}

body.theme-dark .tv-service-card__lead,
body.theme-dark .tv-service-card__description,
body.theme-dark .tv-service-card__features li {
  color: rgba(226, 232, 240, 0.85);
}

body.theme-dark .tv-service-card__price strong {
  color: #f1f5f9;
}

body.theme-dark .tv-service-card__price span {
  color: rgba(226, 232, 240, 0.7);
}

body.theme-dark .tv-service-card__footer {
  border-top-color: rgba(51, 65, 85, 1);
}

body.theme-dark .tv-service-card__footer > div:not(:last-child)::after {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent 100%
  );
}

body.theme-dark .tv-service-card__footer > div:not(:last-child)::before {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent 100%
  );
}

body.theme-dark .tv-service-card__footer span {
  color: rgba(226, 232, 240, 0.7);
}

body.theme-dark .tv-service-card__footer strong {
  color: #f1f5f9;
}

body.theme-dark .tv-service-card__footer strong.is-free {
  color: #4ade80 !important;
}

body.theme-dark .tv-service-card__footer .btn-secondary {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow:
    0 4px 16px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.theme-dark .tv-service-card__footer .btn-secondary::before {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
}

body.theme-dark .tv-service-card__footer .btn-secondary > * {
  color: #ffffff;
}

body.theme-dark .tv-service-card__footer .btn-secondary:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

body.theme-dark .tv-service-card__footer .btn-secondary:hover::before {
  opacity: 0;
}

body.theme-dark .tv-service-card__footer .btn-secondary:hover > * {
  color: #ffffff;
}

body.theme-dark .tv-service-card.is-active .tv-service-card__footer .btn-secondary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(59, 130, 246, 0.4);
}

@media (max-width: 640px) {
  .tv-service-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .tv-service-card__footer .btn {
    margin-left: 0;
    width: 100%;
  }
}

.tv-selector__cta {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px dashed rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.06);
}

.tv-selector__cta button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.tv-selector__comparison {
  margin-top: 32px;
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tv-selector__comparison[hidden] {
  display: none !important;
}

.tv-selector__comparison h4 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.tv-selector__comparison-table {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.tv-selector__comparison-table-container {
  width: 100%;
}

.tv-selector__comparison-table table,
.tv-selector__comparison-table-container table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.tv-selector__comparison-table thead,
.tv-selector__comparison-table-container table thead {
  background: #f9fafb;
}

.tv-selector__comparison-table th,
.tv-selector__comparison-table-container table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 2px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.tv-selector__comparison-table th:last-child,
.tv-selector__comparison-table-container table th:last-child {
  border-right: none;
}

.tv-selector__comparison-table td,
.tv-selector__comparison-table-container table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  color: #4b5563;
}

.tv-selector__comparison-table td:last-child,
.tv-selector__comparison-table-container table td:last-child {
  border-right: none;
}

.tv-selector__comparison-table tbody tr:hover,
.tv-selector__comparison-table-container table tbody tr:hover {
  background: #f9fafb;
}

.tv-selector__comparison-table tbody tr:first-child th,
.tv-selector__comparison-table-container table tbody tr:first-child th {
  font-weight: 500;
  color: #1a1a1a;
}

.tv-selector__single-card {
  position: relative;
  border-radius: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 24px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tv-selector__single-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.15), transparent 45%);
  pointer-events: none;
}

.tv-selector__single-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tv-selector__single-description {
  margin: 0;
  color: #475569;
}

.tv-selector__single-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tv-selector__single-meta li {
  flex: 1 1 140px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-selector__single-meta span {
  font-size: 0.85rem;
  color: #64748b;
}

.tv-selector__single-meta strong {
  font-size: 1.1rem;
  color: #0f172a;
}

.tv-selector__single-meta a {
  color: #1d4ed8;
  font-weight: 600;
}

.tv-selector__comparison::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.08), transparent 45%);
  pointer-events: none;
}

@media (max-width: 1200px) {
  .tv-selector__single-card {
    order: -1;
  }
}

@media (max-width: 900px) {
  .tv-selector {
    padding: 24px;
  }

  .tv-selector__hero-text h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 640px) {
  .tv-selector {
    margin: 32px 0 20px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .tv-selector::before,
  .tv-selector::after {
    display: none;
  }

  .tv-selector__comparison::before {
    content: none;
  }

  .tv-selector__hero,
  .tv-selector__providers,
  .tv-selector__comparison {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tv-selector__providers,
  .tv-selector__services {
    margin-top: 20px;
  }

  .tv-selector__hero-text h3 {
    font-size: 1.4rem;
  }

  .tv-selector__label {
    background: #ffffff;
    color: #334155;
    border: 1px solid rgba(226, 232, 240, 1);
  }

  .tv-selector-card__logo,
  .tv-selector-card:hover .tv-selector-card__logo {
    background: #ffffff;
  }

  .tv-selector-card__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .tv-selector-card__logo {
    width: 100%;
    padding: clamp(24px, 8vw, 36px);
    align-self: stretch;
  }

  .tv-selector-card__logo img {
    width: auto;
    height: auto;
    max-width: min(90%, 280px);
    max-height: clamp(86px, 22vw, 128px);
  }

  .tv-selector-card__body {
    align-items: flex-end;
    gap: 12px;
    min-height: 72px;
    padding: 14px;
  }

  .tv-selector-card__cta {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  .tv-selector__services-header {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 16px 12px;
    border-bottom: none;
  }

  .tv-selector__services {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .tv-selector__back {
    flex: 0 1 auto;
    width: auto;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 10px;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
    min-width: 0;
    font-size: 1rem;
  }

  .tv-selector__back span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
  }

  .tv-selector__services-head {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    min-width: 0;
    align-items: flex-end;
    text-align: right;
  }

  .tv-selector__services-head h4 {
    justify-content: flex-end;
  }

  .tv-selector__provider-logo {
    width: clamp(64px, 18vw, 90px);
    min-width: 0;
    height: 42px;
    min-height: 0;
    margin-block: 0;
    padding: 4px 0 4px 6px;
    place-items: center end;
  }

  .tv-selector__services-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 14px;
  }

  .tv-selector__cta {
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: none;
  }

  .tv-selector__cta button {
    width: 100%;
  }
}

/* ============================================================
 * Application Form (Django template)
 * ========================================================== */
.application-form {
  display: grid;
  gap: 16px;
}

.application-form__field {
  display: grid;
  gap: 8px;
}

.application-form__field label {
  font-weight: 600;
  color: #0f172a;
  font-size: 15px;
}

.application-form__field input,
.application-form__field textarea,
.application-form__field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f8fafc;
}

.application-form__field select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  -ms-appearance: none !important;
  padding-right: 40px !important;
  cursor: pointer;
  background-image: none !important;
}

.application-form__field input:focus,
.application-form__field textarea:focus,
.application-form__field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

.application-form__help {
  color: #64748b;
  font-size: 13px;
}

.application-form__errors {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.application-form__footnote {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  white-space: pre-line;
}

/* Обертка для select в Django формах */
.application-form__select-wrapper {
  position: relative;
  width: 100%;
}

.application-form__select-wrapper::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  pointer-events: none;
  z-index: 1;
  background-color: #475569;
  -webkit-mask-image: url("../icons/icon-arrow.c5446e6e89ef.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../icons/icon-arrow.c5446e6e89ef.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  rotate: 90deg;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

/* Кастомный select используется и для Django форм тоже */

/* Темная тема для Django форм */
html.theme-dark .application-form__field label {
  color: #e2e8f0;
}

html.theme-dark .application-form__field input,
html.theme-dark .application-form__field textarea,
html.theme-dark .application-form__field select {
  background: #0b1324;
  border-color: #1e293b;
  color: #e2e8f0;
}

html.theme-dark .application-form__footnote {
  color: #94a3b8;
}


/* ============================================================
 * Application Form Modal
 * ========================================================== */
html.app-form-modal-open,
html.app-form-modal-open body {
  overflow: hidden;
}

.app-form-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 9999;
}

.app-form-modal[hidden] {
  display: none;
}

.app-form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.app-form-modal__dialog {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb, rgba(37, 99, 235, 0.32)) var(--scrollbar-track, rgba(15, 23, 42, 0.08));
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: #0f172a;
  border-radius: 20px;
  padding: 30px 28px 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), 0 2px 12px rgba(15, 23, 42, 0.12);
  z-index: 1;
  border: 1px solid #e2e8f0;
  background-image: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.06), transparent 28%), radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.08), transparent 30%);
}

.app-form-modal__dialog::-webkit-scrollbar {
  width: 8px;
}

.app-form-modal__dialog::-webkit-scrollbar-track {
  background-color: var(--scrollbar-track, rgba(15, 23, 42, 0.08));
  border-radius: var(--scrollbar-radius, 999px);
}

.app-form-modal__dialog::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb, rgba(37, 99, 235, 0.32));
  border: 2px solid #fff;
  border-radius: var(--scrollbar-radius, 999px);
}

.app-form-modal__dialog::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover, rgba(37, 99, 235, 0.5));
}

.app-form-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.app-form-modal__close .ui-close-icon {
  width: 1em;
  height: 1em;
}

.app-form-modal__body {
  display: grid;
  gap: 14px;
}

.app-form-modal__field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.app-form-modal__field input,
.app-form-modal__field textarea,
.app-form-modal__field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f8fafc;
}

/* Переопределяем базовые стили для select в обертке */
.app-form-modal__field .app-form-modal__select-wrapper select {
  width: 100%;
  padding: 12px 13px;
  padding-right: 40px !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f8fafc !important;
}

.app-form-modal__field textarea {
  min-height: 96px;
  resize: vertical;
}

/* Кастомная стилизация для select */
.app-form-modal__select-wrapper {
  position: relative;
  width: 100%;
}

/* Кастомный dropdown компонент */
.custom-select {
  position: relative;
  width: 100%;
  font-size: 15px;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  min-height: 45px;
}

.custom-select__trigger:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.custom-select.is-open .custom-select__trigger {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #fff;
}

.custom-select__value {
  flex: 1;
  color: #0f172a;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  flex-shrink: 0;
  color: #475569;
  transition: transform 0.2s ease;
}

.custom-select.is-open .custom-select__arrow {
  transform: rotate(180deg);
  color: #2563eb;
}

.custom-select__arrow .ui-arrow-icon {
  width: 12px;
  height: 8px;
}

.custom-select__dropdown {
  position: fixed;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
  min-width: 200px;
}

.custom-select.is-open .custom-select__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Открытие dropdown вверх */
.custom-select.is-open-up .custom-select__dropdown {
  transform: translateY(8px);
}

.custom-select.is-open-up.is-open .custom-select__dropdown {
  transform: translateY(0);
}

.custom-select__option {
  padding: 12px 16px;
  color: #0f172a;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.custom-select__option:last-child {
  border-bottom: none;
}

.custom-select__option:hover {
  background: #f8fafc;
  color: #2563eb;
}

.custom-select__option.is-selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.05));
  color: #2563eb;
  font-weight: 600;
}

.custom-select__option.is-selected::after {
  content: '✓';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
}

.custom-select__option:active {
  background: #f1f5f9;
}

/* Стили для скроллбара в dropdown */
.custom-select__dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select__dropdown::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
}

.custom-select__dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.custom-select__dropdown::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Темная тема для кастомного select */
html.theme-dark .custom-select__trigger {
  background: #0b1324;
  border-color: #1e293b;
  color: #e2e8f0;
}

html.theme-dark .custom-select__trigger:hover {
  border-color: #334155;
  background: #111827;
}

html.theme-dark .custom-select.is-open .custom-select__trigger {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #0f172a;
}

html.theme-dark .custom-select__value {
  color: #e2e8f0;
}

html.theme-dark .custom-select__arrow {
  color: #94a3b8;
}

html.theme-dark .custom-select.is-open .custom-select__arrow {
  color: #3b82f6;
}

html.theme-dark .application-form__select-wrapper::after {
  background-color: #94a3b8;
}

html.theme-dark .custom-select__dropdown {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.theme-dark .custom-select__option {
  color: #e2e8f0;
  border-bottom-color: #1e293b;
}

html.theme-dark .custom-select__option:hover {
  background: #1e293b;
  color: #3b82f6;
}

html.theme-dark .custom-select__option.is-selected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
  color: #60a5fa;
}

html.theme-dark .custom-select__option.is-selected::after {
  color: #60a5fa;
}

html.theme-dark .custom-select__option:active {
  background: #1e293b;
}

html.theme-dark .custom-select__dropdown::-webkit-scrollbar-track {
  background: #1e293b;
}

html.theme-dark .custom-select__dropdown::-webkit-scrollbar-thumb {
  background: #334155;
}

html.theme-dark .custom-select__dropdown::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Кастомная стилизация для checkbox */
.app-form-modal__field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.app-form-modal__field--checkbox .app-form-modal__checkbox-label {
  order: 2;
  cursor: pointer;
  margin: 0;
  line-height: 1.5;
  flex: 1;
  padding-top: 0;
  font-weight: 600;
  color: #0f172a;
}

.app-form-modal__checkbox-wrapper {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-self: flex-start;
  margin-top: 1px;
  order: 1;
  flex-shrink: 0;
  cursor: pointer;
}

.app-form-modal__checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.app-form-modal__checkbox-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  box-sizing: border-box;
  border: 2px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.app-form-modal__checkbox-wrapper::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.2 6.2L4.8 8.8L9.8 3.6' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: translate(-50%, -50%) scale(0.7);
  transform-origin: center;
  opacity: 0;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  pointer-events: none;
}

.app-form-modal__checkbox-wrapper input[type="checkbox"]:checked ~ *::before {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.app-form-modal__checkbox-wrapper input[type="checkbox"]:checked ~ *::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.app-form-modal__checkbox-wrapper:has(input[type="checkbox"]:checked)::before {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.app-form-modal__checkbox-wrapper:has(input[type="checkbox"]:checked)::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Используем класс для состояния checked */
.app-form-modal__checkbox-wrapper.is-checked::before {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.app-form-modal__checkbox-wrapper.is-checked::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.app-form-modal__checkbox-wrapper:hover::before {
  border-color: #94a3b8;
}

.app-form-modal__checkbox-wrapper input[type="checkbox"]:focus {
  outline: none;
}

.app-form-modal__checkbox-wrapper input[type="checkbox"]:focus ~ *::before,
.app-form-modal__checkbox-wrapper:has(input[type="checkbox"]:focus)::before {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  border-color: #2563eb;
}

.app-form-modal__hint {
  color: #64748b;
  font-size: 13px;
}

.app-form-modal__actions {
  margin-top: 28px;
}

.app-form-modal__footnote {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  white-space: pre-line;
}

.app-form-modal__field input:focus,
.app-form-modal__field textarea:focus,
.app-form-modal__field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

/* Переопределяем базовые стили focus для select в обертке */
.app-form-modal__field .app-form-modal__select-wrapper select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
  outline: none !important;
}

.app-form-modal__field label {
  color: #0f172a;
}

.app-form-modal__form .btn.btn-primary {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 16px;
  border: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  color: #fff;
  position: relative;
  isolation: isolate;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.app-form-modal__form .btn.btn-primary:active {
  transform: scale(1);
}

.app-form-modal__form .btn.btn-primary:hover,
.app-form-modal__form .btn.btn-primary:focus {
  color: #fff;
  transform: scale(1.01);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
  filter: brightness(1.03);
}

.app-form-modal__form .btn.btn-primary::before,
.app-form-modal__form .btn.btn-primary::after {
  content: none !important;
}

.app-form-modal__loading,
.app-form-modal__error,
.app-form-modal__success {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.app-form-modal__error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecdd3;
}

.app-form-modal__success {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.app-form-modal__field-error {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.app-form-modal__field.has-error input,
.app-form-modal__field.has-error textarea,
.app-form-modal__field.has-error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.app-form-modal__field.has-error .app-form-modal__select-wrapper select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.app-form-modal__field.has-error .app-form-modal__checkbox-wrapper::before {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.app-form-modal__close {
  color: #0f172a;
}

/* Dark theme */
html.theme-dark .app-form-modal__dialog {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #1e293b;
  scrollbar-color: var(--scrollbar-thumb, rgba(96, 165, 250, 0.32)) var(--scrollbar-track, rgba(255, 255, 255, 0.1));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.35);
  background-image: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.12), transparent 32%), radial-gradient(circle at 85% 5%, rgba(37, 99, 235, 0.16), transparent 35%);
}

html.theme-dark .app-form-modal__package-summary {
  border-color: rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.35));
  color: #e2e8f0;
}

html.theme-dark .app-form-modal__package-summary h3,
html.theme-dark .app-form-modal__package-total {
  color: #f8fafc;
}


html.theme-dark .app-form-modal__dialog::-webkit-scrollbar-track {
  background-color: var(--scrollbar-track, rgba(255, 255, 255, 0.1));
}

html.theme-dark .app-form-modal__dialog::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb, rgba(96, 165, 250, 0.32));
  border-color: #0f172a;
}

html.theme-dark .app-form-modal__dialog::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover, rgba(96, 165, 250, 0.5));
}

html.theme-dark .app-form-modal__field label {
  color: #e2e8f0;
}

html.theme-dark .app-form-modal__field input,
html.theme-dark .app-form-modal__field textarea,
html.theme-dark .app-form-modal__field select {
  background: #0b1324;
  border-color: #1e293b;
  color: #e2e8f0;
}

html.theme-dark .app-form-modal__field input:focus,
html.theme-dark .app-form-modal__field textarea:focus,
html.theme-dark .app-form-modal__field select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

html.theme-dark .app-form-modal__hint {
  color: #94a3b8;
}

html.theme-dark .app-form-modal__footnote {
  color: #94a3b8;
}

html.theme-dark .app-form-modal__loading,
html.theme-dark .app-form-modal__error,
html.theme-dark .app-form-modal__success {
  color: #e2e8f0;
  background: #111827;
  border-color: #1f2937;
}

html.theme-dark .app-form-modal__error {
  color: #fecdd3;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}

html.theme-dark .app-form-modal__success {
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

html.theme-dark .app-form-modal__close {
  color: #e2e8f0;
}

html.theme-dark .app-form-modal__field-error {
  color: #fecdd3;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}

/* Стили для ошибок в кастомном select */
.app-form-modal__field.has-error .custom-select__trigger {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

html.theme-dark .app-form-modal__field.has-error .custom-select__trigger {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

/* Темная тема для checkbox */
html.theme-dark .app-form-modal__field--checkbox .app-form-modal__checkbox-label {
  color: #e2e8f0;
}

html.theme-dark .app-form-modal__checkbox-wrapper::before {
  background: #0b1324;
  border-color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html.theme-dark .app-form-modal__checkbox-wrapper:hover::before {
  border-color: #475569;
}

html.theme-dark .app-form-modal__checkbox-wrapper.is-checked::before {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

html.theme-dark .app-form-modal__checkbox-wrapper input[type="checkbox"]:focus ~ *::before,
html.theme-dark .app-form-modal__checkbox-wrapper:has(input[type="checkbox"]:focus)::before {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}

html.theme-dark .app-form-modal__field.has-error .app-form-modal__checkbox-wrapper::before {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}
