/* Страницы «Аренда квартир в …» (app/render/area_page.py): поверх landing.css — те же шрифт,
   монохром, жёлтая кнопка и тёмный подвал. Колонка контента, цифры крупно. */
.area-top { position: static; justify-content: space-between; padding: 0 40px; max-width: 1280px; margin: 0 auto; }
.area-langs { display: flex; gap: 4px; font-size: 14px; }
.area-langs a { padding: 6px 10px; border-radius: 999px; color: var(--hint); text-decoration: none; }
.area-langs a[aria-current] { color: var(--ink); font-weight: 600; background: var(--plate); }
@media (hover: hover) { .area-langs a:hover { color: var(--ink); } }

.area { padding-top: 8px; padding-bottom: 96px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--hint); }
.crumbs a { color: var(--hint); text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); text-decoration: underline; } }
.crumbs [aria-current] { color: var(--ink); }
.crumbs .sep { opacity: .5; }

.area h1 { margin-top: 20px; font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.area-kicker { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--hint); }
.area-kicker + h1 { margin-top: 8px; }
.price-card em.chg { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.area-cite { margin-top: 24px; font-size: 14px; color: var(--hint); }
.area-cite a, .area-note a { color: var(--ink); }
.area-info { margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.area-info a { background: var(--plate); border-color: var(--plate); }
.area-doc .area-sec { margin-top: 48px; max-width: 760px; }
.area-doc .area-sec h2 { font-size: clamp(22px, 2.6vw, 30px); }
.area-lead { margin-top: 16px; max-width: 640px; font-size: 19px; line-height: 1.5; color: var(--hint); text-wrap: pretty; }

.area-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 40px; }
.area-stats div { padding: 24px; border-radius: 28px; background: var(--plate); }
.area-stats b { display: block; font-size: clamp(40px, 5vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.area-stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--hint); }
.area-now { margin-top: 24px; max-width: 760px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }

.area-sec { margin-top: 72px; }
.area-sec h2, .area-cta h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.area-sec > p { margin-top: 16px; max-width: 760px; font-size: 17px; line-height: 1.55; }
.area-sec > .area-note { margin-top: 12px; font-size: 14px; color: var(--hint); }

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.price-card { padding: 24px; border-radius: 28px; border: 1px solid var(--line); }
.price-card span { display: block; font-size: 15px; color: var(--hint); }
.price-card b { display: block; margin-top: 6px; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.price-card small { font-size: 17px; font-weight: 600; color: var(--hint); letter-spacing: 0; margin-left: 2px; }
.price-card em { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--hint); }

.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; }
.area-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.area-table th, .area-table td { padding: 14px 20px; text-align: right; white-space: nowrap; }
.area-table th:first-child { text-align: left; }
.area-table thead th { font-size: 14px; font-weight: 600; color: var(--hint); background: var(--fog); }
.area-table tbody tr + tr th, .area-table tbody tr + tr td { border-top: 1px solid var(--line); }
.area-table tbody th { font-weight: 600; }
.area-table a { text-decoration: none; }
@media (hover: hover) { .area-table a:hover { text-decoration: underline; } }

.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px 16px; }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.c-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--plate); }
.c-photo img, .c-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.c-photo .ph { display: block; }
.c-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.c-badges i { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-style: normal; font-size: 13px; font-weight: 600; }
.c-badges .b-owner { background: var(--ink); color: #fff; }
.c-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px 0; flex: 1; }
.c-price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.c-price small { font-size: 14px; font-weight: 600; color: var(--hint); letter-spacing: 0; margin-left: 1px; }
.c-meta { font-size: 15px; }
.c-where { font-size: 14px; color: var(--hint); }
.c-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--hint); }
@media (hover: hover) {
  .card:hover .c-photo img { transform: scale(1.03); }
  .card:hover .c-foot span:last-child { color: var(--ink); }
}
.c-photo img { transition: transform .4s ease; }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 22px; }

.area-cta { margin-top: 80px; padding: 56px; border-radius: 48px; background: var(--plate); text-align: center; }
.area-cta p { margin: 16px auto 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--hint); }
.area-cta .btn { margin-top: 28px; }

.area-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 24px; }
.area-links a { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; }
.area-links a b { font-size: 17px; }
.area-links a span { font-size: 14px; color: var(--hint); }
.area-links a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.area-links a[aria-current] span { color: #c7c7cc; }
@media (hover: hover) { .area-links a:not([aria-current]):hover { border-color: var(--ink); } }
/* порядок карточек */
.area-sort { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.area-sort a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; text-decoration: none; color: var(--ink); }
.area-sort a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) { .area-sort a:not([aria-current]):hover { border-color: var(--ink); } }
.area-sort + .area-note { margin-top: 12px; }
/* ориентиры у станции метро — плитки без ссылок */
.area-points > div { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 20px; background: var(--fog); }
.area-points > div b { font-size: 17px; }
.area-points > div span { font-size: 14px; color: var(--hint); }

@media (max-width: 760px) {
  .area-top { padding: 0 16px; height: 64px; }
  .area-langs a { padding: 6px 8px; }
  .area-sec { margin-top: 56px; }
  .area-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
  .area-stats div, .price-card { padding: 20px; border-radius: 24px; }
  .area-stats b { font-size: 40px; }
  .area-cta { padding: 40px 20px; border-radius: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .c-photo { border-radius: 16px; }
  .c-badges { left: 6px; top: 6px; gap: 4px; }
  .c-badges i { padding: 3px 8px; font-size: 11px; }
  .c-body { padding: 8px 2px 0; }
  .c-price { font-size: 18px; }
  .c-meta { font-size: 13px; }
  .c-where { font-size: 12px; }
  .c-foot { flex-direction: column; gap: 2px; font-size: 12px; }
  .area-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .area-links a { padding: 12px 14px; border-radius: 16px; }
  .area-links a b { font-size: 15px; }
  .area-links a span { font-size: 13px; }
  .area-points > div { padding: 12px 14px; border-radius: 16px; }
  .area-points > div b { font-size: 15px; }
  .area-points > div span { font-size: 13px; }
  .area-table { font-size: 14px; }
  .area-table th, .area-table td { padding: 12px 8px; }
  .area-table thead th { white-space: normal; line-height: 1.25; }
  .area-table th:first-child { padding-left: 16px; white-space: normal; }
  .area-table td:last-child, .area-table thead th:last-child { padding-right: 16px; }
}
@media (max-width: 420px) {
  .area-langs a { font-size: 13px; padding: 4px 6px; }
  .brand span { display: none; }
  .area-table { font-size: 13px; }
  .area-table th, .area-table td { padding: 11px 6px; }
  .area-table th:first-child { padding-left: 12px; }
  .area-table td:last-child, .area-table thead th:last-child { padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .c-photo img { transition: none; } }

/* Индекс аренды: график по неделям (SVG, app/render/info_pages.py) — 1 комната серым, 2 — тёмным, 3 — жёлтым */
.ix-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; }
.ix-legend li { display: flex; align-items: center; gap: 8px; }
.ix-legend li::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; }
.ix-chart { margin: 12px 0 0; }
.ix-chart svg { display: block; width: 100%; max-width: 640px; height: auto; overflow: visible; }
.ix-chart .g { stroke: var(--line); stroke-width: 1; }
.ix-chart text { font-size: 12px; fill: var(--hint); }
.ix-chart .ya { text-anchor: end; }
.ix-chart .xa { text-anchor: middle; }
.ix-chart polyline { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ix-chart circle { fill: currentColor; }
.ix-chart .end { font-weight: 600; fill: currentColor; }
.s1 { color: #9a9a9a; }
.s2 { color: var(--ink); }
.s3 { color: #e0a800; }
.ix-weeks { margin-top: 16px; }
.ix-weeks summary { cursor: pointer; font-size: 15px; font-weight: 600; }
.ix-weeks small { color: var(--hint); font-weight: 400; }
.ix-csv a { font-weight: 600; color: var(--ink); }

/* Карта цен по районам на странице индекса (app/render/price_map.py) */
.price-map { margin: 12px 0 8px; }
.price-map svg { display: block; width: 100%; max-width: 640px; height: auto; }
.price-map path { stroke: #ffffff; stroke-width: 2; stroke-linejoin: round; }
.price-map a path { transition: opacity .15s; }
.price-map a:hover path, .price-map a:focus-visible path { opacity: .82; }
.price-map a:focus-visible { outline: none; }
.price-map a:focus-visible path { stroke: var(--ink); stroke-width: 4; }
.pm-labels text { text-anchor: middle; pointer-events: none; }
.pm-labels .pm-n { font-size: 11px; }
.pm-labels .pm-v { font-size: 13px; font-weight: 600; }
.pm-dark { fill: var(--ink); }
.pm-light { fill: #ffffff; }
.pm-legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--hint); }
.pm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (prefers-reduced-motion: reduce) { .price-map a path { transition: none; } }
/* На телефоне карта ~350 px вместо 640 — подписи внутри SVG мельчают вдвое: крупнее */
@media (max-width: 560px) {
  .pm-labels .pm-n { font-size: 17px; }
  .pm-labels .pm-v { font-size: 20px; }
}
