@font-face {
    font-family: 'KENAO';
    src: url('../assets/fonts/kenao.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: #1E1E24;
    color: #1E1E24;
    overflow-x: hidden;
}

:root {
    --glass-bg: rgba(255, 248, 240, 0.55);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-blur: blur(25px);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
}

/* HEADER */
.header-container {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-body {
    pointer-events: auto;
    width: fit-content;
    max-width: 100%;
    height: 56px;
    border-radius: 28px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 5px 30px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.header-logo {
    width: 40px;
    height: 36px;
    flex-shrink: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

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

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: rgba(30, 30, 36, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.nav-link:hover {
    color: #1E1E24;
}

.nav-arrow-main {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.nav-item-dropdown-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.nav-item-dropdown-wrapper:hover .nav-arrow-main {
    transform: rotate(90deg);
}

.services-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 300px;
    min-height: 200px;
    margin-top: 20px;
    transform: translateX(-50%) translateY(-10px);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    /* важливо! */
}

.services-dropdown::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 240, 0.8);
    /* робить його більш “щільним” */
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

.nav-item-dropdown-wrapper:hover .services-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    font-weight: 500;
    font-size: 16px;
    color: #1E1E24;
    text-decoration: none;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dropdown-arrow-icon {
    width: 16px;
    height: 16px;
    stroke: #1E1E24;
    stroke-width: 2;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.3s ease;
}

.dropdown-link:hover .dropdown-arrow-icon {
    opacity: 1;
    transform: translate(0, 0);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 15px;
    color: #1E1E24;
    cursor: pointer;
    margin-left: 10px;
}

.lang-option {
    text-decoration: none;
    color: rgba(30, 30, 36, 0.4);
    transition: color 0.2s;
}

.lang-option.active {
    color: #1E1E24;
}

.header-cta {
    width: auto;
    min-width: 180px;
    padding: 0 20px;
    height: 44px;
    background: rgba(255, 248, 240, 0.2);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #1E1E24;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid rgba(30, 30, 36, 0.1);
    white-space: nowrap;
}

.header-cta:hover {
    transform: scale(1.02);
    background: rgba(255, 248, 240, 0.5);
}

.burger-btn,
.mobile-menu-overlay {
    display: none;
    /* Ховаємо на всіх екранах за замовчуванням */
}

/* --- AI BUTTON HIGHLIGHT (Gradient Border) --- */

/* Базові налаштування для елемента з підсвіткою */
.ai-highlight {
    position: relative;
    border-radius: 15px;
    /* Скруглення як у інших кнопок */
    z-index: 1;
}

/* Створення градієнтної рамки через псевдо-елемент та маску */
.ai-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    /* Товщина рамки */

    /* Твій градієнт + підкладка кольору, щоб рамка була суцільною */
    background: radial-gradient(circle at 20% 20%, #FF9AFD 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #6E446F 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #A855F7 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, #FFCF99 0%, transparent 40%);
    background-color: #A855F7;
    /* Базовий колір, щоб не було дірок у градієнті */

    /* Магія маски: вирізаємо середину, залишаючи тільки рамку */
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    z-index: -1;
}

/* Адаптація для мобільного меню (додаємо повітря, щоб рамка не тиснула на текст) */
@media (max-width: 767px) {
    .mobile-sublink.ai-highlight {
        display: block;
        /* Щоб рамка охоплювала блок */
        width: 100%;
        /* На всю ширину контейнера */
        box-sizing: border-box;
        padding: 10px 15px;
        /* Відступи всередині рамки */
        margin-top: 10px;
        /* Відступ від попереднього пункту */
        text-align: center;
    }
}


/* HERO */
.hero-section-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    color: #1E1E24;
    background: #FFF8F0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0%, rgba(255, 248, 240, 0.5) 90%);
    z-index: 2;
    height: 100%;
}

.hero-section-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-section-bg-gradient::after {
    content: '';
    position: absolute;
    inset: -20%;
    opacity: 0.8;
    background: radial-gradient(circle at 0% 0%, rgba(146, 20, 12, 0.6) 0%, transparent 50%), radial-gradient(circle at 100% 0%, rgba(17, 29, 74, 0.6) 0%, transparent 50%), radial-gradient(circle at 50% 40%, rgba(255, 207, 153, 0.3) 0%, transparent 60%), radial-gradient(circle at 0% 100%, rgba(17, 29, 74, 0.5) 0%, transparent 50%), radial-gradient(circle at 100% 100%, rgba(146, 20, 12, 0.5) 0%, transparent 50%);
    filter: blur(80px);
    background-size: 120% 120%;
    animation: gradientMove 15s ease infinite alternate;
}

@keyframes gradientMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, -10%) scale(1.05);
    }
}

/* Відео блок */
.hero-video-outer-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 20px);
    max-height: none;
    margin: 0;
    border-radius: 0 0 60px 60px;
    overflow: hidden;
    z-index: 10;
    background-color: #1E1E24;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dimmer {
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 36, 0.4);
    z-index: 1;
}

.hero-text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 2;
    color: #FFF8F0;
}

.hero-title {
    font-weight: 700;
    font-size: 54px;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.4;
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
}

/* Контент */
.content-wrapper {
    position: relative;
    z-index: 20;
    padding: 50px 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.text-section-container {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
}

.text-main-heading {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1E1E24;
    text-align: left;
}

.text-columns-row {
    display: flex;
    gap: 80px;
    justify-content: space-between;
    text-align: left;
}

.text-column-p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #1E1E24;
    opacity: 0.9;
    flex: 1;
}

.cards-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.stats-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: 25px;
    flex: 1;
    height: 220px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.stats-card:hover {
    transform: translateY(-10px);
}

.card-number {
    font-family: 'Open Sans', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #1E1E24;
    line-height: 1;
    margin-bottom: 10px;
    align-self: flex-start;
}

.card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1E1E24;
    opacity: 0.8;
    line-height: 1.4;
    align-self: flex-start;
}

/* ARSENAL */
.arsenal-wrapper {
    position: relative;
    width: 100%;
    background-color: #1E1E24;
    padding-bottom: 100px;
}

.arsenal-header-area {
    position: relative;
    width: 100%;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2a2a32;
    overflow: hidden;
}

.arsenal-header-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, #1E1E24 100%);
    z-index: 2;
    pointer-events: none;
}

.arsenal-top-gradient {
    position: absolute;
    inset: -20%;
    z-index: 1;
    opacity: 0.8;
    background: radial-gradient(circle at 20% 20%, rgba(146, 20, 12, 0.6) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(17, 29, 74, 0.6) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 207, 153, 0.4) 0%, transparent 60%);
    filter: blur(80px);
    animation: gradientMove 15s ease infinite alternate;
}

.arsenal-title {
    position: relative;
    z-index: 10;
    max-width: 780px;
    font-weight: 700;
    font-size: 54px;
    line-height: 1.2;
    text-align: center;
    color: #FFF8F0;
}

.cards-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: 100px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
}

.service-card {
    width: 100%;
    height: 450px;
    border-radius: 50px;
    position: sticky;
    display: flex;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
    grid-column: 1;
    grid-row: 1;
}

.service-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-yellow {
    background-color: #FFED9A;
    top: 120px;
    margin-top: 0px;
    margin-bottom: 120px;
    z-index: 1;
}

.card-lime {
    background-color: #F2FF9A;
    top: 150px;
    margin-top: 500px;
    margin-bottom: 90px;
    z-index: 2;
}

.card-salmon {
    background-color: #FFB19A;
    top: 180px;
    margin-top: 1000px;
    margin-bottom: 60px;
    z-index: 3;
}

.card-peach {
    background-color: #FFCF9A;
    top: 210px;
    margin-top: 1500px;
    margin-bottom: 30px;
    z-index: 4;
}

.card-ai {
    position: sticky;
    top: 240px;
    background-color: #6E446F;
    z-index: 5;
    margin-top: 2000px;
    margin-bottom: 0px;
}

.card-image-box {
    width: 45%;
    height: 430px;
    border-radius: 45px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: #eee;
    box-shadow: inset 0px 4px 4px 4px rgba(0, 0, 0, 0.25);
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    box-shadow: inset 0px 4px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 45px;
    pointer-events: none;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
}

.card-number-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    border: 2px solid #AB9782;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 18px;
    color: #AB9782;
}

.card-arrow-hint {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(30, 30, 36, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-arrow-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    color: #1E1E24;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.service-card:hover .card-arrow-hint {
    background: #1E1E24;
    transform: scale(1.1);
}

.service-card:hover .card-arrow-svg {
    color: #FFF;
    opacity: 1;
    transform: rotate(-45deg);
}

.card-ai .card-arrow-hint {
    background: rgba(255, 255, 255, 0.1);
}

.card-ai .card-arrow-svg {
    color: #FFF;
}

.card-ai:hover .card-arrow-hint {
    background: #FFF;
}

.card-ai:hover .card-arrow-svg {
    color: #6E446F;
}

.card-subtitle {
    font-weight: 600;
    font-size: 15px;
    color: #1E1E24;
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.1;
    color: #1E1E24;
    margin-bottom: 0;
}

.card-description-row {
    display: flex;
    gap: 30px;
}

.card-description-col {
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
    color: #1E1E24;
    text-align: left;
}

.card-ai-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, #FF9AFD 0%, transparent 50%), radial-gradient(circle at 80% 80%, #6E446F 0%, transparent 50%), radial-gradient(circle at 50% 50%, #A855F7 0%, transparent 60%), radial-gradient(circle at 80% 20%, #FFCF99 0%, transparent 40%);
    filter: blur(40px);
    border-radius: 50px;
    overflow: hidden;
}

.card-ai .card-subtitle,
.card-ai .card-title,
.card-ai .card-description-col {
    color: #FFF8F0;
}

.card-ai .card-number-badge {
    border-color: #FFF8F0;
    color: #FFF8F0;
}

/* PROCESS */
.process-section {
    position: relative;
    width: 100%;
    background: #1E1E24;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 150px;
    gap: 30px;
    overflow: hidden;
}

.process-row {
    width: 100%;
    max-width: 1920px;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    cursor: default;
    border-bottom: none;
    transition: all 0.4s ease;
    height: 140px;
    overflow: hidden;
    box-sizing: border-box;
}

.process-row:hover {
    height: 280px;
    background-color: transparent;
}

.process-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.process-label {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: rgba(255, 248, 240, 0.3);
    transition: color 0.3s ease;
}

.process-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    opacity: 0.5;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.process-row:hover .process-body {
    opacity: 1;
    transform: translateY(0);
}

.process-row:hover .process-label,
.process-row:hover .process-title {
    color: #FFF8F0;
}

.process-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    border-radius: 15px;
}

.process-row:hover .process-icon {
    opacity: 1;
    transform: scale(1);
}

.process-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.process-text-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.process-title {
    font-weight: 600;
    font-size: 54px;
    line-height: 1.1;
    text-align: left;
    color: rgba(255, 248, 240, 0.3);
    transition: color 0.3s ease;
    margin: 0;
}

.process-description {
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    color: #FFF8F0;
    text-align: left;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.process-row:hover .process-description {
    max-height: 200px;
    opacity: 1;
}

/* TEAM & CHAT (Unified Wrapper) */
.team-chat-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.team-chat-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 15% 15%, rgba(255, 207, 153, 0.6) 0%, transparent 50%), radial-gradient(circle at 85% 15%, rgba(17, 29, 74, 0.15) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(146, 20, 12, 0.1) 0%, transparent 60%);
    filter: blur(60px);
    animation: meshMove 20s ease-in-out infinite alternate;
    background-color: #FFF8F0;
}

@keyframes meshMove {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Team */
/* FIX: Збільшений відступ зверху до "Ядро команди" (200px) */
.team-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 200px 20px 100px;
    z-index: 1;
}

.team-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    text-align: center;
    color: #1E1E24;
    margin-bottom: 100px;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 10;
}

.team-card {
    width: 320px;
    height: 450px;
    border-radius: 40px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(100px);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(146, 20, 12, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card:nth-child(1) {
    animation-delay: 0.2s;
    margin-top: 0;
}

.team-card:nth-child(2) {
    animation-delay: 0.4s;
    margin-top: 80px;
}

.team-card:nth-child(3) {
    animation-delay: 0.6s;
    margin-top: 160px;
}

.card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.member-photo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.member-name {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #1E1E24;
    text-align: left;
}

.member-quote {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.4;
    text-align: left;
    color: #1E1E24;
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.member-role {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(30, 30, 36, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    border-top: 1px solid rgba(30, 30, 36, 0.1);
    padding-top: 20px;
    width: 100%;
}

/* Chat */
.chat-section {
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 100px;
}

/* FIX: Збільшений відступ після заголовка (60px) */
.main-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    text-align: center;
    color: #1E1E24;
    margin-bottom: 60px;
    margin-top: 50px;
    max-width: 900px;
    padding: 0 20px;
}

/* FIX: Зменшений відступ після підзаголовка (30px) */
.sub-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: rgba(30, 30, 36, 0.7);
    max-width: 600px;
    margin-bottom: 0px;
    padding: 0 20px;
}

.chat-interface-container {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.chat-input-wrapper {
    width: 100%;
    height: 56px;
    background: #FFFFFF;
    border-radius: 28px;
    border: 1px solid rgba(30, 30, 36, 0.1);
    display: flex;
    align-items: center;
    padding: 0 8px 0 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.chat-input-wrapper:focus-within {
    border-color: #AB9782;
    box-shadow: 0 4px 25px rgba(171, 151, 130, 0.15);
    transform: translateY(-2px);
}

.chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1E1E24;
    height: 100%;
}

.send-btn {
    width: 40px;
    height: 40px;
    background-color: #1E1E24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex-shrink: 0;
    margin-left: 10px;
}

.send-btn:hover {
    background-color: #AB9782;
    transform: scale(1.05);
}

.send-btn svg {
    width: 18px;
    height: 18px;
    color: #FFF8F0;
    stroke-width: 2.5;
}

.message {
    max-width: 85%;
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    animation: popIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    white-space: pre-wrap;
}

.message-user {
    align-self: flex-end;
    background-color: #1E1E24;
    color: #FFF8F0;
    border-bottom-right-radius: 4px;
}

.message-ai {
    align-self: flex-start;
    background-color: #FFFFFF;
    border: 1px solid rgba(30, 30, 36, 0.05);
    color: #1E1E24;
    border-bottom-left-radius: 4px;
}

.chat-history {
    width: 100%;
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #AB9782 rgba(30, 30, 36, 0.05);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.legal-disclaimer {
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: rgba(30, 30, 36, 0.4);
    margin-top: 10px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
}

.suggestion-item {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 30, 36, 0.05);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 16px;
    color: #1E1E24;
    border-radius: 20px;
    text-align: left;
}

.suggestion-item:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
    border-color: rgba(30, 30, 36, 0.1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #1E1E24;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 3px;
    opacity: 0.7;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* FOOTER */
/* FIX: Збільшений відступ зверху в home-footer-wrapper (200px) для CTA */
.home-footer-wrapper {
    position: relative;
    width: 100%;
    background-color: #1E1E24;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 200px 20px 20px 20px;
    overflow: hidden;
}

.footer-bg-animated {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background: radial-gradient(circle at 20% 30%, rgba(146, 20, 12, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(17, 29, 74, 0.3) 0%, transparent 50%);
    filter: blur(80px);
    animation: footerMesh 15s ease-in-out infinite alternate;
    background-size: 120% 120%;
}

@keyframes footerMesh {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-10%, -10%);
    }
}

/* FIX: Збільшений відступ знизу в cta-container (180px) */
.cta-container {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 968px;
    padding: 0 20px;
}

.cta-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #FFF8F0;
    margin: 0;
    padding-bottom: 50px;
}

.cta-text {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.4;
    color: #FFF8F0;
    opacity: 0.9;
    margin: 0;
}

.cta-button {
    width: 350px;
    height: 60px;
    background: rgba(255, 248, 240, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: #FFF8F0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 248, 240, 0.1);
    text-decoration: none;
    text-transform: uppercase;
}

.cta-button:hover {
    background: rgba(255, 248, 240, 0.2);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 248, 240, 0.1);
}

/* FIX: Footer */
.glass-footer {
    justify-self: center;
    position: relative;
    z-index: 10;
    width: calc(100% - 40px);
    max-width: 1800px;
    margin: 0 20px 20px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-radius: 60px;
    padding: 50px 60px 5px 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-content-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.footer-col-title {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    color: #FFF8F0;
    margin-bottom: 15px;
    opacity: 0.6;
    text-transform: uppercase;
}

.footer-link {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #FFF8F0;
    text-decoration: none;
    transition: opacity 0.2s;
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: fit-content;
    max-width: 100%;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 20px;
    text-decoration: none;
    padding: 0;
    line-height: 1;
}

.logo-img {
    width: auto;
    height: 60px;
    object-fit: contain;
    flex: none;
    transform: translateY(5px);
}

.logo-text {
    font-family: 'KENAO', sans-serif;
    font-weight: 400;
    font-size: 80px;
    line-height: 0.8;
    letter-spacing: 0.15em;
    color: #FFF8F0;
    display: block;
}

.footer-email {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #FFF8F0;
    text-decoration: none;
    opacity: 0.8;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
    margin-left: 0;
    letter-spacing: 0.1em;
}

.footer-email:hover {
    opacity: 1;
}

.footer-socials-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #FFF8F0;
    text-decoration: none;
    transition: transform 0.2s;
    opacity: 0.8;
}

.social-link:hover {
    transform: translateX(5px);
    opacity: 1;
}

.social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(99%) sepia(2%) saturate(289%) hue-rotate(334deg) brightness(115%) contrast(100%);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.copyright-text,
.policy-link {
    font-weight: 400;
    font-size: 14px;
    color: #FFF8F0;
    opacity: 0.5;
    text-decoration: none;
}

.policy-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Footer black text */
.glass-footer-black {
    justify-self: center;
    position: relative;
    z-index: 10;
    width: calc(100% - 40px);
    max-width: 1800px;
    margin: 0 20px 20px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(30, 30, 36, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-radius: 60px;
    padding: 50px 60px 5px 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-content-row-black {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(30, 30, 36, 0.1);
    padding-bottom: 20px;
}

.footer-col-title-black {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    color: #1E1E24;
    margin-bottom: 15px;
    opacity: 0.6;
    text-transform: uppercase;
}

.footer-link-black {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #1E1E24;
    text-decoration: none;
    transition: opacity 0.2s;
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
}

.footer-link-black:hover {
    opacity: 1;
    text-decoration: underline;
}

.logo-text-black {
    font-family: 'KENAO', sans-serif;
    font-weight: 400;
    font-size: 80px;
    line-height: 0.8;
    letter-spacing: 0.15em;
    color: #1E1E24;
    display: block;
}

.footer-email-black {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #1E1E24;
    text-decoration: none;
    opacity: 0.8;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
    margin-left: 0;
    letter-spacing: 0.1em;
}

.footer-email-black:hover {
    opacity: 1;
}

.social-link-black {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #1E1E24;
    text-decoration: none;
    transition: transform 0.2s;
    opacity: 0.8;
}

.social-link-black:hover {
    transform: translateX(5px);
    opacity: 1;
}

.social-icon-img-black {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0);
}

.copyright-text-black,
.policy-link-black {
    font-weight: 400;
    font-size: 14px;
    color: #1E1E24;
    opacity: 0.5;
    text-decoration: none;
}

.policy-link-black:hover {
    opacity: 1;
    text-decoration: underline;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 36, 0.4);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: rgba(255, 248, 240, 0.1);
    border: 1px solid rgba(255, 248, 240, 0.1);
    border-radius: 50px;
    padding: 60px 40px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: rgba(255, 248, 240, 0.5);
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close-btn:hover {
    color: #FFF8F0;
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.modal-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.1;
    color: #FFF8F0;
    margin: 0;
}

.modal-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #FFF8F0;
    opacity: 0.8;
    margin: 0;
}

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

.form-row-split {
    display: flex;
    gap: 15px;
}

.form-row-split .input-group {
    width: 50%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.input-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 248, 240, 0.87);
}

.modal-input {
    background: #292929;
    border: 1px solid rgba(255, 248, 240, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #FFF8F0;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.modal-input:focus {
    border-color: #AB9782;
}

.textarea-input {
    min-height: 120px;
    resize: vertical;
}

.checkbox-wrapper {
    margin-top: 10px;
}

.custom-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 248, 240, 0.8);
    user-select: none;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #292929;
    border: 1px solid rgba(255, 248, 240, 0.3);
    border-radius: 5px;
    transition: all 0.2s;
}

.custom-checkbox-container:hover input~.checkmark {
    border-color: #AB9782;
}

.custom-checkbox-container input:checked~.checkmark {
    background-color: #AB9782;
    border-color: #AB9782;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-container input:checked~.checkmark:after {
    display: block;
}

.policy-link-modal {
    color: #FFF8F0;
    text-decoration: underline;
}

.policy-link-modal:hover {
    text-decoration: none;
}

.modal-submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    background: rgba(255, 248, 240, 0.15);
    color: #FFF8F0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-submit-btn:hover:not(:disabled) {
    background: rgba(255, 248, 240, 0.25);
    transform: translateY(-2px);
}

.modal-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 248, 240, 0.05);
}

.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    animation: fadeIn 0.5s ease;
}

.success-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(171, 151, 130, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 2px solid #AB9782;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- ABOUT PAGE STYLES --- */

.about-page-wrapper {
    background-color: #FFF8F0;
    color: #1E1E24;
    overflow: hidden;
    width: 100%;
}

/* 1. HERO MANIFESTO */
.about-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E1E24;
    color: #FFF8F0;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    z-index: 0;
}

.about-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    text-align: center;
}

.about-hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(180deg, #FFF8F0 0%, rgba(255, 248, 240, 0.6) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-subtitle {
    font-size: 24px;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* 2. THE DNA SECTION */
.about-dna {
    padding: 100px 20px;
    background: #FFF8F0;
    position: relative;
}

.dna-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.dna-image-wrapper {
    position: relative;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 20px 20px 0px #1E1E24;
    /* Brutalist shadow */
}

.dna-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dna-image-wrapper:hover img {
    transform: scale(1.05);
}

.dna-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
    justify-self: center;
}

.dna-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

.dna-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(30, 30, 36, 0.8);
}

.highlight-text {
    color: #AB9782;
    font-weight: 700;
}

/* 3. PRINCIPLES CARDS */
.principles-section {
    padding: 100px 20px 20px 20px;
    background: #1E1E24;
    color: #FFF8F0;
}

.principles-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: left;
}

.principles-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.principle-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.principle-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.p-number {
    font-size: 60px;
    font-weight: 700;
    color: rgba(255, 248, 240, 0.1);
    margin-bottom: 20px;
    line-height: 1;
}

.p-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #AB9782;
}

.p-desc {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.8;
}

/* 4. STATISTICS STRIP */
.stats-strip {
    padding: 60px 0;
    background: #AB9782;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.stats-scroller {
    display: inline-flex;
    gap: 50px;
    animation: scrollText 20s linear infinite;
}

.stat-item {
    font-size: 40px;
    font-weight: 800;
    color: #1E1E24;
    text-transform: uppercase;
}

@keyframes scrollText {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- PRIVACY PAGE STYLES --- */
.privacy-page-wrapper {
    background-color: #FFF8F0;
    color: #1E1E24;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 20px;
}

.privacy-header {
    background-color: #1E1E24;
    color: #FFF8F0;
    padding: 180px 20px 80px;
    text-align: center;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    margin-bottom: 60px;
}

.privacy-title {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.privacy-date {
    font-size: 16px;
    opacity: 0.6;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-block {
    margin-bottom: 50px;
}

.privacy-h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1E1E24;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #AB9782;
    display: inline-block;
}

.privacy-h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1E1E24;
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(30, 30, 36, 0.9);
    margin-bottom: 15px;
}

.privacy-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.privacy-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 16px;
    color: rgba(30, 30, 36, 0.9);
}

.privacy-list li::before {
    content: "•";
    color: #AB9782;
    font-weight: bold;
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* AI WARNING BOX */
.ai-warning-box {
    background-color: rgba(171, 151, 130, 0.1);
    /* Light accent color */
    border: 1px solid #AB9782;
    padding: 25px;
    border-radius: 20px;
    margin: 20px 0;
}

.ai-warning-title {
    font-weight: 700;
    color: #AB9782;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-link {
    color: #1E1E24;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #AB9782;
    transition: all 0.2s;
}

.contact-link:hover {
    color: #AB9782;
    text-decoration: none;
}

/* --- SERVICE 1: ISOLATED STYLES (NO CONFLICTS) --- */

/* 1. WRAPPER & BACKGROUND */
.service-page-wrapper {
    background-color: #1E1E24;
    /* Темна база */
    padding-top: 140px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Щоб градієнт не вилазив */
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

/* Анімований фон (як у футері/cta) */
.sp-bg-animated {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 20% 30%, rgba(146, 20, 12, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(17, 29, 74, 0.4) 0%, transparent 50%);
    filter: blur(60px);
    animation: spBgMove 15s ease-in-out infinite alternate;
}

@keyframes spBgMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* 2. MEGA CARD (CHAMPAGNE COLOR) */
.sp-mega-card {
    /* Новий колір: М'який Шампань замість яскравого жовтого */
    background-color: #F5ECCD;
    width: 100%;
    max-width: 1400px;
    border-radius: 60px;
    position: relative;
    z-index: 1;
    /* Поверх фону */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    /* Більш глибока тінь для темного фону */
    overflow: hidden;
    color: #1E1E24;
    display: flex;
    flex-direction: column;
}

/* 3. HERO SECTION */
.sp-hero {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.sp-badge {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 120px;
    font-weight: 800;
    color: #AB9782;
    /* Змінив на золотистий для гармонії */
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.sp-hero-content {
    position: relative;
    z-index: 2;
}

.sp-breadcrumbs {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 20px;
}

.sp-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #1E1E24;
}

.sp-description {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 600px;
    color: rgba(30, 30, 36, 0.9);
}

.sp-image-box {
    position: relative;
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(30, 30, 36, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.sp-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Multiply тут робить картинку "впаяною" в шампань-фон */
    mix-blend-mode: multiply;
}

/* 4. THE PROBLEM (Darker Stripe for contrast on light card) */
.sp-problem-stripe {
    background: rgba(30, 30, 36, 0.05);
    /* Легке затемнення замість білого */
    padding: 60px;
    margin: 0 20px;
    border-radius: 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    border: 1px solid rgba(30, 30, 36, 0.05);
}

.sp-stripe-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #AB9782;
    min-width: 150px;
}

.sp-stripe-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #1E1E24;
}

/* 5. DETAILS GRID */
.sp-details-grid {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sp-detail-item {
    background: rgba(255, 255, 255, 0.5);
    /* Більш прозорий білий */
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
}

.sp-detail-item:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(171, 151, 130, 0.15);
}

.sp-detail-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #1E1E24;
    opacity: 0.8;
}

.sp-detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sp-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-detail-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    opacity: 0.8;
    font-weight: 600;
}

.sp-detail-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #AB9782;
    /* Акцентний колір стрілочок */
}

/* 6. RESULTS SECTION */
.sp-results-section {
    padding: 0 60px 80px;
}

.sp-results-box {
    background: #1E1E24;
    color: #FFF8F0;
    border-radius: 40px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Додаємо легкий шум або текстуру */
    background-image: radial-gradient(circle at 100% 0%, #2a2a32 0%, #1E1E24 50%);
}

.sp-results-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sp-results-content p {
    opacity: 0.7;
    margin-bottom: 30px;
    max-width: 500px;
}

.sp-results-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.sp-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sp-cta-btn {
    background: #F5ECCD;
    /* Колір картки для кнопки на темному фоні */
    color: #1E1E24;
    padding: 20px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sp-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 236, 205, 0.4);
}


/* --- SERVICE 2: ISOLATED STYLES (NO CONFLICTS) --- */
.s2-bg-animated {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Трохи інші відтінки градієнту для цієї сторінки */
    background: radial-gradient(circle at 10% 20%, rgba(98, 189, 25, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(17, 29, 74, 0.4) 0%, transparent 50%);
    filter: blur(60px);
    animation: s2BgMove 15s ease-in-out infinite alternate;
}

@keyframes s2BgMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* 2. MEGA CARD (SOFT PISTACHIO COLOR) */
.s2-mega-card {
    background-color: #EBF5C6;
    /* Пастельний лайм/фісташка */
    width: 100%;
    max-width: 1400px;
    border-radius: 60px;
    position: relative;
    z-index: 1;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: #1E1E24;
    display: flex;
    flex-direction: column;
}

/* 3. HERO SECTION */
.s2-hero {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.s2-badge {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 120px;
    font-weight: 800;
    color: #8FA855;
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.s2-hero-content {
    position: relative;
    z-index: 2;
}

.s2-breadcrumbs {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 20px;
}

.s2-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #1E1E24;
}

.s2-description {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 600px;
    color: rgba(30, 30, 36, 0.9);
}

.s2-image-box {
    position: relative;
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(30, 30, 36, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.s2-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. PROBLEM STRIPE */
.s2-problem-stripe {
    background: rgba(30, 30, 36, 0.05);
    padding: 60px;
    margin: 0 20px;
    border-radius: 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    border: 1px solid rgba(30, 30, 36, 0.05);
}

.s2-stripe-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #7A9144;
    min-width: 150px;
}

.s2-stripe-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #1E1E24;
}

/* 5. DETAILS GRID */
.s2-details-grid {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.s2-detail-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
}

.s2-detail-item:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(143, 168, 85, 0.15);
}

.s2-detail-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #1E1E24;
    opacity: 0.8;
}

.s2-detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.s2-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2-detail-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    opacity: 0.8;
    font-weight: 600;
}

.s2-detail-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #7A9144;
}

/* 6. RESULTS SECTION */
.s2-results-section {
    padding: 0 60px 80px;
}

.s2-results-box {
    background: #1E1E24;
    color: #FFF8F0;
    border-radius: 40px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: radial-gradient(circle at 100% 0%, #2a2a32 0%, #1E1E24 50%);
}

.s2-results-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.s2-results-content p {
    opacity: 0.7;
    margin-bottom: 30px;
    max-width: 500px;
}

.s2-results-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.s2-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.s2-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.s2-cta-btn {
    background: #EBF5C6;
    color: #1E1E24;
    padding: 20px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.s2-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(235, 245, 198, 0.4);
}



/* --- SERVICE 3: ISOLATED STYLES (NO CONFLICTS) --- */
.s3-bg-animated {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Градієнт з теплими відтінками для Performance */
    background: radial-gradient(circle at 15% 25%, rgba(255, 127, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(17, 29, 74, 0.4) 0%, transparent 50%);
    filter: blur(60px);
    animation: s3BgMove 15s ease-in-out infinite alternate;
}

@keyframes s3BgMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* 2. MEGA CARD (SOFT CORAL COLOR) */
.s3-mega-card {
    background-color: #FFD8CC;
    /* Пастельний кораловий/персиковий */
    width: 100%;
    max-width: 1400px;
    border-radius: 60px;
    position: relative;
    z-index: 1;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: #1E1E24;
    display: flex;
    flex-direction: column;
}

/* 3. HERO SECTION */
.s3-hero {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.s3-badge {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 120px;
    font-weight: 800;
    color: #C45A37;
    /* Теракотовий акцент */
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.s3-hero-content {
    position: relative;
    z-index: 2;
}

.s3-breadcrumbs {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 20px;
}

.s3-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #1E1E24;
}

.s3-description {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 600px;
    color: rgba(30, 30, 36, 0.9);
}

.s3-image-box {
    position: relative;
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(30, 30, 36, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.s3-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. PROBLEM STRIPE */
.s3-problem-stripe {
    background: rgba(30, 30, 36, 0.05);
    padding: 60px;
    margin: 0 20px;
    border-radius: 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    border: 1px solid rgba(30, 30, 36, 0.05);
}

.s3-stripe-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #C45A37;
    min-width: 150px;
}

.s3-stripe-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #1E1E24;
}

/* 5. DETAILS GRID */
.s3-details-grid {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.s3-detail-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
}

.s3-detail-item:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(196, 90, 55, 0.15);
}

.s3-detail-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #1E1E24;
    opacity: 0.8;
}

.s3-detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.s3-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s3-detail-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    opacity: 0.8;
    font-weight: 600;
}

.s3-detail-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #C45A37;
}

/* 6. RESULTS SECTION */
.s3-results-section {
    padding: 0 60px 80px;
}

.s3-results-box {
    background: #1E1E24;
    color: #FFF8F0;
    border-radius: 40px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: radial-gradient(circle at 100% 0%, #2a2a32 0%, #1E1E24 50%);
}

.s3-results-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.s3-results-content p {
    opacity: 0.7;
    margin-bottom: 30px;
    max-width: 500px;
}

.s3-results-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.s3-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.s3-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.s3-cta-btn {
    background: #FFD8CC;
    /* Колір картки */
    color: #1E1E24;
    padding: 20px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.s3-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 216, 204, 0.4);
}


/* --- SERVICE 4: ISOLATED STYLES (NO CONFLICTS) --- */
.s4-bg-animated {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Градієнт з нотками фіолетового та помаранчевого (Social Media vibes) */
    background: radial-gradient(circle at 20% 80%, rgba(131, 56, 236, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 190, 11, 0.15) 0%, transparent 50%);
    filter: blur(60px);
    animation: s4BgMove 15s ease-in-out infinite alternate;
}

@keyframes s4BgMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* 2. MEGA CARD (SOFT APRICOT COLOR) */
.s4-mega-card {
    background-color: #FCE6D5;
    /* Пастельний абрикос/персик */
    width: 100%;
    max-width: 1400px;
    border-radius: 60px;
    position: relative;
    z-index: 1;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: #1E1E24;
    display: flex;
    flex-direction: column;
}

/* 3. HERO SECTION */
.s4-hero {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.s4-badge {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 120px;
    font-weight: 800;
    color: #E09F7D;
    /* Темніший персиковий акцент */
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.s4-hero-content {
    position: relative;
    z-index: 2;
}

.s4-breadcrumbs {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 20px;
}

.s4-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #1E1E24;
}

.s4-description {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 600px;
    color: rgba(30, 30, 36, 0.9);
}

.s4-image-box {
    position: relative;
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(30, 30, 36, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.s4-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. PROBLEM STRIPE */
.s4-problem-stripe {
    background: rgba(30, 30, 36, 0.05);
    padding: 60px;
    margin: 0 20px;
    border-radius: 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    border: 1px solid rgba(30, 30, 36, 0.05);
}

.s4-stripe-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #D68C6A;
    min-width: 150px;
}

.s4-stripe-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #1E1E24;
}

/* 5. DETAILS GRID */
.s4-details-grid {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.s4-detail-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
}

.s4-detail-item:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(214, 140, 106, 0.15);
}

.s4-detail-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #1E1E24;
    opacity: 0.8;
}

.s4-detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.s4-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s4-detail-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    opacity: 0.8;
    font-weight: 600;
}

.s4-detail-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #D68C6A;
}

/* 6. RESULTS SECTION */
.s4-results-section {
    padding: 0 60px 80px;
}

.s4-results-box {
    background: #1E1E24;
    color: #FFF8F0;
    border-radius: 40px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: radial-gradient(circle at 100% 0%, #2a2a32 0%, #1E1E24 50%);
}

.s4-results-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.s4-results-content p {
    opacity: 0.7;
    margin-bottom: 30px;
    max-width: 500px;
}

.s4-results-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.s4-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.s4-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.s4-cta-btn {
    background: #FCE6D5;
    /* Колір картки */
    color: #1E1E24;
    padding: 20px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.s4-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(252, 230, 213, 0.4);
}


/* SERVICE 5 */
/* --- SERVICE 5 (AI & AUTOMATION) ISOLATED STYLES --- */
/* Prefix: s5- */

/* 1. WRAPPER & BACKGROUND */
.s5-bg-animated {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Містичний фіолетовий градієнт для AI */
    background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(255, 154, 253, 0.15) 0%, transparent 50%);
    filter: blur(60px);
    animation: s5BgMove 15s ease-in-out infinite alternate;
}

@keyframes s5BgMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* 2. MEGA CARD (PASTEL AI GRADIENT) */
.s5-mega-card {
    /* Пастельний градієнт: від ніжно-фіолетового до персикового */
    background: linear-gradient(135deg, #EADCF8 0%, #F6E4F0 50%, #F9E8D6 100%);
    width: 100%;
    max-width: 1400px;
    border-radius: 60px;
    position: relative;
    z-index: 1;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: #1E1E24;
    display: flex;
    flex-direction: column;
}

/* 3. HERO SECTION */
.s5-hero {
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.s5-badge {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 120px;
    font-weight: 800;
    color: #9F7AEA;
    /* Фіолетовий акцент */
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.s5-hero-content {
    position: relative;
    z-index: 2;
}

.s5-breadcrumbs {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 20px;
}

.s5-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #1E1E24;
}

.s5-description {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 600px;
    color: rgba(30, 30, 36, 0.9);
}

.s5-image-box {
    position: relative;
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(159, 122, 234, 0.15);
}

.s5-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. PROBLEM STRIPE */
.s5-problem-stripe {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    padding: 40px 60px;
    margin: 0 20px;
    border-radius: 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    border-bottom: 1px solid rgba(30, 30, 36, 0.05);
}

.s5-stripe-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #805AD5;
    min-width: 150px;
}

.s5-stripe-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #1E1E24;
}

.s5-video-cta {
    font-size: 20px;
    font-weight: 700;
    color: #1E1E24;
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
    opacity: 0.9;
}

/* 5. SERVICES ACCORDION (THE CORE) */
.s5-accordion-container {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s5-acc-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.s5-acc-item.active {
    background: #FFFFFF;
    box-shadow: 0 20px 50px rgba(159, 122, 234, 0.15);
}

.s5-acc-header {
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.s5-acc-title-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.s5-acc-num {
    font-family: monospace;
    font-size: 18px;
    color: #9F7AEA;
    font-weight: 700;
    background: rgba(159, 122, 234, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
}

.s5-acc-title {
    font-size: 24px;
    font-weight: 700;
    color: #1E1E24;
}

.s5-acc-icon {
    width: 24px;
    height: 24px;
    color: #1E1E24;
    transition: transform 0.4s ease;
}

.s5-acc-item.active .s5-acc-icon {
    transform: rotate(180deg);
    color: #805AD5;
}

.s5-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.s5-acc-content {
    padding: 0 40px 40px 90px;
    /* Aligned with title */
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.s5-content-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s5-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(30, 30, 36, 0.9);
    /* white-space: pre-line; Removed to fix responsive wrapping */
}

.s5-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.s5-tag {
    font-size: 13px;
    font-weight: 600;
    color: #805AD5;
    background: rgba(159, 122, 234, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.s5-content-img {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: #F0F0F0;
}

.s5-content-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Special Layout for Video Item --- */
/* ... Special Layout for Video Item (Без змін) ... */
.s5-acc-content.video-layout {
    display: block;
    grid-template-columns: none;

    /* ФІКС СИМЕТРІЇ: */
    /* Робимо однакові відступи зліва і справа */
    padding-left: 60px;
    /* Було 90px (успадковано) */
    padding-right: 60px;
    /* Було 60px */
}

.s5-acc-content.video-layout .s5-description {
    column-count: 2;
    column-gap: 60px;
    margin-bottom: 20px;

    /* ФІКС: !important гарантує, що ми переб'ємо обмеження в 600px, 
               яке тягнеться з верхніх блоків */
    max-width: 100% !important;
    width: 100% !important;
}

/* --- NEW FLEX ROW GRID STYLES --- */
.s5-complex-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.s5-video-row {
    display: flex;
    gap: 20px;
    width: 100%;
    /* Це гарантує, що елементи розтягуються на всю ширину рядка */
    justify-content: space-between;
}

/* Базовий стиль картки */
.s5-video-item {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Важливо: висота буде автоматичною від aspect-ratio */
    height: auto;
}

.s5-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ПРОПОРЦІЇ ТА РОЗМІРИ */
/* flex-grow числа відповідають пропорціям сторін, 
   щоб висота сусідніх блоків була однаковою */

.item-16-9 {
    flex: 1.77;
    /* 16 / 9 ≈ 1.77 */
    aspect-ratio: 16 / 9;
}

.item-9-16 {
    flex: 0.56;
    /* 9 / 16 ≈ 0.56 */
    aspect-ratio: 9 / 16;
}

.item-square {
    flex: 1;
    /* 1 / 1 = 1 */
    aspect-ratio: 1 / 1;
}

/* Контент всередині */
.s5-video-item video,
.s5-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопка Play */
.s5-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 6. CTA BOTTOM */
.s5-cta-section {
    padding: 40px 60px 80px;
    display: flex;
    justify-content: center;
}

.s5-cta-btn {
    background: #1E1E24;
    color: #FFF8F0;
    padding: 20px 50px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(30, 30, 36, 0.2);
}

.s5-cta-btn:hover {
    transform: scale(1.05);
    background: #2D2D36;
}



/* ================== COOKIE BANNER ================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    /* Схований знизу */
    width: calc(100% - 40px);
    max-width: 600px;

    /* Glass Style */
    background: rgba(30, 30, 36, 0.85);
    /* Темний фон */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
    /* Поверх усього */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    /* Виїжджає */
}

.cookie-text p {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #FFF8F0;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 25px;
    border-radius: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn.accept {
    background: #FFF8F0;
    color: #1E1E24;
}

.cookie-btn.accept:hover {
    background: #AB9782;
    color: #FFF;
}

.cookie-btn.decline {
    background: transparent;
    color: rgba(255, 248, 240, 0.6);
    border: 1px solid rgba(255, 248, 240, 0.2);
}

.cookie-btn.decline:hover {
    color: #FFF8F0;
    border-color: #FFF8F0;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 15px 30px;
    }

    .cookie-text p {
        text-align: left;
    }
}


/* ================== PRELOADER ================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1E1E24;
    /* Колір фону лоадера (темний бренд) */
    z-index: 99999;
    /* Поверх усього, навіть модалок */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Клас для приховування */
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 80px;
    height: auto;
    /* Легка пульсація логотипу */
    animation: pulseLogo 2s infinite ease-in-out;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 248, 240, 0.1);
    /* Тьмяне коло */
    border-top: 3px solid #AB9782;
    /* Активний колір (бронза) */
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}