/* ==========================================================================
   Главная: «водная» тема, слайдеры проектов, услуги (4 шт.), блок «О нас».
   Подключается из templates/main.tpl и templates/services.tpl.
   Шрифты и кнопки (.btn__yellow, .home-first__btn) берутся из style.css.
   ========================================================================== */

:root {
    --water-900: #05304a;
    --water-700: #0b5d82;
    --water-500: #1c93b8;
    --water-300: #6fd0e6;
    --water-100: #e8f7fb;
    --site-bg: #f2fafd;
    /* кнопки: синие вместо жёлтых; на тёмных фонах светло-голубая */
    --btn-bg: linear-gradient(135deg, #0a6a96 0%, #1c93b8 100%);
    --btn-bg-hover: linear-gradient(135deg, #095a80 0%, #1783a6 100%);
    --btn-light: linear-gradient(135deg, #9be8f8 0%, #45c5e6 100%);
    --btn-shadow: 0 0.4rem 1.4rem rgba(11, 93, 130, 0.35);
    --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V62 C1200,112 960,20 720,62 C480,104 240,24 0,70 Z'/%3E%3C/svg%3E");
}

/* ---------- Общий фон сайта: вода ----------
   Подключается на всех страницах (см. base.tpl). Фон лежит на фиксированном
   слое позади контента: светлая вода, блики по углам и едва заметная рябь. */

body {
    background-color: var(--site-bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60rem 42rem at 8% 0%, rgba(111, 208, 230, 0.28), transparent 70%),
        radial-gradient(52rem 42rem at 100% 38%, rgba(28, 147, 184, 0.14), transparent 70%),
        radial-gradient(60rem 42rem at 0% 100%, rgba(111, 208, 230, 0.24), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='64' viewBox='0 0 120 64'%3E%3Cpath d='M0 16 Q30 0 60 16 T120 16' fill='none' stroke='%231c93b8' stroke-opacity='.14' stroke-width='1.4'/%3E%3Cpath d='M-30 48 Q0 32 30 48 T90 48 T150 48' fill='none' stroke='%231c93b8' stroke-opacity='.11' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / 12rem 6.4rem repeat;
}

/* ---------- 1. Первый экран ---------- */

.water-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 10rem 0 18rem;
    /* нижний край первого экрана вырезан волной, за ним виден фон сайта */
    -webkit-mask-image: linear-gradient(#000, #000), var(--wave-mask);
    mask-image: linear-gradient(#000, #000), var(--wave-mask);
    -webkit-mask-size: 100% calc(100% - 11.9rem), 100% 12rem;
    mask-size: 100% calc(100% - 11.9rem), 100% 12rem;
    -webkit-mask-position: top, bottom;
    mask-position: top, bottom;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(28, 147, 184, 0.9) 0%, rgba(28, 147, 184, 0) 60%),
        linear-gradient(180deg, var(--water-900) 0%, var(--water-700) 60%, var(--water-500) 100%);
}

/* Чтобы поставить фото бассейна/СПА: загрузите assets/img/bg/water-hero.jpg
   и добавьте секции класс water-hero--photo */
.water-hero--photo {
    background:
        linear-gradient(180deg, rgba(5, 48, 74, 0.78) 0%, rgba(11, 93, 130, 0.62) 100%),
        url(../img/bg/water-hero.jpg) center / cover no-repeat;
}

/* Блики света на воде */
.water-hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 30% 40%, rgba(255, 255, 255, 0.14), transparent 70%),
        radial-gradient(closest-side at 70% 30%, rgba(255, 255, 255, 0.10), transparent 70%),
        radial-gradient(closest-side at 55% 75%, rgba(255, 255, 255, 0.08), transparent 70%);
    animation: water-caustics 16s ease-in-out infinite alternate;
}

@keyframes water-caustics {
    to {
        transform: translate3d(4%, 3%, 0) scale(1.08);
    }
}

.water-hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.water-hero__eyebrow {
    display: inline-block;
    margin-bottom: 2.4rem;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5rem;
    font-family: "Gilroy", "Montserrat", sans-serif;
    font-size: 1.6rem;
    line-height: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
}

.water-hero__title {
    margin-bottom: 2.4rem;
    font-family: "Montserrat", sans-serif;
    font-size: 5.8rem;
    font-weight: 600;
    line-height: 6.6rem;
    text-shadow: 0 0.2rem 2rem rgba(5, 48, 74, 0.45);
}

.water-hero__subtitle {
    max-width: 72rem;
    margin: 0 auto 4rem;
    font-family: "Gilroy", "Roboto", sans-serif;
    font-size: 2.2rem;
    line-height: 3.2rem;
    opacity: 0.95;
}

.water-hero__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.water-hero__ghost {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    padding: calc(2rem - 2px) calc(4rem - 2px);
    transition: background 0.25s ease, color 0.25s ease;
}

.water-hero__ghost:hover {
    background: #fff;
    color: var(--water-700);
}

/* Пузырьки */
.water-bubble {
    position: absolute;
    bottom: -3rem;
    left: var(--x);
    z-index: 1;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 65%);
    opacity: 0;
    animation: water-bubble var(--d) ease-in infinite;
    animation-delay: var(--t);
    pointer-events: none;
}

@keyframes water-bubble {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    100% {
        transform: translate3d(2rem, -48rem, 0);
        opacity: 0;
    }
}

/* Волны внизу первого экрана. Каждый слой в два раза шире экрана,
   путь повторяется через половину ширины, поэтому цикл бесшовный. */
.water-waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 2;
    height: 12rem;
    pointer-events: none;
}

.water-waves__layer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 100%;
    animation: water-wave 30s linear infinite;
}

.water-waves__layer path {
    fill: #fff;
}

.water-waves__layer--1 {
    opacity: 0.25;
    animation-duration: 38s;
}

.water-waves__layer--2 {
    opacity: 0.5;
    animation-duration: 26s;
    animation-direction: reverse;
}

@keyframes water-wave {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ---------- 2–3. Слайдеры проектов ---------- */

.projects-slider {
    padding: 6rem 0 2rem;
}

.projects-slider--spa {
    padding-top: 2rem;
}

.projects-slider__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    margin-bottom: 3.5rem;
}

.projects-slider__title {
    position: relative;
    padding-bottom: 1.6rem;
    color: #000;
    font-family: "Montserrat", sans-serif;
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 4.4rem;
}

/* Волнистое подчёркивание заголовков */
.projects-slider__title::after,
.home-services__title::after,
.home-about__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 9.6rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5 Q6 0 12 5 T24 5 T36 5 T48 5' fill='none' stroke='%231c93b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 4.8rem 1rem;
}

.projects-slider__all {
    color: var(--water-700);
    font-family: "Gilroy", "Roboto", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.2rem;
    border-bottom: 2px solid var(--water-300);
    padding-bottom: 0.3rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.projects-slider__all:hover {
    color: var(--water-500);
    border-color: var(--water-500);
}

.projects-slider__wrap {
    position: relative;
}

/* Лента: карточки берутся как есть из chunks/catalog/tpl.tpl,
   поэтому стилизуем прямых потомков, не привязываясь к разметке карточки. */
.projects-slider .projects-slider__track {
    display: flex;
    gap: 2.4rem;
    overflow-x: auto;
    padding: 0.5rem 0.2rem 1.6rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.projects-slider .projects-slider__track::-webkit-scrollbar {
    display: none;
}

.projects-slider .projects-slider__track > * {
    flex: 0 0 calc((100% - 4.8rem) / 3);
    max-width: none;
    min-width: 0;
    scroll-snap-align: start;
}

.projects-slider .projects-slider__track img {
    max-width: 100%;
    height: auto;
}

.projects-slider__arrow {
    position: absolute;
    top: 12rem;
    z-index: 3;
    width: 5rem;
    height: 5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20' viewBox='0 0 12 20'%3E%3Cpath d='M2 2l8 8-8 8' fill='none' stroke='%230b5d82' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.2rem 2rem no-repeat;
    box-shadow: 0 0.4rem 1.6rem rgba(5, 48, 74, 0.25);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.projects-slider__arrow:hover:not(:disabled) {
    transform: scale(1.08);
}

.projects-slider__arrow--prev {
    left: -2.4rem;
    transform: scaleX(-1);
}

.projects-slider__arrow--prev:hover:not(:disabled) {
    transform: scaleX(-1) scale(1.08);
}

.projects-slider__arrow--next {
    right: -2.4rem;
}

.projects-slider__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

/* Если карточек мало и всё помещается, стрелки не нужны */
.projects-slider__wrap.is-static .projects-slider__arrow {
    display: none;
}

/* ---------- 4. Услуги: сетка карточек ---------- */

.home-services__title {
    position: relative;
    padding-bottom: 1.8rem;
    margin-bottom: 4.5rem;
}

.home-services__title::after {
    left: 50%;
    margin-left: -4.8rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.4rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.8rem;
    background: #fff;
    color: #000;
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-0.6rem);
    box-shadow: 0 1.2rem 3rem rgba(5, 48, 74, 0.18);
}

.service-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--water-100);
}

.service-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 48, 74, 0.6) 100%);
}

.service-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__img {
    transform: scale(1.06);
}

.service-card__num {
    position: absolute;
    left: 1.8rem;
    bottom: 1.4rem;
    z-index: 1;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 0.2rem 1rem rgba(5, 48, 74, 0.5);
}

.service-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 2rem 2.4rem;
}

.service-card__title {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.6rem;
    overflow-wrap: anywhere;
}

.service-card__text {
    display: block;
    color: #3b4a54;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    line-height: 2.2rem;
}

.service-card__more {
    display: block;
    margin-top: auto;
    padding-top: 0.8rem;
    color: var(--water-700);
    font-family: "Gilroy", "Roboto", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2rem;
}

.service-card__more::after {
    content: "\2192";
    margin-left: 0.6rem;
    transition: margin-left 0.2s ease;
}

.service-card:hover .service-card__more::after {
    margin-left: 1.2rem;
}

/* ---------- 5. О нас ---------- */

.home-about {
    margin-top: 7rem;
    padding: 8rem 0;
    color: #fff;
    background: linear-gradient(135deg, var(--water-900) 0%, var(--water-700) 100%);
}

.home-about__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5rem;
}

.home-about__text {
    flex: 1 1 55%;
}

.home-about__title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1.6rem;
    font-family: "Montserrat", sans-serif;
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 4.4rem;
}

.home-about__title::after {
    filter: brightness(1.6);
}

.home-about__text p {
    margin-bottom: 1.8rem;
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
    line-height: 2.8rem;
}

.home-about__text .home-first__btn {
    margin-top: 1.4rem;
}

.home-about__facts {
    flex: 1 1 40%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-about__fact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 2.4rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.09);
}

.home-about__fact strong {
    color: var(--water-300);
    font-family: "Montserrat", sans-serif;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 3rem;
}

.home-about__fact span {
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    line-height: 2.2rem;
}

/* ---------- Каталог: категории над списком проектов ---------- */

.catalog-tag__list {
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    gap: 1.2rem;
}

.catalog-tag__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: auto;
    min-height: 0;
    padding: 1.2rem 2.4rem;
    border: 1px solid rgba(28, 147, 184, 0.35);
    border-radius: 5rem;
    background: #fff;
    color: var(--water-700);
    font-family: "Gilroy", "Roboto", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 2rem;
    box-shadow: 0 0.2rem 0.8rem rgba(5, 48, 74, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.catalog-tag__item:hover {
    opacity: 1;
    border-color: var(--water-500);
    background: var(--water-100);
}

.catalog-tag__item._active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--water-700), var(--water-500));
    color: #fff;
}

/* ---------- Страница «О компании» ---------- */

.about-page__section {
    padding: 1.2rem 0;
}

.about-page__card {
    width: calc(100% - 3rem);
    max-width: 1120px;
    margin: 0 auto;
    padding: 3.6rem 4rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 0.4rem 2.4rem rgba(5, 48, 74, 0.08);
}

.about-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.about-hero__lead {
    margin-bottom: 1.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 3.4rem;
}

.about-hero__text {
    margin: 0;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
    line-height: 2.9rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.about-stat {
    padding: 2rem 1.8rem;
    border-radius: 1.6rem;
    background: var(--water-100);
}

.about-stat strong {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--water-700);
    font-family: "Montserrat", sans-serif;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 3rem;
}

.about-stat span {
    display: block;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    line-height: 2.2rem;
}

.about-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-tile {
    position: relative;
    padding: 2.4rem 2.2rem 2.4rem 2.2rem;
    border-radius: 1.6rem;
    background: var(--water-100);
}

.about-tile__num {
    display: block;
    margin-bottom: 1rem;
    color: var(--water-500);
    font-family: "Montserrat", sans-serif;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 3rem;
}

.about-tile strong {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 2.5rem;
}

.about-tile span {
    display: block;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
}

.about-final {
    width: calc(100% - 3rem);
    max-width: 1120px;
    margin: 1.2rem auto;
    padding: 2rem 3rem;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, var(--water-700), var(--water-500));
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.18);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 3rem;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ---------- Страница «3D-визуализация» ---------- */

.viz-page__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    padding: 0;
    list-style: none;
}

.viz-page__list li {
    padding: 2.4rem 2.6rem;
    border-radius: 1.6rem;
    background: #fff;
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.08);
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
    line-height: 2.7rem;
}

.viz-page__list strong {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--water-700);
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.6rem;
}

/* ---------- Адаптив ---------- */

@media (max-width: 979px) {
    .water-hero {
        padding: 8rem 0 15rem;
    }

    .water-hero__title {
        font-size: 4.4rem;
        line-height: 5.2rem;
    }

    .projects-slider .projects-slider__track > * {
        flex-basis: calc((100% - 2.4rem) / 2);
    }

    .projects-slider__arrow--prev {
        left: -1rem;
    }

    .projects-slider__arrow--next {
        right: -1rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-about__row {
        flex-direction: column;
    }

    .home-about__facts {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .water-hero {
        padding: 6rem 0 12rem;
    }

    .water-hero__title {
        font-size: 3.4rem;
        line-height: 4.2rem;
    }

    .water-hero__subtitle {
        font-size: 1.8rem;
        line-height: 2.7rem;
    }

    .water-hero__buttons .home-first__btn {
        width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .water-waves {
        height: 8rem;
    }

    .projects-slider {
        padding: 5rem 0 3rem;
    }

    .projects-slider__title,
    .home-services__title,
    .home-about__title {
        font-size: 2.8rem;
        line-height: 3.4rem;
    }

    .projects-slider .projects-slider__track > * {
        flex-basis: 86%;
    }

    /* на телефоне листаем пальцем */
    .projects-slider__arrow {
        display: none;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .home-about {
        padding: 5rem 0;
    }

    .home-about__facts {
        grid-template-columns: 1fr;
    }

    .viz-page__list,
    .viz-page__list--three,
    .viz-page__steps {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .water-hero::before,
    .water-bubble,
    .water-waves__layer {
        animation: none;
    }

    .projects-slider .projects-slider__track {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Страницы услуг и общие блоки контента
   (page.tpl, proektirovanie.tpl, raschet-proektirovanie.tpl, каталог).
   Один набор правил для всех: заголовки с волной, белые карточки на водном
   фоне, списки с галочками, единый блок «Есть вопросы?».
   ========================================================================== */

/* ---------- Хлебные крошки и заголовок страницы ---------- */

.category-page__crumbs {
    background: transparent;
}

.category-crumbs__title {
    position: relative;
    padding-bottom: 1.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

/* Волнистое подчёркивание: слева ... */
.category-crumbs__title::after,
.title-block__intro::after,
.material-block__title::after,
.home-portfolio__title::after,
/* ... и по центру */
.proekt-services__title::after,
.proekt-step__title::after,
.proekt-price__title::after,
.proekt-dopusl__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 9.6rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5 Q6 0 12 5 T24 5 T36 5 T48 5' fill='none' stroke='%231c93b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 4.8rem 1rem;
}

.proekt-services__title::after,
.proekt-step__title::after,
.proekt-price__title::after,
.proekt-dopusl__title::after {
    left: 50%;
    margin-left: -4.8rem;
}

/* ---------- Секции без своих фонов: виден общий водный фон ---------- */

.home-page__catalog {
    background: transparent;
}

.home-page__portfolio {
    background: none;
}

/* ---------- Секции контента как карточки ---------- */

.catalog-page__title,
.catalog-page__material {
    padding: 1.2rem 0;
}

.bg-01 {
    background: transparent;
}

.catalog-title__block .title-block__container,
.catalog-material__block .material-block__container,
.proekt-content__block .proekt-content__container {
    width: calc(100% - 3rem);
    max-width: 1120px;
    margin: 0 auto;
    padding: 3.4rem 4rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 0.4rem 2.4rem rgba(5, 48, 74, 0.08);
}

.bg-01 .material-block__container,
.bg-01 .proekt-content__container {
    background: linear-gradient(135deg, #fff 0%, var(--water-100) 100%);
}

/* контейнер, где лежит только плашка акции, карточкой не оформляем */
.catalog-title__block .title-block__container:has(> .promo-banner) {
    padding: 0;
    background: none;
    box-shadow: none;
}

/* плашка акции внутри карточки: на всю ширину текста, отдельной карточкой не становится */
.title-block__container .title-block__container:has(> .promo-banner) {
    width: auto;
    max-width: none;
    margin: 0 0 2.4rem;
    padding: 0;
    background: none;
    box-shadow: none;
}

.title-block__container .title-block__container > .promo-banner {
    margin: 0;
}

/* ---------- Заголовки и текст внутри карточек ---------- */

.title-block__intro {
    position: relative;
    margin-bottom: 2.4rem;
    padding-bottom: 1.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 4rem;
    letter-spacing: 0;
    text-align: left;
}

.title-block__lead {
    margin-bottom: 1.6rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.9rem;
    line-height: 3rem;
    text-align: left;
}

.title-block__lead--strong {
    color: var(--water-700);
    font-weight: 600;
}

.title-block__assets {
    margin-bottom: 1.6rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
    line-height: 2.8rem;
    letter-spacing: 0;
    text-align: left;
}

.material-block__title {
    position: relative;
    margin-bottom: 2.4rem;
    padding-bottom: 1.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 3.6rem;
    letter-spacing: 0;
    text-align: left;
}

.item-material__title {
    margin: 0 0 1.2rem;
    color: var(--water-700);
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.6rem;
    text-align: left;
}

.material-block__description,
.item-material__description {
    padding: 0;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    line-height: 2.8rem;
    text-align: left;
}

.catalog-material__block p,
.material-block__description p {
    margin-bottom: 1.4rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    line-height: 2.8rem;
    text-align: left;
}

.align-justify {
    text-align: left;
}

/* маркированные списки внутри текста */
.catalog-material__block ul {
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;
}

.catalog-material__block li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 2.8rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    line-height: 2.8rem;
}

.catalog-material__block li::before {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--water-500);
}

/* ---------- Списки преимуществ с галочками ---------- */

.title-block__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 3rem;
    margin-top: 1.6rem;
    text-align: left;
}

.title-block__item {
    position: relative;
    display: block;
    margin-bottom: 0;
    padding-left: 3.8rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
    line-height: 2.6rem;
}

.title-block__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='13' fill='%23e8f7fb'/%3E%3Cpath d='M7.5 13.5l3.7 3.7 7.3-7.6' fill='none' stroke='%231c93b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.title-block__container > .title-block__item {
    margin-bottom: 1.2rem;
}

.title-block__list + .title-block__assets {
    margin-top: 2rem;
}

/* абзацы текста, размеченные тем же классом, галочек не получают */
.title-block__assets .title-block__item {
    display: block;
    margin-bottom: 1.4rem;
    padding-left: 0;
}

.title-block__assets .title-block__item::before {
    display: none;
}

/* ---------- Картинки в материалах и галерея ---------- */

.material-block__row {
    gap: 2.4rem;
    align-items: flex-start;
    margin-bottom: 2.4rem;
}

.material-block__container > :last-child {
    margin-bottom: 0;
}

.material-block__item {
    flex: 0 1 calc(50% - 1.2rem);
}

.catalog-material__block img,
.item-material__img img,
.home-portfolio__link img {
    border-radius: 1.4rem;
}

.item-material__img img {
    display: block;
    width: 100%;
    height: auto;
}

.home-portfolio__title {
    position: relative;
    padding-bottom: 1.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

/* ---------- Плашка акции ---------- */

.promo-banner,
.title-block__assets.animate__pulse {
    margin: 1.2rem 0;
    padding: 1.8rem 3rem;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, var(--water-700), var(--water-500));
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.18);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.8rem;
    text-align: center;
}

/* плашка, которая приходит из чанка фильтра со встроенными стилями */
.title-block__assets.animate__pulse {
    animation: none !important;
    color: #fff !important;
    font-size: 2rem !important;
}

/* ---------- Кнопки-ссылки на странице СПА ---------- */

.page-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 1.6rem 0;
}

.banner-btn {
    display: inline-block;
    padding: 1.4rem 2.8rem;
    border-radius: 5rem;
    background: var(--btn-bg);
    box-shadow: var(--btn-shadow);
    color: #fff;
    font-family: "Gilroy", "Roboto", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-btn:hover {
    background: var(--btn-bg-hover);
    color: #fff;
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 1.8rem rgba(11, 93, 130, 0.45);
}

/* ---------- Нижний блок: текст ресурса и «Есть вопросы?» ---------- */

.product-page__characteristic {
    padding: 1rem 0 2rem;
    background: transparent;
}

.home-page__contact {
    padding-top: 3rem;
}

.product-description__col p {
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    line-height: 2.8rem;
    text-align: left;
}

.product-description__col ul li {
    border-left-color: var(--water-500);
    font-family: "Roboto", sans-serif;
}

.page-item__callback {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title button"
        "subtitle button";
    align-items: center;
    column-gap: 4rem;
    margin-top: 2.4rem;
    padding: 3.6rem 4rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--water-900) 0%, var(--water-700) 100%);
    color: #fff;
}

.page-callback__title {
    grid-area: title;
    margin-bottom: 1rem;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 3.4rem;
}

.page-callback__subtitle {
    grid-area: subtitle;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.8rem;
    line-height: 2.8rem;
}

.page-callback__link {
    color: #9be8f8;
    font-size: inherit;
    font-weight: 700;
}

.page-callback__button {
    grid-area: button;
}

.page-callback__send,
.page-callback__send.btn__green {
    display: inline-block;
    padding: 1.6rem 3.2rem;
    border: 0;
    border-radius: 5rem;
    background: var(--btn-light);
    color: var(--water-900);
    font-family: "Gilroy", "Roboto", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2rem;
}

.page-callback__send:hover {
    background: var(--btn-light);
    color: var(--water-900);
    opacity: 0.9;
}

.page-callback__icon {
    display: none;
}

/* ---------- Страницы «Проектирование» и «Расчёт» ---------- */

.proekt-content__row {
    align-items: flex-start;
    gap: 4rem;
}

.proekt-item__left {
    flex: 1 1 58%;
}

.proekt-item__right {
    flex: 0 1 38%;
    position: sticky;
    top: 2rem;
}

.proekt-item__right img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.8rem;
    box-shadow: 0 0.6rem 2.4rem rgba(5, 48, 74, 0.16);
}

.proekt-price__row {
    gap: 2.4rem;
}

.proekt-price__item {
    flex: 1 1 0;
    min-width: 0;
    padding: 3rem 2.8rem;
}

.proekt-price__item li {
    position: relative;
    margin-bottom: 0.9rem;
    padding-left: 3.4rem;
    line-height: 2.2rem;
}

.proekt-price__item li::before {
    position: absolute;
    left: 0;
    top: -0.2rem;
    margin: 0;
}

.proekt-page__step,
.proekt-page__price,
.proekt-page__dopusl,
.proekt-page__services {
    background: transparent;
}

.proekt-services__title,
.proekt-step__title,
.proekt-price__title,
.proekt-dopusl__title {
    position: relative;
    padding-bottom: 1.8rem;
    margin-bottom: 3.6rem;
    color: var(--water-900);
}

.proekt-content__item p,
.proekt-content__item li {
    text-align: left;
    font-style: normal;
    font-size: 1.8rem;
    line-height: 2.8rem;
    color: #26333c;
}

.proekt-content__item li {
    margin-bottom: 1rem;
}

.services-proekt__img {
    border: 0;
    border-radius: 1.8rem;
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.14);
}

.proekt-price__item {
    border: 1px solid rgba(28, 147, 184, 0.28);
    border-radius: 1.8rem;
    background: #fff;
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.08);
}

.proekt-price__item p {
    text-align: left;
}

.proekt-price__item li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='13' fill='%23e8f7fb'/%3E%3Cpath d='M7.5 13.5l3.7 3.7 7.3-7.6' fill='none' stroke='%231c93b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.proekt-price__title.proekt-price__note {
    margin: 2rem 0 0;
    padding: 1.6rem 2rem;
    border-radius: 1.4rem;
    background: var(--water-100);
    color: var(--water-700);
    font-size: 1.8rem;
    line-height: 2.6rem;
}

.proekt-price__title.proekt-price__note::after {
    display: none;
}

/* ---------- Слайдер фотографий на странице услуги ---------- */

.mySwiper {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 2.4rem rgba(5, 48, 74, 0.12);
}

/* ---------- Каталог: плашка, категории, поиск, фильтр ---------- */
/* Стили рассчитаны и на новую разметку (chunks/catalog/filter/tplOuter.tpl из архива),
   и на старую, где форма поиска лежит внутри списка категорий. */

.home-page__catalog:has(.msearch2) {
    padding: 0.5rem 0 6rem;
}

/* плашка акции: без лишнего внутреннего отступа контейнера */
.home-catalog__container > .title-block__container {
    max-width: none;
    margin-bottom: 2rem;
    padding: 0;
}

.home-catalog__container .promo-banner,
.home-catalog__container .title-block__assets.animate__pulse {
    margin: 0;
}

/* категории, потом поиск: друг под другом */
.catalog-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
    flex: 0 1 100%;
    margin-bottom: 1.6rem;
}

.home-catalog__container .home-catalog__tag {
    flex: 0 1 100%;
    margin-bottom: 1.6rem;
}

.catalog-toolbar .home-catalog__tag {
    margin-bottom: 0;
}

.home-catalog__container .catalog-tag__list {
    flex-wrap: wrap;
}

.home-catalog__container .search-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.6rem 0.6rem 0.6rem 2.4rem;
    border: 1px solid rgba(28, 147, 184, 0.35);
    border-radius: 5rem;
    background: #fff;
    box-shadow: 0 0.2rem 0.8rem rgba(5, 48, 74, 0.06);
}

/* в старой разметке форма лежит внутри списка категорий: переносим её на новую строку */
.home-catalog__container .catalog-tag__list > .search-form {
    flex: 1 1 100%;
    order: 10;
    margin-top: 0.4rem;
}

.home-catalog__container .search-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 0;
    border: 0;
    background: transparent;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    outline: none;
}

.home-catalog__container .search-form .banner-btn {
    border: 0;
    cursor: pointer;
    padding: 1.2rem 3rem;
    background: var(--btn-bg);
    color: #fff;
}

.home-catalog__container .search-form .banner-btn:hover {
    background: var(--btn-bg-hover);
    color: #fff;
}

.home-catalog__container .home-catalog__filters {
    margin-bottom: 3rem;
}

/* ---------- Каталог: фильтр ---------- */

.home-catalog__filters {
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 0.4rem 2.4rem rgba(5, 48, 74, 0.08);
}

.filter_title {
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
}

/* пять групп фильтра помещаются в одну строку */
.catalog-filter {
    gap: 2rem 2.4rem;
}

.catalog-filter fieldset {
    flex: 1 1 16%;
    min-width: 16rem;
}

.home-catalog__filters input[type="checkbox"] {
    accent-color: var(--water-500);
}

.viz-page__list--three {
    grid-template-columns: repeat(3, 1fr);
}

.material-block__container .viz-page__list {
    margin: 0;
}

.material-block__container .viz-page__list li {
    margin-bottom: 0;
    padding: 2.4rem 2.6rem;
    background: var(--water-100);
    box-shadow: none;
}

.material-block__container .viz-page__list li::before {
    display: none;
}

.viz-page__steps + .viz-page__text {
    margin-top: 2.4rem;
}

.viz-page__steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: viz-step;
}

.viz-page__steps li {
    position: relative;
    padding: 6rem 1.6rem 2rem;
    border-radius: 1.6rem;
    background: var(--water-100);
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    line-height: 2.4rem;
    text-align: center;
    counter-increment: viz-step;
}

.viz-page__steps li::before {
    content: counter(viz-step);
    position: absolute;
    top: 1.4rem;
    left: 50%;
    width: 3.6rem;
    height: 3.6rem;
    margin-left: -1.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--water-700), var(--water-500));
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 3.6rem;
}

.viz-page__text {
    margin-bottom: 1.6rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
    line-height: 2.9rem;
}

/* ---------- Адаптив ---------- */

@media (max-width: 979px) {
    .about-hero {
        grid-template-columns: 1fr;
    }

    .about-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .viz-page__list--three,
    .viz-page__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proekt-content__row {
        flex-direction: column;
    }

    .proekt-item__right {
        flex: none;
        position: static;
        width: 100%;
        max-width: 48rem;
    }

    .proekt-price__row {
        flex-direction: column;
    }

    .catalog-title__block .title-block__container,
    .catalog-material__block .material-block__container,
    .proekt-content__block .proekt-content__container {
        padding: 2.6rem 2.2rem;
    }

    .title-block__list {
        grid-template-columns: 1fr;
    }

    .material-block__item {
        flex-basis: 100%;
    }

    .page-item__callback {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "subtitle"
            "button";
        row-gap: 1.4rem;
        padding: 2.8rem 2.4rem;
    }
}

@media (max-width: 600px) {
    .about-page__card {
        padding: 2.4rem 2rem;
    }

    .about-stats,
    .about-tiles {
        grid-template-columns: 1fr;
    }

    .about-hero__lead {
        font-size: 1.9rem;
        line-height: 2.9rem;
    }

    .home-catalog__container .search-form .banner-btn {
        padding: 1.2rem 2rem;
    }

    .title-block__intro {
        font-size: 2.6rem;
        line-height: 3.2rem;
    }

    .material-block__title,
    .page-callback__title {
        font-size: 2.3rem;
        line-height: 3rem;
    }

    .title-block__item,
    .title-block__assets,
    .catalog-material__block p,
    .catalog-material__block li {
        font-size: 1.6rem;
        line-height: 2.5rem;
    }

    .promo-banner,
    .title-block__assets.animate__pulse {
        padding: 1.4rem 1.8rem;
        font-size: 1.7rem !important;
        line-height: 2.4rem;
    }
}

/* ==========================================================================
   Кнопки: жёлтые заменены синими
   ========================================================================== */

.btn__yellow {
    background-color: transparent;
    background-image: var(--btn-bg);
    box-shadow: var(--btn-shadow);
    color: #fff;
}

.btn__yellow:hover {
    background-image: var(--btn-bg-hover);
    color: #fff;
}

/* на тёмном фоне первого экрана кнопка светло-голубая */
.water-hero .btn__yellow {
    background-image: var(--btn-light);
    color: var(--water-900);
}

.btn__nobackground {
    border-color: var(--water-500);
}

.home-contact__callback {
    padding: 1.3rem 2.8rem;
    border: 0;
    border-radius: 5rem;
    background: var(--btn-bg);
    box-shadow: var(--btn-shadow);
    color: #fff;
    font-size: 1.5rem;
}

.home-contact__callback:hover {
    background: var(--btn-bg-hover);
    color: #fff;
}

.proekt-services__btn {
    background-color: rgba(11, 93, 130, 0.92);
    color: #fff;
}

/* ==========================================================================
   Логотип, шапка
   ========================================================================== */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    color: #fff;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-icon {
    display: block;
    flex: none;
    width: auto;
    height: 5.2rem;
}

.logo-icon__roof {
    fill: var(--water-300);
}

.logo-icon__body {
    fill: #fff;
}

.logo__text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo__name {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.logo__name b {
    color: var(--water-300);
    font-weight: 700;
}

.logo__desc {
    color: rgba(255, 255, 255, 0.72);
    font-family: "Montserrat", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.header {
    position: relative;
    z-index: 30;
    padding: 0;
    background: linear-gradient(120deg, var(--water-900) 0%, #08405f 55%, var(--water-700) 100%);
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.28);
}

.header-top__row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 2.4rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-top__item {
    flex: 0 0 auto;
}

.header-top__item.logo-item {
    margin-right: auto;
}

.header-phone__link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.4rem;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone__link::before {
    content: "";
    flex: none;
    width: 2.2rem;
    height: 2.2rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239be8f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.header-messeng {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.header-messeng__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0;
    border-radius: 50%;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.header-messeng__link img {
    width: 4rem;
    height: 4rem;
}

.header-messeng__link--instagram {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.header-messeng__link--instagram:hover {
    background: rgba(255, 255, 255, 0.16);
    opacity: 1;
}

.header-cta__btn {
    display: inline-block;
    padding: 1.1rem 2.4rem;
    border-radius: 5rem;
    background: var(--btn-light);
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-cta__btn:hover {
    opacity: 0.92;
    transform: translateY(-0.1rem);
}

.menu-item {
    padding: 1rem 0 1.2rem;
}

.header-menu__list {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
}

.menu__link {
    display: inline-block;
    padding: 1rem 1.8rem;
    border-radius: 5rem;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 2rem;
    transition: background 0.2s ease;
}

.menu__link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.header__burger span,
.header__burger::before,
.header__burger::after {
    background-color: var(--water-300);
}

/* ==========================================================================
   Блок «Контакты», реквизиты
   ========================================================================== */

.home-contact__item {
    border: 1px solid rgba(28, 147, 184, 0.25);
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.6rem 3rem rgba(5, 48, 74, 0.18);
}

.home-contact__title {
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.contact-list__item {
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    line-height: 2.2rem;
}

.contact-list__item span {
    border-color: rgba(28, 147, 184, 0.4);
    border-radius: 1.2rem;
}

.contact-list__item a {
    color: var(--water-700);
    font-weight: 600;
}

.contact-item__instagram svg {
    flex: none;
    margin-right: 2rem;
    color: var(--water-500);
}

.contacts-requisites {
    padding: 0 3rem 2rem;
}

.contacts-requisites__card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 4rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 0.4rem 2.4rem rgba(5, 48, 74, 0.08);
}

.contacts-requisites__title {
    margin-bottom: 1.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 3rem;
}

.contacts-requisites__card p {
    margin: 0 0 0.8rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    line-height: 2.7rem;
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
    position: relative;
    margin-top: 7rem;
    padding: 4.4rem 0 2rem;
    background: linear-gradient(180deg, var(--water-900) 0%, #04263b 100%);
    color: #fff;
}

.footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -4.9rem;
    height: 5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C240,60 480,0 720,25 C960,50 1200,5 1440,28 L1440,50 L0,50 Z' fill='%2305304a'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.footer-top__row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-top__item {
    flex: none;
    min-width: 0;
}

.footer .logo-icon {
    height: 4.4rem;
}

.footer .logo__name {
    font-size: 2.3rem;
}

.footer .logo__desc {
    font-size: 1rem;
    letter-spacing: 0.16em;
}

.footer .footer-brand__text {
    margin: 1.6rem 0;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    line-height: 2.3rem;
    letter-spacing: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s ease;
}

.footer-social__link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.footer-social__link--viber {
    border: 0;
}

.footer-top__item .footer-social__link img {
    width: 4rem;
    height: 4rem;
    margin: 0;
}

.footer-item__title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1.1rem;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 2.6rem;
    letter-spacing: 0;
}

.footer-item__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4rem;
    height: 3px;
    border-radius: 3px;
    background: var(--water-300);
}

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

.footer-list__item {
    margin-bottom: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    line-height: 2.2rem;
    letter-spacing: 0;
    text-decoration: none;
}

.footer-list__item:hover {
    opacity: 1;
}

.footer-list__item a,
.footer-list__link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list__item a:hover {
    color: var(--water-300);
}

.footer-requisites {
    margin: 3.4rem 0 2.4rem;
    padding: 2.2rem 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
}

.footer-requisites__title {
    margin-bottom: 1rem;
    color: var(--water-300);
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-requisites p {
    margin: 0 0 0.6rem;
    color: rgba(255, 255, 255, 0.82);
    font-family: "Roboto", sans-serif;
    font-size: 1.45rem;
    line-height: 2.2rem;
    letter-spacing: 0;
}

.footer-block__bottom {
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom__item {
    color: rgba(255, 255, 255, 0.6);
    font-family: "Roboto", sans-serif;
    font-size: 1.3rem;
}

.footer-bottom__link {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Фильтр проектов
   ========================================================================== */

.home-catalog__container .home-catalog__filters {
    padding: 2.6rem 3rem 1.6rem;
}

.catalog-filter__title {
    position: relative;
    margin-bottom: 2.2rem;
    padding-bottom: 1.2rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 2.8rem;
}

.catalog-filter__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4.8rem;
    height: 3px;
    border-radius: 3px;
    background: var(--water-300);
}

.catalog-filter {
    gap: 2.4rem 3rem;
}

.catalog-filter fieldset {
    flex: 1 1 18%;
    min-width: 20rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.catalog-filter .filter_title {
    margin-bottom: 1.2rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 2.2rem;
}

/* варианты выбора: «таблетки», флажок скрыт, выбранная закрашена синим */
.catalog-filter br {
    display: none;
}

.catalog-filter label {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 0.8rem 0.8rem 0;
    padding: 0.7rem 1.5rem;
    border: 1px solid rgba(28, 147, 184, 0.35);
    border-radius: 5rem;
    background: #fff;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 2rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.catalog-filter label:hover {
    border-color: var(--water-500);
    background: var(--water-100);
}

.catalog-filter label > input[type="checkbox"] {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.catalog-filter label:has(> input:checked) {
    border-color: transparent;
    background: var(--btn-bg);
    box-shadow: var(--btn-shadow);
    color: #fff;
}

.catalog-filter label:has(> input:focus-visible) {
    outline: 2px solid var(--water-300);
    outline-offset: 2px;
}

.catalog-filter label:has(> input:disabled),
.catalog-filter label.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.catalog-filter label sup {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.7;
}

/* ---------- Адаптив: шапка, подвал ---------- */

@media (max-width: 1199px) {
    .header-cta {
        display: none;
    }
}

@media (max-width: 979px) {
    .header-top__row {
        justify-content: space-between;
        gap: 1.4rem;
        padding: 1.2rem 0;
    }

    .header-top__item.logo-item {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0;
        text-align: left;
    }

    .header-phone {
        margin-left: auto;
        text-align: right;
    }

    .header-top__item.burger-item {
        flex: 0 0 auto;
    }

    .logo-icon {
        height: 4.2rem;
    }

    .logo__name {
        font-size: 2.2rem;
    }

    .header-phone__link {
        font-size: 1.6rem;
    }

    .menu-item {
        background: linear-gradient(160deg, var(--water-900), var(--water-700));
    }

    .menu-item.active .menu__link {
        padding: 1.2rem 2.4rem;
        font-size: 2.2rem;
    }

    .menu-item.active .header-menu__item.active a {
        color: var(--water-300);
    }

    .footer-top__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .header-messeng {
        display: none;
    }

    /* телефон: круглая кнопка вызова вместо номера */
    .header-phone__link {
        justify-content: center;
        gap: 0;
        width: 4rem;
        height: 4rem;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        font-size: 0;
    }

    .header-phone__link::before {
        width: 2rem;
        height: 2rem;
    }

    .logo {
        gap: 1rem;
    }

    .logo-icon {
        height: 3.4rem;
    }

    .logo__name {
        font-size: 1.9rem;
    }

    .logo__desc {
        display: none;
    }

    .footer-top__row {
        grid-template-columns: 1fr;
    }

    .footer-requisites {
        padding: 1.8rem 2rem;
    }

    .contacts-requisites__card {
        padding: 2.4rem 2rem;
    }
}

/* ==========================================================================
   Карточка проекта (везде, где она выводится): синие цена и кнопка
   ========================================================================== */

.catalog-price__name {
    color: var(--water-700);
}

.catalog-price__value,
.catalog-price__value span {
    color: var(--water-700);
}

.catalog-button__block .button-more__link,
.catalog-button__block .button-more__link.btn__green {
    border: 0;
    background: var(--btn-bg);
    box-shadow: var(--btn-shadow);
    color: #fff;
}

.catalog-button__block .button-more__link:hover {
    background: var(--btn-bg-hover);
    color: #fff;
    opacity: 1;
}

/* ==========================================================================
   Всплывающая форма «Заказать консультацию»
   ========================================================================== */

.mfp-bg {
    background: var(--water-900);
    opacity: 0.74;
}

.mfp-close-btn-in .mfp-close {
    color: var(--water-700);
}

.decor {
    max-width: 44rem;
    margin: 0 auto;
    padding: 3.4rem 3.4rem 2.8rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 2rem 6rem rgba(5, 48, 74, 0.4);
}

.decor .form-block__subtitle {
    margin-bottom: 0.8rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 3.2rem;
    text-align: center;
}

.form-block__lead {
    margin: 0 0 2.4rem;
    color: #5b6b76;
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    text-align: center;
}

.decor .contact-form__row {
    display: block;
    margin: 0;
}

.decor .contact-form__item {
    flex: none;
    margin: 0 0 1.6rem;
    padding: 0;
    text-align: left;
}

.decor .contact-form__label {
    margin-bottom: 0.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 2rem;
}

.decor .contact-form__input {
    display: block;
    width: 100%;
    height: 5rem;
    padding: 0 1.6rem;
    border: 1px solid rgba(28, 147, 184, 0.4);
    border-radius: 1.4rem;
    background: #f7fcfe;
    color: #1f2d36;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    line-height: 2.4rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.decor .contact-form__input:focus {
    border-color: var(--water-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(28, 147, 184, 0.18);
}

.decor .contact-form__button {
    margin-top: 2rem;
}

.decor .service-button__send {
    width: 100%;
    margin: 0;
    padding: 1.5rem 2rem;
    border: 0;
    border-radius: 5rem;
    background: var(--btn-bg);
    box-shadow: var(--btn-shadow);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2rem;
    text-transform: none;
    animation: none;
}

.decor .service-button__send:hover {
    background: var(--btn-bg-hover);
    opacity: 1;
}

.decor .contact-form__offer {
    margin-top: 1.4rem;
    color: #8a98a2;
    font-family: "Roboto", sans-serif;
    font-size: 1.2rem;
    line-height: 1.7rem;
    text-align: center;
}

/* ==========================================================================
   Блок «Контакты»: карточка слева, карта справа
   ========================================================================== */

.home-contact__row {
    display: grid;
    grid-template-columns: minmax(0, 44rem) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: stretch;
}

.home-contact__row > .home-contact__item {
    position: static;
    width: auto;
    max-width: none;
    padding: 3.4rem 3.6rem;
}

.home-contact__row .home-contact__title {
    min-width: 0;
    margin-bottom: 2.4rem;
}

.home-contact__row .home-contact__list {
    margin-bottom: 2.6rem;
}

#map.home-contact__map {
    width: 100%;
    height: auto;
    min-height: 44rem;
    overflow: hidden;
    border-radius: 1.8rem;
    background: var(--water-100);
    box-shadow: 0 0.6rem 3rem rgba(5, 48, 74, 0.14);
}

.contact-item__mail svg,
.contact-item__instagram svg {
    flex: none;
    margin-right: 2rem;
    color: var(--water-500);
}

/* ==========================================================================
   Страница проекта
   ========================================================================== */

.product-hero {
    padding: 1rem 0 2rem;
}

.product-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: stretch;
}

.product-hero__gallery {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 0.4rem 2.4rem rgba(5, 48, 74, 0.10);
}

/* галерея по высоте равна блоку с ценой справа */
.product-hero__gallery .slider__images {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 46rem;
}

.product-hero__gallery .swiper-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-hero__gallery .swiper-wrapper,
.product-hero__gallery .swiper-slide,
.product-hero__gallery .slider__image {
    height: 100%;
}

.product-hero__gallery .slider__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #fff;
}

.product-hero__gallery .slider__image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* стрелки и точки внутри галереи (раньше улетали к краям экрана) */
.product-hero__gallery .swiper-button-prev,
.product-hero__gallery .swiper-button-next {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 4.4rem;
    height: 4.4rem;
    margin-top: -2.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.4rem 1.4rem rgba(5, 48, 74, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-hero__gallery .swiper-button-prev {
    left: 1.4rem;
    right: auto;
}

.product-hero__gallery .swiper-button-next {
    right: 1.4rem;
    left: auto;
}

.product-hero__gallery .swiper-button-prev::after,
.product-hero__gallery .swiper-button-next::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2rem;
    height: 2rem;
    margin: -1rem 0 0 -0.6rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20' viewBox='0 0 12 20'%3E%3Cpath d='M2 2l8 8-8 8' fill='none' stroke='%230b5d82' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    font-size: 0;
}

.product-hero__gallery .swiper-button-prev::after {
    transform: scaleX(-1);
}

.product-hero__gallery .swiper-button-prev:hover,
.product-hero__gallery .swiper-button-next:hover {
    transform: scale(1.08);
}

.product-hero__gallery .swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.product-hero__gallery .swiper-pagination {
    position: absolute;
    right: 0;
    bottom: 1.2rem;
    left: 0;
    z-index: 5;
    text-align: center;
}

.product-hero__gallery .swiper-pagination-bullet {
    width: 0.9rem;
    height: 0.9rem;
    margin: 0 0.4rem;
    background: var(--water-500);
    opacity: 0.35;
}

.product-hero__gallery .swiper-pagination-bullet-active {
    opacity: 1;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 2.8rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 0.4rem 2.4rem rgba(5, 48, 74, 0.10);
}

.product-card__badge {
    align-self: flex-start;
    margin-bottom: 1.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 5rem;
    background: #e5484d;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-card__btn {
    margin-top: auto;
}

.product-card__badge {
    margin-bottom: 1.4rem;
}

.product-card__label {
    color: #5b6b76;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
}

.product-card__price {
    margin: 0.4rem 0 2rem;
    color: var(--water-700);
    font-family: "Montserrat", sans-serif;
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 4.2rem;
}

.product-card__specs,
.product-details__specs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card__specs {
    margin-bottom: 2rem;
}

.product-card .catalog-item__items,
.product-details .catalog-item__items {
    display: flex;
    flex: none;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 0.9rem 0;
    border-bottom: 1px dashed rgba(28, 147, 184, 0.3);
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2.2rem;
}

.product-card .characteristic-name,
.product-details .characteristic-name {
    margin: 0;
    color: #5b6b76;
}

.product-card .characteristic-value,
.product-details .characteristic-value {
    display: block;
    flex-grow: 0;
    margin: 0;
    color: #1f2d36;
    font-weight: 600;
    text-align: right;
}

.product-card .characteristic-value::before,
.product-details .characteristic-value::before {
    display: none;
}

.product-card__term {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
    padding: 1.4rem 1.6rem;
    border-radius: 1.4rem;
    background: var(--water-100);
}

.product-card__term-label {
    color: #5b6b76;
    font-family: "Roboto", sans-serif;
    font-size: 1.4rem;
    line-height: 2rem;
}

.product-card__term-value {
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 2.4rem;
}

.product-card__btn {
    display: block;
    padding: 1.5rem 2rem;
    border-radius: 5rem;
    background: var(--btn-bg);
    box-shadow: var(--btn-shadow);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2rem;
    text-align: center;
}

.product-card__btn:hover {
    background: var(--btn-bg-hover);
    color: #fff;
}

.product-card__note {
    margin-top: 1.2rem;
    color: #5b6b76;
    font-family: "Roboto", sans-serif;
    font-size: 1.3rem;
    line-height: 1.8rem;
    text-align: center;
}

.product-details {
    padding: 0.5rem 0 1rem;
}

.product-details__card {
    margin-bottom: 2rem;
    padding: 3.2rem 3.6rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 0.4rem 2.4rem rgba(5, 48, 74, 0.08);
}

.product-details__title {
    position: relative;
    margin-bottom: 2.4rem;
    padding-bottom: 1.4rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 3.4rem;
}

.product-details__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 9.6rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5 Q6 0 12 5 T24 5 T36 5 T48 5' fill='none' stroke='%231c93b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 4.8rem 1rem;
}

.product-details__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 4rem;
}

.product-details .characteristic-name::after {
    content: ":";
}

.product-details__specs .characteristic-value:empty {
    display: none;
}

/* строка без значения (например, состав помещений): на всю ширину, сверху */
.product-details__specs .catalog-item__items:has(.characteristic-value:empty) {
    order: -1;
    grid-column: 1 / -1;
    justify-content: flex-start;
}

.product-details__specs .catalog-item__items:has(.characteristic-value:empty) .characteristic-name {
    color: #1f2d36;
    font-weight: 600;
}

.product-details__specs .catalog-item__items:has(.characteristic-value:empty) .characteristic-name::after {
    content: none;
}

/* текст описания приходит из редактора: приводим к единому виду */
.product-details__text,
.product-details__text * {
    font-family: "Roboto", sans-serif !important;
    font-style: normal !important;
    text-align: left !important;
}

.product-details__text {
    color: #26333c;
    font-size: 1.7rem;
    line-height: 2.8rem;
}

.product-details__text p {
    margin: 0 0 1.4rem;
}

.product-details__text u {
    text-decoration: none !important;
    font-weight: 600;
}

.product-details__text ul {
    margin: 0 0 1.4rem;
    padding-left: 2.4rem;
    list-style: disc;
}

/* ---------- «Наши преимущества» ---------- */

/* старые подложки блоков (серый фон, тёмный градиент) убираем: виден общий водный фон */
.home-page__advantages,
.home-advantages__block {
    background: transparent;
}

.home-page__calculation,
.home-calculation__block {
    background: none;
}

.adv-block {
    padding: 4rem 0 2rem;
}

.adv-block__title {
    position: relative;
    margin-bottom: 1.4rem;
    padding-bottom: 1.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 4.4rem;
    text-align: center;
}

.adv-block__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 9.6rem;
    height: 1rem;
    margin-left: -4.8rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5 Q6 0 12 5 T24 5 T36 5 T48 5' fill='none' stroke='%231c93b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 4.8rem 1rem;
}

.adv-block__subtitle {
    max-width: 80rem;
    margin: 0 auto 3.6rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.9rem;
    line-height: 2.9rem;
    text-align: center;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.adv-card {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    border-radius: 1.6rem;
    background: #fff;
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.08);
}

.adv-card__num {
    display: grid;
    flex: none;
    place-items: center;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    background: var(--water-100);
    color: var(--water-700);
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.adv-card__text {
    margin: 0;
    color: #1f2d36;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 2.4rem;
}

/* ---------- «Рассчитать смету» ---------- */

.calc-block {
    padding: 2rem 0 3rem;
}

.calc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 4rem 4.4rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--water-900) 0%, var(--water-700) 100%);
    color: #fff;
}

.calc-card__title {
    margin-bottom: 1.2rem;
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 3.6rem;
}

.calc-card__text {
    max-width: 60rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
    line-height: 2.8rem;
}

.calc-card__btn {
    flex: none;
    padding: 1.6rem 3.4rem;
    border-radius: 5rem;
    background: var(--btn-light);
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2rem;
}

/* ---------- Портфолио и «Проектирование» ---------- */

.portfolio-block__list img {
    border-radius: 1.4rem;
}

.proekt-page__first {
    position: relative;
    -webkit-mask-image: linear-gradient(#000, #000), var(--wave-mask);
    mask-image: linear-gradient(#000, #000), var(--wave-mask);
    -webkit-mask-size: 100% calc(100% - 11.9rem), 100% 12rem;
    mask-size: 100% calc(100% - 11.9rem), 100% 12rem;
    -webkit-mask-position: top, bottom;
    mask-position: top, bottom;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.proekt-page__first::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 48, 74, 0.8) 0%, rgba(11, 93, 130, 0.5) 100%);
    pointer-events: none;
}

.proekt-page__first .home-first__item {
    background-color: transparent;
    background-image: none;
}

.proekt-page__first .home-first__container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Мобильная версия: правки
   ========================================================================== */

@media (max-width: 1199px) {
    .home-page__services {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 979px) {
    .product-hero__grid {
        grid-template-columns: 1fr;
    }

    .product-hero__gallery .slider__images {
        min-height: 32rem;
    }

    .product-details__specs {
        grid-template-columns: 1fr;
    }

    .adv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calc-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2.6rem;
    }

    .home-contact__row {
        grid-template-columns: 1fr;
    }

    #map.home-contact__map {
        min-height: 32rem;
    }

    .home-contact__row > .home-contact__item {
        padding: 2.6rem 2.4rem;
    }
}

@media (max-width: 600px) {
    .decor {
        padding: 2.8rem 2rem 2.2rem;
    }

    .decor .form-block__subtitle {
        font-size: 2.2rem;
        line-height: 2.8rem;
    }

    .product-hero__gallery .slider__images {
        min-height: 24rem;
    }

    .product-card {
        padding: 2.2rem 2rem;
    }

    .product-card__price {
        font-size: 3rem;
        line-height: 3.6rem;
    }

    .product-details__card {
        padding: 2.4rem 2rem;
    }

    .product-details__title,
    .adv-block__title {
        font-size: 2.4rem;
        line-height: 3rem;
    }

    .adv-block__subtitle {
        font-size: 1.6rem;
        line-height: 2.5rem;
    }

    .adv-grid {
        grid-template-columns: 1fr;
    }

    .calc-card__title {
        font-size: 2.2rem;
        line-height: 2.9rem;
    }

    .calc-card__btn {
        width: 100%;
        text-align: center;
    }

    /* галерея «Примеры работ»: по две фотографии в ряд */
    .home-portfolio__row {
        gap: 1rem;
    }

    .home-portfolio__row .home-portfolio__item {
        flex: 0 1 calc(50% - 0.5rem);
    }
}

/* ==========================================================================
   Страница «Вопросы и ответы»
   ========================================================================== */

.faq-page {
    padding: 1rem 0 3rem;
}

.faq-intro {
    max-width: 82rem;
    margin: 0 0 3rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.9rem;
    line-height: 2.9rem;
}

.faq-group {
    margin-bottom: 3.6rem;
}

.faq-group__title {
    position: relative;
    margin-bottom: 2.4rem;
    padding-bottom: 1.4rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 3.4rem;
}

.faq-group__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 9.6rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5 Q6 0 12 5 T24 5 T36 5 T48 5' fill='none' stroke='%231c93b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 4.8rem 1rem;
}

.faq-item {
    margin-bottom: 1.2rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 1.6rem;
    background: #fff;
    box-shadow: 0 0.4rem 2rem rgba(5, 48, 74, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(28, 147, 184, 0.35);
    box-shadow: 0 0.6rem 2.6rem rgba(5, 48, 74, 0.14);
}

.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.6rem;
    color: var(--water-900);
    font-family: "Montserrat", sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 2.6rem;
    list-style: none;
    cursor: pointer;
}

.faq-item__q::-webkit-details-marker {
    display: none;
}

.faq-item__q::after {
    content: "";
    flex: none;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: var(--water-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%230b5d82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.4rem no-repeat;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__q::after {
    transform: rotate(180deg);
}

.faq-item__a {
    padding: 0 2.6rem 2.4rem;
    color: #26333c;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    line-height: 2.8rem;
}

.faq-item__a p {
    margin: 0 0 1rem;
}

.faq-item__a a {
    color: var(--water-700);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .faq-intro {
        font-size: 1.7rem;
        line-height: 2.6rem;
    }

    .faq-group__title {
        font-size: 2.3rem;
        line-height: 3rem;
    }

    .faq-item__q {
        padding: 1.6rem 1.8rem;
        font-size: 1.7rem;
        line-height: 2.3rem;
    }

    .faq-item__a {
        padding: 0 1.8rem 2rem;
        font-size: 1.6rem;
        line-height: 2.6rem;
    }
}

/* ---------- «Какие проекты мы делаем?»: СПА и бани ---------- */

.proekt-services__row {
    justify-content: center;
    gap: 2.4rem;
}

.proekt-services__row .proekt-services__item {
    flex: 0 1 calc(50% - 1.2rem);
}

.proekt-services__row .proekt-services__item.full-widht {
    flex: 0 1 100%;
}

@media (max-width: 600px) {
    .proekt-services__row .proekt-services__item {
        flex-basis: 100%;
    }
}

.proekt-services__row .services-proekt__img {
    display: block;
    width: 100%;
    height: auto;
}
