html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 110px;
    font-family: 'Onest', 'Arial', sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.site-header {
    background-color: skyblue;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50vw;
    width: 200vw;
    height: 100%;
    background-color: skyblue;
    z-index: -1;
}

.header-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 60px;
}

.phone-number {
    position: absolute;
    top: 0;
    left: 55%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

.phone-number:hover,
.phone-number:focus {
    text-decoration: underline;
}

.menu-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #73BAD7;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    border: none;
    outline: none;
}

.main-nav {
    font-size: 16px;
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #333;
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
    z-index: 2000;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav ul li {
    padding: 10px;
    border-bottom: 1px solid #444;
}

.main-nav ul li:last-child {
    border-bottom: none;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
    text-decoration: underline;
}

.main-nav .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

/* Shared dialog menu for the homepage and city service pages. */
.home-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: white;
    overflow: hidden;
}

/* The modal top layer sits above the header and the existing timed popup. */
.home-menu::backdrop {
    background: transparent;
}

.home-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 42%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.home-menu__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    /* The reserved root gutter must not narrow the existing menu panel. */
    width: min(360px, calc(var(--home-menu-viewport-width, 100%) - 48px));
    height: 100%;
    background: #252525;
    box-shadow: 4px 0 18px rgb(0 0 0 / 20%);
    transform: translateX(-100%);
    transition: transform 220ms ease;
}

.home-menu.is-open .home-menu__overlay { opacity: 1; }
.home-menu.is-open .home-menu__panel { transform: translateX(0); }

.home-menu__top {
    position: relative;
    flex: none;
    padding: 55px 20px 18px;
    padding-top: calc(55px + env(safe-area-inset-top, 0px));
    background: #eaf3f7;
}

.home-menu__logo {
    display: block;
    width: min(100%, 250px);
    height: auto;
    margin: 0 auto;
}

.home-menu__city {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 10px auto 0;
    box-sizing: border-box;
    cursor: default;
    pointer-events: none;
}

.home-menu__close {
    position: absolute;
    top: calc(6px + env(safe-area-inset-top, 0px));
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 4px;
    background: #d82348;
    color: white;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
}

.home-menu__scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #919191 #252525;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.home-menu__pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
}

.home-menu__card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    min-width: 0;
    min-height: 106px;
    width: 100%;
    padding: 12px;
    border: 1px solid #646464;
    border-radius: 2px;
    overflow: hidden;
    background: #68737c;
    color: #fff;
    font: 700 15px/1.35 'Onest', Arial, sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgb(216 35 72 / 25%);
}

.home-menu__card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.home-menu__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 8%), rgb(0 0 0 / 78%));
    transition: background 180ms ease;
}

.home-menu__card span {
    position: relative;
    z-index: 1;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 3px rgb(0 0 0 / 65%);
}

.home-menu__card small { display: block; font-size: 12px; }
.home-menu__card--home { background: #eaf3f7; }
.home-menu__card--home img { inset: 15px 8px auto; width: calc(100% - 16px); height: 35px; object-fit: contain; }
.home-menu__card--home::after { background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 80%)); }
.home-menu__card--about img { object-position: center 35%; }
.home-menu__card--contacts img { object-position: center 40%; }
.home-menu__card--offers { background: #fff; }
.home-menu__card--offers::after { background: transparent; }

.home-menu__services { display: grid; gap: 3px; }
.home-menu__service {
    min-height: 124px;
    align-items: center;
    padding: 16px;
    font-size: 16px;
    background: radial-gradient(ellipse at 82% 25%, #9ca6ad, #4c5963 55%, #202b34);
    border-color: #59646c;
    box-shadow: inset 0 1px rgb(255 255 255 / 12%);
}

.home-menu__service img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    filter: drop-shadow(-8px 5px 7px rgb(0 0 0 / 35%));
    transition: transform 220ms ease;
}

.home-menu__service:nth-child(1) { --service-order: 0; }
.home-menu__service:nth-child(2) { --service-order: 1; }
.home-menu__service:nth-child(3) { --service-order: 2; }
.home-menu__service:nth-child(4) { --service-order: 3; }
.home-menu__service:nth-child(1) img { object-position: 84% center; }
.home-menu__service:nth-child(2) img { object-position: 96% center; }
.home-menu__service:nth-child(3) img { object-position: 92% center; }
.home-menu__service:nth-child(4) img { object-position: right 58%; }

.home-menu__service::after {
    background: linear-gradient(90deg, rgb(10 18 25 / 86%), rgb(10 18 25 / 56%) 52%, rgb(10 18 25 / 8%)),
        linear-gradient(0deg, rgb(0 0 0 / 25%), transparent 45%);
}

.home-menu__service::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(255 255 255 / 5%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%), inset 0 0 28px rgb(255 255 255 / 5%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
}

.home-menu__service span { z-index: 2; }

.home-menu[open] .home-menu__service {
    animation: home-menu-service-in 520ms cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: calc(var(--service-order) * 145ms);
}

@keyframes home-menu-service-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-menu__notice {
    margin: 0 8px 8px;
    padding: 12px;
    border-left: 3px solid #d82348;
    background: #363636;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.home-menu__card:not(.home-menu__service):active::after { background: rgb(159 13 44 / 65%); }
.home-menu__service:active::before, .home-menu__service:focus-visible::before { opacity: 1; }
.home-menu__card:focus-visible, .home-menu__close:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }

@media (hover: hover) and (pointer: fine) {
    .home-menu__card:not(.home-menu__service):hover::after,
    .home-menu__service:hover::after { background: linear-gradient(180deg, rgb(0 0 0 / 25%), rgb(195 21 64 / 72%)); }
    .home-menu__card:hover img { transform: scale(1.035); }
    .home-menu__close:hover { background: #b41b3a; }
}

@media (prefers-reduced-motion: reduce) {
    .home-menu__panel, .home-menu__overlay, .home-menu__card img, .home-menu__card::after { transition: none; }
    .home-menu[open] .home-menu__service { animation: none; }
    .home-menu__service::before { transition: none; }
}

.social-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.social-icons a img {
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease;
}

.social-icons a:hover img,
.social-icons a:focus img {
    transform: scale(1.1);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50vw;
    width: 200vw;
    height: 100%;
    background-color: skyblue;
    z-index: -1;
}

.services h1 {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.services-list {
    display: contents;
}

.service {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
}

.service img {
    height: 40px;
    margin-right: 15px;
}

.service span {
    font-size: 18px;
}

.partners-block {
    background-color: skyblue;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.partners-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50vw;
    width: 200vw;
    height: 100%;
    background-color: skyblue;
    z-index: -1;
}

.partners-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.partners-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.partners-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.partners-images img {
    height: 30px;
}

.stars {
    display: flex;
    gap: 5px;
}

.rating-text {
    color: white;
    font-size: 18px;
    text-align: center;
    margin-top: 5px;
}

.partners-right img {
    max-width: 100%;
    height: 300px;
    display: block;
}

.map-block {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.map-block h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.map-image {
    width: 1200px;
    max-width: 100%;
    height: auto;
}

.reviews-block {
    padding: 40px 0;
    overflow: hidden;
}

.reviews-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.review-card {
    flex: 0 0 250px;
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.review-name {
    font-size: 16px;
    font-weight: bold;
}

.review-partner {
    width: 60px;
    height: auto;
    margin-left: auto;
}

.review-stars {
    width: 100px;
    height: auto;
}

.review-text {
    font-size: 14px;
    color: #555;
}

.call-master {
    position: relative;
    display: flex;
    flex-direction: column; /* h2 сверху, остальное ниже */
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
}

.call-master::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50vw;
    width: 200vw;
    height: 100%;
    background-color: #f9f9f9;
    z-index: -1;
}

.call-master h2 {
    font-size: 32px;
    margin: 0 0 20px; /* Отступ снизу для отделения от контента */
    color: #333;
    text-align: center;
}

.call-master-content-wrapper {
    display: flex;
    flex-wrap: nowrap; /* Изображение и форма в одном ряду */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 90%;
}

.call-master-image {
    width: 350px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    flex: 0 0 auto; /* Изображение не растягивается */
}

.call-master-content {
    flex: 1; /* Форма занимает оставшееся пространство */
    text-align: center;
}

.call-master-content p {
    font-size: 16px;
    margin-bottom: 10px;
}

.call-master-content label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.call-master-content input {
    width: 150px;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

.call-master-content input:focus {
    outline: 2px solid skyblue;
}

.call-master-content button {
    padding: 10px 20px;
    background-color: skyblue;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.call-master-content button:hover,
.call-master-content button:focus {
    background-color: deepskyblue;
    outline: 2px solid #fff;
}

.call-master-content .privacy {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

.call-master-content .privacy a {
    color: #777;
    text-decoration: underline;
}

.call-master-content .privacy a:hover,
.call-master-content .privacy a:focus {
    color: deepskyblue;
}

.repair-block {
    position: relative;
    padding: 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.repair-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50vw;
    width: 200vw;
    height: 100%;
    background-color: #f9f9f9;
    z-index: -1;
}

.repair-block h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.repair-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.repair-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    text-align: left;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 20px;
}

.repair-item::after {
    content: "Подробнее";
    position: absolute;
    left: 20px;
    bottom: 10px;
    font-size: 16px;
    color: black;
    text-decoration: underline;
}

.repair-item:hover,
.repair-item:focus {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.repair-item.big {
    grid-column: span 2;
    height: 200px;
}

.repair-item.small {
    grid-column: span 1;
    height: 200px;
}

.repair-item span {
    font-size: 18px;
    font-weight: bold;
    z-index: 1;
}

.image-container {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.repair-item.big .image-container {
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
}

.repair-item.small .image-container {
    width: 200px;
    height: 200px;
    bottom: -10px;
    right: -30px;
}

.repair-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-company {
    position: relative;
    margin-top: 0;
    background-color: skyblue;
    z-index: 1;
}

.about-company::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -50vw;
    width: 200vw;
    height: calc(100% + 40px);
    background-color: skyblue;
    z-index: -1;
}

.about-company h2 {
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.about-content {
    color: white;
    margin: 0 auto;
    font-family: 'Onest', sans-serif;
}

.intro-text {
    font-size: 18px;
    margin-bottom: 30px;
}

.why-trust-us h3 {
    font-size: 24px;
    margin-top: 30px;
}

.section h4 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

.section ul {
    padding-left: 20px;
    font-size: 16px;
}

.call-to-action p {
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
}

.call-to-action a {
    color: white;
    text-decoration: underline;
}

.call-to-action a:hover,
.call-to-action a:focus {
    color: deepskyblue;
}

.popup-call-master {
    display: none;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 20px;
    box-sizing: border-box;
    scrollbar-width: none;
}

.popup-call-master[aria-hidden="false"] {
    display: flex;
}

.popup-call-master::-webkit-scrollbar {
    display: none;
}

.popup-call-master .call-master {
    width: 100%;
    max-width: 500px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

.popup-call-master .call-master::before {
    display: none;
}

.popup-call-master .close-btn {
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 48px;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
}

.popup-call-master .close-btn:focus {
    outline: 2px solid skyblue;
}

.popup-social-icons {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-social-icons a {
    display: inline-block;
}

.popup-social-icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.popup-phone-number {
    color: black;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.popup-phone-number:hover,
.popup-phone-number:focus {
    text-decoration: underline;
}

#phone, #popup-phone {
    border-radius: 20px;
    border: 1px solid #ccc;
    padding: 9px;
    width: 150px;
    font-size: 14px;
}

#phone:focus, #popup-phone:focus {
    outline: 2px solid skyblue;
}

.footer {
    margin-top: 35px;
    text-align: center;
    color: #333;
}

.footer__links {
    margin-bottom: 12px;
}

.footer__contact-link {
    color: #333;
    font-weight: 700;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    .services {
        grid-template-columns: 1fr;
    }
    .partners-content {
        flex-direction: column;
        align-items: center;
    }
    .partners-right img {
        height: auto;
    }
	
    .services h1 {
        font-size: 20px;
    }
	
    .map-block h2 {
        font-size: 20px;
    }

    .repair-block h2 {
        font-size: 20px;
    }
	
	.about-company h2 {
        font-size: 20px;
    }
	
    .call-master {
        flex-direction: column;
        text-align: center;
    }

    .call-master h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .call-master-content-wrapper {
        flex-direction: column; /* Столбец на малых экранах */
        align-items: center;
    }

    .call-master-image {
        width: 100%;
    }
	
    .repair-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .repair-item.big {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .repair-container {
        grid-template-columns: 1fr;
        text-shadow: 
            -1px -1px 0 white,  
            1px -1px 0 white,  
            -1px 1px 0 white,  
            1px 1px 0 white;
    }
    .repair-item {
        height: 100px;
    }
    .repair-item.big {
        grid-column: span 1;
        height: 100px;
    }
    .repair-item.small {
        grid-column: span 1;
        height: 100px;
    }
    .repair-item.big .image-container {
        width: 150px;
        height: 150px;
        bottom: 0;
        right: -50px;
    }
    .repair-item.small .image-container {
        width: 150px;
        height: 150px;
        bottom: 0;
        right: -50px;
    }
}

@media (max-width: 350px) {
    .repair-item span {
        display: block;
        max-width: 14ch;
        overflow-wrap: break-word;
        text-align: left;
    }
}
/* <!-- Стили Хлебных крошек --> */
/* Хлебные крошки — общий контейнер */
.breadcrumbs {
  padding: 12px 20px;
  background: #f8f9fa;           /* светлый фон, можно #fff или #f5f5f5 */
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Список крошек — горизонтальный, без маркеров */
.breadcrumbs-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;               /* на мобильных переносится */
}

/* Каждый элемент крошек */
.breadcrumbs-item {
  display: flex;
  align-items: center;
}

/* Ссылки и текущая страница */
.breadcrumbs-link,
.breadcrumbs-current span {
  display: inline-block;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Hover-эффект только для ссылок */
.breadcrumbs-link:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
  transform: translateY(-1px);   /* лёгкий подъём */
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Текущая страница — выделяем иначе */
.breadcrumbs-current span {
  background: #e9ecef;
  font-weight: 600;
  color: #343a40;
  cursor: default;
}

/* Стрелочки-разделители */
.breadcrumbs-separator {
  margin: 0 4px;
  color: #6c757d;
  font-weight: bold;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .breadcrumbs-link,
  .breadcrumbs-current span {
    padding: 5px 10px;
  }
  
  .breadcrumbs-separator {
    margin: 0 3px;
  }
}

