/* ------------------- */
/* GLOBAL STYLES       */
/* ------------------- */
:root {
    --bg-color: #0D1117;
    --bg-secondary-color: #30363D;
    --text-color: #E6EDF3;
    --primary-color: #2F81F7;
    --border-color: #30363D;

    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: 'Manrope', sans-serif;

    --container-width: 1140px;
    --container-padding: 1rem;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.3;
}

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

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

ul {
    list-style: none;
}

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

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

/* ------------------- */
/* HEADER              */
/* ------------------- */
.header {
    background-color: var(--bg-color);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(13, 17, 23, 0.8);
}

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

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

.header__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__link {
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.25rem 0;
}

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

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

.header__link--button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.header__link--button:hover {
    background-color: #1f6eeb;
    color: #fff;
    transform: translateY(-2px);
}

.header__link--button::after {
    display: none; /* No underline for button */
}

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

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
    background-color: #010409;
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer__column:first-child {
    grid-column: span 1;
}

.footer__logo {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__description {
    color: #8B949E;
    max-width: 250px;
}

.footer__heading {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__link {
    color: #8B949E;
}

.footer__link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer__list--contacts {
    gap: 1rem;
}

.footer__item--contact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #8B949E;
}

.footer__address {
    font-style: normal;
    color: #8B949E;
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: #8B949E;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be implemented with JS later */
    }

    .header__burger-menu {
        display: block;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__description {
        margin: 0 auto 1.5rem;
    }
    
    .footer__item--contact {
        justify-content: center;
    }
}

/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px); /* Высота экрана минус высота хедера */
    padding: 4rem 0;
    overflow: hidden;
}

.hero__background-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(47, 129, 247, 0.15), rgba(47, 129, 247, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 550px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Стили для анимации текста */
.hero__title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: #a1aab4;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.9rem 2.25rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 129, 247, 0.2);
}

.hero__cta:hover {
    background-color: #1f6eeb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 129, 247, 0.3);
}

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

.hero__img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* Можно добавить эффект */
    animation: float 4s ease-in-out infinite;
}

/* Анимация "парения" для изображения */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}


/* ADAPTIVE STYLES for HERO */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        max-width: 100%;
        order: 2; /* Текст будет под картинкой */
    }
    .hero__visual {
        order: 1; /* Картинка будет над текстом */
        margin-bottom: 3rem;
    }
    .hero__title {
        font-size: 2.75rem;
    }
    .hero__subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: calc(100vh - 70px);
    }
    .hero__title {
        font-size: 2.25rem;
    }
}

/* ------------------- */
/* IDEAS SECTION       */
/* ------------------- */
.ideas {
    padding: 5rem 0;
    background-color: #010409; /* Slightly different background to separate sections */
}

.ideas__container {
    text-align: center;
}

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

.ideas__subtitle {
    font-size: 1.15rem;
    color: #a1aab4;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.ideas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ideas__card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ideas__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.ideas__card-icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: rgba(47, 129, 247, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.ideas__card-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.ideas__card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.ideas__card-description {
    color: #a1aab4;
    font-size: 1rem;
    line-height: 1.6;
}

/* ADAPTIVE STYLES for IDEAS */
@media (max-width: 768px) {
    .ideas {
        padding: 4rem 0;
    }
    .ideas__title {
        font-size: 2rem;
    }
    .ideas__subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
}

/* ------------------- */
/* TOOLS SECTION       */
/* ------------------- */
.tools {
    padding: 5rem 0;
}

.tools__container {
    text-align: center;
}

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

.tools__subtitle {
    font-size: 1.15rem;
    color: #a1aab4;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.tools__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.tools__item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.tools__item:hover {
    background-color: #010409;
    border-color: var(--primary-color);
}

.tools__item-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.tools__item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tools__item-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tools__item-description {
    color: #a1aab4;
    font-size: 0.95rem;
}

.tools__item-difficulty {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.tools__item-difficulty--easy {
    background-color: rgba(31, 136, 61, 0.2);
    color: #3fb950;
}

.tools__item-difficulty--medium {
    background-color: rgba(212, 167, 44, 0.2);
    color: #d4a72c;
}

.tools__item-cta {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s, border-color 0.3s;
}

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


/* ADAPTIVE STYLES for TOOLS */
@media (max-width: 768px) {
    .tools {
        padding: 4rem 0;
    }
    .tools__title {
        font-size: 2rem;
    }
    .tools__item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 1rem 1.5rem;
    }
    .tools__item-logo {
        grid-row: 1 / 2;
    }
    .tools__item-info {
        grid-row: 1 / 2;
    }
    .tools__item-meta {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
        justify-self: start;
    }
    .tools__item-cta {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        justify-self: end;
        width: 100%;
        text-align: center;
    }
}

/* ------------------- */
/* PRACTICE SECTION    */
/* ------------------- */
.practice {
    padding: 6rem 0;
    background-color: #010409;
}

.practice__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

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

.practice__subtitle {
    font-size: 1.15rem;
    color: #a1aab4;
    max-width: 500px;
    margin-bottom: 3rem;
}

.practice__accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.practice__accordion-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.practice__accordion-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-family-base);
    text-align: left;
    cursor: pointer;
}

.practice__accordion-step {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: #fff;
}

.practice__accordion-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-family-heading);
}

.practice__accordion-icon {
    transition: transform 0.3s ease;
}

.practice__accordion-item.active .practice__accordion-icon {
    transform: rotate(180deg);
}

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

.practice__accordion-text {
    padding: 0 1.5rem 1.5rem;
    color: #a1aab4;
    line-height: 1.7;
    font-size: 1rem;
}

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

.practice__img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
}


/* ADAPTIVE STYLES for PRACTICE */
@media (max-width: 992px) {
    .practice__container {
        grid-template-columns: 1fr;
    }
    .practice__visual {
        order: -1; /* Image on top */
        margin-bottom: 3rem;
    }
    .practice__text-content {
        text-align: center;
    }
    .practice__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .practice__accordion-header {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .practice {
        padding: 4rem 0;
    }
    .practice__title {
        font-size: 2rem;
    }
}

/* ------------------- */
/* FAQ SECTION         */
/* ------------------- */
.faq {
    padding: 5rem 0;
}

.faq__container {
    max-width: 800px; /* Делаем контейнер уже для лучшей читаемости */
    margin: 0 auto;
    text-align: center;
}

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

.faq__subtitle {
    font-size: 1.15rem;
    color: #a1aab4;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.faq__accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.faq__accordion-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.faq__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-family-base);
    cursor: pointer;
}

.faq__accordion-title {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-family-heading);
}

.faq__accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq__accordion-item.active .faq__accordion-icon {
    transform: rotate(180deg);
}

.faq__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq__accordion-text {
    padding: 0 1.5rem 1.5rem;
    color: #a1aab4;
    line-height: 1.7;
    font-size: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: -0.25rem;
}

/* ------------------- */
/* CONTACT SECTION     */
/* ------------------- */
.contact {
    padding: 5rem 0;
}

.contact__container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

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

.contact__subtitle {
    font-size: 1.15rem;
    color: #a1aab4;
    margin: 0 auto 3.5rem;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

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

.contact__form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #c9d1d9;
}

.contact__form-input,
.contact__form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #010409;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-family-base);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus,
.contact__form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.3);
}

.contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form-input.error,
.contact__form-textarea.error {
    border-color: #f85149;
}

.contact__form-input--captcha {
    max-width: 150px;
}

.contact__form-checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.contact__form-checkbox {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--primary-color);
}

.contact__form-checkbox-label {
    margin-bottom: 0;
    color: #a1aab4;
}

.contact__form-checkbox-label a {
    text-decoration: underline;
}

.contact__form-submit {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact__form-submit:hover {
    background-color: #1f6eeb;
    transform: translateY(-2px);
}

.contact__form-submit:disabled {
    background-color: #30363D;
    cursor: not-allowed;
}

.contact__form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    display: none; /* Hidden by default */
}

.contact__form-status--success {
    background-color: rgba(31, 136, 61, 0.2);
    color: #3fb950;
    display: block;
}

.contact__form-status--error {
    background-color: rgba(248, 81, 73, 0.2);
    color: #f85149;
    display: block;
}

/* ------------------- */
/* COOKIE POP-UP       */
/* ------------------- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary-color);
    color: var(--text-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 200;
}

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

.cookie-popup__text {
    font-size: 0.95rem;
    color: #a1aab4;
}

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

.cookie-popup__button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: #1f6eeb;
}

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

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

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

.pages h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages p, 
.pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a1aab4;
    margin-bottom: 1rem;
}

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

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

.pages ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 1rem;
}

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