:root {
  --blue: #1a3f7a;
  --blue-dark: #122c56;
  --orange: #e56f12;
  --orange-dark: #c55d0c;
  --ink: #1a1f27;
  --muted: #5a6370;
  --line: #d8dee6;
  --bg: #e8ecf1;
  --card: #ffffff;
  --radius: 6px;
  --max: 1180px;
  --font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 18px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.logo {
  width: min(188px, 62vw);
}

.ad-bar {
  background: #fff4ea;
  border-bottom: 1px solid #f0d2b0;
  color: #8a4b16;
  font-size: 0.92rem;
}

.ad-bar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.ad-pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  padding: 24px 0 48px;
}

.article-card,
.side-card,
.site-footer .inner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero,
.house,
.author-photo,
.modal-panel,
.modal-close {
  border-radius: var(--radius);
}

.article-card {
  padding: 32px 36px 40px;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.meta strong {
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.22;
  color: var(--blue-dark);
  margin: 10px 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.45rem;
  color: var(--blue-dark);
  margin: 32px 0 12px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.lead,
.article-card p {
  color: #2b323c;
}

.hero {
  width: 100%;
  margin: 6px 0 22px;
  object-fit: cover;
  max-height: 400px;
}

.checks {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 7px 0 7px 26px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

.steps {
  margin: 0 0 18px;
  padding-left: 22px;
}

.steps li {
  margin: 8px 0;
}

.quote {
  margin: 18px 0;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--orange);
  font-style: italic;
  color: #333b46;
}

.quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: var(--blue);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 8px 0 20px;
  padding: 16px 16px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.02rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.cta-wrap {
  margin: 18px 0 8px;
}

.side {
  position: sticky;
  top: 16px;
}

.side-card {
  padding: 26px 22px 28px;
  animation: riseIn 0.55s 0.08s ease both;
}

.side-card h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.22;
  color: var(--blue-dark);
  text-align: left;
  letter-spacing: -0.02em;
}

.stars {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1.12rem;
  margin-bottom: 16px;
}

.stars span:first-child {
  color: var(--orange);
  letter-spacing: 1px;
}

.house {
  width: 100%;
  margin-bottom: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.side-card .checks {
  font-size: 1.16rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.side-card .checks li {
  padding: 4px 0 4px 28px;
}

.side-card .checks li::before {
  top: 12px;
}

.side-card .cta {
  font-size: 1.08rem;
  margin-bottom: 0;
  padding: 18px 16px;
}

.mobile-offer {
  display: none;
  margin: 8px 0 22px;
}

.map-block {
  margin-top: 36px;
  padding-top: 8px;
}

.map-intro {
  text-align: center;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.map-only {
  max-width: 560px;
  margin: 0 auto;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  fill: #c5d7ee;
  stroke: var(--blue);
  stroke-width: 0.85;
}

.map-svg path {
  cursor: pointer;
  transition: fill 0.18s ease;
}

.map-svg path:hover {
  fill: var(--orange);
}

.map-hint {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin: 10px 0 0;
}

.author-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  padding: 22px 0 4px;
  margin-top: 36px;
  border-top: 2px solid var(--blue-dark);
  align-items: start;
}

.author-photo {
  width: 128px;
  height: 160px;
  object-fit: cover;
  object-position: center 18%;
}

.author-body {
  padding: 2px 0 0;
}

.author-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.author-card h3 {
  margin: 0 0 2px;
  font-size: 1.4rem;
  color: var(--blue-dark);
}

.author-role {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 1.02rem;
  font-weight: 600;
}

.author-card p {
  margin: 0;
}

.author-bio {
  color: #3a424d;
  font-size: 1.05rem;
  line-height: 1.6;
}

.site-footer {
  padding: 0 0 40px;
}

.site-footer .inner {
  padding: 22px 24px;
  text-align: center;
}

.site-footer p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.legal-links button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  background: rgba(18, 28, 46, 0.5);
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  width: min(680px, 100%);
  max-height: min(82vh, 820px);
  overflow: auto;
  background: #fff;
  padding: 22px 24px 28px;
  animation: riseIn 0.22s ease;
}

.modal-panel h2 {
  margin-top: 0;
}

.modal-close {
  float: right;
  border: 0;
  background: #eceff3;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.company-block {
  line-height: 1.7;
}

.reveal {
  animation: riseIn 0.55s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .mobile-offer {
    display: block;
  }

  .article-card {
    padding: 22px 18px 28px;
  }

  body {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .author-card {
    grid-template-columns: 96px 1fr;
    gap: 14px;
  }

  .author-photo {
    width: 96px;
    height: 120px;
  }

  .author-body {
    padding: 0;
  }

  .ad-bar .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .side-card,
  .modal,
  .modal-panel,
  .cta,
  .map-svg path {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
