/* --- БАЗОВАЯ ПАЛИТРА И СИСТЕМНЫЕ СТИЛИ --- */
:root {
    --bg-deep: #0e0d0b;
    --bg-surface: #171512;
    --bg-surface-elevated: #211e19;
    --bg-card: rgba(25, 22, 18, 0.85);

    --border-light: rgba(220, 160, 50, 0.12);
    --border-strong: rgba(220, 160, 50, 0.32);

    --honey-primary: #e09214;
    --honey-bright: #f2a829;
    --honey-dull: #9a6006;
    --honey-wash: rgba(224, 146, 20, 0.08);

    --txt-main: #f5f3ef;
    --txt-muted: #aca396;
    --txt-subtle: #756d62;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-round: 40px;
    --radius-block: 20px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    background-color: var(--bg-deep);
}

body {
    background-color: var(--bg-deep);
    color: var(--txt-main);
    font-family: var(--font-body);
    line-height: 1.65;
    position: relative;
    padding-bottom: 95px;
    overflow-x: clip;
    width: 100%;
}

.site-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.text-accent {
    color: var(--honey-bright);
}

.ambient-spot {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.32;
}

.ambient-spot-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--honey-dull) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.ambient-spot-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #452a06 0%, transparent 70%);
    top: 45%;
    right: -100px;
}

/* --- ВЕРХНЯЯ ПЛАШКА РУЧНОЙ ВЫДАЧИ --- */
.shop-notice-bar {
    background: linear-gradient(90deg, #261b0c 0%, #1f160a 100%);
    border-bottom: 1px solid var(--border-strong);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.notice-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notice-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-pill {
    background: rgba(224, 146, 20, 0.2);
    color: var(--honey-bright);
    border: 1px solid rgba(224, 146, 20, 0.4);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.notice-text {
    font-size: 0.88rem;
    color: var(--txt-main);
    line-height: 1.45;
}

.notice-text strong {
    color: var(--honey-bright);
}

.notice-action-btn {
    background: var(--honey-primary);
    color: #120e08;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.notice-action-btn:hover {
    background: var(--honey-bright);
    transform: translateY(-1px);
}

/* --- ШАПКА МАГАЗИНА --- */
.shop-hero {
    padding: 50px 0 40px;
    text-align: center;
}

.shop-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.back-link {
    color: var(--txt-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--honey-bright);
}

.shop-hub-ip {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--txt-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.shop-hub-ip:hover {
    border-color: var(--border-strong);
}

.shop-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
}

.shop-subhead {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: var(--honey-bright);
    margin-top: 10px;
}

.shop-lead {
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: var(--txt-muted);
    max-width: 680px;
    margin: 0 auto 36px;
}

/* --- ФИЛЬТРЫ КАТЕГОРИЙ --- */
.shop-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--txt-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: var(--txt-main);
    border-color: var(--border-strong);
}

.filter-tab.active {
    background: var(--honey-primary);
    color: #120e08;
    border-color: var(--honey-primary);
    font-weight: 700;
}

/* --- КАТАЛОГ ТОВАРОВ --- */
.shop-catalog {
    padding: 30px 0 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-block);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.product-card.hidden {
    display: none;
}

.featured-product {
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(38, 30, 20, 0.85) 0%, rgba(20, 18, 14, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(224, 146, 20, 0.12);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--honey-bright);
    background: rgba(224, 146, 20, 0.12);
    border: 1px solid rgba(224, 146, 20, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-gold {
    background: rgba(242, 168, 41, 0.2);
    border-color: var(--honey-bright);
    color: var(--honey-bright);
}

.product-icon-wrap {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--txt-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.product-perks {
    list-style: none;
    margin-bottom: 22px;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

.product-perks li {
    font-size: 0.85rem;
    color: var(--txt-main);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-perks li::before {
    content: "•";
    color: var(--honey-bright);
    font-size: 1.2rem;
    line-height: 0;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--honey-bright);
}

.price-type {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--txt-subtle);
    font-weight: 400;
}

.btn-buy-product {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-strong);
    color: var(--txt-main);
    padding: 10px 18px;
    border-radius: var(--radius-round);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-buy-product:hover {
    background: var(--honey-primary);
    color: #120e08;
    border-color: var(--honey-primary);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--honey-bright) 0%, var(--honey-primary) 100%);
    color: #120e08;
    border: none;
}

.btn-gold:hover {
    box-shadow: 0 4px 15px rgba(224, 146, 20, 0.4);
}

/* --- ИНСТРУКЦИЯ ПОКУПКИ --- */
.shop-steps-section {
    padding: 40px 0 60px;
}

.steps-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-block);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
}

.steps-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.step-card {
    background: var(--bg-deep);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 22px 20px;
}

.step-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--honey-bright);
    margin-bottom: 8px;
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--txt-muted);
    line-height: 1.55;
}

/* --- ПОДВАЛ --- */
.footer-wrap {
    border-top: 1px solid var(--border-light);
    background: #0b0a08;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 36px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-desc {
    color: var(--txt-subtle);
    font-size: 0.85rem;
    max-width: 280px;
    margin-bottom: 12px;
}

.footer-legal-note {
    display: block;
    font-size: 0.72rem;
    color: var(--txt-subtle);
}

.footer-cell h4 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--txt-main);
    margin-bottom: 12px;
}

.footer-cell p, .footer-cell a {
    color: var(--txt-muted);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    transition: color 0.2s ease;
}

.footer-cell a:hover {
    color: var(--honey-bright);
}

.link-rules {
    color: var(--txt-main) !important;
    font-weight: 600;
}

/* --- ПЛАВАЮЩАЯ НАВИГАЦИЯ --- */
.bottom-dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(23, 20, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-round);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    scrollbar-width: none;
}

.bottom-dock::-webkit-scrollbar {
    display: none;
}

.dock-action {
    color: var(--txt-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dock-action:hover {
    color: var(--txt-main);
    background: rgba(255, 255, 255, 0.05);
}

.dock-highlight-btn {
    background: var(--honey-primary);
    color: #120e08;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    margin-left: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.dock-highlight-btn:hover {
    background: var(--honey-bright);
    transform: scale(1.03);
}

/* --- МОДАЛЬНЫЕ ОКНА --- */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 9, 7, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.sheet-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-block);
    padding: clamp(24px, 5vw, 36px);
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.sheet-modal-large {
    max-width: 660px;
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 20px;
    color: var(--txt-subtle);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover {
    color: var(--txt-main);
}

.modal-pretitle {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--honey-bright);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 1.7rem);
    font-weight: 800;
    margin-bottom: 6px;
}

.modal-pricing {
    font-size: 1.05rem;
    color: var(--txt-muted);
    margin-bottom: 18px;
}

.modal-pricing strong {
    color: var(--honey-bright);
}

.modal-order-desc {
    font-size: 0.88rem;
    color: var(--txt-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.form-row {
    text-align: left;
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 0.78rem;
    color: var(--txt-subtle);
    margin-bottom: 5px;
}

.sheet-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-deep);
    color: var(--txt-main);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.sheet-input:focus {
    border-color: var(--honey-bright);
}

.modal-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-round);
    border: none;
    background: linear-gradient(135deg, var(--honey-bright), var(--honey-primary));
    color: #120e08;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(224, 146, 20, 0.3);
}

.modal-footnote {
    display: block;
    font-size: 0.75rem;
    color: var(--txt-subtle);
    margin-top: 12px;
}

.modal-text {
    color: var(--txt-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-top: 14px;
}

.toast-strip {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--honey-primary);
    color: var(--txt-main);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10001;
    max-width: 90vw;
    text-align: center;
}

.toast-strip.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .notice-flex {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .notice-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .notice-action-btn {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .site-container {
        padding: 0 16px;
    }

    .shop-hero {
        padding: 35px 0 25px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 22px 18px;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bottom-dock {
        bottom: 10px;
        padding: 5px 8px;
        gap: 3px;
    }

    .dock-action {
        font-size: 0.74rem;
        padding: 6px 7px;
    }

    .dock-highlight-btn {
        font-size: 0.75rem;
        padding: 7px 11px;
    }
}