
:root {
    --bg-color: #D9CFC5; 
    --text-dark: #580B08; 
    --accent-color: #D87653; 
    --card-bg: #D9D0C4; 
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Ограничитель ширины  */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- ШАПКА --- */
.header {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
    background-color: #9B8272;
    
    
}

.logo {
    
    font-size: 24px;
    font-weight: 700;
}

.logo-text{
    margin-right: auto;
    color: #413028;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    
}

.login-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

/* --- КНОПКИ --- */
.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    
}

.btn:hover {
    opacity: 0.9;
}

.btn-dark {
    background-color: #413028;
    color: #D9CFC5;
}

.btn-light {
    background-color: rgba(216, 118, 83, 0.5);
    color: #580B08;
    border: 1px solid var(--text-dark);
}

/* --- ГЛАВНЫЙ ЭКРАН --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.stat-item span {
    font-size: 14px;
    opacity: 0.7;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    object-fit: cover;
}

/* --- ПРЕИМУЩЕСТВА --- */
.features {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    opacity: 0.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    background-color: rgba(255, 255, 255, 0.3);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    opacity: 0.8;
}


/* --- ТРЕНДЫ БУДУЩЕГО --- */
.trends-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.section-padding { padding: 80px 0; }

.trends-title {
    color: #4A1A0F;
    font-size: 48px;
    margin-bottom: 15px;
}

/* Контейнер слайдера */
.slider-viewport {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 550px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute; 
    top: 50%;
    left: 50%;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: inherit; /* Чтобы картинка наследовала скругления слайда */
}

/* СОСТОЯНИЯ СЛАЙДОВ */

/* Центральный */
.main-slide {
    width: 380px;
    height: 480px;
    z-index: 10;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    border: 10px solid #A89C8F;
    opacity: 1;
}

/* Левый */
.side-slide.left {
    width: 300px;
    height: 380px;
    z-index: 5;
    transform: translate(-150%, -50%) scale(0.85);
    filter: brightness(0.3);
    opacity: 0.7;
}

/* Правый */
.side-slide.right {
    width: 300px;
    height: 380px;
    z-index: 5;
    transform: translate(50%, -50%) scale(0.85);
    filter: brightness(0.3);
    opacity: 0.7;
}

/* Скрытые слайды (если их больше 3), чтобы они плавно выплывали из ниоткуда */
.slide:not(.main-slide):not(.left):not(.right) {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 1;
}

/* Кнопки теперь привязаны к viewport и не зависят от слайдов */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-btn.prev {
    left: calc(50% - 380px);
}

.nav-btn.next {
    right: calc(50% - 380px);
}


.nav-btn span {
    line-height: 0;
    display: inline-block;
    margin-top: -2px; 
}

/* Подвал: кнопка и огонек */
.trends-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.counter-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fire { font-size: 32px; }

.counter-text { text-align: left; }

.counter-text strong {
    display: block;
    font-size: 24px;
    color: #4A1A0F;
    line-height: 1;
}

.counter-text span {
    font-size: 14px;
    opacity: 0.6;
}

/* --- КАК ЭТО РАБОТАЕТ --- */
.how-it-works {
    text-align: center;
}
.steps-grid {
    display: flex;
    justify-content: center; 
    align-items: stretch;
    gap: 15px; 
    margin-top: 80px; 
    padding: 0 20px;
}

/* Сама карточка */
.step-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1.5px solid rgba(74, 26, 15, 0.2); 
    border-radius: 24px; 
    padding: 50px 30px; 
    text-align: left;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s ease;
}

.step-card:hover {
    background: rgba(74, 26, 15, 0.03);
    border-color: #4A1A0F;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 26, 15, 0.05);
}
.step-number {
    font-size: 56px; 
    font-weight: 800;
    color: #A89C8F;
    margin-bottom: 25px;
    line-height: 1;
    letter-spacing: -2px;
}

/* Заголовок внутри карточки */
.step-name {
    font-size: 22px; 
    font-weight: 700;
    color: #4A1A0F;
    margin-bottom: 18px;
    line-height: 1.3;
}

/* Описание */
.step-description {
    font-size: 15px; 
    line-height: 1.7;
    color: #4A1A0F;
    opacity: 0.8;
}


/* --- ГОТОВЫ ЗАПУСТИТЬ СВОЙ БРЕНД? --- */
.cta-section {
    margin-top: 40px;
    margin-bottom: 80px; 
    padding: 0 20px;
}
.cta-box {
    background-color: #3E2B23; 
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto; 
    color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(62, 43, 35, 0.15); 
}

/* Заголовок */
.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Подзаголовок */
.cta-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px auto;
}
.cta-btn {
    background-color: #F4F1ED; 
    color: #3E2B23; 
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    margin-bottom: 20px;
}

.cta-btn:hover {
    background-color: #ECEEF2;
    transform: translateY(-4px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Ссылка в самом низу */
.cta-link {
    display: block;
    color: #D9CFC5;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}


/* --- АНИМАЦИЯ ЗАГРУЗКИ --- */
.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

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

@media (max-width: 768px) {
    .header-container {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 20px !important;
        align-items: center !important;
    }

    .header-actions {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    #site-balance {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 8px !important;
    }

    .login-link {
        flex: 1 1 40% !important;
        min-width: 120px !important;
        padding: 10px !important;
        font-size: 14px !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 50px !important;
        color: #413028 !important;
    }

    .btn-dark {
        flex: 1 1 40% !important;
        min-width: 120px !important;
        padding: 10px !important;
        font-size: 14px !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 50px !important;
    }

    .header-cta {
        display: none !important;
    }

    .btn {
        padding: 12px 20px;     
        font-size: 14px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        margin-top: 24px;
        margin-bottom: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-image-wrapper {
        order: -1;
        width: 100%;
    }

    .hero-image {
        max-width: 100%;
        border-radius: 16px;
    }
    
    /* Карусель для преимуществ */
    .features-grid {
        display: flex;            
        overflow-x: auto;        
        scroll-snap-type: x mandatory; 
        gap: 16px;            
        padding: 20px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 280px;          
        scroll-snap-align: start; 
        border-radius: 16px; 
        padding: 24px;
        box-sizing: border-box;
    }




    /* Карусель для шагов */
    .steps-grid {
        display: flex;            
        overflow-x: auto;         
        scroll-snap-type: x mandatory; 
        gap: 16px;
        padding: 20px 0;
        scrollbar-width: none;    
        -webkit-overflow-scrolling: touch;
    }

    .steps-grid::-webkit-scrollbar {
        display: none;            
    }

    .step-item {
        flex: 0 0 300px;          
        scroll-snap-align: start;
    }

    .step-card {
        background-color: rgba(158, 132, 117, 0.1);
        border: 1px solid #9E8475;                 
        border-radius: 24px;                       
        padding: 30px;
        height: 100%;                              
        box-sizing: border-box;
        min-height: 280px;
    }

    .step-number {
        font-size: 42px;
        margin-bottom: 16px;
    }

    .step-name {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .step-description {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .stats,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid {
        flex-direction: column;
        gap: 20px;
    }

    .cta-box {
        padding: 50px 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        margin-top: 24px;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .stats,
    .features-grid {
        grid-template-columns: 1fr;
    }

    
    
    .nav-btn {
        display: flex;
        width: 50px;
        height: 50px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.9);
        color: #4A1A0F;
        z-index: 20;
    }

    .nav-btn.prev {
        left: 10px;
    }

    .nav-btn.next {
        right: 10px;
    }

    .step-card {
        min-height: auto;
    }

    .cta-box {
        padding: 32px 20px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 16px;
    }
}






    .section-header h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .section-header p {
        font-size: 14px;
    }

    .trends-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .trends-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }

    .trends-footer {
        gap: 16px;
    }

    .counter-box {
        gap: 12px;
    }

    .fire {
        font-size: 24px;
    }

    .counter-text strong {
        font-size: 20px;
    }

    .counter-text span {
        font-size: 12px;
    }
}

/* Глобальный стиль для SPA-контейнера */
.app {
    display: flex;
    min-height: 100vh;
    width: 100%;
}
