* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Segoe UI', sans-serif; 
    background: url('fon.jpg') no-repeat center center fixed; 
    background-size: cover; 
    color: white; 
    min-height: 100vh;
    overflow-x: hidden;
}

.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 40px; 
    background: rgba(0, 0, 0, 0.6); 
    height: 70px;
}

.header-left { font-weight: bold; font-size: 20px; }

.header-center {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: -80px;
}

.header-center a { 
    color: white; 
    text-decoration: none; 
    font-size: 17px; 
    font-weight: bold; 
    letter-spacing: 0.5px; 
    transition: color 0.2s; 
}

.header-center a:hover { color: rgba(255,255,255,0.7); }

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    font-size: 16px; 
    color: white; 
}

.header-select {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.header-select:hover { border-color: white; }

.header-select option {
    background: #1a1a2e;
    color: white;
}

.ip-btn { 
    background: transparent; 
    color: white; 
    padding: 7px 16px; 
    border-radius: 8px; 
    border: 2px solid rgba(255, 255, 255, 0.4); 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 14px; 
    letter-spacing: 0.5px; 
    transition: border-color 0.2s, background 0.2s; 
}

.ip-btn:hover { 
    border-color: white; 
    background: rgba(255, 255, 255, 0.1); 
}

.wrapper { 
    display: flex; 
    min-height: calc(100vh - 70px); 
}

.sidebar { 
    width: 260px; 
    padding: 20px; 
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 11, 30, 0.15);
}

.sidebar p { 
    margin-bottom: 22px; 
    font-size: 19px; 
    font-weight: bold;
    cursor: pointer; 
    padding: 12px 16px; 
    border-radius: 8px; 
    transition: background 0.2s; 
}

.sidebar p:hover { background: rgba(255,255,255,0.08); }

.sidebar p.active {
    background: rgba(98, 0, 234, 0.3);
    color: white;
}

.main-content { flex-grow: 1; padding: 40px; }

.main-content h2 {
    font-size: 26px;
    margin-bottom: 30px;
}

.card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
}

.card { 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 20px; 
    padding: 20px; 
    text-align: center; 
}

.btn { 
    background: #6200ea; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    color: white; 
    cursor: pointer; 
    margin-top: 10px; 
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover { background: #7c1fff; }

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.visible {
    opacity: 1;
}

.modal {
    background: #12122a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 860px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    color: white;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    transform: scale(0.88) translateY(24px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.modal-overlay.visible .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 18px; right: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
    line-height: 1;
}

.modal-close:hover { background: rgba(255,255,255,0.16); }

.modal-body {
    display: flex;
    min-height: 480px;
}

/* ЛЕВАЯ ЧАСТЬ */
.modal-left {
    flex: 0 0 340px;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.modal-left-header { margin-bottom: 24px; }

.modal-step {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9c6fff;
    display: block;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.modal-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.modal-option:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255,255,255,0.04);
}

.modal-option.selected {
    border-color: #6200ea;
    background: rgba(98, 0, 234, 0.18);
}

.modal-option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.modal-option.selected .modal-option-radio { border-color: #7c3aed; }

.modal-option-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.modal-option-dot.active { background: #7c3aed; }

.modal-option-label {
    font-size: 15px;
    font-weight: 600;
    color: white;
    flex-grow: 1;
}

.modal-option-price {
    font-size: 16px;
    font-weight: 700;
    color: #a78bfa;
    white-space: nowrap;
}

.modal-confirm {
    width: 100%;
    padding: 14px;
    background: #6200ea;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: auto;
}

.modal-confirm:hover { background: #7c1fff; }
.modal-confirm:active { transform: scale(0.98); }

/* ПРАВАЯ ЧАСТЬ */
.modal-right {
    flex: 1;
    padding: 32px 32px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(98,0,234,0.5) transparent;
}

.modal-right::-webkit-scrollbar { width: 4px; }
.modal-right::-webkit-scrollbar-thumb { background: rgba(98,0,234,0.5); border-radius: 4px; }
.modal-right::-webkit-scrollbar-track { background: transparent; }

.modal-image-wrap {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#modal-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.modal-image-placeholder {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    letter-spacing: 0.5px;
}

.modal-right-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.modal-right-period {
    font-size: 13px;
    color: #9c6fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: -6px;
}

.modal-info-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.modal-right-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.modal-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-features-list li {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    padding-left: 4px;
}

/* ФУТЕР */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 50px 60px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6200ea, #9c4dff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}

.footer-name {
    font-size: 22px;
    font-weight: 900;
    color: white;
}

.footer-version {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.footer-copy {
    max-width: 280px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

.footer-copy p + p { margin-top: 12px; }

.footer-nav,
.footer-payment {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.footer-nav a,
.footer-payment a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover,
.footer-payment a:hover { color: white; }