:root {
    --primary: #ffffff;
    /* Контрастный белый для главных кнопок */
    --primary-text: #000000;
    /* Черный текст внутри белых кнопок */
    --accent: #10b981;
    /* Неоновый зеленый для бейджей и чекбоксов */
    --bg-main: #121212;
    /* Глубокий графитовый/угольный фон всего сайта */
    --bg-card: #1e1e1e;
    /* Матовый темно-серый фон для блоков и карточек */
    --bg-card-hover: #262626;
    /* Графит посветлее для эффекта наведения */
    --bg-selected: #222222;
    /* Фон выбранной карточки */
    --border: #2e2e2e;
    /* Тонкие стальные границы */
    --text-main: #f5f5f7;
    /* Ультра-белый читаемый текст */
    --text-muted: #8e8e93;
    /* Приглушенный серый для описаний */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

header {
    background: #181818;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo::before {
    content: '';
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 38px;
    height: 38px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.hero {
    flex-grow: 1;

    background: radial-gradient(circle at top, #2a2a2a, var(--bg-main));
    color: var(--text-main);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--primary-text);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #e5e5e7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}


.features {
    padding: 80px 0;
    background: #161616;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: #444;
}

.card h3 {
    margin: 15px 0 10px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

.pricing {
    padding: 80px 0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.price-card {
    background: var(--bg-card);
    padding: 30px 20px;
    /* Уменьшили боковые отступы внутри карточки до 20px */
    border-radius: 16px;
    border: 2px solid var(--border);
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: #444446;
    background: var(--bg-card-hover);
}

.price-card.selected {
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-selected);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #000000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-main);
    margin: 20px 0;
    letter-spacing: -1px;
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.price-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d1d6;
    font-size: 15px;
}

.price-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

.select-indicator {
    display: inline-block;
    background: #2c2c2e;
    color: #aeaeb2;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);

    margin-top: auto;
}

.price-card.selected .select-indicator {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.checkout-box {
    max-width: 500px;
    margin: 50px auto 0;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.checkout-box h3 {
    margin-bottom: 20px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: #555555;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.selected-tariff-text {
    font-size: 14px;
    color: #e5e5e7;
    margin-bottom: 20px;
    font-weight: 600;
    background: #2c2c2e;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid var(--border);
}

.payment-methods {
    text-align: center;
    /* margin-top: 40px;  */
    color: var(--text-muted);
    font-size: 13px;
}


.success-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 620px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}


.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #94a3b8, #ffffff, #475569, transparent);
}

.icon-success {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 30px;
}


.features-list {
    text-align: left;
    background-color: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 30px;
    list-style: none;
}

.features-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.features-list li:last-child {
    margin-bottom: 0;
}


.features-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 6px;
    height: 12px;
    border: solid #94a3b8;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.warning-box {
    background-color: var(--bg-card-hover);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 22px;
    text-align: left;
}

.warning-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-box p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
}

.contacts-block {
    border-radius: 8px;
    display: inline-block;
    padding: 0px 3px;
    transition: background-color 0.5s ease, transform 0.3s ease; 
}

/* Класс временной подсветки (активируется через JS) */
.contacts-block.flash-highlight {
    background-color: #ffeb3b; /* Ярко-желтый цвет */
    color: #000;               /* Черный текст для читаемости */
    transform: scale(1.05);    /* Легкое увеличение для привлечения внимания */
}


footer {
    background: #181818;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 13px;
    border-top: 1px solid var(--border);
}

footer .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}

footer a:hover {
    color: var(--text-main);
}

/* Адаптивность */
@media (max-width: 768px) {

    header {
        position: static !important;
    }

    .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links a {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .nav-links {
        display: none !important;
    }

    .price-card {
        max-width: 500px;
        justify-self: center;
    }

    .success-card {
        padding: 40px 10px;
    }
}

@media (max-width: 480px) {

    .hero {
        padding: 50px 0;
    }

    /* .features {
        padding: 40px 0;
    } */

    .pricing {
        padding: 40px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .price-card {
        padding: 25px 15px 20px;
        border-radius: 14px;
    }

    .price-card h3 {
        font-size: 18px;
    }

    .price-card p {
        font-size: 13px;
    }

    .price {
        font-size: 36px;
        /* Было 52px */
        margin: 10px 0;
    }

    .price span {
        font-size: 14px;
    }

    .price-features {
        margin-bottom: 20px;
    }

    .price-features li {
        margin-bottom: 8px;
        font-size: 13px;
        /* Было 15px */
        gap: 8px;
    }

    .price-features li::before {
        font-size: 12px;
    }

    .select-indicator {
        padding: 10px 15px;
        font-size: 13px;
        border-radius: 8px;
    }

    .checkout-box {
        margin-top: 40px;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .checkout-box h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .selected-tariff-text {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 15px;
    }


    .checkout-box .btn {
        padding: 12px 24px;
        font-size: 15px;
        border-radius: 8px;
    }

    .features-list {
        padding: 24px 15px;
    }
}