/* Khu dân cư Phố Xanh (phoxanh) — восстановление из веб-архива (снимок 2021-05-15) */
:root {
  --brand: #1f8a4c;
  --brand-dark: #14663a;
  --accent: #f5a623;
  --ink: #232323;
  --ink-soft: #5c5c5c;
  --line: #e2e2e2;
  --bg: #f3f7f3;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
html { scroll-padding-top: 128px; }
.btn { display: inline-block; padding: 12px 24px; background: var(--accent); color: #232323; font-weight: 700; border-radius: 3px; }
.btn:hover { background: #e0940f; text-decoration: none; }
.btn--ghost { background: var(--brand); color: #fff; }
.btn--ghost:hover { background: var(--brand-dark); }

.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 40; }
.site-header__inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.brand img { height: 52px; width: auto; }
.site-header__hotline { margin: 0 0 0 auto; font-weight: 700; }
.site-header__hotline span { color: var(--ink-soft); font-weight: 500; font-size: 12px; text-transform: uppercase; }
.site-header__hotline a { color: var(--brand-dark); font-size: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle__bar { display: block; height: 2px; background: var(--brand-dark); margin: 5px 0; }
.primary-nav { background: var(--brand); }
.primary-nav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.primary-nav__list a { display: block; padding: 12px 16px; color: #fff; font-weight: 500; text-transform: uppercase; font-size: 13px; }
.primary-nav__list a:hover { background: var(--brand-dark); text-decoration: none; }
.primary-nav__list a:focus-visible { outline-color: #fff; }

.hero { background: linear-gradient(rgba(20,102,58,.82), rgba(20,102,58,.82)), var(--brand-dark) url("../img/kdc-pho-xanh-ben-tre.jpg") no-repeat center / cover; color: #fff; padding: 56px 0; }
.hero__panel { max-width: 760px; }
.hero__eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--accent); }
.hero h1 { font-size: clamp(28px, 5vw, 44px); text-transform: uppercase; }
.hero p { margin: 16px 0 0; font-size: 17px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.section { padding: 44px 0; }
.section--alt { background: var(--bg); }
.section-title { font-size: clamp(21px, 2.6vw, 28px); color: var(--brand-dark); text-transform: uppercase; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); display: inline-block; }
.section p { max-width: 84ch; margin: 0 0 14px; }

.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.specs dt { padding: 12px 16px; background: var(--bg); font-weight: 700; border-bottom: 1px solid var(--line); }
.specs dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.specs dt:last-of-type, .specs dd:last-child { border-bottom: 0; }

.conn { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.conn li { min-width: 0; display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; background: #fff; border-left: 3px solid var(--brand); }
.section--alt .conn li { background: var(--bg); }
.conn__d { flex: none; font-weight: 700; color: var(--accent); min-width: 56px; }

.perks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.perks li { min-width: 0; padding: 14px 16px 14px 40px; position: relative; background: var(--bg); border-radius: 4px; font-weight: 500; }
.perks li::before {
  content: "";
  position: absolute;
  left: 16px; top: 18px;
  width: 6px; height: 11px;
  border: solid var(--brand);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.posts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posts > * { min-width: 0; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; }
.post__media { margin: 0; aspect-ratio: 5/3; background: #eee; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__title { font-size: 16px; color: var(--brand-dark); padding: 14px 16px; }
.post:not(:has(.post__media)) .post__title { border-top: 3px solid var(--brand); }

.site-footer { background: var(--brand-dark); color: #cfe3d8; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; padding: 40px 18px; }
.site-footer__grid > * { min-width: 0; }
.footer-col h2 { color: #fff; font-size: 17px; text-transform: uppercase; margin-bottom: 14px; }
.footer-contact { font-style: normal; }
.footer-contact p { margin: 0 0 8px; }
.footer-contact a { color: #fff; }
.footer-col p { margin: 0 0 14px; }
.site-footer__bottom { background: #0e4a29; }
.site-footer__bottom .wrap { padding: 14px 18px; }
.site-footer__bottom p { margin: 0; font-size: 14px; }

@media (max-width: 767px) {
  html { scroll-padding-top: 128px; }
  .nav-toggle { display: block; }
  .site-header__hotline { order: 3; width: 100%; margin-left: 0; text-align: center; }
  .site-header__inner { flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; }
  .primary-nav__list li { border-top: 1px solid rgba(255,255,255,.12); }
  .conn, .perks, .posts { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-bottom: 0; padding-bottom: 2px; }
}
