﻿:root {
    --bg-page: #e5ebf2;
    --bg-card: #ffffff;
    --bg-muted: #f3f4f6;
    --accent-start: #7c3aed;
    --accent-end: #4f46e5;
    --accent-soft: rgba(124, 58, 237, 0.12);
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #f9fafb;
    --border-soft: #e5e7eb;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.14);
    --shadow-small: 0 8px 20px rgba(15, 23, 42, 0.12);
    --transition-fast: 0.18s ease-out;
}

/* ===== ОБЩИЕ КАРТОЧКИ ===== */

.accent-card {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border-radius: var(--radius-lg);
    padding: 32px 32px 28px;
    box-shadow: var(--shadow-soft);
    color: var(--text-light);
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* фоны с изображениями для двух фиолетовых блоков */
.accent-card--hero-bg {
    background: linear-gradient(135deg, rgba(88, 60, 203, 0.92), rgba(129, 140, 248, 0.90));
    padding-right: clamp(180px, 34%, 320px);
    min-height: 280px;
    overflow: visible;
}

.accent-card--ucp-bg {
    background: linear-gradient(135deg, rgba(88, 60, 203, 0.92), rgba(129, 140, 248, 0.90));
    padding-right: clamp(200px, 36%, 360px);
    overflow: visible;
}

.accent-card__image {
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    width: clamp(160px, 36%, 340px);
    height: auto;
    max-height: none;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
}

.accent-card__image--hero {
    max-width: 190px;
    right: 10px;
}

.accent-card__image--ucp {
    max-width: 200px;
    right: 10px;
}

/* ===== HERO ===== */

.hero {
    padding: 40px 0 48px;
}

.hero__inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero__content {
    position: relative;
    overflow: visible;
}

.hero__title {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hero__subtitle {
    font-size: 20px;
    color: rgba(249, 250, 251, 0.92);
    max-width: 620px;
    margin-bottom: 20px;
}

.phrase-caveat {
    font-family: "Caveat", cursive;
    font-size: 32px;
    font-weight: 600;
    display: inline-block;
    padding: 0 6px;
    background: rgba(15, 23, 42, 0.25);
    border-radius: 999px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__btn-primary {
    min-width: 150px;
}

.hero__note {
    font-size: 13px;
    opacity: 0.9;
}

.hero__title,
.hero__subtitle,
.hero__actions {
    position: relative;
    z-index: 1;
}

/* блок с 3 колонками под героем */

.hero__summary-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    padding: 18px 20px 16px;
}

.hero-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hero-summary__item {
    padding: 16px 16px 14px;
    border-radius: var(--radius-md);
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* иконка + выравнивание текста по центру */
.hero-summary__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-summary__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 10px;
}

.hero-summary__title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4b5563;
    margin-bottom: 8px;
}

.hero-summary__text {
    font-size: 14px;
    color: #111827;
    line-height: 1.6;
}

/* ===== TOPBAR ===== */

.topbar {
    padding: 16px 0 10px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar__title {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.topbar__subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar__btn {
    font-size: 13px;
    padding-inline: 14px;
}

.topbar__btn--tg .btn__label {
    font-size: 13px;
}

/* ===== КНОПКИ ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn--primary {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #f9fafb;
    box-shadow: var(--shadow-small);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(88, 80, 236, 0.45);
}

.btn--light {
    background: #f9fafb;
    color: #111827;
}

.btn--light:hover {
    background: #ffffff;
    box-shadow: var(--shadow-small);
}

.btn--outline {
    background: transparent;
    color: #111827;
    border: 1px solid rgba(148, 163, 184, 0.9);
}

.btn--outline:hover {
    border-color: #4f46e5;
    color: #111827;
    background: rgba(129, 140, 248, 0.08);
}

.btn--ghost {
    background: transparent;
    color: #111827;
    border-radius: 999px;
    padding-inline: 8px;
}

.btn--ghost:hover {
    background: rgba(148, 163, 184, 0.16);
}

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

.btn--with-icon {
    padding-inline: 16px;
}

.btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.btn__label {
    line-height: 1;
}

/* ===== SECTION ОБЩИЕ ===== */

.section {
    padding: 36px 0;
}

.section--accent {
    padding-top: 10px;
}

.section--muted {
    background: var(--bg-muted);
}

.section--final-cta {
    padding-bottom: 60px;
}

.section-block {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px 24px 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

/* ===== ВТОРОЙ ФИОЛЕТОВЫЙ БЛОК (УЦП) ===== */

.section-accent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-height: 280px;
}

.section-accent__text {
    max-width: 560px;
    flex: 1 1 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section-accent__title {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-accent__subtitle {
    font-size: 16px;
    opacity: 0.96;
    line-height: 1.7;
}

.section-accent__cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.section-accent__note {
    font-size: 13px;
    opacity: 0.9;
}

/* ===== SECTION HEADER ===== */

.section-header {
    margin-bottom: 18px;
}

.section-header__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.section-header__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.section-header__title {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-header__subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 720px;
}

/* ===== GRID / FEATURES ===== */

.grid {
    display: grid;
    gap: 18px;
}

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

.feature-card {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 16px 18px 14px;
    border: 1px solid #e5e7eb;
}

.feature-card__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-card__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.feature-card__text {
    font-size: 14px;
    color: #111827;
    line-height: 1.7;
}

/* ===== ГАЛЕРЕЯ ===== */

.gallery {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.gallery__item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 170px;
    flex: 0 0 170px;
}

.gallery__image {
    width: 100%;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    max-height: 120px;
    object-fit: contain;
}

.gallery__image--pair {
    margin-top: 6px;
}

.gallery__image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

/* Лайтбокс */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.lightbox--open {
    display: flex;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
}

.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 42vh;
    border-radius: 12px;
    background: #ffffff;
    object-fit: contain;
}

.lightbox__image--pair {
    max-height: 42vh;
}

.lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    border: none;
    background: transparent;
    color: #f9fafb;
    font-size: 26px;
    cursor: pointer;
}

.lightbox__controls {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.lightbox__nav {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    background: rgba(249, 250, 251, 0.15);
    color: #f9fafb;
    cursor: pointer;
}

/* ===== PRICING ===== */

.pricing {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 24px;
}

.pricing__info {
    font-size: 14px;
    color: var(--text-main);
}

.pricing__title {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing__text {
    margin-bottom: 10px;
    line-height: 1.7;
}

.pricing__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
}

.pricing__card {
    background: #f9fafb;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    padding: 16px 18px 18px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.pricing__price-block {
    display: grid;
    gap: 4px;
}

.pricing__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

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

.pricing__note {
    font-size: 14px;
}

.pricing__roi {
    font-size: 13px;
    color: #111827;
}

/* ===== ГАРАНТИЯ ===== */

.guarantee__title {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.guarantee__text {
    font-size: 14px;
    line-height: 1.7;
}

/* ===== FAQ ===== */

.faq {
    display: grid;
    gap: 10px;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
}

.faq-item__question {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.faq-item__question-text {
    text-align: left;
    font-size: 14px;
}

.faq-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.faq-item--open .faq-item__icon {
    transform: rotate(45deg);
    background: rgba(129, 140, 248, 0.12);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height var(--transition-fast), padding var(--transition-fast);
}

.faq-item--open .faq-item__answer {
    padding-bottom: 12px;
}

/* ===== FINAL CTA ===== */

.final-cta {
    text-align: center;
}

.final-cta__title {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.final-cta__subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 18px;
}

/* ===== FOOTER ===== */

.footer {
    padding: 20px 0 28px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__brand {
    font-weight: 600;
    font-size: 14px;
}

.footer__note {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== МОДАЛКА ===== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal--open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
    padding: 22px 22px 22px;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.modal__title {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal__subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.form {
    display: grid;
    gap: 10px;
}

.form__group {
    display: grid;
    gap: 4px;
}

.form__label {
    font-size: 13px;
}

.form__input {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 9px 12px;
    font-size: 14px;
}

.form__hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form__status {
    margin-top: 8px;
    font-size: 13px;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 900px) {
    .pricing {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid--features {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-accent {
        flex-direction: column;
    }

    .topbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .accent-card--hero-bg,
    .accent-card--ucp-bg {
        padding-right: 32px;
        min-height: auto;
    }

    .accent-card__image {
        display: none;
    }

    .gallery {
        justify-content: center;
    }

    .gallery__item {
        flex-basis: 45%;
        max-width: 45%;
    }

    .gallery__image {
        max-height: 140px;
    }
}
