/* ------------------- */
/* GLOBAL STYLES       */
/* ------------------- */

:root {
    --bg-color: #F9F9F9;
    --text-color: #2D3748;
    --primary-color: #4A5568;
    --hover-color: #2b3341;
    --border-color: #E2E8F0;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul {
    list-style: none;
}

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

/* ------------------- */
/* HEADER              */
/* ------------------- */

.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.header__logo:hover {
    color: var(--text-color);
}

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

.header__link {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

.header__link:hover::after {
    width: 100%;
}


/* ------------------- */
/* FOOTER              */
/* ------------------- */

.footer {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    color: var(--text-color);
}

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

.footer__logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

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

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

.footer__link {
    font-size: 15px;
}

.footer__list--contacts .footer__link {
    display: inline-block;
}

.footer__address {
    font-size: 15px;
    line-height: 1.7;
    color: var(--primary-color);
}

/* ------------------- */
/* RESPONSIVE          */
/* ------------------- */

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

/* Mobile */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Скроем для будущей реализации мобильного меню */
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer__column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ------------------- */
/* HERO SECTION        */
/* ------------------- */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

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

.hero__text-content {
    z-index: 10;
}

.hero__title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero__description {
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.button {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 15px 30px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* --- Animation Elements --- */
.hero__animation-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 100%;
}

.hero__anim-bg {
    position: absolute;
    width: 320px;
    height: 320px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    opacity: 0; /* Initially hidden */
}

.hero__anim-core {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 5;
    opacity: 0; /* Initially hidden */
}

.hero__anim-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    color: var(--primary-color);
    opacity: 0; /* Initially hidden */
}

.hero__anim-icon svg {
    width: 28px;
    height: 28px;
}

/* ------------------- */
/* RESPONSIVE (Hero)   */
/* ------------------- */

/* Дополняем существующие @media запросы */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__text-content {
        order: 2; /* Текст будет под анимацией */
    }
    .hero__animation-wrapper {
        order: 1;
        margin-bottom: 40px;
        height: 350px;
    }
    .hero__title {
        font-size: 44px;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    .hero__title {
        font-size: 36px;
    }
    .hero__description {
        font-size: 16px;
    }
    .hero__animation-wrapper {
        transform: scale(0.8);
    }
}

/* ------------------- */
/* IDEAS SECTION       */
/* ------------------- */
.ideas {
    padding: 80px 0;
    background-color: #FFFFFF; /* Белый фон для контраста */
}

.ideas__main-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
}

.ideas__subtitle {
    font-size: 18px;
    color: var(--primary-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

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

.ideas__card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateY(20px);
}

.ideas__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ideas__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(45, 55, 72, 0.1);
}

.ideas__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ideas__card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

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

.ideas__card-tag {
    background-color: var(--border-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.ideas__card-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.ideas__card-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--primary-color);
}


/* ------------------- */
/* RESPONSIVE (Ideas)  */
/* ------------------- */
@media (max-width: 992px) {
    .ideas__grid {
        /* Уже 2 колонки, выглядит хорошо */
    }
    .ideas__main-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .ideas__grid {
        grid-template-columns: 1fr;
    }
    .ideas__main-title {
        font-size: 32px;
    }
    .ideas__subtitle {
        font-size: 16px;
    }
}
/* ------------------- */
/* TOOLS SECTION       */
/* ------------------- */
.tools {
    padding: 80px 0;
    background-color: var(--bg-color); /* Такой же фон, как у body */
}

.tools__main-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
}

.tools__subtitle {
    font-size: 18px;
    color: var(--primary-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.tools__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tools__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateX(-30px);
}

.tools__item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.tools__item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(45, 55, 72, 0.07);
}

.tools__item-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--border-color);
}

.tools__item-title {
    font-size: 20px;
    margin-bottom: 5px;
}

.tools__item-description {
    font-size: 15px;
    color: var(--primary-color);
}

.tools__item-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
}

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

.tools__item-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.tools__item-link:hover svg {
    transform: translateX(3px);
}


/* ------------------- */
/* RESPONSIVE (Tools)  */
/* ------------------- */
@media (max-width: 768px) {
    .tools__main-title {
        font-size: 32px;
    }
    .tools__subtitle {
        font-size: 16px;
    }
    .tools__item {
        grid-template-columns: auto 1fr; /* Лого и контент */
        grid-template-rows: auto auto; /* Две строки */
        gap: 15px 20px;
        padding: 25px;
    }
    .tools__item-logo {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }
    .tools__item-content {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
    }
    .tools__item-link {
        grid-row: 2 / 3;
        grid-column: 1 / 3; /* Ссылка на всю ширину */
        justify-content: center;
        background-color: var(--bg-color);
        margin-top: 10px;
    }
}
/* ------------------- */
/* PRACTICE SECTION    */
/* ------------------- */
.practice {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.practice__main-title {
    font-size: 42px;
    margin-bottom: 15px;
}

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

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

.practice__image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    background-color: var(--border-color);
    transition: opacity 0.4s ease-in-out;
}

/* --- Accordion Styles --- */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

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

.accordion__item:last-child {
    border-bottom: none;
}

.accordion__header {
    margin: 0;
    font-size: 18px;
}

.accordion__button {
    /* Reset button styles */
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    text-align: left;
    /* Custom styles */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.accordion__button:hover {
    background-color: var(--bg-color);
}

.accordion__icon {
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-left: 15px;
}

.accordion__item.is-open .accordion__icon {
    transform: rotate(180deg);
}

.accordion__panel {
    display: grid;
    grid-template-rows: 0fr; /* Collapsed by default */
    transition: grid-template-rows 0.4s ease-out;
    background-color: #fff;
}

.accordion__item.is-open .accordion__panel {
    grid-template-rows: 1fr; /* Expanded */
}

.accordion__panel-content {
    overflow: hidden;
    padding: 0 20px 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--primary-color);
}


/* ------------------- */
/* RESPONSIVE (Practice) */
/* ------------------- */
@media (max-width: 992px) {
    .practice__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .practice__visual {
        order: -1; /* Image on top on mobile */
    }
    .practice__main-title {
        font-size: 38px;
        text-align: center;
    }
    .practice__subtitle {
       text-align: center;
       margin-left: auto;
       margin-right: auto;
    }
}

@media (max-width: 768px) {
    .practice__main-title {
        font-size: 32px;
    }
    .accordion__button {
        font-size: 16px;
    }
}

/* ------------------- */
/* ABOUT SECTION       */
/* ------------------- */

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

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Текстовая колонка чуть шире */
    align-items: center;
    gap: 80px;
}

.about__visual {
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateX(-30px);
}

.about__visual.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about__image {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    background-color: var(--border-color);
}

.about__content {
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateX(30px);
}

.about__content.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about__main-title {
    font-size: 42px;
    margin-bottom: 25px;
}

.about__text {
    font-size: 16px;
    color: var(--primary-color);
    line-height: 1.8;
}

.about__text + .about__text {
    margin-top: 20px;
}


/* ------------------- */
/* RESPONSIVE (About)  */
/* ------------------- */
@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about__main-title,
    .about__text {
        text-align: center;
    }
    .about__visual {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about__main-title {
        font-size: 32px;
    }
}
/* ------------------- */
/* CONTACT SECTION     */
/* ------------------- */
.contact {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact__info {
    padding-top: 10px;
}

.contact__main-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.contact__subtitle {
    font-size: 18px;
    color: var(--primary-color);
    line-height: 1.7;
}

/* --- Form Styles --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}
/* Скрываем лэйблы визуально, но оставляем для скринридеров */
.form-label:not(.form-group--captcha .form-label):not(.form-group--checkbox label) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


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

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.form-group--captcha .form-label {
    margin-bottom: 10px;
}
.form-group--captcha .form-label span {
    font-weight: 700;
}

.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--primary-color);
}
.form-group--checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 4px;
    width: 18px;
    height: 18px;
}
.form-group--checkbox a {
    text-decoration: underline;
}
.form-group--checkbox a:hover {
    text-decoration: none;
}

.contact-form__button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin-top: 10px;
}

.form-message {
    display: none; /* Hidden by default */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
.form-message--success {
    background-color: #E6FFFA;
    border: 1px solid #B2F5EA;
    color: #234E52;
}
.form-message--error {
    background-color: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #9B2C2C;
    margin-top: 15px;
}
.form-message h3 {
    margin-bottom: 10px;
}


/* ------------------- */
/* RESPONSIVE (Contact) */
/* ------------------- */
@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact__info {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .contact__main-title {
        font-size: 32px;
    }
}

/* ------------------- */
/* COOKIE POPUP        */
/* ------------------- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background-color: #fff;
    color: var(--text-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 25px rgba(45, 55, 72, 0.15);
    z-index: 2000;
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

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

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

.cookie-popup__text {
    font-size: 14px;
    line-height: 1.6;
}

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

.cookie-popup__button {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    background-color: var(--text-color);
    color: var(--bg-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--hover-color);
}

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

.pages h1 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.pages p, .pages ul {
    font-size: 16px;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pages ul {
    list-style-type: disc;
    padding-left: 25px;
}

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

.pages a {
    text-decoration: underline;
}

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

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