/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fcfcfc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Первый экран / Hero */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 80px 0;
}

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

.hero-text {
    flex: 1;
}

.badge {
    background-color: #f97316;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.hero-image-block {
    flex: 1;
    text-align: center;
}

.portrait-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border: 4px solid #334155;
    background-color: #1e293b;
    margin-bottom: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.portrait-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4; /* Портретное соотношение сторон */
}

.portrait-caption {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Таймер */
.timer-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
}

.timer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 12px;
}

.timer {
    display: flex;
    gap: 15px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    padding: 10px;
    min-width: 70px;
}

.timer-item span {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.timer-item label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Раздел результатов */
.results {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #f97316;
    margin: 10px auto 0;
    border-radius: 2px;
}

.results-grid {
    display: flex;
    gap: 30px;
}

.result-card {
    flex: 1;
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.result-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.result-before, .result-after {
    flex: 1;
    aspect-ratio: 1 / 1;
    background-color: #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.result-before {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.result-after {
    background: linear-gradient(135deg, #fb923c, #ea580c);
}

.result-desc {
    font-size: 1rem;
    font-style: italic;
    color: #475569;
}

/* Секция Тарифов */
.tariffs {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.tariffs-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* Выравнивание внутри карточек по левому краю */
.tariff-card {
    flex: 1;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    text-align: left; /* Фиксация выравнивания по левому краю */
    position: relative;
}

.tariff-card.featured {
    border: 2px solid #ea580c;
    box-shadow: 0 20px 25px -5px rgba(234, 88, 12, 0.15);
    transform: scale(1.03);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: #ea580c;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.tariff-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
}

.tariff-duration {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 20px;
}

.tariff-price-block {
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-old {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #94a3b8;
}

.price-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
}

.tariff-features {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}

.tariff-features li {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.tariff-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 700;
}

.tariff-features li.highlight {
    font-weight: 700;
    color: #ea580c;
}

.tariff-features li.highlight::before {
    content: "★";
    color: #f59e0b;
}

/* Кнопки */
.btn {
    display: block;
    text-align: center;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0f172a;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

/* Оранжевая кнопка для второго тарифа */
.btn-orange {
    background-color: #ea580c;
    color: #ffffff;
}

.btn-orange:hover {
    background-color: #ca4e0a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(234, 88, 12, 0.3);
}

/* Сравнительная таблица */
.comparison {
    padding: 80px 0;
    background-color: #ffffff;
}

.table-wrapper {
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
}

th, td {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

td {
    color: #334155;
}

tr:last-child td {
    border-bottom: none;
}

td.cross {
    color: #ef4444;
    font-weight: bold;
}

.table-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0f172a;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.table-btn:hover {
    background-color: #1e293b;
}

.table-btn.highlighted {
    background-color: #ea580c;
}

.table-btn.highlighted:hover {
    background-color: #ca4e0a;
}

/* Подвал */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    .tariffs-grid {
        flex-direction: column;
        gap: 40px;
    }
    .tariff-card.featured {
        transform: none;
    }
    .results-grid {
        flex-direction: column;
    }
}
