:root {
    --bg-dark: #0a0a0c;
    --accent: #a855f7;
    --accent-hover: #c084fc;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    background-image: var(--gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo__text {
    font-family: 'Space Grotesk', sans-serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn--primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header--scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
}

.logo__text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav__link:hover {
    color: var(--accent);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: var(--transition);
}

/* Футер */
.footer {
    padding: 80px 0 40px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__logo {
    margin-bottom: 20px;
}

.footer__description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: white;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer__contacts {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__contacts li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.footer__label {
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Адаптив */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav {
        display: none;
    }

    /* Позже добавим мобильное меню */
    .burger {
        display: block;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}
/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    /* Учитываем хедер */
}

/* Three.js канвас на задний план */
.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    /* Контент поверх канваса */
}

.hero__content {
    max-width: 700px;
}

.hero__subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: rgba(168, 85, 247, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
}

.text-highlight {
    color: var(--accent);
    position: relative;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Второстепенная кнопка */
.btn--secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn--secondary:hover {
    background: var(--glass);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn--secondary:hover .icon-arrow {
    transform: translateX(5px);
}

/* Градиентный оверлей снизу для плавного перехода */
.hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 3;
    pointer-events: none;
}

/* --- АДАПТИВ ДЛЯ HERO --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }

    .hero__content {
        margin: 0 auto;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__title {
        font-size: 2.3rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.9rem;
    }

    .hero__actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }
}
/* --- ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- ТЕХНОЛОГИИ (#tech) --- */
.tech {
    padding: 100px 0;
    position: relative;
}

.tech__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-card__icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.tech-card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.tech-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- ПРОЕКТЫ (#cases) --- */
.projects {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-item {
    background: var(--bg-dark);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.project-item:hover {
    border-color: var(--accent);
}

.project-item__image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-item__image img {
    transform: scale(1.1);
}

.project-item__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-item__content {
    padding: 30px;
}

.project-item__title {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.project-item__description {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-item__link {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.projects__cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--glass);
    border-radius: 20px;
}

.projects__cta p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .project-item__image {
        height: 200px;
    }
}
/* --- AI-SOLUTIONS (#solutions) --- */
.solutions {
    padding: 100px 0;
}

.section-tag {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 30px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.solution-card--featured {
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.05);
    transform: scale(1.05);
    z-index: 2;
}

.solution-card__number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
}

.solution-card__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
}

.solution-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.solution-card__list {
    margin-bottom: 30px;
}

.solution-card__list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-card__list li i {
    color: var(--accent);
    font-size: 0.8rem;
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* --- BLOG (#blog) --- */
.blog {
    padding: 100px 0;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.blog-card {
    background: var(--glass);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    transition: var(--transition);
}

.blog-card__image {
    width: 40%;
    min-width: 200px;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.blog-card__date {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.blog-card__title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-card__more {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

/* Адаптив */
@media (max-width: 1200px) {
    .solution-card--featured {
        transform: scale(1);
    }

    .solutions__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .blog__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .solutions__grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card__image {
        width: 100%;
        height: 200px;
    }
}
/* --- КОНТАКТЫ (#contact) --- */
.contact {
    padding: 100px 0;
    background: var(--bg-dark);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact__details {
    margin-top: 40px;
}

.contact__item {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.contact__item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 50px;
    height: 50px;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact__item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact__item a {
    font-weight: 600;
    font-size: 1.1rem;
}

.contact__form-wrapper {
    background: var(--glass);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.form__group {
    margin-bottom: 20px;
}

.form__input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    transition: var(--transition);
}

.form__input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.captcha {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha__label {
    white-space: nowrap;
    color: var(--accent);
    font-weight: 700;
}

.form__checkbox {
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn--full {
    width: 100%;
}

.form__success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.form__success.active {
    opacity: 1;
    pointer-events: all;
}

.form__success i {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 20px;
}

/* --- МОБИЛЬНОЕ МЕНЮ --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #0f0c29;
    z-index: 2000;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu__list {
    text-align: center;
}

.mobile-menu__list li {
    margin: 25px 0;
}

.mobile-menu__list a {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Space Grotesk';
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 20px 30px;
    z-index: 3000;
    transition: 0.6s ease;
}

.cookie-popup.active {
    bottom: 30px;
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.cookie-popup p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* --- ЮРИДИЧЕСКИЕ СТРАНИЦЫ --- */
.pages {
    padding: 150px 0 100px;
    background: var(--bg-dark);
    min-height: 80vh;
}

.pages h1 {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 40px;
}

.pages h2 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: white;
}

.pages p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.pages ul {
    margin: 20px 0;
    padding-left: 20px;
    list-style: disc;
    color: var(--text-muted);
}

/* Адаптив */
@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}
/* --- СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ --- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.contact-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.2);
}

.contact-card__icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    height: 80px;
    width: 80px;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    word-break: break-all;
}

.contact-address {
    font-style: normal;
    line-height: 1.6;
    color: white;
    font-weight: 500;
}

.contact-extra {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px dashed var(--glass-border);
}

.contact-extra a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}