/* ============================================
   GeniusOS — Единый файл стилей
   ============================================ */

/* --- Сброс и базовые стили --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4A6CF7;
    --primary-light: #E8EDFF;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #1A1A2E;
    --text: #4A5568;
    --text-light: #718096;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- SVG Иконки --- */
.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.icon svg {
    width: 26px;
    height: 26px;
}

.icon-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.icon-secondary {
    background: #D1FAE5;
    color: var(--secondary);
}

.icon-accent {
    background: #FEF3C7;
    color: var(--accent);
}

.icon-dark {
    background: #E2E8F0;
    color: var(--dark);
}

.icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Навигация --- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.nav-cta:hover {
    background: #3B5DE7 !important;
    color: var(--white) !important;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #16213E 50%, #0F3460 100%);
    color: var(--white);
    padding: 100px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(74, 108, 247, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 19px;
    margin-bottom: 40px;
    opacity: 0.85;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(74, 108, 247, 0.35);
}

.btn-primary:hover {
    background: #3B5DE7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Секции --- */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Карточки --- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.65;
}

/* --- Научная база --- */
.science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.science-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    text-align: center;
}

.science-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.science-card .role {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.science-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* --- Блог --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card-content {
    padding: 28px;
}

.blog-card .tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.blog-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.blog-card .read-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.blog-card .read-more:hover {
    gap: 8px;
}

/* --- Тесты --- */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.test-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: var(--transition);
}

.test-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.test-card .test-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.test-card .test-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.test-card .test-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.test-card .test-meta span {
    font-weight: 600;
    color: var(--dark);
}

/* --- Тарифы --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 44px;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 4px;
    letter-spacing: -1px;
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0;
}

.pricing-card .price-note {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.pricing-card ul {
    list-style: none;
    margin: 0 0 32px;
}

.pricing-card ul li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-card ul li::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D1FAE5;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

/* --- CTA секция --- */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #0F3460 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 17px;
    opacity: 0.8;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FAQ --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .cards,
    .science-grid,
    .blog-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero {
        padding: 70px 0 80px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .cards,
    .science-grid,
    .blog-grid,
    .pricing-grid,
    .tests-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .pricing-card.featured {
        order: -1;
    }
}