/* Sections below hero */
.site {
  --brand-1: #8b5cf6;
  --brand-2: #60a5fa;
  --ok: #22c55e;
  --ah-radius: 24px;
  --ah-radius-sm: 14px;
}

.site .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px;
  box-sizing: border-box;
}

.site .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.site .btn.primary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #0c101c;
  background: linear-gradient(180deg, #f6f8fd 0%, #e2e8f4 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.site .btn.primary:hover {
  transform: translateY(-2px);
  color: #0c101c;
}

.site .btn.primary,
.site .tariff-card__btn.btn.primary {
  color: #0c101c;
  background: linear-gradient(180deg, #f2f5fc 0%, #dce3f2 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site .btn.primary:hover,
.site .tariff-card__btn.btn.primary:hover {
  color: #0a0f1a;
}

.site .footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.site .footer-links a:hover {
  color: var(--text);
}

.site .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.site .social-link svg {
  display: block;
  flex-shrink: 0;
}
/* ——— Sections ——— */
.site .ah-section {
  padding: 64px 0;
  position: relative;
}

.site .ah-section#products {
  padding-top: 48px;
}

.site .ah-section--panel {
  padding: 64px 0;
}

.site #pricing.ah-section--panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(80, 100, 180, 0.06), transparent 70%);
}

.site .ah-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.site .ah-section__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.site .ah-section__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site .ah-section__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.site .ah-section__lead a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site .ah-section__lead a:hover {
  color: #bfdbfe;
}

/* Products */
.site .ah-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.site .ah-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border-radius: var(--ah-radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  color: inherit;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site .ah-product[data-order-open] {
  cursor: pointer;
}

.site .ah-product[data-order-open]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(125, 211, 252, 0.45);
}

.site .ah-product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.9;
}

.site .ah-product--browser::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.site .ah-product--windows::before { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.site .ah-product--android::before { background: linear-gradient(90deg, #4ade80, #22c55e); }
.site .ah-product--ios::before { background: linear-gradient(90deg, #c4b5fd, #a78bfa); }
.site .ah-product--telegram::before { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.site .ah-product--support::before { background: linear-gradient(90deg, #fb923c, #f97316); }

.site .ah-product--browser:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(251, 191, 36, 0.28);
}

.site .ah-product--windows:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.28);
}

.site .ah-product--android:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(74, 222, 128, 0.28);
}

.site .ah-product--ios:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(196, 181, 253, 0.28);
}

.site .ah-product--telegram:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.28);
}

.site .ah-product--support:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(251, 146, 60, 0.28);
}

.site .ah-product__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.site .ah-product__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.site .ah-product__icon-img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.site .ah-product__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site .ah-product__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

/* ——— Тарифы (внутри панели, стабильная сетка) ——— */
.site .ah-pricing-panel.tariffs-section {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 28px 22px 26px;
  border-radius: 26px;
  border: 1px solid rgba(201, 216, 255, 0.12);
  background: linear-gradient(165deg, rgba(12, 18, 34, 0.92), rgba(8, 12, 24, 0.88));
  box-shadow:
    0 32px 64px -16px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible;
}

.site .ah-pricing-panel .tariffs-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  align-items: stretch;
}

.site .ah-pricing-panel .tariff-card {
  position: relative;
  min-width: 0;
  width: auto;
  height: auto;
  float: none;
  margin: 0;
  box-sizing: border-box;
}

.site .ah-pricing-panel .tariff-card__price {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  word-break: break-word;
}

.site .ah-pricing-panel .tariff-card__feature {
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .site .ah-pricing-panel .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site .ah-pricing-panel .tariff-card--trial {
    grid-column: 1 / -1;
    max-width: none;
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site .ah-pricing-panel {
    padding: 20px 14px 18px;
    border-radius: 20px;
  }
  .site .ah-pricing-panel .tariffs-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .site .ah-pricing-panel .tariff-card--recommended { order: 1; }
  .site .ah-pricing-panel .tariff-card--best-value { order: 2; }
  .site .ah-pricing-panel .tariff-card--6m { order: 3; }
  .site .ah-pricing-panel .tariff-card--1m { order: 4; }
  .site .ah-pricing-panel .tariff-card--trial { order: 5; }
  .site .ah-pricing-panel .tariff-card--trial {
    max-width: none;
  }
}
/* Features & steps */
.site .ah-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.site .ah-glass-card {
  padding: 22px;
  border-radius: var(--ah-radius);
  border: 1px solid var(--border);
  background: rgba(12, 16, 28, 0.65);
  height: 100%;
}

.site .ah-glass-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #bae6fd;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.site .ah-glass-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.site .ah-glass-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.site .ah-step {
  position: relative;
  padding: 22px 22px 22px 72px;
  border-radius: var(--ah-radius);
  border: 1px solid var(--border);
  background: rgba(12, 16, 28, 0.65);
  min-height: 100%;
}

.site .ah-step__num {
  position: absolute;
  left: 20px;
  top: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #bae6fd, #a78bfa);
}

.site .ah-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.site .ah-step p a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site .ah-step p a:hover {
  color: #bfdbfe;
}

/* FAQ */
.site .ah-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.site .ah-faq__item {
  padding: 18px 20px;
  border-radius: var(--ah-radius-sm);
  border: 1px solid var(--border);
  background: rgba(12, 16, 28, 0.65);
  border-left: 3px solid rgba(125, 211, 252, 0.45);
}

.site .ah-faq__q {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.site .ah-faq__a {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.site .ah-faq__a a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer tweaks on home */
.site .footer {
  margin-top: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.site .btn.primary,
.site .tariff-card__btn.btn.primary {
  color: #0c101c;
  background: linear-gradient(180deg, #f2f5fc 0%, #dce3f2 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site .btn.primary:hover,
.site .tariff-card__btn.btn.primary:hover {
  color: #0a0f1a;
}

.site .footer.container {
  max-width: var(--ah-max);
  box-sizing: border-box;
}

.site .footer-row > div:first-child {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.site .footer-links a {
  color: var(--muted);
}

.site .footer-links a:hover {
  color: var(--text);
}

.site #official-mark-slot {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.site .footer--simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px calc(32px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.site .footer--simple.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site .footer--simple .social-link {
  margin: 0;
}

.site .footer__copy,
.site .footer__inn {
  margin: 0;
  width: 100%;
  max-width: 36rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

/* Footer — десктоп (не наследовать мобильную колонку) */
@media (min-width: 768px) {
  .site .footer.container {
    display: block;
    padding-bottom: 32px;
  }

  .site .footer--simple.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 32px;
  }

  .site .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

  .site .footer-row > div:first-child {
    text-align: left;
    padding-top: 0;
    border-top: none;
    order: unset;
  }

  .site .footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    gap: 16px;
    order: unset;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .site .footer-links a {
    display: inline-block;
    min-height: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    border-bottom: none;
    background: transparent;
  }

  .site .footer-links a:hover {
    background: transparent;
  }

  .site .footer-social {
    order: unset;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
  }

  .site .social-title {
    text-align: center;
    margin-bottom: 12px;
  }

  .site .social-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: auto;
    gap: 16px;
  }

  .site .social-link {
    width: auto;
    max-width: none;
    min-height: 0;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
  }

  .site #official-mark-slot {
    order: unset;
    margin-top: 10px;
  }

  .site .official-mark--footer {
    width: auto;
    max-width: none;
    margin: 0 auto;
  }
}
/* ——— Tablet (iPad и др.) ——— */
@media (max-width: 1024px) {
  .site {
    --ah-header-h: 56px;
  }

  html:has(body.site) {
    scroll-padding-top: 80px;
  }

  .site .ah-section {
    padding: 52px 0;
  }

  .site .ah-section__head {
    margin-bottom: 28px;
  }
}
@media (max-width: 960px) {
  .site .ah-products {
    grid-template-columns: 1fr;
  }

  .site .ah-cards-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .site .ah-section {
    padding: 44px 0;
  }

  .site .ah-section#products {
    padding-top: 36px;
  }

  .site .ah-section__title {
    font-size: clamp(24px, 6.5vw, 30px);
  }

  .site .ah-section__lead {
    font-size: 15px;
  }

  .site .ah-product {
    padding: 20px 18px;
    min-height: 44px;
  }

  .site .ah-pricing-panel {
    padding: 18px 12px 20px;
    border-radius: 18px;
  }

  .site .ah-pricing-panel .tariff-card__btn {
    min-height: 48px;
  }

  .site .ah-step {
    padding: 18px 18px 18px 68px;
  }

  .site .ah-step p {
    line-height: 1.65;
  }

  .site .ah-step__num {
    left: 16px;
    top: 18px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .site .ah-faq__item {
    padding: 16px 16px;
  }

  .site .footer {
    margin-top: 16px;
    padding-top: 32px;
  }

  .site .footer.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding:
      0
      max(16px, env(safe-area-inset-right, 0px))
      calc(88px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
  }

  .site .footer--simple.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding:
      32px
      max(16px, env(safe-area-inset-right, 0px))
      calc(32px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
  }

  .site .footer--simple .social-link {
    width: auto;
    max-width: none;
    min-height: 0;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.08);
  }

  .site .footer__copy,
  .site .footer__inn {
    font-size: 12px;
    text-align: center;
  }

  .site .footer-row {
    display: contents;
  }

  .site .footer-row > div:first-child {
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    order: 4;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site .footer-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    order: 1;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
  }

  .site .footer-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: none;
  }

  .site .footer-links a:last-child {
    border-bottom: none;
  }

  .site .footer-links a:hover,
  .site .footer-links a:active {
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
  }

  .site .footer-social {
    order: 2;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: left;
  }

  .site .social-title {
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    margin-bottom: 12px;
  }

  .site .social-links {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site .social-link {
    width: 100%;
    max-width: none;
    min-height: 48px;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.08);
  }

  .site .social-link:hover {
    transform: none;
  }

  .site #official-mark-slot {
    order: 3;
    margin-top: 0;
    justify-content: stretch;
  }

  .site .official-mark--footer {
    min-width: 0;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .site .official-mark__sub {
    max-width: none;
    white-space: normal;
  }
}
/* Футер: переопределение глобальных стилей styles.css (420px) */
@media (max-width: 420px) {
  .site .social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .site .social-link {
    width: 100%;
    max-width: none;
  }
}
/* iPad portrait: продукты в 2 колонки */
@media (min-width: 768px) and (max-width: 1024px) {
  .site .ah-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site .ah-cards-3 .ah-step:last-child {
    grid-column: 1 / -1;
  }
}
@media (hover: none) and (pointer: coarse) {
  .site .ah-product:hover {
    transform: none;
  }

  .site .ah-product:active {
    transform: scale(0.99);
  }
}
/* ========== Тарифы 2026 — дизайн-система ========== */
.tariffs-section{
  --tariff-space-2: 0.5rem;   /* 8px */
  --tariff-space-3: 0.75rem;  /* 12px */
  --tariff-space-4: 1rem;     /* 16px */
  --tariff-space-5: 1.25rem;  /* 20px */
  --tariff-space-6: 1.5rem;   /* 24px */
  --tariff-space-8: 2rem;     /* 32px */
  --tariff-radius: 1rem;
  --tariff-radius-lg: 1.25rem;
  --tariff-card-bg: rgba(255, 255, 255, 0.03);
  --tariff-card-border: 1px solid rgba(255, 255, 255, 0.06);
  --tariff-card-hover: rgba(255, 255, 255, 0.08);
  --tariff-focus-ring: 0 0 0 2px var(--bg) 0 0 0 4px var(--brand-1);
}

.tariffs-section__title{
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--tariff-space-6);
  color: var(--text);
}

.tariffs-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--tariff-space-4);
  align-items: stretch;
}

.tariff-card{
  display: flex;
  flex-direction: column;
  padding: var(--tariff-space-6);
  border-radius: var(--tariff-radius-lg);
  border: var(--tariff-card-border);
  background: var(--tariff-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tariff-card:hover{
  border-color: var(--tariff-card-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tariff-card:focus-within{
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 1px var(--brand-1);
}

.tariff-card__badge-slot{
  min-height: 1.5rem;
  margin-bottom: var(--tariff-space-2);
  display: flex;
  align-items: center;
}

.tariff-card__badge{
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.tariff-card--recommended .tariff-card__badge{
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  color: #fff;
}

.tariff-card__badge--savings{
  background: linear-gradient(135deg, #0d9488, var(--ok));
  color: #fff;
}

.tariff-card__name{
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--tariff-space-2);
  color: var(--text);
}

.tariff-card__price-block{
  min-height: 2.75rem;
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
}

.tariff-card__price{
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.tariff-card__per-month{
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.125rem 0 var(--tariff-space-4);
  font-variant-numeric: tabular-nums;
}

.tariff-card__per-month--highlight{
  color: var(--ok);
  font-weight: 600;
}

.tariff-card__savings{
  min-height: 1.1rem;
  margin: 0 0 var(--tariff-space-4);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.tariff-card__features{
  list-style: none;
  margin: 0 0 var(--tariff-space-4);
  padding: 0;
  flex: 1;
}

.tariff-card__feature{
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.tariff-card__feature:last-child{
  margin-bottom: 0;
}

.tariff-card__feature::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  transform: translateY(-50%);
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.7;
}

.tariff-card--recommended .tariff-card__feature::before,
.tariff-card--best-value .tariff-card__feature::before{
  background: var(--brand-1);
  opacity: 1;
}

.tariff-card--best-value .tariff-card__feature::before{
  background: var(--ok);
}

.tariff-card__cta{
  margin-top: auto;
  min-height: 2.75rem;
  display: flex;
  align-items: flex-end;
}

.tariff-card__btn{
  width: 100%;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tariff-card__btn:hover{
  transform: translateY(-1px);
}

.tariff-card__btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-1);
}

/* Варианты карточек */
.tariff-card--trial{
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
}

.tariff-card--trial .tariff-card__price{
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

.tariff-card--trial:hover{
  border-color: rgba(255, 255, 255, 0.08);
}

.tariff-card--recommended{
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.04);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.tariff-card--recommended:hover{
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.15);
}

.tariff-card--best-value{
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.03);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.tariff-card--best-value:hover{
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(34, 197, 94, 0.12);
}

/* Адаптив тарифов */
@media (max-width: 1200px){
  .tariffs-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Тарифы на телефонах: компактнее, без «пустых» min-height между строками */
@media (max-width: 768px){
  .tariffs-section{
    --tariff-space-2: 0.25rem;
    --tariff-space-3: 0.5rem;
    --tariff-space-4: 0.625rem;
    --tariff-space-5: 0.75rem;
    --tariff-space-6: 1rem;
  }
  .tariffs-section__title{
    margin-bottom: var(--tariff-space-4);
    font-size: 1.375rem;
  }
  .tariffs-grid{
    grid-template-columns: 1fr;
    gap: var(--tariff-space-3);
  }
  .tariff-card{
    padding: var(--tariff-space-4) var(--tariff-space-5);
    border-radius: var(--tariff-radius);
  }
  .tariff-card__badge-slot{
    min-height: 0;
    margin-bottom: var(--tariff-space-2);
  }
  .tariff-card__badge-slot:not(:has(.tariff-card__badge)){
    display: none;
    margin: 0;
  }
  .tariff-card__name{
    font-size: 0.9375rem;
    margin-bottom: var(--tariff-space-2);
  }
  .tariff-card__price-block{
    min-height: 0;
  }
  .tariff-card__price{
    font-size: 1.375rem;
  }
  .tariff-card--trial .tariff-card__price{
    font-size: 1.125rem;
  }
  .tariff-card__per-month{
    min-height: 0;
    font-size: 0.75rem;
    margin: 0 0 var(--tariff-space-2);
  }
  .tariff-card__per-month:empty{
    display: none;
    margin: 0;
  }
  .tariff-card__savings{
    min-height: 0;
    font-size: 0.6875rem;
    margin: 0 0 var(--tariff-space-2);
  }
  .tariff-card__savings:empty{
    display: none;
    margin: 0;
  }
  .tariff-card__features{
    margin: 0 0 var(--tariff-space-3);
  }
  .tariff-card__feature{
    font-size: 0.8125rem;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    padding-left: 1rem;
  }
  .tariff-card__cta{
    min-height: 0;
  }
  .tariff-card__cta:empty{
    display: none;
  }
  .tariff-card__btn{
    padding: 10px 14px;
    border-radius: 10px;
  }
}

