/* Санкт-Шухомош — страницы «Цены» и «Документы».
   Шапка и базовые стили — из legal.css. */

:root {
    --pg-dark: #01261e;
    --pg-green: #63a155;
    --pg-green-dark: #2f6e27;
    --pg-cream: #f6f3e8;
    --pg-line: #e3e0d2;
    --pg-muted: #6b6f5c;
    --pg-ink: #26291a;
}

.lg-header__inner { max-width: 1120px; }

.pg-nav { display: flex; align-items: center; gap: 6px; }

.pg-nav a:not(.lg-back) {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--pg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.pg-nav a:not(.lg-back):hover { background: rgba(1, 38, 30, .07); }
.pg-nav a[aria-current="page"] { background: rgba(99, 161, 85, .18); }

.pg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.pg-crumbs { margin: 22px 0 0; font-size: 14px; color: var(--pg-muted); }
.pg-crumbs a { color: var(--pg-green-dark); text-decoration: none; }
.pg-crumbs span { margin: 0 4px; }

/* ---------- Первый экран с фото ---------- */

.pg-hero {
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    border-radius: 28px;
    color: #fff;
    background: var(--pg-dark) center / cover no-repeat;
}

.pg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(1, 38, 30, .92) 0%, rgba(1, 38, 30, .72) 45%, rgba(1, 38, 30, .15) 100%);
}

.pg-hero__inner { position: relative; padding: 56px 40px 52px; max-width: 620px; }

.pg-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.pg-title {
    margin: 0 0 14px;
    font: 500 52px/1.05 'Oswald', Arial, sans-serif;
    letter-spacing: .01em;
}

.pg-lead { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .86); }

.pg-section { margin: 44px 0 0; }

.pg-h2 {
    margin: 0 0 8px;
    font: 500 32px/1.15 'Oswald', Arial, sans-serif;
    color: var(--pg-dark);
}

.pg-sub { margin: 0 0 22px; color: var(--pg-muted); }

/* ---------- Цены ---------- */

.pr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px 22px;
    border: 2px solid transparent;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(1, 38, 30, .07);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.pr-card--base { background: var(--pg-dark); color: #fff; }

.pr-card.is-on:not(.pr-card--base) { border-color: var(--pg-green); box-shadow: 0 14px 34px rgba(99, 161, 85, .22); }

.pr-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eef4e9;
    color: var(--pg-green-dark);
}

.pr-card--base .pr-icon { background: rgba(255, 255, 255, .12); color: #a9d79c; }
.pr-icon svg { width: 28px; height: 28px; }

.pr-name { margin: 6px 0 0; font: 500 22px/1.2 'Oswald', Arial, sans-serif; color: inherit; }
.pr-card:not(.pr-card--base) .pr-name { color: var(--pg-dark); }

.pr-price { font: 500 34px/1 'Oswald', Arial, sans-serif; color: var(--pg-green); white-space: nowrap; }
.pr-card--base .pr-price { color: #a9d79c; }
.pr-price small { font: 600 14px/1 'Inter', Arial, sans-serif; color: var(--pg-muted); margin-left: 4px; }
.pr-card--base .pr-price small { color: rgba(255, 255, 255, .6); }

.pr-desc { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--pg-muted); }
.pr-card--base .pr-desc { color: rgba(255, 255, 255, .78); }

.pr-tag {
    align-self: flex-start;
    margin-top: auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 13px;
    font-weight: 600;
}

/* переключатель «добавить» */
.pr-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--pg-dark);
    user-select: none;
}

.pr-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.pr-switch {
    position: relative;
    flex: none;
    width: 26px;
    height: 26px;
    border: 2px solid #c9c5b2;
    border-radius: 8px;
    background: #fff;
    transition: background .15s, border-color .15s;
}

.pr-toggle input:checked + .pr-switch { border-color: var(--pg-green); background: var(--pg-green) 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 / 16px no-repeat; }
.pr-toggle input:focus-visible + .pr-switch { outline: 3px solid rgba(99, 161, 85, .45); outline-offset: 2px; }

/* итог */
.pr-total {
    position: sticky;
    bottom: 14px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: 22px;
    padding: 18px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 40px rgba(1, 38, 30, .16);
    backdrop-filter: blur(6px);
}

.pr-total__label { margin: 0; font-size: 14px; color: var(--pg-muted); }
.pr-total__items { margin: 2px 0 0; font-weight: 600; color: var(--pg-dark); }
.pr-total__sum { font: 500 40px/1 'Oswald', Arial, sans-serif; color: var(--pg-dark); white-space: nowrap; }

.pg-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    background: var(--pg-green);
    color: #fff;
    text-decoration: none;
    font: 600 15px/1.2 'Inter', Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.pg-btn:hover { background: #579147; }
.pg-btn--ghost { background: transparent; color: var(--pg-dark); box-shadow: inset 0 0 0 2px var(--pg-line); }
.pg-btn--ghost:hover { background: rgba(1, 38, 30, .05); }
.pg-btn--light { background: #fff; color: var(--pg-dark); }
.pg-btn--light:hover { background: var(--pg-cream); }

/* что входит */
.pr-included {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.pr-box { padding: 28px; border-radius: 24px; background: #fff; }
.pr-box h3 { margin: 0 0 14px; font: 500 24px/1.2 'Oswald', Arial, sans-serif; color: var(--pg-dark); }

.pg-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.pg-checks li { position: relative; padding-left: 30px; }

.pg-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef4e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6e27' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pr-combo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border-radius: 24px;
    color: #fff;
    background: var(--pg-dark) center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.pr-combo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 38, 30, .78), rgba(1, 38, 30, .96)); }
.pr-combo > * { position: relative; }
.pr-combo h3 { margin: 0; font: 500 26px/1.2 'Oswald', Arial, sans-serif; }
.pr-combo p { margin: 0; color: rgba(255, 255, 255, .82); }
.pr-combo .pr-price { color: #a9d79c; font-size: 44px; }

.pg-note { margin: 18px 0 0; font-size: 14px; color: var(--pg-muted); }

/* ---------- Документы ---------- */

.dc-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(1, 38, 30, .07);
}

.dc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #eef4e9;
    color: var(--pg-green-dark);
    font-size: 13px;
    font-weight: 700;
}

.dc-badge svg { width: 16px; height: 16px; }

.dc-title { margin: 0 0 10px; font: 500 28px/1.2 'Oswald', Arial, sans-serif; color: var(--pg-dark); }
.dc-text { margin: 0 0 20px; color: var(--pg-muted); }

.dc-number {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--pg-cream);
}

.dc-number span { font-size: 14px; color: var(--pg-muted); }
.dc-number b { font: 500 26px/1 'Oswald', Arial, sans-serif; letter-spacing: .04em; color: var(--pg-dark); }

.dc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0 0 22px; }
.dc-facts div { border-top: 1px solid var(--pg-line); padding-top: 10px; }
.dc-facts dt { font-size: 13px; color: var(--pg-muted); }
.dc-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--pg-dark); }

.dc-preview {
    display: block;
    align-self: start;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--pg-line);
    box-shadow: 0 12px 30px rgba(1, 38, 30, .12);
    transition: transform .2s, box-shadow .2s;
}

.dc-preview:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(1, 38, 30, .18); }
.dc-preview img { display: block; width: 100%; height: auto; }


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

@media (max-width: 1000px) {
    .pr-grid { grid-template-columns: repeat(2, 1fr); }
    .pr-included { grid-template-columns: 1fr; }
    .dc-card { grid-template-columns: 1fr; }
    .dc-preview { max-width: 360px; }
}

@media (max-width: 639px) {
    .pg-nav a:not(.lg-back) { display: none; }
    .pg-hero { border-radius: 22px; }
    .pg-hero__inner { padding: 36px 22px 34px; }
    .pg-title { font-size: 38px; }
    .pg-lead { font-size: 16px; }
    .pg-h2 { font-size: 26px; }
    .pr-grid { grid-template-columns: 1fr; gap: 12px; }
    .pr-card { padding: 20px; }
    .pr-total {
        bottom: 8px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        padding: 12px 14px;
        border-radius: 18px;
    }
    .pr-total__label { font-size: 12px; }
    .pr-total__items { font-size: 13px; line-height: 1.35; }
    .pr-total__sum { font-size: 28px; align-self: center; }
    .pr-total .pg-btns { grid-column: 1 / -1; }
    .pr-total .pg-btn { flex: 1; min-height: 42px; padding: 0 14px; }
    .pr-total .pg-btn--ghost { display: none; }
    .pr-box, .pr-combo, .dc-card { padding: 22px; }
    .dc-facts { grid-template-columns: 1fr; }
    .dc-number b { font-size: 22px; }
}
.pg-note a { color: var(--pg-green-dark); font-weight: 600; }

/* подсказка «текст заявки скопирован» */
.pg-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--pg-dark);
    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;
}
.pg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
