/* ==========================================================================
   Мирчев Студио — Price page redesign (price-v1)
   Builds on the shared v1 design system in index-v1.css. Only Price-specific
   parts live here. Scoped to body.v1-page-price.
   ========================================================================== */

/* Anchor jumps must clear the fixed header + the sticky section bar */
html:has(body.v1-page-price) {
    scroll-padding-top: 150px;
}

/* ---------- Sticky section bar ---------- */
.v1-subnav {
    position: sticky;
    top: var(--v1-header-h);
    z-index: 900;
    background: rgba(248, 243, 236, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--v1-line);
}

.v1-subnav__list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.v1-subnav__list::-webkit-scrollbar { display: none; }

.v1-subnav__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--v1-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .25s, color .25s;
}

.v1-subnav__link:hover {
    color: var(--v1-text);
    background: rgba(42, 34, 28, .06);
}

.v1-subnav__link[aria-current="true"] {
    background: var(--v1-ink);
    color: var(--v1-on-dark);
}

/* ---------- Packages ---------- */
.v1-packages__intro {
    margin: 22px auto 0 !important;
    max-width: 62ch;
    color: var(--v1-muted);
}

.v1-section-head .v1-h2 + .v1-packages__intro {
    margin-top: 22px !important;
}

.v1-pkg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .v1-pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v1-pkg-grid > :nth-child(3) { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
    .v1-pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

.v1-pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 30px 30px;
    border-radius: var(--v1-radius-lg);
    background: #fff;
    border: 1px solid var(--v1-line);
    box-shadow: var(--v1-shadow-sm);
    transition: transform .5s var(--v1-ease), box-shadow .5s var(--v1-ease), border-color .3s;
}

.v1-pkg::before {
    content: "";
    position: absolute;
    inset: 0 30px auto;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--v1-gold);
}

.v1-pkg:hover {
    transform: translateY(-6px);
    box-shadow: var(--v1-shadow);
    border-color: rgba(234, 166, 54, .55);
}

.v1-pkg__head {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--v1-line);
}

.v1-pkg__name {
    font-family: var(--v1-serif);
    font-size: clamp(1.8rem, 1.5rem + .8vw, 2.15rem);
    line-height: 1.1;
    color: var(--v1-text);
}

.v1-pkg__name span {
    display: block;
    margin-top: 8px;
    font-family: var(--v1-sans);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--v1-gold-text);
}

.v1-pkg__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 20px 0 0 !important;
}

.v1-pkg__price strong {
    font-family: var(--v1-serif);
    font-size: clamp(3rem, 2.4rem + 2vw, 3.8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--v1-text);
    font-variant-numeric: lining-nums;
}

.v1-pkg__bgn {
    font-size: .95rem;
    font-weight: 600;
    color: var(--v1-muted);
}

.v1-pkg__list {
    display: grid;
    align-content: start;
    gap: 14px;
    flex: 1;
    margin-bottom: 28px !important;
}

.v1-pkg__list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--v1-muted);
}

.v1-pkg__list .v1-icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(234, 166, 54, .18);
    color: var(--v1-gold-text);
}

.v1-pkg__cta {
    width: 100%;
}

/* ---------- Terms ---------- */
.v1-terms__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
}

@media (min-width: 992px) {
    .v1-terms__layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 72px;
        align-items: start;
    }

    .v1-terms__media {
        position: sticky;
        top: calc(var(--v1-header-h) + 90px);
    }
}

.v1-terms__intro {
    color: var(--v1-muted);
    max-width: 62ch;
}

.v1-terms__groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 32px;
}

@media (min-width: 640px) {
    .v1-terms__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.v1-term-group {
    padding: 24px 24px 20px;
    border-radius: var(--v1-radius-lg);
    background: var(--v1-paper);
    box-shadow: 0 1px 0 rgba(42, 34, 28, .06);
}

.v1-term-group__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px !important;
    font-family: var(--v1-sans);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--v1-gold-text);
}

.v1-term-group__title .v1-icon {
    width: 20px;
    height: 20px;
}

.v1-term-group ul {
    display: grid;
    gap: 12px;
}

.v1-term-group li {
    position: relative;
    padding-left: 16px;
    font-size: .96rem;
    line-height: 1.6;
    color: var(--v1-muted);
}

.v1-term-group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--v1-gold);
}

.v1-term-group strong {
    color: var(--v1-text);
}

.v1-term-price {
    white-space: nowrap;
}

.v1-terms__media img {
    width: 100%;
    max-height: 640px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--v1-radius-lg);
    box-shadow: var(--v1-shadow);
}

@media (max-width: 991.98px) {
    .v1-terms__media { order: -1; }
    .v1-terms__media img { aspect-ratio: 16 / 9; object-position: 50% 40%; }
}

/* ---------- Price lists ---------- */
.v1-section-head--left {
    margin-inline: 0;
    text-align: left;
}

.v1-section-head--left .v1-eyebrow::after {
    display: none;
}

.v1-pc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 640px) {
    .v1-pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .v1-pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
    .v1-pc-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.v1-pc {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--v1-radius-lg);
    background: #fff;
    border: 1px solid var(--v1-line);
    box-shadow: 0 1px 0 rgba(42, 34, 28, .05);
    transition: transform .5s var(--v1-ease), box-shadow .5s var(--v1-ease);
}

.v1-section--sand .v1-pc {
    background: var(--v1-paper);
}

.v1-pc:hover {
    transform: translateY(-4px);
    box-shadow: var(--v1-shadow-sm);
}

.v1-pc__media {
    overflow: hidden;
}

.v1-pc__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 1.2s var(--v1-ease);
}

.v1-pc:hover .v1-pc__media img {
    transform: scale(1.05);
}

.v1-pc__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 26px;
}

.v1-pc__title {
    font-family: var(--v1-serif);
    font-size: clamp(1.4rem, 1.25rem + .5vw, 1.65rem);
    line-height: 1.15;
    color: var(--v1-text);
    text-wrap: balance;
}

.v1-pc__prices {
    display: grid;
    gap: 0;
    border-block: 1px solid var(--v1-line);
}

.v1-pc__prices li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    padding: 12px 0;
}

.v1-pc__prices li + li {
    border-top: 1px dashed var(--v1-line);
}

.v1-pc__prices span {
    flex: 1 1 150px;
    font-size: .92rem;
    line-height: 1.45;
    color: var(--v1-muted);
}

.v1-pc__prices strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--v1-gold-text);
    white-space: nowrap;
}

.v1-pc__notes {
    display: grid;
    gap: 8px;
}

.v1-pc__notes li {
    position: relative;
    padding-left: 16px;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--v1-muted);
}

.v1-pc__notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 6px;
    height: 1px;
    background: var(--v1-gold-text);
}

/* A lone card on the last row becomes a wide, horizontal card */
@media (min-width: 1100px) {
    .v1-pc-grid:not(.v1-pc-grid--two) > .v1-pc:last-child:nth-child(3n+1) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .v1-pc-grid:not(.v1-pc-grid--two) > .v1-pc:last-child:nth-child(3n+1) .v1-pc__media img {
        height: 100%;
        aspect-ratio: auto;
        min-height: 220px;
    }

    .v1-pc-grid:not(.v1-pc-grid--two) > .v1-pc:last-child:nth-child(3n+1) .v1-pc__body {
        justify-content: center;
        padding: 32px 36px;
    }
}

@media (min-width: 640px) and (max-width: 1099.98px) {
    .v1-pc-grid > .v1-pc:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .v1-pc-grid > .v1-pc:last-child:nth-child(odd) .v1-pc__media img {
        height: 100%;
        aspect-ratio: auto;
    }
}

@media (max-width: 575.98px) {
    .v1-pkg { padding: 28px 22px 24px; }
    .v1-pkg::before { inset: 0 22px auto; }
    .v1-pc__body { padding: 20px; }
}
