:root {
  --color-primary: #7b1b19;
  --color-primary-dark: #4e0f0e;
  --color-primary-soft: #9a2f2c;
  --color-on-primary: #ffffff;
  --color-ink: #111111;
  --color-ink-soft: #2b2b2b;
  --color-muted: #5f5755;
  --color-bg: #f7f3f0;
  --color-surface: #ffffff;
  --color-border: #e6ddd8;
  --color-gold: #a16207;
  --color-ring: #7b1b19;
  --shadow-card: 0 18px 50px rgba(17, 17, 17, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-display: "Poppins", sans-serif;
  --font-body: "Mulish", sans-serif;
  --header-h: 84px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: #fff;
  color: var(--color-ink);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  background: #0a0a0a;
  color: #f8f8f8;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 8px 0;
}

.topbar-contacts,
.socials {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: #f8f8f8;
  transition: color 200ms var(--ease);
}

.topbar a:hover,
.topbar a:focus-visible {
  color: #ffd7d4;
}

.socials a {
  width: 36px;
  height: 36px;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #000;
  border-radius: 14px;
  padding: 6px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand-name span {
  font-size: 12px;
  color: var(--color-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-soft);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(135deg, #4e0f0e 0%, #7b1b19 48%, #2a0a09 100%);
  color: #fff;
  padding: 72px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero p {
  margin: 0 0 28px;
  max-width: 58ch;
  color: #f6eceb;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 25px;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.nav a:focus-visible,
.topbar a:focus-visible {
  outline: 3px solid #f3c2bf;
  outline-offset: 3px;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

.btn-gold {
  background: #c9a227;
  color: #1a1403;
}

.btn-gold:hover {
  background: #dfb52d;
}

.btn-light {
  background: #fff;
  color: #111;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #f8f1f0;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  background: #000;
}

.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.kicker {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.cta-band h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(123, 27, 25, 0.12);
}

.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #f4e8e7;
  color: var(--color-primary);
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #f3eee9;
  color: var(--color-ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.app-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.app-card p {
  margin: 0;
  color: var(--color-muted);
}

.app-card .btn {
  margin-top: auto;
}

.about-grid,
.install-grid,
.solutions-grid,
.sectors-grid {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-photo {
  border-radius: 32px;
  overflow: hidden;
  min-height: 420px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.solutions-grid {
  grid-template-columns: repeat(3, 1fr);
}

.solution-card,
.sector-card,
.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 24px;
}

.solution-card h3,
.sector-card h3,
.step-card h3 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.solution-card p,
.sector-card p,
.step-card p {
  margin: 0;
  color: var(--color-muted);
}

.sectors-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sector-card {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.72)),
    var(--sector-image) center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sector-card p {
  color: #f3f3f3;
}

.install-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.cta-band {
  background: #111;
  color: #fff;
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band p {
  margin: 0;
  color: #d8d8d8;
}

.footer {
  background: #0a0a0a;
  color: #ececec;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: #d6d6d6;
}

.footer a:hover {
  color: #fff;
}

.footer .brand-name strong {
  color: #fff;
}

.footer .brand-name span,
.footer p {
  color: #b7b7b7;
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  color: #9a9a9a;
  font-size: 13px;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 28px;
  height: 28px;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .apps-grid,
  .solutions-grid,
  .sectors-grid,
  .install-grid,
  .footer-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(var(--header-h) + 8px);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-card);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-contacts span.hide-sm {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .topbar-inner {
    justify-content: center;
  }

  .socials {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
