/*
Theme Name: Строим Дом
Theme URI: https://s2.s1272682.ha009.t.mydomain.zone/
Author: Редакция «Строим Дом»
Description: Русскоязычная новостная тема о строительстве частных домов.
Version: 1.0.0
Text Domain: stroim-dom
*/

:root {
  --ink: #142321;
  --muted: #65716e;
  --paper: #f4f1e9;
  --white: #fffdf8;
  --line: #dcd8ce;
  --orange: #f0642d;
  --orange-dark: #c84418;
  --lime: #c9db4c;
  --forest: #173f38;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; padding: 10px 16px; clip: auto; color: #fff; background: var(--forest); }

.topline { color: #dce6e2; background: #0e2824; font-size: 13px; }
.topline-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline a { color: var(--lime); font-weight: 700; }
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.brand-row { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; background: var(--orange); border-radius: 4px 18px 4px 4px; }
.brand-mark svg { width: 30px; }
.brand-name { display: block; font-size: clamp(27px, 4vw, 39px); font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.brand-name em { color: var(--orange); font-style: normal; }
.brand-tag { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.header-note { max-width: 350px; padding-left: 18px; border-left: 3px solid var(--lime); color: var(--muted); font-size: 14px; line-height: 1.45; }
.nav-wrap { color: #fff; background: var(--forest); }
.nav-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.main-nav ul { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 15px 17px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--lime); background: rgba(255,255,255,.06); }
.menu-toggle { display: none; padding: 9px 0; color: #fff; background: transparent; border: 0; font-weight: 800; }
.search-form { display: flex; min-width: 225px; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 36px; padding: 0 11px; color: var(--ink); background: #fff; border: 0; border-radius: 3px 0 0 3px; outline: none; }
.search-submit { width: 40px; height: 36px; padding: 0; display: grid; place-items: center; color: #fff; background: var(--orange); border: 0; border-radius: 0 3px 3px 0; cursor: pointer; }

.ticker { border-bottom: 1px solid var(--line); background: #ece8dd; }
.ticker-inner { min-height: 42px; display: flex; align-items: center; gap: 15px; overflow: hidden; white-space: nowrap; }
.ticker-label { padding: 4px 9px; color: #fff; background: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ticker a { overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 700; }
.ticker a:hover { color: var(--orange-dark); }

.site-main { padding: 42px 0 68px; }
.section-kicker { margin: 0 0 9px; color: var(--orange-dark); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.section-title { margin: 0; font: 900 clamp(28px, 4vw, 44px)/1.08 Georgia, serif; letter-spacing: -.025em; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 44px 0 22px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.section-head .section-title { font-size: clamp(26px, 3vw, 35px); }
.section-head a { color: var(--orange-dark); font-size: 13px; font-weight: 800; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .9fr); gap: 24px; }
.lead-story { min-height: 465px; position: relative; overflow: hidden; color: #fff; background: var(--forest); border-radius: 5px; }
.lead-story .story-visual { position: absolute; inset: 0; min-height: 100%; }
.lead-story .story-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,25,22,.95) 0%, rgba(8,25,22,.08) 75%); }
.lead-content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: clamp(24px, 5vw, 46px); }
.lead-title { max-width: 800px; margin: 12px 0 14px; font: 900 clamp(31px, 4.5vw, 54px)/1.03 Georgia, serif; letter-spacing: -.035em; }
.lead-title a:hover { color: var(--lime); }
.meta { display: flex; flex-wrap: wrap; gap: 9px 16px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.lead-story .meta { color: #dfe8e4; }
.tag { display: inline-block; padding: 5px 9px; color: #fff; background: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.side-leads { display: grid; grid-template-rows: repeat(2, 1fr); gap: 20px; }
.side-story { display: grid; grid-template-columns: 42% 1fr; min-height: 210px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.side-story .story-visual { min-height: 100%; }
.side-content { padding: 20px; }
.side-title { margin: 12px 0; font: 900 21px/1.15 Georgia, serif; }
.side-title a:hover { color: var(--orange-dark); }

.story-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: #d7dfb0; }
.story-visual svg { width: 72%; max-height: 75%; color: rgba(20,35,33,.78); }
.story-visual::before { content: ""; position: absolute; width: 180px; height: 180px; right: -55px; top: -70px; border: 28px solid rgba(255,255,255,.22); border-radius: 50%; }
.visual-foundation { background: #e7b678; }
.visual-materialy { background: #b8d8d0; }
.visual-tehnologii { background: #d7dfb0; }
.visual-proekty { background: #c9c6e4; }
.visual-blagoustroystvo { background: #b6d5a6; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 5px; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28,42,38,.09); }
.news-card .story-visual { aspect-ratio: 16 / 9; }
.card-content { padding: 21px 22px 24px; }
.card-title { margin: 11px 0 10px; font: 900 23px/1.18 Georgia, serif; }
.card-title a:hover { color: var(--orange-dark); }
.excerpt { margin: 0 0 15px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.category-strip { margin-top: 54px; padding: 36px 0; color: #fff; background: var(--forest); }
.category-strip .container { display: grid; grid-template-columns: 1.2fr 2fr; gap: 38px; align-items: center; }
.category-strip h2 { margin: 0; font: 900 31px/1.12 Georgia, serif; }
.category-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.category-links a { padding: 13px 14px; border: 1px solid rgba(255,255,255,.22); font-size: 13px; font-weight: 800; text-align: center; }
.category-links a:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.archive-head { max-width: 780px; margin-bottom: 30px; }
.archive-description { color: var(--muted); }
.pagination { margin-top: 34px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 38px; padding: 6px 12px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--orange); border-color: var(--orange); }

.article-shell { display: grid; grid-template-columns: minmax(0, 780px) 1fr; gap: 54px; align-items: start; }
.article { padding: clamp(24px, 5vw, 52px); background: var(--white); border-top: 5px solid var(--orange); }
.article h1 { margin: 14px 0 18px; font: 900 clamp(34px, 5vw, 58px)/1.05 Georgia, serif; letter-spacing: -.035em; }
.article .story-visual { aspect-ratio: 16 / 8; margin: 28px 0; }
.article-content { font-family: Georgia, serif; font-size: 19px; line-height: 1.82; }
.article-content h2 { margin-top: 1.7em; font-size: 30px; line-height: 1.2; }
.article-content a { color: var(--orange-dark); text-decoration: underline; }
.sidebar-box { padding: 25px; color: #fff; background: var(--forest); }
.sidebar-box h2 { margin: 0 0 12px; font: 900 25px/1.2 Georgia, serif; }
.sidebar-box p { color: #dce6e2; font-size: 14px; }
.sidebar-box a { display: inline-block; margin-top: 5px; color: var(--lime); font-weight: 800; }
.empty-state { padding: 60px 30px; text-align: center; background: var(--white); }

.site-footer { color: #d4dedb; background: #0e2824; }
.footer-grid { padding: 52px 0 42px; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 60px; }
.footer-brand { color: #fff; font-size: 28px; font-weight: 900; }
.footer-brand em { color: var(--orange); font-style: normal; }
.footer-about { max-width: 420px; color: #aebdb8; font-size: 14px; }
.footer-title { margin: 0 0 16px; color: #fff; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a:hover { color: var(--lime); }
.copyright { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); color: #92a39e; font-size: 12px; }

@media (max-width: 900px) {
  .header-note { display: none; }
  .menu-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; padding: 8px 0; }
  .main-nav { display: none; order: 3; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; padding: 8px 0; }
  .main-nav a { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
  .search-form { margin-left: auto; }
  .lead-grid { grid-template-columns: 1fr; }
  .side-leads { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .side-story { display: block; }
  .side-story .story-visual { min-height: 160px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .article-shell { grid-template-columns: 1fr; }
  .category-strip .container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topline-inner span:last-child { display: none; }
  .brand-row { min-height: 85px; }
  .brand-mark { width: 43px; height: 43px; }
  .brand-tag { font-size: 10px; }
  .search-form { min-width: 0; width: calc(100% - 110px); }
  .site-main { padding-top: 26px; }
  .lead-story { min-height: 440px; }
  .side-leads, .news-grid { grid-template-columns: 1fr; }
  .side-story { display: grid; }
  .category-links { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .article { padding: 24px 20px; }
  .article-content { font-size: 17px; }
}
