/* Открытая главная страница: картинки дома во весь экран, рассказ, разделы. Цвета и тема — как у сайта */
:root {
  --bg: #f3f5f8; --panel: #fff; --text: #17212b; --muted: #6b7785; --line: #d5dbe3; --accent: #2f7de1;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1720; --panel: #17212b; --text: #e6edf3; --muted: #8b98a6; --line: #2a3745; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

#hero { position: relative; height: min(78vh, 56.25vw + 120px); min-height: 320px; overflow: hidden; background: #8fb6dc; }
#hero .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}
#hero .slide.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #hero .slide { transition: none; } }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 28px; text-align: center; color: #fff;
  background: linear-gradient(to top, rgb(10 16 26 / .72), rgb(10 16 26 / 0));
}
.hero-text h1 { margin: 0; font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: .01em; }
.hero-text p { margin: 6px 0 16px; font-size: clamp(16px, 2.4vw, 20px); opacity: .92; }
.btn { display: inline-block; padding: 10px 28px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.btn:hover { filter: brightness(1.08); }

main { max-width: 980px; margin: 0 auto; padding: 28px 16px 40px; }
.about h2 { font-size: 22px; margin: 0 0 8px; }
.about p { margin: 0 0 12px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.card {
  display: block; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); text-decoration: none; transition: transform .1s, border-color .1s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card b { display: block; font-size: 17px; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; }
.note { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }
