/* ===================================================================
   object.css
   Страница одного объекта каталога.
   =================================================================== */

/* ── MAIN LAYOUT ── */
.page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 84px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}
.col-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.col-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 88px;
}

/* ── SECTION CARD (общая обёртка блоков) ── */
.section-card {
    background: #fff;
    border-radius: var(--radius, 14px);
    padding: 30px 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.section-card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-card-title svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

/* ── OBJECT HEADER ── */
.obj-header {
    background: #fff;
    border-radius: var(--radius, 14px);
    padding: 30px 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.obj-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.obj-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 13px;
    border-radius: 50px;
}
.badge-type {
    background: var(--accent);
    color: var(--green);
}
.badge-status {
    background: #e8f5e9;
    color: #1a7a25;
}
.badge-time {
    background: var(--green);
    color: #fff;
}
.badge-time svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.obj-title-h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 14px;
}
.obj-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-l);
}
.obj-address svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

/* ── GALLERY ── */
.gallery-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #fff;
    border-radius: var(--radius, 14px);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.gallery-main {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #c8dcc8;
    cursor: pointer;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}
.gallery-main:hover img {
    transform: scale(1.03);
}
.gallery-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}
.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 6px;
}
.gallery-counter svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.22s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}
.gallery-nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text);
    stroke-width: 2.5;
    stroke-linecap: round;
}
.gallery-nav.prev {
    left: 14px;
}
.gallery-nav.next {
    right: 14px;
}
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumbs::-webkit-scrollbar {
    display: none;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition:
        border-color 0.2s,
        opacity 0.2s;
    opacity: 0.65;
}
.gallery-thumb:hover {
    opacity: 0.9;
}
.gallery-thumb.active {
    border-color: var(--green);
    opacity: 1;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── KEY STATS ── */
.key-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.key-stat {
    background: #f7faf7;
    border-radius: 10px;
    padding: 18px 16px;
    border: 1.5px solid #eaf2ea;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.key-stat:hover {
    border-color: rgba(42, 125, 52, 0.3);
    background: var(--accent);
}
.key-stat-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.key-stat-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
}
.key-stat-label {
    font-size: 11.5px;
    color: var(--text-l);
    font-weight: 600;
    line-height: 1.35;
}
.key-stat-val {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.key-stat-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-l);
}

/* ── DESCRIPTION TEXT ── */
.description-text {
    font-size: 15px;
    color: var(--text-m);
    line-height: 1.75;
}
.description-text p + p {
    margin-top: 14px;
}

/* ── CHARACTERISTICS TABLE ── */
.chars-table {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--border);
}
.char-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid #f0f4f0;
    transition: background 0.18s;
}
.char-row:last-child {
    border-bottom: none;
}
.char-row:hover {
    background: #f7faf7;
}
.char-row.highlight {
    background: var(--accent);
}
.char-row.highlight:hover {
    background: #daf0dd;
}
.char-name {
    font-size: 13px;
    color: var(--text-l);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.char-name svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
    opacity: 0.7;
}
.char-val {
    font-size: 13px;
    color: var(--text);
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    text-align: right;
}
.char-val.green {
    color: var(--green);
}
.char-val.big {
    font-size: 15px;
}

/* ── PRICE CARD (sidebar) ── */
.price-card {
    background: #fff;
    border-radius: var(--radius, 14px);
    padding: 26px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.price-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-l);
    margin-bottom: 6px;
}
.price-market {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-m);
    margin-bottom: 18px;
}
.price-market span {
    text-decoration: line-through;
    color: #aaa;
}
.price-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 18px;
}
.price-buyout-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green-d);
    margin-bottom: 6px;
}
.price-buyout-val {
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
    margin-bottom: 6px;
}
.price-buyout-pct {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 22px;
}
.price-buyout-pct svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}
.price-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--green);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.price-btn-primary:hover {
    background: var(--green-d);
    box-shadow: 0 6px 22px rgba(42, 125, 52, 0.35);
    transform: translateY(-2px);
}
.price-btn-primary svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.price-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    color: var(--green);
    border: 2px solid rgba(42, 125, 52, 0.25);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 13px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    box-sizing: border-box;
}
.price-btn-secondary:hover {
    background: var(--accent);
    border-color: var(--green);
    transform: translateY(-1px);
}
.price-guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #f7faf7;
    border-radius: 10px;
    border: 1px solid #e0ece0;
}
.price-guarantee svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    flex-shrink: 0;
}
.price-guarantee span {
    font-size: 12px;
    color: var(--text-m);
    line-height: 1.4;
}

/* ── QUICK FACTS (sidebar) ── */
.quick-facts {
    background: #fff;
    border-radius: var(--radius, 14px);
    padding: 24px 26px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.quick-facts-title {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}
.quick-fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f2f5f2;
    gap: 12px;
}
.quick-fact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.quick-fact-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quick-fact-left svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}
.quick-fact-left span {
    font-size: 12.5px;
    color: var(--text-l);
    font-weight: 600;
}
.quick-fact-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    text-align: right;
}

/* ── CONTACT CARD (sidebar) ── */
.contact-card {
    background: linear-gradient(135deg, #1e5c27 0%, #2a7d34 100%);
    border-radius: var(--radius, 14px);
    padding: 24px 26px;
    box-shadow: 0 6px 28px rgba(42, 125, 52, 0.25);
}
.contact-card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.contact-card-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 20px;
    line-height: 1.5;
}
.contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.contact-phone:hover {
    opacity: 0.85;
}
.contact-phone svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.contact-btns {
    display: flex;
    gap: 8px;
}
.contact-btn-soc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 11px 10px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.22s;
    backdrop-filter: blur(4px);
}
.contact-btn-soc:hover {
    background: rgba(255, 255, 255, 0.25);
}
.contact-btn-soc svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.open {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}
.lightbox-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.lightbox-nav.prev {
    left: 20px;
}
.lightbox-nav.next {
    right: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .page-body {
        grid-template-columns: 1fr;
    }
    .col-side {
        position: static;
    }
    .key-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .obj-title-h1 {
        font-size: 20px;
    }
    .page-body {
        padding: 24px 16px 60px;
        gap: 20px;
    }
    .section-card,
    .obj-header {
        padding: 22px 20px;
    }
    .key-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .key-stats {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-thumb {
        width: 72px;
        height: 50px;
    }
}
