:root {
    --primary: #0f52ba;
    --primary-light: #e6effd;
    --primary-hover: #0d47a1;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --radius-lg: 20px;
    --radius-md: 14px;
    --accent-blue: #4fc3f7;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
}

html {
    scroll-behavior: smooth;
}

body { 
    background-color: var(--bg-main); 
    color: var(--text-dark); 
    line-height: 1.6; 
    padding-top: 140px; /* Збільшено відступ, оскільки нова шапка тепер дворівнева */
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    padding: 20px;
}

/* ==========================================================================
   НОВА ШАПКА САЙТУ (ДВОРІВНЕВА)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Верхній ряд: іконка зліва, заголовок по центру */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.logo-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-icon-box:hover {
    transform: scale(1.05) rotate(-5deg);
    background-color: var(--primary);
    color: white;
}

.logo-icon {
    font-size: 20px;
}

.header-main-title {
    font-size: 26px;
    font-weight: 850;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Пустий блок праворуч для збереження математичного центрування заголовка */
.header-placeholder-right {
    width: 44px;
}

/* Нижній ряд: меню, соцмережі та кнопка */
.header-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    list-style: none;
}

.nav-links-center {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-grow: 1;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 600; 
    font-size: 14px; 
    position: relative;
    padding: 6px 0;
    transition: var(--transition); 
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active { 
    color: var(--primary); 
}

.nav-btn { 
    background-color: var(--primary); 
    color: white !important; 
    padding: 8px 18px; 
    border-radius: var(--radius-md); 
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(15, 82, 186, 0.2);
    transition: var(--transition);
}

.nav-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 82, 186, 0.3);
}

.nav-socials-top { 
    display: flex; 
    gap: 8px; 
}

.social-top-link { 
    text-decoration: none; 
    font-size: 11px; 
    font-weight: 700; 
    color: var(--text-muted); 
    padding: 4px 8px; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    transition: var(--transition); 
}

.social-top-link:hover { 
    color: var(--primary); 
    border-color: var(--primary); 
    background-color: var(--primary-light); 
}

.nav-toggle { 
    display: none; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 24px; 
    height: 18px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
}

.nav-toggle span { 
    width: 100%; 
    height: 3px; 
    background-color: var(--text-dark); 
    border-radius: 2px; 
    transition: var(--transition);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
    position: relative; 
    width: 100%; 
    min-height: 520px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1400&q=80') no-repeat center center/cover;
    display: flex; 
    align-items: center; 
    padding: 50px 0;
}

.hero-container { 
    width: 100%; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 40px; 
}

.hero-text-block { 
    flex: 1; 
    color: white; 
}

.hero-text-block h1 { 
    font-size: 44px; 
    font-weight: 800; 
    line-height: 1.25; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.hero-text-block .highlight { 
    color: var(--accent-blue); 
}

.hero-form-block { 
    position: relative; 
    background: #ffffff; 
    width: 360px; 
    padding: 35px 25px 25px 25px; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.25); 
}

.chat-icon-badge { 
    position: absolute; 
    top: -25px; 
    right: 20px; 
    width: 65px; 
    height: 65px; 
    background-color: #4fc3f7; 
    border-radius: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 30px; 
    box-shadow: 0 8px 20px rgba(79, 195, 247, 0.4); 
}

.hero-form-block h3 { 
    font-size: 24px; 
    font-weight: 800; 
    color: #1e293b; 
}

.form-subtitle { 
    font-size: 14px; 
    color: var(--text-muted); 
    margin-bottom: 20px; 
}

.form-group-hero { 
    margin-bottom: 15px; 
}

.form-group-hero input { 
    width: 100%; 
    padding: 14px; 
    border: 1.5px solid var(--border-color); 
    border-radius: 12px; 
    font-size: 15px; 
    outline: none; 
    background-color: #f8fafc; 
    transition: var(--transition); 
}

.form-group-hero input:focus { 
    border-color: var(--primary); 
    background-color: #ffffff; 
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-agreement { 
    display: flex; 
    gap: 10px; 
    align-items: flex-start; 
    margin-bottom: 20px; 
}

.form-agreement label { 
    font-size: 11px; 
    color: var(--text-muted); 
    line-height: 1.4; 
}

.form-agreement a { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 600;
}

.btn-submit-hero { 
    width: 100%; 
    padding: 15px; 
    background-color: #1e293b; 
    color: white; 
    border: none; 
    border-radius: 12px; 
    font-size: 15px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: var(--transition); 
}

.btn-submit-hero:hover { 
    background-color: var(--primary); 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 82, 186, 0.25);
}

.status-message { 
    margin-top: 15px; 
    padding: 10px; 
    border-radius: 8px; 
    font-size: 14px; 
    text-align: center; 
    display: none; 
}

.status-success { 
    display: block; 
    background-color: #d1fae5; 
    color: #065f46; 
    border: 1px solid #10b981; 
}

/* ==========================================================================
   SEKCE SLUŽEB
   ========================================================================== */
.section-title { 
    text-align: center; 
    font-size: 32px; 
    font-weight: 800; 
    margin: 60px 0 35px 0; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    margin-bottom: 40px; 
}

.service-card { 
    background: var(--card-bg); 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.02); 
    border: 2px solid transparent; 
    cursor: pointer; 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
    position: relative; 
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.service-card.selected { 
    border-color: var(--primary); 
    background-color: var(--primary-light); 
}

.service-img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
}

.service-content { 
    padding: 24px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.service-content h3 { 
    font-size: 20px; 
    color: var(--primary); 
    margin-bottom: 8px; 
    font-weight: 700;
}

.service-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.price-tag { 
    font-size: 16px; 
    font-weight: 700; 
    background: #f1f5f9; 
    padding: 6px 14px; 
    border-radius: 8px; 
    align-self: flex-start; 
}

.service-card.selected .price-tag { 
    background: var(--primary); 
    color: white; 
}

/* ==========================================================================
   НОВА СЕКЦІЯ: CENÍK (СУЧАСНА ТАБЛИЦЯ)
   ========================================================================== */
.cenik-section {
    padding: 20px 0;
    scroll-margin-top: 150px; /* Запобігає перекриттю нашою високою шапкою */
}

.cenik-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.cenik-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.cenik-table th {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    padding: 16px 24px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.cenik-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.cenik-table tr:last-child td {
    border-bottom: none;
}

.cenik-table tr:hover td {
    background-color: #f8fafc;
}

/* Стилізація колонок для гарного візуального балансу */
.td-service {
    font-weight: 600;
    width: 50%;
}

.td-unit {
    color: var(--text-muted);
    font-weight: 500;
    width: 25%;
}

.td-price {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    width: 25%;
}

.cenik-table th:last-child {
    text-align: right;
}

/* ==========================================================================
   O NÁS
   ========================================================================== */
.about-section {
    padding: 40px 0;
    scroll-margin-top: 150px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--card-bg);
    padding: 45px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.about-text {
    flex: 1.2;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-text p {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.75;
}

.about-image {
    flex: 0.8;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* ==========================================================================
   DOKUMENTY
   ========================================================================== */
.docs-section {
    padding: 40px 0;
    scroll-margin-top: 150px;
}

.docs-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: -20px;
    margin-bottom: 40px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.doc-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doc-icon {
    font-size: 44px;
    margin-bottom: 18px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.doc-card h4 {
    font-size: 17px;
    font-weight: 700;
}

.doc-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.doc-zoom {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.doc-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* ==========================================================================
   RECENZE
   ========================================================================== */
.reviews-section {
    position: relative;
    margin: 80px 0 40px 0;
    scroll-margin-top: 150px;
}

.reviews-header-bg {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
}

.bg-watermark {
    font-size: 90px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(30, 41, 59, 0.06);
    letter-spacing: 25px;
    text-transform: uppercase;
    user-select: none;
}

.section-title-reviews {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 6px;
    white-space: nowrap;
}

.reviews-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.review-column-card {
    display: flex;
    flex-direction: column;
}

.review-work-box {
    width: 100%;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.review-work-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-label-top {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.review-row-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.review-row-meta h4 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.review-row-meta .client-name {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.review-stars-quote {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quote-mark-blue {
    font-size: 45px;
    color: #4fc3f7;
    line-height: 0.8;
    font-family: serif;
}

.review-stars-gold {
    color: #ffbe0b;
    font-size: 13px;
}

.review-text-content {
    font-size: 14px;
    color: #475569;
}

/* ==========================================================================
   FOOTER & KONTAKTY
   ========================================================================== */
.site-footer { 
    background-color: #1e293b; 
    color: #f8fafc; 
    padding: 60px 0 20px 0; 
    margin-top: 80px; 
    border-top: 4px solid var(--primary); 
}

.footer-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
}

.footer-column { 
    flex: 1; 
    min-width: 250px; 
}

.footer-column h3 { 
    color: #ffffff; 
    font-size: 18px; 
    margin-bottom: 20px; 
    position: relative; 
    padding-bottom: 8px; 
}

.footer-column h3::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 40px; 
    height: 3px; 
    background-color: var(--accent-blue); 
}

.info-col p { 
    color: #94a3b8; 
    font-size: 14px; 
    margin-bottom: 20px; 
}

.contact-col p { 
    color: #94a3b8; 
    font-size: 14px; 
    margin-bottom: 12px; 
}

.contact-link {
    color: #94a3b8;
    text-decoration: none;
}

.contact-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 15px;
}

.social-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.social-btn.fb { background: #0b66c2; }
.social-btn.ig { background: #ee2a7b; }
.social-btn.yt { background: #cc0000; }

.social-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

.links-col ul { 
    list-style: none; 
}

.links-col ul li { 
    margin-bottom: 10px; 
}

.links-col ul li a { 
    color: #94a3b8; 
    text-decoration: none; 
    font-size: 14px; 
}

.links-col ul li a:hover { 
    color: #ffffff; 
    padding-left: 6px; 
}

.footer-bottom { 
    max-width: 1000px; 
    margin: 40px auto 0 auto; 
    padding: 20px 20px 0 20px; 
    border-top: 1px solid #334155; 
    text-align: center; 
    color: #64748b; 
    font-size: 13px; 
}

/* ==========================================================================
   RESPONSIVITA (МОБІЛЬНА ВЕРСІЯ)
   ========================================================================== */
/* ==========================================================================
   RESPONSIVITA (МОБІЛЬНА ВЕРСІЯ)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Зменшуємо відступ зверху, бо мобільна шапка стає компактною */
    }

    /* --- КОМПАКТНА ШАПКА ДЛЯ МОБІЛЬНИХ --- */
    .header-container {
        padding: 12px 16px;
    }

    .header-top-row {
        padding-bottom: 0;
        border-bottom: none; /* Прибираємо лінію між рівнями */
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header-main-title {
        font-size: 20px; /* Зменшуємо шрифт заголовка */
        position: absolute;
        left: 75px; /* Зрушуємо вбік від іконки */
    }

    .header-placeholder-right {
        display: none; /* Прибираємо пустий блок справа */
    }

    .header-bottom-nav {
        padding-top: 0;
    }

    /* Кнопка "бургер" */
    .nav-toggle { 
        display: flex; 
        position: absolute; 
        right: 16px; 
        top: 25px; 
        z-index: 1001; 
    }

    /* --- МОБІЛЬНЕ МЕНЮ НА ПОВНИЙ ЕКРАН --- */
    .nav-menu { 
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 100%; 
        height: 100vh; 
        background-color: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column; 
        justify-content: center; 
        align-items: center;
        padding: 100px 30px 40px 30px; 
        gap: 30px; 
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active { 
        left: 0; 
    }

    .nav-links-center { 
        flex-direction: column; 
        gap: 25px; 
        width: 100%; 
        align-items: center;
        flex-grow: 0;
    }

    .nav-link {
        font-size: 18px; /* Збільшений розмір для зручного тапу пальцем */
        padding: 10px 0;
    }
    
    .nav-right-actions { 
        flex-direction: column-reverse; /* Спочатку кнопка, потім соцмережі */
        gap: 25px; 
        width: 100%; 
        align-items: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px;
        text-align: center;
        font-size: 15px;
    }
    
    .nav-socials-top { 
        margin-bottom: 0;
        gap: 12px;
    }

    .social-top-link {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    /* Анімація перетворення бургера на хрестик */
    .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


    /* --- HERO СЕКЦІЯ ТА ФОРМА --- */
    .hero-section {
        padding: 40px 0;
    }

    .hero-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 35px; 
    }
    
    .hero-text-block h1 { 
        font-size: 28px; 
        line-height: 1.3;
    }

    .hero-form-block {
        width: 100%;
        max-width: 380px;
        padding: 30px 20px 20px 20px;
    }


    /* --- СЕКЦІЯ ПОСЛУГ --- */
    .section-title {
        font-size: 26px;
        margin: 40px 0 25px 0;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Картки послуг строго одна за одною */
        gap: 20px;
    }


    /* --- АДАПТИВНА ТАБЛИЦЯ ЦІН (Ceník) --- */
    .cenik-card {
        padding: 0;
        border-radius: var(--radius-md);
        overflow-x: auto; /* Додає плавний горизонтальний скрол на мобільних */
        -webkit-overflow-scrolling: touch;
    }

    .cenik-table {
        min-width: 500px; /* Запобігає надмірному здавлюванню тексту */
    }

    .cenik-table th, .cenik-table td {
        padding: 12px 16px;
        font-size: 13px;
    }


    /* --- ПРО НАС --- */
    .about-content {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
    }

    .about-image {
        width: 100%;
        height: 220px;
    }


    /* --- ПОРТФОЛІО (НАШЕ РАБОТЕ) --- */
    .portfolio-grid {
        grid-template-columns: 1fr; /* На телефонах виводимо фото в одну велику колонку */
        gap: 20px;
    }

    .portfolio-img-box {
        height: 240px; /* Трохи збільшуємо висоту фото для мобільних екранів */
    }

    .portfolio-subtitle {
        margin-bottom: 25px;
    }


    /* --- ВІДГУКИ --- */
    .reviews-section {
        margin: 50px 0 30px 0;
    }

    .bg-watermark {
        font-size: 55px;
        letter-spacing: 10px;
    }
	

    .section-title-reviews {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .reviews-grid-clean {
        grid-template-columns: 1fr;
        gap: 25px;
    }


    /* --- ФУТЕР --- */
    .site-footer {
        padding: 40px 0 20px 0;
        margin-top: 50px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-column {
        min-width: 100%;
    }


    /* --- ПЛАВАЮЧІ МЕСЕНДЖЕРИ В КУТКУ --- */
    .messenger-contact-bar {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .messenger-item {
        width: 48px;
        height: 48px;
    }

    .messenger-item svg {
        width: 26px;
        height: 26px;
    }
}




/* Позиціонування блоку у правому нижньому кутку */
.messenger-contact-bar {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Відстань між іконками */
}

/* Стилізація кожної кнопки */
.messenger-item {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Легке збільшення при наведенні мишкою */
.messenger-item:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Векторні іконки всередині */
.messenger-item svg {
  width: 32px;
  height: 32px;
}

/* ТОЧНІ ФІРМОВІ КОЛЬОРИ З ЗОБРАЖЕННЯ */

/* Telegram: Фірмовий яскраво-блакитний */
.item-tg {
  background-color: #34a9e6;
}

/* Facebook Messenger: Плавний оригінальний градієнт */
.item-fb {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 50%, #f72585 100%);
}

/* WhatsApp: Насичений зелений бренд-колір */
.item-wa {
  background-color: #25d366;
}

/* Дзвінок: Класичний зелений з ілюстрації */
.item-phone {
  background-color: #10b981;
}




/* ==========================================================================
   SEKCE: NAŠE PRÁCE / PORTFOLIO (Галерея виконаних робіт)
   ========================================================================== */
.portfolio-section {
    padding: 40px 0;
    scroll-margin-top: 150px;
}

.portfolio-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: -20px;
    margin-bottom: 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.portfolio-img-box {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ефект затемнення та появи тексту при наведенні на фото */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 82, 186, 0.4); /* Наш фірмовий синій з прозорістю */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-overlay span {
    color: white;
    font-weight: 700;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 30px;
    transform: translateY(10px);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.portfolio-card:hover .portfolio-img-box img {
    transform: scale(1.08); /* Легке збільшення фото */
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-overlay span {
    transform: translateY(0);
}

.portfolio-info {
    padding: 15px;
}

.portfolio-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}


/* Базовий стан модального вікна (приховане) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6); /* Напівпрозорий чорний фон */
    backdrop-filter: blur(4px); /* Легке розмиття заднього фону */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Клас для показу вікна */
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Контентна область модалки */
.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* Кнопка-хрестик праворуч вгорі */
.modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* Елементи всередині модалки */
.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.modal-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Кнопка "Zavřít" внизу */
.modal-btn-close {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn-close:hover {
    background-color: #c0392b;
}