/* Price Page Styles */
.price-container {
    width: 100%;
    margin: 0;
    padding: 0;
}
.menu-item-link {
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    display: block;
    transition: 0.3s;
}
.menu-item-link:hover {
    cursor: pointer;
    color: #669BBC;
}

/* Hero Section */
.price-hero {
    position: relative;
    width: 100%;
    height: 780px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.price-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

.price-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(94, 131, 153, 0) 0%, 
        rgba(94, 131, 153, 0.5) 70%, 
        rgba(94, 131, 153, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

.price-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.price-hero-content {
    position: relative;
    text-align: center;
    color: #37414A;
    padding: 0 20px;
    margin-bottom: 80px;
    margin-top: 150px;
    z-index: 2;
}

.price-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5E8399;
}

/* Price Content Section */
.price-content {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.price-layout {
    display: flex;
    gap: 40px;
}

/* Services Menu (Left Column) */
.services-menu {
    width: 300px;
    flex-shrink: 0;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Стилі для списку категорій послуг */
.service-category {
    margin-bottom: 15px;
    list-style-type: none;
}

.category-toggle {
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Стилі для підкатегорій */
.subcategory-list {
    margin-left: 20px;
    margin-top: 5px;
    display: none;
    padding-left: 10px;
}

.service-category.active > .subcategory-list {
    display: block;
}

.subcategory {
    margin-bottom: 10px;
    list-style-type: none;
}

.subcategory-toggle {
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* Стилі для списку сервісів */
.service-details {
    margin-left: 20px;
    display: none;
    padding-left: 5px;
}

.subcategory.active > .service-details {
    display: block;
}

/* Стилі для активних елементів */
.service-details li {
    margin-bottom: 8px;
    list-style-type: none;
}

.service-details li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.service-details li a:hover {
    color: #0056b3;
}

.service-details li a.active-link {
    color: #007bff;
    font-weight: 500;
}

/* Ефекти наведення */
.category-toggle:hover, .subcategory-toggle:hover {
    opacity: 0.8;
}

/* Price Tables (Right Column) */
.price-tables {
    flex: 1;
}

.price-section {
    display: none;
}

.price-section.active {
    display: block;
}

.services-title {
    color: #4d5c68;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 500;
}

.price-table {
    width: 100%;
    margin-bottom: 50px;
    border-radius: 4px;
    overflow: hidden;
    color: black;
}

.price-table-header {
    display: flex;
    background-color: #5E8399;
    color: white;
    font-weight: bold;
    padding: 15px 20px;
}

.price-table-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9f9f9;
}

.price-table-row:nth-child(even) {
    background-color: #f3f3f3;
}

.service-name, .service-price {
    padding: 15px 20px;
}

.service-name {
    flex: 1;
    font-weight: 500;
}

.service-price {
    width: 150px;
    text-align: right;
    color: #5E8399;
}

.price-table-header .service-name,
.price-table-header .service-price {
    color: white;
}

/* Contact Form Section */
.contact-form-section {
    position: relative;
    background-image: linear-gradient(to bottom, 
        rgba(94, 131, 153, 0) 0%, 
        rgba(94, 131, 153, 0.5) 50%, 
        rgba(94, 131, 153, 0.8) 100%),
        url('img/price-form.png');
    background-size: cover;
    background-position: center;
    padding: 0 0 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 600px;
}

.contact-content {
    position: relative;
    margin: 0 auto;
    padding: 60px 0;
    font-family: 'Philosopher', sans-serif;
}

.contact-content::before,
.contact-content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
}

.contact-content::before {
    top: 0;
}

.contact-content::after {
    bottom: 0;
}

.contact-content .highlight {
    color: #AFD4E9;
}

.section-header {
    background-color: rgba(94, 131, 153, 0.9);
    width: 100%;
    text-align: center;
    padding: 60px 0;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
}

.contact-form-container {
    background-color: #fff;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 30px;
}

.contact-form-container h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-submit {
    background-color: #AFD4E9;
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 auto;
    display: block;
}

.btn-submit:hover {
    background-color: #5E8399;
    color: white;
}

.privacy-notice {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .price-layout {
        flex-direction: column;
    }
    
    .services-menu, .price-tables {
        width: 100%;
    }
    
    .price-tables {
        padding-top: 30px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .price-hero {
        height: 500px;
    }
    
    .price-hero-content {
        margin-top: 80px;
        margin-bottom: 60px;
    }
    
    .price-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .price-content {
        padding: 40px 0;
    }
    
    .services-title {
        font-size: 24px;
    }
    
    .service-name, .service-price {
        padding: 10px 15px;
    }
    
    .service-price {
        width: 120px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-form-container h2 {
        font-size: 1.5rem;
    }
    
    .section-header {
        padding: 20px 10px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .price-hero {
        height: 250px;
    }
    
    .price-hero-content {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .price-hero h1 {
        font-size: 30px;
    }
    
    .services-title {
        font-size: 24px;
    }
    
    .service-name, .service-price {
        font-size: 14px;
    }
    
    .service-price {
        width: 100px;
    }
}