/* --- Variables --- */
:root {
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --color-bg: #F9FAFB;
    --color-text: #374151;
    --color-heading: #111827;
    --color-primary: #2563EB; /* Royal Blue */
    --color-primary-hover: #1D4ED8;
    --color-accent: #10B981; /* Emerald */
    --color-white: #ffffff;
    --color-light-gray: #E5E7EB;
    --color-footer-bg: #1F2937;
    
    --container-width: 1200px;
    --header-height: 70px;
    --transition: all 0.3s ease;
    --radius: 8px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

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

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-light-gray);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.header__logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

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

.header__nav {
    display: none; /* Mobile First: hidden by default */
}

.header__list {
    display: flex;
    gap: 30px;
}

.header__link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

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

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

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

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__btn {
    display: none; /* Hidden on mobile */
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: -1000px;
    right: 0;
    width: 100%;
    height: 100vh;
    padding-top: 70px;
    background-color: var(--color-white);
    z-index: 200;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.mobile-menu.is-active {
    top: 0;
}

.mobile-menu__container {
    padding: 20px;
    text-align: center;
    position: relative;
}

.mobile-menu__close {
    position: absolute;
    top: -50px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-heading);
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu__link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-heading);
}

.mobile-menu__link--cta {
    color: var(--color-primary);
}

/* --- Desktop Media Query --- */
@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
    
    .header__burger {
        display: none;
    }
    
    .header__btn {
        display: inline-flex;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-light-gray);
    padding: 60px 0 20px;
    margin-top: auto; /* Push to bottom if content is short */
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--color-white);
}

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

.footer__desc {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer__title {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer__link {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer__link:hover {
    opacity: 1;
    color: var(--color-white);
    padding-left: 5px;
}

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

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.8;
}

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Desktop Footer Grid */
@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

/* --- Hero Section --- */
.hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 90vh; /* На весь екран мінус хедер */
    display: flex;
    align-items: center;
}

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

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Typography */
.hero__title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Actions */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.hero__link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-heading);
}

.hero__link-more:hover {
    color: var(--color-primary);
    gap: 12px; /* Анімація стрілки */
}

/* Trust Indicators */
.hero__trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-success { color: var(--color-accent); width: 18px; height: 18px; }
.icon-primary { color: var(--color-primary); width: 18px; height: 18px; }

/* Visual / Canvas */
.hero__visual {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    /* Легка тінь для об'єму */
    filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.1));
}

/* Desktop Media Query */
@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__actions {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    
    .hero__visual {
        height: 600px;
    }
    
    .hero__trust {
        flex-direction: row;
        gap: 24px;
    }
}

/* --- Section Header General --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--color-text);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* --- Stats Section --- */
.stats {
    padding: 80px 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
}

.stats__header {
    text-align: center;
    margin-bottom: 50px;
}

.stats__title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stats__desc {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

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

.stats__number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stats__label {
    font-weight: 500;
    color: var(--color-heading);
}

/* --- Process Section --- */
.process {
    padding: 100px 0;
}

.process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.process__card {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius);
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.process__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

.process__icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.1); /* Emerald tint */
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.process__icon-box i {
    width: 30px;
    height: 30px;
}

.process__card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.process__card-text {
    opacity: 0.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.process__step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-light-gray);
    opacity: 0.3;
    line-height: 1;
    z-index: 1;
}

.process__cta {
    text-align: center;
    margin-top: 60px;
}

/* Media Queries */
@media (min-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- FAQ Section --- */
.faq {
    padding: 80px 0;
    background-color: var(--color-bg);
}

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

.faq__item {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.faq__icon {
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq__item.is-open .faq__icon {
    transform: rotate(180deg);
}

.faq__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.faq__content p {
    padding-bottom: 20px;
    color: var(--color-text);
    opacity: 0.9;
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%); /* Light Blue gradient */
}

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

/* Contact Text Info */
.contact__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact__desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.contact__benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-heading);
}

.contact__benefit-item i {
    color: var(--color-accent);
    width: 20px;
}

/* Contact Form Box */
.contact__form-box {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative; /* For success message absolute positioning if needed */
}

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

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form__input-wrapper {
    position: relative;
}

.form__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    width: 20px;
    height: 20px;
}

.form__input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Left padding for icon */
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Checkbox */
.form__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
}

.form__checkbox {
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.form__checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form__submit {
    width: 100%;
    margin-top: 10px;
    gap: 10px;
}

/* Success Message */
.form-success {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.form-success__icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-heading);
}

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

/* Media Queries */
@media (min-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -300px; /* Сховано за межами екрану */
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 1000;
    transition: bottom 0.5s ease;
    border-top: 1px solid var(--color-light-gray);
}

.cookie-popup.is-visible {
    bottom: 0;
}

.cookie-popup__content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-popup__text {
    font-size: 0.9rem;
    color: var(--color-text);
}

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

.cookie-popup__btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- Legal Pages (Privacy, Terms etc.) --- */
.pages {
    padding: 80px 0; /* Відступ зверху більший через фіксований хедер */
    min-height: 60vh;
}

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

.pages h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-heading);
}

.pages p {
    margin-bottom: 20px;
    color: var(--color-text);
    opacity: 0.9;
    max-width: 800px; /* Щоб текст не розтягувався занадто широко */
}

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

.pages li {
    margin-bottom: 10px;
    color: var(--color-text);
}

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

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

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