/* --- Global Settings & Variables --- */
:root {
    --color-bg: #FFFFFF;
    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-primary: #4F46E5; /* Indigo 600 */
    --color-primary-hover: #4338CA; /* Indigo 700 */
    --color-secondary: #0EA5E9; /* Sky 500 */
    --color-border: #E2E8F0;
    --color-footer-bg: #0F172A; /* Slate 900 */
    --color-footer-text: #94A3B8;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    padding-top: var(--header-height); /* Compensation for fixed header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- 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);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-primary);
}

.header__logo-img {
    width: 32px;
    height: 32px;
}

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

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

.header__link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
}

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

.header__cta {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
}

.header__cta:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

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

/* --- Mobile Menu Styles (hidden by default) --- */
@media (max-width: 992px) {
    .header__burger {
        display: block;
    }

    .header__nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: -1;
    }

    .header__nav.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .header__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .header__cta {
        width: 100%;
        text-align: center;
    }
}

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

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
}

.footer__logo-img {
    width: 28px;
    height: 28px;
}

.footer__desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer__title {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 24px;
}

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

.footer__link {
    font-size: 14px;
    transition: color 0.2s;
}

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

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

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

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

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- UI Components (Buttons & Badges) --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

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

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.05);
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 80px 0 100px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6; /* Легка прозорість для фону */
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    position: relative;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--color-secondary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero__desc {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

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

.hero__stat-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.hero__stat-label {
    font-size: 13px;
    color: var(--color-text-light);
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--color-border);
}

/* Hero Image & Floating Cards */
.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__main-img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    max-height: 500px;
    object-fit: cover;
}

.hero__image-wrapper:hover .hero__main-img {
    transform: perspective(1000px) rotateY(0deg);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.hero__card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero__card-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero__card-text {
    display: flex;
    flex-direction: column;
}

.hero__card-text strong {
    font-size: 14px;
    color: var(--color-text);
}

.hero__card-text span {
    font-size: 12px;
    color: var(--color-text-light);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Mobile Adaptation */
@media (max-width: 992px) {
    .hero {
        padding: 40px 0;
        text-align: center;
    }

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

    .hero__desc {
        margin: 0 auto 30px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
        border-top: none;
        padding-top: 0;
        margin-bottom: 40px;
    }

    .hero__card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 90%;
    }
    
    @keyframes float {
        0% { transform: translate(-50%, 0px); }
        50% { transform: translate(-50%, -15px); }
        100% { transform: translate(-50%, 0px); }
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 36px;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Section Headers --- */
.methodology {
    padding: 100px 0;
    background-color: #F8FAFC; /* Slate 50 */
}

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

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

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

.section-desc {
    color: var(--color-text-light);
    font-size: 18px;
}

.highlight {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- Bento Grid Layout --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto); /* Автоматична висота */
    gap: 24px;
}

.bento-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(79, 70, 229, 0.3);
}

/* Grid Placement */
.bento-card--large {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(145deg, #fff 0%, #F1F5F9 100%);
}

.bento-card--medium {
    grid-column: span 1;
}

.bento-card--wide {
    grid-column: span 2;
}

/* Card Content Styling */
.bento-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card__icon-box {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.bento-card p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.5;
}

.bento-card__tag {
    margin-top: auto;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.bento-icon-lg {
    width: 40px;
    height: 40px;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

/* Dark Card Variant */
.bento-card--dark {
    background: var(--color-text);
    color: #fff;
    border: none;
}

.bento-card--dark h3, 
.bento-card--dark p {
    color: #fff;
}

.bento-card--dark .bento-icon-lg {
    color: #A5F3FC; /* Cyan 200 */
}

/* Wide Card Content */
.bento-card__flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 20px;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--color-primary-hover);
}

/* Decorative Chart */
.bento-card__chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.chart-bar {
    width: 12px;
    height: var(--h);
    background-color: #E2E8F0;
    border-radius: 4px;
    transition: height 1s ease;
}

.chart-bar.active {
    background-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-card--large {
        grid-column: span 2;
        grid-row: auto;
    }
    
    .bento-card--wide {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card--medium, 
    .bento-card--large, 
    .bento-card--wide {
        grid-column: span 1;
    }
    
    .bento-card__flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bento-card__chart {
        width: 100%;
        justify-content: flex-end;
    }
}

/* --- Courses Section --- */
.courses {
    padding: 100px 0;
    background-color: #fff;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Flip Card Container */
.flip-card {
    background-color: transparent;
    height: 380px; /* Фіксована висота */
    perspective: 1000px; /* Для 3D ефекту */
    cursor: pointer;
}

/* Inner Container that Flips */
.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинистий ефект */
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 20px;
}

/* Hover Effect */
.flip-card:hover .flip-card__inner {
    transform: rotateY(180deg);
}

/* Front and Back Faces */
.flip-card__front, .flip-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Front Styling */
.flip-card__front {
    background-color: #fff;
    border: 1px solid var(--color-border);
}

.flip-card__icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.flip-card__icon-wrapper svg {
    width: 40px;
    height: 40px;
}

/* Icon Color Variants */
.icon--purple { background-color: rgba(168, 85, 247, 0.1); color: #A855F7; }
.icon--blue { background-color: rgba(14, 165, 233, 0.1); color: #0EA5E9; }
.icon--red { background-color: rgba(244, 63, 94, 0.1); color: #F43F5E; }

.flip-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.flip-card__preview {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.flip-card__badges {
    margin-top: auto;
    padding-top: 20px;
}

.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    background-color: #F1F5F9;
    color: var(--color-text-light);
    border-radius: 12px;
}

.badge--green {
    background-color: #DCFCE7;
    color: #166534;
}

/* Back Styling */
.flip-card__back {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white;
    transform: rotateY(180deg); /* Спочатку розвернута */
}

.flip-card__back-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-bottom: 16px;
}

.flip-card__detail {
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.flip-card__list {
    text-align: left;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flip-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.flip-card__list li svg {
    width: 16px;
    height: 16px;
    color: #67E8F9; /* Cyan highlight */
}

.btn--white {
    background-color: #fff;
    color: var(--color-primary);
    border: none;
    width: 100%;
    justify-content: center;
}

.btn--white:hover {
    background-color: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}

.courses-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--color-text-light);
    font-size: 14px;
}

.courses-footer i {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 1100px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .flip-card {
        height: 400px;
    }
}

/* --- Mentors & Reviews Section --- */
.mentors {
    padding: 100px 0;
    background-color: #F8FAFC;
    overflow: hidden;
}

.mentors-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Mentors Column */
.mentor-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.mentor-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.mentor-card:hover {
    transform: translateX(10px);
    border-color: var(--color-primary);
}

.mentor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F1F5F9;
}

.mentor-info h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mentor-info span {
    display: block;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.mentor-info p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Chat/Reviews Column */
.chat-window {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--color-border);
    max-width: 500px;
    margin-left: auto;
}

.chat-header {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22C55E; /* Green */
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-body {
    background-color: #F1F5F9;
    background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 20px 20px;
    height: 400px;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Message Styles */
.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 85%;
    animation: messageSlide 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.chat-message:nth-child(1) { animation-delay: 0.2s; }
.chat-message:nth-child(2) { animation-delay: 1.5s; } /* Затримка для імітації "наживо" */
.chat-message:nth-child(3) { animation-delay: 2.5s; }
.chat-message:nth-child(4) { animation-delay: 3.5s; }

.chat-message.received {
    align-self: flex-start;
}

.chat-message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.message-avatar.color-2 { background-color: #F43F5E; }
.message-avatar.color-3 { background-color: #8B5CF6; }

.message-content {
    background: #fff;
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.chat-message.sent .message-content {
    background: var(--color-primary);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
}

.message-author {
    display: block;
    font-size: 11px;
    color: var(--color-text-light);
    margin-bottom: 4px;
    font-weight: 600;
}

.sent .message-author {
    display: none;
}

.message-time {
    display: block;
    text-align: right;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.6;
}

.read-icon {
    width: 14px;
    height: 14px;
    position: absolute;
    bottom: 8px;
    right: -20px;
    color: var(--color-primary);
}

.sent .read-icon {
    right: auto;
    left: -20px;
}

/* Chat Input Area */
.chat-input-area {
    background: #fff;
    padding: 16px;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--color-border);
}

.fake-input {
    flex-grow: 1;
    background: #F1F5F9;
    padding: 10px 16px;
    border-radius: 20px;
    color: #94A3B8;
    font-size: 14px;
}

.send-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

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

/* Responsive */
@media (max-width: 992px) {
    .mentors-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .chat-window {
        margin: 0 auto;
    }
}

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

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

.contact__features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Form Styling */
.contact__form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.1);
    position: relative;
    overflow: hidden;
}

.form__title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
}

.form__subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.form__group {
    margin-bottom: 20px;
    position: relative;
}

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

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94A3B8;
    transition: color 0.3s;
}

.form__input {
    width: 100%;
    padding: 14px 16px 14px 44px; /* Padding for icon */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 15px;
    transition: all 0.3s;
    background: #F8FAFC;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form__input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

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

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

.captcha-input {
    width: 80px;
    padding-left: 16px;
    text-align: center;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-light);
}

.checkbox-group input {
    margin-top: 3px;
    cursor: pointer;
}

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

/* Button State & Spinner */
.form__btn {
    width: 100%;
    justify-content: center;
    position: relative;
}

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

.form__btn.loading .btn-text,
.form__btn.loading i {
    opacity: 0;
}

.form__btn.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.error-msg {
    display: none;
    font-size: 12px;
    color: #EF4444;
    margin-top: 6px;
}

.form__input.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.form__group.error .error-msg {
    display: block;
}

/* Success Message */
.success-message {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
}

.success-message.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--color-border);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.cookie-content p {
    font-size: 13px;
    color: var(--color-text);
}

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

/* --- Legal Pages Styling (.pages) --- */
/* Цей клас використовувати на окремих сторінках policy.html */
.pages {
    padding: 120px 0 80px; /* Більший відступ зверху, бо хедер фіксований */
    min-height: 80vh;
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-text);
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--color-text);
}

.pages p {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.pages ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style-type: disc;
    color: var(--color-text-light);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .contact__content {
        text-align: center;
    }
    
    .contact__features {
        align-items: center;
    }
    
    .contact__feature {
        text-align: left;
    }
}