/* =================================
   КОСМЕТОЛОГ МОЛОКОВА ЕКАТЕРИНА
   "Искусство преображения"
   Editorial Magazine Style
   ================================= */

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors - Premium Palette */
    --ivory: #FAF9F6;
    --charcoal: #2C2C2C;
    --warm-gold: #D4AF37;
    --sage-green: #9CAF88;
    --light-gray: #E8E8E8;
    --mid-gray: #6B6B6B;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Nunito Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1400px;
    
    /* Animations */
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

/* ========== GLOBAL RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--ivory);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== ACCESSIBILITY ========== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warm-gold);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: var(--transition-fast);
}

.skip-to-content:focus {
    top: 20px;
}

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== CUSTOM CURSOR ========== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--warm-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%) scale(1);
}

.custom-cursor.active {
    opacity: 1;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(212, 175, 55, 0.1);
}

@media (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--warm-gold);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ivory) 0%, #F5F4F0 100%);
    padding-top: 80px;
}

/* Animated Blob Shapes */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    opacity: 0.6;
    filter: blur(40px);
    animation: morphing 20s ease-in-out infinite;
    will-change: transform;
}

.blob-1 {
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    animation-delay: 7s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes morphing {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9) rotate(240deg);
    }
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
    color: var(--warm-gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--mid-gray);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-info {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.rating-container {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 600;
    color: var(--warm-gold);
    line-height: 1;
}

.rating-stars {
    color: var(--warm-gold);
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.hero-description {
    max-width: 500px;
    line-height: 1.8;
    color: var(--mid-gray);
}

/* Hero Image - Artistic Placement */
.hero-image {
    position: relative;
    opacity: 0;
    animation: fadeInRight 1.2s ease forwards 1s;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 200px 200px 20px 20px;
    box-shadow: 0 30px 80px rgba(44, 44, 44, 0.15);
    transition: var(--transition-smooth);
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(156, 175, 136, 0.1));
    z-index: 1;
    pointer-events: none;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.hero-image-frame:hover img {
    transform: scale(1.05);
}

.decorative-label {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--warm-gold);
    color: white;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ========== BUTTONS ========== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--warm-gold);
    color: white;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--ivory);
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s ease;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== SECTION STYLES ========== */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding) 2rem;
}

.section-header {
    margin-bottom: 5rem;
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

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

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

/* ========== ABOUT SECTION ========== */
.about {
    background: var(--ivory);
    position: relative;
}

.about-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-image-frame {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(44, 44, 44, 0.15);
    transition: var(--transition-smooth);
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.about-image-frame:hover img {
    transform: scale(1.08);
}

.image-gradient-border {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--warm-gold), var(--sage-green));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.about-image-frame:hover .image-gradient-border {
    opacity: 1;
}

.decorative-element {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--warm-gold), var(--sage-green));
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.about-content {
    padding: 2rem 0;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: var(--mid-gray);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--light-gray);
}

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

.feature-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--warm-gold);
    margin-bottom: 0.5rem;
}

.feature-label {
    display: block;
    font-size: 0.9rem;
    color: var(--mid-gray);
    letter-spacing: 0.5px;
}

/* ========== SERVICES SECTION ========== */
.services {
    background: linear-gradient(180deg, var(--ivory) 0%, #F5F4F0 100%);
    position: relative;
}

.services-grid {
    display: grid;
    gap: 4rem;
}

.service-item {
    position: relative;
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.service-item::before {
    content: attr(data-number);
    position: absolute;
    top: 0;
    left: -4rem;
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 300;
    color: var(--light-gray);
    line-height: 1;
    z-index: 0;
}

/* Featured Services with Images */
.service-featured {
    grid-template-columns: 450px 1fr;
    align-items: center;
    gap: 4rem;
}

.service-reverse {
    grid-template-columns: 1fr 450px;
}

.service-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.15);
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
}

.service-featured:hover .service-image,
.service-reverse:hover .service-image {
    transform: rotate(0deg) scale(1.02);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.service-image:hover img {
    transform: scale(1.1);
}

.service-content {
    position: relative;
    z-index: 1;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.service-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--mid-gray);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.service-price {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--warm-gold);
    display: inline-block;
    padding: 0.5rem 2rem;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
    border-radius: 50px;
}

.cta-container {
    text-align: center;
    margin-top: 5rem;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(156, 175, 136, 0.05));
    border-radius: 20px;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

/* ========== GALLERY SECTION ========== */
.gallery {
    background: var(--ivory);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 300px);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.15);
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Broken Grid Layout */
.gallery-item-1 {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
}

.gallery-item-2 {
    grid-column: 7 / 13;
    grid-row: 1 / 2;
}

.gallery-item-3 {
    grid-column: 7 / 10;
    grid-row: 2 / 4;
}

.gallery-text {
    grid-column: 10 / 13;
    grid-row: 2 / 4;
    display: flex;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--warm-gold), var(--sage-green));
    border-radius: 20px;
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

/* ========== REVIEWS SECTION ========== */
.reviews {
    background: linear-gradient(180deg, var(--ivory) 0%, #F5F4F0 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.review-item {
    position: relative;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(44, 44, 44, 0.08);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
}

.review-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.12);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 8rem;
    line-height: 1;
    color: var(--light-gray);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.5;
}

.review-rating {
    color: var(--warm-gold);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--mid-gray);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm-gold), var(--sage-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.author-name {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
}

.author-date {
    font-size: 0.9rem;
    color: var(--mid-gray);
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 6rem;
    padding: 4rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(44, 44, 44, 0.08);
}

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

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 600;
    color: var(--warm-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--mid-gray);
    letter-spacing: 0.5px;
}

/* ========== CONTACT SECTION ========== */
.contact {
    background: var(--ivory);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(156, 175, 136, 0.1));
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mid-gray);
    margin-bottom: 0.5rem;
}

.contact-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--warm-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--sage-green);
}

.contact-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal);
}

.contact-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.feature-badge {
    padding: 0.7rem 1.5rem;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--mid-gray);
    box-shadow: 0 5px 15px rgba(44, 44, 44, 0.08);
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.15);
    height: 600px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--charcoal);
    color: var(--ivory);
    padding: 3rem 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--light-gray);
}

.footer-text {
    font-size: 0.95rem;
    color: var(--light-gray);
    margin-bottom: 0.3rem;
}

.footer-link {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--warm-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--sage-green);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image-frame {
        height: 500px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-frame {
        height: 500px;
    }

    .service-featured,
    .service-reverse {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 350px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-text {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-image-frame {
        height: 400px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-image-frame {
        height: 400px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-item::before {
        font-size: 5rem;
        left: 0;
        opacity: 0.3;
    }

    .service-image {
        height: 300px;
    }

    .gallery-grid {
        gap: 1rem;
    }

    .reviews-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 3rem 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}