/* mskver.ru (ЖК «Можайский сквер», сайт Димы) — правки только под этот домен.
   Общий land.css не трогаем. Все правки — по просьбам Алексея 19.10.2026. */

/* Цвет нашего слоя (стрелка «наверх», полоска прогресса) — зелёный сайта,
   без этого слой брал красный по умолчанию */
:root { --accent: #587349; }

/* Меню в шапке: при наведении под пунктом вырастает тонкая зелёная черта */
@media (hover: hover) and (pointer: fine) {
  .main-nav a { position: relative; transition: color .25s ease; }
  .main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
    background: var(--green); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }
  .main-nav a:hover { color: var(--green-d); }
  .main-nav a:hover::after { transform: scaleX(1); }
}

/* «Способы оплаты»: карточка стоит на месте (между карточками серая подложка
   в 1px — при подъёме она вылезала полосой), чуть растёт и зеленеет заголовок */
@media (hover: hover) and (pointer: fine) {
  .pay-grid .pay-card:hover,
  .pay-grid .pay-card.land-tile:hover > * { transform: none; }
  .pay-grid .pay-card > b { transition: transform .35s ease, color .35s ease; transform-origin: 0 100%; }
  .pay-grid .pay-card:hover > b,
  .pay-grid .pay-card.land-tile:hover > b { transform: scale(1.06); color: var(--green-d); }
}

/* Планировки: без лупы (увеличения нет и не нужно) и крупнее.
   Картинки обрезаны по рисунку (оригиналы — /var/www/lands/.originals/mskver.ru). */
.card-plan { cursor: pointer; aspect-ratio: 1 / 1; }
.card-plan img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.flat-plan img { cursor: default; max-height: min(720px, 76vh); }
@media (min-width: 1100px) {
  .flat-card { max-width: 1280px; grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr); }
}
@media (max-width: 900px) {
  .card-plan { aspect-ratio: 5 / 4; }
  .flat-plan img { max-height: 46vh; }
}

/* Фильтр квартир (20.10, вместо кнопок типа и одного ползунка «до»):
   комнатность, стоимость / площадь / этаж «от — до», сортировка */
.qf { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 18px clamp(20px, 2.6vw, 44px);
  align-items: end; padding: 22px clamp(16px, 2vw, 32px) 16px; margin-bottom: 16px; background: var(--soft); }
.qf-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qf-chips { display: flex; gap: 6px; }
.qf-chips button { font: inherit; font-size: 13px; white-space: nowrap; min-height: 40px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--line2); background: #FFFFFF; color: var(--text2); transition: background .2s, border-color .2s, color .2s; }
.qf-chips button small { margin-left: 4px; font-size: 11px; color: var(--muted2); }
.qf-chips button.is-on { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.qf-chips button.is-on small { color: rgba(255, 255, 255, .7); }
.qf-chips button:disabled { opacity: .45; cursor: default; }
.qf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qf-val { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qf-val b { font-family: Jost, sans-serif; font-weight: 400; font-size: 17px; color: var(--ink); }
/* две дорожки поверх одной шкалы; ловят нажатия только кругляши */
.qf-range { --r: 9px; position: relative; height: 30px; cursor: pointer; touch-action: pan-y; }
.qf-track { position: absolute; left: var(--r); right: var(--r); top: 14px; height: 2px; background: var(--line2); }
.qf-track i { position: absolute; top: 0; bottom: 0; left: calc(var(--a, 0) * 100%); right: calc((1 - var(--b, 1)) * 100%); background: var(--green); }
.qf-range input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 30px; margin: 0; padding: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.qf-range input[data-hi] { z-index: 2; }
.qf-range input[type=range]:focus { outline: none; }
.qf-range input[type=range]::-webkit-slider-runnable-track { height: 30px; background: none; border: 0; }
.qf-range input[type=range]::-moz-range-track { height: 30px; background: none; border: 0; }
.qf-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin-top: calc(15px - var(--r)); border-radius: 50%; box-sizing: border-box;
  background: #FFFFFF; border: 2px solid var(--green); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: grab; }
.qf-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border-radius: 50%; box-sizing: border-box; background: #FFFFFF; border: 2px solid var(--green); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: grab; }
.qf-range input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; }
.qf-range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(88, 115, 73, .22); }
.qf-range input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(88, 115, 73, .22); }
.qf-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.qf-found { font-size: 14px; color: var(--muted); }
.qf-found b { font-weight: 500; color: var(--ink); }
.qf-reset { font: inherit; font-size: 13px; color: var(--green-d); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.qf-sort { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.qf-sort select { font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; padding: 8px 34px 8px 12px; border: 1px solid var(--line2); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23587349' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center; }
/* наш слой поднимает «кнопки» при наведении — в фильтре это лишнее */
.qf .land-cta:hover, .qf .land-cta:active { transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .qf-chips button:not(.is-on):not(:disabled):hover { border-color: var(--olive); color: var(--green-d); }
}
@media (pointer: coarse) { .qf-range { --r: 12px; } }
@media (max-width: 1100px) {
  .qf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qf-rooms { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .qf { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .qf-chips { display: grid; grid-template-columns: repeat(4, 1fr); }
  .qf-chips button { padding: 0 4px; font-size: 12px; }
  .qf-chips button small { display: none; }
  .qf-sort { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* Первый экран без перегруза (20.10, Алексей): главный акцент один — заголовок,
   цена и кнопка «Выбрать квартиру»; остальное тише */
/* шапка: без плашки «Дом сдан»; «Заказать звонок» — контурная и без бегущего блика */
.logo-row .badge-out { display: none; }
.btn-call { background: transparent; color: var(--green-d); border: 1px solid var(--olive); }
.btn-call:hover { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.btn-call::after { display: none; }
/* две плашки → одна спокойная строка */
.hero-badges { gap: 0; }
.badge-line, .badge-fill { padding: 0; border: 0; background: none; color: var(--green-d);
  font-size: 11px; font-weight: 400; letter-spacing: .2em; }
.badge-fill::before { content: "·"; margin: 0 .7em; }
/* «28 из 80» — тихой строкой под текстом, а не огромной цифрой над заголовком */
.hero-text > div:has(> .counter-row) { display: flex; flex-direction: column; }
.counter-row { order: 3; margin: 26px 0 0; align-items: baseline; gap: 8px; }
.counter-num { font-size: 20px; font-weight: 400; line-height: 1; color: var(--green-d); min-width: 0; }
.counter-cap { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text2);
  max-width: none; padding: 0; line-height: 1.4; }
/* цена рядом с кнопкой — заметнее */
.hero-actions .from { font-family: Jost, sans-serif; font-size: 22px; font-weight: 400; color: var(--ink); }
/* акция — одной строкой, без таймера с секундами */
.promo-timer { display: none; }
.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 32px; padding: 20px clamp(22px, 4vw, 68px); }
.promo-text { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.promo-title { font-size: clamp(20px, 1.8vw, 26px); }
/* цифры: четыре вместо пяти («Сдан» уже сказано выше) и мельче */
.stats .stat:nth-child(5) { display: none; }
.stats { padding-top: clamp(20px, 3vw, 44px); padding-bottom: clamp(20px, 3vw, 44px); }
.stat { padding-top: clamp(14px, 1.6vw, 22px); padding-bottom: clamp(14px, 1.6vw, 22px); }
.stat-v { font-size: clamp(22px, 2vw, 30px); margin-bottom: 8px; }
@media (max-width: 900px) {
  .promo .btn { width: 100%; }
}
/* на телефоне строка переносится — две строки без висящей точки */
@media (max-width: 600px) {
  .hero-badges { flex-direction: column; gap: 6px; }
  .badge-fill::before { content: none; }
}

/* Повторы и лишние акценты (20.10, Алексей: «пройдись как дизайнер») */
/* ряд цифр под акцией: каждая повторяла то, что сказано рядом */
.stats { display: none; }
/* «Место»: сквер у дома и два парка (фото с Викисклада, CC BY-SA, автор в подписи), кадры 4:3 */
#place .ph { aspect-ratio: 4 / 3; }
/* «Видовые»: «9 этажей» уже сказано в первом экране */
.two-nums { display: none; }
/* каталог: одна карточка на планировку, под ней табличка «этаж · площадь · цена» */
[data-show-all] { display: none !important; }
.card-layout .card-fin { color: var(--muted); }
.floor-rows { display: flex; flex-direction: column; margin-top: auto; border-top: 1px solid var(--line); }
.floor-head, .floor-row { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; align-items: baseline; }
.floor-head { padding: 10px 6px 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); }
.floor-head span:last-child { text-align: right; }
.floor-row { font: inherit; width: calc(100% + 12px); margin: 0 -6px; padding: 9px 12px; border: 0; border-top: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer; color: var(--text2); font-size: 13px; }
.floor-row b { font-weight: 500; font-size: 14px; color: var(--ink); }
.floor-row em { font-style: normal; font-family: Jost, sans-serif; font-size: 17px; color: var(--ink); text-align: right; white-space: nowrap; }
.floor-rows .land-cta:hover, .floor-rows .land-cta:active { transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .floor-row:hover { background: var(--soft); }
  .floor-row:hover em { color: var(--green-d); }
}
/* окно квартиры: площадь уже в заголовке, этаж — в выборе этажа */
.flat-rows > div:has([data-flat-area]) { display: none; }
.flat-pick:not(.is-hidden) + .flat-rows > div:has([data-flat-floor]) { display: none; }
.flat-pick { display: flex; flex-direction: column; gap: 10px; }
.flat-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.flat-pick-list button { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 12px; border: 1px solid var(--line2); background: #FFFFFF; color: var(--text2); font-size: 12px; text-align: left; cursor: pointer; }
.flat-pick-list button b { font-family: Jost, sans-serif; font-weight: 400; font-size: 16px; color: var(--ink); }
.flat-pick-list button.is-on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--soft); }
@media (hover: hover) and (pointer: fine) {
  .flat-pick-list button:not(.is-on):hover { border-color: var(--olive); }
}
/* ширина сайта 1760 → 1440 px: на больших экранах блоки не расползаются, по бокам поля */
.shell { max-width: 1440px; }
/* первый экран ниже; на средних экранах текст и фото друг под другом, фото не сплющивается */
.hero-grid { min-height: clamp(480px, 62vh, 640px); }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .hero-img { aspect-ratio: 4 / 3; }
}
/* «ЖК Можайский сквер» на телефоне — в одну строку с кнопками звонка и меню */
@media (max-width: 600px) {
  .site-header { flex-wrap: nowrap; }
  .logo { font-size: 15px; letter-spacing: .1em; }
}
@media (max-width: 360px) {
  .logo { font-size: 13px; }
}
/* подпись автора под фото и пометка про площади на планировках */
.ph-credit { display: block; margin-top: 4px; font-size: 11px; color: var(--muted2); }
.ph-credit:hover { color: var(--green-d); }
.plan-note { margin: 12px 0 0; font-size: 12px; color: var(--muted2); text-align: center; }
.plans-note { margin: 14px clamp(8px, 2vw, 40px) 0; font-size: 12px; color: var(--muted2); }
