/* ── Pricing Page — Dark theme ──────────────────────────────────── */

.pricing-page {
    padding-bottom: 0;
}

/* ── Billing Toggle ──────────────────────────────────────────────── */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
}

.billing-toggle__label {
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s cubic-bezier(.4,0,.2,1);
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.billing-toggle__label--active {
    color: var(--text);
    font-weight: 600;
}

.billing-toggle__badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(52,211,153,.2), rgba(52,211,153,.1));
    color: var(--green);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: .02em;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.2); }
    50% { box-shadow: 0 0 0 4px rgba(52,211,153,.08); }
}

.billing-toggle__switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 14px;
    cursor: pointer;
    transition: background .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
    padding: 0;
    flex-shrink: 0;
}

.billing-toggle__switch:hover {
    border-color: rgba(255,255,255,.15);
    box-shadow: 0 0 0 3px rgba(91,138,248,.1);
}

.billing-toggle__switch--on {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
}

.billing-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.billing-toggle__switch--on .billing-toggle__thumb {
    transform: translateX(24px);
}

/* Legacy toggle compat */
.billing-toggle__dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform .2s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.billing-toggle__switch--active .billing-toggle__dot {
    transform: translateX(22px);
}

.billing-toggle__switch--active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.pricing-hero {
    text-align: center;
    padding: 48px 20px 40px;
    position: relative;
}
.pricing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(91,138,248,.08) 0%, transparent 70%);
    pointer-events: none;
}
.pricing-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.2;
    position: relative;
}
.pricing-hero__sub {
    font-size: 1rem;
    color: var(--muted2);
    margin: 0;
    max-width: 440px;
    margin-inline: auto;
    position: relative;
}

/* ── Plans Grid ──────────────────────────────────────────────────── */
.pricing-plans {
    padding: 32px 0 0;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* ── Plan Card — Glassmorphism ───────────────────────────────────── */
.plan-card {
    background: rgba(21,24,35,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
    transition: border-color .2s cubic-bezier(.4,0,.2,1),
                box-shadow .2s cubic-bezier(.4,0,.2,1),
                transform .2s cubic-bezier(.4,0,.2,1);
}
.plan-card:hover {
    border-color: rgba(255,255,255,.15);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    transform: translateY(-4px);
}

/* Popular — Pro card */
.plan-card--popular {
    border-color: rgba(91,138,248,.4);
    box-shadow: 0 0 0 1px rgba(91,138,248,.15), 0 8px 32px rgba(91,138,248,.1);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(91,138,248,.06) 0%, rgba(21,24,35,.7) 40%);
}
.plan-card--popular:hover {
    border-color: rgba(91,138,248,.55);
    box-shadow: 0 0 0 1px rgba(91,138,248,.2), 0 16px 48px rgba(91,138,248,.18);
    transform: scale(1.05) translateY(-4px);
}

/* Current plan */
.plan-card--current {
    border-color: rgba(52,211,153,.4);
}

/* Badge — Popular */
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(91,138,248,.3);
}

/* Card header */
.plan-card__name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
    text-align: center;
}

/* Price — Large display */
.plan-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.plan-card__amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    font-family: var(--mono);
    letter-spacing: -.02em;
}
.plan-card__period {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 400;
}

/* Annual note — hidden by default; shown via pricing.js when annual toggle is active */
.plan-card__annual-note {
    display: none;
    text-align: center;
    margin: -16px 0 24px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--border);
}

/* Comparison table section header cell */
.comparison-section-header__cell {
    background: var(--surface-2, var(--surface));
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    padding: 12px 16px;
}
.plan-card__annual-total {
    display: block;
    font-size: .8rem;
    color: var(--muted2);
    margin-bottom: 4px;
}
.plan-card__annual-save {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(52,211,153,.1);
    padding: 2px 10px;
    border-radius: 8px;
}

/* Features — check/cross */
.plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.plan-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: .85rem;
    color: var(--muted2);
    line-height: 1.5;
}
.plan-card__features li::before {
    content: '\2713';
    color: var(--green);
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
    margin-top: 1px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52,211,153,.1);
    border-radius: 50%;
}
.plan-card__features li.feature-unavailable {
    color: var(--muted);
    opacity: .6;
}
.plan-card__features li.feature-unavailable::before {
    content: '\2715';
    color: var(--red, #f87171);
    background: rgba(248,113,113,.1);
}

/* CTA buttons — full width */
.plan-card__cta {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    border: none;
    font-family: var(--sans);
    min-height: 46px;
}

.plan-card__cta .btn {
    width: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(91,138,248,.2);
}
.btn--primary:hover {
    box-shadow: 0 6px 20px rgba(91,138,248,.35);
    transform: translateY(-1px);
}

/* Gradient CTA for popular plan */
.plan-card--popular .btn--primary {
    background: linear-gradient(135deg, #5ba0ff 0%, #8b6cf7 50%, #5ba0ff 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn--outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(91,138,248,.3);
}
.btn--outline:hover {
    background: rgba(91,138,248,.08);
    border-color: rgba(91,138,248,.5);
    transform: translateY(-1px);
}
.btn--disabled {
    opacity: .5;
    cursor: default;
    pointer-events: none;
    background: var(--surface2);
    color: var(--muted2);
    box-shadow: none;
}

/* ── Comparison Table ────────────────────────────────────────────── */
.pricing-comparison {
    padding: 56px 0 0;
}
.pricing-comparison h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 28px;
}
.table-responsive {
    max-width: 820px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--surface2) transparent;
    scroll-snap-type: x mandatory;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--muted2);
    transition: background .15s;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text);
    position: sticky;
    left: 0;
    background: var(--surface, #151823);
    z-index: 2;
}
.comparison-table thead th {
    background: var(--surface2);
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border2);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 3;
}
.comparison-table thead th:first-child {
    z-index: 4;
}
.comparison-table thead th:nth-child(3) {
    color: var(--accent);
}
.comparison-table tbody tr {
    transition: background .15s;
}
.comparison-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.015);
}
.comparison-table tbody tr:hover {
    background: rgba(91,138,248,.04);
}

.comparison-table span[aria-label="Да"],
.comparison-table span[aria-label="Yes"] {
    color: var(--green);
    font-weight: 700;
    font-size: 1rem;
}
.comparison-table span[aria-label="Нет"],
.comparison-table span[aria-label="No"] {
    color: var(--muted);
    font-size: .85rem;
}

/* Pro column highlight */
.comparison-highlight {
    background: rgba(91, 138, 248, 0.06);
}

.comparison-table th.comparison-highlight {
    color: var(--accent, #5b8af8);
    font-weight: 700;
}

.flag-yes {
    color: var(--green, #3ee8a8);
    font-weight: 700;
    font-size: 1.1em;
}

.flag-no {
    color: var(--muted, #666);
    opacity: 0.5;
}

/* ── FAQ — Smooth accordion ──────────────────────────────────────── */
.pricing-faq {
    padding: 56px 0 0;
}
.pricing-faq h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 28px;
}
.faq-list {
    max-width: 680px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
    background: rgba(21,24,35,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.faq-item[open] {
    border-color: rgba(91,138,248,.3);
    box-shadow: 0 4px 16px rgba(91,138,248,.06);
}
.faq-item summary {
    padding: 16px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background .15s, color .2s;
    min-height: 48px;
}
.faq-item summary:hover {
    background: rgba(91,138,248,.04);
    color: var(--accent);
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform .25s cubic-bezier(.4,0,.2,1), color .2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent);
    background: rgba(91,138,248,.1);
}
.faq-item[open] summary {
    color: var(--accent);
}
.faq-item p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: .9rem;
    color: var(--muted2);
    line-height: 1.7;
    animation: faqReveal .25s ease-out;
}

@keyframes faqReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item p a {
    color: var(--accent);
    text-decoration: none;
}
.faq-item p a:hover {
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 36px 16px 28px;
    }
    .pricing-hero h1 {
        font-size: 1.5rem;
    }
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .plan-card--popular {
        transform: none;
        order: -1;
    }
    .plan-card--popular:hover {
        transform: translateY(-4px);
    }
    .plan-card__amount {
        font-size: 1.75rem;
    }
    .table-responsive {
        scroll-snap-type: x mandatory;
    }
    .comparison-table {
        font-size: .78rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 9px 8px;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .pricing-hero h1 { font-size: 1.3rem; }
    .plan-card { padding: 22px 18px; }
    .billing-toggle { transform: scale(0.92); }
    .comparison-table { font-size: .72rem; }
    .comparison-table th, .comparison-table td { padding: 7px 6px; }
    .pricing-faq summary { font-size: .88rem; padding: 14px 16px; min-height: 44px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .plans-grid {
        gap: 14px;
    }
    .plan-card {
        padding: 24px 18px;
    }
}

/* ── Focus-visible (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--accent, #59a8ff);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ── Status Pages feature spotlight ──────────────────────────────────────── */
.pricing-feature-spotlight {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.pricing-feature-spotlight__inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.pricing-feature-spotlight__icon {
  font-size: 40px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.pricing-feature-spotlight__body {
  flex: 1;
  min-width: 0;
}
.pricing-feature-spotlight__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.pricing-feature-spotlight__desc {
  font-size: 14px;
  color: var(--muted2);
  margin-bottom: 16px;
  line-height: 1.6;
}
.pricing-feature-spotlight__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px 16px;
}
.pricing-feature-spotlight__list li {
  font-size: 13px;
  color: var(--text);
}
.pricing-feature-spotlight__list li::first-letter {
  color: var(--green);
}
.pricing-feature-spotlight__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.pricing-feature-spotlight__cta:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .pricing-feature-spotlight__inner {
    flex-direction: column;
    padding: 20px;
  }
  .pricing-feature-spotlight__list {
    grid-template-columns: 1fr;
  }
}

/* ── Digital Service Delivery & Legal section ───────────────── */
.pricing-delivery {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.pricing-delivery__card {
  padding: 24px 28px;
}
.pricing-delivery__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.pricing-delivery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.pricing-delivery__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pricing-delivery__icon {
  font-size: 20px;
}
.pricing-delivery__item-title {
  font-size: .9rem;
  color: var(--text);
}
.pricing-delivery__item-desc {
  font-size: .82rem;
  color: var(--muted2);
  margin: 4px 0 0;
}
.pricing-delivery__footer {
  font-size: .82rem;
  color: var(--muted2);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.pricing-delivery__link {
  color: var(--accent);
}

/* ── Pricing page testimonials ────────────────────────────────── */
.pricing-testimonials {
  padding: 3rem 1.5rem;
}
.pricing-testimonials__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-testimonials__title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--text);
}
