:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --panel: #1b1b1b;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.86);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav > a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.main-nav > a:hover {
  color: var(--text);
}

.main-nav > a.cta-link {
  color: var(--accent);
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  padding: 10px 16px;
}

.main-nav > a.cta-link:hover {
  color: #fff;
  background: var(--accent-strong);
}

.section {
  padding: 92px 0;
}

.section-dark {
  background: linear-gradient(150deg, #0b0b0b 0%, #111827 100%);
}

.section-concrete {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 40%),
    linear-gradient(170deg, #101010 0%, #171717 100%);
}

.section-laminate {
  background: linear-gradient(150deg, #141414 0%, #232323 100%);
}

.section-blueprint {
  background: linear-gradient(160deg, #0d1117 0%, #121827 100%);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero-inner {
  text-align: center;
}

.hero-logo {
  width: min(300px, 68vw);
  margin: 0 auto 28px;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 76px);
  font-weight: 800;
  line-height: 1.06;
}

.hero h1 > span {
  color: var(--accent);
}

.hero p {
  margin: 22px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 24px);
}

.hero-cta {
  display: inline-block;
  margin-top: 34px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-strong);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.section-head {
  max-width: 860px;
  margin: 0 auto 36px;
  text-align: center;
}

.badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 5.2vw, 56px);
  line-height: 1.1;
}

.muted {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 21px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.projects-grid .card,
.materials-grid .card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #0f0f0f;
}

.projects-grid .card {
  aspect-ratio: 4 / 5;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners-row {
  margin: 36px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.partner-logo {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.partner-logo img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.92;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.materials-grid .card {
  aspect-ratio: 1 / 1;
  position: relative;
}

.materials-grid .card > p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.contacts-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(7, 7, 7, 0.58);
  padding: clamp(24px, 5vw, 48px);
}

.contacts-card h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5.5vw, 64px);
}

.contacts-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contacts-grid a {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
}

.contacts-grid p {
  margin: 0 0 8px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  background: #090909;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #9d9d9d;
  font-size: 12px;
}

/* Контент по умолчанию всегда видим, чтобы страница работала даже без JS. */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Этот текст оставляем более узким, чтобы длинный блок оставался читаемым. */
.projects-text {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .main-nav > a:not(.cta-link) {
    display: none;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .projects-grid .card {
    aspect-ratio: 1 / 1;
  }

  #projects.section {
    padding: 64px 0;
  }

  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  /* Дополнительно уменьшаем визуальную высоту карточек на очень узких экранах. */
  .projects-grid .card {
    aspect-ratio: 6 / 5;
  }
}
