@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --bg: #0B0D12;
    --card: rgba(255, 255, 255, 0.04);
    --text: #ffffff;
    --muted: #A1A1AA;
    --primary: #F6E27F;
    --grad: linear-gradient(135deg, #F6E27F, #E3B341);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: auto;
    padding: 0 24px;
}

/* HEADER */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(11, 13, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    transition: transform 0.3s ease;
    max-width: 180px;
    /* Ограничим максимальную ширину */
}

.logo:hover img {
    transform: scale(1.05);
    /* Легкий эффект при наведении */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .logo img {
        height: 35px;
        /* Немного уменьшаем на смартфонах */
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(246, 226, 127, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(227, 179, 65, 0.1), transparent 40%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Настройка фона всей секции */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    /* Высота секции */
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    /* Самый дальний слой */
}

/* Затемнение фона, чтобы текст читался лучше */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Темная вуаль */
    z-index: -1;
}

/* Контейнер для текста и фото */
.hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
    /* Текст слева */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    /* Скругление углов фото */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Тень для объема */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .hero-main {
        flex-direction: column;
        /* На телефонах фото будет под текстом */
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image img {
        max-width: 80%;
    }
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-big {
    background: var(--grad);
    color: #000;
    font-size: 18px;
}

.btn-big:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(227, 179, 65, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 24px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-link {
    color: #fff;
    margin-left: 20px;
    font-weight: 600;
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

.section-head {
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-head p {
    color: var(--muted);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(246, 226, 127, 0.3);
}

.card i {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary);
}

.card.glass {
    backdrop-filter: blur(10px);
}

.card h3,
.card h4 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* COURSE CARD */
/* Контейнер карточек */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Сама карточка */
.course-card {
    background: linear-gradient(145deg, #161a23 0%, #0b0d12 100%);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: rgba(246, 226, 127, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(246, 226, 127, 0.1);
}

/* Блик при наведении */
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.course-card:hover::before {
    left: 100%;
}

/* Заголовок и текст */
.course-card h3 {
    font-size: 28px;
    margin: 15px 0 10px;
    color: #fff;
    font-weight: 700;
}

.course-card p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Бейдж "Курс" */
.course-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(246, 226, 127, 0.1);
    color: #F6E27F;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(246, 226, 127, 0.2);
}

/* Футер карточки */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.price-label {
    display: block;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.price-value {
    font-size: 26px;
    font-weight: 800;
    color: #F6E27F;
}

/* Кнопки */
.course-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: #F6E27F;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #fff;
    transform: scale(1.05);
}

.btn-demo {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #F6E27F;
}

/* CTA */
/* Улучшенный CTA */
.cta {
    background: var(--grad);
    /* Ваш градиент */
    color: #000;
    padding: 100px 20px;
    /* Увеличили внутренние отступы */
    text-align: center;
    border-radius: 40px;
    margin: 80px 20px;
    /* Увеличили внешние отступы */
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
}

.cta p {
    font-size: 18px;
    margin-bottom: 40px;
    /* Отделили текст от кнопки */
    line-height: 1.6;
    opacity: 0.9;
}

/* Футер */
.footer {
    background: #0a0a0a;
    padding: 80px 0 30px;
    border-top: 1px solid #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #F6E27F;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #F6E27F;
    padding-left: 5px;
}

.footer-contacts li {
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #F6E27F;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: #F6E27F;
    color: #000;
    transform: translateY(-5px);
}

/* Нижняя панель футера */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: #555;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #888;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cta h2 {
        font-size: 32px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-box {
    background: #12151E;
    padding: 48px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--muted);
}

.input-group input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 20px;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
    background: var(--grad);
    color: #000;
}

/* ANIMATIONS */
.fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .course-card {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 48px;
    }
}