:root {
  --bg0: #020814;
  --bg1: #061431;
  --txt: #e8f3ff;
  --muted: #97abcb;
  --acc: #5be8ff;
  --line: rgba(110, 218, 255, 0.35);
}

[data-theme="light"] {
  --bg0: #eef6ff;
  --bg1: #dcecff;
  --txt: #132036;
  --muted: #445d84;
  --acc: #1096b4;
  --line: rgba(23, 79, 144, 0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--txt);
  font: 400 16px/1.42 "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(96, 220, 255, 0.25), transparent 66%),
    radial-gradient(500px 300px at 85% 20%, rgba(85, 177, 255, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(2px 2px at 16% 30%, rgba(173, 236, 255, 0.28), transparent 60%),
    radial-gradient(1.8px 1.8px at 63% 16%, rgba(173, 236, 255, 0.26), transparent 60%),
    radial-gradient(1.8px 1.8px at 85% 40%, rgba(173, 236, 255, 0.22), transparent 60%),
    radial-gradient(1.6px 1.6px at 44% 76%, rgba(173, 236, 255, 0.18), transparent 60%);
  opacity: 0.8;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell { width: min(760px, 100% - 24px); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 8, 20, 0.86);
  border-bottom: 1px solid rgba(120, 223, 255, 0.2);
  backdrop-filter: blur(8px);
}

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

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  box-shadow: 0 0 14px rgba(90, 225, 255, 0.35);
}

.menu {
  display: flex;
  gap: 14px;
}

.menu a { font-size: 11px; color: var(--muted); }
.menu a:hover { color: var(--acc); }

.controls { display: flex; gap: 6px; }
.ctrl {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 39, 0.72);
  color: var(--txt);
}

.page { padding: 10px 0 22px; }

.section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(110, 214, 255, 0.18);
}

.hero { text-align: center; }
.hero-crystal {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  max-height: 248px;
  object-fit: cover;
  object-position: center 70%;
  filter: drop-shadow(0 0 22px rgba(96, 229, 255, 0.35));
}

.hero-title {
  margin: 2px 0 0;
  font-size: clamp(30px, 6.4vw, 52px);
  line-height: 1.02;
  font-weight: 700;
}

.hero-sub {
  display: block;
  margin-top: 7px;
  font-size: clamp(22px, 4.8vw, 38px);
  color: var(--acc);
  text-shadow: 0 0 14px rgba(91, 232, 255, 0.34);
}

.hero-desc {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: clamp(12px, 1.9vw, 16px);
}

.cta {
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #081729;
  background: linear-gradient(90deg, #7aecff 0%, #4ce2ff 100%);
  box-shadow: 0 0 22px rgba(91, 232, 255, 0.42);
  cursor: pointer;
}

.cta-sm { padding: 8px 17px; font-size: 13px; }

.section-title {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
}

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

.solution-card {
  position: relative;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  padding: 6px;
  background: rgba(7, 19, 42, 0.85);
}

.solution-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.70;
}

.solution-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 14, 34, 0.16), rgba(4, 14, 34, 0.78));
}

.solution-card .name,
.solution-card .desc {
  position: relative;
  z-index: 2;
  display: block;
  text-shadow: 0 0 12px rgba(1, 8, 22, 0.9);
}

.solution-card .name { font-size: 14px; font-weight: 700; }
.solution-card .desc { font-size: 11px; color: #c8e7ff; margin-top: 4px; }

.custom-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 16, 37, 0.72);
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 8px;
  padding: 8px;
}

.custom-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-list li {
  margin: 0 0 6px;
  border: 1px solid rgba(98, 202, 255, 0.32);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.machine {
  border-radius: 10px;
  min-height: 150px;
  background:
    linear-gradient(180deg, rgba(7, 18, 39, 0.2), rgba(7, 18, 39, 0.7)),
    url("../img/generated/machine.png") center/cover no-repeat;
}

.widget-sec .widget-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.widget-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tech-strip {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.tech-item {
  height: 34px;
  border: 1px solid rgba(95, 201, 255, 0.20);
  border-radius: 7px;
  background: rgba(7, 18, 39, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.tech-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 10px;
  align-items: end;
}

.tg-link {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #39a8e5;
  background: rgba(16, 74, 119, 0.3);
  box-shadow: 0 0 16px rgba(70, 184, 241, 0.28);
  font-size: 11px;
  font-weight: 600;
}

.tg-link svg { width: 27px; height: 27px; }

.contact-photo-wrap { justify-self: end; width: 250px; }
.contact-photo {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(120, 220, 255, 0.35);
  box-shadow: 0 0 25px rgba(86, 203, 255, 0.33);
}

.footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(110, 214, 255, 0.18);
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 860px) {
  .menu { gap: 10px; }
  .menu a { font-size: 10px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-box { grid-template-columns: 1fr; }
  .tech-strip { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-photo-wrap { justify-self: start; width: min(250px, 70vw); }
}

@media (max-width: 640px) {
  .menu { display: none; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 28px; }
  .tech-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
