/* GLOBAL STYLES */
:root {
    --bg-main: #1a1a2e;
    --bg-secondary: #162447;
    --accent-primary: #e94560;
    --text-primary: #f0f0f0;
    --text-secondary: #a7a7a7;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --container-width: 1200px;
    --container-padding: 15px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-header);
    font-weight: 700;
}

.logo {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger__line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 240, 240, 0.1);
}

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

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

.header__nav-link {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 15px;
    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 {
    color: var(--accent-primary);
}

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

/* FOOTER */
.footer {
    background-color: var(--bg-secondary);
    padding: 60px 0;
    border-top: 1px solid rgba(240, 240, 240, 0.1);
}

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

.footer__logo {
    display: inline-block;
    margin-bottom: 15px;
}

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

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

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

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

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ADAPTIVE STYLES */
@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: flex;
        transition: right 0.4s ease-in-out;
    }

    .header__nav.active {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .header__nav-link {
        font-size: 24px;
    }

    .burger {
        display: block;
    }

    .burger.active .burger__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .burger.active .burger__line:nth-child(2) {
        opacity: 0;
    }
    .burger.active .burger__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--contacts .footer__link {
        justify-content: center;
    }
}

/* HERO SECTION */
.hero {
    padding-top: 160px; /* Отступ для фиксированного хедера */
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero__content {
    max-width: 550px;
    flex-shrink: 0;
}

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

.hero__title::after {
    content: '|';
    animation: blink 0.7s infinite;
}

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

.hero__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 15px 35px;
    border-radius: 5px;
    font-family: var(--font-header);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.2);
}

.hero__image-wrapper {
    max-width: 500px;
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    opacity: 0.8;
}

/* ADAPTIVE STYLES FOR HERO */
@media (max-width: 992px) {
    .hero__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
    }
    
    .hero__container {
        flex-direction: column;
    }
    
    .hero__content {
        order: 2; /* Текст будет под картинкой */
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__image-wrapper {
        order: 1; /* Картинка будет над текстом */
        margin-bottom: 40px;
    }
}

/* UTILITY CLASSES */
.section {
    padding: 80px 0;
    overflow: hidden; /* Важно для корректной работы AOS */
}

.section:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

.section__title {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
}

.section__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* VECTOR SECTION */
.vector__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vector__image-wrapper {
    max-width: 500px;
    justify-self: center;
}

.vector__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

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

.vector-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-main);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.vector-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.vector-card__icon {
    flex-shrink: 0;
    color: var(--accent-primary);
    background-color: rgba(233, 69, 96, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vector-card__icon i {
    width: 24px;
    height: 24px;
}

.vector-card__title {
    font-size: 20px;
    margin-bottom: 5px;
}

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


/* ADAPTIVE STYLES FOR VECTOR */
@media (max-width: 992px) {
    .vector__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vector__image-wrapper {
        order: -1; /* Ставим картинку сверху на мобильных */
        max-width: 400px;
    }
}

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

    .section__title {
        font-size: 30px;
    }

    .section__subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

/* SKILLS SECTION */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-card {
    background-color: var(--bg-main);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(240, 240, 240, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.skill-card__icon {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.skill-card__title {
    font-size: 20px;
}

.skill-card__description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    margin: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin 0.4s ease-out;
}

.skill-card:hover .skill-card__description {
    opacity: 1;
    max-height: 100px; /* Достаточно места для 3-4 строк текста */
    margin-top: 15px;
}

/* ADAPTIVE STYLES FOR SKILLS */
@media (max-width: 768px) {
    .skills__grid {
        grid-template-columns: 1fr;
    }
}
/* TOOLS SECTION */
.tools__wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    background-color: var(--bg-main);
    padding: 30px;
    border-radius: 10px;
}

.tools__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid rgba(240, 240, 240, 0.1);
    padding-right: 30px;
}

.tools__nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.tools__nav-btn.active {
    background-color: rgba(233, 69, 96, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.tools__nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tools__content-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

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

.tools__content-pane.active {
    display: grid;
}

.tools__text-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.tools__text-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.tools__image {
    width: 100%;
    border-radius: 8px;
}

/* ADAPTIVE STYLES FOR TOOLS */
@media (max-width: 992px) {
    .tools__wrapper {
        grid-template-columns: 1fr;
    }

    .tools__nav {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(240, 240, 240, 0.1);
        padding-right: 0;
        padding-bottom: 20px;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .tools__content-pane {
        grid-template-columns: 1fr;
    }
    .tools__image-wrapper {
        order: -1;
        margin-bottom: 20px;
    }
    .tools__nav-btn {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }
}

/* CASES SECTION */
.cases-slider__wrapper {
    position: relative;
    padding: 0 40px; /* Оставляем место для стрелок */
}

.case-card {
    background-color: var(--bg-main);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(240, 240, 240, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.case-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.case-card__title {
    font-size: 20px;
    margin-bottom: 5px;
}

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

.case-card__quote {
    font-style: italic;
    color: var(--text-primary);
    padding-left: 20px;
    border-left: 3px solid var(--accent-primary);
    margin-bottom: 20px;
}

.case-card__results {
    list-style: none;
    margin-top: auto; /* Прижимает список к низу карточки */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-card__results li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.case-card__icon {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

/* Swiper custom styles */
.cases-slider__wrapper .swiper-button-next,
.cases-slider__wrapper .swiper-button-prev {
    color: var(--accent-primary);
}

.cases-slider__wrapper .swiper-button-next:after,
.cases-slider__wrapper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

.cases-slider__wrapper .swiper-pagination-bullet {
    background-color: var(--text-secondary);
}

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

/* ADAPTIVE STYLES FOR CASES */
@media (max-width: 768px) {
    .cases-slider__wrapper {
        padding: 0;
    }
    .cases-slider__wrapper .swiper-button-next,
    .cases-slider__wrapper .swiper-button-prev {
        display: none;
    }
}

/* CONTACT SECTION */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: 10px;
}

.contact__form-container {
    position: relative;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-main);
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: #6c757d;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

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

.form-checkbox {
    margin-top: 5px;
    flex-shrink: 0;
}

.form-checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
}
.form-checkbox-label a {
    color: var(--text-primary);
    text-decoration: underline;
}
.form-checkbox-label a:hover {
    color: var(--accent-primary);
}

.contact__btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
}

.form-success-message {
    display: none; /* Initially hidden */
    text-align: center;
    padding: 40px;
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    background-color: rgba(233, 69, 96, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

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

.form-success-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact__info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact__info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact__image-wrapper {
    margin-top: 30px;
}
.contact__image-wrapper img {
    width: 100%;
    border-radius: 8px;
}


/* ADAPTIVE STYLES FOR CONTACT */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .contact__wrapper {
        padding: 20px;
    }
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%); /* Start off-screen */
    max-width: 90%;
    width: 800px;
    background-color: var(--bg-secondary);
    padding: 20px 25px;
    border-radius: 10px;
    border: 1px solid rgba(240, 240, 240, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
}

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

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

.cookie-popup__text a:hover {
    color: var(--accent-primary);
}

.cookie-popup__btn {
    padding: 10px 25px;
    flex-shrink: 0;
}

/* ADAPTIVE STYLES FOR COOKIE POPUP */
@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
    }
}

/* ======================================= */
/* GENERIC PAGES STYLES           */
/* (for privacy.html, terms.html, etc.)    */
/* ======================================= */

.pages {
    padding: 140px 0 80px 0;
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

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

.pages h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.pages h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

.pages li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

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

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

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