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

/* ======== CSS VARIABLES ======== */
:root {
    --header-height: 4.5rem;

    /* Colors */
    --background-color: #FFFFFF;
    --text-color: #1A1A1A;
    --primary-color: #7B4BFF;
    --primary-color-hover: #6a3ee6;
    --secondary-color: #F0EBFF;
    --muted-color: #8A8A8A;
    --border-color: #EAEAEA;

    /* Typography */
    --font-family-headings: 'Manrope', sans-serif;
    --font-family-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
}

/* ======== BASE & RESET ======== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

h1, h2, h3 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.2;
}

/* ======== REUSABLE CLASSES ======== */
.container {
    max-width: 1120px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

/* ======== HEADER ======== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header__container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color var(--transition-fast);
}

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


/* ======== MAIN CONTENT AREA ======== */
.main {
    padding-top: var(--header-height);
}


/* ======== FOOTER ======== */
.footer {
    background-color: var(--secondary-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__column--logo {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--muted-color);
    max-width: 250px;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.nav__list--footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__legal-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__contacts {
    font-style: normal;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer__contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--muted-color);
}

/* ======== RESPONSIVENESS ======== */

/* For medium devices */
@media screen and (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .footer__grid {
        /* Logo column takes more space */
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .nav__list {
        gap: 0.5rem 2.5rem;
    }
}

/* ======== BUTTONS ======== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.button--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.button--primary:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(123, 75, 255, 0.25);
}

.button__icon {
    width: 20px;
    height: 20px;
}


/* ======== HERO SECTION ======== */
.hero {
    padding: 4rem 0;
    overflow: hidden;
}

.hero__container {
    display: grid;
    align-items: center;
    gap: 4rem;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--muted-color);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__animation-area-wrapper {
    display: none; /* Скрываем на мобильных устройствах для производительности */
}


/* --- Styles for Animation --- */
.hero__animation-area {
    position: relative;
    width: 100%;
    height: 400px; /* Фиксированная высота для контейнера анимации */
    border-radius: 20px;
    background: radial-gradient(circle, var(--secondary-color) 0%, var(--background-color) 70%);
}

.hero__word {
    position: absolute;
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--muted-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    cursor: default;
    user-select: none;
    transition: color 0.3s, border-color 0.3s;
}

.hero__word:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}


/* --- Responsiveness for Hero --- */
@media screen and (min-width: 768px) {
    .hero {
        padding: 5rem 0;
    }

    .hero__container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero__animation-area-wrapper {
        display: block; /* Показываем на устройствах пошире */
    }
}

@media screen and (min-width: 1024px) {
    .hero__title {
        font-size: 3.25rem;
    }
}

/* ======== GENERIC SECTION STYLES ======== */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: var(--secondary-color);
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--muted-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======== PRACTICES SECTION & CARDS ======== */
.practices__grid {
    display: grid;
    gap: 1.5rem;
    /* Responsive grid: 1 column on mobile, auto-fit on larger screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.card__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.card__icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card__description {
    font-size: 0.95rem;
    color: var(--muted-color);
    line-height: 1.5;
}


/* --- Responsiveness for Sections --- */
@media screen and (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    .section__title {
        font-size: 2.25rem;
    }
    .practices__grid {
        gap: 2rem;
    }
}

/* ======== BUTTONS (Additions) ======== */
.button--outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

.button--outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.button__icon--right {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.button:hover .button__icon--right {
    transform: translateX(3px);
}


/* ======== TOOLS SECTION ======== */
.tools__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tools__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--background-color);
    transition: all var(--transition-fast);
}

.tools__item:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tools__logo {
    flex-shrink: 0;
}

.tools__logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--secondary-color);
    object-fit: cover;
}

.tools__content {
    flex-grow: 1;
}

.tools__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tools__description {
    font-size: 0.9rem;
    color: var(--muted-color);
}

/* --- Responsiveness for Tools --- */
@media screen and (max-width: 576px) {
    .tools__item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .tools__link {
        margin-top: 1rem;
        width: 100%;
    }
}

/* ======== IDEAS SECTION (ACCORDION) ======== */
.accordion {
    max-width: 750px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--background-color);
    overflow: hidden; /* Important for border-radius */
}

.accordion__item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    cursor: pointer;
    background-color: transparent;
    border: none;
    text-align: left;
}

.accordion__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-family-headings);
}

.accordion__icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion__description {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--muted-color);
    line-height: 1.6;
}

/* --- Active State for Accordion --- */
.accordion__item.accordion--active .accordion__header {
    background-color: var(--secondary-color);
}

.accordion__item.accordion--active .accordion__icon {
    transform: rotate(180deg);
}

/* ======== SECURITY SECTION ======== */
.security__container {
    display: grid;
    align-items: center;
    gap: 2rem;
}

.security__visual {
    display: none; /* Скрыто на мобильных, появится на планшетах */
    text-align: center;
}

.security__icon {
    width: 120px;
    height: 120px;
    color: var(--primary-color);
    opacity: 0.2;
}

.security__header--left {
    text-align: left;
    margin-bottom: 2rem;
}

.security__header--left .section__subtitle {
    margin-left: 0;
    margin-right: 0;
}

.security__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security__item-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Добавляем маленькую иконку перед заголовком пункта */
.security__item-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}


.security__item-description {
    color: var(--muted-color);
    font-size: 0.95rem;
    padding-left: 18px; /* Отступ, чтобы текст был под заголовком */
}


/* --- Responsiveness for Security --- */
@media screen and (min-width: 768px) {
    .security__container {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
    .security__visual {
        display: block;
    }
}

/* ======== CONTACT SECTION ======== */
.contact__wrapper {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact__form-grid {
    display: grid;
    gap: 1.5rem;
}

.contact__form-group {
    margin-bottom: 1.5rem;
}

.contact__form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact__form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

/* --- Captcha & Checkbox --- */
.contact__form-group--captcha {
    margin-top: 1rem;
}

#captcha-label {
    font-weight: 600;
}

.contact__form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

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

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

.contact__form-button {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* --- Form Messages --- */
.contact__form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}

.contact__form-message--success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.contact__form-message--error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}


/* --- Responsiveness for Contact Form --- */
@media screen and (min-width: 576px) {
    .contact__form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact__wrapper {
        padding: 2.5rem;
    }
}

/* ======== COOKIE CONSENT ======== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: #fff;
    padding: 1.5rem 0;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-consent__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-consent__text {
    font-size: 0.9rem;
}

.cookie-consent__text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent__button {
    flex-shrink: 0; /* Чтобы кнопка не сжималась */
}

/* --- Responsiveness for Cookie Consent --- */
@media screen and (max-width: 768px) {
    .cookie-consent__container {
        flex-direction: column;
        text-align: center;
    }
}

/* ======== GENERIC PAGES (TERMS, PRIVACY, ETC.) ======== */
.pages {
    padding: 4rem 0;
    background-color: var(--background-color);
}

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

.pages h1,
.pages h2,
.pages h3 {
    color: var(--text-color);
    font-family: var(--font-family-headings);
    line-height: 1.3;
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pages p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.pages ul,
.pages ol {
    padding-left: 20px;
    margin-bottom: 1rem;
    color: var(--muted-color);
}

.pages li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

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

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

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

/* --- Responsiveness for Pages --- */
@media screen and (min-width: 768px) {
    .pages {
        padding: 5rem 0;
    }
    .pages h1 {
        font-size: 3rem;
    }
}