/*
Theme Name: La-Stroban
Author: Hap
Version: 1.0.0
*/

:root {
    --primary: #0f4c81;
    --accent: #ffcc00;
    --muted: #6b7280;
    --bg: #f8fbff;
    --card-shadow: 0 8px 20px rgba(15, 76, 129, 0.12);
    --glass: rgba(255, 255, 255, 0.75);
    --radius: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #222;
    line-height: 1.45;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header (оставляем по вашей просьбе, но чуть оживим) */
/* Header */
header {
    background: linear-gradient(90deg, var(--primary), #135b9b);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(15, 76, 129, 0.12);
    transition: background .3s;
}

header.sticky {
    background: var(--primary);
}

/* Верхняя часть шапки */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
}

/* Логотип */
.logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.6px;
}

.logo img {
    width: 200px;
}

/* Контейнер для контактов */
.contacts-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contacts-wrapper .contacts {
    display: flex;
    gap: 10px;
}

/* Контакты телефонов */
.contacts .tel {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.contacts .tel i {
    font-size: 1rem;
}

.contacts .tel:hover {
    background: var(--accent);
    color: #081025;
}

/* Иконки мессенджеров */
.icons {
    display: flex;
    gap: 10px;
}

.icons a.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.icons a.icon:hover {
    background: var(--accent);
    color: #081025;
}

/* Навигация */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav a {
    color: #fff;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: var(--accent);
    color: #081025;
}

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

@media (max-width: 900px) {
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .contacts-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .contacts {
        flex-direction: column;
        gap: 6px;
    }

    .contacts .tel {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    /* Меню */
    .main-nav {
        display: none;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Бургер */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 34px;
        height: 28px;
        gap: 5px;
        cursor: pointer;
    }

    .burger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 4px;
        transition: all 0.3s;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Мобильный общий стиль */
@media (max-width: 600px) {
    .logo {
        font-size: 1.3rem;
    }

    .contacts-wrapper {
        align-items: flex-start;
        gap: 6px;
    }
}


/* Hero (оставлен) */
.hero {
    position: relative;
    color: #fff;
    padding: 140px 20px;
    display: flex;
    align-items: center;
    min-height: 90vh;
    overflow: hidden;
}

/* затемнение */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 60%);
    z-index: 1;
}

/* декоративная фигура справа */
/*.hero::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*    width: 45%;*/
/*    height: 100%;*/
/*    background: linear-gradient(120deg, rgba(255, 204, 0, 0.08) 0%, rgba(255, 204, 0, 0) 100%);*/
/*    z-index: 1;*/
/*    pointer-events: none;*/
/*}*/

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    padding-left: 60px;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 0.9s ease both;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 18px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 26px;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent);
    color: #081025;
}

.btn-primary:hover {
    background: #ffd633;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* адаптив */
@media (max-width: 1200px) {
    .hero-inner {
        padding-left: 40px;
    }

    .hero h1 {
        font-size: 46px;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 80vh;
    }

    .hero-inner {
        padding-left: 20px;
        justify-content: center;
    }

    .hero::before {
        width: 60%;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
        text-align: center;
    }

    .hero-inner {
        padding-left: 0;
    }

    .hero-content {
        max-width: 90%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-cta {
        justify-content: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 16px;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }
}

/* анимация */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Статистика (цифры) */
.stats {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;

    background: linear-gradient(#f7fbff, #eef7ff, #f7fbff);
}

/* лёгкий декоративный оверлей */
.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.stats-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
}

.stat {
    background: #fff;
    border-radius: 16px;
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15, 76, 129, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease both;
}

.stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 76, 129, 0.12);
}

.stat .num {
    font-weight: 800;
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.25s ease;
}

.stat:hover .num {
    transform: scale(1.08);
}

.stat .label {
    color: var(--muted);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}

/* адаптив */
@media (max-width: 992px) {
    .stats {
        padding: 60px 20px;
    }

    .stat {
        padding: 28px 16px;
    }

    .stat .num {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .stats-inner {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 24px 14px;
    }

    .stat .num {
        font-size: 28px;
    }

    .stat .label {
        font-size: 15px;
    }
}

/* анимация */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services — большие карточки; при наведении описание сверху */
/* ========== Service cards — fixed ========== */

.services {
    padding: 60px 20px;
}

.section-title {
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 900;
    margin: 20px 0 50px;
}

.services .section-title {
    color: #000;
}

/* контейнер секции — ничего не ломает */
.services .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* сетка карточек */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ---- сами карточки ---- */
.service-card {
    position: relative; /* нужно для абсолютных детей */
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    color: #fff;

    /* важно: задаём min-height, чтобы карточка не схлопывалась */
    min-height: 320px; /* можно уменьшить до 280px для компактного вида */
    display: block; /* на всякий случай */
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    -webkit-font-smoothing: antialiased;
}

/* hover-эффект (не ломает базовый поток) */
.service-card:hover {
    box-shadow: 0 16px 40px rgba(15, 76, 129, 0.16);
}

/* ---- картинка ----
   она абсолютная (покрывает всю карточку), но родитель имеет min-height,
   поэтому карточка всегда видима даже если изображение не загрузилось */
.service-card img {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease, opacity 0.35s ease;
    filter: contrast(1.03) saturate(1.06);
    will-change: transform, opacity;
}

/* масштаб при наведении */
.service-card:hover img {
    transform: scale(1.06);
}

/* ---- градиент поверх картинки ---- */
.service-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* ---- выезжающее описание сверху ---- */
.service-info {
    position: absolute;
    top: -100%; /* скрыто сверху */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.88));
    color: #dbeafc;
    transition: top 0.42s cubic-bezier(.2, .9, .2, 1), opacity 0.35s ease;
    opacity: 0;
}

/* при наведении — описание опускается вниз в видимую область */
.service-card:hover .service-info {
    top: 0;
    opacity: 1;
}

/* текст внутри */
.service-info p {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    max-width: 88%;
}

/* ---- нижняя панель с названием и ценой ---- */
.service-base {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 3; /* поверх описания и градиента */
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.45));
    box-sizing: border-box;
}

/* типографика */
.service-title {
    font-weight: 800;
    font-size: 18px;
    color: #fff;
}

.service-sub {
    color: #ffcc00;
    font-weight: 700;
    font-size: 15px;
}

/* адаптив */
@media (max-width: 768px) {
    .service-card {
        min-height: 280px;
    }

    /* на мобильных показываем описание сразу (без hover) */
    .service-info {
        top: 0;
        opacity: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
        padding: 18px;
    }
}


/* ===== ADVANTAGES (исправлено корректно) ===== */
.advantages {
    padding: 60px 20px;
    background: linear-gradient(#f7fbff, #eef7ff);

}

.advantages .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* карточки преимуществ */
.adv-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    /* убрали overflow: hidden */
    height: auto; /* карточка растягивается по контенту */
}

/* убрали translate, остался мягкий hover */
.adv-card:hover {
    box-shadow: 0 10px 30px rgba(15, 76, 129, 0.12);
    background: #fdfefe;
}

/* иконка */
.adv-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: linear-gradient(135deg, var(--primary), #1a75d2);
    color: #fff;
    flex-shrink: 0;
    transition: 0.3s ease;
}

.adv-card:hover .adv-icon {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: rotate(-15deg);
}

/* контент */
.adv-content {
    flex: 1;
    min-width: 0; /* чтобы текст не вылазил за пределы */
    overflow-wrap: break-word;
}

.adv-content .title {
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.3;
    color: #0f4c81;
}

.adv-content .desc {
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
}

/* адаптив */
@media (max-width: 768px) {
    .advantages {
        padding: 40px 16px;
    }

    .advantages .grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(260px, 1fr));
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto;
    }


    .adv-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .adv-icon {
        margin-bottom: 10px;
    }

    .adv-content .title {
        font-size: 16px;
    }

    .adv-content .desc {
        font-size: 14px;
    }
}


/* About — на всю ширину, но не на всю высоту; overlay покрывает весь блок */
/* ===== ABOUT (улучшено) ===== */
.about {
    position: relative;
    min-height: 420px;
    margin-top: 60px;
    overflow: hidden;
    border-radius: 0; /* можно поставить 20px, если хочешь мягкое отделение блока */
}

/* фон */
.about .bg {
    position: absolute;
    inset: 0;
    background-image: url('test.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s ease;
    z-index: 0;
}

.about:hover .bg {
    transform: scale(1.08);
}

/* затемнение */
.about::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

/* контейнер */
.about .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

/* карточка */
.about .card {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    padding: 40px 48px;
    border-radius: 14px;
    max-width: 880px;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.about .card:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* заголовок и текст */
.about h2 {
    font-size: 32px;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.about p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 10px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* адаптив */
@media (max-width: 768px) {
    .about {
        min-height: 340px;
    }

    .about .container {
        padding: 60px 16px;
    }

    .about .card {
        padding: 28px 22px;
    }

    .about h2 {
        font-size: 24px;
    }

    .about p {
        font-size: 15px;
    }
}


/* Prices */
/* ===== PRICES ===== */
.prices {
    padding: 60px 20px;
    background: #f7f9fc;
}

.prices .inner {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 28px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 76, 129, 0.08);
}

.prices h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

.prices p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 15px;
}

/* Таблица */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px 6px; /* расстояние между строками */
    margin-top: 12px;
    font-size: 15px;
}

/* Шапка таблицы */
.price-table thead th {
    background: linear-gradient(90deg, var(--primary), #165a91);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 14px 12px;
    border-radius: 8px;
}

.price-table .service-header-th {
    background: linear-gradient(90deg, var(--primary), #165a91);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 14px 12px;
    border-radius: 8px;

    opacity: .8;
}

/* Строки таблицы */
.price-table tbody tr {
    background: #fdfefe;
    border-radius: 8px;
}

/* Ячейки таблицы */
.price-table th,
.price-table td {
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

/* Выравнивание цены справа */
.price-table td span.price-right {
    float: right;
    font-weight: 800;
    color: var(--primary);
}

/* Альтернативное оформление строк (через градиенты или легкую тень) */
.price-table tbody tr:nth-child(even) {
    background: #f6f9fc;
}

/* Адаптив */
@media (max-width: 768px) {
    .price-table thead {
        display: none; /* скрываем шапку */
    }

    .price-table tbody tr {
        display: block;
        margin-bottom: 12px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(15, 76, 129, 0.06);
        padding: 12px 16px;
    }

    .price-table .service-header {
        display: table-row;
    }

    .price-table .service-header-th {
        text-align: center;
    }

    .price-table tbody td {
        display: flex;
        justify-content: right;
        padding: 8px 0;
        text-align: left;
        font-size: 14px;
    }

    .price-table tbody td:nth-child(1),
    .price-table tbody td:nth-child(2) {
        justify-content: left;
    }

    .price-table td span.price-right {
        float: none;
    }
}


/* Portfolio */
.portfolio {
    padding: 60px 20px; /* без боковых паддингов */
    background: linear-gradient(#eef7ff, #f7fbff);
}

.portfolio .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

.portfolio-filters {
    text-align: center;
    margin-bottom: 28px;
}

.portfolio-filters button {
    background: var(--accent);
    color: #081025;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    margin: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.25s ease;
}

.portfolio-filters button.active,
.portfolio-filters button:hover {
    background: var(--primary);
    color: #fff;
}

/* Сетка на всю ширину */
.portfolio .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 18px;
    width: 100%; /* растягиваем на всю ширину окна */
    margin: 0; /* убираем автоцентрирование */
}

/* Карточки */
.portfolio-item {
    height: 400px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    min-height: 220px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* Адаптив */
@media (max-width: 768px) {
    .portfolio .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .portfolio-item {
        min-height: 180px;
    }
}


/* Reviews — слайдер */
.reviews {
    padding: 48px 20px;
}

.reviews .wrap {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.review-container {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.review-slide {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: left;
    min-height: 160px;
}

.review-slide.active {
    display: block;
}

.review-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;

    position: relative;
}

.review-onliner {
    position: absolute;
    top: 0;
    right: 0;

    font-size: 14px;
    color: var(--muted);
}

.rev-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #1a75d2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.rev-name {
    font-weight: 800;
}

.rev-city {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.review-controls {
    display: flex;
    gap: 10px;
    position: absolute;
    right: 0;
    top: 0;
}

.review-buttons {
    display:flex; flex-direction:column; gap:10px;
}

.rev-btn {
    width: 200px;
    background: transparent;
    border: 1px solid #e6eef9;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.rev-btn:hover {
    background: var(--accent);
}

.rev-rating {
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
}

/* ===== Reviews адаптация ===== */
@media (max-width: 992px) {
    .reviews .wrap {
        max-width: 90%;
        padding: 0 10px;
    }

    .review-container {
        flex-flow: column;
    }

    .review-buttons {
        width: 100%;
        flex-flow: row wrap;
        justify-content: space-between;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rev-avatar {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .rev-name {
        font-size: 16px;
    }

    .rev-city {
        font-size: 12px;
    }

    .review-controls {
        position: static;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .rev-btn {
        padding: 6px 8px;
        font-size: 14px;
    }

    .review-slide {
        padding: 16px;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .review-header {
        gap: 6px;
    }

    .rev-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .rev-name {
        font-size: 14px;
    }

    .rev-city {
        font-size: 11px;
    }

    .review-controls {
        gap: 6px;
    }

    .rev-btn {
        padding: 5px 6px;
        font-size: 12px;
    }
}


/* Contacts with map */
.contacts-block {
    padding: 60px 20px;
    background: #f7f9fc;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.15);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-item i {
    width: 26px;
    height: 26px;
    border-radius: 12px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-info a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s;
}

.contact-info a:hover {
    color: var(--accent);
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.contact-item .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.25s;
}

.contact-item .socials a:hover {
    background: var(--accent);
    color: #fff;
}

.map-wrap {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 380px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.12);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-paragraph {
    margin-top: 50px;
    font-size: 16px;
    font-weight: 600;
}

.contact-form-wrap {
    max-width: 1260px;
    margin: 20px auto 0;
    background: #fff;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.15);
}

.contact-form-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
}

/* CF7 обертка */
.contact-form .wpcf7 {
    margin: 0;
}

/* Сетка формы */
.contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Поля формы */
.form-field input,
.form-field textarea,
.form-field .wpcf7-form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    resize: none;
    border: 1px solid #d0d5dd;
    font-size: 15px;
    transition: border-color 0.25s;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field .wpcf7-form-control:focus {
    border-color: var(--accent);
    outline: none;
}

.form-field--full {
    grid-column: 1 / -1;
}

/* Кнопка отправки */
.contact-form-btn,
.contact-form .wpcf7-submit {
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s;
}

.contact-form-btn:hover,
.contact-form .wpcf7-submit:hover {
    background: var(--primary);
}

/* Сообщения об успехе и ошибках */
.contact-form .wpcf7-response-output {
    margin-top: 15px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    padding: 10px 0;
}

.wpcf7 form.sent .wpcf7-response-output {
    border: none;
}

.contact-form .wpcf7-mail-sent-ok {
    color: #28a745;
}

.contact-form .wpcf7-validation-errors,
.contact-form .wpcf7-mail-sent-ng {
    color: #dc3545;
}

/* Скрыть спиннер CF7 (опционально) */
.contact-form .wpcf7-spinner {
    display: none;
}

/* Адаптив */
@media (max-width: 768px) {
    .contact-form .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 20px 16px;
    }
}

/* ===== Адаптация ===== */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .map-wrap {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .socials a {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}


/* Footer */
footer {
    background: var(--primary);
    color: #dbeafe;
    padding: 48px 20px 28px;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
}

footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer .col {
    min-width: 220px;
    flex: 1;
}

footer h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
}

footer h4 img {
    width: 300px;
}

footer p {
    color: #bfe0ff;
    font-size: 14px;
    line-height: 1.5;
}

footer a {
    color: #cfe8ff;
    display: block;
    margin: 6px 0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s;
}

footer a:hover {
    color: var(--accent);
}

footer .socials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 6px;
    background: linear-gradient(135deg, var(--primary), #1a75d2);
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.25s ease;
}

footer .socials:hover {
    background: var(--accent);
    color: #000;
}

footer p:last-child {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: #9fc8ff;
}

/* ===== Адаптация ===== */
@media (max-width: 992px) {
    footer .footer-inner {
        flex-direction: column;
        gap: 28px;
    }

    footer .col {
        width: 100%;
    }

    footer .socials {
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    footer h4 {
        font-size: 16px;
    }

    footer a {
        font-size: 14px;
    }

    footer .socials {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}


.service-hero {
    padding: 200px 20px;
    color: #fff;
    text-align: center;
    position: relative;
}

.service-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.service-hero .container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.service-hero h1 {
    font-size: 42px;
    font-weight: 600;
}

.cta-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.service-gallery,
.service-prices,
.related-services,
.service-contact {
    padding: 48px 20px;
}

.service-gallery h2,
.service-prices h2,
.related-services h2,
.service-contact h2 {
    text-align: center;
    margin-bottom: 18px;
    font-weight: 800;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    object-fit: cover;
}

.related-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-services .service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.related-services .service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-base {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
    color: #fff;
}

.service-base .service-title {
    font-weight: 800;
}

.service-base .service-sub {
    font-weight: 600;
    font-size: 14px;
    color: #ffeaa7;
}

/* Адаптив */
@media (max-width: 768px) {
    .service-hero {
        padding: 80px 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .service-details ul {
        padding-left: 16px;
    }
}

.service-info--page {
    position: relative; /* не абсолютное */
    padding: 48px 20px;
    background: #f7f9fc; /* светлый фон для текста */
    color: #111; /* тёмный текст */
}

.service-info--page .container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 28px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 76, 129, 0.08);
}

.service-info--page h2 {
    text-align: center;
    margin-bottom: 18px;
    font-weight: 800;
    font-size: 28px;
    color: #111; /* тёмный заголовок */
}

.service-info--page p,
.service-info--page li {
    max-width: 1200px;
    margin: 0 auto 12px auto;
    line-height: 1.65;
    font-size: 16px;
    color: #111; /* тёмный текст */
}

.service-info--page ul,
.service-info--page ol {
    max-width: 720px;
    margin: 0 auto 12px auto;
    padding-left: 20px;
    color: #111;
}

.service-info--page .steps {
    margin-top: 20px;
}

.service-info--page ol {
    max-width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
    text-align: center;
}

.service-info--page ol li {
    margin-bottom: 5px;
    padding: 5px 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    background: linear-gradient(90deg, var(--primary), #165a91);

    color: var(--bg);

    position: relative;
}

.service-info--page ol li span {
    width: 25px;
    height: 25px;

    position: absolute;
    left: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--bg);

    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
}

.contacts-hero {
    min-height: 500px;
}