/* --- ОСНОВНЫЕ НАСТРОЙКИ --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    overflow-x: hidden;
}

/* --- ШАПКА САЙТА --- */
.header {
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

.header-container {
    width: fit-content;
    max-width: 900px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 30px;
    margin-top: 20px;
    border-radius: 50px;
    border: 2px solid #4A90E2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.logo-box {
    display: flex;
    flex-direction: column;
    margin-right: 40px;
}

.logo-main {
    color: #4A90E2;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

.logo-sub {
    color: #4A90E2;
    font-size: 12px;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #4A90E2;
    color: #fff;
    transform: translateY(-2px);
}

.header-right {
    width: 50px; /* Для баланса */
}

/* --- СЕКЦИЯ ПРИВЕТСТВИЯ --- */
.welcome-section {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.welcome-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.welcome-text h1 {
    font-size: 42px;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.welcome-text .highlight {
    color: #4A90E2;
    display: block;
    margin-top: 10px;
    font-size: 52px;
    text-transform: uppercase;
    font-weight: 900;
}

.welcome-text p {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
}

.welcome-btns {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #4A90E2;
    color: #fff;
    border: 2px solid #4A90E2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #4A90E2;
    border: 2px solid #4A90E2;
}

.btn-secondary:hover {
    background-color: rgba(74, 144, 226, 0.05);
    transform: translateY(-3px);
}

/* --- ИЗОБРАЖЕНИЕ --- */
.welcome-image img {
    width: 400px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(74, 144, 226, 0.2));
    animation: float 3s ease-in-out infinite;
}

.remove-bg {
    mix-blend-mode: multiply;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* --- ОФОРМЛЕНИЕ ТОВАРА --- */
.order-section {
    padding: 60px 20px 100px 20px;
    background: #fdfdfd;
}

.section-title-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4A90E2;
    border-radius: 2px;
}

.order-box {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    border: 2px solid #4A90E2;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.1);
}

.input-field {
    margin-bottom: 22px;
}

.input-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
    font-size: 14px;
}

.input-field input, .custom-select {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #eee;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-field input:focus {
    border-color: #4A90E2;
    background: #fcfdff;
}

.custom-select {
    background: #f9fbff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #eef2f7;
}

.custom-select:hover {
    border-color: #4A90E2;
}

.pay-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 30px;
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f4f7f9;
}

.modal-header h3 { margin: 0; color: #333; }

.close {
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
    transition: 0.3s;
}

.close:hover { color: #ff4d4d; }

.product-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
}

.product-list::-webkit-scrollbar { width: 6px; }
.product-list::-webkit-scrollbar-thumb { background: #4A90E2; border-radius: 10px; }

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8faff;
    border: 2px solid #eef2f7;
    border-radius: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    border-color: #4A90E2;
    background: #fff;
    transform: translateX(5px);
}

.product-item span { font-weight: bold; font-size: 16px; }

.price-box { text-align: right; }
.old-price { text-decoration: line-through; color: #aaa; font-size: 13px; display: block; }
.new-price { color: #ff4d4d; font-weight: bold; font-size: 18px; }
.discount { background: #ff4d4d; color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; margin-left: 5px; vertical-align: middle;}

/* --- КАСТОМНЫЙ ЧЕКБОКС --- */
.policy-wrapper {
    margin: 25px 0;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #eee;
    border-radius: 6px;
    transition: all 0.3s;
    border: 2px solid #ddd;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #e3efff;
    border-color: #4A90E2;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.policy-link {
    color: #4A90E2;
    text-decoration: underline;
    font-weight: bold;
    transition: 0.3s;
}

/* --- ОБНОВЛЕННЫЙ ФУТЕР (ИСПРАВЛЕННЫЙ) --- */
.footer {
    background: #151515; /* Темный фон */
    padding: 60px 0;
    margin-top: 80px;
    border-top: 1px solid #333;
    font-family: sans-serif;
    color: #fff;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Центровка по вертикали */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
}

/* Лево: ссылки */
.footer-docs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-docs a {
    color: #999 !important;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-docs a:hover {
    color: #4A90E2 !important;
}

/* Центр: Копирайт (ТЕПЕРЬ ВИДНО) */
.footer-center {
    text-align: center;
}

.copyright {
    font-size: 17px;
    color: #ffffff !important; /* Яркий белый цвет */
    margin-bottom: 8px;
    font-weight: bold;
}

.warning {
    font-size: 12px;
    color: #777 !important;
    line-height: 1.4;
    margin-bottom: 12px;
}

.support-box a {
    color: #4A90E2 !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

/* Право: Соцсети */
.footer-right {
    text-align: right;
}

.footer-right h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
}

.social-icons-row {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    color: #fff !important;
    width: 50px;
    height: 50px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icon.vk:hover { background: #0077FF; }
.social-icon.tg:hover { background: #26A5E4; }

/* Поддержка */
.support-body { text-align: center; padding: 10px 0; }
.support-links { display: flex; flex-direction: column; gap: 15px; }
.support-item { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 18px; border-radius: 15px; text-decoration: none; color: #fff; font-weight: bold; font-size: 18px; transition: 0.3s; }
.support-item.vk { background: #0077FF; }
.support-item.tg { background: #26A5E4; }

/* Адаптивность */
@media (max-width: 768px) {
    .footer-grid { flex-direction: column; gap: 40px; text-align: center; }
    .footer-docs, .footer-right { align-items: center; text-align: center; }
    .social-icons-row { justify-content: center; }
}

.footer a {
    text-decoration: none !important;
}

.footer-docs a {
    display: block;
    margin-bottom: 5px;
}

/* Центровка всего контента в сетке */
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Выравнивание по одной линии */
}

/* Исправление иконок (делаем их круглыми и белыми) */
.social-icon i {
    color: #fff !important;
}