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

/*=============== CSS VARIABLES ===============*/
:root {
  /* Colors */
  --background-color: #FFFFFF;
  --section-background-color: #F3F4F6;
  --text-color: #111827;
  --text-color-secondary: #6B7280;
  --primary-color: #4f46e5;
  --primary-color-hover: #4338ca;
  --border-color: #E5E7EB;
  --primary-color-light: rgba(79, 70, 229, 0.1);

  /* Typography */
  --font-family-headings: 'Montserrat', sans-serif;
  --font-family-body: 'Roboto', sans-serif;

  /* Other */
  --header-height: 5rem;
  --border-radius: 0.5rem;
  --transition-duration: 0.3s;
}

/*=============== BASE ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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;
  -moz-osx-font-smoothing: grayscale;
}

ul {
  list-style: none;
}

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

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

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

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

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

.header__nav {
    display: block;
}

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

.nav__link {
    font-weight: 500;
    position: relative;
    transition: color var(--transition-duration);
}

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

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-duration);
}

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

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

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

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer__description {
    font-size: 0.9rem;
    max-width: 250px;
}

.footer__title {
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__link {
    transition: color var(--transition-duration);
}

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

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

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

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

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-color);
        transition: right var(--transition-duration) ease-in-out;
    }

    .header__nav.nav--active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        justify-content: center;
        height: 100%;
        gap: 2.5rem;
    }

    .nav__link {
        font-size: 1.25rem;
    }

    .burger {
        display: block;
    }
}

/* style.css (ДОБАВИТЬ В КОНЕЦ ФАЙЛА) */

/*=============== BUTTON ===============*/
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color var(--transition-duration), transform var(--transition-duration);
    border: 2px solid transparent;
}

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

/*=============== HERO ===============*/
.hero {
    padding: 4rem 0;
    background-color: var(--background-color);
    overflow: hidden; /* Для предотвращения появления элементов до анимации */
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    min-height: calc(80vh - var(--header-height));
}

.hero__content {
    /* Для GSAP анимации */
}

.hero__title {
    font-family: var(--font-family-headings);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

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

.hero__image {
    width: 100%;
    max-width: 450px;
    border-radius: var(--border-radius);
}

/*=============== BREAKPOINTS (Hero Section) ===============*/
@media screen and (max-width: 992px) {
    .hero__title {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 2rem 0;
        text-align: center;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero__content {
        order: 2; /* Текст будет под картинкой */
    }
    .hero__image-wrapper {
        order: 1;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
}

/*=============== REUSABLE SECTION HEADER ===============*/
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header__title {
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/*=============== HOW IT WORKS ===============*/
.how-it-works {
    padding: 6rem 0;
    background-color: var(--section-background-color);
}

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

.how-it-works__card {
    background-color: var(--background-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.how-it-works__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.how-it-works__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: var(--primary-color-light);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.how-it-works__icon-wrapper i {
    color: var(--primary-color);
    width: 32px;
    height: 32px;
}

.how-it-works__card-title {
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.how-it-works__card-description {
    color: var(--text-color-secondary);
    line-height: 1.7;
}

/*=============== BREAKPOINTS (How It Works) ===============*/
@media screen and (max-width: 768px) {
    .how-it-works {
        padding: 4rem 0;
    }
    .section-header {
        margin-bottom: 3rem;
    }
    .section-header__title {
        font-size: 2rem;
    }
}

/*=============== AI IN LIFE ===============*/
.ai-in-life {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.ai-in-life__tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.ai-in-life__tab-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: transparent;
    font-family: var(--font-family-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-duration);
}

.ai-in-life__tab-button:hover {
    background-color: var(--section-background-color);
    color: var(--primary-color);
}

.ai-in-life__tab-button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.ai-in-life__tab-button i {
    width: 20px;
    height: 20px;
}

.ai-in-life__content-wrapper {
    position: relative;
    min-height: 350px; /* Reserve space to prevent layout shift */
}

.ai-in-life__content-pane {
    display: none; /* Hidden by default */
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    animation: fadeIn 0.5s ease-in-out;
}

.ai-in-life__content-pane.active {
    display: grid; /* Shown when active */
}

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

.ai-in-life__image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-in-life__image {
    border-radius: var(--border-radius);
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.ai-in-life__content-title {
    font-family: var(--font-family-headings);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ai-in-life__text-container p {
    color: var(--text-color-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/*=============== BREAKPOINTS (AI In Life) ===============*/
@media screen and (max-width: 768px) {
    .ai-in-life {
        padding: 4rem 0;
    }
    .ai-in-life__content-pane {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ai-in-life__image-container {
        margin-bottom: 2rem;
    }
    .ai-in-life__content-title {
        font-size: 1.75rem;
    }
}

/*=============== TOOLS ===============*/
.tools {
    padding: 6rem 0;
    background-color: var(--section-background-color);
}

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

.tools__card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.tools__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.tools__card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tools__card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.tools__card-title {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
}

.tools__card-description {
    color: var(--text-color-secondary);
    flex-grow: 1; /* Pushes the button to the bottom */
    margin-bottom: 2rem;
}

.tools__card-button {
    width: 100%;
    text-align: center;
}

/*=============== BREAKPOINTS (Tools) ===============*/
@media screen and (max-width: 768px) {
    .tools {
        padding: 4rem 0;
    }
}

/*=============== MYTHS ===============*/
.myths {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.myths__accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

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

.myths__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    font-weight: 600;
}

.myths__item-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform var(--transition-duration) ease;
}

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

.myths__item-content p {
    padding-bottom: 1.5rem;
    color: var(--text-color-secondary);
    line-height: 1.7;
}

/* Active state for accordion item */
.myths__item.item--active .myths__item-content {
    /* max-height should be larger than any possible content height */
    max-height: 200px; 
}

.myths__item.item--active .myths__item-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

/*=============== BREAKPOINTS (Myths) ===============*/
@media screen and (max-width: 768px) {
    .myths {
        padding: 4rem 0;
    }
    .myths__item-header {
        font-size: 1.1rem;
    }
}

/*=============== CONTACT ===============*/
.contact {
    padding: 6rem 0;
    background-color: var(--section-background-color);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact__info-title {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact__info-text {
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
}

.contact__info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact__info-list a {
    font-weight: 500;
    transition: color var(--transition-duration);
}

.contact__info-list a:hover {
    color: var(--primary-color);
}

.contact__info-list i {
    color: var(--primary-color);
}

/* Form Styles */
.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

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

.form__input.input--error {
    border-color: #ef4444; /* Red color for error */
}

.form__group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form__group--checkbox input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--primary-color);
}

.form__group--checkbox label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

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

.contact-form__button {
    width: 100%;
}

.form-message {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.form-message i {
    color: #10b981; /* Green for success */
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}
.form-message h4 {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/*=============== BREAKPOINTS (Contact) ===============*/
@media screen and (max-width: 900px) {
    .contact__container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* style.css (ДОБАВИТЬ В КОНЕЦ ФАЙЛА) */

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden below the screen */
    left: 0;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.95); /* Rich Black with transparency */
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1.5rem 0;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0; /* Shown at the bottom */
}

.cookie-popup__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.cookie-popup__button {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    background-color: var(--primary-color);
}

/*=============== BREAKPOINTS (Cookie Popup) ===============*/
@media screen and (max-width: 768px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}

/* style.css (ДОБАВИТЬ В КОНЕЦ ФАЙЛА) */

/*=============== STATIC PAGES (Privacy, Terms, etc.) ===============*/
.pages {
    padding: 4rem 0;
}

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

.pages h1 {
    font-family: var(--font-family-headings);
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.pages h2 {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    line-height: 1.4;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.pages p, .pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-secondary);
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style-type: disc;
    padding-left: 2rem; /* Отступ для маркеров списка */
    margin-bottom: 1.5rem;
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition-duration);
}

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

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