/* ------------------- */
/* GLOBAL STYLES       */
/* ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;800&display=swap');

:root {
    --background-color: #121826;
    --card-background: #1A2233;
    --primary-text-color: #F2F5F9;
    --secondary-text-color: #8D93A0;
    --accent-color: #00F5D4;
    --accent-hover-color: #00e0c4;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-text-color);
}

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

ul {
    list-style: none;
}

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

/* ------------------- */
/* HEADER              */
/* ------------------- */
.header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(141, 147, 160, 0.2);
    position: sticky;
    top: 0;
    background-color: rgba(18, 24, 38, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-text-color);
}

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

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

.header__nav-link:hover {
    color: var(--primary-text-color);
}

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

.header__nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
    padding-top: 60px;
    background-color: var(--card-background);
    border-top: 1px solid rgba(141, 147, 160, 0.2);
    font-size: 15px;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer__logo {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 28px;
    color: var(--primary-text-color);
    margin-bottom: 16px;
    display: inline-block;
}

.footer__tagline {
    color: var(--secondary-text-color);
    max-width: 250px;
}

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

.footer__nav-list,
.footer__legal-list,
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav-link,
.footer__legal-link,
.footer__contact-link {
    color: var(--secondary-text-color);
}

.footer__nav-link:hover,
.footer__legal-link:hover,
.footer__contact-link:hover {
    color: var(--accent-color);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary-text-color);
}

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

.footer__bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(141, 147, 160, 0.2);
    text-align: center;
    font-size: 14px;
    color: var(--secondary-text-color);
}

/* ------------------- */
/* ADAPTIVE STYLES     */
/* ------------------- */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be implemented with JS */
    }
    .header__burger-btn {
        display: block;
    }
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__tagline {
        margin: 0 auto 20px;
    }
    .footer__contact-item {
       justify-content: center;
    }
}

/* ------------------- */
/* BUTTON (reusable)   */
/* ------------------- */
.button {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--background-color);
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
}


/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 0;
}

.hero__container {
    max-width: 800px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Адаптивный размер шрифта */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    min-height: 150px; /* Резервируем место под анимацию */
}

.hero__title span > span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.8) rotateZ(15deg);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.hero__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--secondary-text-color);
    max-width: 650px;
    margin: 0 auto 40px;
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 60px 0;
    }
    .hero__title {
        min-height: 120px;
    }
}

/* ------------------- */
/* REUSABLE COMPONENTS */
/* ------------------- */
.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem); /* 44px */
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

/* ------------------- */
/* PRINCIPLES SECTION  */
/* ------------------- */
.principles {
    padding: 100px 0;
    background-color: var(--card-background);
}

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

.principles__card {
    background-color: var(--background-color);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.principles__card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.principles__card-icon svg {
    width: 100%;
    height: 100%;
}

.principles__card-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 12px;
}

.principles__card-text {
    color: var(--secondary-text-color);
}
/* ------------------- */
/* DIRECTIONS SECTION  */
/* ------------------- */
.directions {
    padding: 100px 0;
}

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

.directions__card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    color: var(--primary-text-color);
    min-height: 450px;
}

.directions__card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.directions__card:hover .directions__card-img {
    transform: scale(1.05);
}

.directions__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(180deg, rgba(18, 24, 38, 0) 0%, rgba(18, 24, 38, 0.8) 40%, #121826 100%);
    display: flex;
    align-items: flex-end;
}

.directions__card-content {
    width: 100%;
}

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

.directions__card-title {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 8px;
}

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

.directions__card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.directions__card:hover .directions__card-link {
    opacity: 1;
    transform: translateY(0);
}

/* --- Adaptive --- */
@media (max-width: 992px) {
    .directions__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .directions__card {
        min-height: 400px;
    }
    .directions__card-title {
        font-size: 1.5rem; /* 24px */
    }
}

/* ------------------- */
/* METHODOLOGY SECTION */
/* ------------------- */
.methodology {
    padding: 100px 0;
    background-color: var(--card-background);
}

.methodology__container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.methodology__visual img {
    border-radius: 12px;
    /* Можно добавить эффект тени для глубины */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Переопределяем общий класс для выравнивания по левому краю */
.methodology__title {
    text-align: left;
    margin-bottom: 40px;
}

.methodology__steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Линия, соединяющая шаги */
.methodology__steps::before {
    content: '';
    position: absolute;
    top: 22px; /* Половина высоты иконки */
    left: 22px;
    width: 2px;
    height: calc(100% - 44px);
    background-color: rgba(141, 147, 160, 0.2);
    z-index: 0;
}

.methodology__step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.methodology__step-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 2px solid rgba(141, 147, 160, 0.2);
    color: var(--accent-color);
}

.methodology__step-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 8px;
}

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

/* --- Adaptive --- */
@media (max-width: 992px) {
    .methodology__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .methodology__title {
        text-align: center;
    }
}
/* ------------------- */
/* REUSABLE TAG        */
/* ------------------- */
.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    background-color: var(--card-background);
    color: var(--secondary-text-color);
    border-radius: 20px;
    border: 1px solid rgba(141, 147, 160, 0.3);
}

/* ------------------- */
/* EXAMPLES SECTION    */
/* ------------------- */
.examples {
    padding: 100px 0;
}

.examples__list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(141, 147, 160, 0.2);
}

.examples__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    border-bottom: 1px solid rgba(141, 147, 160, 0.2);
    transition: background-color 0.3s ease;
    gap: 20px;
}

.examples__item:hover {
    background-color: var(--card-background);
}

.examples__item-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 8px;
    color: var(--primary-text-color);
}

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

.examples__item-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.examples__item-tags {
    display: flex;
    gap: 8px;
}

.examples__item-arrow {
    color: var(--primary-text-color);
    transition: transform 0.3s ease;
}

.examples__item:hover .examples__item-arrow {
    transform: translateX(5px);
    color: var(--accent-color);
}

.examples__footer {
    text-align: center;
    margin-top: 60px;
}


/* --- Adaptive --- */
@media (max-width: 768px) {
    .examples__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .examples__item-meta {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 16px;
    }
    .examples__item-arrow {
        display: none; /* Скрываем стрелку на мобильных */
    }
    .examples__item-title {
        font-size: 1.25rem;
    }
}

/* ------------------- */
/* CONTACT SECTION     */
/* ------------------- */
.contact {
    padding: 100px 0;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background-color: var(--card-background);
    padding: 60px;
    border-radius: 16px;
}

.contact__title {
    text-align: left;
}

.contact__text {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--secondary-text-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--background-color);
    border: 1px solid rgba(141, 147, 160, 0.3);
    border-radius: 8px;
    color: var(--primary-text-color);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--secondary-text-color);
}

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

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: underline;
}

.form-message {
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    display: none; /* Скрыты по умолчанию */
}

.form-message--error {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.form-message--success {
    text-align: center;
    background-color: rgba(0, 245, 212, 0.1);
    border: 1px solid var(--accent-color);
}
.form-message--success h3 {
    color: var(--accent-color);
    margin-bottom: 8px;
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Adaptive --- */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }
    .contact__title {
        text-align: center;
    }
    .contact__text {
        text-align: center;
    }
}

/* ------------------- */
/* COOKIE POPUP        */
/* ------------------- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-background);
    color: var(--primary-text-color);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid rgba(141, 147, 160, 0.2);
    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;
    transform: translateY(200%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

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

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

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}

/* ------------------- */
/* STATIC PAGES (policy, terms etc.) */
/* ------------------- */
.pages {
    padding: 80px 0;
}

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

.pages h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 30px;
}

.pages h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.pages ul, .pages ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--secondary-text-color);
}

.pages li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.7;
}

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

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

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