/* ===== ПОДКЛЮЧАЕМ ШРИФТЫ ===== */
@font-face {
    font-family: 'Lirica';
    src: url('../fonts/Lirica.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EV_Hater';
    src: url('../fonts/EV_Hater.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Unttld Basic';
    src: url('../fonts/Unttld Basic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1c1e;
    background-image: url('fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    color: #e8eced;
    line-height: 1.4;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ========= МЕНЮ ========= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: rgba(18, 19, 20, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-right: 3px solid rgba(0, 242, 8, 0.3) !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid #2a2b2e;
    margin-bottom: 16px;
}

.sidebar-header h3 {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.3px;
    font-weight: 500;
    color: #f0f0f0;
}

.sidebar-header p {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    color: #9aa0a6;
    margin-top: 6px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px 32px 20px;
}

.nav-item {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #cfd4d9;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.2s;
    background: transparent;
}

.nav-item:hover {
    background-color: #27292e;
    color: white;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: #b9bec4;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: auto;
    display: block;
    text-align: right;
    padding: 8px 20px 0 0;
}

.main-content {
    flex: 1;
    transition: margin-left 0.3s;
    margin-left: 0;
    width: 100%;
    padding: 0 24px 48px 24px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.burger-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1100;
    background-color: #25272b;
    border: 1px solid #3a3c41;
    border-radius: 40px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(2px);
}

.burger-btn:hover {
    background-color: #32353b;
}

.burger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #e0e4e9;
    margin: 5px 0;
    border-radius: 2px;
}

/* ===== ШАПКА ===== */
.hero-header {
    padding-top: 100px;
    text-align: center;
    margin-bottom: 48px;
    border-bottom: 1px dashed #323438;
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-header h1 {
    font-family: 'Lirica', 'Inter', system-ui, sans-serif;
    font-size: 11rem;
    font-weight: 300;
    letter-spacing: -1px;
    color: #e8eced;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0;
    white-space: nowrap;
    display: inline-block;
    width: auto;
}

.hero-header .sub {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 9px;
    color: #9fa6b0;
    margin-top: -18px;
    font-weight: 400;
    max-width: 100%;
    white-space: nowrap;
    display: inline-block;
    width: auto;
    transform: translateX(1mm);
}

/* ===== ОСНОВНЫЕ СЕКЦИИ ===== */
.sections-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: 20px;
}

.section-card {
    background: transparent !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 3px solid rgba(0, 242, 8, 0.2) !important;
    border-radius: 32px;
    padding: 32px 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.section-card:hover {
    border-color: rgba(0, 242, 8, 0.5) !important;
}

.section-title {
    font-family: 'EV_Hater', 'Inter', system-ui, sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #00f208;
    padding-left: 20px;
    cursor: pointer;
    color: #ffffff !important;
    transition: 0.2s;
}

.section-title:hover {
    transform: translateX(5px);
    color: #00f208 !important;
}

.section-title::after {
    content: '→';
    opacity: 0;
    transition: 0.2s;
    font-size: 1.5rem;
    color: #00f208;
}

.section-title:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

/* ===== СЕТКА ТОВАРОВ: СТРОГО 3 КАРТОЧКИ В РЯД ===== */
.market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    justify-content: center;
}

.market-item {
    background: rgba(42, 44, 49, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 3px solid rgba(0, 242, 8, 0.2) !important;
    border-radius: 24px;
    padding: 20px;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.market-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 8, 0.5) !important;
}

.market-item h4 {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00f208;
    margin: 12px 0 6px;
}

.desc {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    color: #b3b9c2;
    margin-bottom: 16px;
}

/* Скрытые карточки (для разворачивания) */
.market-item.hidden-item {
    display: none;
}

/* Картинки товаров */
.product-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 12px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 242, 8, 0.3);
}

/* Кнопки в карточке товара */
.item-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-take, .btn-info {
    flex: 1;
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    background: rgba(42, 44, 49, 0.9);
    border: 2px solid rgba(0, 242, 8, 0.4);
    color: #e8eced;
    padding: 8px 0;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-take:hover, .btn-info:hover {
    background: #00f208;
    color: #1a1c1e;
    border-color: #00f208;
    transform: scale(1.02);
}

/* Кнопка "Показать ещё" / "Свернуть" */
.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(42, 44, 49, 0.8);
    border: 2px solid rgba(0, 242, 8, 0.4);
    border-radius: 60px;
    padding: 12px 24px;
    margin-top: 32px;
    cursor: pointer;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    font-size: 1rem;
    color: #e8eced;
    width: 100%;
    transition: transform 0.2s;
}

.expand-btn:hover {
    background: rgba(42, 44, 49, 0.8);
    border-color: rgba(0, 242, 8, 0.4);
    color: #e8eced;
    transform: scale(1.02);
}

.expand-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s;
}

.expand-btn.expanded svg {
    transform: rotate(180deg);
}

/* ===== ПРОЕКТЫ ===== */
.projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.project-item {
    background: rgba(42, 44, 49, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 3px solid rgba(0, 242, 8, 0.2) !important;
    border-radius: 24px;
    padding: 20px;
    flex: 1 1 240px;
}

.project-item h4 {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.project-item p {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    margin-top: 10px;
}

.project-badge {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    color: #00f208;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== МЕРОПРИЯТИЯ (АФИШИ) ===== */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-row {
    background: rgba(42, 44, 49, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 3px solid rgba(0, 242, 8, 0.2) !important;
    border-left: 3px solid #00f208;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.event-date {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    background: #26292f;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #00f208;
}

.event-name {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 8px 0;
}

.event-link {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    color: #00f208;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dashed;
}

.event-link:hover {
    color: #7dff5e;
}

/* ===== КОЛЛАБОРАЦИИ ===== */
.collab-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: flex-start;
}

.collab-item {
    background: rgba(42, 44, 49, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 3px solid rgba(0, 242, 8, 0.3) !important;
    border-radius: 24px;
    padding: 24px 20px;
    flex: 1 1 240px;
    min-width: 220px;
    transition: 0.2s;
    text-align: center;
}

.collab-item:hover {
    border-color: #00f208;
    transform: translateY(-4px);
}

.collab-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.collab-item h4 {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #e8eced;
}

.collab-desc {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    color: #b3b9c2;
    margin-bottom: 12px;
    line-height: 1.4;
}

.collab-date {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    color: #00f208;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.collab-link {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    color: #00f208;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px dashed;
    transition: color 0.2s;
}

.collab-link:hover {
    color: #7dff5e;
}

/* ===== ФУТЕР ===== */
footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.75rem;
    color: #6f767e;
    border-top: 1px solid #2b2e33;
    padding-top: 28px;
}

footer p {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
}

/* ===== ПРОФИЛЬ (ВЕРХНИЙ ПРАВЫЙ УГОЛ) ===== */
.profile-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    background: rgba(42, 44, 49, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(0, 242, 8, 0.25) !important;
    border-radius: 40px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.profile-btn:hover {
    background: rgba(42, 44, 49, 0.7) !important;
    border-color: #00f208;
    transform: scale(1.02);
}

.profile-icon svg {
    width: 20px;
    height: 20px;
    stroke: #e8eced;
    stroke-width: 1.5;
    fill: none;
}

.profile-text {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    color: #e8eced;
}

/* ===== КОРЗИНА ===== */
.cart-btn {
    position: fixed;
    top: 24px;
    right: 100px;
    z-index: 1100;
    background: rgba(42, 44, 49, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(0, 242, 8, 0.25) !important;
    border-radius: 40px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.cart-btn:hover {
    background: rgba(42, 44, 49, 0.7) !important;
    border-color: #00f208;
    transform: scale(1.02);
}

.cart-icon-display svg {
    width: 20px;
    height: 20px;
    stroke: #e8eced;
    stroke-width: 1.5;
    fill: none;
}

.cart-count {
    background: #00f208;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.75rem;
    color: #1a1c1e;
    font-weight: bold;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.cart-modal, .checkout-modal, .profile-modal, .success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-content, .checkout-modal-content, .profile-modal-content, .success-modal-content {
    background: rgba(31, 33, 37, 0.85) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 24px;
    padding: 28px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid #00f208;
}

.cart-header, .checkout-header, .profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2c31;
}

.cart-header h3, .checkout-header h3, .profile-header h3 {
    font-family: 'EV_Hater', 'Inter', system-ui, sans-serif;
    color: #00f208;
}

.cart-close, .checkout-close, .profile-close {
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-close:hover, .checkout-close:hover, .profile-close:hover {
    color: #00f208;
}

.cart-items-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-empty {
    text-align: center;
    color: #9aa0a6;
    padding: 40px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a2c31;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.8rem;
    color: #9aa0a6;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-dec, .cart-item-inc {
    background: #2a2d33;
    border: 1px solid #00f208;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.cart-item-dec:hover, .cart-item-inc:hover {
    background: #3e4149;
    border-color: #00f208;
    color: #00f208;
}

.cart-item-qty {
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cart-total {
    text-align: right;
    padding: 15px 0;
    font-size: 1.2rem;
    border-top: 1px solid #2a2c31;
    margin-top: 10px;
    color: #00f208;
}

.cart-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-clear-cart {
    background: transparent;
    border: 1px solid #00f208;
    color: #00f208;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
}

.btn-clear-cart:hover {
    background: rgba(0, 242, 8, 0.1);
    transform: scale(1.02);
}

.btn-checkout {
    background: #00f208;
    border: none;
    color: #1a1c1e;
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.btn-checkout:hover {
    background: #7dff5e;
    transform: scale(1.02);
}

.checkout-input, .checkout-textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #2a2c31;
    border: 1px solid #3a3c41;
    border-radius: 12px;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    color: #e8eced;
    font-size: 1rem;
}

.checkout-input:focus, .checkout-textarea:focus {
    outline: none;
    border-color: #00f208;
}

.checkout-textarea {
    resize: vertical;
}

.checkout-order-summary {
    background: #2a2c31;
    border-radius: 16px;
    padding: 15px;
    margin: 15px 0;
}

.checkout-order-summary h4 {
    font-family: 'EV_Hater', 'Inter', sans-serif;
    color: #00f208;
    margin-bottom: 10px;
}

.checkout-item {
    padding: 5px 0;
    border-bottom: 1px solid #3a3c41;
    font-size: 0.9rem;
}

.checkout-total {
    text-align: right;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #00f208;
    color: #00f208;
}

.btn-submit-order {
    width: 100%;
    background: #00f208;
    border: none;
    color: #1a1c1e;
    padding: 14px;
    border-radius: 40px;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit-order:hover {
    background: #7dff5e;
}

.profile-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-info {
    background: #2a2c31;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.profile-info p {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    color: #cfd4d9;
    margin: 5px 0;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-input {
    background: #2a2c31;
    border: 1px solid #3a3c41;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: #e8eced;
    transition: 0.2s;
}

.profile-input:focus {
    outline: none;
    border-color: #00f208;
}

.profile-save-btn {
    background: #00f208;
    border: none;
    border-radius: 40px;
    padding: 12px;
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1c1e;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 8px;
}

.profile-save-btn:hover {
    background: #7dff5e;
}

.profile-orders {
    border-top: 1px solid #2a2c31;
    padding-top: 16px;
}

.profile-orders h4 {
    font-family: 'EV_Hater', 'Inter', system-ui, sans-serif;
    color: #00f208;
    margin-bottom: 12px;
}

.profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.profile-order-item {
    background: rgba(42, 44, 49, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 3px solid rgba(0, 242, 8, 0.2) !important;
    border-radius: 12px;
    padding: 12px;
    border-left: 3px solid #00f208;
}

.profile-order-date {
    font-size: 0.7rem;
    color: #9aa0a6;
    margin-bottom: 6px;
}

.profile-order-items {
    font-size: 0.8rem;
    color: #cfd4d9;
    margin-bottom: 6px;
}

.profile-order-total {
    font-size: 0.85rem;
    color: #00f208;
    text-align: right;
}

.success-modal-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-modal-content h3 {
    font-family: 'EV_Hater', 'Inter', sans-serif;
    color: #00f208;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-modal-content p {
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    color: #cfd4d9;
    margin-bottom: 25px;
    line-height: 1.5;
}

.success-close-btn {
    background: #00f208;
    border: none;
    color: #1a1c1e;
    padding: 12px 30px;
    border-radius: 40px;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.success-close-btn:hover {
    background: #7dff5e;
    transform: scale(1.02);
}

/* Модальное окно "о товаре" */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-content {
    background: rgba(31, 33, 37, 0.95);
    border-radius: 32px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 3px solid #00f208;
    animation: fadeIn 0.3s ease;
}

.product-modal-content h3 {
    font-family: 'EV_Hater', 'Inter', sans-serif;
    color: #00f208;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.product-modal-content .product-price {
    font-size: 1.5rem;
    color: #00f208;
    margin: 12px 0;
}

.product-modal-content .product-desc {
    color: #cfd4d9;
    margin-bottom: 24px;
    line-height: 1.5;
}

.product-close-btn {
    background: #00f208;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.product-close-btn:hover {
    background: #7dff5e;
    transform: scale(1.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== АДМИН-ПАНЕЛЬ ===== */
.admin-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 380px;
    max-height: 80vh;
    background: #1f2125;
    border: 3px solid #00f208;
    border-radius: 16px;
    padding: 20px;
    z-index: 1500;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.admin-panel.show {
    display: block;
}

.admin-panel-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.2s;
}

.admin-panel-close:hover {
    color: #00f208;
}

.admin-panel h3 {
    margin-bottom: 15px;
    color: #00f208;
    text-align: center;
    font-family: 'EV_Hater', 'Inter', system-ui, sans-serif;
    padding-right: 20px;
}

.admin-session-info {
    text-align: center;
    font-size: 0.7rem;
    color: #00f208;
    margin-bottom: 10px;
    padding: 5px;
    background: #2a2c31;
    border-radius: 20px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #3a3c42;
    padding-bottom: 10px;
}

.admin-tab {
    background: none;
    border: none;
    color: #9aa0a6;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    background: #2a2c32;
    color: #e0e0e0;
}

.admin-tab.active {
    background: #00f208;
    color: #1a1c1e;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-order {
    background: #2a2c31;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid #00f208;
}

.admin-order-date {
    font-size: 0.7rem;
    color: #9aa0a6;
    margin-bottom: 8px;
}

.admin-order-customer {
    font-weight: bold;
    color: #e8eced;
    margin-bottom: 5px;
}

.admin-order-phone {
    font-size: 0.85rem;
    color: #00f208;
    margin-bottom: 5px;
}

.admin-order-comment {
    font-size: 0.8rem;
    color: #cfd4d9;
    margin: 8px 0;
    padding: 8px;
    background: #1f2125;
    border-radius: 8px;
}

.admin-order-total {
    font-size: 0.9rem;
    color: #00f208;
    margin-top: 8px;
    text-align: right;
}

.admin-order-items {
    font-size: 0.7rem;
    color: #9aa0a6;
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px solid #2a2c31;
}

.admin-empty {
    text-align: center;
    color: #9aa0a6;
    padding: 40px;
}

.admin-clear-btn {
    background: transparent;
    border: 1px solid #00f208;
    color: #00f208;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
}

.admin-clear-btn:hover {
    background: rgba(0, 242, 8, 0.1);
}

.admin-logout-btn {
    background: #2a2d33;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    transition: 0.2s;
}

.admin-logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: scale(1.02);
}

/* ===== БИБЛИОТЕКА, АВТОРЫ, СОТРУДНИЧЕСТВО ===== */
.library-item, .archive-item, .author-card, .partner-item, .coop-card, .venue-info, .recommend-item {
    background: rgba(42, 44, 49, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 3px solid rgba(0, 242, 8, 0.2) !important;
    border-radius: 20px;
    padding: 20px;
    transition: 0.2s;
    text-align: center;
}

.library-item:hover, .archive-item:hover, .author-card:hover, .coop-card:hover {
    border-color: #00f208;
    transform: translateY(-4px);
}

.library-item h4, .archive-item h4, .author-card h4 {
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.library-author, .archive-date, .author-role, .partner-type {
    font-size: 0.75rem;
    color: #00f208;
    margin-bottom: 10px;
}

.library-desc, .author-desc, .coop-card p {
    font-size: 0.8rem;
    color: #9aa0a6;
    margin-bottom: 12px;
}

.library-link, .archive-link, .coop-link, .social-link {
    color: #00f208;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px dashed;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.recommend-icon {
    font-size: 1.5rem;
}

.recommend-info {
    flex: 1;
}

.recommend-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.recommend-author {
    font-size: 0.7rem;
    color: #9aa0a6;
}

.recommend-link {
    color: #00f208;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Форма сотрудничества */
.cooperation-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: #2a2c31;
    border: 1px solid #3a3c41;
    border-radius: 12px;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    color: #e8eced;
    font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00f208;
}

.submit-coop-btn {
    background: #00f208;
    border: none;
    color: #1a1c1e;
    padding: 12px;
    border-radius: 40px;
    font-family: 'Unttld Basic', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.submit-coop-btn:hover {
    background: #7dff5e;
    transform: scale(1.02);
}

.contact-item {
    text-align: center;
    padding: 15px 25px;
    background: #2a2c31;
    border-radius: 40px;
    transition: 0.2s;
}

.contact-item:hover {
    background: #32353b;
    transform: scale(1.02);
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* ===== КНОПКА НА ГЛАВНУЮ ===== */
.home-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #1f1f24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1001;
    border: 1px solid #3a3c42;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    cursor: pointer;
}

.home-btn:hover {
    background: #2a2c32;
    transform: scale(1.05);
    border-color: #00f208;
}

.home-btn svg {
    width: 22px;
    height: 22px;
    color: #e0e0e0;
    stroke-width: 1.8;
}

.home-btn:hover svg {
    color: #00f208;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .hero-header h1 { 
        font-size: 5rem;
        white-space: normal;
    }
    .hero-header .sub { 
        font-size: 0.7rem;
        letter-spacing: 3px;
        white-space: normal;
        max-width: 90%;
        margin-top: -8px;
    }
    .section-title { 
        font-size: 1.5rem;
    }
    .sidebar { width: 260px; }
    .admin-panel { 
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        top: 70px;
        max-height: 70vh;
    }
    .cart-btn {
        right: 70px;
        padding: 8px 14px;
    }
    .profile-btn {
        padding: 8px 14px;
    }
    .profile-icon svg, .cart-icon-display svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 550px) {
    .market-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .authors-grid, .partners-grid, .coop-grid {
        grid-template-columns: 1fr !important;
    }
    .library-grid, .archive-grid {
        grid-template-columns: 1fr !important;
    }
    .contacts-grid {
        flex-direction: column;
        align-items: center;
    }
    .contact-item {
        width: 100%;
        max-width: 250px;
    }
}

/* ===== ОВЕРЛЕЙ ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 980;
    display: none;
}

.overlay.active {
    display: block;
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2a2c31;
    border-radius: 10px;
    margin-block: 6mm;     /* ← ОТСТУП 5px СВЕРХУ И СНИЗУ */
}

::-webkit-scrollbar-thumb {
    background: #00f208;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7dff5e;
}

/* ===== ИНДИВИДУАЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦ ===== */
.page-afisha .hero-header .sub { letter-spacing: 6.5px !important; }
.page-market .hero-header .sub { letter-spacing: 5.5px !important; }
.page-projects .hero-header .sub { letter-spacing: 22px !important; transform: translateX(3mm); }
.page-collaborations .hero-header .sub { letter-spacing: 11px !important; transform: translateX(1.5mm); margin-top: -3px; }
.page-library .hero-header .sub { letter-spacing: 4px !important; }
.page-authors .hero-header .sub { letter-spacing: 6.5px !important; }
.page-cooperation .hero-header .sub { letter-spacing: 23px !important; margin-top: -3px; }

.hero-header .sub2 {
    letter-spacing: 13px;
    margin-top: 5px;
    transform: translateX(1.7mm);
    color: #9fa6b0;
}

/* ===== УБИРАЕМ ФИОЛЕТОВОЕ ПОДЧЁРКИВАНИЕ У ВСЕХ ССЫЛОК ===== */
a, a:visited, a:hover, a:active, a:focus {
    text-decoration: none !important;
    color: inherit !important;
}

/* Для заголовков секций, которые могут быть обёрнуты в ссылку */
.section-title-link,
.section-title-link:visited,
.section-title-link:hover {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* Убираем подчёркивание у всех элементов, которые могут быть ссылками */
.nav-item,
.nav-item:visited,
.section-title,
.section-title:visited {
    text-decoration: none !important;
    color: inherit !important;
}

/* ===== ВЕРТИКАЛЬНЫЕ КАРТОЧКИ ДЛЯ АФИШ (КАК В МАРКЕТЕ) ===== */
.event-card {
    background: rgba(42, 44, 49, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 3px solid rgba(0, 242, 8, 0.2) !important;
    border-radius: 24px;
    padding: 20px;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 8, 0.5) !important;
}

.event-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 12px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 242, 8, 0.3);
    background: #2a2c31;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    font-size: 0.8rem;
}

/* Плейсхолдер для фото, если нет картинки */
.event-image.placeholder {
    background: linear-gradient(135deg, #2a2c31 0%, #1f2125 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #00f208;
}

.event-date-badge {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    background: rgba(0, 242, 8, 0.15);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    color: #00f208;
    margin-bottom: 12px;
    width: fit-content;
}

.event-card h4 {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.event-card .event-desc {
    font-family: 'Unttld Basic', 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    color: #b3b9c2;
    margin-bottom: 16px;
}

.event-card .event-link {
    margin-top: 8px;
    display: inline-block;
}

/* Сетка для афиш на главной и на странице афиш */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Адаптив для сетки афиш */
@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 550px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== ПЛЕЙСХОЛДЕРЫ ДЛЯ ИЗОБРАЖЕНИЙ ===== */
.product-image.placeholder,
.event-image.placeholder {
    background: linear-gradient(135deg, #2a2c31 0%, #1f2125 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #00f208;
    text-align: center;
}

.product-image img,
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ===== 5 КАРТОЧЕК В РЯД НА ГЛАВНОЙ СТРАНИЦЕ ===== */
.page-index .market-grid,
.page-index .events-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
}

/* Уменьшаем внутренние отступы */
.page-index .market-item,
.page-index .event-card {
    padding: 12px !important;
}

.page-index .market-item h4,
.page-index .event-card h4 {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
}

.page-index .price {
    font-size: 1rem !important;
    margin: 8px 0 4px !important;
}

.page-index .desc,
.page-index .event-desc {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
}

.page-index .btn-take,
.page-index .btn-info,
.page-index .event-btn {
    padding: 5px 0 !important;
    font-size: 0.7rem !important;
}

.page-index .event-date-badge {
    font-size: 0.6rem !important;
    padding: 2px 8px !important;
    margin-bottom: 8px !important;
}

.page-index .product-image.placeholder,
.page-index .event-image.placeholder {
    font-size: 1.2rem !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Адаптив */
@media (max-width: 1200px) {
    .page-index .market-grid,
    .page-index .events-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .page-index .market-grid,
    .page-index .events-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 650px) {
    .page-index .market-grid,
    .page-index .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 450px) {
    .page-index .market-grid,
    .page-index .events-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* Убираем эффект наведения у заголовков на всех страницах, кроме главной */
body:not(.page-index) .section-title {
    cursor: default;
}

body:not(.page-index) .section-title:hover {
    color: #ffffff !important;
    transform: none;
}

body:not(.page-index) .section-title::after {
    display: none !important;
}




.flying-item.fly {
    transform: scale(0.3);
    opacity: 0;
}

/* Вспышка на корзине */
.cart-burst {
    animation: cartBurst 0.4s ease-out;
}

@keyframes cartBurst {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(0, 242, 8, 0.4); }
    100% { transform: scale(1); }
}



/* ===== КАЙФОВАЯ АНИМАЦИЯ ИЗ МОДАЛЬНОГО ОКНА ===== */

/* Пульс кнопки "В корзину" в модалке */
.modal-add-to-cart {
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-add-to-cart:active {
    transform: scale(0.95);
}

/* Эффект "волны" при клике */
.modal-add-to-cart .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Анимация успешного добавления на кнопке */
.modal-add-to-cart.success {
    background: #7dff5e;
    color: #1a1c1e;
    animation: btnSuccess 0.4s ease;
}

@keyframes btnSuccess {
    0% { background: #00f208; }
    50% { background: #7dff5e; transform: scale(1.05); }
    100% { background: #00f208; transform: scale(1); }
}



/* Анимация корзины при получении */
.cart-celebration {
    animation: cartCelebration 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartCelebration {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); background: #7dff5e; border-color: #7dff5e; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Уведомление с ценой, вылетающее из модалки */
.price-toast {
    position: fixed;
    z-index: 10000;
    background: #00f208;
    color: #1a1c1e;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: 'Unttld Basic', sans-serif;
    white-space: nowrap;
    pointer-events: none;
    animation: priceToastFly 0.8s ease-out forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes priceToastFly {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -60px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80px) scale(0.8);
    }
}

/* Микро-вибрация счётчика */
@keyframes countVibration {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(5deg); }
    50% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(3deg); }
}

.cart-count.vibrate {
    animation: countVibration 0.3s ease;
    background: #7dff5e;
    color: #1a1c1e;
}


@keyframes priceFly {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(-40px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-60px) scale(0.8);
    }
}

/* ---------- СОЦИАЛЬНЫЕ СЕТИ В ФУТЕРЕ ---------- */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0 8px;
}
.footer-socials a {
    font-size: 1.8rem;
    text-decoration: none;
    color: #e8eced;
    transition: transform 0.2s, color 0.2s;
    display: inline-block;
}
.footer-socials a:hover {
    transform: scale(1.15);
    color: #39FF14;
}

/* ---------- КАРТИНКИ В КОРЗИНЕ ---------- */
.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(0, 242, 8, 0.3);
    background: #2a2c31;
    flex-shrink: 0;
}


/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (уменьшенные карточки) ===== */
.page-index .market-item {
    padding: 12px !important;
}

.page-index .product-carousel {
    aspect-ratio: 1 / 1;
    max-height: 150px; /* ограничиваем высоту */
    width: 100%;
    margin-bottom: 8px;
}

.page-index .carousel-slide {
    font-size: 2rem !important; /* уменьшаем иконки-плейсхолдеры */
}

.page-index .carousel-slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.page-index .market-item h4 {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
}

.page-index .price {
    font-size: 1rem !important;
    margin: 6px 0 4px !important;
}

.page-index .desc {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
}

.page-index .btn-take {
    padding: 5px 0 !important;
    font-size: 0.7rem !important;
}

.page-index .carousel-dots {
    bottom: 4px;
    gap: 4px;
    padding: 2px 6px;
}

.page-index .carousel-dot {
    width: 4px;
    height: 4px;
}

/* ===== ВЫРАВНИВАНИЕ КАРТОЧЕК НА ГЛАВНОЙ ===== */
.page-index .market-grid,
.page-index .events-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
    justify-content: start !important;
    align-items: stretch !important;
}

/* Если карточек меньше 5, они выравниваются по левому краю */
.page-index .market-grid .market-item,
.page-index .events-grid .event-card {
    width: 100% !important;
    min-width: 0 !important;
}

/* Если карточек много, они не выходят за пределы */
.page-index .market-grid,
.page-index .events-grid {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Плейсхолдер "нет контента" занимает всю ширину */
.page-index .empty-state {
    grid-column: 1 / -1 !important;
    text-align: center !important;
}

/* ===== АДАПТИВ ДЛЯ ГЛАВНОЙ ===== */
@media (max-width: 1200px) {
    .page-index .market-grid,
    .page-index .events-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .page-index .market-grid,
    .page-index .events-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 650px) {
    .page-index .market-grid,
    .page-index .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 450px) {
    .page-index .market-grid,
    .page-index .events-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}
/* ===== МОДАЛЬНОЕ ОКНО ТОВАРА (ОБНОВЛЁННОЕ) ===== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal-content {
    background: rgba(31, 33, 37, 0.95);
    border-radius: 24px;
    padding: 24px 28px 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #00f208;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.product-modal-content::-webkit-scrollbar {
    width: 4px;
}
.product-modal-content::-webkit-scrollbar-thumb {
    background: #00f208;
    border-radius: 10px;
}

.product-modal .modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}
.product-modal .modal-close-btn:hover {
    color: #00f208;
    transform: scale(1.1);
}

/* Карусель в модалке */
.product-modal .modal-carousel {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background: #2a2c31;
    position: relative;
    margin-bottom: 16px;
}
.product-modal .modal-carousel-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}
.product-modal .modal-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-modal .modal-carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #1a1c1e;
}

.product-modal .modal-click-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: 0.2s;
}
.product-modal .modal-click-zone:hover {
    opacity: 1;
}
.product-modal .modal-click-left {
    left: 0;
}
.product-modal .modal-click-right {
    right: 0;
}
.product-modal .modal-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
}
.product-modal .modal-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.2s;
}
.product-modal .modal-carousel-dot.active {
    background: #00f208;
    transform: scale(1.2);
}

/* Информация о товаре в модалке */
.product-modal .modal-info {
    text-align: left;
}
.product-modal .modal-title {
    font-family: 'EV_Hater', 'Inter', sans-serif;
    font-size: 1.6rem;
    color: #e8eced;
    margin-bottom: 4px;
}
.product-modal .modal-price {
    font-size: 1.8rem;
    color: #00f208;
    font-weight: bold;
    margin-bottom: 12px;
}
.product-modal .modal-specs {
    background: #2a2c31;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.product-modal .modal-specs h4 {
    color: #00f208;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.product-modal .modal-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-modal .modal-specs li {
    color: #b3b9c2;
    font-size: 0.85rem;
    padding: 2px 0;
}
.product-modal .modal-description {
    color: #cfd4d9;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.product-modal .modal-buy-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.product-modal .quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a2c31;
    border-radius: 40px;
    padding: 4px 12px;
}
.product-modal .quantity-btn {
    background: none;
    border: none;
    color: #e8eced;
    font-size: 1.4rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: 0.2s;
}
.product-modal .quantity-btn:hover {
    background: #3a3c41;
    color: #00f208;
}
.product-modal .quantity-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e8eced;
    min-width: 30px;
    text-align: center;
}
.product-modal .modal-add-to-cart {
    flex: 1;
    padding: 12px 24px;
    background: #00f208;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    color: #1a1c1e;
    cursor: pointer;
    transition: 0.2s;
}
.product-modal .modal-add-to-cart:hover {
    background: #7dff5e;
    transform: scale(1.02);
}

/* Адаптив для модалки */
@media (max-width: 600px) {
    .product-modal-content {
        padding: 16px;
        max-width: 100%;
        border-radius: 16px;
    }
    .product-modal .modal-carousel-slide img {
        height: 250px;
    }
    .product-modal .modal-title {
        font-size: 1.2rem;
    }
    .product-modal .modal-price {
        font-size: 1.4rem;
    }
    .product-modal .modal-buy-section {
        flex-direction: column;
    }
    .product-modal .modal-add-to-cart {
        width: 100%;
    }
}

/* ===== ФОРМА СОТРУДНИЧЕСТВА (С ПРАВИЛЬНЫМ ШРИФТОМ) ===== */
.cooperation-form input,
.cooperation-form select,
.cooperation-form textarea,
.cooperation-form button {
    font-family: 'Inter', 'Arial', system-ui, sans-serif !important;
    font-size: 1rem !important;
    color: #e8eced !important;
    background: #2a2c31 !important;
    border: 1px solid #3a3c41 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-transform: none !important;  /* ← ОТКЛЮЧАЕМ ЗАГЛАВНЫЕ БУКВЫ */
    letter-spacing: normal !important;
}

.cooperation-form input::placeholder,
.cooperation-form textarea::placeholder {
    color: #9aa0a6 !important;
    font-family: 'Inter', 'Arial', system-ui, sans-serif !important;
    text-transform: none !important;
}

.cooperation-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa0a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    text-transform: none !important;
}

.cooperation-form select option {
    background: #1a1c1e !important;
    color: #e8eced !important;
    text-transform: none !important;
}

.cooperation-form textarea {
    resize: vertical !important;
    min-height: 120px !important;
    font-family: 'Inter', 'Arial', system-ui, sans-serif !important;
    text-transform: none !important;
}

.cooperation-form input:focus,
.cooperation-form select:focus,
.cooperation-form textarea:focus {
    outline: none !important;
    border-color: #00f208 !important;
    box-shadow: 0 0 0 2px rgba(0, 242, 8, 0.1) !important;
}

.submit-coop-btn {
    font-family: 'Inter', 'Arial', system-ui, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    background: #00f208 !important;
    color: #1a1c1e !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    width: 100% !important;
    text-transform: none !important;
}

.submit-coop-btn:hover {
    background: #7dff5e !important;
    transform: scale(1.02) !important;
}

.submit-coop-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}
