/* --- Глобальные настройки и переменные --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@600;700&display=swap');

:root {
    --bg-primary: rgb(16, 24, 39);
    --bg-secondary: rgb(30, 41, 59);
    --accent-primary: rgb(56, 189, 248);
    --accent-hover: rgb(14, 165, 233);
    --text-primary: rgb(203, 213, 225);
    --text-headings: rgb(241, 245, 249);
    --border-color: rgb(51, 65, 85);
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--text-headings);
    line-height: 1.2;
}

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

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

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

ul {
    list-style: none;
}

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

/* --- Хедер --- */
.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(16, 24, 39, 0.8);
}

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

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

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

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

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

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

.header__nav-link--cta {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.header__nav-link--cta:hover {
    background-color: var(--accent-hover);
    color: var(--bg-primary);
}
.header__nav-link--cta::after {
    display: none;
}

.header__burger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-headings);
    cursor: pointer;
}

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

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

.footer__logo {
    font-family: var(--font-headings);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-headings);
    display: inline-block;
    margin-bottom: 15px;
}

.footer__tagline {
    font-size: 14px;
    color: var(--text-primary);
    max-width: 250px;
}

.footer__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    font-size: 14px;
    color: var(--text-primary);
}

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__list--contacts i {
    flex-shrink: 0;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Будет управляться через JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .header__nav.is-active {
        display: block;
    }
    
    .header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .header__burger-btn {
        display: block;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__tagline {
        margin: 0 auto;
    }
    .footer__list--contacts li {
       justify-content: center;
    }
}
/* --- Общие компоненты (Кнопки) --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-headings);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.button--primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.button--primary:hover {
    background-color: var(--accent-hover);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}


/* --- Секция Hero --- */
.hero {
    position: relative;
    min-height: calc(100vh - 85px); /* Высота экрана минус высота хедера */
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-wrapper {
    transition: transform 0.1s ease-out; /* Для плавности параллакса */
}

.hero__image {
    max-width: 450px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

/* --- Анимация фона в Hero --- */
.hero__bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary), transparent 60%);
    opacity: 0.1;
    filter: blur(80px);
}

.hero__shape--1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation: float 15s infinite alternate ease-in-out;
}

.hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 10%;
    animation: float 18s infinite alternate ease-in-out;
    animation-delay: -3s;
}

.hero__shape--3 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 25%;
    animation: float 20s infinite alternate ease-in-out;
    animation-delay: -6s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, -60px) scale(1.1);
    }
}


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

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__content {
        order: 2;
    }
    .hero__visual {
        order: 1;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__image {
        max-width: 350px;
    }
}

/* --- Общие компоненты (Заголовки секций) --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header__subtitle {
    display: inline-block;
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header__title {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header__description {
    font-size: 18px;
    color: var(--text-primary);
}


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

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

.features__card {
    background-color: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.features__card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.features__card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.features__card-icon i {
    width: 28px;
    height: 28px;
}

.features__card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.features__card-text {
    font-size: 15px;
    line-height: 1.7;
}


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

@media (max-width: 768px) {
    .features {
        padding: 80px 0;
    }
    .section-header__title {
        font-size: 30px;
    }
    .section-header__description {
        font-size: 16px;
    }
    .features__grid {
        grid-template-columns: 1fr;
    }
}

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

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

.tech__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech__list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 500;
}

.tech__list-item i {
    color: var(--accent-primary);
    flex-shrink: 0;
}

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

.tech__logo-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.tech__logo-item:hover {
    transform: scale(1.05);
    background-color: var(--border-color);
    color: var(--text-headings);
}

/* --- Адаптивность для Tech --- */
@media (max-width: 992px) {
    .tech__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .tech__content {
        text-align: center;
    }
    .section-header { /* Сбрасываем инлайновые стили */
        text-align: center !important; 
        margin: 0 auto 40px auto !important;
        max-width: 700px !important;
    }
    .tech__list {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .tech__logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech {
        padding: 80px 0;
    }
}

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

.cases-slider {
    width: 100%;
    padding: 20px 0 50px; /* Добавляем отступ снизу для пагинации */
}

.swiper-slide {
    height: auto; /* Позволяет слайдам иметь разную высоту, если нужно */
    display: flex;
    justify-content: center;
}

.cases__card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.cases__card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cases__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cases__card-category {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.cases__card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.cases__card-text {
    font-size: 15px;
    line-height: 1.7;
    flex-grow: 1;
}

/* --- Кастомизация Swiper.js --- */
.swiper-pagination-bullet {
    background-color: var(--border-color);
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-primary);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-primary);
    width: 44px;
    height: 44px;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--accent-hover);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: 900;
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* --- Дополнительный стиль для кнопок --- */
.button--secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.button--secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--text-headings);
}

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

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

.pricing__card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing__card:hover {
    transform: translateY(-10px);
}

.pricing__card--popular {
    position: relative;
    border: 2px solid var(--accent-primary);
    transform: scale(1.05);
}

.pricing__card--popular:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

.pricing__card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 5px 15px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-headings);
}

.pricing__card-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.pricing__card-price {
    font-size: 42px;
    font-weight: 700;
    font-family: var(--font-headings);
    color: var(--text-headings);
    margin-bottom: 10px;
}

.pricing__card-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.pricing__card-description {
    color: var(--text-primary);
    margin-bottom: 30px;
    min-height: 40px;
}

.pricing__card-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing__card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pricing__card-features li i[data-lucide="check"] {
    color: var(--accent-primary);
}

.pricing__card-features li i[data-lucide="x"] {
    color: var(--border-color);
}

.pricing__card .button {
    width: 100%;
}


/* --- Адаптивность для Pricing --- */
@media (max-width: 992px) {
    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .pricing__card--popular {
        transform: scale(1); /* Сбрасываем увеличение на планшетах */
    }
    .pricing__card--popular:hover {
        transform: translateY(-10px); /* Убираем scale, оставляем сдвиг */
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 80px 0;
    }
}

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

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

.contact__details {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--accent-primary);
}

.contact__form-wrapper {
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-headings);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
    margin-top: 5px;
    flex-shrink: 0;
}

.form-group--checkbox label {
    font-size: 14px;
    font-weight: 400;
}

.form-group--checkbox a {
    text-decoration: underline;
}

.contact__form .button {
    width: 100%;
}

.success-message {
    display: none; /* Скрыто по умолчанию */
    text-align: center;
    padding: 40px;
}

.success-message.is-visible {
    display: block; /* Показываем через JS */
}

.success-message__icon {
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.success-message__icon i {
    width: 60px;
    height: 60px;
}

.success-message__title {
    font-size: 24px;
    margin-bottom: 10px;
}

/* --- Адаптивность для Contact --- */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    .contact__info {
        text-align: center;
    }
    .contact__details {
        border-left: none;
        padding-left: 0;
        max-width: 500px;
        margin: 30px auto 0;
    }
}

.button--small {
    padding: 8px 16px;
    font-size: 14px;
}


/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    z-index: 200;
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    font-size: 15px;
}

.cookie-popup__text a {
    text-decoration: underline;
}

/* --- Стили для страниц политик (privacy.html и т.д.) --- */
.pages {
    padding: 80px 0;
}

.pages .container {
    max-width: 800px; /* Узкий контейнер для лучшей читаемости */
}

.pages h1 {
    font-size: 42px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

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

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

.pages li {
    margin-bottom: 10px;
    line-height: 1.8;
}

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

.pages a {
    text-decoration: underline;
}

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

/* --- Адаптивность для Cookie Pop-up --- */
@media (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
    }
}