/* Базові налаштування */
:root {
    --bg-dark: #0a0b0e;
    --bg-light-dark: #14161c;
    --accent-blue: #00e5ff;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.highlight { color: var(--accent-blue); }
.glow-text { text-shadow: 0 0 10px rgba(0, 229, 255, 0.6); }

/* Кнопки */
.btn-primary, .btn-outline {
    display: inline-block; padding: 12px 28px; text-decoration: none;
    font-weight: 700; border-radius: 4px; transition: all 0.3s ease;
    cursor: pointer; border: none; font-family: inherit; font-size: 14px; letter-spacing: 1px;
}

.btn-primary { background-color: var(--accent-blue); color: #000; }
.btn-primary:hover, .glow-effect:hover {
    background-color: #33ebff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline { border: 1px solid var(--accent-blue); color: var(--accent-blue); background: transparent; }
.btn-outline:hover { background: var(--accent-blue); color: #000; box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); }

/* Шапка */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0;
    background: rgba(10, 11, 14, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.nav-menu a { color: var(--text-main); text-decoration: none; margin: 0 15px; font-size: 13px; font-weight: 600; text-transform: uppercase; transition: color 0.3s; }
.nav-menu a:hover { color: var(--accent-blue); }

/* Головний екран */
.hero {
    height: 100vh; display: flex; align-items: center; position: relative;
    background: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
}
.hero-overlay { position: absolute; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(10,11,14,0.95) 0%, rgba(10,11,14,0.5) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: 56px; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; }

/* Секції загальні */
section { padding: 100px 0; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 50px; font-weight: 800; }

/* Послуги */
.services { background-color: var(--bg-dark); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: var(--bg-light-dark); padding: 40px 30px; border-radius: 12px; text-align: center;
    border: 1px solid rgba(255,255,255,0.03); transition: transform 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--accent-blue); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.service-icon { font-size: 40px; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; font-size: 18px; }
.service-card p { color: var(--text-muted); font-size: 14px; }

/* =========================================
   КРУТИЙ ДИЗАЙН ТАБЛИЦІ (ПРАЙС-ЛИСТ)
   ========================================= */
.pricing-section { background-color: var(--bg-light-dark); position: relative; }
.pricing-wrapper { display: flex; flex-direction: column; gap: 40px; margin-bottom: 60px; }

.table-block { background: var(--bg-dark); border-radius: 12px; padding: 30px; border: 1px solid rgba(255,255,255,0.05); }
.table-category {
    font-size: 20px; color: #fff; margin-bottom: 25px; display: flex; align-items: center;
}
.table-category::before {
    content: ''; display: inline-block; width: 4px; height: 24px;
    background: var(--accent-blue); margin-right: 15px; border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-blue);
}

.table-responsive { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
    text-align: left; padding: 15px; color: var(--text-muted); font-size: 12px;
    text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.price-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.03); color: #fff; transition: 0.3s; }
.price-table tr:hover td { background: rgba(0, 229, 255, 0.03); color: var(--accent-blue); }
.highlight-price { font-weight: 700; color: var(--accent-blue); font-size: 16px; }

/* Кнопки в таблиці */
.btn-add {
    background: transparent; border: 1px solid rgba(0, 229, 255, 0.3); color: var(--text-main);
    padding: 8px 20px; border-radius: 4px; cursor: pointer; transition: all 0.3s ease;
    font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.btn-add:hover { border-color: var(--accent-blue); color: var(--accent-blue); box-shadow: 0 0 10px rgba(0, 229, 255, 0.2); }
.btn-add.selected { background: var(--accent-blue); color: #000; border-color: var(--accent-blue); box-shadow: 0 0 15px rgba(0, 229, 255, 0.5); }

/* Скляна панель (Glassmorphism) */
.quote-summary {
    position: sticky; bottom: 30px; left: 0; right: 0; margin: 0 auto; max-width: 600px;
    background: rgba(20, 22, 28, 0.85); backdrop-filter: blur(15px);
    padding: 20px 40px; display: none; justify-content: space-between; align-items: center;
    border: 1px solid rgba(0, 229, 255, 0.3); border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0, 229, 255, 0.1);
    z-index: 100;
}
.summary-text { font-size: 16px; font-weight: 600; }
.summary-text span { font-size: 24px; margin-left: 10px; }

/* Портфоліо */
.portfolio { background-color: var(--bg-dark); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 12px; height: 350px; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.95)); }
.portfolio-info h4 { font-size: 20px; margin-bottom: 5px; }
.portfolio-info p { color: var(--accent-blue); font-size: 14px; font-weight: 600; }

/* Контакти */
.contact { background-color: var(--bg-light-dark); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-form { background: var(--bg-dark); padding: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 6px;
    font-family: inherit; resize: vertical; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-blue); background: rgba(0, 229, 255, 0.02); }
.btn-submit { width: 100%; padding: 16px; font-size: 16px; }
.form-message { margin-top: 15px; text-align: center; font-size: 14px; }
.success-text { color: var(--accent-blue); font-weight: 600; }

/* Підвал */
footer { text-align: center; padding: 40px 0; background: var(--bg-dark); color: var(--text-muted); font-size: 14px; border-top: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero h1 { font-size: 40px; }
    .contact-container { grid-template-columns: 1fr; }
    .quote-summary { flex-direction: column; gap: 15px; text-align: center; border-radius: 20px; padding: 20px; }
    .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; } /* Ховаємо колонку "Одиниці" на телефоні для економії місця */
}