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

:root {
    --background-color: #F9FAFB;
    --text-color: #111827;
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --footer-bg-color: #1F2937;
    --footer-text-color: #9CA3AF;
    --footer-link-color: #E5E7EB;

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

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul {
    list-style: none;
}

/* HEADER */
.header {
    background-color: var(--background-color);
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(249, 250, 251, 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__logo:hover {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.25rem;
}

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

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

/* FOOTER */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 4rem 0 0;
}

.footer__container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.footer__column--info {
    max-width: 300px;
}

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

.footer__description {
    font-size: 0.9rem;
}

.footer__title {
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

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

.footer__link {
    color: var(--footer-link-color);
    font-size: 0.9rem;
}

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

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

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--footer-link-color);
}

.footer__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.footer__bottom {
    border-top: 1px solid #374151;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}

/* ADAPTIVE STYLES */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Скрываем навигацию на мобильных, позже можно будет сделать бургер-меню */
    }
}

@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
        gap: 3rem;
    }
}

/* BUTTON */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-family: var(--font-family-base);
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

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


/* HERO SECTION */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 4rem 0;
    overflow: hidden;
    text-align: center;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero__content {
    max-width: 750px;
}

.hero__title {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #4B5563; /* Более мягкий цвет для подзаголовка */
}

.hero__button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}


/* ADAPTIVE STYLES FOR HERO */
@media (min-width: 768px) {
    .hero {
        min-height: calc(100vh - 80px); /* 80px - примерная высота хедера */
        text-align: left;
    }
    
    .hero__container {
        justify-content: flex-start;
    }

    .hero__title {
        font-size: 3.5rem;
    }
}

/* SECTION STYLES */
.section {
    padding: 5rem 0;
    border-top: 1px solid #E5E7EB;
}

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

.section__title {
    font-family: var(--font-family-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section__subtitle {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.7;
}

/* AUTOMATION SECTION */
.automation__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Mobile-first: one column */
}

.automation-card {
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.automation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.automation-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #EEF2FF; /* Light violet background */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

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

.automation-card__title {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.automation-card__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4B5563;
}


/* ADAPTIVE STYLES FOR AUTOMATION */
@media (min-width: 640px) {
    .automation__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .automation__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .automation-card {
        text-align: left;
    }
    .automation-card__icon-wrapper {
        margin-left: 0;
    }
}

/* CREATIVITY SECTION */
.creativity {
    background-color: #fff;
}

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

.creativity__tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.creativity__tab-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background-color: transparent;
    color: #4B5563;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s;
    text-align: left;
}

.creativity__tab-button:hover {
    background-color: #F3F4F6;
    color: var(--text-color);
}

.creativity__tab-button.is-active {
    background-color: #EEF2FF;
    color: var(--primary-color);
    border-color: #C7D2FE;
}

.creativity__tab-icon {
    width: 24px;
    height: 24px;
}

.creativity__tab-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.creativity__tab-panel.is-active {
    display: block;
}

.creativity__tab-title {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.creativity__tab-panel p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4B5563;
    max-width: 500px;
}

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

.creativity__image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    background-color: #F3F4F6;
}


/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ADAPTIVE STYLES FOR CREATIVITY */
@media (min-width: 500px) {
    .creativity__tabs-nav {
        flex-direction: row;
    }
    .creativity__tab-button {
        width: auto;
        flex-grow: 1;
        justify-content: center;
    }
    .creativity__tab-button span {
        display: none; /* Show only icons on medium screens to save space */
    }
}


@media (min-width: 768px) {
    .creativity__tab-button span {
        display: inline; /* Show text again on larger screens */
    }
}

@media (min-width: 1024px) {
    .creativity__layout {
        grid-template-columns: 1fr 1fr;
    }
    .creativity__tabs-nav {
        flex-direction: column;
    }
    .creativity__tab-button {
        width: 100%;
        justify-content: flex-start;
    }
}

/* LEARNING SECTION */
.learning__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.learning__image-wrapper {
    display: none; /* Hide image on mobile */
}

.accordion__item {
    border-bottom: 1px solid #E5E7EB;
}

.accordion__button {
    width: 100%;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
}

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

.accordion__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion__content p {
    padding: 0 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #4B5563;
}

/* Open state for accordion */
.accordion__item.is-open .accordion__button {
    color: var(--primary-color);
}

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

.learning__image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
    background-color: #F3F4F6;
}

/* ADAPTIVE STYLES FOR LEARNING */
@media (min-width: 1024px) {
    .learning__layout {
        grid-template-columns: 1fr 1fr;
    }
    .learning__image-wrapper {
        display: flex;
        justify-content: center;
        order: -1; /* Image appears on the left */
    }
}

/* DAILY LIFE SECTION */
.daily-life {
    background-color: #fff;
}

.daily-life__image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.daily-life__image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
    background-color: #F3F4F6;
    border: 8px solid #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.daily-life__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-item__icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    background-color: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item__icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.feature-item__title {
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.feature-item__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4B5563;
}

/* ADAPTIVE STYLES FOR DAILY LIFE */
@media (min-width: 768px) {
    .daily-life__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* CONTACT SECTION */
.contact {
    background-color: #fff;
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.contact__info-text {
    color: #4B5563;
    margin-bottom: 2rem;
    max-width: 450px;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
/* Re-using footer styles for consistency */
.contact__info-list .footer__link {
    color: var(--text-color);
}
.contact__info-list .footer__contact-item {
    color: var(--text-color);
    font-size: 1rem;
}
.contact__info-list .footer__link:hover {
    color: var(--primary-color);
}

.contact__form-wrapper {
    position: relative;
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-input.is-invalid {
    border-color: #EF4444;
}

.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: #4B5563;
}
.form-group--checkbox a {
    text-decoration: underline;
}

.contact__submit-button {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.success-message.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.success-message__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #D1FAE5; /* Green */
    color: #065F46;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.success-message__icon {
    width: 32px;
    height: 32px;
}
.success-message__title {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.success-message__text {
    color: #4B5563;
    max-width: 300px;
}


/* ADAPTIVE STYLES FOR CONTACT */
@media (min-width: 1024px) {
    .contact__layout {
        grid-template-columns: 1fr 1.25fr;
        gap: 5rem;
    }
}

/* COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background-color: var(--footer-bg-color);
    color: var(--footer-link-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 200;
    max-width: 500px;
    transform: translateY(200%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

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

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

.cookie-popup__button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 100%;
}

@media(min-width: 500px) {
    .cookie-popup {
        left: auto;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .cookie-popup__content {
        flex-direction: row;
        align-items: center;
    }
     .cookie-popup__button {
        width: auto;
        flex-shrink: 0;
    }
}

/* STYLES FOR STATIC PAGES (PRIVACY, TERMS, ETC.) */
.pages {
    background-color: #fff;
    padding: 4rem 0;
    min-height: 60vh;
}

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

.pages h1,
.pages h2 {
    font-family: var(--font-family-heading);
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.pages h1 {
    font-size: 2.5rem;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 1rem;
}

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

.pages p,
.pages ul {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

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

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

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

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