* {
    font-family: 'Exo 2', sans-serif;
    padding: 0;
    margin: 0;
    word-wrap: break-word;
}

html, body {
    min-height: 100%;
    width: 100%;
    font-size: 14px;
    color: #E0E0E0;
    line-height: 24px;
}

body {
    position: relative;
    background-color: #121212;
}

body::before {
    content: '';
    position: fixed;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background: url('/assets/img/background.jpg') center/cover no-repeat;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

div, form, footer, a, ul, li {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #ff3333;
}

button,
.btn {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 1280px;
    display: block;
    margin: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.navbar {
    position: relative;
    min-height: 64px;
}

.navbar .navbar-mobile {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 100px;
    height: 100px;
    width: 100px;
    display: none;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
    color: #E0E0E0;
}

.navbar > .navbar-wrapper {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 100px;
}

.navbar > .navbar-wrapper > .block-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.nav-menu li {
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 8px 0;
    color: #B0B0B0;
    position: relative;
    text-transform: uppercase;
    font-weight: bold;
}

.nav-menu li a:after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #ff3333;
    height: 4px;
    opacity: 0;
    width: 100%;
    transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}

.nav-menu li a:hover:after,
.nav-menu li.active a:after {
    opacity: 1;
}

.nav-menu li a i {
    margin-right: 4px;
    font-size: 18px;
}

.nav-menu li a:hover i,
.nav-menu li.active a i {
    color: #ff3333;
}

.logo {
    display: grid;
    grid-gap: 20px;
    align-items: center;
    grid-template-columns: 52px calc(100% - 72px);
    transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    height: 100px;
}

.logo > .block-left {
    font-size: 48px;
    font-weight: bold;
    position: relative;
    height: 40px;
}

.logo > .block-left > .logo-lt {
    color: #ff3333;
}

.logo > .block-left > .logo-rb {
    position: absolute;
    top: 10px;
    left: 28px;
    color: #E0E0E0;
}

.logo > .block-right {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.logo-ip {
    display: block;
    font-size: 16px;
    color: #ffffff;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: 2px;
}

.col1 {
    color: #ff3333;
}

.col2 {
    color: #cc0000;
}

.main-banner {
    width: 1240px;
    max-width: 100%;
    margin: 20px auto 0px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.main-banner:hover img {
    transform: scale(1.02);
}

.tabs {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.tabs .tab-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.tabs .tab-links > li {
    list-style: none;
    width: 100%;
}

.tabs .tab-links > li > a {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    background: rgba(26, 26, 26, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #E0E0E0;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 0px solid rgba(255, 51, 51, 0.2);
}

.tabs .tab-links > li > a:hover {
    background: rgba(42, 0, 0, 0.9);
    border-color: rgba(255, 51, 51, 0.15);
    transform: translateX(5px);
}

.tabs .tab-links > li.active > a {
    background: rgba(255, 51, 51, 0.50);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.3);
}

.tabs .tab-links > li > a > .block-left {
    width: 32px;
    text-align: center;
}

.tabs .tab-links > li > a > .block-left > i {
    font-size: 20px;
}

.tabs .tab-links > li > a > .block-right {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
}

.tabs > .tab-list > .tab-id {
    display: none;
}

.tabs > .tab-list > .tab-id.active {
    display: block;
}

.items {
    display: grid;
    grid-gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.items > .item-id {
    position: relative;
    background: rgba(26, 26, 26, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    border-radius: 12px;
    cursor: pointer;
    padding: 12px 0;
    box-shadow: 0 0 24px 0 rgba(0,0,0,0.1);
    color: #E0E0E0;
    border: 0px solid rgba(255, 51, 51, 0.2);
}

.items > .item-id:hover {
    transform: translateY(-5px);
    box-shadow: rgba(255, 51, 51, 0.3) 0 10px 30px;
    border-color: rgba(255, 51, 51, 0.1);
    background: rgba(26, 26, 26, 0.15);
}

.items > .item-id > .title {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 12px 12px 8px;
    text-align: center;
    color: #ff6666;
}

.items > .item-id > .price {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 36px;
    height: 36px;
    padding: 0 12px;
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 51, 51, 0.90);
    border-radius: 12px 0 12px 0;
}

.items > .item-id > .image {
    width: 100%;
    height: 160px;
    padding: 8px;
    background: no-repeat center;
    background-size: contain;
    background-origin: content-box;
}

.modal {
    position: fixed;
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    cursor: pointer;
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 32px;
    width: 90%;
    max-width: 460px;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    cursor: default;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    color: #ff3333;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-product {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
}

.product-name {
    font-size: 28px;
    font-weight: bold;
    color: #ff6666;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.product-price {
    font-size: 36px;
    font-weight: 800;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.modal-field {
    margin-bottom: 18px;
}

.modal-field input {
    width: 100%;
    padding: 14px 18px;
    border: 0px solid #333;
    border-radius: 14px;
    box-sizing: border-box;
    background: #252525;
    backdrop-filter: blur(4px);
    color: #e0e0e0;
    font-size: 15px;
    transition: all 0.2s ease;
}

.modal-field input:focus {
    outline: none;
}

.modal-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.promo-row {
    margin-bottom: 18px;
    text-align: center;
}

.promo-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.promo-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.promo-checkbox input:checked ~ .checkmark {
    background: #ff3333;
    border-color: #ff3333;
}

.promo-checkbox input:checked ~ .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.promo-label {
    color: #b0b0b0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.promo-checkbox:hover .promo-label {
    color: #ff6666;
}

.promo-field {
    margin-top: -5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.promo-field input {
    background: #252525;
    border: 0px solid #333;
}

.modal-submit-btn {
    background: #ff3333;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 51, 51, 0.4);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .modal-content {
        padding: 24px;
    }
    
    .product-name {
        font-size: 22px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .modal-field input {
        padding: 12px 16px;
    }
}

footer {
    margin-top: 40px;
}

footer .logo {
    opacity: 0.6;
}

footer .logo:hover {
    opacity: 1;
}

footer > .container {
    height: 160px;
    position: relative;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 240px calc(100% - 520px) 240px;
    align-items: center;
}

footer > .container > .block-left {
    font-size: 20px;
}

footer > .container > .block-center {
    text-align: center;
    opacity: 0.6;
    color: #ffffff;
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(0.5px);
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    70% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(var(--sway)) rotate(360deg);
        opacity: 0;
    }
}

.promo-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.promo-modal-content {
    background: #1a1a1a;
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 51, 51, 1);
    animation: slideIn 0.3s ease;
}

.promo-modal-header {
    background: #ff3333;
    padding: 20px;
    border-radius: 18px 18px 0 0;
    text-align: center;
    position: relative;
}

.promo-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.promo-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.promo-close:hover {
    color: #ffcccc;
    background: rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.1);
}

.promo-body {
    padding: 30px;
    text-align: center;
}

.promo-body p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.promo-cat {
    font-size: 48px;
    margin: 10px 0;
    display: block;
    text-align: center;
    line-height: 1.2;
}

.promo-code-box {
    background: #2a2a2a;
    border: 2px dashed #ff3333;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.promo-code {
    font-size: 28px;
    font-weight: bold;
    color: #ff6666;
    letter-spacing: 4px;
    font-family: monospace;
    flex: 1;
    text-align: center;
}

.copy-promo-btn {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}

.promo-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 51, 51, 0.3);
}

.close-promo-btn {
    background: #ff3333;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1002;
    animation: fadeInOut 2s ease;
    white-space: nowrap;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

@media (max-width: 480px) {
    .promo-code-box {
        flex-direction: column;
    }
    
    .promo-code {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .promo-cat {
        font-size: 36px;
    }
    
    .promo-modal-header h2 {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1280px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        width: 972px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        width: 748px;
    }
    
    .tabs {
        grid-template-columns: 1fr;
    }
    
    .tabs .tab-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .tabs .tab-links > li {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 991px) {
    .navbar .navbar-mobile {
        display: block;
    }

    .navbar > .navbar-wrapper {
        grid-template-columns: 100%;
        grid-gap: 0;
    }

    .navbar > .navbar-wrapper > .block-center,
    .navbar > .navbar-wrapper > .block-right {
        display: none;
    }

    .navbar.active > .navbar-wrapper > .block-center,
    .navbar.active > .navbar-wrapper > .block-right {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .tabs {
        grid-template-columns: 1fr;
    }
    
    .tabs .tab-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .tabs .tab-links > li {
        flex: 1;
        min-width: 140px;
    }
}


/* Вход в личный кабинет */
.login-btn {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

.auth-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 51, 51, 0.1);
    padding: 5px 15px;
    border-radius: 30px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-name {
    color: #ff6666;
    font-weight: bold;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.5);
    padding: 4px 12px;
    border-radius: 20px;
}

.logout-btn {
    background: none;
    border: 1px solid #ff3333;
    color: #ff3333;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff3333;
    color: white;
}

@media (max-width: 767px) {
    .container { width: 100%; }

    footer > .container {
        grid-template-columns: 100%;
        grid-gap: 0;
        height: auto;
        padding: 0 20px 20px 20px;
    }
}

@media (max-width: 576px) {
    .tabs .tab-links > li > a > .block-right {
        font-size: 12px;
    }
}





