/* =====================================================
   DESIGN SYSTEM
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors - palette adapted for makeup artist */
    --color-bg: #fcf4eb;
    --color-text: #2c2525;
    --color-text-muted: #998f84;
    --color-accent: #e9a8a0;
    --color-accent-2: #d4a5c4;
    --color-white: #ffffff;
    --color-border: rgba(44, 37, 37, 0.15);
    --color-border-light: rgba(44, 37, 37, 0.08);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 10rem;

    /* Misc */
    --radius: 8px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography - uppercase headings */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* Ghost Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text);
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: var(--color-accent);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
}

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

.btn-arrow {
    transition: transform var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn--filled {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--filled::before {
    background-color: var(--color-text);
}

.btn--filled:hover {
    color: var(--color-white);
    border-color: var(--color-text);
}

/* Section Label */
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* =====================================================
   NAVIGATION - Sticky Header
===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background-color: transparent;
    transition: background-color var(--transition), backdrop-filter var(--transition), opacity 0.3s ease;
}

.nav.scrolled {
    background-color: rgba(252, 244, 235, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav__links {
    display: none;
    gap: var(--space-lg);
    list-style: none;
}

@media (min-width: 768px) {
    .nav__links {
        display: flex;
    }
}

.nav__link {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.nav__cta {
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
    display: none;
}

@media (min-width: 768px) {
    .nav__cta {
        display: inline-flex;
    }
}

/* Burger Button */
.nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}

.nav__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .nav__burger {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    display: flex;
}

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

.mobile-menu__links {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.mobile-menu__link {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    padding: var(--space-sm) 0;
    color: var(--color-text);
    transition: color var(--transition);
}

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

.mobile-menu__cta {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

.mobile-menu__telegram {
    margin-top: var(--space-md);
    font-size: 1rem;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* =====================================================
   ANIMATED BACKGROUND
===================================================== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--color-bg);
}

.background-gradient {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(233, 168, 160, 0.15) 30%,
            rgba(212, 165, 196, 0.15) 60%,
            rgba(230, 240, 255, 0.2) 80%);
    filter: blur(80px);
    animation: gradient-shift 25s ease-in-out infinite alternate;
    opacity: 0.8;
}

@keyframes gradient-shift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10%, -5%) scale(1.1);
    }

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

#background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    mix-blend-mode: multiply;
}

/* =====================================================
   HERO - Full-screen zoom on scroll
===================================================== */

/* Wrapper for scroll-based animation */
.hero-wrapper {
    height: 250vh;
    position: relative;
}

.hero {
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    overflow: hidden;
    background-color: transparent;
    padding-top: 80px;
}

@media (min-width: 900px) {
    .hero {
        padding-top: 0;
    }
}

/* Background gradient */
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(233, 168, 160, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 60%, rgba(212, 165, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    padding: 0 var(--space-md);
    transition: opacity 0.3s ease;
}

.hero__container.fading {
    opacity: 0;
}

@media (min-width: 900px) {
    .hero__container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        text-align: left;
        gap: var(--space-xl);
    }
}

/* Label - hidden initially to avoid nav overlap */
.hero__label {
    display: none;
}

/* Left side - now TITLE (swapped) */
.hero__left {
    order: 2;
    max-width: 380px;
    padding: 0 var(--space-sm);
}

@media (min-width: 900px) {
    .hero__left {
        order: 0;
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        text-align: right;
        padding-right: var(--space-lg);
        padding-left: 0;
    }
}

.hero__title {
    font-size: clamp(1.4rem, 6vw, 2.8rem);
    line-height: 1.15;
    margin: 0;
}

/* Center - Portrait (becomes fullscreen on scroll) */
.hero__visual {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-bottom: var(--space-sm);
    flex-direction: column;
}

@media (min-width: 900px) {
    .hero__visual {
        order: 0;
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
    }
}

.hero__portrait {
    position: relative;
    width: clamp(220px, 30vw, 350px);
    height: clamp(300px, 45vw, 500px);
    border-radius: 200px;
    overflow: hidden;
    box-shadow:
        0 60px 120px rgba(44, 37, 37, 0.08),
        0 30px 60px rgba(44, 37, 37, 0.04);
}

/* Fixed portrait overlay for fullscreen zoom */
.hero__portrait-fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    border-radius: 200px;
    transition: border-radius 0.3s ease;
    will-change: width, height, transform, border-radius;
}

.hero__portrait-fixed.active {
    visibility: visible;
    opacity: 1;
    transition: border-radius 0.3s ease;
}

.hero__portrait-fixed.fullscreen {
    border-radius: 0;
}

.hero-zoom-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 70%);
    pointer-events: none;
}

.hero__portrait-fixed.fullscreen .hero-zoom-text {
    opacity: 1;
    transform: scale(1);
}

.hero-zoom-text span {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    margin-bottom: 0.5rem;
    display: block;
}

.hero-zoom-text strong {
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
}

/* Hero Caption */
.hero__caption {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    display: block;
    text-align: center;
}

.hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__portrait-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Right side - now SUBTITLE (swapped) */
.hero__right {
    order: 3;
    max-width: 350px;
}

@media (min-width: 900px) {
    .hero__right {
        order: 0;
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
        text-align: left;
        padding-left: var(--space-lg);
    }
}

.hero__subtitle {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    padding: 0 var(--space-sm);
}

@media (min-width: 900px) {
    .hero__subtitle {
        padding: 0;
    }
}

/* CTA */
.hero__cta {
    order: 4;
    grid-column: 1 / -1;
    margin-top: var(--space-md);
}

@media (min-width: 900px) {
    .hero__cta {
        grid-row: 3;
        margin-top: var(--space-lg);
    }
}

/* =====================================================
   STATEMENT / QUOTE SECTION
===================================================== */
.statement {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
    text-align: center;
}

.statement__text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text);
}

.statement__text::before {
    content: '« ';
    color: var(--color-accent);
}

.statement__text::after {
    content: ' »';
    color: var(--color-accent);
}

/* =====================================================
   PORTFOLIO - Vertical Cards Grid
===================================================== */
.portfolio {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background-color: var(--color-bg);
}

.portfolio__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .portfolio__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.portfolio__title {
    max-width: 500px;
}

.portfolio__desc {
    max-width: 350px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .portfolio__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

.portfolio__item {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background-color: var(--color-border-light);
}

.portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition), filter var(--transition);
}

.portfolio__item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* =====================================================
   ABOUT SECTION - Asymmetric Layout
===================================================== */
.about {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
}

.about__grid {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 900px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about__title {
    margin-bottom: var(--space-sm);
}

.about__text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
}

.about__highlight {
    font-weight: 500;
    color: var(--color-text);
}

.about__list {
    list-style: none;
    margin-top: var(--space-sm);
}

.about__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.about__list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.about__image {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--color-bg);
}

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

.about__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.about__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.about__meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* =====================================================
   PAINS / PROBLEMS SECTION
===================================================== */
.pains {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.pains__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pains__title {
    margin-bottom: var(--space-xl);
}

.pains__grid {
    display: grid;
    gap: var(--space-sm);
    text-align: left;
}

@media (min-width: 768px) {
    .pains__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

.pains__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: var(--space-md);
    background-color: var(--color-white);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-accent);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pains__icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Fade-up animation for scroll reveal */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.pains__resolve {
    margin-top: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
}

/* =====================================================
   SERVICES SECTION
===================================================== */
.services {
    padding: var(--space-2xl) 0;
    background-color: var(--color-bg);
}

.services__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.services__title {
    margin-bottom: var(--space-sm);
}

.services__grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

.services__card {
    padding: var(--space-lg);
    background-color: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.services__card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 60px rgba(44, 37, 37, 0.06);
}

.services__card-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.services__list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.services__list li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9rem;
}

.services__list li:last-child {
    border-bottom: none;
}

.services__list--prices li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.services__price-value {
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

.services__extra {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.services__extra-title {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.services__price {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.services__cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* About Education Highlight */
.about__education {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(233, 168, 160, 0.15) 0%, rgba(212, 165, 196, 0.15) 100%);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-accent);
}

.about__education-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.about__education-names {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    margin: 0;
}

/* =====================================================
   COURSE / EDUCATION SECTION
===================================================== */
.course {
    padding: var(--space-2xl) 0;
    background-color: var(--color-bg);
    /* Unified background */
}

.course__content {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: transparent;
    /* Remove nested box bg */
    color: var(--color-text);
    padding: 0;
    /* Remove nested padding */
    position: relative;
}

.course__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.course__label {
    color: rgba(44, 37, 37, 0.6);
}

.course__title {
    margin-bottom: var(--space-sm);
}

.course__intro {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.course__details {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .course__details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.course__block {
    padding: var(--space-md);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    text-align: left;
}

.course__block-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.course__block ul {
    list-style: none;
}

.course__block li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.course__block li::before {
    content: '—';
    position: absolute;
    left: 0;
}

.course__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.course__meta-item {
    padding: var(--space-sm) var(--space-md);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    text-align: center;
}

.course__meta-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
}

.course__meta-item span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.course__cta {
    text-align: center;
}

/* =====================================================
   REVIEWS SECTION
===================================================== */
.reviews {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
}

.reviews__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.reviews__grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reviews__card {
    padding: var(--space-lg);
    background-color: var(--color-bg);
    border-radius: var(--radius);
}

.reviews__text {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.reviews__author {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
}

/* =====================================================
   FINAL CTA SECTION
===================================================== */
.final-cta {
    padding: var(--space-3xl) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.final-cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta__title {
    margin-bottom: var(--space-md);
}

.final-cta__text {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

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

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer__links {
        flex-direction: row;
        justify-content: space-between;
        gap: var(--space-md);
    }
}

.footer__link {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

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

/* Telegram link with icon */
.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.telegram-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

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

/* Nav Telegram link */
.nav__telegram {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.nav__telegram svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

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

@media (min-width: 768px) {
    .nav__telegram {
        display: inline-flex;
    }
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* =====================================================
   SECTION DIVIDERS - SVG Waves
===================================================== */
.section-wave {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}

.section-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-wave--top {
    margin-bottom: -1px;
}

.section-wave--bottom {
    margin-top: -1px;
    transform: rotate(180deg);
}

.section-wave--white svg path {
    fill: var(--color-white);
}

.section-wave--bg svg path {
    fill: var(--color-bg);
}

/* =====================================================
   GRADIENT MASKS - Smooth section transitions
===================================================== */
.section-gradient-top {
    position: relative;
}

.section-gradient-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--color-bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.section-gradient-bottom {
    position: relative;
}

.section-gradient-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, var(--color-bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* =====================================================
   3D CARD EFFECT - Perspective hover
===================================================== */
.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform var(--transition);
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(-5deg) rotateX(3deg);
}

/* Apply 3D effect to services cards */
.services__card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.services__card:hover {
    transform: rotateY(-3deg) rotateX(2deg) translateY(-5px);
    border-color: var(--color-accent);
    box-shadow:
        rgba(0, 0, 0, 0.1) 0px 20px 40px,
        rgba(0, 0, 0, 0.05) 0px 10px 20px,
        rgba(233, 168, 160, 0.2) 0px 0px 0px 1px;
}

/* Apply 3D effect to portfolio items */
.portfolio__item {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform var(--transition);
}

.portfolio__item:hover {
    transform: rotateY(-3deg) rotateX(2deg) scale(1.02);
}

/* =====================================================
   MULTI-LAYER SHADOWS
===================================================== */
.shadow-layered {
    box-shadow:
        rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
        rgba(0, 0, 0, 0.05) 0px 1px 0px 0px,
        rgba(255, 255, 255, 0.15) 0px 0px 0px 1px;
}

/* Enhanced button shadows */
.btn {
    box-shadow:
        rgba(0, 0, 0, 0.05) 0px 1px 2px,
        rgba(0, 0, 0, 0.03) 0px 2px 4px;
}

.btn:hover {
    box-shadow:
        rgba(0, 0, 0, 0.1) 0px 4px 8px,
        rgba(0, 0, 0, 0.05) 0px 2px 4px,
        rgba(233, 168, 160, 0.3) 0px 0px 0px 2px;
}

.btn--filled {
    box-shadow:
        rgba(233, 168, 160, 0.3) 0px 4px 12px,
        rgba(0, 0, 0, 0.05) 0px 1px 2px;
}

.btn--filled:hover {
    box-shadow:
        rgba(44, 37, 37, 0.2) 0px 8px 20px,
        rgba(0, 0, 0, 0.1) 0px 4px 8px;
}

/* Enhanced card shadows */
.reviews__card {
    box-shadow:
        rgba(0, 0, 0, 0.04) 0px 4px 12px,
        rgba(0, 0, 0, 0.02) 0px 1px 4px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.reviews__card:hover {
    transform: translateY(-4px);
    box-shadow:
        rgba(0, 0, 0, 0.08) 0px 12px 24px,
        rgba(0, 0, 0, 0.04) 0px 4px 8px;
}

/* =====================================================
   IMAGE MARQUEE / GALLERY SLIDER
===================================================== */
/* =====================================================
   3D GALLERY COMPONENT
===================================================== */
.gallery-3d-section {
    padding: var(--space-3xl) 0;
    /* Keep it spacious */
    background-color: transparent;
    overflow: hidden;
    /* Prevent horizontal scrollbar if elements poke out */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Make it full viewport height driven */
}

.gallery-3d-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Allow full width */
    height: 80vh;
    /* Occupy most of the screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center alignment */
    padding-right: 0;
    perspective: 1500px;
    /* Deeper perspective for large items */
}

/* On mobile, we might need a different view or scale down */
@media (max-width: 768px) {
    .gallery-3d-container {
        perspective: 1000px;
        transform: none;
        /* Reset distinct mobile scale, handle via responsive item sizes */
        height: 60vh;
    }
}

.gallery-3d-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-3d-item {
    position: absolute;
    top: 50%;
    /* Start off-screen or unpositioned; JS will place them immediately */
    left: 0;
    width: 460px;
    /* Increased by 15% */
    height: 690px;
    /* Increased by 15% */
    /* margin-top removed to avoid double-centering with JS translate(-50%) */

    /* Responsive sizing */
    max-width: 85vw;
    /* Allow slightly wider on mobile */
    max-height: 75vh;

    transform-style: preserve-3d;
    will-change: transform, opacity;
    /* optimize for 60fps */
    /* No transition here! We are using JS frame loop. */

    border-radius: 30px;
    /* More rounded corners */
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    /* Increased shadow for scale */
}

.gallery-3d-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* 3rd behind */
.gallery-3d-card.gallery-pos-3 {
    z-index: 17;
    transform: scale(0.84) translateX(-180px) rotateY(12deg);
    filter: brightness(0.85);
    opacity: 1;
}

/* 4th behind */
.gallery-3d-card.gallery-pos-4 {
    z-index: 16;
    transform: scale(0.76) translateX(-240px) rotateY(12deg);
    filter: brightness(0.8);
    opacity: 1;
}

/* 5th behind */
.gallery-3d-card.gallery-pos-5 {
    z-index: 15;
    transform: scale(0.68) translateX(-300px) rotateY(12deg);
    filter: brightness(0.75);
    opacity: 1;
}

/* 6th behind */
.gallery-3d-card.gallery-pos-6 {
    z-index: 14;
    transform: scale(0.60) translateX(-360px) rotateY(12deg);
    filter: brightness(0.7);
    opacity: 1;
}

/* Further items hidden */
.gallery-3d-card.gallery-pos-hidden {
    z-index: 1;
    transform: scale(0.5) translateX(-400px) rotateY(12deg);
    opacity: 0;
    pointer-events: none;
}

/* =====================================================
   UTILITIES
===================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .gallery-marquee__track {
        animation: none;
    }
}