html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(to right, #f19424 40%, #8e171d 60%);
    border-bottom: 3px solid #cc0001;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper1 {
    display: flex;
    align-items: start;
    gap: 15px;
    width: 100%;
    justify-content: start;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    max-width: 100%;
}

.nav-bar {
    background-color: #cc0001;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-bar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-bar li a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-bar li a:hover,
.nav-bar li a.active {
    background-color: #a30001;
}

.main-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.content-area {
    flex: 4;
}

.sidebar {
    flex: 1;
    min-width: 280px;
}

.slider-banner {
    background: linear-gradient(135deg, #fd0000, #a70000fd);
    color: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(204,0,1,0.3);
}

.slider-banner h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

.slider-banner p {
    font-size: 15px;
    opacity: 0.9;
}

.services-section h2,
.price-section h2,
.gallery-section h2 {
    font-size: 24px;
    color: #cc0001;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #cc0001;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}

.service-card p {
    font-size: 14px;
    color: #666;
}

.price-section {
    margin-top: 40px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.price-table th,
.price-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.price-table th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: 600;
}

.price-table tr:last-child td {
    border-bottom: none;
}

/* Стилі для кнопки "Більше послуг та цін" */
.btn-more-price {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 20px auto 0 auto;
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px;
}

.btn-more-price:hover {
    background-color: #cc0001;
    transform: translateY(-2px);
}

.gallery-section {
    margin-top: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget h3 {
    font-size: 18px;
    color: #cc0001;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.contacts-widget p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #555;
}

.contacts-widget p strong {
    color: #333;
}

.btn-write {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #cc0001;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-write:hover {
    background-color: #a30001;
    transform: translateY(-2px);
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 6px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    font-size: 13px;
    margin-top: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.price-modal-content {
    max-width: 500px !important;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal-content h3 {
    color: #cc0001;
    margin-bottom: 10px;
    font-size: 20px;
}

.modal-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.detailed-price-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.detailed-price-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #444;
}

.detailed-price-list li b {
    color: #cc0001;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: #cc0001;
}

.btn-send {
    width: 100%;
    background-color: #cc0001;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-send:hover {
    background-color: #a30001;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo-img {
        height: 70px; 
    }

    .nav-bar ul {
        flex-direction: column;
    }

    .nav-bar li a {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 13px;
    }

    .slider-banner {
        padding: 25px 15px;
    }

    .slider-banner h2 {
        font-size: 20px;
    }

    .slider-banner p {
        font-size: 14px;
    }

    .services-grid, 
    .gallery-grid {
        grid-template-columns: 1fr; 
    }

    .price-table th, 
    .price-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .widget {
        padding: 18px;
    }
}