* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: #f5f3f0;
    color: #2b2520;
}

h1, h2, h3, h4, h5, h6 {
    color: #6b4e31;
    margin: 10px 0;
    font-weight: 700;
}

.main-menu {
    background: #3c2f2f;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.main-menu ul::-webkit-scrollbar {
    display: none;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
}

.main-menu a:hover, .main-menu a.active {
    background: #d4a373;
    color: #2b2520;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/hero-image.jpg') center/cover no-repeat fixed;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@supports (background-image: url('img/hero-image.webp')) {
    .hero-section {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/hero-image.webp');
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5em;
    margin: 0 0 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin: 0 0 30px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #d4a373;
    color: #2b2520;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: #b08968;
    transform: scale(1.05);
}

.brand-logos-container {
    overflow: hidden;
    background: #fffaf0;
    padding: 15px 0;
}

.logo-track {
    display: flex;
    animation: scroll 20s linear infinite;
    align-items: center;
}

.logo-track img {
    width: 100px;
    height: 50px;
    object-fit: contain;
    margin: 0 20px;
    border: 2px solid #6b4e31;
    border-radius: 6px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.logo-track img:hover {
    border-color: #d4a373;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

#search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #6b4e31;
    border-radius: 30px;
    font-size: 1.1em;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #d4a373;
    outline: none;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d4a373;
    border-radius: 0 0 10px 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
}

.autocomplete-results a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #2b2520;
    transition: background 0.3s ease;
}

.autocomplete-results a:hover {
    background: #fffaf0;
}

.page-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.cities-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 0 15px;
}

.city-item, .service-item {
    width: 100%;
}

.city-button, .district-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #6b4e31;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(107, 78, 49, 0.3);
    transition: all 0.3s ease;
}

.city-button:hover, .district-button:hover, .city-button:focus, .district-button:focus {
    background: #d4a373;
    color: #2b2520;
    box-shadow: 0 6px 16px rgba(212, 163, 115, 0.5);
    transform: translateY(-2px);
}

.back-link {
    display: inline-block;
    margin: 20px 15px;
    color: #6b4e31;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    color: #d4a373;
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #d4a373;
    color: #2b2520;
    border: none;
    border-radius: 50%;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #b08968;
    transform: scale(1.1);
}

.scroll-top-btn::before {
    content: "\2191";
}

.fixed-photos-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

.photo-item {
    text-align: center;
    width: 100%;
}

.photos-grid img {
    width: 300px;
    height: 250px;
    object-fit: cover;
    border: 3px solid #d4a373;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photos-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.photo-caption {
    margin: 8px 0 0;
    font-size: 0.95em;
    font-weight: 500;
    color: #2b2520;
}

footer {
    background: #3c2f2f;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer a {
    color: #d4a373;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 15px;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .main-menu ul {
        gap: 8px;
        padding: 0 10px;
    }

    .main-menu a {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .cities-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photos-grid img {
        width: 280px;
        height: 230px;
    }

    .photo-caption {
        font-size: 0.9em;
    }

    .logo-track img {
        width: 80px;
        height: 40px;
        margin: 0 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photos-grid img {
        width: 290px;
        height: 240px;
    }

    .logo-track img {
        width: 90px;
        height: 45px;
        margin: 0 18px;
    }
}