/* Estante Home Page - css/pages/home.css */

/* HERO SECTION */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at 20% 50%, #2A2A2A 0%, var(--bg-dark) 70%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 5.5vw, 5rem);
    color: var(--text-main-dark);
    margin-bottom: 30px;
}

.hero h1 span {
    display: block;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted-dark);
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 0.02em;
    border-left: 1px solid var(--accent-gold);
    padding-left: 20px;
    line-height: 1.7;
}

.search-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    padding: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 24px;
    height: 44px;
    font-size: 16px;
    outline: none;
    color: white;
    font-family: var(--font-sans);
}

.search-btn {
    background: var(--text-main-dark);
    color: var(--bg-dark);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--accent-gold);
}

.quick-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag:hover {
    border-color: var(--accent-gold);
    color: var(--text-main-dark);
}

/* HERO VISUAL & GRID */
.hero-visual {
    flex: 1.2;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.scatter-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 650px;
}

.matrix-item {
    background: #FFFFFF;
    border-radius: 18px;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s;
    animation: breathe-opacity 4s infinite alternate ease-in-out;
    opacity: 0.4;
}

.matrix-item.empty {
    background: transparent;
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.matrix-item img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.matrix-item:not(.empty):hover {
    opacity: 1 !important;
    z-index: 10;
    transform: scale(1.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--accent-gold);
}

.matrix-item:not(.empty):hover img {
    transform: scale(1.1) rotate(5deg);
    filter: grayscale(0%);
}
.matrix-item.mob-show{
        display: none;
    }

@keyframes breathe-opacity {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.8;
    }
}

/* ROLES SECTION */
.roles-section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    margin-bottom: 60px;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.role-card {
    background: var(--bg-panel);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s, background 0.4s;
    cursor: pointer;
    text-decoration: none;
}

.role-card.active-border {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(198, 168, 124, 0.1);
}

.role-card:hover {
    transform: translateY(-5px);
    background: #222;
}

.role-num {
    font-family: var(--font-serif);
    font-size: 80px;
    color: rgba(255, 255, 255, 0.02);
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 0.8;
    font-style: italic;
}

.role-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.role-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.role-desc {
    color: var(--text-muted-dark);
    font-size: 15px;
    margin-bottom: 40px;
    flex: 1;
    font-weight: 300;
}

.role-bonus {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: white;
}

.bonus-icon {
    width: 32px;
    height: 32px;
    background: rgba(198, 168, 124, 0.1);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CATALOG */
.wrapper-light {
    background-color: var(--bg-light);
    color: var(--text-main-light);
    border-radius: 60px 60px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

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

.head-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.title-dark {
    color: var(--text-main-light);
    font-size: 48px;
}

.link-arrow {
    color: var(--text-main-light);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    border-bottom: 1px solid currentColor;
}

.mobile-catalog-link {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.mobile-catalog-link a {
    color: var(--text-main-light);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    border-bottom: 1px solid currentColor;
}

.grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card-product {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    group;
    position: relative;
}

.card-img-box {
    height: 320px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #F3F4F6;
    margin-bottom: 15px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
    filter: sepia(0.1) brightness(0.95);
}

.card-product:hover .card-img {
    transform: scale(1.05);
    filter: sepia(0);
}

/* Кнопка "Избранное" */
.btn-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    
    /* Центрирование иконки */
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    
    /* Цвет по умолчанию (Серый) */
    color: #D1D5DB; 
    z-index: 5;
}

/* Стили самой иконки SVG */
.btn-wishlist svg {
    width: 20px;
    height: 20px;
    stroke: currentColor; /* Берет цвет текста родителя */
    stroke-width: 2;
    fill: none; /* Внутри пусто */
    transition: all 0.2s ease;
}

/* При наведении */
.btn-wishlist:hover {
    transform: scale(1.1);
    color: #9CA3AF; /* Чуть темнее серый */
}

/* АКТИВНОЕ СОСТОЯНИЕ (выбран) */
.btn-wishlist.active {
    color: var(--accent-green); /* Зеленый цвет */
}

.btn-wishlist.active svg {
    fill: currentColor; /* Заливаем внутренность зеленым */
    stroke: currentColor;
    animation: heartPulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Анимация удара сердца при клике */
@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Эффект при наведении мышки (немного увеличивается) */
.btn-wishlist:hover {
    transform: scale(1.15);
    color: #9CA3AF; /* Чуть темнее серый */
}

/* АКТИВНОЕ СОСТОЯНИЕ (ЗЕЛЕНЫЙ) */
.btn-wishlist.active {
    color: var(--accent-green); /* Используем ваш зеленый цвет */
    animation: heartPop 0.3s ease-out; /* Анимация нажатия */
}

/* Небольшая анимация "подпрыгивания" при клике */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.card-price-val {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main-light);
}

.prod-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.prod-sub {
    font-size: 13px;
    color: var(--text-muted-light);
    margin-bottom: 15px;
}



.card-actions { 
    margin-top: auto; 
    min-height: 44px; /* Фиксируем высоту блока действий */
}

.btn-add-cart { 
    width: 100%; 
    height: 44px; /* Фиксированная высота */
    padding: 0 12px; 
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 14px; 
    transition: 0.2s; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px;
    
    /* ФИКС ДЛЯ МОБИЛЬНЫХ (убирает синий цвет) */
    color: var(--text-main-light) !important; 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none;
}

.btn-add-cart:hover { 
    border-color: var(--text-main-light); 
    background: #f9f9f9; 
}

.qty-selector { 
    display: none; 
    width: 100%; 
    height: 44px; /* ТАКАЯ ЖЕ высота как у кнопки */
    background: var(--text-main-light); 
    color: white; 
    border-radius: 12px; 
    padding: 0 12px; /* Убираем вертикальные отступы, выравниваем флексом */
    justify-content: space-between; 
    align-items: center; 
    box-sizing: border-box;
}

.qty-btn { 
    background: none; 
    border: none; 
    color: white; 
    font-size: 20px; /* Чуть крупнее для пальца */
    cursor: pointer; 
    width: 40px; /* Увеличил зону клика */
    height: 100%;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0;
}

.qty-val { 
    font-weight: 600; 
    font-size: 16px; 
    line-height: 1;
}
.sets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* RENTER SECTION */
.renter-section {
    padding: 100px 0;
}

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

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: #D8D8D4;
    color: var(--text-main-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.list-check li {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-muted-light);
    font-size: 16px;
}

.list-check li strong {
    color: var(--text-main-light);
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-serif);
    font-size: 18px;
}

.icon-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    background: var(--text-main-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.card-visual {
    background: var(--accent-green);
    color: #fff;
    padding: 50px;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(61, 90, 83, 0.4);
    overflow: hidden;
}

.card-visual::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(2);
}

/* LENDER SECTION */
.section-dark-break {
    background: var(--bg-dark);
    color: var(--text-main-dark);
    padding: 120px 0;
    border-radius: 60px 60px 0 0;
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.list-dark li {
    list-style: none;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 1px solid #333;
    color: var(--text-muted-dark);
    transition: 0.3s;
}

.list-dark li:hover {
    border-color: var(--accent-gold);
    color: white;
    padding-left: 30px;
}

.list-dark span {
    display: block;
    font-size: 20px;
    color: white;
    font-family: var(--font-serif);
    margin-bottom: 5px;
}

.mockup-frame {
    background: #222;
    border: 8px solid #333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px black;
    position: relative;
    transform: none;
}

.mockup-screen {
    background: #1C1C1C;
    padding: 30px;
    height: 350px;
    position: relative;
    overflow: hidden;
}

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

.mockup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.mockup-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    position: absolute;
    bottom: 15px;
    width: 100%;
    left: 0;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

.bonus-text {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #444;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bonus-text b {
    color: var(--accent-gold);
}

.icon-svg-min {
    width: 20px;
    height: 20px;
    stroke: var(--accent-gold);
    fill: none;
    stroke-width: 2;
    margin-right: 5px;
}

.wrapper-light-2 {
    background-color: var(--bg-light);
    color: var(--text-main-light);
    border-radius: 60px 60px 0 0;
    margin-top: -60px;
    position: relative;
    z-index: 30;
    padding-bottom: 100px;
}

/* TEAM SECTION (NEW) */
.team-box-large {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.team-role-row {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.team-role-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}



.team-ava {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #333;
    font-weight: bold;
    font-size: 20px;
}
.team-ava svg {
    width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2;
    }

.team-desc h4 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    font-family: var(--font-sans);
}

.team-desc p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* REVIEWS */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.review-bubble {
    background: white;
    padding: 30px;
    border-radius: 0 30px 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}

.reviewer {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
}

.review-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.r-dot {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
}

.r-dot.active {
    background: var(--accent-green);
}

/* CTA */
.cta-box {
    background: var(--accent-green);
    color: white;
    margin: 0 20px;
    border-radius: 40px;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: 'Estantes';
    font-family: var(--font-logo);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    opacity: 0.05;
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-logo);
    font-weight: 400;
}

.cta-box h2 span {
    font-family: var(--font-sans);
    font-weight: 700;
}

.cta-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
    background: rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 20px;
}

.cta-info-col h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.cta-info-col p {
    font-size: 15px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.5;
}

/* QUESTIONS */
.questions-section {
    padding: 80px 0;
    background: #fff;
}

.quest-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.quest-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.q-input {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: #F9FAFB;
    font-family: inherit;
}

.q-input:focus {
    border-color: var(--accent-green);
    background: white;
}

.q-area {
    min-height: 120px;
    resize: vertical;
}

.quest-contacts {
    width: 300px;
}

.social-icons-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main-light);
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--accent-green);
    color: white;
    border-color: transparent;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .hero {
    padding: 120px 0 100px;
    }
    .hero-layout {
        flex-direction: column-reverse;
        text-align: left;
    }

    .hero-visual {
        display: flex;
        height: auto;
        margin-bottom: 30px;
        width: 100%;
        justify-content: center;
    }

    /* MOBILE PATTERN (4 cols, 3 rows) */
    .scatter-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(3, 1fr);
        max-width: 100%;
        gap: 10px;
    }
 
    .matrix-item {
        display: none;
    }

    /* Hide all desktop items */
    .matrix-item.mob-show {
        display: flex;
        border-radius: 12px;
    }

    /* Show only specific ones */
    .matrix-item.empty.mob-show {
        display: block;
        background: transparent;
        opacity: 0;
        pointer-events: none;
    }

    /* Empty spacer */

    .grid-catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .head-flex .link-arrow {
        display: none;
    }

    .mobile-catalog-link {
        display: block;
    }

    .card-img-box {
        height: 180px;
        border-radius: 12px;
    }

    .card-price-val {
        font-size: 16px;
    }

    .prod-title {
        font-size: 14px;
    }

    .btn-add-cart {
        padding: 8px;
        font-size: 12px;
    }

    .sets-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(200px, 1fr));
        grid-auto-flow: column;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 20px;
        scrollbar-width: none;
    }

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

    .review-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        margin-top: 40px;
        padding-bottom: 20px;
        scrollbar-width: none;
        flex-direction: row;
    }

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

    .review-bubble {
        min-width: 100%;
        scroll-snap-align: center;
        border-radius: 20px;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .review-dots {
        display: flex;
    }

    .split-grid,
    .pro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .review-grid,
    .cta-info,
    .quest-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .quest-contacts {
        width: 100%;
    }

    .quest-form,
    .quest-form .btn {
        width: 100%;
    }
}
.home-start{
        background: var(--bg-light);
           
}
.home-start .cta-box{
 margin: 0;
}
@media (max-width: 900px) {
.cta-box::before {
font-size: 120px;
}
}