/*
Theme Name: Severstr Tilda Style
Theme URI: https://severstr.ru/
Author: Codex for Sever Stroy
Description: WordPress-тема в стиле основного сайта Север Строй.
Version: 1.1.0
Requires at least: 6.0
Text Domain: severstr
*/
:root {
  --dark: #1a1717;
  --dark-2: #2b2b28;
  --yellow: #ffd93d;
  --paper: #fbfbf9;
  --muted: #666;
  --line: #e7e2d8;
  --white-line: rgba(255, 255, 255, .16);
  --max: 1180px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: #181818;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 23, 23, .96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
}
.brand img {
  width: 76px;
  padding: 7px 9px;
  background: #fff;
  border-radius: 6px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.05;
}
.brand-text small {
  margin-top: 6px;
  color: #c9c9c9;
  font-size: 12px;
  font-weight: 400;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--yellow); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone { color: #fff; font-weight: 600; white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--yellow);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.44); }
.btn-outline:hover { color: var(--yellow); border-color: var(--yellow); }

.hero {
  position: relative;
  min-height: 720px;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.58) 48%, rgba(0,0,0,.18)),
    url("https://static.tildacdn.com/tild6636-3664-4566-a263-333534333639/zagorodnyy-dom-iz-br.jpg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  background: linear-gradient(0deg, var(--paper), rgba(251,251,249,0));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 92px 0 128px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
}
.kicker::before { content: ""; width: 42px; height: 2px; background: var(--yellow); }
.hero h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1;
  font-weight: 600;
}
.lead {
  margin: 0 0 34px;
  max-width: 650px;
  color: #efefef;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  max-width: 720px;
}
.point {
  min-height: 88px;
  padding: 16px;
  background: rgba(26,23,23,.78);
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  font-weight: 400;
}
.point strong {
  display: block;
  color: var(--yellow);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}

.section { padding: 82px 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-soft { background: #f1eee7; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  font-weight: 500;
}
.section-copy { max-width: 560px; color: var(--muted); }
.section-dark .section-copy { color: #d0d0d0; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  min-height: 345px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  background: #222;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.18));
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--image) center / cover no-repeat;
  transform: scale(1.02);
  transition: .28s ease;
}
.service-card:hover::after { transform: scale(1.07); }
.service-card > * { position: relative; z-index: 2; }
.service-card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.14; font-weight: 500; }
.service-card p { margin: 0 0 18px; color: #e7e7e7; }
.service-link { display: inline-flex; color: var(--yellow); font-size: 14px; font-weight: 600; }

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.benefit { min-height: 190px; padding: 28px; background: var(--dark-2); }
.benefit b { display: block; margin-bottom: 12px; color: var(--yellow); font-size: 32px; font-weight: 500; line-height: 1.1; }
.benefit span { color: #e8e8e8; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  min-height: 230px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 26px;
  color: var(--yellow);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 1px 1px 0 #111;
}
.step h3 { margin: 0 0 10px; font-size: 22px; font-weight: 500; }
.step p { margin: 0; color: #606060; }

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.trust-card {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust-card h3 { margin: 0 0 12px; font-size: 26px; font-weight: 500; }
.trust-card p { margin: 0; color: #606060; }

.blog-band {
  background:
    linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.56)),
    url("https://static.tildacdn.com/tild3862-6532-4664-b730-373434343532/image.png") center / cover no-repeat;
  color: #fff;
}
.blog-band .wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 44px;
  align-items: center;
}
.blog-panel {
  padding: 28px;
  background: rgba(26,23,23,.82);
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
}
.blog-panel ul { margin: 0; padding-left: 19px; color: #e6e6e6; }

.cta { padding: 48px 0; background: var(--yellow); color: #111; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 500; }
.site-footer { padding: 48px 0; background: #050505; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.footer-title { margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.footer-muted { color: #bcbcbc; }
.footer-links { display: grid; gap: 9px; }

.archive-hero { padding: 86px 0 52px; background: var(--dark); color: #fff; }
.archive-hero h1 { margin: 0 0 16px; font-size: 52px; line-height: 1.05; font-weight: 500; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card-body { padding: 22px; }
.post-card h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.18; font-weight: 500; }
.post-card p { color: #666; }
.article { padding: 70px 0; background: #fff; }
.article-wrap { max-width: 860px; margin: 0 auto; }
.article h1 { margin: 0 0 20px; font-size: clamp(36px, 4vw, 58px); line-height: 1.04; font-weight: 500; }
.article-content { font-size: 19px; }
.article-content h2 { margin-top: 44px; font-size: 32px; font-weight: 500; }
.article-content p, .article-content li { color: #333; }
.article-content a { color: #111; border-bottom: 2px solid var(--yellow); }
.empty-state { padding: 42px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.screen-reader-text { position: absolute; left: -9999px; }

@media (max-width: 980px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .main-nav { flex-wrap: wrap; gap: 16px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .hero { min-height: auto; }
  .hero-content { padding: 72px 0 92px; }
  .hero-points, .services, .benefits, .steps, .post-grid, .blog-band .wrap, .footer-grid, .trust { grid-template-columns: 1fr 1fr; }
  .section-head, .cta .wrap { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .brand img { width: 62px; }
  .main-nav { font-size: 13px; }
  .phone { font-size: 14px; }
  .hero h1 { font-size: 39px; }
  .lead { font-size: 18px; }
  .hero-points, .services, .benefits, .steps, .post-grid, .blog-band .wrap, .footer-grid, .trust { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .service-card { min-height: 300px; }
  .cta h2 { font-size: 28px; }
  .btn { width: 100%; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .archive-hero h1 { font-size: 40px; }
}


.modular-production {
  background:
    linear-gradient(90deg, rgba(16, 22, 17, .94), rgba(16, 22, 17, .76)),
    url("https://severstr.ru/wp-content/uploads/2026/06/proizvodstvo-modulnyh-zdanij-v-cehu-modular.webp") center / cover no-repeat;
  color: #fff;
}
.modular-production .section-copy { color: #ecece6; font-size: 19px; }
.modular-production-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 44px;
  align-items: center;
}
.modular-production h2 {
  max-width: 720px;
  color: #fff;
}
.modular-production-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.modular-production-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  overflow: hidden;
}
.modular-production-panel div {
  min-height: 150px;
  padding: 24px;
  background: rgba(5,5,5,.68);
}
.modular-production-panel strong {
  display: block;
  margin-bottom: 9px;
  color: var(--yellow);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
}
.modular-production-panel span {
  color: #f1f1ea;
}
@media (max-width: 980px) {
  .modular-production-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .modular-production-panel { grid-template-columns: 1fr; }
  .modular-production-panel div { min-height: auto; }
}
