:root {
    --bg-color: #f5f5f0;
    /* Благородный бежевый */
    --accent-color: #2563eb;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(245, 245, 240, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo__dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--accent-color);
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.btn--header {
    background: var(--text-dark);
    color: var(--white);
    font-size: 0.85rem;
}

.btn--header:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #0f0f0f;
    color: var(--white);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer__desc {
    color: #888;
    max-width: 250px;
}

.footer__title {
    font-size: 0.9rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.icon-sm {
    width: 18px;
    color: var(--accent-color);
}

.footer__bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

/* Mobile */
.burger {
    display: none;
}

@media (max-width: 992px) {

    .nav,
    .btn--header {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .burger {
        display: block;
        background: none;
        border: none;
    }
}
/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.text-accent {
    color: var(--accent-color);
}

.hero__text {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero__btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn--primary {
    background: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn--primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.btn--secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn--secondary:hover {
    background: var(--text-dark);
    color: var(--white);
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.stat-item__num {
    display: block;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.stat-item__label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Visual Elements */
.hero__visual {
    position: relative;
    height: 500px;
}

.visual-image {
    width: 100%;
    height: 100%;
    background: #e5e5df;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.visual-circle {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.visual-card {
    position: absolute;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    font-weight: 600;
}

.visual-card__icon {
    color: var(--accent-color);
}

.visual-card--1 {
    top: 20%;
    left: -30px;
}

.visual-card--2 {
    bottom: 15%;
    right: -20px;
}

@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__text {
        margin: 0 auto 40px;
    }

    .hero__btns {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__visual {
        height: 400px;
        margin-top: 40px;
    }
}
/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

.about__header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.about-card--accent {
    background: var(--text-dark);
    color: var(--white);
}

.about-card--accent .about-card__text {
    color: #aaa;
}

.about-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.about-card--accent .about-card__icon {
    background: var(--accent-color);
    color: var(--white);
}

.about-card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.about-card__text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* CTA Banner */
.cta-banner {
    background: var(--accent-color);
    border-radius: 30px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-banner h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-banner p {
    opacity: 0.9;
}

.cta-banner .btn--primary {
    background: var(--white);
    color: var(--accent-color);
    border-color: var(--white);
}

@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}
/* Courses Section */
.courses {
    padding: 100px 0;
    background: #fdfdfb;
    /* Чуть светлее основного бежевого для разделения */
}

.courses__top {
    margin-bottom: 60px;
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.course-card__tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.course-card__img {
    height: 220px;
    background: #eee;
    position: relative;
    overflow: hidden;
}

.course-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card__icon-box {
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.course-card__body {
    padding: 40px 30px 30px;
}

.course-card__body h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: normal;
}

.course-card__body p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.course-card__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.course-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.icon-xs {
    width: 14px;
}

.course-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.course-card__link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.course-card:hover .course-card__img img {
    transform: scale(1.1);
}

/* Vanilla Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .courses__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* Tech Section */
.tech {
    padding: 120px 0;
    background: #0f0f0f;
    color: var(--white);
    overflow: hidden;
}

.tech__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech__content .section-title {
    color: var(--white);
}

.tech__list {
    list-style: none;
    margin-top: 50px;
}

.tech__item {
    display: flex;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
}

.tech__item:hover,
.tech__item.active {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent-color);
}

.tech__num {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.tech__item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    text-transform: none;
}

.tech__item p {
    font-size: 0.9rem;
    color: #888;
}

/* Visual Display */
.tech__display {
    position: relative;
    height: 500px;
    border-radius: 30px;
    background: #1a1a1a;
    border: 8px solid #222;
    overflow: hidden;
}

.tech__screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech__screen.active {
    opacity: 1;
    visibility: visible;
}

.tech__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.tech__floating-tag {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .tech__wrapper {
        grid-template-columns: 1fr;
    }

    .tech__display {
        height: 350px;
    }
}
/* FAQ Section */
.faq {
    padding: 100px 0;
}

.faq__header {
    text-align: center;
    margin-bottom: 60px;
}

.faq__content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.faq-item__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
}

.faq-item__trigger:hover {
    color: var(--accent-color);
}

.faq-item__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
    color: var(--accent-color);
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.faq-item__content p {
    padding-bottom: 25px;
    color: var(--text-light);
    line-height: 1.6;
}

/* State when open */
.faq-item.active .faq-item__trigger {
    color: var(--accent-color);
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-item__content {
    max-height: 200px;
    /* Достаточно для текста */
}
/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--bg-color);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact__details {
    margin-top: 40px;
}

.contact__method {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact__method i {
    color: var(--accent-color);
    width: 24px;
}

.contact__method span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact__method p {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form Styles */
.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input:not([type="checkbox"]) {
    width: 100%;
    padding: 18px 25px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
}

.form-captcha {
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-captcha input {
    width: 80px !important;
    padding: 10px !important;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.form-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: none;
    /* Будет показано через JS */
}

@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px;
    }
}
/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-overlay.active {
    transform: translateY(0);
}

.mobile-nav__list {
    list-style: none;
    text-align: center;
}

.mobile-nav__link {
    display: block;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.burger {
    display: none;
    position: relative;
    width: 30px;
    height: 20px;
    z-index: 1001;
    cursor: pointer;
    background: none;
    border: none;
}

.burger span,
.burger::before,
.burger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.burger::before {
    top: 0;
}

.burger span {
    top: 9px;
}

.burger::after {
    bottom: 0;
}

.burger.active span {
    opacity: 0;
}

.burger.active::before {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active::after {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2000;
    transition: transform 0.5s ease;
}

.cookie-popup.visible {
    transform: translateY(-120px);
}

.cookie-popup__content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-popup p {
    font-size: 0.85rem;
    color: var(--text-light);
    flex: 1;
}

.cookie-popup__icon {
    color: var(--accent-color);
}

@media (max-width: 992px) {
    .burger {
        display: block;
    }
}
/* Обновленный стиль контента */
.faq-item__content {
    height: 0;
    /* Вместо max-height */
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Более плавная кривая */
}

.faq-item__content p {
    padding-bottom: 25px;
    color: var(--text-light);
    line-height: 1.6;
    /* Убедимся, что отступы не ломают расчет высоты */
    margin: 0;
}
.faq-item__content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__content p {
    padding: 10px 0 25px;
    /* Все отступы здесь */
    margin: 0;
}
.form-message.success {
    background: #e8f5e9;
    /* Светло-зеленый фон */
    color: #2e7d32;
    /* Темно-зеленый текст */
    padding: 30px;
    border-radius: 20px;
    display: none;
    /* По умолчанию скрыто, JS поменяет на flex */
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Юридические страницы */
.pages {
    padding: 160px 0 100px;
}

.pages h1 {
    margin-bottom: 40px;
    color: var(--text-dark);
}

.pages h2 {
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.pages p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.pages ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-light);
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: left;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: none;
}

.contact-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 10px;
}

.contact-extra {
    text-align: center;
    padding: 30px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 15px;
}

.contact-extra a {
    color: var(--accent-color);
    font-weight: 600;
}