:root {
  --ink: #141414;
  --muted: #5f6663;
  --paper: #f8f6ef;
  --line: #d9d5c8;
  --green: #2f6f56;
  --red: #c94735;
  --gold: #d69a2d;
  --blue: #245a8d;
  --white: #ffffff;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f7f4ec;
  line-height: 1.5;
}

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

.signal-map {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(248, 246, 239, .92) 0%, rgba(239, 244, 238, .92) 52%, rgba(238, 242, 245, .92) 100%),
    url("assets/img/bishkek-public-domain.webp") center / cover fixed;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(248, 246, 239, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--red), var(--gold), var(--green), var(--blue), var(--red));
}

.brand-mark span {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--paper);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 3px;
  top: 19px;
  left: 21px;
  background: var(--ink);
  transform-origin: left center;
  transform: rotate(-28deg);
}

.brand-name { letter-spacing: 0; }
.brand-name b { color: var(--red); }

.site-nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a:hover { color: var(--ink); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  padding: 12px 18px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: 44px 0 64px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: #303632;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
}

.hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 18px 18px 0 rgba(20, 20, 20, 0.08);
}

.hero-media img,
.format-band img,
.showcase img,
.product-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-media img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  top: 28px;
  right: 28px;
  display: grid;
  gap: 2px;
  min-width: 154px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 20, 20, .16);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 32px rgba(20, 20, 20, .12);
}

.hero-media figcaption span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-media figcaption strong {
  font-size: 38px;
  line-height: 1;
}

.metric-grid div,
.format-band article,
.tool-grid article,
.client-grid span,
.case-strip article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.metric-grid div { padding: 16px; }
.metric-grid dt { color: var(--muted); font-size: 13px; }
.metric-grid dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; }

.hero-media .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 44px;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.intro > p {
  color: var(--muted);
  font-size: 20px;
}

.format-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 86px;
}

.format-band article,
.tool-grid article {
  padding: 24px;
}

.format-band article {
  display: grid;
  align-content: start;
}

.format-band img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.format-band span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 800;
}

.format-band p,
.tool-grid p,
.contact p {
  color: var(--muted);
}

.showcase,
.tools,
.clients,
.contact {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.showcase-grid,
.product-preview {
  display: grid;
  gap: 16px;
}

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

.showcase-grid figure {
  margin: 0;
}

.showcase-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.showcase-grid figure:last-child {
  grid-column: 1 / -1;
}

.showcase-grid figcaption {
  padding: 12px 16px 14px;
  color: var(--muted);
  font-weight: 800;
}

.product-preview {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.95fr);
  align-items: stretch;
  margin-bottom: 16px;
}

.product-preview img {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.tool-grid article:nth-child(2n) { border-color: rgba(47, 111, 86, .45); }
.tool-grid article:nth-child(3n) { border-color: rgba(36, 90, 141, .45); }

.clients {
  overflow: hidden;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.client-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 16px;
  color: #2e3330;
  font-weight: 800;
  text-align: center;
}

.case-strip {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 16px;
  padding: 0 0 86px;
}

.case-strip article {
  min-height: 160px;
  padding: 24px;
}

.case-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 42px;
}

.case-strip span { color: var(--muted); }

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
}

address {
  margin-top: 28px;
  font-style: normal;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea { resize: vertical; }

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-nav { display: none; }
  .menu-button { display: block; }
  .mobile-nav.is-open {
    position: sticky;
    top: 72px;
    z-index: 9;
    display: grid;
    gap: 12px;
  }
  .hero,
  .intro,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 38px; }
  .format-band,
  .tool-grid,
  .client-grid,
  .case-strip,
  .product-preview {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-strip article:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .section { width: min(100% - 28px, 1180px); }
  .brand-name { font-size: 15px; }
  .hero { min-height: auto; }
  h1 { font-size: 52px; }
  .hero-actions { display: grid; }
  .hero-media {
    padding: 8px;
    box-shadow: 10px 10px 0 rgba(20, 20, 20, 0.07);
  }
  .hero-media figcaption {
    position: static;
    margin-top: 8px;
  }
  .metric-grid,
  .format-band,
  .tool-grid,
  .client-grid,
  .case-strip,
  .showcase-grid,
  .product-preview,
  .hero-media .metric-grid {
    grid-template-columns: 1fr;
  }
  .intro,
  .showcase,
  .tools,
  .clients,
  .contact {
    padding: 58px 0;
  }
  .format-band,
  .case-strip {
    padding-bottom: 58px;
  }
}
