/* 
   Плавающий локальный CSS для Калькулятора Памятников
   Реализует дизайн Glassmorphism без внешних зависимостей
*/

:root {
    --bg-dark: #0f172a;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --emerald: #10b981;
    --emerald-hover: #059669;
    --amber: #f59e0b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-dark);
    background: radial-gradient(ellipse at top, #1e293b, #0f172a, #000);
    color: var(--text-main);
    min-height: 100-screen;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    line-height: 1.5;
}

.container { max-width: 56rem; width: 100%; }

header { text-align: center; margin-bottom: 3rem; }
header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
header p { color: var(--text-muted); font-size: 1.125rem; }

/* Кнопки навигации */
.nav-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.btn-nav {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-nav:hover { background: rgba(59, 130, 246, 0.2); }
.btn-nav.emerald {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}
.btn-nav.emerald:hover { background: rgba(16, 185, 129, 0.2); }

/* Основная форма-карточка */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.grid { display: grid; gap: 2rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 768px) { .grid-cols-2 { grid-template-columns: 1fr; } }

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.text-blue { color: #60a5fa; border-color: rgba(59, 130, 246, 0.2); }
.text-emerald { color: #34d399; border-color: rgba(16, 185, 129, 0.2); }
.text-amber { color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }

.form-group { margin-bottom: 1rem; }
.label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Поля ввода */
.input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
    transition: all 0.2s;
}
.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.input::placeholder { color: #475569; }

select.input option { background: #1e293b; color: white; }

textarea.input { height: 6rem; resize: none; }

/* Услуги - чекбоксы */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}
.service-item:hover { background: rgba(255, 255, 255, 0.1); }
.service-item input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--primary); }
.service-item span { font-size: 0.875rem; }

/* Подвал расчета */
.calc-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.total-block { text-align: left; }
.total-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.total-price { font-size: 3rem; font-weight: 900; }
.total-currency { font-size: 1.5rem; font-weight: 400; color: var(--text-muted); margin-left: 0.5rem; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; width: 100%; }
@media (min-width: 768px) { .actions { width: auto; } }

.btn {
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}
@media (min-width: 640px) { .btn { width: auto; } }

.btn:active { transform: scale(0.95); }

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: white; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-primary { 
    background: linear-gradient(to right, #2563eb, #1d4ed8); 
    color: white; 
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-emerald { background: #059669; color: white; }
.btn-emerald:hover { background: #047857; }

/* Доп блоки доставки/установки */
.info-box {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
.info-box::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 8rem; height: 8rem;
    background: rgba(59, 130, 246, 0.05);
    filter: blur(40px);
    margin: -4rem -4rem 0 0;
}

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

footer.main-footer { margin-top: 3rem; text-align: center; color: var(--text-muted); font-size: 0.875rem; }
