/* fonts loaded via <link> in HTML */

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

html { background: #071f07; }
body {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #d4f5d4;
    background: transparent !important;
    overflow-x: hidden;
}

/* ── Заголовки ── */
h1, h2, h3 {
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.04em;
}

/* ── Контейнер ── */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; width: 100%; }

/* ── Шапка ── */
header {
    position: relative;
    background: transparent;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0;
    overflow: hidden;
}
header h1 { font-size: clamp(1.4em, 5vw, 2.4em); margin-bottom: 12px; color: #00ff88; text-shadow: 0 0 20px rgba(0,255,136,0.6); }
header p  { font-size: clamp(0.85em, 3vw, 1.15em); color: #b0ffcc; opacity: 0.95; }

/* ── Стеклянные карточки ── */
.services, .form-section, .calendar-section, .contact, .links-section, .ads-section {
    background: rgba(2, 18, 2, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 24px 0;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 100, 0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,255,100,0.06);
}
.form-section.form-success {
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0,255,136,0.2), 0 4px 24px rgba(0,0,0,0.5);
}

/* ── h2 секций ── */
.services h2, .form-section h2, .calendar-section h2,
.contact h2, .links-section h2, .ads-section h2 {
    color: #00e676;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 12px rgba(0,230,120,0.4);
}

/* ── Список услуг ── */
.services ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.services li { padding: 14px 16px; background: rgba(0, 60, 20, 0.45); border-left: 3px solid #00c853; border-radius: 6px; color: #ccffdd; font-weight: 500; }
.services li:before { content: "⚡ "; color: #00e676; font-weight: bold; margin-right: 6px; }

/* ── Расценки ── */
#pricing-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
@media (min-width: 1024px) { #pricing-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { #pricing-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
@media (max-width: 480px)  { #pricing-list { grid-template-columns: 1fr; } }

/* ── Форма ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #a0e8b0; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,40,10,0.7);
    border: 1.5px solid rgba(0,200,80,0.35);
    border-radius: 6px;
    font-size: 1em;
    color: #d4ffd4;
    font-family: 'Exo 2', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #00c853;
    box-shadow: 0 0 0 3px rgba(0,200,83,0.15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(180,255,200,0.35); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: #0a1f0a; color: #d4ffd4; }

.btn {
    background: linear-gradient(135deg, #00c853 0%, #00a040 100%);
    color: #000;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-transform: uppercase;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,200,83,0.5); }

/* ── Кнопки "Оставить заявку" и "Калькулятор" ── */
a[href="#requestFormSection"] {
    background: linear-gradient(135deg, #00c853, #00e676) !important;
    color: #000 !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    font-size: 1em !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 18px rgba(0,200,83,0.5) !important;
}
a[href="/calculator.php"] {
    background: linear-gradient(135deg, #00c853, #00e676) !important;
    color: #000 !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 18px rgba(0,200,83,0.5) !important;
}
a[href="/reviews.php"] {
    background: rgba(0,80,20,0.4) !important;
    color: #b0ffcc !important;
    border: 1px solid rgba(0,230,100,0.4) !important;
}

/* ── Блок "Не знаете какой" ── */
.services div[style*="e3f2fd"], .services div[style*="e8f5e9"] {
    background: rgba(0,60,20,0.4) !important;
    border-radius: 10px;
    border: 1px solid rgba(0,200,80,0.2) !important;
}
.services div[style*="e3f2fd"] p, .services div[style*="e8f5e9"] p { color: #a0e8b0 !important; }

/* ── Ценовые карточки ── */
.pricing-card {
    background: rgba(0,40,15,0.6) !important;
    border: 1px solid rgba(0,200,80,0.25) !important;
    border-radius: 10px;
    color: #d4ffd4 !important;
}
.pricing-name { color: #ccffdd !important; }
.pricing-price { color: #00e676 !important; }
.pricing-old   { color: rgba(180,255,200,0.5) !important; }

/* ── Календарь ── */
#calendar table { color: #d4ffd4; }
#calendar th { color: #00e676; }
.calendar-nav { background: #00a040 !important; color: #000 !important; font-weight: 700 !important; }
#calendar-title { color: #00e676 !important; font-family: 'Orbitron', monospace !important; }
.free  { background: #00c853 !important; }
.busy  { background: #e53935 !important; }

/* ── Контакты ── */
.contact p { color: #c8ffd8; }
.contact a { color: #00e676; }
.contact a:hover { text-decoration: underline; color: #69ff9c; }

/* ── Футер ── */
footer {
    text-align: center;
    padding: 24px;
    background: rgba(2,10,2,0.9);
    color: #5a8a5a;
    margin-top: 40px;
    border-top: 1px solid rgba(0,150,50,0.2);
    font-size: 0.9em;
}
footer a { color: #00c853 !important; }

/* ── Сообщения формы ── */
.message { padding: 15px; margin: 20px 0; border-radius: 6px; display: none; }
.message.success { background: rgba(0,80,20,0.5); border: 1px solid #00c853; color: #a0ffb0; }
.message.error   { background: rgba(80,0,0,0.5); border: 1px solid #e53935; color: #ffb0b0; }

/* ── Мобилка ── */
@media (max-width: 768px) {
    header h1 { font-size: 1.5em; }
    header p  { font-size: 0.9em; }
    .container { padding: 10px; }
    .services, .form-section, .calendar-section, .contact { padding: 18px; margin: 12px 0; }
    .services ul { grid-template-columns: 1fr; gap: 12px; }
    .btn { padding: 12px 20px; font-size: 0.95em; }
    #calendar th, #calendar td { padding: 8px 3px; font-size: 0.82em; }
}
@media (max-width: 480px) {
    header h1 { font-size: 1.2em; }
    header { padding: 20px 10px; }
    .services, .form-section, .calendar-section, .contact, .links-section { padding: 14px; }
}

/* ── Ссылки ── */
.link-item {
    display: inline-block; padding: 12px 24px;
    background: rgba(0,80,20,0.5);
    border: 1px solid rgba(0,200,80,0.3);
    color: #a0ffb0 !important;
    text-decoration: none; border-radius: 8px; font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.link-item:hover { transform: translateY(-2px); background: rgba(0,140,50,0.5); box-shadow: 0 4px 14px rgba(0,200,80,0.3); }

.ads-section .ad-item { background: rgba(0,50,15,0.4); border-left: 3px solid #00c853; border-radius: 6px; }
.ads-section .ad-item h3 { color: #00e676; }
.ads-section .ad-item p, .ads-section .ad-item a { color: #b0ffd0; }

/* ── Попап-календарь дат ── */
.date-popup { display: none; position: absolute; top: 100%; left: 0; z-index: 500; margin-top: 6px;
    background: rgba(4,20,4,0.95); border: 1px solid rgba(0,200,80,0.3);
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); padding: 14px; width: 280px; }
.date-popup.is-open { display: block; }
.date-popup__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.date-popup__title { font-weight: 700; color: #00e676; font-size: 0.92em; font-family: 'Orbitron', monospace; }
.date-popup__nav { background: #00a040; color: #000; border: none; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 1em; font-weight: 700; }
.date-popup__table { width: 100%; border-collapse: collapse; }
.date-popup__table th { font-size: 0.72em; color: #69ff9c; font-weight: 600; padding: 4px 0; }
.date-popup__day { text-align: center; padding: 8px 0; font-size: 0.83em; border-radius: 6px; cursor: pointer; color: #b0ffd0; }
.date-popup__day.is-free { background: rgba(0,120,40,0.4); color: #69ff9c; font-weight: 700; }
.date-popup__day.is-free:hover { background: #00c853; color: #000; }
.date-popup__day.is-busy { background: rgba(150,0,0,0.3); color: #ff8080; cursor: not-allowed; opacity: 0.7; text-decoration: line-through; }
.date-popup__day.is-past { color: #3a5a3a; cursor: not-allowed; }
.date-popup__legend { display: flex; gap: 14px; margin-top: 10px; font-size: 0.72em; color: #6a9a6a; }
.date-popup__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.date-popup__legend i.is-free { background: #00c853; }
.date-popup__legend i.is-busy { background: #e53935; }
/* Calendar legend colors */
.legend-color { display:inline-block; width:14px; height:14px; border-radius:3px; flex-shrink:0; }
.legend-color.free { background:#00c853; }
.legend-color.busy { background:#e53935; }
.calendar-legend { display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin-top:12px; font-size:.88em; }
.legend-item { display:flex; align-items:center; gap:6px; color:rgba(180,255,200,.75); }
