/* Подключение локальных шрифтов Roboto */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #edf6ff;
    color: #1d1d1d;
}

a {
    text-decoration: none;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Шапка */
.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    padding: 0.75em 1.2em;
    height: 100%;
    display: flex;
    align-items: center;
}

.phone-widget {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    height: 100%;
}

.phone-numbers {
    background-color: #1d3557;
    color: #fff;
    padding: 0.75em 1.2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
}

.phone-numbers a {
    color: #fff;
    text-decoration: none;
    line-height: 1.5;
    transition: opacity 0.2s ease;
}

.phone-icon {
    background-color: #2e4a75;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2em;
    font-size: 1.4rem;
    color: #ffffff;
}

.logo-block {
    font-size: 1.3rem;
    padding: 0.6em 1.2em;
}

.phone-widget {
    flex-direction: row;
    justify-content: space-between;
    width: auto;
}

.phone-numbers {
    flex-direction: row;
    gap: 1rem;
    padding: 0.6em 1em;
    font-size: 0.9rem;
}

.phone-numbers a {
    white-space: nowrap;
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, #edf6ff, #f6fbff);
    background-image: url("../images/plumbing.webp");
    background-size: 400px 400px;
    /* масштаб по вкусу */
    background-repeat: repeat;
}

.hero__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero__text {
    max-width: 550px;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.5s ease;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003566;
    margin-bottom: 1rem;
}

.hero__text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.7rem;
    line-height: 1.5;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn.primary {
    background-color: #1d3557;
    color: #fff;
}

.btn.primary:hover {
    background-color: #16314a;
}

.btn.whatsapp {
    background-color: #25d366;
    color: #000000;
}

.btn.whatsapp:hover {
    background-color: #1ebc5a;
}

.hero__image img {
    max-width: 380px;
    width: 100%;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.05));
}

.seo-atmospheric {
    position: relative;
    background: #eaf4fb;
    padding: 6rem 1rem;
    overflow: hidden;
}

.seo-atmospheric__overlay {
    background-image: url("../images/bg2.webp");
    background-size: 460px;
    opacity: 0.1;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1d3557;
    margin-bottom: 2rem;
    letter-spacing: 0.08em;
}

.seo-atmospheric__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
    gap: 2rem;
}

.seo-atmospheric__text {
    flex: 1 1 540px;
    color: #003566;
}

.seo-atmospheric__text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #003566;
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-atmospheric__text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e1e1e;
    margin-bottom: 1.2rem;
}

.seo-quote {
    font-weight: 500;
    font-size: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #1a1a1a;
    font-style: italic;
    opacity: 0.9;
}

.seo-atmospheric__image {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.seo-atmospheric__image img {
    max-width: 100%;
    height: auto;
}

/* Адаптация */
@media (max-width: 768px) {
    .header__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero__content {
        flex-direction: column;
        text-align: center;
    }

    .hero__image img {
        margin-top: 2rem;
    }
}

/* Секция "Почему выбирают нас" */
.why {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #edf6ff, #f6fbff);
    position: relative;
    overflow: hidden;
}

.why::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: url("../images/bg2.webp") no-repeat center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    color: #003566;
    margin-bottom: 3rem;
    font-weight: 700;
}

.why__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.why__item {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.why__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.why__item i {
    background-color: #1d3557;
    color: #fff;
    padding: 1rem;
    border-radius: 50%;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.why__item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #003566;
    font-weight: 600;
}

.why__item p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

/* прайс */
.price .section-title {
    text-align: center;
    font-size: 2rem;
    color: #003566;
    margin-bottom: 2.5rem;
}

.price__categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.price__tab {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 8px;
    background-color: #e0ecf9;
    color: #003566;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.price__tab:hover,
.price__tab.active {
    background-color: #1d3557;
    color: #fff;
}

.price__tab i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Прайс-лист */
.price {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #edf6ff, #f8fbff);
}

.price__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 860px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.price__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px dashed #d8eafd;
    transition: all 0.3s ease;
    position: relative;
}

.price__item:nth-child(even) {
    background-color: #f9f9f9;
}

.price__item:hover {
    background: linear-gradient(to right, #edf6ff, #ffffff);
    box-shadow: inset 4px 0 0 #1d3557;
}

.service-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: #003566;
}

.service-price {
    font-weight: 600;
    color: #1e7c3e;
    font-size: 1.05rem;
    white-space: nowrap;
}

.price__item.hidden {
    display: none;
}

/* Utility: generic hidden state for controls */
.is-hidden {
    display: none;
}

.price__showmore {
    text-align: center;
    margin-top: 2rem;
}

#showMoreBtn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    background-color: #1d3557;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#showMoreBtn:hover {
    background-color: #16314a;
}

/* Наши работы */
.gallery {
    padding: 4rem 0;
    background-color: #f6fbff;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery__item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery__item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Отзывы */
.reviews {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f7fafd, #edf6ff);
}

.reviews__slider {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.review {
    display: none;
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s ease;
    text-align: left;
}

.review.active {
    display: block;
}

.review__icon {
    font-size: 4rem;
    color: #d8eafd;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.review__text {
    font-size: 1.15rem;
    color: #1d3557;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding-left: 2.5rem;
}

.review__author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2.5rem;
    gap: 0.8rem;
    font-weight: 500;
    color: #003566;
}

.avatar {
    background-color: #1d3557;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews__controls {
    margin-top: 1.5rem;
    text-align: center;
}

.reviews__controls button {
    background-color: #1d3557;
    color: #fff;
    font-size: 1.5rem;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.reviews__controls button:hover {
    background-color: #16314a;
}

.faq-section {
    background: #f6fbff;
    padding: 5rem 1rem;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: #003566;
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d3557;
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 1.6rem;
    }

    .faq-question {
        font-size: 1rem;
    }
}

/* Позвонить ЦТА*/
.cta {
    background: linear-gradient(to right, #1d3557, #457b9d);
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta__buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer {
    background-color: #1d3557;
    padding: 3.5rem 1rem 2rem;
    color: #ffffff;
    font-size: 0.95rem;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer__column {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer__column p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.footer__column i {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.8;
}

.footer__column a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer__column a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__column {
        align-items: center;
    }
}

/* === Header polish (patch) === */
.header {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.header__content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    background: transparent;
    color: #003566;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0;
}

.phone-widget {
    background: #1d3557;
    border-radius: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.phone-numbers {
    display: flex;
    gap: 1.2rem;
    padding: 0.55rem 1.3rem;
    background: transparent;
    font-size: 0.95rem;
}

.phone-numbers a {
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.phone-numbers a:hover {
    opacity: 0.8;
}

.phone-icon {
    background: #21406b;
    padding: 0.55rem 1rem;
    color: #ffffff;
    font-size: 1.2rem;
}

/* Keep temporary CTA hidden (we reverted mobile) */
.header-cta {
    display: none !important;
}

@media (max-width: 640px) {
    .header__content {
        flex-direction: column;
        gap: 0.6rem;
    }

    .phone-widget {
        width: 100%;
        justify-content: space-between;
    }

    .phone-numbers {
        gap: 0.8rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 641px) {

    /* Desktop polish: slightly larger logo, more breathing room */
    .header__content {
        padding: 1rem 1.25rem;
    }

    .logo-block img {
        height: 56px;
        width: auto;
        display: block;
    }

    .phone-widget {
        background: linear-gradient(180deg, #1d3557 0%, #21406b 100%);
        padding: 0.2rem;
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(29, 53, 87, 0.08);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .phone-widget:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(29, 53, 87, 0.12);
    }

    .phone-numbers {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        gap: 1rem;
    }
}

/* === Hero responsive fix === */
.hero__content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero__text {
    flex: 1 1 420px;
}

.hero__image {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
}

.hero__image img {
    width: 100%;
    height: auto;
    max-width: 560px;
}

.hero {
    background-size: 320px 320px;
}

@media (max-width: 1260px) {
    .hero__image img {
        max-width: 480px;
    }
}

@media (max-width: 860px) {
    .hero__content {
        flex-direction: column;
        text-align: center;
    }

    .hero__image {
        order: -1;
    }

    .hero__image img {
        max-width: 320px;
    }
}

/* === Hero viewport fix & arrow === */
:root {
    --header-h: 80px;
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
}

.hero__content {
    flex: 1 1 100%;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.scroll-down .arrow {
    width: 22px;
    height: 22px;
    border-bottom: 3px solid #003566;
    border-right: 3px solid #003566;
    transform: rotate(45deg);
    animation: arrowFlash 2s infinite;
}

.scroll-down .arrow:last-child {
    animation-delay: 0.4s;
}

@keyframes arrowFlash {
    0% {
        opacity: 0;
        transform: rotate(45deg) translateY(-3px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translateY(3px);
    }
}

@media (max-width: 860px) {
    .hero__content {
        flex-direction: column;
        text-align: center;
    }

    .hero__image {
        order: -1;
        justify-content: center;
    }

    .scroll-down {
        bottom: 24px;
    }

}

/* =======================================================
   Сезоные акеции 
   ======================================================= */
/* =======================================================================
   PROMO SECTION  – Glass-card + Gradient-Stroke (v7.4, clamp() fixed)
   Скопируйте целиком в style.css   (заменяет предыдущие стили секции)
   ======================================================================= */

/* ---------- 1. Секция ------------------------------------------------ */
.promo-section {
    background: linear-gradient(135deg, #003566 0%, #4682b4 100%);
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    color: #fff;
    overflow: hidden;
}

/* ---------- 2. Контейнер + заголовок секции -------------------------- */
.promo-container {
    max-width: 1180px;
    margin: 0 auto;
}

.promo-section>.promo-container>.promo-title {
    font-size: clamp(1.9rem, calc(1.5vw + 1.4rem), 2.4rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 clamp(2.5rem, 4vw, 3rem);
    text-wrap: balance;
}

/* ---------- 3. Grid -------------------------------------------------- */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- 4. Стеклянная карточка ---------------------------------- */
.promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: clamp(2.4rem, 3vw, 3rem);
    border-radius: 16px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .20);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    transition: transform .35s, box-shadow .35s;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .30);
}

/* — светящаяся рамка — */
.promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background:
        var(--stroke),
        radial-gradient(120% 120% at 50% -10%, rgba(255, 255, 255, .55), transparent 70%);
    background-blend-mode: overlay;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.promo-card--season {
    --stroke: linear-gradient(135deg, #3793ff 0%, #88d0ff 100%);
}

.promo-card--pension {
    --stroke: linear-gradient(135deg, #34c86d 0%, #97f0b8 100%);
}

/* ---------- 5. Header: заголовок + процент --------------------------- */
.promo-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.promo-head .promo-title {
    font-size: clamp(1.4rem, calc(1vw + 1.1rem), 1.8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #fff;
    text-wrap: balance;
}

.promo-discount {
    font-size: clamp(2.4rem, calc(1vw + 1.9rem), 3rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .25);
    color: var(--accent);
}

/* ---------- 6. Текст ------------------------------------------------- */
.promo-text {
    font-size: clamp(.98rem, calc(0.5vw + .85rem), 1.05rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
    margin: 0;
    hyphens: auto;
    text-wrap: pretty;
}

/* ---------- 7. Кнопка ------------------------------------------------ */
.promo-btn {
    align-self: flex-start;
    margin-top: auto;
    display: inline-block;
    padding: .95rem 2.4rem;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    border-radius: 10px;
    background: var(--btnFlat);
    text-decoration: none;
    box-shadow: 0 8px 14px rgba(0, 0, 0, .22);
    transition: filter .25s, transform .15s, box-shadow .15s;
}

.promo-btn:hover {
    filter: brightness(1.08);
}

.promo-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
}

/* индивидуальные цвета */
.promo-card--season {
    --accent: #ff375f;
    --btnFlat: linear-gradient(90deg, #005bff 0%, #2c7dff 100%);
}

.promo-card--pension {
    --accent: #22e05d;
    --btnFlat: linear-gradient(90deg, #16a34a 0%, #27d86c 100%);
}

/* ---------- 8. Mobile tweaks ---------------------------------------- */
@media (max-width:600px) {
    .promo-grid {
        gap: 1.3rem;
    }

    .promo-card {
        gap: 1rem;
    }

    .promo-btn {
        align-self: center;
    }

    .promo-head .promo-title {
        font-size: 1.6rem;
    }

    .promo-discount {
        font-size: 2.6rem;
    }
}



/* === Hero enhancements === */
.hero__image img {
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(-6px);
    }

    50% {
        transform: translateY(6px);
    }
}

@media (min-width: 1280px) {
    .hero__image img {
        max-width: 640px;
    }
}

.hero-sub {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: #444;
}

.hero__text {
    position: relative;
}

.hero__text::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #1d3557 0%, #25d366 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.services-cards {
    background-color: #f5faff;
    padding: 4rem 1rem;
}

.services-cards__item h3 {
    color: #003566;
    margin: 8px 0 4px;
    font-size: 1.05rem;
    /* фикс. размер – читаемо, не громоздко */
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    /* переносим только по пробелам и «/»   */
    word-break: normal;
    /* НЕ ломаем слово посередине          */
    hyphens: auto;
    /* мягкий перенос, если слово слишком длинное */
}

.services-cards__item p {
    font-size: 0.9rem;
    line-height: 1.2;
}

.services-cards__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.services-cards__item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 1rem;
}

.services-cards__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.services-cards__item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eaeaea;
}

@media (max-width: 540px) {

    /* две колонки, меньше зазор → карточка шире */
    .services-cards .services-cards__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* убираем внутренний padding, чтобы фото растянулось на 100 % ширины */
    .services-cards__item {
        padding: 0;
    }

    .services-cards__item img {
        display: block;
        /* убираем белые «щели» */
        width: 100%;
        height: auto;
    }

    /* заголовок: компактнее + «умные» переносы */
    .services-cards__item h3 {
        padding: 6px 8px 0;
        /* немного внутреннего отступа */
        font-size: clamp(0.8rem, 2.8vw, 0.95rem);
        line-height: 1.25;
        font-weight: 600;
        text-align: center;

        white-space: normal;
        /* переносим только по словам */
        overflow-wrap: break-word;
        /* ломаем слово ТОЛЬКО если оно целиком длиннее строки */
        hyphens: auto;
        /* мягкий дефис-перенос для RU, если нужно */
    }

    .services-cards__item p {
        padding: 0 8px 9px;
        font-size: 0.90rem;
    }

    .small_f {
        font-size: 0.70rem;
    }
}


/* === OUR WORKS carousel ============================================= */
.works {
    padding: 60px 0;
}

.works-carousel {
    position: relative;
}

.works-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.works-track {
    display: flex;
    flex-wrap: nowrap;
    /* <-- ДОБАВИЛИ, чтобы никогда не переносилось */
    transition: transform .4s ease;
}

.works-slide {
    flex: 0 0 100%;
    max-width: 100%;
    object-fit: cover;
}

.works-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}

.works-btn:hover {
    background: rgba(0, 0, 0, .7);
}

.works-btn.prev {
    left: 10px;
}

.works-btn.next {
    right: 10px;
}

@media (min-width: 768px) {

    /* 3-колоночный режим на десктопе */
    .works-slide {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* ========== ТЕПЛОВИЗИОННАЯ ДИАГНОСТИКА ========== */
.thermal-vision-promo {
    background: linear-gradient(135deg, #f5faff 0%, #edf6ff 50%, #f8fbff 100%);
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.thermal-vision-promo::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(29, 53, 87, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.thermal-vision-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ЛЕВАЯ ЧАСТЬ: ИЗОБРАЖЕНИЕ */
.thermal-vision-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.thermal-vision-image-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.thermal-vision-image-box img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(29, 53, 87, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thermal-vision-image-box:hover img {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(29, 53, 87, 0.2);
}

.thermal-vision-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d3557;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(29, 53, 87, 0.2);
    white-space: nowrap;
}

/* ПРАВАЯ ЧАСТЬ: КОНТЕНТ */
.thermal-vision-content-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.thermal-vision-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: fit-content;
}

.thermal-vision-label i {
    font-size: 1.1rem;
}

.thermal-vision-content-section h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1d3557;
    margin: 0;
    line-height: 1.2;
}

.thermal-vision-lead {
    font-size: 1.2rem;
    color: #003566;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* ОСНОВНЫЕ ПРЕИМУЩЕСТВА */
.thermal-vision-main-benefits {
    display: grid;
    gap: 1.2rem;
    margin: 1rem 0;
}

.benefit-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #ff6b35;
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.08);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    box-shadow: 0 8px 20px rgba(29, 53, 87, 0.12);
    transform: translateX(4px);
}

.benefit-icon {
    font-size: 2.4rem;
    line-height: 1;
    text-align: center;
}

.benefit-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d3557;
    margin: 0 0 0.4rem 0;
}

.benefit-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ДОПОЛНИТЕЛЬНЫЕ ВОЗМОЖНОСТИ */
.thermal-vision-extra {
    margin: 1.5rem 0;
}

.extra-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d3557;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thermal-vision-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.thermal-vision-benefits li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.thermal-vision-benefits i {
    color: #ff6b35;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ЦЕНА И CTA */
.thermal-vision-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d8eafd;
}

.thermal-vision-price {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.price-label {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ff6b35;
}

.price-desc {
    font-size: 0.85rem;
    color: #999;
}

.thermal-vision-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.thermal-btn {
    flex: 1;
    padding: 0.95rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
}

.thermal-btn.primary {
    background: linear-gradient(135deg, #1d3557 0%, #2e4a75 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(29, 53, 87, 0.25);
}

.thermal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(29, 53, 87, 0.35);
}

.thermal-btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.25);
}

.thermal-btn.secondary {
    background: white;
    color: #1d3557;
    border: 2px solid #1d3557;
    box-shadow: none;
}

.thermal-btn.secondary:hover {
    background: #f0f8ff;
}

.thermal-btn.secondary:active {
    background: #e0ecf9;
}

.thermal-vision-note {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.thermal-vision-note i {
    color: #ff6b35;
    font-size: 1rem;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 1024px) {
    .thermal-vision-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .thermal-vision-image-section {
        order: -1;
    }

    .thermal-vision-content-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .thermal-vision-promo {
        padding: 2.5rem 1rem 3rem;
    }

    .thermal-vision-wrapper {
        gap: 1.5rem;
    }

    .thermal-vision-image-box {
        max-width: 100%;
    }

    .thermal-vision-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
        bottom: -12px;
    }

    .thermal-vision-content-section h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .thermal-vision-lead {
        font-size: 1.05rem;
    }

    .benefit-item {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .benefit-icon {
        font-size: 2rem;
    }

    .benefit-item h4 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.9rem;
    }

    .thermal-vision-benefits li {
        font-size: 0.9rem;
    }

    .price-value {
        font-size: 1.8rem;
    }

    .thermal-vision-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .thermal-btn {
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
    }

    .thermal-vision-note {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .thermal-vision-promo {
        padding: 2rem 1rem;
    }

    .thermal-vision-promo::before {
        width: 300px;
        height: 300px;
        top: -50px;
        right: -50px;
    }

    .thermal-vision-content-section h2 {
        font-size: 1.5rem;
    }

    .thermal-vision-lead {
        font-size: 0.95rem;
    }

    .thermal-vision-label {
        font-size: 0.8rem;
    }

    .thermal-vision-main-benefits {
        gap: 1rem;
    }

    .benefit-item {
        grid-template-columns: 45px 1fr;
        gap: 0.8rem;
        padding: 0.9rem;
        border-left-width: 3px;
    }

    .benefit-icon {
        font-size: 1.8rem;
    }

    .benefit-item h4 {
        font-size: 0.95rem;
    }

    .benefit-item p {
        font-size: 0.85rem;
    }

    .extra-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .thermal-vision-benefits li {
        font-size: 0.85rem;
        gap: 0.6rem;
    }

    .thermal-vision-footer {
        padding-top: 1rem;
    }

    .thermal-vision-price {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .price-value {
        font-size: 1.6rem;
    }

    .price-desc {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: -0.3rem;
    }

    .thermal-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .thermal-vision-note {
        font-size: 0.75rem;
    }
}