/* GLOBAL STYLES */
:root {
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    --color-bg: #F9F9F7;
    --color-text: #2C2C2C;
    --color-primary: #4A6D7C;
    --color-accent: #E8A87C;
    --color-white: #FFFFFF;
    --color-border: #EAEAEA;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

ul {
    list-style: none;
}

/* HEADER */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    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(--color-text);
}

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

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

.header__nav-link {
    font-size: 16px;
    font-weight: 500;
}

.header__nav-link--button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

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

/* FOOTER */
.footer {
    background-color: var(--color-white);
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
    color: #555;
}

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

.footer__logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    display: inline-block;
    margin-bottom: 15px;
}

.footer__description {
    font-size: 14px;
    line-height: 1.5;
    max-width: 200px;
}

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

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

.footer__link {
    font-size: 15px;
    color: #555;
}

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

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
}

.footer__contact-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
}

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

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Будет реализовано позже с JS */
    }

    .header__burger-menu {
        display: block;
    }

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

    .footer__description {
        margin: 0 auto;
    }
    
    .footer__contact-item {
        justify-content: center;
    }
}

/* HERO SECTION */
.hero {
    padding: 80px 0;
    overflow: hidden; /* To hide elements before animation */
}

.hero__container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero__content {
    flex: 1;
    opacity: 0; /* Initially hidden for JS animation */
    transform: translateY(20px); /* Initially moved down for JS animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

.hero__title-animated {
    color: var(--color-primary);
    position: relative;
    white-space: nowrap;
}

/* Blinking cursor effect */
.hero__title-animated::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--color-accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero__cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta-button:hover {
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 168, 124, 0.3);
}

.hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Initially hidden for JS animation */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s; /* Added delay */
}

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

.hero__image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* ADAPTIVE FOR HERO */
@media (max-width: 992px) {
    .hero__title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero__container {
        flex-direction: column;
        gap: 40px;
    }

    .hero__title {
        font-size: 36px;
    }
    
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* GENERIC SECTION STYLES */
.section {
    padding: 80px 0;
}

.section:nth-of-type(even) {
    background-color: var(--color-white);
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section__subtitle {
    font-size: 18px;
    color: #555;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* FADE-IN ANIMATION ON SCROLL */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* CREATIVITY SECTION */
.creativity__cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.creativity__card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.creativity__card-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-bg);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.creativity__card-icon i {
    width: 28px;
    height: 28px;
}

.creativity__card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.creativity__card-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* ADAPTIVE FOR CREATIVITY SECTION */
@media (max-width: 992px) {
    .section__title {
        font-size: 32px;
    }
    
    .creativity__cards-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* PRODUCTIVITY SECTION */
.productivity__container {
    display: flex;
    gap: 50px;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.productivity__tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    flex-basis: 250px;
}

.productivity__tab-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-body);
    text-align: left;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    color: #555;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.productivity__tab-button i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.productivity__tab-button:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.productivity__tab-button--active {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.productivity__tab-button--active:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.productivity__tabs-content {
    flex-grow: 1;
}

.productivity__tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.productivity__tab-pane--active {
    display: block;
}

.productivity__tab-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.productivity__tab-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.productivity__tab-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* ADAPTIVE FOR PRODUCTIVITY SECTION */
@media (max-width: 992px) {
    .productivity__container {
        flex-direction: column;
        padding: 30px;
    }

    .productivity__tabs-nav {
        flex-direction: row;
        overflow-x: auto; /* For small screens */
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .productivity__tab-title {
        font-size: 22px;
    }
}
/* LEARNING SECTION */
.learning__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.learning__visual {
    width: 100%;
}

.learning__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.learning__accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.learning__accordion-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden; /* Important for max-height transition */
}

.learning__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    color: var(--color-text);
}

.learning__accordion-header span {
    padding-right: 15px;
}

.learning__accordion-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.4s ease;
}

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

.learning__accordion-content p {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Active state for accordion */
.learning__accordion-item--active .learning__accordion-icon {
    transform: rotate(135deg);
}

.learning__accordion-item--active .learning__accordion-content {
    /* max-height will be set by JS */
}


/* ADAPTIVE FOR LEARNING SECTION */
@media (max-width: 992px) {
    .learning__container {
        grid-template-columns: 1fr;
    }

    .learning__visual {
        order: -1; /* Image will be on top */
        max-width: 400px;
        margin: 0 auto;
    }
}
/* HOUSEHOLD SECTION */
.household .container {
    max-width: 900px;
}

.household__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.household__item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--color-white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.household__item-icon {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg);
    color: var(--color-primary);
}

.household__item-icon i {
    width: 24px;
    height: 24px;
}

.household__item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.household__item-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* ADAPTIVE FOR HOUSEHOLD SECTION */
@media (max-width: 768px) {
    .household__item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* CONTACT SECTION */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 50px;
    align-items: flex-start;
}

.contact__info-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact__info-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.contact__info-item i {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.contact__form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    position: relative;
}

.contact__form-group {
    margin-bottom: 20px;
}

.contact__form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

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

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

.contact__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
}

.contact__form-checkbox {
    margin-top: 4px;
    width: 16px;
    height: 16px;
}

.contact__form-checkbox-label {
    font-size: 14px;
    color: #555;
}

.contact__form-button {
    width: 100%;
    padding: 15px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact__form-button:hover {
    background-color: #d8925f;
}

.contact__form-error {
    color: #D32F2F;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.contact__success-message {
    display: none; /* Initially hidden */
    text-align: center;
    padding: 30px;
}

.contact__success-message i {
    width: 50px;
    height: 50px;
    color: #4CAF50;
    margin-bottom: 15px;
}
.contact__success-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ADAPTIVE FOR CONTACT SECTION */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
}
/* COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-popup__text {
    font-size: 15px;
    color: #555;
}

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

.cookie-popup__button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

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

/* ADAPTIVE FOR COOKIE POP-UP */
@media (max-width: 768px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}
/* POLICY PAGES STYLES */
.pages .container {
    max-width: 800px; /* Narrower container for better readability */
    padding-top: 60px;
    padding-bottom: 60px;
}

.pages h1 {
    font-size: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

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

.pages p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

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

.pages li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #444;
}

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

.pages a {
    font-weight: 500;
    text-decoration: underline;
}

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