/* ====================================================
   ООО «СтройРФ и СО» — общий стиль для всех страниц
   ==================================================== */

:root {
  --brand: #932A39;
  --brand-deep: #6C1E29;
  --brand-soft: #C0505F;
  --ink: #0F0F0F;
  --ink-2: #2E2E2E;
  --muted: #6B6B6B;
  --muted-2: #9A9A9A;
  --line: #E8E4DE;
  --line-2: #D0C7B7;
  --white: #FFFFFF;
  --cream: #FBF9F5;

  --f-display: "Playfair Display", "Times New Roman", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1280px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; height: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.site-notices { padding-top: 18px; }
.site-notice { padding: 13px 16px; border: 1px solid; font-size: 14px; }
.site-notice.success { color: #246536; border-color: #b9d8c0; background: #f0f8f2; }
.site-notice.error { color: var(--brand-deep); border-color: #e7bcc3; background: #fff2f4; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); width: 100%; }
.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--brand); }

h1, h2, h3 {
  font-family: var(--f-display); font-weight: 600;
  line-height: 1.08; letter-spacing: -.015em; color: var(--ink);
}
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
p { color: var(--ink-2); }

/* ==================== HEADER ==================== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 0; min-height: 68px;
}
.brand { display: flex; align-items: center; }
.brand-mark { height: 48px; width: auto; }
nav.main { display: flex; gap: 30px; }
nav.main a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .2s;
  position: relative;
}
nav.main a:hover { color: var(--brand); }
nav.main a.active { color: var(--brand); }
nav.main a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--brand);
}
.hdr-cta { display: flex; align-items: center; gap: 20px; }
.hdr-phone { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius);
  transition: all .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: var(--cream); }
.btn-outline-light {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}
.btn-lg { padding: 16px 28px; font-size: 15px; }

.burger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span { width: 22px; height: 2px; background: var(--ink); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== BREADCRUMBS ==================== */
.crumbs {
  padding: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 10px; color: var(--line-2); }
.crumbs .current { color: var(--ink); font-weight: 600; }

/* ==================== HERO / PAGE HEADER ==================== */
.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}
.page-hero {
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.hero-eyebrow-row,
.page-hero .eyebrow-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-eyebrow-row .meta { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.hero-eyebrow-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.hero h1 {
  font-size: clamp(40px, 7vw, 92px);
  max-width: 18ch;
  margin: 0 auto 32px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: 44px;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 40px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  transition: all .2s;
}
.tag:hover { border-color: var(--brand); color: var(--brand); }
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  justify-content: center;
}
.hero-phone-inline {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -.01em;
}

.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 18ch;
  margin: 0 auto 24px;
}
.page-hero h1 em { font-style: normal; color: var(--brand); }
.page-hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==================== FACTS STRIP ==================== */
.facts {
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 32px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.fact:last-child { border-right: none; }
.fact-num {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -.02em;
  display: flex; align-items: baseline; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}
.fact-num .unit {
  font-size: 0.42em; font-weight: 500;
  color: var(--brand-soft); letter-spacing: 0;
}
.fact-lbl {
  margin-top: 12px; font-size: 13px;
  color: var(--muted); letter-spacing: .02em; line-height: 1.4;
}

/* ==================== SECTIONS ==================== */
section { padding: clamp(72px, 9vw, 120px) 0; }
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.sec-head p { font-size: clamp(15px, 1.3vw, 17px); max-width: 560px; }
.sec-index {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 12px;
}

/* ==================== RESOURCES (registry) ==================== */
.resources-wrap { border-top: 1px solid var(--ink); }
.res-row {
  display: grid;
  grid-template-columns: 100px 300px 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: all .3s ease;
}
.res-row:hover { padding-left: 12px; }
.res-row:hover .res-idx { color: var(--brand); }
.res-idx {
  font-family: var(--f-display);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 700;
  color: var(--ink);
  line-height: .9;
  letter-spacing: -.03em;
  transition: color .3s ease;
}
.res-title { padding-top: 8px; }
.res-title h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 8px; }
.res-title .tag-small {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-top: 4px;
}
.res-desc {
  padding-top: 14px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 620px;
}

/* ==================== OBJECTS — flagship + supporting ==================== */
.obj-section { background: var(--cream); }

.flagship {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transition: box-shadow .3s;
}
.flagship:hover { box-shadow: 0 20px 60px -20px rgba(147,42,57,.18); }
.flagship-photo {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: var(--cream);
}
.flagship-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s ease;
}
.flagship:hover .flagship-photo img { transform: scale(1.04); }
.flagship-photo-overlay {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--brand);
  color: var(--white);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--radius);
}
.flagship-content {
  padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column;
  gap: 20px;
}
.flagship-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.flagship-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}
.flagship-loc {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.flagship h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin: 0;
  line-height: 1.1;
}
.flagship-price-inline {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flagship-price-inline .amount {
  font-family: var(--f-display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -.02em;
}
.flagship-price-inline .amount .unit {
  font-size: 0.38em; color: var(--brand-soft);
  font-weight: 500; margin-left: 4px;
}
.flagship-price-inline .caption {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.flagship-contract {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}
.flagship-works { display: grid; gap: 10px; }
.flagship-works li {
  list-style: none; padding-left: 20px; position: relative;
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
}
.flagship-works li::before {
  content: ""; position: absolute;
  left: 0; top: 10px; width: 10px; height: 1px; background: var(--brand);
}
.flagship-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.flagship-note strong { color: var(--ink); font-weight: 600; }

/* Supporting object cards */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 20px);
}
.obj {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .3s;
}
.obj:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(23,23,23,.12);
}
.obj-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}
.obj-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.obj:hover .obj-photo img { transform: scale(1.05); }
.obj-body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex; flex-direction: column; flex: 1;
}
.obj-price-line {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.obj-price-line .amount {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700; color: var(--brand);
  line-height: 1; letter-spacing: -.02em;
}
.obj-price-line .amount .unit {
  font-size: 0.55em; color: var(--brand-soft);
  font-weight: 500; margin-left: 2px;
}
.obj-price-line .caption {
  font-size: 10px; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500;
}
.obj h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 0 0 4px; line-height: 1.2;
}
.obj-location {
  font-size: 11px; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500;
}
.obj-contract {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; color: var(--muted-2);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  margin: 18px 0 14px;
}
.obj-works { display: grid; gap: 6px; margin-top: auto; }
.obj-works li {
  list-style: none; padding-left: 14px; position: relative;
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.obj-works li::before {
  content: ""; position: absolute;
  left: 0; top: 9px; width: 7px; height: 1px; background: var(--brand);
}

/* ==================== PROJECTS PAGE — FILTER BAR ==================== */
.filter-bar {
  padding: clamp(40px, 5vw, 56px) 0 clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 68px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}
.filter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 40px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  transition: all .2s; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip .count { font-size: 11px; opacity: .55; font-weight: 400; }
.chip.active .count { opacity: .7; color: var(--white); }

.filter-count {
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.filter-count strong { color: var(--brand); font-weight: 700; }

.projects-section {
  padding: clamp(48px, 6vw, 72px) 0 clamp(80px, 10vw, 120px);
  background: var(--cream);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}
.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .3s;
}
.project:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px -12px rgba(23,23,23,.14);
}
.project.hidden { display: none; }
.project-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.project-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.project:hover .project-photo img { transform: scale(1.05); }
.project-photo-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  padding: 6px 12px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.project-photo-badge.brand { background: var(--brand); color: var(--white); }
.project-body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex; flex-direction: column; flex: 1;
}
.project-price-line {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; gap: 12px;
}
.project-price-line .amount {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700; color: var(--brand);
  line-height: 1; letter-spacing: -.02em;
}
.project-price-line .amount .unit {
  font-size: 0.5em; color: var(--brand-soft);
  font-weight: 500; margin-left: 2px;
}
.project-price-line .amount.small { font-size: 16px; }
.project-price-line .caption {
  font-size: 10px; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; text-align: right;
}
.project h3 {
  font-size: clamp(18px, 1.6vw, 21px);
  margin: 0 0 4px; line-height: 1.25;
}
.project-location {
  font-size: 11px; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 16px;
}
.project-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 16px; margin-top: auto;
  border-top: 1px solid var(--line);
}
.project-tag {
  font-size: 11px; letter-spacing: .06em;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--cream);
  border-radius: 40px;
  font-weight: 500;
}
.project-contract {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; color: var(--muted-2);
  padding: 12px 0 4px;
  border-top: 1px dashed var(--line-2);
  margin-top: 12px;
}

/* ==================== INDEX PREVIEW CARDS ==================== */
.previews {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--cream);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}
.preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  transition: all .3s;
}
.preview:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(23,23,23,.12);
}
.preview-idx {
  font-family: var(--f-display);
  font-size: 14px; font-weight: 700;
  color: var(--brand);
  letter-spacing: .15em;
  margin-bottom: 20px;
}
.preview h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 14px;
  line-height: 1.15;
}
.preview p {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 32px;
  flex: 1;
}
.preview-link {
  display: inline-flex; align-items: center;
  gap: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--brand);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  transition: gap .2s;
}
.preview:hover .preview-link { gap: 16px; }
.preview-link::after {
  content: "→";
  font-size: 18px; line-height: 1;
}

/* ==================== CONTACTS SECTION ==================== */
.contacts {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contacts::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(147,42,57,.35) 0%, transparent 55%);
  pointer-events: none;
}
.contacts-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
.contacts h2 { color: var(--white); }
.contacts h2 em { color: var(--brand-soft); font-style: normal; }
.contacts .lead {
  margin-top: 24px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255,255,255,.72);
  max-width: 540px;
}
.contact-block {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.contact-block:first-of-type { border-top: none; padding-top: 0; }
.contact-block .lbl {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 10px;
}
.contact-block .val { color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.6; }
.contact-block .val.phone {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--white);
  display: block;
  margin-top: 4px;
}
.contact-block .val.phone:hover { color: var(--brand-soft); }
.contact-side { padding-top: 40px; }

/* Contact form (contacts.html) */
.contact-form {
  background: var(--cream);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  max-width: 640px;
  margin: 0 auto;
}
.contact-form h3 { margin-bottom: 8px; }
.form-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line-2);
  background: var(--white);
  font: inherit; font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
}
.field textarea { resize: vertical; min-height: 100px; }
.contact-form .btn-primary { width: 100%; padding: 16px; font-size: 15px; }
.form-hint { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* ==================== CTA BANNERS ==================== */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(147,42,57,.35) 0%, transparent 55%);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(28px, 3.4vw, 44px);
  margin-bottom: 20px;
}
.cta-inner h2 em { color: var(--brand-soft); font-style: normal; }
.cta-inner p {
  color: rgba(255,255,255,.7);
  font-size: clamp(15px, 1.3vw, 17px);
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}

/* ==================== ERROR PAGES ==================== */
.error-page {
  padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-code {
  font-family: var(--f-display);
  font-size: clamp(140px, 26vw, 320px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--brand);
  position: relative;
  display: inline-block;
  margin-bottom: clamp(16px, 3vw, 32px);
}
.error-code::before {
  content: "";
  position: absolute;
  inset: -20px -40px;
  background-image:
    linear-gradient(rgba(147,42,57,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147,42,57,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  border-radius: var(--radius);
}
.error-page h1 {
  font-size: clamp(32px, 4.8vw, 60px);
  max-width: 18ch;
  margin: 0 auto 24px;
}
.error-page h1 em { font-style: normal; color: var(--brand); }
.error-page p {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.error-ctas {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.error-phone-block {
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  max-width: 540px;
  margin: 0 auto;
}
.error-phone-block .lbl {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.error-phone-block a {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -.01em;
  transition: color .2s;
}
.error-phone-block a:hover { color: var(--brand-deep); }
.error-phone-block .role { margin-top: 6px; font-size: 13px; color: var(--muted); }

.error-suggest {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 32px;
  border-top: 1px dashed var(--line-2);
}
.error-suggest .lbl {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.error-suggest-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.error-suggest-links a {
  font-size: 14px; color: var(--ink-2);
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: all .2s;
}
.error-suggest-links a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ==================== FOOTER ==================== */
footer {
  background: #050505;
  color: rgba(255,255,255,.55);
  padding: 44px 0 28px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; align-items: center; margin-bottom: 18px; }
.footer-brand .brand-mark {
  height: 60px;
  filter: brightness(0) invert(1);
}
.footer-desc { max-width: 340px; line-height: 1.6; color: rgba(255,255,255,.5); }
.footer-col h4 {
  color: var(--white);
  font-family: var(--f-body);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 18px;
}
.footer-col p, .footer-col a { color: rgba(255,255,255,.55); line-height: 1.9; font-size: 13px; }
.footer-col a:hover { color: var(--white); }
.footer-col strong { color: rgba(255,255,255,.85); font-weight: 500; }
.footer-bot {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

/* ==================== FULL CYCLE (ПИР + СМР) ==================== */
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cycle-step {
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
  position: relative;
}
.cycle-step:hover { background: var(--cream); }
.cycle-step:hover .cycle-num { color: var(--brand-deep); }
.cycle-num {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .15em;
  margin-bottom: 24px;
  transition: color .3s;
}
.cycle-step h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 1.8vw, 22px);
}
.cycle-step p { font-size: 14px; line-height: 1.6; }
.cycle-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  background: rgba(147,42,57,.08);
  padding: 4px 10px;
  border-radius: 40px;
  margin-top: 12px;
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 52px; height: 52px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(147,42,57,.35), 0 0 0 1px rgba(255,255,255,.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 90;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--brand-deep);
  transform: translateY(-3px);
}
.to-top svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== RESPONSIVE — TABLET ==================== */
@media (max-width: 1024px) {
  nav.main { gap: 22px; }
  nav.main a { font-size: 13px; }
  .hdr-phone { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .res-row { grid-template-columns: 80px 220px 1fr; gap: 24px; }
  .flagship { grid-template-columns: 1fr; }
  .flagship-photo { min-height: 320px; }
  .obj-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr; }
  .cycle-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { top: 68px; }
  .filter-inner { justify-content: flex-start; }
  .filter-count { order: 3; width: 100%; margin-top: 8px; }
  .contacts-inner { grid-template-columns: 1fr; }
  .contact-side { padding-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* ==================== RESPONSIVE — MOBILE ==================== */
@media (max-width: 720px) {
  /* backdrop-filter создаёт containing block для position:fixed потомков,
     из-за чего меню перестаёт покрывать viewport. На мобильном отключаем. */
  .hdr {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
  }
  nav.main {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 40px var(--gut);
    gap: 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
    overflow-y: auto;
  }
  nav.main.open { transform: translateX(0); }
  nav.main a { font-size: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.main a.active::after { display: none; }
  .burger { display: flex; }
  .hdr-cta .btn { display: none; }
  .brand-mark { height: 40px; }
  .hero-ctas { flex-direction: column; align-items: stretch; padding: 0 20px; }
  .hero-ctas .btn { width: 100%; }
  .hero-phone-inline { text-align: center; width: 100%; padding: 12px 0; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .fact:last-child { border-bottom: none; }
  .res-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .res-idx { font-size: 42px; }
  .obj-grid { grid-template-columns: 1fr; }
  .flagship-photo { min-height: 260px; aspect-ratio: 16 / 10; }
  .cycle-grid { grid-template-columns: 1fr; }
  .filter-bar { position: static; padding: 24px 0; }
  .filter-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 6px; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  .error-ctas { flex-direction: column; align-items: stretch; padding: 0 20px; }
  .error-ctas .btn { width: 100%; }
  .error-suggest-links { flex-direction: column; gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; align-items: flex-start; }
}
