/* ============================================
   Колодец Бур - Custom Styles
   ============================================ */

/* Variables */
:root {
    --primary-color: #008706;
    --primary-dark: #006605;
    --secondary-color: #446084;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

.alt-font {
    font-family: 'Dancing Script', cursive;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

/* Header Styles */
.header {
    position: relative;
    z-index: 1000;
}

.top-bar {
    background-color: var(--dark-bg) !important;
    font-size: 0.9rem;
}

.top-nav .nav-link {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.top-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar {
    background-color: var(--primary-color) !important;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.25rem 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-dark);
    border-radius: 5px;
}

.dropdown-menu {
    background-color: var(--white);
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: 5px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    min-height: 500px;
    height: 60vh;
    max-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-content {
    min-height: 500px;
    height: 60vh;
    max-height: 600px;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.carousel-slide > .container {
    position: relative;
    z-index: 2;
}

.bg-slide-1 {
    background-color: #008706; /* Fallback цвет */
    background-image: linear-gradient(135deg, rgba(0, 135, 6, 0.4), rgba(68, 96, 132, 0.4)), 
                      url('images/kol.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-slide-2 {
    background-color: #008706; /* Fallback цвет */
    background-image: linear-gradient(135deg, rgba(0, 135, 6, 0.3), rgba(68, 96, 132, 0.3)), 
                      url('images/kol.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-slide-3 {
    background-color: #008706; /* Fallback цвет */
    background-image: linear-gradient(135deg, rgba(0, 135, 6, 0.3), rgba(68, 96, 132, 0.3)), 
                      url('images/kol.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-slide-4 {
    background-color: #008706; /* Fallback цвет */
    background-image: linear-gradient(135deg, rgba(0, 135, 6, 0.3), rgba(68, 96, 132, 0.3)), 
                      url('images/kol.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 135, 6, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

/* Advantages */
.advantages {
    background-color: var(--light-bg);
}

.advantage-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    color: var(--primary-color);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.divider {
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.divider-white {
    width: 100px;
    height: 4px;
    background-color: var(--white);
    margin: 0 auto;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

/* Price Factors */
.price-factors {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%);
}

.factor-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Price Table */
.price-table-section {
    background-color: var(--white);
}

.table-primary {
    background-color: var(--primary-color) !important;
    color: var(--white);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 135, 6, 0.1);
}

/* Calculator */
.calculator-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.calculator-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.calculator-result {
    border: 2px solid var(--primary-color);
}

.result-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.result-total {
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.form-range {
    height: 8px;
}

.form-range::-webkit-slider-thumb {
    background-color: var(--primary-color);
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
    background-color: var(--primary-color);
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Services */
.services-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    width: 100%;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Service Price */
.service-price {
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-top: auto;
}

.price-from {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.price-amount {
    color: var(--primary-color);
    margin: 0.25rem 0;
}

.price-average {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 135, 6, 0.7));
}

.service-content {
    background: var(--white);
}

/* How We Work */
.work-step {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.work-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
}

/* Reviews */
.review-card {
    border-radius: 10px;
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.review-author {
    color: var(--white);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.75rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 135, 6, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: var(--text-dark);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #ffb300;
    border-color: #ffb300;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%);
}

.footer a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.phone-link {
    color: var(--white) !important;
    text-decoration: none;
}

.phone-link:hover {
    color: var(--primary-color) !important;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-slide {
        min-height: 400px;
        height: 50vh;
        max-height: 500px;
    }
    
    .hero-content {
        min-height: 400px;
        height: 50vh;
        max-height: 500px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .top-bar {
        display: none !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .carousel-slide {
        min-height: 350px;
        height: 45vh;
        max-height: 450px;
    }
    
    .hero-content {
        min-height: 350px;
        height: 45vh;
        max-height: 450px;
    }
    
    .display-3 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.accordion-button {
    background-color: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 135, 6, 0.25);
}

.accordion-body {
    background-color: var(--white);
    line-height: 1.8;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

/* Cities Section */
.cities-section {
    background-color: var(--white);
}

.city-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.city-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.city-card h4 {
    font-size: 1.25rem;
}

.regions-block {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.regions-block ul li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.regions-block .bi-check-circle {
    color: #ffc107;
    margin-right: 0.5rem;
}

/* SEO Text Block */
.seo-text-block {
    border-left: 4px solid var(--primary-color);
}

/* Final SEO Section */
.final-seo-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.seo-content {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.seo-content h2,
.seo-content h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.seo-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.seo-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.seo-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.seo-text-block h2,
.seo-text-block h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.seo-text-block ul {
    padding-left: 1.5rem;
}

.seo-text-block ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.seo-text-block strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
}

/* About Page */
.about-image img {
    box-shadow: var(--shadow);
}

.feature-box {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    color: var(--primary-color);
}

.mission-box {
    box-shadow: var(--shadow-hover);
}

/* Works Page */
.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.work-image {
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-item:hover .work-image img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 135, 6, 0.9), transparent);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.stats-box {
    box-shadow: var(--shadow-hover);
}

/* Reviews Page */
.review-card-full {
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.review-card-full:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.author-avatar {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Prices Page */
.price-factor-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.price-factor-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.service-price-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.service-price-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.calculator-link-box {
    box-shadow: var(--shadow-hover);
}

/* Contacts Page */
.contact-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    color: var(--primary-color);
}

.contact-form-wrapper {
    box-shadow: var(--shadow);
}

.contact-info-wrapper {
    box-shadow: var(--shadow-hover);
}

.map-wrapper {
    box-shadow: var(--shadow);
}

.map-wrapper iframe {
    border: none;
}

/* Rating Stars */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating label:hover,
.rating label:hover ~ label {
    color: #ffc107;
}

.rating input:checked ~ label {
    color: #ffc107;
}

