:root {
  --navy: #08131f;
  --navy-2: #102033;
  --steel: #d9e3ec;
  --steel-2: #7b8b9d;
  --white: #ffffff;
  --paper: #f5f8fb;
  --text: #122033;
  --muted: #5b6878;
  --cyan: #20d6c6;
  --blue: #2478ff;
  --amber: #ffb74a;
  --line: rgba(18, 32, 51, 0.12);
  --shadow: 0 24px 70px rgba(8, 19, 31, 0.18);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.header {
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(32, 214, 198, 0.22), transparent 34%),
    radial-gradient(circle at 22% 35%, rgba(36, 120, 255, 0.26), transparent 34%),
    linear-gradient(135deg, #06101c 0%, #0f2134 55%, #102f46 100%);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

.nav {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 10;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #06101c;
  background: linear-gradient(135deg, var(--cyan), #9ffbf2);
  box-shadow: 0 18px 40px rgba(32, 214, 198, 0.24);
}

.logo-text {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-menu a {
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--white);
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

body.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  width: min(var(--max), calc(100% - 36px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
  padding: 72px 0 96px;
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  font-size: 0.72rem;
}

.tag::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.tag.dark {
  color: var(--blue);
}

.hero h1,
.section-title h2,
.control-copy h2,
.maquila h2 {
  line-height: 1.06;
  letter-spacing: -1.3px;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 6vw, 5.05rem);
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-main {
  color: #06101c;
  background: linear-gradient(135deg, var(--cyan), #a5fff5);
  box-shadow: 0 18px 42px rgba(32, 214, 198, 0.24);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-art {
  min-height: 560px;
  position: relative;
}

.grid-bg {
  position: absolute;
  inset: 7% 4% 5% 0;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.06) 34px 35px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, 0.06) 34px 35px);
  box-shadow: var(--shadow);
}

.machine {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.machine-main {
  width: 290px;
  height: 320px;
  left: 12%;
  top: 18%;
  border-radius: 30px;
  padding: 30px;
}

.machine-line {
  height: 18px;
  width: 62%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--steel), rgba(217, 227, 236, 0.28));
  margin-bottom: 28px;
}

.machine-screen {
  height: 125px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(32, 214, 198, 0.36), rgba(36, 120, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.machine-dots {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.machine-dots span,
.panel-controls span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 24px rgba(255, 183, 74, 0.42);
}

.machine-lab {
  width: 210px;
  height: 250px;
  right: 8%;
  top: 8%;
  border-radius: 26px;
  padding: 22px;
}

.hood-top,
.hood-base {
  height: 36px;
  border-radius: 12px;
  background: var(--steel);
}

.hood-glass {
  height: 120px;
  margin: 12px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(32, 214, 198, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.machine-panel {
  width: 230px;
  height: 190px;
  right: 14%;
  bottom: 12%;
  border-radius: 24px;
  padding: 22px;
}

.panel-screen {
  height: 70px;
  border-radius: 16px;
  background: rgba(8, 19, 31, 0.65);
  border: 1px solid rgba(32, 214, 198, 0.26);
}

.panel-controls {
  margin-top: 18px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.sheet {
  position: absolute;
  width: 250px;
  height: 92px;
  left: 0;
  bottom: 17%;
  transform: rotate(-10deg);
  border-radius: 18px;
  background: linear-gradient(135deg, #e7edf4, #7d91a5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.summary {
  width: min(var(--max), calc(100% - 36px));
  margin: -54px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 3;
}

.summary article {
  min-height: 230px;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 32, 51, 0.08);
}

.summary span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.summary h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.summary p,
.card p,
.lab-copy p,
.control-copy p,
.maquila p,
.footer p {
  color: var(--muted);
}

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

.section-title {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-title.center {
  margin-inline: auto;
  text-align: center;
}

.section-title h2,
.control-copy h2,
.maquila h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
}

.section-title.light h2,
.section-title.light p {
  color: var(--white);
}

.cards {
  display: grid;
  gap: 20px;
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  min-height: 280px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(8, 19, 31, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 26px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(32, 214, 198, 0.20), rgba(36, 120, 255, 0.12)),
    var(--paper);
  position: relative;
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 999px;
}

.icon-kitchen::before {
  width: 42px;
  height: 7px;
  left: 14px;
  top: 23px;
}

.icon-kitchen::after {
  width: 42px;
  height: 24px;
  left: 14px;
  bottom: 14px;
  border-radius: 8px;
  background: var(--cyan);
}

.icon-hotel::before {
  width: 38px;
  height: 42px;
  left: 16px;
  top: 14px;
  border-radius: 8px;
}

.icon-hotel::after {
  width: 7px;
  height: 7px;
  left: 25px;
  top: 25px;
  box-shadow: 13px 0 var(--cyan), 0 13px var(--cyan), 13px 13px var(--cyan);
}

.icon-dining::before {
  width: 42px;
  height: 28px;
  left: 14px;
  top: 18px;
  border-radius: 8px;
  background: var(--cyan);
}

.icon-dining::after {
  width: 48px;
  height: 6px;
  left: 11px;
  bottom: 16px;
}

.icon-school::before {
  width: 44px;
  height: 32px;
  left: 13px;
  top: 19px;
  border-radius: 6px;
}

.icon-school::after {
  width: 34px;
  height: 5px;
  left: 18px;
  top: 31px;
  background: var(--cyan);
  box-shadow: 0 10px var(--cyan);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.lab {
  width: 100%;
  max-width: none;
  padding: 104px max(18px, calc((100% - var(--max)) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 12% 22%, rgba(32, 214, 198, 0.18), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.lab-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: stretch;
}

.lab-copy {
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.lab-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.lab-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.lab-list article {
  min-height: 190px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.lab-list span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 900;
}

.lab-list h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.control {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 38px;
  align-items: start;
}

.control-copy {
  position: sticky;
  top: 24px;
}

.control-copy p {
  margin-top: 18px;
  font-size: 1.05rem;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cabinet-grid article {
  min-height: 210px;
  padding: 28px;
  border-radius: 26px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(36, 120, 255, 0.26), rgba(32, 214, 198, 0.08)),
    var(--navy-2);
  box-shadow: 0 20px 48px rgba(8, 19, 31, 0.14);
  position: relative;
  overflow: hidden;
}

.cabinet-grid article::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(32, 214, 198, 0.14);
}

.cabinet-grid span {
  display: block;
  width: 62px;
  height: 84px;
  margin-bottom: 34px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.18) 46% 54%, transparent 54%),
    linear-gradient(135deg, #e8eef5, #778ca1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cabinet-grid h3 {
  position: relative;
  z-index: 2;
  line-height: 1.22;
}

.maquila {
  color: var(--white);
  padding: 0 18px 104px;
}

.maquila-box {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 183, 74, 0.20), transparent 32%),
    linear-gradient(135deg, #06101c, #112c43);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.maquila p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  padding: 22px 24px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.steps span {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #06101c;
  background: var(--amber);
  font-weight: 900;
}

.steps strong {
  font-size: 1.1rem;
}

.sectors {
  padding-top: 0;
}

.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sector-list span {
  display: inline-flex;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(8, 19, 31, 0.06);
}

.footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer strong {
  font-size: 1.06rem;
}

.footer p {
  margin-top: 6px;
}

.footer a {
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .hero,
  .lab-layout,
  .control,
  .maquila-box {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 460px;
  }

  .summary,
  .cards.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .control-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav {
    width: min(var(--max), calc(100% - 28px));
  }

  .logo-text {
    max-width: 170px;
    line-height: 1.1;
  }

  .menu-btn {
    display: flex;
    position: relative;
    z-index: 21;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 34px;
    background: rgba(8, 19, 31, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-size: 1.24rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero {
    width: min(var(--max), calc(100% - 28px));
    padding: 44px 0 82px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.55rem);
  }

  .hero-buttons,
  .btn {
    width: 100%;
  }

  .hero-art {
    min-height: 390px;
  }

  .machine-main {
    width: 230px;
    height: 260px;
    left: 2%;
  }

  .machine-lab {
    width: 170px;
    height: 220px;
    right: 1%;
  }

  .machine-panel {
    width: 190px;
    right: 4%;
  }

  .sheet {
    width: 210px;
  }

  .summary {
    width: min(var(--max), calc(100% - 28px));
    grid-template-columns: 1fr;
    margin-top: -36px;
  }

  .section {
    width: min(var(--max), calc(100% - 28px));
    padding: 78px 0;
  }

  .cards.four,
  .lab-list,
  .cabinet-grid {
    grid-template-columns: 1fr;
  }

  .lab {
    padding: 78px 14px;
  }

  .maquila {
    padding: 0 14px 78px;
  }

  .footer {
    width: min(var(--max), calc(100% - 28px));
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .hero-art {
    min-height: 340px;
  }

  .machine-main {
    width: 210px;
    height: 235px;
    padding: 22px;
  }

  .machine-lab {
    width: 148px;
    height: 190px;
  }

  .machine-panel {
    width: 168px;
    height: 154px;
    bottom: 6%;
  }

  .summary article,
  .card,
  .lab-copy,
  .lab-list article,
  .cabinet-grid article {
    padding: 24px;
  }

  .sector-list span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
