/* Отдельные страницы нового дизайна: квартиры и политика (подключается после v2.css) */
.subpage { background: var(--paper); }
.subpage .hdr { color: var(--navy); }

/* Галерея: широкие фото целиком (без обрезки) */
.ap-gallery { margin-top: 64px; background: var(--navy); }
.gal-main { position: relative; width: 100%; max-width: 1600px; margin: 0 auto; aspect-ratio: 2.17 / 1; max-height: 74vh; max-height: 74dvh; overflow: hidden; }
.gal-main picture { position: absolute; inset: 0; display: block; }
.gal-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s ease; }
.gal-main img.is-on { opacity: 1; }
.gal-arrows { position: absolute; left: 18px; right: 18px; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }
.gal-arrows .ico-btn { pointer-events: auto; }
.gal-count { position: absolute; right: 18px; bottom: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(11, 27, 51, .6); color: #fff; font-size: 12px; }
.gal-thumbs { display: flex; gap: 6px; padding: 10px var(--pad); overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { flex: 0 0 96px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .55;
                     background: none; transition: opacity .3s, border-color .3s; }
.gal-thumbs button.is-on { opacity: 1; border-color: var(--gold); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Вступление + карточка цен */
.ap-intro { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.ap-back { display: inline-block; margin-bottom: 22px; color: var(--muted); text-decoration: none; font-size: 14px; }
@media (hover: hover) { .ap-back:hover { color: var(--navy); } }
.ap-lead { font-size: 18px; color: #3d4b5c; margin: 20px 0 28px; }
.ap-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ap-facts li { padding: 18px 14px 0 0; display: flex; flex-direction: column; gap: 2px; }
.ap-facts b { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--navy); line-height: 1.1; }
.ap-facts span { font-size: 13px; color: var(--muted); }
.ap-card { position: sticky; top: 88px; background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 20px 60px rgba(11, 27, 51, .08); display: flex; flex-direction: column; gap: 12px; }
.ap-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 30px; color: var(--navy); }
.ap-card-sub { margin: -6px 0 6px; font-size: 14px; color: var(--muted); }
.ap-prices { margin-bottom: 8px; }
.ap-prices div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ap-prices b { color: var(--navy); }
.ap-card .btn--outline { font-size: 14px; }

/* Секции */
.ap-section { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad); border-top: 1px solid var(--line); }
.h2--sm { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 18px; }
.ap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.ap-rules { list-style: none; padding: 0; margin: 0 0 16px; }
.ap-rules li { padding: 14px 0; border-bottom: 1px solid var(--line); color: #4a5768; font-size: 15px; }
.ap-rules b { display: block; color: var(--navy); margin-bottom: 2px; }
.ap-link { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.ap-text { color: #4a5768; font-size: 16px; }
.ap-addr { margin: 16px 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--sand); color: var(--navy); font-size: 15px; }
.ap-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-others-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 6px; }
.ap-other { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; }
.ap-other img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .ap-other:hover img { transform: scale(1.06); } }
.ap-other::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 27, 51, .8), rgba(11, 27, 51, 0) 55%); }
.ap-other span { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-family: var(--font-display); font-size: 26px; }

/* Политика конфиденциальности */
.doc { max-width: 820px; margin: 0 auto; padding: 120px var(--pad) 80px; }
.doc h1 { margin-bottom: 8px; }
.doc-date { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--navy); margin: 36px 0 10px; }
.doc p, .doc li { color: #3d4b5c; font-size: 16px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--navy); }
.doc-contacts { padding: 18px 20px; border-radius: 16px; background: var(--sand); color: var(--navy); line-height: 1.8; }

@media (max-width: 1000px) {
    .ap-intro { grid-template-columns: 1fr; }
    .ap-card { position: static; }
    .ap-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .ap-gallery { margin-top: 64px; }
    .gal-main { max-height: none; }
    .gal-arrows { left: 10px; right: 10px; }
    .gal-arrows .ico-btn { width: 40px; height: 40px; }
    .gal-thumbs button { flex-basis: 72px; height: 42px; }
    .ap-facts { grid-template-columns: 1fr 1fr; }
    .ap-others-grid { grid-template-columns: 1fr; }
    .doc { padding-top: 96px; }
}
@media (orientation: landscape) and (max-height: 500px) {
    .ap-gallery { margin-top: 54px; }
    .gal-main { max-height: 82vh; max-height: 82dvh; }
}
