/* Санкт-Шухомош — страницы домов (dom-1.html … dom-3.html).
   Шапка и базовые стили — из legal.css, кнопки — из site-footer.css. */

.hs-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 8px;
}

.hs-crumbs { font-size: 14px; color: #6b6f5c; }
.hs-crumbs a { color: #2f6e27; text-decoration: none; }
.hs-crumbs span { margin: 0 4px; }

.hs-title {
    margin: 10px 0 10px;
    font: 500 32px/1.1 'Oswald', Arial, sans-serif;
    color: #01261e;
}

.hs-sub { margin: 0 0 20px; color: #6b6f5c; font-size: 15px; }

.hs-layout { display: grid; gap: 20px; }

/* ---------- Галерея ---------- */

.hs-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.hs-ph {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 10px;
    background: #e6e2d3;
}

.hs-ph--main { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 18px; }

.hs-ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.hs-ph:hover img { transform: scale(1.04); }

/* ---------- Карточка с ценой ---------- */

.hs-card {
    align-self: start;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 2px 24px rgba(1, 38, 30, .07);
}

.hs-price {
    font: 500 38px/1 'Oswald', Arial, sans-serif;
    color: #63a155;
}

.hs-guests { margin: 10px 0 4px; font-weight: 500; color: #01261e; }
.hs-pricelink { margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.hs-pricelink a { color: #2f6e27; font-weight: 600; }

/* «Собери свой отдых»: дом + услуги на выбор */
.hs-calc__title { margin: 0 0 10px; font: 500 22px/1.2 'Oswald', Arial, sans-serif; color: #01261e; }
.hs-calc { display: grid; gap: 6px; }
.hs-calc__row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 14px;
    background: #f6f3e8;
    font-size: 15px;
    color: #26291a;
    cursor: pointer;
    user-select: none;
}
.hs-calc__row--base { background: #01261e; color: #fff; cursor: default; }
.hs-calc__row.hs-calc__row--base b { color: #a9d79c; }
.hs-calc__name { flex: 1; line-height: 1.3; }
.hs-calc__row b { font-weight: 700; white-space: nowrap; color: #2f6e27; }
.hs-calc__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hs-sw { position: relative; flex: none; width: 24px; height: 24px; border: 2px solid #c9c5b2; border-radius: 7px; background: #fff; transition: background .15s, border-color .15s; }
.hs-calc__row input:checked + .hs-sw { border-color: #63a155; background: #63a155 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.hs-calc__row input:focus-visible + .hs-sw { outline: 3px solid rgba(99, 161, 85, .45); outline-offset: 2px; }
.hs-calc__row:has(input:not(:checked)) .hs-calc__name,
.hs-calc__row:has(input:not(:checked)) b { color: #8a8f7a; }
.hs-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3e0d2; }
.hs-total span { font-size: 14px; color: #6b6f5c; }

.hs-card h2,
.hs-section h2 {
    margin: 0 0 10px;
    font: 500 21px/1.25 'Oswald', Arial, sans-serif;
    color: #01261e;
}

.hs-list { margin: 0 0 20px; padding: 0; list-style: none; }
.hs-list li { position: relative; padding-left: 26px; }
.hs-list li + li { margin-top: 6px; }

.hs-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .45em;
    width: 14px;
    height: 8px;
    border-left: 2px solid #63a155;
    border-bottom: 2px solid #63a155;
    transform: rotate(-45deg);
}

.hs-list--accent li { font-weight: 500; }

.hs-btns { display: grid; gap: 10px; }
.hs-btns .ss-btn { box-sizing: border-box; width: 100%; padding: 10px 18px; text-align: center; text-decoration: none; line-height: 1.25; }

.hs-btn-call {
    background: #f6f3e8;
    color: #01261e !important;
    border: 1px solid #e3e0d2;
}
.hs-btn-call:hover { border-color: #01261e; }

/* ---------- Нижняя часть ---------- */

.hs-section {
    margin-top: 28px;
    padding: 24px 22px;
    border-radius: 22px;
    background: #fff;
}

.hs-section h2 + .hs-list { margin-bottom: 26px; }

.hs-about { margin: 0 0 22px; }

.hs-others { display: flex; flex-wrap: wrap; gap: 10px; }

.hs-other {
    color: #01261e !important;
    border-color: #c9cfc4 !important;
    text-decoration: none;
}
.hs-other:hover { border-color: #01261e !important; }

/* ---------- Просмотр фото (js/house.js) ---------- */

.hs-lb {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
}

.hs-lb img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    user-select: none;
}

.hs-lb button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.hs-lb button:hover { background: rgba(255, 255, 255, .26); }
.hs-lb__close { top: 14px; right: 14px; }
.hs-lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.hs-lb__next { right: 14px; top: 50%; transform: translateY(-50%); }

.hs-lb__count {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

@media (min-width: 640px) {
    .hs-main { padding: 28px 24px 8px; }
    .hs-title { font-size: 44px; }
    .hs-gallery { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .hs-ph--main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
    .hs-section { padding: 32px 36px; }
    .hs-list--cols { columns: 2; column-gap: 40px; }
    .hs-list--cols li { break-inside: avoid; }
    .hs-list--cols li + li { margin-top: 0; }
    .hs-list--cols li { margin-bottom: 6px; }
}

@media (min-width: 1000px) {
    .hs-layout { grid-template-columns: 1fr 340px; gap: 28px; }
    .hs-card { position: sticky; top: 90px; padding: 28px; }
}


.hs-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: #01261e; color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(1, 38, 30, .3); transform: translate(-50%, 20px); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.hs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hs-copyhint { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.45; color: #6b6f5c; }

/* две галочки перед бронированием: памятка и правила */
.hs-agree { display: grid; gap: 8px; margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; background: #f6f3e8; }
.hs-agree label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: #26291a; cursor: pointer; }
.hs-agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: #63a155; cursor: pointer; }
.hs-agree a { color: #2f6e27; font-weight: 600; }
.hs-agree.is-warn { box-shadow: 0 0 0 2px #d9822b inset; }
.ss-btn.is-locked { opacity: .45; cursor: not-allowed; }
