/* ============================================================
   BeHome — строительство домов под ключ (Калининград)
   Стиль: графит + бетон + сигнальный оранжевый
   ============================================================ */

:root {
  --graphite: #16181b;
  --graphite-2: #101214;
  --panel: #1d2024;
  --panel-2: #24282d;
  --ink: #191b1e;
  --muted: #5f656d;
  --paper: #f1f0ec;
  --white: #ffffff;
  --line: rgba(25, 27, 30, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --orange: #ff5e00;
  --orange-hover: #ff7a26;
  --orange-deep: #d94f00;
  --orange-tint: rgba(255, 94, 0, 0.12);
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Manrope", Arial, Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --radius: 10px;
  --container: min(1200px, calc(100% - 48px));
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }

.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  padding: 10px 16px; background: var(--orange); color: var(--white);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* --- общие элементы ------------------------------------- */

.section { padding: clamp(76px, 9vw, 130px) 0; }
section[id] { scroll-margin-top: var(--header-h); }

.section-label {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange);
}
.section-label.on-accent { color: var(--orange); }

.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.17rem); line-height: 1.7; }
.on-dark .lead, .contact-info .lead { color: rgba(255, 255, 255, 0.66); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: end; gap: 44px; margin-bottom: clamp(38px, 5vw, 60px);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-head); font-size: 0.98rem; letter-spacing: 0.07em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--orange); color: var(--white); }
.btn-solid:hover { background: var(--orange-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-hover); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--graphite-2); }
.btn-ghost-dark { border-color: rgba(22, 24, 27, 0.55); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.14); }
.btn-wide { width: 100%; }

/* --- промо-блок «готовые проекты» --------------------------- */

.promo {
  position: relative; overflow: hidden; color: var(--ink);
  background: var(--paper);
}
.promo::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(-55deg, var(--ink) 0 16px, var(--orange) 16px 32px);
}
.promo::after {
  content: ""; position: absolute; inset: auto 0 0; height: 6px;
  background: repeating-linear-gradient(-55deg, var(--ink) 0 16px, var(--orange) 16px 32px);
}
.promo-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(56px, 7vw, 92px) 0 clamp(36px, 4.5vw, 60px);
}
.promo-kicker {
  margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange-deep);
}
.promo h2 { color: var(--ink); font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.promo-copy p:not(.promo-kicker) { margin-top: 20px; color: var(--muted); font-size: 1.02rem; line-height: 1.7; max-width: 560px; }
.promo-copy p:not(.promo-kicker) strong { color: var(--ink); }
.promo-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.promo-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.promo-list li {
  padding: 14px 18px; border: 1px solid var(--line); background: var(--white);
  font-weight: 700; font-size: 0.95rem;
}
.promo-list li::before { content: "▸ "; color: var(--orange); font-size: 0.85rem; }

/* лента миниатюр готовых домов */
.promo-strip {
  position: relative; display: flex; gap: 12px; align-items: stretch;
  padding-bottom: clamp(48px, 6vw, 84px);
  text-decoration: none; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.promo-thumb {
  position: relative; flex: 0 0 clamp(132px, 13vw, 176px); aspect-ratio: 16 / 10;
  overflow: hidden; border: 1px solid var(--line); background: var(--white);
  scroll-snap-align: start; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.promo-thumb i {
  position: absolute; right: 8px; bottom: 8px; padding: 4px 8px;
  background: rgba(16, 18, 20, 0.85); color: var(--white);
  font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
}
.promo-thumb-cta {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 7px;
  padding: 14px; background: var(--ink); border-color: var(--ink);
}
.promo-thumb-cta strong { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--white); }
.promo-thumb-cta small { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-hover); }
.promo-strip:hover .promo-thumb { transform: translateY(-4px); border-color: var(--orange); box-shadow: 6px 6px 0 var(--orange-tint); }

/* --- шапка ------------------------------------------------ */

.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto;
  background: transparent; transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled, body.menu-open .site-header {
  background: rgba(16, 18, 20, 0.92);
  box-shadow: 0 1px 0 var(--line-dark);
  backdrop-filter: blur(14px);
}
.nav-wrap { display: flex; min-height: var(--header-h); align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden;
  background: var(--white); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.brand-text small { color: rgba(255, 255, 255, 0.55); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a {
  position: relative; color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
  transition: color 0.2s;
}
.main-nav a::after {
  content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-phone {
  margin-left: 8px; padding: 12px 20px; background: var(--orange); color: var(--white) !important;
  font-family: var(--font-mono); font-size: 0.85rem !important; font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}
.nav-phone::after { display: none; }
.nav-phone:hover { background: var(--orange-hover); }

.menu-toggle {
  display: none; width: 48px; height: 48px; cursor: pointer;
  border: 1px solid var(--line-dark); border-radius: 4px; background: transparent; color: var(--white);
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: currentColor; content: ""; transition: transform 0.25s, opacity 0.25s;
}
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

/* --- герой ------------------------------------------------ */

.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--graphite);
}
.hero::before {
  content: ""; position: absolute; inset: auto 0 0; height: 6px;
  background: repeating-linear-gradient(-55deg, var(--orange) 0 16px, var(--graphite-2) 16px 32px);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch; gap: clamp(30px, 4vw, 56px);
  padding: calc(var(--header-h) + clamp(36px, 6vh, 72px)) 0 clamp(68px, 8vh, 104px);
}
.hero-copy { position: relative; max-width: 660px; align-self: center; }
.tag {
  margin-bottom: 22px; font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange);
}
.hero h1 .hl { color: var(--orange); }
.hero .lead { max-width: 620px; margin-top: 26px; color: rgba(255, 255, 255, 0.68); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-partners {
  display: inline-flex; flex-direction: column; gap: 5px;
  margin-top: 40px; padding: 20px 28px;
  border: 1px solid var(--orange); background: rgba(255, 94, 0, 0.1);
  box-shadow: 10px 10px 0 rgba(255, 94, 0, 0.16);
}
.partners-kicker {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange-hover);
}
.hero-partners strong {
  font-family: var(--font-head); font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--white);
}
.partners-note { color: rgba(255, 255, 255, 0.66); font-size: 0.86rem; }

.hero-visual { position: relative; display: flex; }
.hero-photo {
  position: relative; margin: 0; width: 100%; overflow: hidden;
  border: 1px solid var(--line-dark); outline: 1px solid var(--line-dark); outline-offset: 8px;
  min-height: 580px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; top: 0; left: 0; width: 92px; height: 92px;
  background:
    linear-gradient(var(--orange), var(--orange)) top left / 100% 6px no-repeat,
    linear-gradient(var(--orange), var(--orange)) top left / 6px 100% no-repeat;
}
.hero-card {
  position: absolute; right: clamp(-14px, -1vw, 0px); bottom: -26px;
  width: min(300px, 78%); padding: 22px 24px;
  background: var(--orange); color: var(--white);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.35);
}
.hero-card span {
  display: block; margin-bottom: 8px; font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85;
}
.hero-card strong { display: block; font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; line-height: 1.25; text-transform: uppercase; }
.card-link { display: inline-block; margin-top: 12px; color: var(--white); font-size: 0.83rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.card-link:hover { border-color: var(--white); }

/* полоса цифр */
.stats-strip { border-top: 1px solid var(--line-dark); background: rgba(0, 0, 0, 0.22); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 26px 34px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; }
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1; color: var(--white);
}
.stat strong em { font-style: normal; color: var(--orange); margin-left: 8px; font-size: 0.55em; text-transform: uppercase; }
.stat span { display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.55); font-size: 0.86rem; line-height: 1.45; }

/* --- услуги ------------------------------------------------ */

.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: 280px; padding: 28px; border: 1px solid var(--line);
  background: var(--white); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 0;
  background: var(--orange); transition: width 0.3s;
}
.service-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 10px 10px 0 var(--orange-tint); }
.service-card:hover::before { width: 100%; }
.card-top { display: flex; align-items: center; gap: 14px; }
.num {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--orange);
}
.service-card p { color: var(--muted); font-size: 0.95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.tag-list li {
  padding: 5px 11px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted);
}
.tag-list a { color: var(--orange); text-decoration: none; font-weight: 700; }
.tag-list a:hover { text-decoration: underline; }
.service-card.featured { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.service-card.featured p { color: rgba(255, 255, 255, 0.66); }
.service-card.featured .num { border-color: var(--line-dark); }
.service-card.featured .tag-list li { border-color: var(--line-dark); color: rgba(255, 255, 255, 0.62); }
.service-card.featured .tag-list a { color: var(--orange-hover); }

/* --- проекты и галерея ------------------------------------- */

.projects {
  color: var(--white);
  background: var(--graphite);
}

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card { display: flex; flex-direction: column; border: 1px solid var(--line-dark); background: var(--panel); transition: transform 0.25s, box-shadow 0.25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(0, 0, 0, 0.35); }

/* карусель фото в карточке проекта */
.project-carousel { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--graphite-2); cursor: zoom-in; }
.gal-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.015); transition: opacity 0.45s ease, transform 0.45s ease;
}
.gal-slide.is-active { opacity: 1; transform: none; }
.gal-nav {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px;
  background: rgba(16, 18, 20, 0.72); color: var(--white); cursor: pointer;
  backdrop-filter: blur(4px); transition: background 0.2s, border-color 0.2s;
}
.gal-nav:hover { background: var(--orange); border-color: var(--orange); }
.gal-prev { left: 14px; }
.gal-next { right: 14px; }
.gal-next svg { transform: rotate(180deg); }
.gal-count {
  position: absolute; z-index: 3; right: 14px; bottom: 14px; padding: 6px 11px;
  background: rgba(16, 18, 20, 0.8); color: var(--white);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em;
}
.gal-dots { position: absolute; z-index: 3; left: 14px; bottom: 18px; display: flex; gap: 7px; }
.gal-dots i { width: 9px; height: 9px; background: rgba(255, 255, 255, 0.38); transition: background 0.2s, transform 0.2s; }
.gal-dots i.is-active { background: var(--orange); transform: scale(1.2); }
.project-badge {
  position: absolute; z-index: 2; top: 14px; left: 14px; padding: 8px 13px;
  background: var(--orange); color: var(--white);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}

.project-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: clamp(24px, 3vw, 34px); }
.project-body-head { display: flex; flex-direction: column; gap: 7px; }
.project-body h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.project-place {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-hover);
}
.project-desc { color: rgba(255, 255, 255, 0.64); font-size: 0.95rem; line-height: 1.7; }
.project-more {
  align-self: flex-start; font-weight: 800; font-size: 0.9rem;
  color: var(--orange-hover); text-decoration: none; border-bottom: 1px solid rgba(255, 122, 38, 0.4);
}
.project-more:hover { color: var(--orange); border-color: var(--orange); }

/* широкая карточка работы — на всю строку сетки */
.project-card.wide { grid-column: 1 / -1; }
@media (min-width: 901px) {
  .project-card.wide { display: grid; grid-template-columns: 1.2fr 0.8fr; }
  .project-card.wide .project-carousel { aspect-ratio: auto; height: 100%; min-height: 460px; }
  .project-card.wide .project-body { padding: 40px 44px; }
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: auto 0 0; padding-top: 6px; }
.fact { padding-top: 13px; border-top: 1px solid var(--line-dark); }
.fact dt { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; }
.fact dd { margin: 2px 0 0; color: rgba(255, 255, 255, 0.52); font-size: 0.78rem; }

.source-note { margin-top: 26px; color: rgba(255, 255, 255, 0.42); font-size: 0.8rem; max-width: 720px; }

/* --- этапы ------------------------------------------------- */

.process {
  color: var(--white);
  background: var(--graphite);
}
.process .section-label { color: var(--orange-hover); }
.process .section-head .lead { color: rgba(255, 255, 255, 0.66); }
.process h2, .process .step h3 { color: var(--white); }
.process .step { border-top-color: rgba(255, 255, 255, 0.25); }
.process .step-num { color: var(--orange-hover); }
.process .step p { color: rgba(255, 255, 255, 0.62); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.step { padding-top: 24px; border-top: 3px solid var(--ink); position: relative; counter-increment: steps; }
.step::before { content: ""; position: absolute; top: -3px; left: 0; width: 44px; height: 3px; background: var(--orange); }
.step-num { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--orange); }
.step h3 { margin-top: 14px; }
.step p { margin-top: 12px; color: var(--muted); font-size: 0.93rem; }

/* --- о компании -------------------------------------------- */

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: min(640px, 68vw); object-fit: cover; border: 1px solid var(--line); }
.about-media::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 110px; height: 110px;
  background:
    linear-gradient(var(--orange), var(--orange)) bottom right / 100% 6px no-repeat,
    linear-gradient(var(--orange), var(--orange)) bottom right / 6px 100% no-repeat,
    linear-gradient(var(--orange), var(--orange)) top right / 6px 100% no-repeat;
}
.about-badge {
  position: absolute; left: -20px; bottom: 44px; z-index: 1;
  width: 176px; padding: 18px 20px; background: var(--orange); color: var(--white);
  box-shadow: 10px 10px 0 rgba(25, 27, 30, 0.16);
}
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; text-transform: uppercase; }
.about-badge span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; }
.about-copy .lead { margin-top: 4px; }
.check-list { display: grid; gap: 13px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-weight: 600; }
.check-list li::before { content: "▸"; color: var(--orange); font-size: 1.05rem; line-height: inherit; }
.values-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.value-chip { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.value-chip strong { display: block; font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.value-chip span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* --- отзывы ------------------------------------------------- */

.reviews { background: var(--graphite); color: var(--white); }
.reviews .section-label { color: var(--orange-hover); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(30px, 3.4vw, 44px); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-dark); border-top: 3px solid var(--orange);
  transition: transform 0.25s, box-shadow 0.25s;
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 26px 54px rgba(0, 0, 0, 0.38); }
.review-card::after {
  content: "”"; position: absolute; top: -14px; right: 22px;
  font-family: var(--font-head); font-size: 7.5rem; font-weight: 700; line-height: 1;
  color: rgba(255, 94, 0, 0.22); pointer-events: none;
}
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.review-stars { color: var(--orange); font-size: 1rem; letter-spacing: 0.22em; }
.review-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.38); }
.review-card blockquote {
  position: relative; z-index: 1; margin: 0 0 30px;
  font-size: 1.08rem; line-height: 1.85; color: rgba(255, 255, 255, 0.88);
}
.review-card footer { display: flex; align-items: center; gap: 15px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.review-avatar {
  flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em;
}
.review-author { display: flex; flex-direction: column; gap: 3px; }
.review-author strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--white); }
.review-author span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

/* --- FAQ ---------------------------------------------------- */

.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro .lead { margin: 18px 0 28px; }
.faq-list { display: grid; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--orange); font-size: 1.7rem; font-weight: 400; line-height: 1; transition: transform 0.25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--orange-deep); }
.faq-list details p { padding: 0 40px 24px 4px; color: var(--muted); max-width: 640px; }

/* --- контакты / форма --------------------------------------- */

.contact {
  position: relative; color: var(--white); padding: clamp(76px, 9vw, 120px) 0;
  background: var(--graphite);
}
.contact::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(-55deg, var(--orange) 0 16px, var(--graphite-2) 16px 32px);
}
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-rows { display: grid; gap: 18px; margin-top: 38px; }
.phone-link, .vk-link {
  display: flex; flex-direction: column; width: fit-content;
  padding-left: 18px; border-left: 3px solid var(--orange);
  text-decoration: none;
}
.phone-link { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: 0.02em; color: var(--white); transition: color 0.2s; }
.phone-link:hover { color: var(--orange-hover); }
.vk-link { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; color: rgba(255, 255, 255, 0.85); transition: color 0.2s; }
.vk-link:hover { color: var(--orange-hover); }
.phone-link small, .vk-link small {
  margin-top: 6px; font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 500; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.5); text-transform: none;
}
.region-note { margin-top: 6px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }

.request-form {
  display: grid; gap: 18px; padding: clamp(26px, 3.5vw, 42px);
  border: 1px solid var(--line-dark); background: var(--panel);
  box-shadow: 14px 14px 0 rgba(255, 94, 0, 0.14);
}
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; color: var(--white);
  background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: 3px;
  transition: border-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field.invalid input, .field.invalid textarea { border-color: #ff3b30; }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { color: rgba(255, 255, 255, 0.4); font-size: 0.76rem; line-height: 1.5; }
.request-form .btn { justify-self: start; }
.request-form .btn-wide { justify-self: stretch; }

.form-success { padding: clamp(26px, 3.5vw, 42px); border: 1px solid var(--orange); background: var(--panel); box-shadow: 14px 14px 0 rgba(255, 94, 0, 0.14); }
.form-success h3 { color: var(--orange); }
.form-success p { margin-top: 14px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.request-summary {
  white-space: pre-wrap; padding: 18px; border: 1px dashed var(--line-dark);
  background: var(--graphite-2); font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.6;
}
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.success-actions .btn { min-height: 50px; padding: 0 22px; font-size: 0.88rem; }

/* --- футер --------------------------------------------------- */

.site-footer { background: var(--graphite-2); color: rgba(255, 255, 255, 0.62); padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.6fr 0.6fr; gap: 48px; }
.footer-brand-col p { max-width: 380px; margin-top: 18px; font-size: 0.9rem; }
.brand-footer { text-decoration: none; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-col a:hover { color: var(--orange-hover); }
.footer-col span { font-size: 0.9rem; }
.footer-title { margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line-dark);
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.4);
}

/* --- лайтбокс ------------------------------------------------- */

.lightbox {
  position: fixed; z-index: 100; inset: 0; display: none;
  align-items: center; justify-content: center; padding: 70px;
  background: rgba(10, 12, 14, 0.94);
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: 1120px; max-height: 90vh; margin: 0; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; border: 1px solid var(--line-dark); }
.lightbox figcaption { margin-top: 14px; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; width: 48px; height: 48px;
  border: 1px solid var(--line-dark); border-radius: 3px; cursor: pointer;
  color: var(--white); background: transparent; font-size: 1.7rem; line-height: 1;
}
.lightbox-close:hover { border-color: var(--orange); color: var(--orange); }

/* --- анимации ------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- адаптив --------------------------------------------------- */

@media (max-width: 1060px) {
  :root { --container: calc(100% - 40px); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid .review-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column;
    align-items: flex-start; gap: 8px; padding: calc(var(--header-h) + 30px) 30px 40px;
    background: var(--graphite-2); transform: translateX(100%); transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .menu-open .main-nav { transform: none; }
  .main-nav a { font-family: var(--font-head); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
  .nav-phone { margin: 16px 0 0; font-family: var(--font-mono) !important; font-size: 1rem !important; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 96px; }
  .hero-visual { max-width: 660px; }
  .hero-photo { min-height: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-media { max-width: 560px; }
  .about-badge { left: 12px; }
  .faq-intro { position: static; }
  .project-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 28px); --radius: 6px; --header-h: 72px; }
  .nav-wrap { min-height: var(--header-h); }
  .brand-text small { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-partners { width: 100%; padding: 18px 20px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3.4; }
  .hero-card { right: 8px; bottom: -30px; padding: 18px 20px; }
  .hero-grid { padding-bottom: 104px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px 26px; }
  .services-grid, .process-grid, .reviews-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .gal-nav { width: 38px; height: 38px; }
  .gal-dots { display: none; }
  .values-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .promo-list li { padding: 12px 14px; font-size: 0.9rem; }
  .promo-actions .btn { flex: 1 1 100%; }
  .promo-thumb { flex-basis: 138px; }
  .request-form .btn, .success-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
  .lightbox { padding: 60px 12px 26px; }
}

/* ============================================================
   Страница каталога проектов (projects.html)
   ============================================================ */

/* шапка страницы */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--graphite);
  padding: calc(var(--header-h) + clamp(36px, 6vh, 72px)) 0 clamp(48px, 6vh, 76px);
}
.page-hero::before {
  content: ""; position: absolute; inset: auto 0 0; height: 6px;
  background: repeating-linear-gradient(-55deg, var(--orange) 0 16px, var(--graphite-2) 16px 32px);
}
.back-link {
  display: block; width: fit-content; margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.55); text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--orange-hover); }
.page-hero h1 { max-width: 880px; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.page-hero .lead { max-width: 760px; margin-top: 24px; color: rgba(255, 255, 255, 0.66); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-chips li {
  padding: 10px 16px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.hero-chips li:first-child { border-color: var(--orange); color: var(--orange-hover); }

/* почему готовый проект */
.benefits { background: var(--paper); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit-card {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 24px;
  border: 1px solid var(--line); background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 10px 10px 0 var(--orange-tint); }
.benefit-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--orange); }
.benefit-card strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.benefit-text { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

/* каталог */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.catalog-filter {
  padding: 12px 20px; border: 1px solid var(--line); border-radius: 3px;
  background: transparent; cursor: pointer; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.catalog-filter:hover { border-color: var(--ink); color: var(--ink); }
.catalog-filter.active { border-color: var(--ink); background: var(--ink); color: var(--white); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalog-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.catalog-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 10px 10px 0 var(--orange-tint); }
.catalog-card[hidden] { display: none; }
.catalog-visual { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 8.5; background: var(--graphite); }
.catalog-visual svg { width: 72%; height: auto; transition: transform 0.35s; }
.catalog-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.catalog-card:hover .catalog-visual svg,
.catalog-card:hover .catalog-img { transform: scale(1.05); }
.catalog-visual::after {
  content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 56px;
  background:
    linear-gradient(var(--orange), var(--orange)) top left / 100% 5px no-repeat,
    linear-gradient(var(--orange), var(--orange)) top left / 5px 100% no-repeat;
}
.catalog-area {
  position: absolute; right: 14px; bottom: 12px; padding: 7px 13px;
  background: rgba(16, 18, 20, 0.85); border-radius: 3px;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--white);
}
.catalog-area small { margin-left: 5px; font-size: 0.55em; color: var(--orange-hover); text-transform: uppercase; }
.catalog-price { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; color: var(--orange-deep); }
.catalog-body { display: flex; flex-direction: column; gap: 13px; flex: 1; padding: 22px 24px 24px; }
.catalog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catalog-top h3 { font-size: 1.25rem; }
.catalog-type {
  padding: 5px 10px; border: 1px solid var(--orange); color: var(--orange-deep); white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.catalog-features { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.catalog-features li { display: grid; grid-template-columns: 18px 1fr; gap: 4px; color: var(--muted); font-size: 0.9rem; }
.catalog-features li::before { content: "▸"; color: var(--orange); font-size: 0.95rem; }
.catalog-cta {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  font-weight: 800; font-size: 0.92rem; color: var(--ink); text-decoration: none;
  transition: color 0.2s;
}
.catalog-cta:hover { color: var(--orange-deep); }
.catalog-note { margin-top: 26px; color: var(--muted); font-size: 0.84rem; max-width: 720px; }

/* CTA-блок заказа проекта */
.order {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--graphite); padding: clamp(70px, 8vw, 110px) 0;
}
.order::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(-55deg, var(--orange) 0 16px, var(--graphite-2) 16px 32px);
}
.order::after {
  content: ""; position: absolute; inset: auto 0 0; height: 6px;
  background: repeating-linear-gradient(-55deg, var(--orange) 0 16px, var(--graphite-2) 16px 32px);
}
.order-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.order h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.order-copy .lead { margin-top: 20px; color: rgba(255, 255, 255, 0.66); }
.order-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.order .region-note { margin-top: 24px; }
.order-side { display: grid; gap: 14px; }
.order-fact { padding: 20px 22px; border: 1px solid var(--line-dark); background: var(--panel); }
.order-fact strong { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; text-transform: uppercase; color: var(--orange); }
.order-fact span { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.58); font-size: 0.86rem; }

/* адаптив новых блоков */
@media (max-width: 1060px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .benefits-grid, .catalog-grid { grid-template-columns: 1fr; }
  .hero-chips { flex-direction: column; }
  .order-actions .btn { flex: 1 1 100%; }
  .page-hero h1 { font-size: clamp(2rem, 8.4vw, 2.7rem); }
  .catalog-area { font-size: 1.7rem; }
}
