:root {
    /* Фиксированная палитра (Из ваших референсов) */
    --card-bg-color: #212121;       
    --card-border-color: #262626;   
    --accent-glow-color: #198294;   
    --accent-green: #0DCCBD; 

    /* Размеры (Из ваших референсов) */
    --purchase-title-size: 30;
    --tarif-font-size: 16;
    --tarif-price-size: 20;
    --tarif-card-h: 79;
    --tarif-card-radius: 25;
    --tarif-stroke: 0.5;
    --grid-margin-top: 30;
    --dev-margin-top: 25;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

/* Запрет выделения текста возвращен на уровень всего сайта */
html, body {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.prevent-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.preview-area {
    width: 100%;
    min-height: 100dvh;
    background-color: #000000;
    overflow-x: hidden; 
    overflow-y: visible;
    position: relative;
    display: block;
}

/* Оригинальный градиент */
.glow-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1800px; 
    height: 100vh; 
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(ellipse 484px 244px at calc(50% - 323px) -7px, rgba(0, 217, 255, 1) 0%, rgba(0, 217, 255, 0) 100%),
        radial-gradient(ellipse 484px 244px at calc(50% + 323px) -7px, rgba(0, 255, 225, 1) 0%, rgba(0, 255, 225, 0) 100%);
    background-repeat: no-repeat;
}

.content-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 24px 60px 24px;
    z-index: 2;
    position: relative; 
}

/* 1. ШАПКА САЙТА (Header) */
header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-btn {
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.1s, opacity 0.2s;
    border: none !important;
}

.header-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* 2. ГЛАВНЫЙ ЭКРАН (Hero Section) */
.hero-section {
    padding: 30px 0 40px 0;
    text-align: center;
}

.hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 15px;
    color: #b5b5b5;
    line-height: 1.45;
}

/* Заголовки секций */
.section-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-align: left;
}

/* 3. ТАРИФНЫЕ ПЛАНЫ */
.tariffs-section {
    padding: 20px 0;
}

/* Спецификации без заливки с аккуратной линией */
.basic-specs {
    background: transparent;
    border-radius: 0;
    padding: 0 0 16px 0;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.spec-label {
    color: #b5b5b5;
}

.spec-val {
    font-weight: 600;
}

/* Сетка тарифов (Серая подложка только здесь — как в purchase_style.css) */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: calc(var(--grid-margin-top) * 1px);
}

.tarif-card {
    height: calc(var(--tarif-card-h) * 1px); /* 79px */
    background-color: var(--card-bg-color); /* #212121 */
    border-radius: calc(var(--tarif-card-radius) * 1px); /* 25px */
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    border: none !important; 
    transition: transform 0.1s ease;
}

.tarif-card:active {
    transform: scale(0.98);
}

.tarif-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.tarif-duration { 
    font-size: calc(var(--tarif-font-size) * 1px); /* 16px */
    font-weight: 600; 
}

.badge-discount { 
    background-color: #ffffff; 
    color: #000000; 
    font-size: 11px; 
    font-weight: 700; 
    padding: 2px 6px; 
    border-radius: 100px; 
}

.tarif-price-row { 
    display: flex; 
    align-items: baseline; 
    gap: 6px; 
}

.tarif-price { 
    font-size: calc(var(--tarif-price-size) * 1px); /* 20px */
    font-weight: 700; 
}

.tarif-old-price { 
    font-size: calc(var(--tarif-font-size) * 0.85 * 1px); 
    color: #777777; 
    text-decoration: line-through; 
}

/* 4. ИНСТРУКЦИЯ ПО НАСТРОЙКЕ */
.setup-section {
    padding: 20px 0;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Прозрачные шаги инструкции */
.step-card {
    background: transparent; 
    border-radius: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: none !important; 
}

.step-num {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent-green);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 13.5px;
    color: #b5b5b5;
    line-height: 1.4;
}

/* 5. ГАРАНТИИ И ВОЗВРАТ СРЕДСТВ */
.guarantee-section {
    padding: 20px 0;
}

/* Прозрачная плашка гарантии */
.guarantee-card {
    background: transparent; 
    border-radius: 0;
    padding: 0;
    border: none !important; 
}

.guarantee-desc {
    font-size: 13.5px;
    color: #b5b5b5;
    line-height: 1.45;
}

/* 6. ПОДВАЛ САЙТА (Footer) */
footer {
    margin-top: 40px;
    padding: 24px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.footer-contacts span {
    color: #b5b5b5;
}

.footer-contacts a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 13px;
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.1s;
}

.footer-links a:active {
    color: #ffffff;
}

.footer-copyright {
    font-size: 12px;
    color: #555555;
    margin-top: 10px;
}
