:root {
  --bg: #f7f7f2;
  --panel: #ffffff;
  --ink: #111411;
  --soft: #787d73;
  --line: #d9ddd2;
  --green: #8fb74f;
  --dark-green: #1c2b21;
  --silver: #eceee8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Helvetica Neue", Helvetica, "Avenir Next", sans-serif;
}

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

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

button {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 180px 1fr auto 44px;
  align-items: center;
  min-height: 82px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(17, 20, 17, 0.12);
  background: rgba(247, 247, 242, 0.9);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 20px;
  font-weight: 700;
  text-transform: lowercase;
}

.logo-box {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: #fff;
  background: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 38px;
  color: var(--soft);
  font-size: 14px;
}

.nav a:hover,
.top-actions a:first-child:hover {
  color: var(--ink);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.outline-button,
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.outline-button:hover {
  color: #fff;
  background: var(--ink);
}

.solid-button {
  color: #fff;
  background: var(--ink);
}

.solid-button:hover {
  border-color: var(--green);
  background: var(--green);
}

.menu {
  position: relative;
  justify-self: end;
}

.menu summary {
  display: grid;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 14px 9px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(17, 20, 17, 0.12);
}

.menu-panel a {
  padding: 13px 14px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.menu-panel a:hover {
  color: var(--ink);
  background: var(--silver);
}

.menu-panel .menu-request {
  margin-top: 8px;
  color: #fff;
  text-align: center;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 34px;
  min-height: 100svh;
  padding: 132px 32px 36px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 14px;
}

.kicker {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 30px;
  font-size: 112px;
  font-weight: 500;
  line-height: 0.9;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 420px) auto;
  gap: 34px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-row p,
.factory-copy p,
.project-card p,
.step-list p {
  color: var(--soft);
  line-height: 1.55;
}

.hero-row p {
  margin: 0;
  font-size: 18px;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #fff;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.16);
  transform-origin: center center;
}

.visual-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 156px;
  padding: 16px;
  color: #fff;
  text-align: center;
  background: var(--ink);
}

.visual-label span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.visual-label strong {
  font-size: 30px;
  font-weight: 500;
}

.visual-label small {
  color: rgba(255, 255, 255, 0.72);
}

.marquee-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-line span {
  min-height: 74px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.marquee-line span:last-child {
  border-right: 0;
}

.projects,
.factory,
.installation,
.steps,
.plan-section,
.contacts {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 40px;
  margin-bottom: 38px;
}

.section-head h2,
.factory-copy h2,
.plan-copy h2,
.contacts h2 {
  margin: 0;
  font-size: 62px;
  font-weight: 500;
  line-height: 1;
}

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

.project-card {
  display: grid;
  grid-template-rows: minmax(0, 360px) auto;
  min-height: 540px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.project-card-large {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #fff;
  filter: saturate(0.95);
}

.project-card img.model-l-image {
  object-fit: contain;
  background: #fff;
}

.card-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.card-info span {
  font-size: 24px;
  font-weight: 600;
}

.card-info strong {
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
}

.card-info p {
  grid-column: 1 / -1;
  margin: 0;
}

.dark-card {
  color: #fff;
  border-color: var(--dark-green);
  background: var(--dark-green);
}

.dark-card .card-info {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.dark-card p {
  color: rgba(255, 255, 255, 0.7);
}

.factory {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.factory-copy p {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 18px;
}

.fact-table {
  align-self: end;
  border-top: 1px solid var(--ink);
}

.fact-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.fact-table span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-table strong {
  font-size: 34px;
  font-weight: 500;
}

.wide-photo {
  height: 620px;
  overflow: hidden;
  background: #fff;
}

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

.installation {
  border-bottom: 1px solid var(--line);
}

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

.gif-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: #fff;
}

.gif-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.gif-info {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.gif-info span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.gif-info strong {
  font-size: 24px;
  font-weight: 600;
}

.gif-info p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.section-head.compact {
  max-width: 900px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step-list li {
  min-height: 240px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.step-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--green);
  font-weight: 800;
}

.step-list strong {
  display: block;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 600;
}

.step-list p {
  margin: 0;
}

.plan-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.plan-image {
  padding: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.plan-image img {
  width: 132%;
  max-width: none;
  margin: -7% -16%;
  object-fit: contain;
}

.plan-copy ul {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.plan-copy li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.plan-copy li span {
  color: var(--green);
  font-weight: 800;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 820px) auto;
  gap: 34px;
  align-items: end;
  width: 100%;
  padding: 88px 32px;
  color: #fff;
  background: var(--ink);
}

.contacts .kicker {
  color: var(--green);
}

.solid-button.light {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
}

.solid-button.light:hover {
  border-color: var(--green);
  background: var(--green);
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 150px 1fr 44px;
  }

  .top-actions {
    display: none;
  }

  .hero,
  .factory,
  .plan-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 480px;
  }

  h1 {
    font-size: 78px;
  }

  .section-head h2,
  .factory-copy h2,
  .plan-copy h2,
  .contacts h2 {
    font-size: 50px;
  }

  .project-grid,
  .gif-grid,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-large {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr 44px;
    min-height: 68px;
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .logo-box {
    width: 38px;
    height: 38px;
  }

  .hero {
    gap: 24px;
    padding: 104px 16px 24px;
  }

  h1 {
    margin-bottom: 24px;
    font-size: 48px;
    line-height: 0.95;
  }

  .hero-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .marquee-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .marquee-line span {
    min-height: 58px;
  }

  .projects,
  .factory,
  .installation,
  .steps,
  .plan-section {
    width: calc(100% - 32px);
    padding: 70px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-head h2,
  .factory-copy h2,
  .plan-copy h2,
  .contacts h2 {
    font-size: 36px;
    line-height: 1.05;
  }

  .project-grid,
  .gif-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-large {
    grid-column: auto;
  }

  .project-card {
    grid-template-rows: minmax(0, 300px) auto;
    min-height: 460px;
  }

  .factory {
    gap: 34px;
  }

  .fact-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fact-table strong {
    font-size: 28px;
  }

  .wide-photo {
    height: 430px;
  }

  .step-list span {
    margin-bottom: 28px;
  }

  .plan-image {
    padding: 14px;
  }

  .contacts {
    grid-template-columns: 1fr;
    padding: 66px 16px;
  }
}
