/* ==================== */
/* Reset & Base Styles */
/* ==================== */

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

:root {
    /* Mediterranean Color Palette */
    --color-sand: #F5F0E8;
    --color-terracotta: #D4A59A;
    --color-olive: #A8B5A0;
    --color-clay: #C9A896;
    --color-stone: #8B8378;
    --color-cream: #FDFBF7;
    --color-dark: #3D3931;
    --color-accent: #B88E7A;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-padding: 40px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==================== */
/* Typography */
/* ==================== */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-stone);
    margin-bottom: 4rem;
    font-weight: 300;
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-full-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    object-position: left center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-text-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-right: 2cm;
    padding-left: 40%;
}

.image-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-clay) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    font-size: 1.2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
}

.hero-text {
    animation: fadeInUp 1s ease-out;
    flex: 1;
    background: rgba(253, 251, 247, 0.25);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    position: relative;
}

.hero-social-icons {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.hero-social-link {
    color: var(--color-accent);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(184, 142, 122, 0.1);
}

.hero-social-link:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(184, 142, 122, 0.2);
    color: #A67B67;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--color-stone);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(141, 131, 120, 0.2);
    border-bottom: 1px solid rgba(141, 131, 120, 0.2);
}

.point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.point-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-accent);
    font-weight: 400;
}

.point-label {
    font-size: 0.9rem;
    color: var(--color-stone);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-stone);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--color-accent);
    color: var(--color-cream);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(184, 142, 122, 0.3);
    margin-left: auto;
    display: block;
    width: fit-content;
    margin-right: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(184, 142, 122, 0.4);
    background-color: #A67B67;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-stone);
    font-size: 0.85rem;
    font-weight: 300;
    z-index: 4;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-stone), transparent);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ==================== */
/* Portfolio Section */
/* ==================== */

.portfolio {
    padding: var(--section-padding) 0;
    background-color: var(--color-cream);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease;
}

.portfolio-before {
    position: relative;
    z-index: 2;
}

.portfolio-after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
}

.portfolio-item:hover .portfolio-before {
    opacity: 0;
}

.portfolio-item:hover .portfolio-after {
    opacity: 1;
}

.portfolio-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(184, 142, 122, 0.5);
    color: var(--color-cream);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-label {
    opacity: 0;
}

.portfolio-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-stone);
}

/* ==================== */
/* Program Section */
/* ==================== */

.program {
    padding: calc(var(--section-padding) * 0.8) 0;
    background-color: var(--color-sand);
}

.program-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.program-step {
    position: relative;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-accent);
    opacity: 0.4;
    position: absolute;
    top: -10px;
    left: 10px;
    z-index: 1;
}

.step-content {
    background: var(--color-cream);
    padding: 2rem 1.25rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--color-stone);
    line-height: 1.4;
}

/* ==================== */
/* Reviews Section */
/* ==================== */

.reviews {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 100%);
}

.reviews-header {
    margin-bottom: 4rem;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-accent);
    font-weight: 600;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-stone);
    margin-top: 0.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--color-cream);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.review-screenshot {
    width: 100% !important;
    height: 320px !important;
    max-height: 320px !important;
    border-radius: 8px;
    overflow: hidden !important;
    margin-bottom: 1rem;
    background: white;
    flex-shrink: 0;
}

.review-screenshot img {
    width: 100% !important;
    height: 100% !important;
    max-height: 320px !important;
    object-fit: cover !important;
    display: block;
}

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

.review-footer .review-author {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark);
    margin: 0;
}

.telegram-icon {
    flex-shrink: 0;
}

.review-rating {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    font-size: 0.9rem;
    color: var(--color-stone);
    font-weight: 500;
}

/* ==================== */
/* Benefits Section */
/* ==================== */

.benefits {
    padding: calc(var(--section-padding) * 0.7) 0;
    background-color: var(--color-cream);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--color-sand);
    padding: 1.5rem 1.25rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.benefit-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--color-stone);
    line-height: 1.4;
}

.price-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-cream);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.pricing-featured {
    border: 2px solid var(--color-accent);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-header h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: var(--color-dark);
}

.pricing-subtitle {
    color: var(--color-stone);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    display: block;
}

.price-period {
    font-size: 0.85rem;
    color: var(--color-stone);
    display: block;
    margin-top: 0.4rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.6rem 0;
    color: var(--color-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.pricing-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--color-accent);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-button:hover {
    background: #A67B67;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184, 142, 122, 0.3);
}

/* ==================== */
/* Form Section */
/* ==================== */

.form-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 100%);
}

.form-wrapper-single {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--color-cream);
    border: 1px solid rgba(141, 131, 120, 0.2);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238D8378' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(184, 142, 122, 0.1);
}

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

.submit-button {
    padding: 1.3rem 3rem;
    background-color: var(--color-accent);
    color: var(--color-cream);
    border: none;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(184, 142, 122, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(184, 142, 122, 0.4);
    background-color: #A67B67;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-stone);
    margin-top: 0.5rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
    background: var(--color-cream);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-success.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-olive);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.form-success p {
    font-size: 1.1rem;
    color: var(--color-stone);
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background-color: var(--color-dark);
    color: var(--color-sand);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-sand);
}

.footer-info p {
    color: var(--color-stone);
    font-size: 0.95rem;
}

.social-label {
    font-size: 0.9rem;
    color: var(--color-stone);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(245, 240, 232, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sand);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: var(--color-stone);
    font-size: 0.9rem;
}

/* ==================== */
/* Animations */
/* ==================== */

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

.fade-in {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* Responsive Design */
/* ==================== */

@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
        --container-padding: 30px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-text-wrapper {
        justify-content: center;
        padding-right: 30px;
        padding-left: 30px;
        padding-top: 60vh;
    }

    .hero-full-image {
        object-position: center center;
    }

    .hero-text {
        max-width: 100%;
        padding: 2.5rem;
        background: rgba(253, 251, 247, 0.85);
    }

    .hero-instagram {
        top: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .hero-instagram svg {
        width: 28px;
        height: 28px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .hero-points {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .point-number {
        font-size: 2rem;
    }

    .point-label {
        font-size: 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .reviews-stats {
        gap: 2rem;
    }

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

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-text-wrapper {
        padding-right: 20px;
        padding-left: 20px;
        padding-top: 50vh;
        align-items: flex-start;
    }

    .hero-text {
        padding: 2rem 1.5rem;
        background: rgba(253, 251, 247, 0.9);
    }

    .hero-instagram {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .hero-instagram svg {
        width: 24px;
        height: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-points {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .point {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .point-number {
        font-size: 2rem;
    }

    .point-label {
        font-size: 0.9rem;
        margin-top: 0;
        margin-left: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

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

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

    .program-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .step-content {
        padding: 1.75rem 1rem 1rem;
    }

    .step-number {
        font-size: 1.5rem;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.8rem;
    }

    .pricing-grid,
    .form-wrapper-single {
        padding: 2rem 1.5rem;
    }

    .pricing-badge {
        top: -12px;
        right: 20px;
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }

    .pricing-header h3 {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .scroll-indicator {
        display: none;
    }
}
