/* ── RESET & BASE ────────────────────────────────────────── */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(160deg, #1e2022 0%, #111315 40%, #0d0f10 100%);
  background-attachment: fixed;
  color: #fff;
  overflow-x: hidden;
}

:root {
  --text-white: #f4f6fa;
  --accent-red: #cf2f2f;
  --accent-red-soft: #9f2727;
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 100%; max-width: 100vw; box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 22px 52px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 5s, padding 0.4s, background 0.4s, backdrop-filter 0.4s;
}
.site-header.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.site-header.scrolled {
  padding: 14px 52px;
  background: rgba(10,12,14,0.88);
  backdrop-filter: blur(14px);
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 66px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

.header-nav {
  display: flex; gap: clamp(24px, 4vw, 72px);
  justify-content: center;
}
.header-nav a {
  font-size: 0.84rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: none;
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.header-nav a:hover { color: #fff; }

.header-right { display: flex; align-items: center; gap: 24px; }
.header-phone {
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.header-cta {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid rgba(207,47,47,0.8);
  color: rgba(255,255,255,0.9);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.header-cta:hover {
  background: rgba(207,47,47,0.85);
  border-color: #cf2f2f;
  color: #fff;
}
@media (max-width: 900px) { .header-cta { display: none; } }
.header-menu {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(207,47,47,0.95);
  background: linear-gradient(135deg, #d73737 0%, #b72424 100%);
  cursor: pointer; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  box-shadow: 0 8px 16px rgba(145,20,20,0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.header-menu span {
  display: block; width: 15px; height: 1px; background: #fff;
}
.header-menu:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

/* При повторном заходе/обновлении — без анимаций */
body.no-intro .hero-content { transition: none !important; }
body.no-intro .h-line { transition: none !important; }
body.no-intro .site-header { transition: opacity 0.3s, padding 0.4s, background 0.4s, backdrop-filter 0.4s !important; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden; background: #000;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}
.hero-overlay {
  display: none;
}

.hero-content {
  position: relative; z-index: 6;
  height: 100%; display: flex;
  align-items: center; justify-content: space-between;
  padding: 120px 52px 220px;
  opacity: 0;
  transition: opacity 5s ease-out;
}
.hero-content.hero-text-ready {
  opacity: 1;
}

/* — left column — */
.hero-left { display: flex; flex-direction: column; gap: 28px; max-width: 680px; }

.hero-heading {
  font-family: 'Raleway', sans-serif;
  display: flex; flex-direction: column; gap: 14px;
  font-size: clamp(2rem, 3.6vw, 4rem);
  font-weight: 200; line-height: 1.02;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.h-line {
  display: block;
  background: linear-gradient(105deg, rgba(228,236,248,0.98) 0%, rgba(228,236,248,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(32px);
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.h-line:nth-child(3) {
  background: linear-gradient(105deg, rgba(228,236,248,0.85) 0%, rgba(228,236,248,0.5) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.h-line:nth-child(4) {
  background: linear-gradient(105deg, rgba(228,236,248,0.65) 0%, rgba(228,236,248,0.3) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.h-line.visible {
  transform: translateY(0);
}
.h-line:nth-child(2).visible { transition-delay: 0.18s; }
.h-line:nth-child(3).visible { transition-delay: 0.36s; }
.h-line:nth-child(4).visible { transition-delay: 0.54s; }

.hero-sub {
  font-size: 1.02rem; font-weight: 400; line-height: 1.55;
  max-width: 500px;
  color: rgba(255,255,255,0.48);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
}
.hero-sub.visible { opacity: 1; transform: translateY(0); }

.btn-hero {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 22px; border: 1px solid rgba(255,255,255,0.32);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; color: #fff;
  width: fit-content;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.25s, border-color 0.25s;
}
.btn-hero.visible { opacity: 1; transform: translateY(0); }
.btn-hero:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.55); }
.btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.32); border-radius: 50%;
  font-size: 0.9rem;
}

/* — right column: annotation — */
.hero-right { display: flex; align-items: center; }
.hero-annotation {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
  font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); line-height: 1.95;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 18px;
  opacity: 0; transition: opacity 5s ease;
}
.hero-annotation.visible { opacity: 1; }
.hero-annotation::before {
  content: ''; position: absolute; top: -5px; right: -5px;
  width: 12px; height: 12px;
  border-top: 1px solid rgba(255,255,255,0.45);
  border-right: 1px solid rgba(255,255,255,0.45);
}
.hero-annotation::after {
  content: ''; position: absolute; bottom: -5px; left: -5px;
  width: 12px; height: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.45);
}

/* — counter — */
.hero-counter {
  position: absolute; bottom: 40px; right: 52px; z-index: 2;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; color: rgba(255,255,255,0.35);
}

/* ── HEADER RED CTA ──────────────────────────────────────── */
.btn-cta-red {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: var(--accent-red);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: #fff;
  white-space: nowrap;
  transition: background 0.25s;
}
.btn-cta-red:hover { background: var(--accent-red-soft); }
.cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

/* ── HERO BUTTON LINE STYLE ──────────────────────────────── */
.btn-hero-line {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: #fff;
  width: fit-content; line-height: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.btn-hero-line.visible { opacity: 1; }
.btn-line-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(207,47,47,0.85); font-size: 0.9rem; line-height: 1;
}
.btn-line {
  flex-shrink: 0; width: 34px; height: 1px;
  background: rgba(207,47,47,0.78);
  transform: translateY(1px);
}

/* ── HERO COUNTER ────────────────────────────────────────── */
.hero-counter {
  position: absolute; bottom: 182px; right: 52px; z-index: 4;
  display: flex; align-items: center; gap: 10px;
}
.hc-item {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.24);
}
.hc-active {
  color: rgba(255,255,255,0.56);
}
.hc-dash {
  display: block; width: 22px; height: 1px;
  background: rgba(255,255,255,0.13);
}

.materials-drawer {
  --drawer-open-duration: 5000ms;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(9,13,18,0.02) 0%, rgba(9,13,18,0.82) 36%);
  border-top: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.22);
  backdrop-filter: blur(2px);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.8s ease,
    transform var(--drawer-open-duration) cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

@keyframes drawer-open-cinematic {
  0% {
    transform: translateY(calc(100% - 84px));
  }
  66.666% {
    transform: translateY(calc(20% - 16.8px));
  }
  100% {
    transform: translateY(0);
  }
}

.materials-drawer.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(calc(100% - 84px));
}

.materials-drawer.is-open {
  transform: translateY(0);
}

.materials-drawer.is-open.is-cinematic-open {
  transition: opacity 0.8s ease;
  animation: drawer-open-cinematic var(--drawer-open-duration) linear forwards;
}

.materials-drawer-toggle {
  width: 100%;
  height: 84px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.72);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  cursor: pointer;
}

.materials-drawer-toggle span {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.materials-drawer.is-visible .materials-drawer-toggle span {
  opacity: 1;
  transform: translateY(0);
}

.materials-drawer.is-visible .materials-drawer-toggle span:first-child { transition-delay: 0s; }
.materials-drawer.is-visible .materials-drawer-toggle span:last-child { transition-delay: 0s; }

.drawer-toggle-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s ease;
}

.materials-drawer.is-open .drawer-toggle-arrow {
  transform: rotate(90deg);
}

.materials-drawer-inner {
  padding: 0 52px 28px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(0);
  pointer-events: none;
  transition:
    opacity 0.56s ease 0s,
    transform 0.88s cubic-bezier(0.22, 0.61, 0.36, 1) 0s,
    filter 0.38s ease 0s;
}

.materials-drawer.is-open .materials-drawer-inner {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.material-thumb {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 132px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.994);
  transition:
    opacity 0.56s ease,
    transform 0.88s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.material-thumb:hover img {
  transform: scale(1.012);
}

.material-thumb img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  filter: brightness(0.78) saturate(0.84) contrast(0.95);
  transition: transform 0.35s ease;
}

.material-thumb span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.62);
  line-height: 1.35;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.65);
}

.material-all {
  text-decoration: none;
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  color: rgba(255,255,255,0.62);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px) scale(0.994);
  transition:
    opacity 0.56s ease,
    transform 0.88s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.materials-drawer.is-open .material-thumb,
.materials-drawer.is-open .material-all {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.materials-drawer.is-open .material-thumb:nth-child(1) { transition-delay: 0s; }
.materials-drawer.is-open .material-thumb:nth-child(2) { transition-delay: 0s; }
.materials-drawer.is-open .material-thumb:nth-child(3) { transition-delay: 0s; }
.materials-drawer.is-open .material-thumb:nth-child(4) { transition-delay: 0s; }
.materials-drawer.is-open .material-thumb:nth-child(5) { transition-delay: 0s; }
.materials-drawer.is-open .material-all { transition-delay: 0s; }

.material-all-arrow {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ── STONE CARD DASH ─────────────────────────────────────── */
.stone-dash {
  display: block; width: 22px; height: 2px;
  background: var(--accent-red);
  margin: 8px 0 6px;
}
.stone-info {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  background: #12141a;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stone-info h3 {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-white);
}
.stone-info p {
  font-size: 0.62rem; color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
}
.stone-arrow {
  font-size: 1rem; color: rgba(255,255,255,0.35);
  transition: color 0.2s, transform 0.2s;
  align-self: flex-end; margin-top: 12px;
}
.stone-card:hover .stone-arrow {
  color: var(--accent-red); transform: translateX(4px);
}

/* ── ABOUT REDESIGN ──────────────────────────────────────── */
.about-section {
  background: #161819;
  padding: 80px 52px;
}
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; align-items: start;
}
.about-left { display: flex; flex-direction: column; gap: 20px; }
.about-left .section-title {
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 700; letter-spacing: 0.01em;
  text-transform: none; line-height: 1.25;
}
.about-text {
  font-size: 0.8rem; line-height: 1.85;
  color: rgba(255,255,255,0.45);
}
.link-more {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  color: var(--accent-red);
  margin-top: 8px;
}
.link-more-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1rem;
}
.link-more-line {
  display: block; width: 32px; height: 1px;
  background: var(--accent-red);
}
.about-middle { display: flex; flex-direction: column; justify-content: center; }
.feature-list { display: flex; flex-direction: column; gap: 0; }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.feature-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.feature-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
}
.feature-text { display: flex; flex-direction: column; gap: 3px; }
.feature-title {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-white);
}
.feature-desc {
  font-size: 0.7rem; color: rgba(255,255,255,0.38); line-height: 1.5;
}
.about-right-img { position: relative; }
.about-img-wrap { position: relative; height: 100%; min-height: 420px; }
.about-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #1b1e24;
}
.about-projects-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,12,14,0.9);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
}
.badge-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-red);
  display: block; margin-bottom: 4px;
}
.badge-title {
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: 0.02em; color: #fff; line-height: 1.2;
  flex: 1;
}
.badge-btn {
  flex-shrink: 0; width: 46px; height: 46px;
  background: var(--accent-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; text-decoration: none;
  transition: background 0.25s;
}
.badge-btn:hover { background: var(--accent-red-soft); }


.section-label {
  display: block;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 0.82rem; line-height: 1.75;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
}
.section-header {
  padding: 72px 52px 48px;
}
.section-header--light {
  background: #1a1c1e;
}
.section-cta {
  padding: 40px 52px 72px;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 26px; border: 1px solid rgba(255,255,255,0.28);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; color: #fff;
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.55); }
.btn-outline .btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 50%;
  font-size: 0.88rem;
}

/* ── STONE CATALOG ───────────────────────────────────────── */
.stone-catalog-section {
  background: #161819;
}

/* — 3 главных горизонтальных карточки (как в примере) — */
.stone-main-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stone-main-cards--gap {
  gap: 10px;
  padding: 10px 0;
  border-top: none;
}
.stone-main-cards--gap .stone-split-card {
  border-right: none;
}
.stone-split-card {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 280px;
  cursor: pointer;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stone-split-card:last-child { border-right: none; }
.stone-split-text {
  background: #141618;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stone-split-text h3 {
  font-size: clamp(0.85rem, 1.2vw, 1.15rem);
  font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; line-height: 1.2;
}
.stone-split-text p {
  font-size: 0.73rem; line-height: 1.7;
  color: rgba(255,255,255,0.42);
}
.stone-split-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.88rem; color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  align-self: flex-start;
}
.stone-split-card:hover .stone-split-arrow {
  background: var(--accent-red); border-color: var(--accent-red);
}
.stone-split-img {
  background-size: cover;
  background-position: center;
  will-change: transform;
  contain: strict;
  transition: transform 0.55s ease;
}
.stone-split-card:hover .stone-split-img { transform: scale(1.05); }

/* — Текстуры камня — CSS-генерация без изображений — */

/* МРАМОР: фото из референса */
.stone-marble {
  background-image: url('stone_marble.jpg');
  background-size: cover;
  background-position: center;
}

/* ГРАНИТ: фото из референса */
.stone-granite {
  background-image: url('stone_granite.jpg');
  background-size: cover;
  background-position: center;
}

/* ОНИКС: фото из референса */
.stone-onyx {
  background-image: url('stone_onyx.jpg');
  background-size: cover;
  background-position: center;
}

/* БАЗАЛЬТ: вулканически-чёрный (SVG-шум высокой частоты) */
.stone-basalt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='350' height='280'%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.88' numOctaves='4' seed='3'/%3E%3CfeColorMatrix type='matrix' values='0.28 0 0 0 -0.05  0.28 0 0 0 -0.05  0.3 0 0 0 -0.055  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ИЗВЕСТНЯК: тёплый бежевый, ровная зернистость */
.stone-limestone {
  background-image:
    linear-gradient(172deg, #cbb89a 0%, #bfa88a 12%, #cdb998 24%, #c0aa8c 36%,
      #d0bc9e 48%, #beab8c 60%, #c9b596 72%, #bba88a 84%, #cbba9a 100%),
    linear-gradient(88deg, rgba(185,165,135,0.2) 0%, transparent 35%,
      rgba(205,182,152,0.15) 65%, transparent 100%);
}

/* КВАРЦИТ: прохладный серо-белый (SVG-шум среднечастотный) */
.stone-quartzite {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='350' height='280'%3E%3Cfilter id='q' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.32 0.36' numOctaves='5' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0.3 0 0 0 0.60  0.28 0 0 0 0.59  0.26 0 0 0 0.57  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23q)'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ТРАВЕРТИН: тёплые горизонтальные полосы-слои */
.stone-travertine {
  background-image:
    repeating-linear-gradient(
      0deg,
      #cdb488 0px,  #d8c092 6px,  #c8ae80 11px, #d4be8e 17px,
      #c0a87a 22px, #ccb886 28px, #c4ae80 33px, #d0bc8c 39px,
      #bcaa7c 44px, #cabb8a 50px, #c0aa7e 55px, #d2be8e 61px
    ),
    linear-gradient(94deg, rgba(175,152,110,0.25) 0%, transparent 38%,
      rgba(195,172,130,0.2) 72%, transparent 100%);
}

/* СЛАНЕЦ: тёмно-серый с тонкими горизонтальными слоями */
.stone-slate {
  background-image:
    repeating-linear-gradient(
      0deg,
      #27282e 0px,  #2c2d34 2.5px, #232428 5px,   #2a2b32 7.5px,
      #26272d 10px, #2e303a 12.5px, #24252c 15px,  #2c2d35 17.5px,
      #28293a 20px, #262730 22.5px, #2a2b32 25px,  #222328 27.5px
    ),
    linear-gradient(98deg, rgba(48,52,72,0.45) 0%, rgba(32,35,55,0.25) 50%, rgba(42,46,65,0.35) 100%);
}

/* ПЕСЧАНИК: золотисто-охристый (SVG-шум средней частоты) */
.stone-sandstone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='350' height='280'%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.45' numOctaves='3' seed='18'/%3E%3CfeColorMatrix type='matrix' values='0.4 0 0 0 0.57  0.2 0 0 0 0.47  0.1 0 0 0 0.27  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: cover;
}

/* — Сетка доп. камней — */
.stone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 52px;
}
.stone-card--wide {
  grid-column: span 2;
}
.stone-card {
  position: relative; cursor: pointer; overflow: hidden;
  background: #141618;
}
.stone-img {
  height: 260px;
  background-size: cover; background-position: center;
  background-color: #1b1e24;
  transition: transform 0.55s ease;
}
.stone-card--wide .stone-img { height: 260px; }
.stone-card:hover .stone-img { transform: scale(1.06); }

/* ── PRODUCTS SECTION ────────────────────────────────────── */
.products-section {
  background: #1a1c1e;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0 52px;
}
.product-card { position: relative; cursor: pointer; overflow: hidden; }
.product-img {
  height: 340px;
  background-size: cover; background-position: center;
  background-color: #1b1e24;
  transition: transform 0.55s ease;
  position: relative;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start;
  padding: 28px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, transparent 55%);
  opacity: 1; transition: background 0.3s;
}
.product-card:hover .product-overlay { background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 100%); }
.product-overlay h3 {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-bottom: 8px;
}
.product-link {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-red); text-decoration: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.product-card:hover .product-link { opacity: 1; transform: translateY(0); }

/* ── CLIENTS SECTION ─────────────────────────────────────── */
.clients-section {
  background: #161819;
}
.clients-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 52px 0;
  margin-bottom: 0;
}
.client-logo-item {
  height: 110px;
  background: #141618;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.04);
  transition: color 0.25s, background 0.25s;
}
.client-logo-item:hover {
  color: rgba(255,255,255,0.65);
  background: #1c1e24;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: #0c0d0e;
  padding: 64px 52px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 48px; align-items: start;
}
.footer-logo { height: 42px; width: auto; margin-bottom: 16px; }
.footer-brand p, .footer-contacts-block p {
  font-size: 0.75rem; line-height: 1.9;
  color: rgba(255,255,255,0.38);
}
.footer-nav { display: flex; flex-direction: column; gap: 2px; }
.footer-nav a {
  font-size: 0.75rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.38); text-decoration: none;
  line-height: 2; transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-back {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color 0.2s;
}
.footer-back:hover { color: #fff; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
/* ── ПЛАНШЕТ ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stone-main-cards { grid-template-columns: repeat(2, 1fr); }
  .stone-grid { grid-template-columns: repeat(2, 1fr); }
  .stone-card--wide { grid-column: span 2; }
  .products-grid { grid-template-columns: repeat(2, 1fr); padding: 0 28px; }
}

@media (max-width: 900px) {
  /* Шапка */
  .header-nav { display: none; }
  .brand-logo { height: 50px; }
  .header-phone { font-size: 0.85rem; }
  /* на мобильном меню скрыто, поэтому grid ломается — переключаем на flex,
     чтобы логотип был слева, а бургер прижался вправо */
  .site-header,
  .site-header.scrolled {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; left: 0; right: 0; width: 100%;
  }

  /* Герой */
  .hero-video { object-fit: cover; }
  .hero-content { padding: 100px 24px 140px; flex-direction: column; align-items: flex-start; }
  .hero-right { display: none; }
  .hero-heading { font-size: clamp(2.2rem, 7vw, 3.8rem); }
  .hero-sub { font-size: 0.9rem; max-width: 100%; }
  .hero-counter { right: 24px; bottom: 100px; }

  /* Ящик материалов */
  .materials-drawer.is-visible { transform: translateY(calc(100% - 66px)); }
  .materials-drawer-toggle { height: 66px; padding: 0 24px; font-size: 0.75rem; }
  .materials-drawer-inner { padding: 0 24px 20px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .material-thumb img { height: 100px; }
  .material-all { grid-column: span 2; height: 40px; }

  /* Секции */
  .section-header { padding: 48px 24px 32px; }
  .section-cta { padding: 24px 24px 48px; }
  .stone-main-cards { grid-template-columns: repeat(2, 1fr); }
  .stone-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .stone-card--wide { grid-column: span 2; }
  .products-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .about-section { padding: 60px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .clients-logos { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .site-footer { padding-left: 24px; padding-right: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* Галерея */
  .sg-modal { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .sg-contacts { gap: 8px 16px; }
  .sg-img-wrap { max-height: 45vh; }
  .sg-img { max-height: 45vh; }
}

/* ── МОБИЛЬНЫЙ ───────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Шапка */
  .site-header,
  .site-header.scrolled { padding: 14px 18px; }
  .brand-logo { height: 40px; }
  .header-phone { font-size: 0.78rem; letter-spacing: 0; }

  /* Герой */
  .hero-video { object-fit: cover; }
  .hero-content { padding: 90px 18px 120px; }
  .hero-heading { font-size: clamp(1.4rem, 7.5vw, 2.2rem); gap: 8px; }
  .hero-sub { font-size: 0.8rem; display: none; }
  .hero-counter { right: 18px; bottom: 90px; }
  .btn-hero-line { font-size: 0.62rem; letter-spacing: 0.09em; }

  /* Ящик материалов */
  .materials-drawer-toggle { padding: 0 18px; font-size: 0.7rem; }
  .materials-drawer-inner { padding: 0 18px 16px; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .material-thumb img { height: 88px; }
  .material-thumb span { font-size: 0.6rem; }

  /* Секции */
  .section-header { padding: 40px 18px 28px; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .section-cta { padding: 20px 18px 40px; }

  /* Каталог камня — карточки в 1 колонку вертикально */
  .stone-main-cards { grid-template-columns: 1fr; }
  .stone-main-cards--gap { gap: 6px; }
  .stone-split-card { grid-template-columns: 1fr; grid-template-rows: 220px auto; min-height: unset; }
  .stone-split-img { order: -1; height: 220px; }
  .stone-split-text { padding: 18px 20px 20px; }
  .stone-split-text h3 { font-size: 0.75rem; letter-spacing: 0.1em; }
  .stone-split-arrow { font-size: 1rem; }

  /* Сетка камней */
  .stone-grid { grid-template-columns: 1fr; padding: 0 18px; gap: 6px; }
  .stone-card--wide { grid-column: span 1; }
  .stone-img { height: 200px; }

  /* Продукты */
  .products-grid { grid-template-columns: 1fr; padding: 0 18px; gap: 2px; }
  .product-img { height: 240px; }

  /* О компании */
  .about-section { padding: 48px 18px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-number { font-size: 2rem; }

  /* Клиенты */
  .clients-logos { grid-template-columns: repeat(2, 1fr); padding: 0 18px; gap: 2px; }

  /* Футер */
  .site-footer { padding: 40px 18px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { flex-direction: column; gap: 12px; }

  /* Галерея */
  .sg-overlay { align-items: flex-end; }
  .sg-modal { width: 100vw; max-height: 95dvh; border-radius: 12px 12px 0 0; }
  .sg-header { padding: 16px 16px 8px; }
  .sg-title { font-size: 0.68rem; padding-right: 30px; }
  .sg-contacts { flex-direction: column; gap: 6px; margin-top: 8px; }
  .sg-contact { font-size: 0.68rem; }
  .sg-order-btn { width: 100%; justify-content: center; padding: 12px; margin-top: 4px; font-size: 0.62rem; }
  .sg-main { padding: 6px 0; }
  .sg-img-wrap { max-height: 38vh; }
  .sg-img { max-height: 38vh; }
  .sg-nav { font-size: 2.2rem; padding: 0 12px; }
  .sg-thumbs { padding: 8px 14px; gap: 5px; }
  .sg-thumb { width: 58px; height: 42px; }
  .sg-counter { padding: 6px 0 10px; font-size: 0.6rem; }
  .sg-close { top: 12px; right: 12px; font-size: 1.2rem; }
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── ADMIN MODE ─────────────────────────────────────────── */
.admin-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 220;
  border: 1px solid rgba(214, 184, 124, 0.55);
  background: linear-gradient(135deg, rgba(32, 28, 20, 0.95) 0%, rgba(112, 84, 40, 0.95) 100%);
  color: #f7f1e3;
  padding: 12px 16px;
  font: 700 0.68rem/1 'Exo 2', 'Montserrat', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.admin-shell[hidden] {
  display: none;
}

.admin-shell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 260;
  width: min(400px, 100vw);
  pointer-events: none;
}

.admin-backdrop {
  display: none;
}

.admin-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.99) 0%, rgba(9, 11, 14, 0.99) 100%);
  border-left: 1px solid rgba(214, 184, 124, 0.18);
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.4);
  padding: 22px;
  pointer-events: all;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-kicker {
  display: block;
  color: rgba(214, 184, 124, 0.78);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.admin-panel h2 {
  font: 700 1.35rem/1.15 'Exo 2', 'Montserrat', sans-serif;
  color: #f6f3ed;
}

.admin-close,
.admin-action,
.admin-primary,
.admin-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f7f5;
  cursor: pointer;
}

.admin-close {
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  line-height: 1;
}

.admin-login,
.admin-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.admin-field input {
  width: 100%;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 500 0.92rem/1.2 'Montserrat', sans-serif;
}

.admin-primary,
.admin-secondary,
.admin-action {
  padding: 13px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-primary {
  background: linear-gradient(135deg, #d2ae6e 0%, #8d6530 100%);
  color: #15120d;
  border-color: rgba(210, 174, 110, 0.5);
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-note p,
.admin-hint {
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.56);
}

.admin-status {
  padding: 12px 14px;
  border: 1px solid rgba(214, 184, 124, 0.22);
  background: rgba(214, 184, 124, 0.08);
  color: #f3e8d3;
  font-size: 0.72rem;
  line-height: 1.6;
}

.admin-status.is-error {
  border-color: rgba(207, 47, 47, 0.32);
  background: rgba(207, 47, 47, 0.08);
  color: #ffd2d2;
}

.admin-builder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-builder[hidden] {
  display: none;
}

.admin-builder-title {
  font: 700 1rem/1.2 'Exo 2', 'Montserrat', sans-serif;
  color: #f6f3ed;
}

.admin-builder textarea {
  width: 100%;
  padding: 14px 14px;
  resize: vertical;
  min-height: 108px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 500 0.92rem/1.55 'Montserrat', sans-serif;
}

.admin-builder-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.admin-panel-footer {
  display: flex;
  gap: 10px;
}

.admin-panel-footer > * {
  flex: 1;
}

body.admin-mode [data-admin-section] {
  position: relative;
}

body.admin-mode .admin-editable {
  outline: 1px dashed rgba(214, 184, 124, 0.34);
  outline-offset: 4px;
  cursor: text;
}

body.admin-mode .admin-editable:focus {
  outline-color: rgba(214, 184, 124, 0.88);
  background: rgba(214, 184, 124, 0.08);
}

body.admin-mode .admin-image-editable {
  cursor: pointer;
  position: relative;
}

body.admin-mode .admin-image-editable::after {
  content: 'Заменить фото';
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  background: rgba(10, 12, 14, 0.76);
  border: 1px solid rgba(214, 184, 124, 0.35);
  color: #f7f1e3;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

body.admin-mode .stone-split-card,
body.admin-mode .stone-card,
body.admin-mode .product-card,
body.admin-mode .feature-item,
body.admin-mode .client-logo-item {
  position: relative;
}

.admin-delete-block {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(214, 184, 124, 0.35);
  background: rgba(10, 12, 14, 0.82);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .admin-shell {
    width: 100vw;
  }

  .admin-actions-grid {
    grid-template-columns: 1fr;
  }

  .admin-builder-actions {
    grid-template-columns: 1fr;
  }

  .admin-panel-footer {
    flex-direction: column;
  }
}

/* ── ГАЛЕРЕЯ КАМНЯ ───────────────────────────────────────── */
.sg-overlay { position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center; }
.sg-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.88); }
.sg-modal { position:relative; z-index:1; width:min(920px,96vw); max-height:92vh; background:#111315; display:flex; flex-direction:column; }
.sg-close { position:absolute; top:14px; right:16px; background:none; border:none; color:#fff; font-size:1.4rem; cursor:pointer; z-index:2; opacity:.7; transition:opacity .2s; }
.sg-close:hover { opacity:1; }
.sg-header { padding:22px 24px 10px; border-bottom:1px solid rgba(255,255,255,.08); }
.sg-title { font-size:.75rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#fff; }
.sg-main { flex:1; display:flex; align-items:center; min-height:0; padding:10px 0; }
.sg-img-wrap { flex:1; display:flex; align-items:center; justify-content:center; min-height:300px; max-height:56vh; overflow:hidden; position:relative; }
.sg-img { max-width:100%; max-height:56vh; object-fit:contain; display:block; }
.sg-nav { flex-shrink:0; background:none; border:none; color:#fff; font-size:2.8rem; cursor:pointer; padding:0 18px; opacity:.55; transition:opacity .2s; line-height:1; }
.sg-nav:hover { opacity:1; }
.sg-thumbs { display:flex; gap:6px; padding:10px 20px; overflow-x:auto; scrollbar-width:none; }
.sg-thumbs::-webkit-scrollbar { display:none; }
.sg-thumb { width:72px; height:52px; object-fit:cover; cursor:pointer; opacity:.5; transition:opacity .2s; border:2px solid transparent; flex-shrink:0; }
.sg-thumb--active, .sg-thumb:hover { opacity:1; border-color:var(--red, #c0392b); }
.sg-counter { text-align:center; font-size:.65rem; letter-spacing:.14em; color:rgba(255,255,255,.35); padding:8px 0 14px; }
.stone-split-card[data-gallery] { cursor:pointer; }
.sg-contacts { display:flex; flex-wrap:wrap; gap:10px 24px; margin-top:10px; }
.sg-contact { display:inline-flex; align-items:center; gap:7px; font-size:.72rem; color:rgba(255,255,255,.55); text-decoration:none; letter-spacing:.04em; transition:color .2s; }
.sg-contact[href]:hover { color:#fff; }
.sg-contact-icon { font-size:.8rem; color:rgba(207,47,47,.85); }
.sg-order-btn { display:inline-flex; align-items:center; padding:10px 22px; background:#cf2f2f; color:#fff; font-size:.65rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; text-decoration:none; transition:background .2s; white-space:nowrap; }
.sg-order-btn:hover { background:#a82424; }
.sg-modal > .sg-contacts { padding: 14px 20px 18px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
@media (max-width: 600px) { .sg-modal > .sg-contacts { padding: 12px 16px 16px; } }

/* ── НАШИ РАБОТЫ ─────────────────────────────────────── */
.works-section {
  padding: 80px 52px;
  background: #161819;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 48px;
}
.work-card {
  position: relative;
  height: 480px;
  background: #0d1929 center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
}
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  transition: background 0.35s;
}
.work-card:hover .work-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.05) 100%);
}
.work-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.work-num {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em;
  color: #cf2f2f;
}
.work-title {
  font-size: 1rem; font-weight: 600; line-height: 1.3;
  color: #fff; text-transform: uppercase; letter-spacing: 0.03em;
}
.work-more {
  font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.work-card:hover .work-more {
  opacity: 1; transform: translateY(0);
}

@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card { height: 320px; }
}
@media (max-width: 600px) {
  .works-section { padding: 60px 16px; }
  .works-grid { grid-template-columns: 1fr; gap: 6px; }
  .work-card { height: 260px; }
}

/* ── МОБИЛЬНОЕ МЕНЮ ──────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99;
  background: rgba(15,17,18,0.97);
  backdrop-filter: blur(18px);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  width: 100%;
}
.mobile-nav-link {
  display: block;
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,0.7);
  padding: 14px 0;
  width: 100%; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-nav-link:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-nav-link:hover, .mobile-nav-link:active { color: #fff; }
.mobile-phone {
  margin-top: 36px;
  font-size: 1.1rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45); text-decoration: none;
}
.mobile-cta {
  margin-top: 20px;
  padding: 14px 36px;
  background: transparent;
  border: 1px solid rgba(207,47,47,0.8);
  color: rgba(255,255,255,0.9);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.mobile-cta:hover { background: rgba(207,47,47,0.85); }
.header-menu span { transition: transform 0.25s ease; }
.header-menu.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.header-menu.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 901px) { .mobile-menu { display: none !important; } }
@media (max-width: 900px) { .mobile-menu { display: flex; } .header-nav { display: none; } .header-phone { display: none; } .header-menu { display: flex; } }

/* ── FOOTER BOTTOM ───────────────────────────────────── */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 52px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.2);
}
.footer-bottom a {
  color: rgba(255,255,255,0.2); text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 16px 18px; }
}

/* ── КНОПКА ЗАЯВКИ ───────────────────────────────────── */
.btn-request {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  background: #cf2f2f;
  border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  transition: background 0.25s;
}
.btn-request:hover { background: #9f2727; }

/* ── МОДАЛЬНАЯ ФОРМА ЗАЯВКИ ──────────────────────────── */
.req-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.req-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}
.req-modal {
  position: relative; z-index: 1;
  background: #111316;
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%; max-width: 480px;
  padding: 48px 44px 40px;
  margin: 20px;
}
.req-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.req-close:hover { color: #fff; }
.req-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
  color: #cf2f2f; margin-bottom: 10px;
}
.req-title {
  font-size: 1.5rem; font-weight: 700; line-height: 1.25;
  color: #fff; margin-bottom: 32px;
}
.req-field { margin-bottom: 18px; }
.req-field-label {
  display: block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
  margin-bottom: 7px;
}
.req-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem; color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.req-input::placeholder { color: rgba(255,255,255,0.25); }
.req-input:focus { border-color: rgba(207,47,47,0.6); }
.req-textarea { min-height: 90px; resize: vertical; }
.req-submit {
  width: 100%; margin-top: 8px;
  padding: 15px;
  background: #cf2f2f; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
  transition: background 0.25s;
}
.req-submit:hover { background: #9f2727; }
.req-agree {
  font-size: 0.65rem; color: rgba(255,255,255,0.25);
  text-align: center; margin-top: 12px; line-height: 1.5;
}
.req-agree a { color: rgba(255,255,255,0.4); }

/* Успешная отправка */
.req-success { text-align: center; padding: 20px 0; }
.req-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(207,47,47,0.15);
  border: 1px solid #cf2f2f;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #cf2f2f;
  margin: 0 auto 24px;
}
.req-success-text {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 20px;
}
.req-phone-link {
  display: inline-block;
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; text-decoration: none;
}
.req-phone-link:hover { color: #cf2f2f; }

@media (max-width: 600px) {
  .req-modal { padding: 36px 22px 28px; }
  .req-title { font-size: 1.2rem; }
}
