

/* =====================================================================
   SOLT · главная: первый экран и «Наши посёлки» (сентябрь 2026)
   Дописано в конец custom.css. Все селекторы привязаны к
   .section-intro--hero и .solt-villages / .solt-village, на другие
   страницы не влияют. custom.css грузится после main.css и mobile.css,
   поэтому при равной специфичности побеждают эти правила; там, где тема
   ставит !important (высота слайдера на 560px), стоит !important и здесь.
   ===================================================================== */

/* ---------- Первый экран: слайдер становится фоном ---------- */
.section-intro.section-intro--hero .intro-slider {
    position: relative;
    overflow: hidden;
    background-color: #3a3f42;
    color: #fff;
}
/* Высоту задаёт контент, а не 600–860px из main/mobile.css */
.section-intro.section-intro--hero .intro-slider .slides {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto !important;
}
/* Затемнение, чтобы белый текст читался на любом слайде (оверлей из админки остаётся и складывается с этим) */
.section-intro.section-intro--hero .intro-slider::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 11; /* слайды темы: до 10; наш контент: 12; шапка темы: 16 */
    background: linear-gradient(180deg, rgba(18, 22, 26, 0.55) 0%, rgba(18, 22, 26, 0.3) 45%, rgba(18, 22, 26, 0.72) 100%);
    pointer-events: none;
}

.section-intro.section-intro--hero .solt-hero {
    position: relative;
    z-index: 12;
    display: flex;
    flex-direction: column;
    min-height: 640px;
    padding-top: 71px; /* фиксированная шапка темы на десктопе */
}
.solt-hero .container {
    width: 100%; /* флекс-колонка: у .container с margin:auto иначе ширина по контенту */
}
.solt-hero__content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 0 44px;
}
.solt-hero__title {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.solt-hero__subtitle {
    max-width: 640px;
    margin: 0 0 34px;
    font-size: 1.1875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}
.solt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
/* Кнопки: перебиваем .btn темы (46px, min-width 140px, 13px bold) */
.solt-hero__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    min-width: 0;
    margin: 0;
    padding: 0 30px;
    border: 2px solid transparent;
    border-radius: 3px;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none;
}
.solt-hero__actions .btn-primary {
    background-color: #ff1c1c;
    border-color: #ff1c1c;
    color: #fff;
}
.solt-hero__actions .btn-primary:hover,
.solt-hero__actions .btn-primary:focus {
    background-color: #ff3030;
    border-color: #ff3030;
    color: #fff;
}
.solt-hero__actions .btn-border {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}
.solt-hero__actions .btn-border:hover,
.solt-hero__actions .btn-border:focus {
    background-color: #fff;
    border-color: #fff;
    color: #3a3f42;
}

/* Нижняя полоса: точки слайдера справа, под ними — линия и факты */
.solt-hero__bottom {
    position: relative;
    padding-bottom: 34px;
}
/* .bottom темы был абсолютно прижат к низу слайдера — переводим в поток */
.section-intro.section-intro--hero .intro-slider .bottom {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    justify-content: flex-end;
    margin: 0;
    padding: 12px 10px 18px 0;
}
/* Подписи слайдов (data-bottom-title/subtitle) в макете нет — скрыты.
   Вернуть: удалить это правило. */
.section-intro.section-intro--hero .intro-slider .bottom .bottom-text,
.section-intro.section-intro--hero .intro-slider .bottom > a.title {
    display: none;
}

.solt-hero__facts {
    display: flex;
    margin: 0;
    padding: 22px 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.solt-hero__facts li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0 20px 0 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.solt-hero__facts li:first-child {
    padding-left: 0;
    border-left: 0;
}
.solt-hero__facts li:last-child {
    padding-right: 0;
}
.solt-hero__facts strong {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}
/* Число внутри strong — не подпись, поэтому подпись ниже адресуется как li > span */
.solt-hero__facts strong .nb {
    margin: 0;
    font-size: inherit;
    color: inherit;
    white-space: nowrap;
}
.solt-hero__facts li > span {
    margin-top: 3px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- «Наши посёлки» ---------- */
.solt-villages {
    padding: 90px 0 70px;
    background-color: #fff;
}
.solt-villages .section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 30px;
}
.solt-villages .section-title h2 {
    margin: 0;
    font-size: 2.25rem;
    line-height: 1.2;
}
.solt-villages .section-title a {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1.375rem;
    font-weight: 700;
    color: #ff1c1c;
    white-space: nowrap;
}
.solt-villages .section-title a::after {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.solt-villages .section-title a:hover {
    color: #ff3030;
}
.solt-villages .section-title a:hover::after {
    transform: rotate(45deg) translate(2px, -2px);
}

.solt-villages__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

/* Карточка: фото | описание | цены и кнопка */
.solt-village {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 224px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background-color: #fff;
    color: #3a3f42;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.solt-village:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(58, 63, 66, 0.16);
}

.solt-village__img {
    position: relative;
    display: block;
    min-height: 190px;
    overflow: hidden;
    background-color: #e5e9f1;
}
.solt-village__img .solt-village__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.solt-village:hover .solt-village__img .solt-village__cover {
    transform: scale(1.04);
}
.solt-village__badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 2px;
    background-color: #ff1c1c;
    color: #fff;
    font-size: 0.6875rem;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: none;
    white-space: nowrap;
}
.solt-village__badge--free {
    left: auto;
    right: 12px;
    background-color: rgba(58, 63, 66, 0.82);
}

.solt-village__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px 22px 16px 24px;
}
.solt-village__title {
    margin: 0;
    font-size: 1.3125rem;
    line-height: 1.25;
    font-weight: 700;
}
.solt-village__title a {
    color: #3a3f42;
    transition: color 0.18s;
}
.solt-village__title a:hover,
.solt-village:hover .solt-village__title a {
    color: #ff1c1c;
}
.solt-village__address {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #666f80;
}
.solt-village__address::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50% 50% 50% 0;
    background-color: #ff1c1c;
    transform: rotate(-45deg);
}
.solt-village__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #666f80;
}
.solt-village__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #3a3f42;
}
.solt-village__facts li {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.solt-village__facts li + li::before {
    content: "";
    width: 3px;
    height: 3px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: #b7bfcd;
}

/* Коммуникации: строка + примечание в подсказке по наведению на «i» */
.solt-village__comms {
    position: relative;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e6e6e6;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #3a3f42;
}
.solt-village__comms-label {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.6875rem;
    letter-spacing: 0;
    text-transform: none;
    color: #b7bfcd;
}
.solt-village__tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    border: 1px solid #b7bfcd;
    border-radius: 50%;
    color: #666f80;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    font-style: normal;
    vertical-align: middle;
    cursor: help;
}
.solt-village__tip:focus {
    outline: none;
}
.solt-village__tip:focus-visible {
    border-color: #ff1c1c;
    color: #ff1c1c;
}
/* Подсказка привязана к строке коммуникаций (position: relative выше), чтобы не резалась overflow карточки */
.solt-village__tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 3;
    width: max-content;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 3px;
    background-color: #3a3f42;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 400;
    white-space: normal;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s;
}
.solt-village__tip:hover::after,
.solt-village__tip:focus-visible::after {
    opacity: 1;
    visibility: visible;
}
/* Примечание строкой — только там, где ховера нет (см. медиазапрос ниже) */
.solt-village__note {
    display: none;
    margin: 6px 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #666f80;
}

.solt-village__products {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: auto 0 0;
    padding: 12px 0 0;
    list-style: none;
}
.solt-village__products li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 6px;
    border-radius: 2px;
    background-color: #eeeff6;
    color: #3a3f42;
    font-size: 0.6875rem;
    line-height: 1.5;
    font-weight: 500;
    white-space: nowrap;
}
.solt-village__products li::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff1c1c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 8px 8px;
}

/* Правая колонка: две цены и кнопка */
.solt-village__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px;
    border-left: 1px solid #e6e6e6;
    background-color: #eeeff6;
}
.solt-village__prices {
    margin: 0;
}
.solt-village__prices > div {
    display: flex;
    flex-direction: column;
}
.solt-village__prices > div + div {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(58, 63, 66, 0.09);
}
.solt-village__prices dt {
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 400;
    color: #666f80;
}
.solt-village__prices dd {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 700;
    color: #3a3f42;
    white-space: nowrap;
}
.solt-village__prices dd small {
    margin-right: 3px;
    font-size: 0.75rem;
    font-weight: 400;
    color: #666f80;
}
.solt-village__prices dd.solt-village__prices-empty {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #666f80;
}
/* Кнопка: перебиваем .btn/.btn-border темы */
.solt-village__aside .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: auto 0 0;
    padding: 0 14px;
    /* Вторичная кнопка сайта: светлая рамка и красная надпись.
       Тёмной рамки в системе нет — она читалась как чужая кнопка. */
    border: 1px solid #cdcdcd;
    border-radius: 4px;
    background-color: transparent;
    color: #ff1c1c;
    font-size: 0.8125rem;
    line-height: 1;
    font-weight: 700; /* как у кнопок темы и каталогов */
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none;
}
.solt-village__aside .btn:hover,
.solt-village__aside .btn:focus {
    background-color: transparent;
    border-color: #ff1c1c;
    color: #ff1c1c;
}

/* ---------- Адаптив ---------- */
/* Шапка темы фиксированная и лежит поверх первого экрана, поэтому padding-top = её высоте:
   71px на десктопе; на ≤1200 она в два ряда (лого + прокручиваемое меню) — 103–105px;
   на ≤413 верхний ряд переносится и шапка вырастает до 138px. Замерено на бою без админ-бара. */
@media screen and (max-width: 1200px) {
    .section-intro.section-intro--hero .solt-hero {
        padding-top: 105px;
    }
    .solt-hero__title {
        font-size: 2.875rem;
    }
    .solt-village {
        grid-template-columns: 260px minmax(0, 1fr) 210px;
    }
}
@media screen and (max-width: 991px) {
    .section-intro.section-intro--hero .solt-hero {
        min-height: 560px;
    }
    .solt-hero__content {
        padding: 48px 0 36px;
    }
    .solt-hero__title {
        font-size: 2.5rem;
    }
    .solt-hero__subtitle {
        font-size: 1.0625rem;
        margin-bottom: 28px;
    }
    .solt-hero__facts li {
        padding: 0 12px 0 20px;
    }
    .solt-hero__facts strong {
        font-size: 1.375rem;
    }
    .solt-villages {
        padding: 64px 0 60px;
    }
    .solt-villages .section-title h2 {
        font-size: 1.875rem;
    }
    .solt-village {
        grid-template-columns: 220px minmax(0, 1fr) 190px;
    }
    .solt-village__body {
        padding: 16px 18px 14px 20px;
    }
    .solt-village__aside {
        padding: 16px 18px;
    }
}
/* Подсказка по ховеру недоступна на тач-устройствах — примечание строкой */
@media (hover: none), screen and (max-width: 767px) {
    .solt-village__tip {
        display: none;
    }
    .solt-village__note {
        display: block;
    }
}
@media screen and (max-width: 767px) {
    /* Первый экран: высота по контенту, никаких 100vh и 860px */
    .section-intro.section-intro--hero .solt-hero {
        min-height: 0;
    }
    .solt-hero__content {
        padding: 28px 0 24px;
    }
    .solt-hero__title {
        margin-bottom: 10px;
        font-size: 1.875rem;
        line-height: 1.15;
    }
    .solt-hero__subtitle {
        margin-bottom: 20px;
        font-size: 0.9375rem;
        line-height: 1.45;
    }
    .solt-hero__actions {
        flex-direction: column;
        gap: 10px;
    }
    .solt-hero__actions .btn {
        width: 100%;
        height: 48px;
        padding: 0 12px;
        font-size: 0.8125rem;
    }
    .solt-hero__bottom {
        padding-bottom: 22px;
    }
    .section-intro.section-intro--hero .intro-slider .bottom {
        justify-content: center;
        padding: 8px 0 12px;
    }
    .solt-hero__facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
        padding-top: 16px;
    }
    .solt-hero__facts li {
        padding: 0;
        border-left: 0;
    }
    .solt-hero__facts strong {
        font-size: 1.1875rem;
    }
    .solt-hero__facts li > span {
        font-size: 0.75rem;
    }

    /* Посёлки: карточка в столбик — фото, текст, цены, кнопка */
    .solt-villages {
        padding: 44px 0 48px;
    }
    .solt-villages .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }
    .solt-villages .section-title h2 {
        font-size: 1.625rem;
    }
    .solt-villages__list {
        gap: 16px;
    }
    .solt-village {
        grid-template-columns: minmax(0, 1fr);
    }
    .solt-village:hover {
        transform: none;
    }
    .solt-village__img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    @supports not (aspect-ratio: 16 / 9) {
        .solt-village__img {
            height: 0;
            padding-bottom: 56.25%;
        }
    }
    .solt-village__body {
        padding: 16px 16px 14px;
    }
    .solt-village__title {
        font-size: 1.1875rem;
    }
    .solt-village__aside {
        padding: 14px 16px 16px;
        border-left: 0;
        border-top: 1px solid #e6e6e6;
    }
    .solt-village__prices {
        display: flex;
        gap: 16px;
    }
    .solt-village__prices > div {
        flex: 1 1 0;
        min-width: 0;
    }
    .solt-village__prices > div + div {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }
    .solt-village__prices dd {
        font-size: 1rem;
    }
}
@media screen and (max-width: 413px) {
    .section-intro.section-intro--hero .solt-hero {
        padding-top: 138px;
    }
}
/* 320–359: длинные цены «от 4 550 000 ₽» не влезают в половину ширины */
@media screen and (max-width: 359px) {
    .solt-hero__title {
        font-size: 1.625rem;
    }
    .solt-hero__facts {
        gap: 12px 12px;
    }
    .solt-hero__facts strong {
        font-size: 1.0625rem;
    }
    .solt-village__prices {
        display: block;
    }
    .solt-village__prices > div + div {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(58, 63, 66, 0.09);
    }
    .solt-village__facts li {
        white-space: normal;
    }
}
