/* makrent.ru — редизайн 2026, вёрстка студии
   Палитра: чернильный #1e2f48, холодный серый #5b6675, медный #b04a3a,
   панели #f3f5f7, линии #dfe3e8. Шрифты: Golos Text (UI), PT Mono (цифры). */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/golostext-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/golostext-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ptmono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ptmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- base ---------- */
:root {
  --ink: #1e2f48;
  --ink-hover: #16233a;
  --gray: #5b6675;
  --copper: #b04a3a;
  --copper-hover: #97392b;
  --panel: #f3f5f7;
  --line: #dfe3e8;
  --text: #26303d;
  --sans: 'Golos Text', 'Segoe UI', Tahoma, Arial, sans-serif;
  --mono: 'PT Mono', 'Menlo', 'Consolas', monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15.5px/1.55 var(--sans);
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 2px; }
a:hover { color: var(--copper-hover); text-decoration-color: currentColor; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 .9em; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
::selection { background: #dbe4ef; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.mono { font-family: var(--mono); }
.wrap { max-width: 1224px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: #fff; }
.header-top {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0 12px;
}
.brand {
  font-weight: 600; font-size: 22px; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand .tld { color: #8fa1ba; text-transform: none; letter-spacing: 0; }
.header-phone {
  margin-left: auto;
  font-family: var(--mono); font-size: 15px;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: #e8c0b8; }
.nav-toggle {
  display: none;
  font: 600 14px var(--sans); color: #fff;
  background: none; border: 1px solid #45587a; padding: 7px 12px;
  cursor: pointer;
}
.site-nav { border-top: 1px solid #33455f; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 10px 14px 11px;
  color: #cdd6e2; text-decoration: none; font-size: 14px; font-weight: 600;
}
.site-nav li:first-child a { padding-left: 0; }
.site-nav a:hover { color: #fff; }

/* ---------- layout ---------- */
.page { padding: 22px 0 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 28px; align-items: start; }
.layout > main { min-width: 0; }

/* ---------- panels / aside ---------- */
.panel { border: 1px solid var(--line); background: #fff; }
.panel + .panel { margin-top: 16px; }
.panel-hd {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.panel-bd { padding: 14px; }

.aside-metro { display: flex; gap: 12px; align-items: flex-start; padding: 14px; font-size: 14px; color: var(--gray); }
.aside-metro img { flex: none; }
.aside-metro a { font-weight: 600; }

.aside-cats { list-style: none; margin: 0; padding: 4px 0; }
.aside-cats li { border-top: 1px solid var(--line); }
.aside-cats li:first-child { border-top: 0; }
.aside-cats a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; text-decoration: none; font-size: 14.5px;
}
.aside-cats a:hover { background: var(--panel); }
.aside-links { list-style: none; margin: 0; padding: 8px 14px; font-size: 14.5px; }
.aside-links li { padding: 4px 0; }

/* quick request form */
.qform .panel-bd { display: grid; gap: 10px; }
.qform label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 3px; }
.qform input[type=text], .qform select, .qform textarea {
  width: 100%; padding: 7px 9px;
  border: 1px solid #c9d1da; background: #fff; color: var(--text);
  font: 400 14.5px/1.4 var(--sans);
}
.qform textarea { resize: vertical; }

/* buttons */
.btn {
  display: inline-block; cursor: pointer;
  font: 600 14.5px/1 var(--sans);
  padding: 11px 18px; border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-hover); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-hover); color: #fff; }

input, select, textarea, button { font-family: var(--sans); }

/* ---------- search panel ---------- */
.search-panel { border: 1px solid var(--line); background: var(--panel); padding: 16px; margin: 0 0 18px; }
.search-panel h2 { font-size: 16px; margin: 0 0 12px; }
.search-grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.search-grid .fld { min-width: 0; }
.search-grid label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.search-grid select, .search-grid input[type=text] {
  padding: 8px 9px; border: 1px solid #c9d1da; background: #fff;
  font-size: 14.5px; color: var(--text); max-width: 100%;
}
.search-grid input.num { width: 84px; font-family: var(--mono); font-size: 14px; }
.price-fld { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gray); }
.cur-btn {
  padding: 8px 10px; border: 1px solid #c9d1da; background: #fff;
  font: 400 14px var(--mono); color: var(--gray); cursor: pointer;
}
.cur-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
select.metro_sel { max-width: 250px; }
option.m1mtbg, option.m2mtbg, option.m3mtbg, option.m4mtbg, option.m5mtbg,
option.m6mtbg, option.m7mtbg, option.m8mtbg, option.m9mtbg, option.m10mtbg,
option.m11mtbg, option.allmetro, option.cntmetro, option.cnt3metro { font-weight: 700; }

.select-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0 2px; font-size: 13.5px; color: var(--gray);
}
.select-note input { margin-top: 3px; }

/* ---------- listing rows ---------- */
.offers-list { border: 1px solid var(--line); border-bottom: 0; margin: 0 0 18px; }
.offer-row {
  display: grid;
  grid-template-columns: 28px 96px minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color .12s ease;
}
.offer-row:hover { background: var(--panel); }
.offer-check { padding-top: 2px; }
.offer-thumb {
  display: block; width: 96px; height: 72px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.offer-thumb img { width: 94px; height: 70px; object-fit: cover; display: block; }
.offer-main { min-width: 0; }
.offer-title {
  display: inline-block; font-weight: 600; font-size: 15.5px;
  text-decoration: none; margin: 0 0 4px;
}
.offer-title:hover { text-decoration: underline; }
.offer-params {
  font-family: var(--mono); font-size: 13px; color: var(--gray);
  display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0 0 6px;
}
.offer-params .pp-metro { flex: 0 0 240px; min-width: 0; }
.offer-params .pp-rooms { flex: 0 0 120px; }
.offer-snippet { font-size: 14px; color: var(--text); margin: 0 0 4px; }
.offer-phone { font-size: 13px; color: var(--gray); }
.offer-phone .mono { white-space: nowrap; }
.offer-price {
  font-family: var(--mono); font-size: 16px; color: var(--copper);
  white-space: nowrap; text-align: right;
}

/* section headings in listing flow */
.section-hd {
  font-size: 18px; font-weight: 600; color: var(--ink);
  margin: 26px 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}

/* ---------- pagination ---------- */
.pager { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager a, .pager .current, .pager .gap {
  min-width: 34px; height: 34px; line-height: 32px; padding: 0 8px;
  text-align: center; font-family: var(--mono); font-size: 14px;
  border: 1px solid var(--line); text-decoration: none; display: inline-block;
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border-color: transparent; }

/* ---------- lead form (listing bottom) ---------- */
.lead-form { border: 1px solid var(--line); background: var(--panel); padding: 16px; margin: 0 0 18px; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-grid .full { grid-column: 1 / -1; }
.lead-form label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.lead-form input[type=text], .lead-form textarea {
  width: 100%; padding: 8px 9px; border: 1px solid #c9d1da; background: #fff;
  font: 400 14.5px/1.4 var(--sans); color: var(--text);
}
.lead-form textarea { resize: vertical; }

/* ---------- card page ---------- */
.card-hd { margin: 0 0 10px; font-size: 23px; }
.card-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline;
  border: 1px solid var(--line); border-left: 3px solid var(--copper);
  background: var(--panel);
  padding: 13px 16px; margin: 0 0 18px;
  font-family: var(--mono);
}
.card-price { font-size: 22px; color: var(--copper); white-space: nowrap; }
.card-fact { font-size: 14.5px; color: var(--text); }
.card-note { font-size: 15px; margin: -8px 0 18px; color: var(--ink); font-weight: 600; }
.card-desc { max-width: 70ch; }

.similar { margin: 24px 0 8px; }
.similar ul { list-style: none; margin: 0; padding: 0; }
.similar li { border-bottom: 1px solid var(--line); }
.similar a { display: block; padding: 8px 2px; text-decoration: none; font-size: 14.5px; }
.similar a:hover { background: var(--panel); }
.back-link { margin: 18px 0 0; font-size: 14px; }
.back-link a { color: var(--gray); }

/* gallery */
.gallery { margin: 0 0 20px; max-width: 640px; }
.gallery-main {
  border: 1px solid var(--line); background: var(--panel);
  min-height: 200px;
}
.gallery-main img { display: block; width: 100%; height: auto; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gthumb {
  padding: 0; border: 1px solid var(--line); background: var(--panel);
  width: 96px; height: 72px; overflow: hidden; cursor: pointer;
}
.gthumb img { width: 94px; height: 70px; object-fit: cover; display: block; }
.gthumb.active { border: 2px solid var(--copper); }
.gthumb.active img { width: 92px; height: 68px; }

/* ---------- specials ---------- */
.specials { margin-top: 30px; }
.special-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 6px 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-top: 0;
  transition: background-color .12s ease;
}
.specials .special-row:first-of-type,
.special-row.first { border-top: 1px solid var(--line); }
.special-row:hover { background: var(--panel); }
.special-thumb {
  width: 96px; height: 72px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.special-thumb img { width: 94px; height: 70px; object-fit: cover; display: block; }
.special-main { min-width: 0; }
.special-title { font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 3px; }
.special-title:hover { text-decoration: underline; }
.special-metro { font-family: var(--mono); font-size: 13px; color: var(--gray); margin: 0 0 5px; }
.special-snippet { font-size: 13.5px; color: var(--gray); margin: 0; }
.special-price { font-family: var(--mono); font-size: 15.5px; color: var(--copper); white-space: nowrap; }

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose h1 { font-size: 24px; margin: 0 0 14px; }
.prose h2 { font-size: 18px; margin: 22px 0 10px; }
.prose ol, .prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose-wide { max-width: none; }
.prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: none; margin: 0 0 1em; }
.prose-cols > div { min-width: 0; }
.prose img { border: 1px solid var(--line); }

/* order form */
.order-form { border: 1px solid var(--line); background: var(--panel); padding: 18px; max-width: 560px; margin: 6px 0 20px; }
.order-form .fld { margin-bottom: 12px; }
.order-form label { display: block; font-size: 13.5px; color: var(--gray); margin-bottom: 4px; }
.order-form label.req::after { content: ' *'; color: var(--copper); }
.order-form input[type=text], .order-form textarea {
  width: 100%; padding: 8px 9px; border: 1px solid #c9d1da; background: #fff;
  font: 400 14.5px/1.4 var(--sans); color: var(--text);
}
.order-form input.short { max-width: 130px; font-family: var(--mono); }
.order-form textarea { min-height: 100px; resize: vertical; }

/* ---------- legacy interactive map pages ---------- */
.legacy-map { overflow-x: auto; }
.legacy-map img { max-width: none; }
.legacy-map table { border-collapse: collapse; }
.legacy-map td { vertical-align: top; padding-right: 16px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 44px; background: var(--ink); color: #a9b6c7;
  font-size: 13.5px;
}
.site-footer .wrap { padding-top: 24px; padding-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 14px; padding: 0; list-style: none; }
.footer-links a { color: #cdd6e2; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-note { border-top: 1px solid #33455f; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.footer-note a { color: #cdd6e2; }

/* ---------- zebra for prose tables that stay tables ---------- */
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1em; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--panel); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .layout > aside { order: 2; }
  .prose-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; margin-left: 12px; }
  .header-phone { margin-left: auto; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 4px 0 8px; }
  .site-nav li:first-child a { padding-left: 14px; }
  .offer-row { grid-template-columns: 22px 72px minmax(0, 1fr); }
  .offer-thumb { width: 72px; height: 54px; }
  .offer-thumb img { width: 70px; height: 52px; }
  .offer-price { grid-column: 3; text-align: left; }
  .offer-params .pp-metro { flex-basis: auto; margin-right: 14px; }
  .offer-params .pp-rooms { flex-basis: auto; }
  .special-row { grid-template-columns: 72px minmax(0, 1fr); }
  .special-thumb { width: 72px; height: 54px; }
  .special-thumb img { width: 70px; height: 52px; }
  .special-price { grid-column: 2; }
  .lead-grid { grid-template-columns: 1fr; }
  .header-top { padding: 12px 0; }
  .brand { font-size: 19px; }
  .header-phone { font-size: 14px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 12px; }
  .offer-row { grid-template-columns: 20px minmax(0, 1fr); padding: 10px 10px; }
  .offer-thumb { display: none; }
  .offer-price { grid-column: 2; }
  .special-row { grid-template-columns: minmax(0, 1fr); }
  .special-thumb { display: none; }
  .special-price { grid-column: 1; }
  .card-price { font-size: 19px; }
  h1, .prose h1, .card-hd { font-size: 20px; }
}
