/* «Северный сруб» — дерево + хвойный зелёный */
:root {
  --bg: #f8f3eb;
  --surface: #eee4d4;
  --surface-2: #e0d1ba;
  --text: #21271f;
  --muted: #6c6a5c;
  --line: rgba(33, 39, 31, .13);
  --accent: #2e5a3b;
  --accent-hover: #234830;
  --accent-ink: #fff;
  --accent-2: #c98a3e;
  --dark: #1c2620;
  --radius: 10px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "PT Sans", system-ui, sans-serif;
}
.h1, .h2 { text-transform: uppercase; font-weight: 600; letter-spacing: .01em; }
.h3 { font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.btn { border-radius: 6px; text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-head); font-weight: 500; }
.eyebrow { color: var(--accent-2); }
.section--wood { background: #2a3a2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='40'%3E%3Cpath d='M0 20 Q100 8 200 20 T400 20' fill='none' stroke='%23ffffff' stroke-opacity='.04' stroke-width='2'/%3E%3C/svg%3E"); color: #f3ede2; }
.section--wood .lead { color: rgba(243,237,226,.72); }
.section--wood .tabs__btn { background: rgba(255,255,255,.08); color: #f3ede2; }
.section--wood .tabs__btn.is-active { background: var(--accent-2); color: #1c2620; }
.section--wood .price-row { border-color: rgba(255,255,255,.18); }
.section--wood .h2 { color: #fff; }

/* hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; padding: 120px 0 48px; color: #fff; }
.hero__img { position: absolute; inset: 0; border-radius: 0; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,22,.2) 0%, rgba(20,28,22,.55) 60%, rgba(20,28,22,.85) 100%); }
.hero__img:hover img { transform: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__card { max-width: 720px; }
.hero__kicker { display: inline-block; padding: 6px 14px; background: var(--accent-2); color: #1c2620; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; border-radius: 4px; margin-bottom: 20px; }
.hero .h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.05; }
.hero .h1 span { color: var(--accent-2); }
.hero .lead { color: rgba(255,255,255,.85); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn--ghost:hover { background: #fff; color: var(--text); }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid rgba(255,255,255,.25); }
.hero__facts li { padding: 20px 16px 0 0; }
.hero__facts b { display: block; font-family: var(--font-head); font-size: clamp(26px, 3vw, 40px); font-weight: 500; }
.hero__facts span { color: rgba(255,255,255,.75); font-size: 15px; }

/* tech */
.tech__panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.tech__visual { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.tech__visual--log { background: radial-gradient(circle at 50% 50%, #e3b77a 0 8%, #c8914f 9% 18%, #e0ae6e 19% 28%, #b97f42 29% 38%, #d9a465 39% 46%, #7a4e25 47% 50%, transparent 51%) 0 0 / 33.33% 50%, #4a3220; }
.tech__visual--beam { background: linear-gradient(0deg, transparent 0 46%, #6b4527 46% 50%, transparent 50%) 0 0 / 100% 25%, repeating-linear-gradient(90deg, #d9a96c 0 6px, #cf9d5f 6px 9px, #e2b57a 9px 14px), #d9a96c; }
.tech__visual--glulam { background: repeating-linear-gradient(0deg, #e8c48f 0 18px, #d8ae73 18px 20px, #efd0a0 20px 38px, #c99a5c 38px 40px); }

/* filters */
.filters { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: end; padding: 24px 28px; background: var(--surface); border-radius: var(--radius); }
.filters__group { display: grid; gap: 10px; }
.filters__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: var(--muted); }
.filters__label b { color: var(--text); font-size: 18px; }
.filters__group--range { min-width: 200px; padding-bottom: 12px; }
.select-sm { min-height: 44px; padding: 8px 40px 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-weight: 600; cursor: pointer; }
.found { margin: 20px 0; color: var(--muted); }
.found b { color: var(--text); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: fadeUp .5s var(--ease) both; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project .media { aspect-ratio: 4 / 3; border-radius: 0; }
.project:hover .media img { transform: scale(1.06); }
.project__type { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--accent); font-family: var(--font-head); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.project__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project__name { font-family: var(--font-head); font-size: 22px; text-transform: uppercase; font-weight: 500; }
.project__specs { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.project__specs span { display: inline-flex; align-items: center; gap: 6px; }
.project__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.project__price { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.project__price small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border-radius: var(--radius); }

/* built */
.built { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.built__item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.built__item .media { display: block; height: 100%; border-radius: 0; }
.built__item--tall { grid-row: span 2; }
.built__cap { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 4px; background: rgba(28,38,32,.85); color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.built__item::after { content: "⤢"; position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--text); display: grid; place-items: center; font-size: 18px; opacity: 0; transform: scale(.8); transition: all .3s var(--ease); }
.built__item:hover::after { opacity: 1; transform: none; }

.section--dark { background: var(--dark); }
.section--dark .step::before { color: var(--accent-2); }
.form-box { background: var(--surface); border-radius: var(--radius); padding: 40px; }

@media (max-width: 1080px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters__group:first-child { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .tech__panel { grid-template-columns: 1fr; gap: 28px; }
  .tech__visual { aspect-ratio: 16 / 7; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .built { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 200px); }
  .built__item--tall { grid-row: span 1; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 72px 0 32px; }
  .hero__actions .btn { width: 100%; white-space: normal; }
  .hero__facts { margin-top: 40px; }
  .filters { grid-template-columns: 1fr; padding: 20px; }
  .projects { grid-template-columns: 1fr; }
  .built { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .built__item--tall { grid-column: auto; }
  .form-box { padding: 24px; }
}
