/* Этап 0: Глобальные стили и налаштування */
:root {
    --bg-dark: #111827;
    --bg-light: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --accent: #38BDF8;
    --font-family-main: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul {
    list-style: none;
}

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

/* Этап 1: Хедер (<header>) */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-light);
}

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

.header__logo {
    font-size: 24px;
    font-weight: 700;
}

.header__nav {
    display: none; /* Скрыто на мобильных */
}

.header__burger-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: block; /* Показать на мобильных */
}

/* Стили для мобильного меню (когда оно активно) */
.header__nav--active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 20px;
    border-bottom: 1px solid var(--bg-light);
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header__nav-link {
    font-size: 18px;
    font-weight: 500;
}

/* Адаптивность для планшетов и десктопов */
@media (min-width: 768px) {
    .header__burger-btn {
        display: none; /* Скрыть на десктопах */
    }

    .header__nav {
        display: block; /* Показать на десктопах */
    }

    .header__nav--active {
        all: unset; /* Сброс мобильных стилей */
    }

    .header__nav-list {
        flex-direction: row;
        gap: 30px;
    }
    
    .header__nav-link {
        font-size: 16px;
    }
}

/* Этап 2: Футер (<footer>) */
.footer {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer__column--brand {
    text-align: center;
}

.footer__logo {
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer__copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.footer__link {
    color: var(--text-secondary);
    font-size: 15px;
}

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

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

.footer__address {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* Адаптивность для футера */
@media (min-width: 576px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__column--brand {
        grid-column: 1 / -1; /* Бренд на всю ширину */
    }
}

@media (min-width: 992px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
        gap: 30px;
    }
    .footer__column--brand {
        grid-column: auto;
        text-align: left;
    }
}

/* Этап 3: Hero-секция */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px; /* Отступ для фиксированного хедера */
    overflow: hidden; /* Скрываем части фигур, выходящие за пределы */
    text-align: center;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 750px;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Эффект курсора для анимации печати */
.hero__title::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__cta-btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta-btn:hover {
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

/* Фоновые анимированные фигуры */
.hero__background-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, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0));
    animation: float 20s infinite ease-in-out;
}

.hero__shape--1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-duration: 25s;
}

.hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: 5s;
}

.hero__shape--3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 25%;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
    100% { transform: translateY(0px) scale(1); }
}

/* Адаптивность для Hero */
@media (min-width: 768px) {
    .hero {
        text-align: left;
        justify-content: flex-start;
    }
    
    .hero__content {
        margin: 0;
    }

    .hero__title {
        font-size: 3.5rem; /* 56px */
    }

    .hero__subtitle {
        font-size: 1.25rem; /* 20px */
    }
}

/* Этап 3.1: Секция "Концепции" */

/* Общие стили для секций */
.section-title {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px auto;
    text-align: center;
    line-height: 1.7;
}

.concepts {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.concepts__tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.concepts__tab-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family-main);
    color: var(--text-secondary);
    background-color: transparent;
    border: 1px solid var(--bg-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.concepts__tab-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-dark);
}

.concepts__tab-btn--active {
    color: var(--bg-dark);
    background-color: var(--accent);
    border-color: var(--accent);
}
.concepts__tab-btn--active:hover {
    color: var(--bg-dark);
    background-color: var(--accent);
}

.concepts__tabs-content {
    position: relative;
    background-color: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
}

.concepts__tab-pane {
    display: none; /* Все панели скрыты по умолчанию */
    animation: fadeIn 0.5s ease;
}

.concepts__tab-pane--active {
    display: grid; /* Активная панель отображается как grid */
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.concepts__pane-title {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 15px;
    color: var(--accent);
}

.concepts__pane-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.concepts__pane-image img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптивность для секции */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem; /* 40px */
    }

    .concepts {
        padding: 100px 0;
    }

    .concepts__tabs-content {
        padding: 40px;
    }

    .concepts__tab-pane--active {
        grid-template-columns: 1fr 1fr;
    }
}

/* Этап 3.2: Секция "Инструменты" */
.tools {
    padding: 80px 0;
}

.tools__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.tools__card {
    background-color: var(--bg-light);
    border: 1px solid var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tools__card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.tools__card-icon {
    margin: 0 auto 20px auto;
    width: 50px;
    height: 50px;
    color: var(--accent);
}

/* Стилизация самих иконок SVG внутри */
.tools__card-icon svg {
    width: 100%;
    height: 100%;
}

.tools__card-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    margin-bottom: 10px;
}

.tools__card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Адаптивность для секции */
@media (min-width: 576px) {
    .tools__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tools {
        padding: 100px 0;
    }
    .tools__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Этап 3.3: Секция "Кейсы" */
.cases {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.cases__card {
    background-color: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.cases__card-tag {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cases__card-title {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 10px;
}

.cases__card-description {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Кастомизация элементов управления Swiper */
.swiper-pagination-bullet {
    background-color: var(--text-secondary);
}

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

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent);
    transition: transform 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
}

/* Адаптивность */
@media (min-width: 992px) {
    .cases {
        padding: 100px 0;
    }
}

/* Этап 3.4: Секция "Форматы" */
.formats {
    padding: 80px 0;
}

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

.formats__image-block img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formats__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.formats__list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.formats__item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--accent);
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formats__item-icon svg {
    width: 24px;
    height: 24px;
}

.formats__item-title {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 5px;
}

.formats__item-text p {
    color: var(--text-secondary);
}

/* Адаптивность для секции */
@media (min-width: 992px) {
    .formats {
        padding: 100px 0;
    }
    .formats__content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* Этап 4: Секция контактов */
.contact {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
}

.contact__info-title {
    font-size: 1.75rem;
    margin-bottom: 25px;
}

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

.contact__info-link,
.contact__info-address {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-secondary);
}

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

.contact__info-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

/* Стили формы */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-light);
    border: 1px solid var(--bg-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family-main);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

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

.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.form-group--checkbox label {
    margin-bottom: 0;
    font-size: 14px;
}
.form-group--checkbox a {
    color: var(--accent);
    text-decoration: underline;
}

.contact__submit-btn {
    width: 100%;
    padding: 14px 32px;
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.contact__submit-btn:hover {
    opacity: 0.9;
}

.form-message {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Чтобы нельзя было с ним взаимодействовать, пока он скрыт */
}

.form-message.form-message--visible {
    opacity: 1;
    pointer-events: auto;
}

/* Адаптивность */
@media (min-width: 992px) {
    .contact {
        padding: 100px 0;
    }
    .contact__wrapper {
        grid-template-columns: 1fr 1.2fr;
        gap: 80px;
        padding: 60px;
    }
}

/* Этап 5.1: Cookie Pop-up */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-popup--visible {
    opacity: 1;
    visibility: visible;
}

.cookie-popup__text {
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
}

.cookie-popup__text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-popup__btn {
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cookie-popup__btn:hover {
    opacity: 0.9;
}

@media (min-width: 576px) {
    .cookie-popup {
        flex-direction: row;
        justify-content: space-between;
    }
    .cookie-popup__text {
        text-align: left;
    }
}

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

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

.pages h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--accent);
}

.pages h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.pages ul {
    list-style: disc;
    padding-left: 25px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

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

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

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