/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    padding: 0.85rem 1.6rem;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
        background 0.25s var(--ease), color 0.25s var(--ease),
        border-color 0.25s var(--ease);
    white-space: nowrap;
}

.btn svg {
    width: 1.15em;
    height: 1.15em;
    transition: transform 0.25s var(--ease);
}

.btn--primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -12px rgba(37, 99, 235, 0.55);
}

.btn--primary:hover svg {
    transform: translateX(3px);
}

.btn--accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -12px rgba(16, 185, 129, 0.5);
}

.btn--accent:hover svg {
    transform: translateX(3px);
}

.btn--ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--brand-100);
    color: var(--brand-strong);
    box-shadow: var(--shadow-sm);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn--block {
    width: 100%;
}

/* ============ Generic card ============ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

/* ============ Feature icon ============ */
.feature-ic {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.feature-ic svg {
    width: 26px;
    height: 26px;
}

.ic-grad-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.ic-grad-2 { background: linear-gradient(135deg, #10b981, #059669); }
.ic-grad-3 { background: linear-gradient(135deg, #6366f1, #4338ca); }
.ic-grad-4 { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.ic-grad-5 { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.ic-grad-6 { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* ============ Advantages grid ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-100);
}

.feature-card h3 {
    font-size: 1.18rem;
}

.feature-card p {
    color: var(--ink-muted);
    font-size: 0.98rem;
}

/* ============ Stats ============ */
.stats {
    background:
        radial-gradient(40rem 24rem at 100% 0%, rgba(16, 185, 129, 0.16), transparent 60%),
        linear-gradient(135deg, var(--brand-deep), var(--brand-night));
    border-radius: var(--r-xl);
    padding: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat .num {
    font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, #fff, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat .lbl {
    margin-top: 0.6rem;
    color: #b6c6ec;
    font-size: 0.98rem;
    font-weight: 500;
}

.stat + .stat {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============ About ============ */
.about__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about__media {
    position: relative;
}

.about__media picture {
    display: block;
    position: relative;
    z-index: 2;
}

.about__photo {
    width: 100%;
    height: auto;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    background: linear-gradient(160deg, #ede9fe, #dbeafe);
}

.about__media::before {
    content: "";
    position: absolute;
    inset: 1.4rem -1.4rem -1.4rem 1.4rem;
    background: linear-gradient(135deg, var(--brand-50), var(--accent-50));
    border-radius: var(--r-xl);
    z-index: 1;
}

.about__signature {
    position: absolute;
    z-index: 3;
    bottom: 1.1rem;
    left: 1.1rem;
    right: 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-md);
}

.about__signature .nm {
    font-weight: 800;
    color: var(--ink);
}

.about__signature .rl {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.about__lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    font-weight: 500;
    margin-bottom: 1.1rem;
}

.about__text p {
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-tint);
    color: var(--brand-deep);
    border: 1px solid var(--brand-100);
    padding: 0.5rem 0.95rem;
    border-radius: var(--r-pill);
    font-size: 0.9rem;
    font-weight: 600;
}

.chip svg {
    width: 16px;
    height: 16px;
    color: var(--accent-strong);
}

/* ============ Pricing ============ */
.pricing-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 0.4rem;
    width: fit-content;
    margin-inline: auto;
    box-shadow: var(--shadow-xs);
}

.pricing-tab {
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.97rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--r-pill);
    transition: color 0.25s var(--ease), background 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

.pricing-tab:hover {
    color: var(--brand-strong);
}

.pricing-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: var(--shadow-brand);
}

.pricing-panel {
    display: none;
    animation: fadeUp 0.45s var(--ease);
}

.pricing-panel.is-active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: auto;
    max-height: min(72vh, 640px);
}

.ptable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.94rem;
}

.ptable th,
.ptable td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
    vertical-align: middle;
}

.ptable thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--surface-muted);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.3;
    border-bottom: 1px solid var(--line);
}

.ptable th:first-child,
.ptable td:first-child {
    text-align: left;
    color: var(--ink-soft);
    min-width: 13rem;
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 4;
    font-weight: 500;
}

.ptable thead th:first-child {
    z-index: 6;
    background: var(--surface-muted);
}

.ptable tbody tr:nth-child(odd) td:first-child {
    background: #fbfcfe;
}

.ptable tbody tr:hover td {
    background: var(--brand-50);
}

.ptable tbody tr:hover td:first-child {
    background: var(--brand-50);
}

.ptable .yes {
    color: var(--accent-strong);
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-50);
}

.ptable .yes svg {
    width: 15px;
    height: 15px;
}

.ptable .no {
    color: var(--ink-faint);
    font-size: 1.1rem;
}

.ptable .row-total td {
    position: sticky;
    bottom: 0;
    z-index: 4;
    background: var(--surface-tint);
    border-top: 2px solid var(--brand-100);
    font-weight: 800;
}

.ptable .row-total td:first-child {
    background: var(--surface-tint);
    color: var(--brand-deep);
}

.ptable .price {
    color: var(--brand-deep);
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ptable--simple td:last-child,
.ptable--simple th:last-child {
    text-align: right;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
}

.pricing-hint {
    text-align: center;
    color: var(--ink-faint);
    font-size: 0.88rem;
    margin-top: 0.9rem;
}

/* ============ Steps ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    counter-reset: step;
}

.step {
    position: relative;
}

.step__num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: var(--shadow-brand);
    margin-bottom: 1.1rem;
}

.step--accent .step__num {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: var(--shadow-accent);
}

.step h3 {
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--ink-muted);
    font-size: 0.96rem;
}

.step__list {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.step__list li {
    display: flex;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--ink-muted);
}

.step__list svg {
    width: 16px;
    height: 16px;
    color: var(--accent-strong);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.step__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand);
    font-weight: 700;
    margin-top: 0.6rem;
    transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.step__link:hover {
    gap: 0.7rem;
    color: var(--brand-strong);
}

.step__link svg {
    width: 16px;
    height: 16px;
}

/* ============ FAQ ============ */
.faq {
    max-width: 50rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item.is-open {
    border-color: var(--brand-100);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 1.4rem;
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--ink);
}

.faq-q .pm {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    display: grid;
    place-items: center;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease),
        color 0.3s var(--ease);
}

.faq-q .pm svg {
    width: 18px;
    height: 18px;
}

.faq-item.is-open .pm {
    transform: rotate(45deg);
    background: var(--brand);
    color: #fff;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq-a__inner {
    padding: 0 1.4rem 1.3rem;
    color: var(--ink-muted);
}

/* ============ Reviews ============ */
.reviews-grid {
    columns: 3 18rem;
    column-gap: 1.3rem;
}

.review {
    break-inside: avoid;
    margin-bottom: 1.3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

.review:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-100);
}

.review__top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.review__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.review__name {
    font-weight: 700;
    color: var(--ink);
}

.review__stars {
    display: inline-flex;
    gap: 2px;
    margin-top: 2px;
    color: var(--spark);
}

.review p {
    color: var(--ink-muted);
    font-size: 0.96rem;
}

.review__quote {
    width: 30px;
    height: 30px;
    color: var(--brand-100);
    margin-bottom: 0.4rem;
}

/* ============ CTA band ============ */
.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(36rem 22rem at 8% 120%, rgba(16, 185, 129, 0.25), transparent 60%),
        linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
    border-radius: var(--r-xl);
    padding: clamp(2.4rem, 5vw, 4rem);
    color: #fff;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: #c7d6f7;
    max-width: 38rem;
    margin: 1rem auto 1.8rem;
    font-size: 1.08rem;
}

.cta-band .btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.cta-band .btn--ghost:hover {
    background: #fff;
    color: var(--brand-deep);
}

.cta-band__glow {
    position: absolute;
    width: 30rem;
    height: 30rem;
    right: -8rem;
    top: -12rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
    border-radius: 50%;
}

/* ============ Contact ============ */
.page-hero {
    background:
        radial-gradient(46rem 26rem at 50% -20%, rgba(37, 99, 235, 0.12), transparent 60%),
        linear-gradient(180deg, #fff, var(--bg));
    text-align: center;
    padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.page-hero h1 {
    margin-top: 1rem;
}

.page-hero p {
    color: var(--ink-muted);
    max-width: 40rem;
    margin: 1.1rem auto 0;
    font-size: 1.1rem;
}

.contact-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem;
    margin-top: 2.4rem;
}

.channel {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        border-color 0.25s var(--ease);
    font-weight: 700;
    color: var(--ink);
}

.channel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-100);
}

.channel__ic {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
}

.channel__ic svg {
    width: 26px;
    height: 26px;
}

.channel .sub {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.ic-tg { background: linear-gradient(135deg, #2aabee, #229ed9); }
.ic-max { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ic-vk { background: linear-gradient(135deg, #0a7cff, #0058c9); }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}

.contact-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-100);
}

.contact-card .feature-ic {
    margin-bottom: 0.6rem;
}

.contact-card h2 {
    font-size: 1.2rem;
}

.contact-card a,
.contact-card p {
    color: var(--ink-muted);
    font-weight: 600;
    transition: color 0.2s var(--ease);
}

.contact-card a:hover {
    color: var(--brand-strong);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .stat + .stat:nth-child(odd) {
        border-left: none;
    }
    .stat:nth-child(3),
    .stat:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 1.5rem;
    }
    .about__grid {
        grid-template-columns: 1fr;
    }
    .about__media {
        max-width: 26rem;
        margin-inline: auto;
        width: 100%;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }
    .reviews-grid {
        columns: 2 16rem;
    }
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 28rem;
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .reviews-grid {
        columns: 1;
    }
    .pricing-tabs {
        width: 100%;
    }
    .pricing-tab {
        flex: 1;
        padding-inline: 0.5rem;
    }
}
