/*
* Google Fonts:
* font-family: 'Inter', sans-serif;
* font-family: 'Space Grotesk', sans-serif;
*/

:root {
    --bg-color: #0D1117;
    --text-color: #C9D1D9;
    --accent-color: #308DFF;
    --secondary-bg-color: #161B22;
    --border-color: #21262D;
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'Inter', sans-serif;
}

/* --- Глобальные стили и сброс --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Хедер --- */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.header__logo {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.header__nav-list {
    display: flex;
    gap: 30px;
}

.header__nav-link {
    font-size: 16px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

/* --- Футер --- */
.footer {
    padding: 60px 0;
    background-color: var(--secondary-bg-color);
    border-top: 1px solid var(--border-color);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer__column--brand {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.footer__copyright {
    font-size: 14px;
    color: #8B949E;
    margin-top: auto;
}

.footer__title {
    font-family: var(--heading-font);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    color: #8B949E;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer__link:hover {
    color: var(--accent-color);
}

.footer__icon {
    width: 18px;
    height: 18px;
}

.footer__address {
    color: #8B949E;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}


/* --- Адаптивность --- */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* В будущем здесь можно добавить мобильное меню */
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer__container {
        grid-template-columns: 1fr;
    }
}

/* --- Стили для общих компонентов (кнопки и т.д.) --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: #fff;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 16px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- Секция Hero --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px; /* Сдвиг контента из-под хедера */
}

.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: 800px;
    margin: 0 auto;
}

.hero__title {
    font-family: var(--heading-font);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__description {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #a0a8b3; /* Чуть более приглушенный цвет для лучшего контраста */
}

/* --- Адаптивность для Hero --- */
@media (max-width: 768px) {
    .hero__title {
        font-size: 42px;
    }

    .hero__description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 32px;
    }
}

/* --- Стили для общих компонентов (заголовки секций) --- */
.section-title {
    font-family: var(--heading-font);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

/* --- Секция Process --- */
.process {
    padding: 100px 0;
    background-color: var(--secondary-bg-color);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.process-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Добавляем задержку для каждой карточки */
.process-card:nth-child(2).is-visible { transition-delay: 0.2s; }
.process-card:nth-child(3).is-visible { transition-delay: 0.4s; }


.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.process-card__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(48, 141, 255, 0.1);
    margin-bottom: 20px;
}

.process-card__icon i {
    color: var(--accent-color);
    width: 28px;
    height: 28px;
}

.process-card__title {
    font-family: var(--heading-font);
    font-size: 22px;
    margin-bottom: 10px;
}

.process-card__description {
    font-size: 15px;
    color: #a0a8b3;
    line-height: 1.7;
}

/* --- Адаптивность для Process --- */
@media (max-width: 992px) {
    .process__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 34px;
        margin-bottom: 40px;
    }
}

/* --- Секция Concepts --- */
.concepts {
    padding: 100px 0;
    background-color: var(--bg-color); /* Возвращаемся к основному фону */
}

.concepts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.concept-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    aspect-ratio: 3 / 4;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease;
}

.concept-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.concept-card:hover .concept-card__image {
    transform: scale(1.1) translateZ(-50px);
}

.concept-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(13, 17, 23, 0.9) 0%, rgba(13, 17, 23, 0) 100%);
    color: #fff;
    transform: translateZ(50px); /* Выносим текст вперед для 3D эффекта */
}

.concept-card__title {
    font-family: var(--heading-font);
    font-size: 24px;
    margin-bottom: 5px;
}

.concept-card__description {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.9;
}

/* --- Модификатор для кнопки --- */
.btn--outline {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn--outline:hover {
    background-color: var(--accent-color);
    color: #fff;
}


/* --- Секция Materials --- */
.materials {
    padding: 100px 0;
    background-color: var(--secondary-bg-color);
}

.materials__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.materials__info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.materials__description {
    font-size: 16px;
    color: #a0a8b3;
    line-height: 1.7;
}

.materials__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.materials-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.materials-item:hover {
    background-color: #11151c;
}

.materials-item__icon {
    flex-shrink: 0;
    color: var(--accent-color);
}

.materials-item__icon i {
    width: 24px;
    height: 24px;
}

.materials-item__content {
    flex-grow: 1;
}

.materials-item__title {
    font-family: var(--body-font);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.materials-item__details {
    font-size: 14px;
    color: #8B949E;
}


/* --- Адаптивность для Materials --- */
@media (max-width: 992px) {
    .materials__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .materials__info .section-title,
    .materials__info .materials__description {
        text-align: center;
    }
}

/* --- Секция Contact --- */
.contact {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.contact__description {
    max-width: 600px;
    margin: -40px auto 40px;
    text-align: center;
    color: #a0a8b3;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    margin-bottom: 20px;
}

.form-group__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-group__input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(48, 141, 255, 0.2);
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.form-group--checkbox label {
    font-size: 14px;
    color: #a0a8b3;
}

.contact-form__submit {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.form-message {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    display: none; /* Изначально скрыт */
}

.form-message--success {
    background-color: rgba(46, 160, 67, 0.2);
    color: #58a6ff;
    border: 1px solid #3fb950;
}

.form-message--error {
    background-color: rgba(248, 81, 73, 0.2);
    color: #ff9992;
    border: 1px solid #f85149;
}

/* --- Адаптивность для Contact --- */
@media (max-width: 768px) {
    .contact-form__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Стили для Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background-color: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Анимация появления */
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup--visible {
    transform: translateY(0);
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    font-size: 14px;
    color: #a0a8b3;
    flex-grow: 1;
}

.cookie-popup__link {
    text-decoration: underline;
}

.cookie-popup__btn {
    padding: 8px 16px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cookie-popup__content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}


/* --- Стили для стандартных текстовых страниц (политики и т.д.) --- */
.pages {
    padding: 120px 0 60px; /* 120px сверху чтобы контент был под хедером */
}

.pages .container {
    max-width: 800px;
}

.pages h1 {
    font-family: var(--heading-font);
    font-size: 42px;
    margin-bottom: 30px;
}

.pages h2 {
    font-family: var(--heading-font);
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 16px;
    line-height: 1.8;
    color: #a0a8b3;
    margin-bottom: 20px;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.pages li {
    margin-bottom: 10px;
    color: #a0a8b3;
}

.pages strong {
    color: var(--text-color);
    font-weight: 600;
}

.pages a {
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
}