/* --- Variables & Reset --- */
:root {
    --color-primary: #2c3e50;   /* Темно-синій/Графіт */
    --color-accent: #1abc9c;    /* Бірюза */
    --color-accent-hover: #16a085;
    --color-bg: #ecf0f1;        /* Світло-сірий */
    --color-white: #ffffff;
    --color-text: #34495e;
    --color-text-light: #95a5a6;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

*, *::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);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header__nav {
    display: none;
}

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

.header__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
}

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

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

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

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

.header__btn {
    display: none;
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.is-active {
    transform: translateX(0);
}

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

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

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

/* --- Main Placeholder --- */
.main {
    flex: 1;
    padding-top: var(--header-height); /* Відступ під фіксований хедер */
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
    margin-top: auto;
}

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

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

.footer__desc {
    color: #bdc3c7;
    font-size: 14px;
    max-width: 300px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: #bdc3c7;
    font-size: 14px;
}

.footer__links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #bdc3c7;
    font-size: 14px;
}

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
}

/* --- Desktop Media Query --- */
@media (min-width: 992px) {
    .header__nav {
        display: block;
    }

    .header__btn {
        display: inline-block;
    }

    .header__burger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

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

/* Hero Content */
.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(26, 188, 156, 0.15);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0; /* Для анімації */
    transform: translateY(20px);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.hero__title span {
    display: block;
    opacity: 0; /* Для анімації */
    transform: translateY(30px);
}

.hero__desc {
    font-size: 18px;
    color: #576574;
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0; /* Для анімації */
}

.hero__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    opacity: 0; /* Для анімації */
}

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

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Stats */
.hero__stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    padding-top: 30px;
    opacity: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* Hero Visual & Animation Elements */
.hero__visual {
    position: relative;
    opacity: 0; /* Для анімації */
}

.hero__image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 2;
}

.hero__img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.1); /* Для ефекту зуму */
}

/* Сітка для анімації поверх картинки */
.hero__overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    pointer-events: none;
}

.grid-item {
    background-color: var(--color-accent);
    opacity: 0;
    transform: scale(0);
}

.hero__circle {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background-color: var(--color-accent);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    filter: blur(60px);
}

/* Mobile Adaptive */
@media (max-width: 991px) {
    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__desc, .hero__actions {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 32px;
    }
    
    .hero__actions {
        flex-direction: column;
    }
}

/* --- Common Section Styles --- */
.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: #7f8c8d;
}

/* --- Strategies Grid --- */
.strategies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.strategy-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.strategy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--color-accent);
}

.strategy-card__icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(236, 240, 241, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-primary);
    transition: var(--transition);
}

.strategy-card__icon-box i {
    width: 28px;
    height: 28px;
}

.strategy-card:hover .strategy-card__icon-box {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: rotateY(360deg); /* Цікавий ефект обертання іконки */
}

.strategy-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.strategy-card__text {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.7;
}

/* --- Scroll Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Innovations Section --- */
.innovation-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.innovation-row:last-child {
    margin-bottom: 0;
}

.innovation-row--reverse {
    flex-direction: row-reverse;
}

/* Visual Side */
.innovation-row__visual {
    flex: 1;
    position: relative;
}

.innovation-row__img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.15);
}

.innovation-row__shape {
    position: absolute;
    z-index: 1;
    border-radius: 30px;
    opacity: 0.6;
}

.innovation-row__shape--1 {
    width: 80%;
    height: 100%;
    top: 20px;
    left: -20px;
    background-color: #dff9fb; /* Світлий блакитний */
}

.innovation-row__shape--2 {
    width: 70%;
    height: 90%;
    bottom: -30px;
    right: -30px;
    background-color: #dfe6e9; /* Світлий сірий */
}

/* Content Side */
.innovation-row__content {
    flex: 1;
}

.innovation-row__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.innovation-row__text {
    margin-bottom: 20px;
    color: #7f8c8d;
}

/* Check List */
.check-list {
    margin-top: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

.check-list i {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

/* Actions */
.innovation-row__actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 14px;
}

.link-arrow:hover {
    color: var(--color-accent);
    gap: 10px; /* Анімація стрілочки */
}

.link-arrow i {
    width: 16px;
    height: 16px;
}

/* Mobile Adaptive for Innovations */
@media (max-width: 991px) {
    .innovation-row, 
    .innovation-row--reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .innovation-row__shape {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }
    
    .check-list {
        display: inline-block;
        text-align: left;
    }

    .innovation-row__actions {
        justify-content: center;
    }
}
/* --- Cases Section --- */
.cases {
    background-color: #fff; /* Виділяємо секцію білим фоном */
}

.cases__scroller {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 20px; /* Місце для тіні при скролі */
}

/* Case Card Design */
.case-card {
    background-color: var(--color-bg);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.case-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.case-card__image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-card__image img {
    transform: scale(1.1);
}

.case-card__tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.case-card__content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.case-card__review {
    font-size: 14px;
    color: #576574;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
    flex: 1; /* Розтягує блок, щоб автор був знизу */
}

.case-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.case-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.case-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card__meta {
    display: flex;
    flex-direction: column;
}

.case-card__meta .name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.case-card__meta .role {
    font-size: 12px;
    color: #95a5a6;
}

.cases__hint {
    display: none;
}

/* Mobile Scroll Snap Logic */
@media (max-width: 991px) {
    .cases__scroller {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 40px;
        /* Приховати скролбар */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
    }
    
    .cases__scroller::-webkit-scrollbar {
        display: none;
    }

    .case-card {
        min-width: 300px; /* Фіксована ширина для мобільного */
        scroll-snap-align: center;
    }

    .cases__hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--color-text-light);
        font-size: 14px;
        animation: bounceRight 2s infinite;
    }
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.about__wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    background-color: var(--color-primary); /* Темний фон для контрасту */
    border-radius: 30px;
    padding: 60px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Декоративний круг на фоні */
.about__wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.about__content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.about__content .section-subtitle {
    color: var(--color-accent);
}

.about__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.3;
}

.about__text {
    color: #bdc3c7;
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 500px;
}

.about__text strong {
    color: var(--color-white);
}

/* About Stats */
.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.a-stat {
    display: flex;
    flex-direction: column;
}

.a-stat__num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
}

.a-stat__desc {
    font-size: 12px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image side */
.about__image {
    flex: 0 0 400px; /* Фіксована ширина картинки */
    position: relative;
    z-index: 2;
}

.about__img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Adaptive for About */
@media (max-width: 991px) {
    .about__wrapper {
        flex-direction: column-reverse;
        padding: 40px 25px;
        text-align: center;
        gap: 40px;
    }

    .about__image {
        flex: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about__stats {
        justify-content: center;
    }
    
    .about__text {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .about__stats {
        gap: 20px;
    }
    
    .about__title {
        font-size: 28px;
    }
}

/* --- Contact Section --- */
.contact {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

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

/* Text Side */
.contact__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact__text {
    color: #7f8c8d;
    margin-bottom: 40px;
    max-width: 450px;
}

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

.c-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

.c-benefit i {
    color: var(--color-accent);
}

/* Form Side */
.contact__form-box {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    position: relative; /* Для позиціонування success message */
    min-height: 500px; /* Щоб форма не стрибала при зміні контенту */
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.form__input-wrapper {
    position: relative;
}

.form__icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #95a5a6;
    transition: var(--transition);
}

.form__input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form__input:focus {
    border-color: var(--color-accent);
}

.form__input:focus + .form__icon,
.form__input-wrapper:focus-within .form__icon {
    color: var(--color-accent);
}

/* Captcha */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-question {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    background: #f1f2f6;
    padding: 10px 20px;
    border-radius: 8px;
    user-select: none;
}

.captcha-input {
    padding-left: 15px; /* Без іконки */
    width: 80px;
    text-align: center;
}

.form__error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form__error.is-visible {
    display: block;
}

/* Checkbox */
.form__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form__checkbox {
    margin-top: 4px;
    cursor: pointer;
}

.form__checkbox-label {
    font-size: 12px;
    color: #95a5a6;
    line-height: 1.4;
}

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

/* Button & Loader */
.form__submit {
    width: 100%;
    border: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    position: absolute;
}

.form__submit.is-loading .btn-text {
    opacity: 0;
}

.form__submit.is-loading .btn-loader {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: 20px;
    display: flex; /* Змінено на flex для центрування */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.success-message.is-active {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon i {
    width: 40px;
    height: 40px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Mobile Adaptive */
@media (max-width: 991px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact__info {
        text-align: center;
    }

    .contact__benefits {
        justify-content: center;
    }
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Сховано знизу */
    width: 90%;
    max-width: 600px;
    background-color: var(--color-white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 50px;
    padding: 15px 30px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cookie-popup.is-active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    font-size: 13px;
    color: var(--color-primary);
    margin: 0;
}

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

.cookie-btn {
    padding: 8px 24px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-popup {
        border-radius: 20px;
        padding: 20px;
        bottom: 20px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-btn {
        width: 100%;
    }
}

/* --- Policy Pages Styles --- */
.pages {
    padding: 60px 0 100px;
    background-color: var(--color-white);
    min-height: 60vh;
}

.pages .container {
    max-width: 800px; /* Вужчий контейнер для зручного читання тексту */
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 40px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 20px;
}

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

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

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
    color: #576574;
}

.pages li {
    margin-bottom: 10px;
}

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

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