/* === Обнуление === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    background: transparent;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* === Фон === */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/shop.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    filter: brightness(0.4);
}

/* === Логотип === */
header {
    padding: 20px;
    position: relative;
    text-align: center;
}

.logo {
    max-width: 300px;
    height: auto;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo img {
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

/* === Меню — ТОЧНО КАК В ВАШЕМ КОДЕ === */
.navbar {
    position: relative;
    padding: 25px 0;
    text-align: center;
    z-index: 9;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
}

.navbar li:not(.store-btn) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #6e45e2, #88d3ce);
    transition: width 0.3s ease;
}

.navbar li:not(.store-btn) a:hover::after {
    width: 100%;
}

.navbar .store-btn a {
    background: #ffcc00 !important;
    color: #000 !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    position: relative;
    z-index: 2;
}

.navbar .store-btn a::after {
    display: none !important;
}

.navbar .store-btn a:hover {
    background: linear-gradient(135deg, #6e45e2, #88d3ce) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.7) !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.navbar li a:hover {
    animation: pulse 1s infinite;
}

/* === Контент магазина === */
.shop-page {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 100px 1.5rem 60px;
    padding-bottom: max(env(safe-area-inset-bottom, 20px), 60px);
}

.shop-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.form-section {
    flex: 1;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(100, 100, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.form-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(100, 100, 255, 0.3);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #88d3ce;
}

.form-control.error {
    animation: blink 1s step-end infinite;
    border-color: #ff4d4d !important;
}

@keyframes blink {
    50% { border-color: #ff4d4d; }
}

.pay-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(110, 69, 226, 0.6);
}

.products-section {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.products-box,
.discount-box {
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(100, 100, 255, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.products-box h3,
.discount-box h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

.product-btn,
.doc-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: rgba(50, 50, 70, 0.6);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.product-btn {
    color: white !important;
}

.doc-btn {
    color: #ff4d4d !important;
    margin-bottom: 0;
}

.product-btn:hover,
.doc-btn:hover {
    background: rgba(60, 60, 80, 0.7);
    transform: scale(1.02);
}

.doc-btn:hover {
    color: #ff8888 !important;
}

.discount-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.discount-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    background: rgba(30, 30, 40, 0.5);
    border-radius: 8px;
    font-size: 0.9rem;
}

.discount-item span:first-child { color: #ff4d4d; }
.discount-item span:last-child { color: white; }

/* === Модальные окна === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
}

.modal-content {
    background: rgba(20, 20, 30, 0.92);
    border: 1px solid rgba(100, 100, 255, 0.2);
    border-radius: 20px;
    padding: 1.8rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.5;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
    font-weight: bold;
}

.close:hover {
    color: white;
}

.confirm-details {
    margin: 1.5rem 0;
    line-height: 1.6;
    font-size: 1rem;
}

.confirm-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(110, 69, 226, 0.6);
}

/* === Футер — ТОЧНО КАК В ВАШЕМ КОДЕ === */
.footer-social {
    padding: 0rem 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: center;
}

.social-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.social-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: hue-rotate(30deg);
}

.copyright {
    color: #ccc;
    font-size: 0.85rem;
    padding: 2px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Orbitron', sans-serif;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 900px) {
    .shop-container {
        flex-direction: column;
        align-items: center;
    }
    .products-section {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    /* Логотип */
    .logo {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 20px;
        max-width: 200px;
    }

    .logo img {
        height: 32px;
    }

    /* Меню — ВЕРТИКАЛЬНОЕ, КАК В ВАШЕМ КОДЕ */
    .navbar ul {
        flex-direction: column;
        gap: 15px;
        padding: 0 1rem;
    }

    .navbar li a {
        padding: 16px 20px;
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
        display: block;
        font-size: 1rem;
    }

    /* Контент */
    .shop-page {
        padding: 90px 1rem 50px;
        padding-bottom: max(env(safe-area-inset-bottom, 20px), 50px);
    }

    .form-section,
    .products-box,
    .discount-box {
        padding: 1.5rem;
    }

    .form-control {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .pay-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }

    /* Футер */
    .social-icon img {
        width: 32px;
        height: 32px;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .form-section h2,
    .products-box h3,
    .discount-box h3 {
        font-size: 1.3rem;
    }

    .pay-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .discount-item {
        font-size: 0.85rem;
    }
}