/* ===== БАЗОВЫЕ СТИЛИ И СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --vk-blue: #4A76A8;
    --vk-blue-dark: #3D638F;
    --vk-blue-light: #5B88BD;
    --vk-white: #FFFFFF;
    --vk-gray: #EDEEF0;
    --vk-text: #222222;
    --vk-text-light: #656565;
    --gold-accent: #FFD700;
    --error-red: #E74C3C;
    --success-green: #27AE60;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--vk-gray);
    color: var(--vk-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== КОНТЕЙНЕРЫ И СЕТКА ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* ===== ШАПКА САЙТА ===== */
.header {
    background: var(--vk-blue);
    color: var(--vk-white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: var(--gold-accent);
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--vk-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.8;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--vk-blue-dark);
    color: var(--vk-white);
}

.btn-primary:hover {
    background: var(--vk-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 118, 168, 0.3);
}

.btn-secondary {
    background: var(--vk-white);
    color: var(--vk-blue);
    border: 1px solid var(--vk-blue);
}

.btn-secondary:hover {
    background: var(--vk-gray);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero {
    background: linear-gradient(135deg, var(--vk-blue) 0%, var(--vk-blue-light) 100%);
    color: var(--vk-white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: var(--vk-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card h2 {
    color: var(--vk-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vk-gray);
}

/* ===== СПИСКИ ===== */
.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--vk-gray);
    position: relative;
    padding-left: 25px;
}

.feature-list li:before {
    content: "✓";
    color: var(--success-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

/* ===== ИЗОБРАЖЕНИЯ ДЛЯ SEO ===== */
.seo-slot-image {
    max-width: 100%;
    margin: 1rem auto;
    text-align: center;
}

.seo-slot-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seo-slot-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.seo-slot-image figcaption {
    margin-top: 0.75rem;
    font-style: italic;
    color: var(--vk-text-light);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== ТАБЛИЦЫ ДЛЯ SEO ===== */
.seo-slots-table-container {
    width: 100%;
    margin: 2rem 0;
    overflow-x: auto;
    background: var(--vk-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.seo-slots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}

.seo-slots-table caption {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--vk-blue);
    padding: 1rem;
}

.seo-slots-table th {
    background-color: var(--vk-blue);
    color: var(--vk-white);
    font-weight: 600;
    text-align: left;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid var(--vk-blue-dark);
}

.seo-slots-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--vk-gray);
    vertical-align: top;
}

.seo-slots-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.seo-slots-table tbody tr:hover {
    background-color: #e8f4fd;
    transition: background-color 0.2s ease;
}

/* ===== СПЕЦИАЛЬНЫЕ ЭЛЕМЕНТЫ ===== */
.promo-badge {
    background: var(--error-red);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}

.warning {
    background: #FFF3CD;
    border: 1px solid #FFEAA7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.bonus-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--vk-blue);
    color: var(--vk-white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-links h3 {
    color: var(--gold-accent);
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--vk-white);
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9em;
}

/* ===== МОБИЛЬНАЯ АДАПТИВНОСТЬ ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--vk-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Планшеты */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2em;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--vk-blue-dark);
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    .auth-buttons.active {
        display: flex;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2em;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1.1em;
        padding: 0 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Адаптивность для таблиц */
    .seo-slots-table thead {
        display: none;
    }
    
    .seo-slots-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--vk-gray);
        border-radius: 8px;
        padding: 0.75rem;
    }
    
    .seo-slots-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.25rem;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }
    
    .seo-slots-table tbody td:last-child {
        border-bottom: none;
    }
    
    .seo-slots-table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        margin-right: 1rem;
        color: var(--vk-blue);
    }
    
    .seo-slots-table caption {
        font-size: 1.1rem;
        padding: 0.75rem 0.5rem;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .seo-slots-table tbody td {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .seo-slots-table tbody td::before {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .seo-slot-image figcaption {
        font-size: 0.85rem;
        padding: 0 5px;
    }
}

/* ===== АНИМАЦИИ И ХОВЕР-ЭФФЕКТЫ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

.hero {
    animation: fadeIn 0.8s ease-out;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}