:root {
  --bg: #061017;
  --bg-soft: #0b1821;
  --surface: rgba(12, 23, 31, 0.8);
  --surface-strong: rgba(8, 18, 24, 0.92);
  --line: rgba(151, 222, 255, 0.16);
  --text: #edf7ff;
  --muted: #9eb5c3;
  --blue: #3394ea;
  --green: #19c15d;
  --cyan: #97edff;
  --accent: #76b4ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Exo 2", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(51, 148, 234, 0.22), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(25, 193, 93, 0.18), transparent 22%),
    linear-gradient(180deg, #071118 0%, #061017 38%, #091722 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 32vh;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(90% 140% at 10% 100%, rgba(51, 148, 234, 0.16) 0%, transparent 55%),
    radial-gradient(80% 120% at 60% 100%, rgba(25, 193, 93, 0.12) 0%, transparent 50%);
}

body::after {
  background:
    linear-gradient(125deg, transparent 0 17%, rgba(51, 148, 234, 0.18) 17% 22%, transparent 22% 39%, rgba(25, 193, 93, 0.18) 39% 44%, transparent 44% 61%, rgba(130, 170, 255, 0.18) 61% 66%, transparent 66%),
    linear-gradient(180deg, transparent, rgba(6, 16, 23, 0.65));
  mask-image: linear-gradient(to top, black 42%, transparent 100%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.page-glow-left {
  top: 8rem;
  left: -8rem;
  background: rgba(51, 148, 234, 0.7);
}

.page-glow-right {
  right: -6rem;
  top: 20rem;
  background: rgba(25, 193, 93, 0.58);
}

.topbar {
  width: var(--container);
  margin: 0 auto;
  padding: 22px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(7, 17, 24, 0.72);
  box-shadow: var(--shadow);
}

.brand img {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
}

.brand strong,
.hero h1,
.section-heading h1,
.section-heading h2,
.info-card h3,
.machine-copy h3,
.modal-panel h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(11, 24, 33, 0.76);
  border: 1px solid transparent;
  color: var(--muted);
  transition: 0.25s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  border-color: var(--line);
  transform: translateY(-1px);
}

.theme-toggle {
  flex: 0 0 auto;
  width: 56px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 24, 0.84);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(11, 24, 33, 0.96);
}

.theme-toggle-icon {
  position: absolute;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: translateY(10px) scale(0.8);
}

.theme-icon-moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: translateY(-10px) scale(0.8);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 52px 0;
}

.hero {
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  padding-top: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--cyan);
}

.hero .eyebrow {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  line-height: 1.35;
  color: var(--blue);
}

.hero h1,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.8rem, 8vw, 7rem);
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-points,
.partner-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-points span,
.partner-categories span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(151, 237, 255, 0.14);
  background: rgba(11, 24, 33, 0.72);
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cta-stack {
  display: grid;
  gap: 12px;
  flex: 0 1 360px;
}

.cta-stack .button {
  width: 100%;
}

.button {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 15px 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #041015;
  background: linear-gradient(135deg, var(--green), #7cf5ab);
  box-shadow: 0 16px 34px rgba(25, 193, 93, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(11, 24, 33, 0.84);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  width: min(36rem, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(6, 16, 23, 0.12) 44%, transparent 45%),
    linear-gradient(135deg, rgba(51, 148, 234, 0.16), rgba(25, 193, 93, 0.16));
  border: 2px solid rgba(151, 237, 255, 0.18);
  box-shadow:
    inset 0 0 0 16px rgba(6, 16, 23, 0.18),
    0 0 0 24px rgba(51, 148, 234, 0.06);
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(112, 132, 255, 0.76) 0deg 8deg,
      transparent 8deg 14deg
    );
  mask:
    radial-gradient(circle, transparent 63%, black 63% 74%, transparent 74%);
  opacity: 0.46;
}

.hero-card {
  width: min(25rem, 84%);
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(7, 17, 24, 0.9), rgba(6, 17, 24, 0.64));
  border: 1px solid rgba(151, 237, 255, 0.14);
  box-shadow: var(--shadow);
  transform: translateY(14px);
}

.hero-card img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.image-card-trigger {
  appearance: none;
  cursor: pointer;
  text-align: left;
}

.image-card-trigger:hover,
.image-card-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 30px 88px rgba(0, 0, 0, 0.5);
}

.hero-card.image-card-trigger:hover,
.hero-card.image-card-trigger:focus-visible {
  transform: translateY(10px);
}

.floating-chip {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(7, 17, 24, 0.82);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow);
}

.chip-top {
  top: 14%;
  right: 2%;
}

.chip-bottom {
  left: 4%;
  bottom: 13%;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.about-layout,
.machine-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.glass-card,
.info-card,
.stat-card,
.request-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 23, 31, 0.88), rgba(9, 18, 25, 0.72));
  box-shadow: var(--shadow);
}

.glass-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.narrative-card {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.04rem;
}

.narrative-card p:first-child {
  margin-top: 0;
}

.narrative-card p:last-child {
  margin-bottom: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.partners-section {
  overflow: hidden;
}

.marquee-shell {
  margin-top: 28px;
  padding: 26px 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(151, 237, 255, 0.18);
  background:
    radial-gradient(circle at center, rgba(51, 148, 234, 0.24), transparent 48%),
    linear-gradient(180deg, rgba(11, 24, 33, 0.96), rgba(8, 18, 24, 0.92));
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateX(18deg);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-inline: 16px;
  animation: marquee-right 34s linear infinite;
}

.partner-logo-card {
  width: 210px;
  min-width: 210px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(151, 237, 255, 0.2);
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  box-shadow: 0 18px 40px rgba(7, 17, 24, 0.18);
}

.partner-logo-box {
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-image {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logo-name {
  color: #153245;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 600;
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.spec-figure img {
  width: 100%;
  border-radius: 18px;
}

.spec-figure {
  padding: 24px;
  border: 1px solid var(--line);
  text-align: left;
}

.machine-media-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.video-preview-card {
  width: min(100%, 380px);
  padding: 0;
  text-align: left;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 23, 31, 0.88), rgba(9, 18, 25, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
  justify-self: center;
}

.video-preview-frame {
  position: relative;
  overflow: hidden;
}

.inline-video,
.modal-video {
  width: 100%;
  display: block;
  background: #02080c;
}

.inline-video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(5, 12, 16, 0.08), rgba(5, 12, 16, 0.72));
}

.play-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(25, 193, 93, 0.92);
  color: #041015;
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.video-preview-copy {
  display: grid;
  gap: 5px;
}

.video-preview-copy strong {
  font-size: 1.08rem;
}

.video-preview-copy span,
.video-fallback {
  color: var(--muted);
  line-height: 1.6;
}

.video-fallback {
  margin: 0;
  padding: 16px 18px 18px;
}

.modal-panel-video {
  width: min(760px, calc(100vw - 32px));
}

.machine-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.machine-copy h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}

.machine-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.spec-list {
  display: grid;
  gap: 14px;
}

.machine-menu-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.machine-menu-figure img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(151, 237, 255, 0.14);
  background: rgba(10, 20, 27, 0.78);
}

.spec-item strong {
  font-weight: 700;
}

.spec-item span {
  color: var(--muted);
  text-align: right;
  max-width: 20rem;
}

.contact-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-stack {
  display: grid;
  gap: 8px;
}

.contact-label {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.contact-stack a {
  font-size: 1.18rem;
  font-weight: 700;
}

.contact-phone-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.contact-messengers {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.messenger-link {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(151, 237, 255, 0.16);
  overflow: hidden;
  flex: 0 0 34px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.messenger-link:hover,
.messenger-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(151, 237, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.messenger-link img {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  flex: 0 0 18px;
  object-fit: contain;
}

.contact-stack p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 18px;
}

.field,
.field-row {
  display: grid;
  gap: 10px;
}

.field-row {
  grid-template-columns: 1fr 1fr;
}

.field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(151, 237, 255, 0.14);
  background: rgba(6, 16, 23, 0.74);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7f97a7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(151, 237, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(51, 148, 234, 0.12);
}

.button-submit {
  justify-self: start;
}

.form-feedback {
  margin: 0;
  min-height: 1.2em;
  color: var(--cyan);
}

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer a {
  color: var(--cyan);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 40;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 14, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(980px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid rgba(151, 237, 255, 0.16);
  box-shadow: var(--shadow);
  transform-origin: center center;
  will-change: transform, opacity;
}

.modal-panel h3 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.modal-panel img {
  width: 100%;
  border-radius: 18px;
}

.modal-video {
  border-radius: 18px;
  max-height: min(72vh, 720px);
}

.modal-video-fallback {
  padding-inline: 0;
  padding-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.8rem;
}

.admin-dashboard {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 56px;
}

.admin-page.admin-locked {
  overflow: hidden;
}

.admin-shell[hidden],
.admin-auth-screen[hidden] {
  display: none;
}

.admin-auth-screen {
  width: var(--container);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.admin-auth-card {
  width: min(460px, 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(151, 237, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 20, 27, 0.92), rgba(7, 16, 22, 0.88));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.admin-auth-card h1 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.admin-auth-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-auth-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.admin-auth-field {
  display: grid;
  gap: 8px;
}

.admin-auth-field span {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.admin-auth-field input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(151, 237, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-auth-field input:focus {
  border-color: rgba(25, 193, 93, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(25, 193, 93, 0.12);
}

.admin-auth-feedback {
  margin: 0;
  min-height: 1.4em;
  color: var(--muted);
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-page .page-glow {
  opacity: 0.1;
}

.admin-topbar {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(151, 237, 255, 0.1);
}

.admin-titleblock h1 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.8rem);
  line-height: 0.98;
}

.admin-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.admin-subnote {
  margin: 12px 0 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.65;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-sidebar,
.admin-setting-card {
  border-radius: 24px;
  border: 1px solid rgba(151, 237, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 20, 27, 0.9), rgba(7, 16, 22, 0.82));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  padding: 18px;
}

.admin-sidebar-label {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-link {
  width: 100%;
  text-align: left;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-weight: 600;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  border-color: rgba(151, 237, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.admin-nav-link.is-active {
  color: var(--text);
  background: rgba(25, 193, 93, 0.12);
  border-color: rgba(25, 193, 93, 0.25);
  box-shadow: none;
}

.admin-content {
  min-width: 0;
}

.admin-panel[hidden] {
  display: none;
}

.admin-banner {
  margin-bottom: 22px;
}

.admin-banner-card,
.admin-requests-panel {
  border-radius: 24px;
  border: 1px solid rgba(151, 237, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 20, 27, 0.9), rgba(7, 16, 22, 0.82));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.admin-banner-card {
  padding: 26px;
}

.admin-banner-card h2 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
}

.admin-note {
  margin: 16px 0 0;
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.7;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-settings-form {
  display: grid;
  gap: 18px;
}

.admin-settings-group {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(151, 237, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 20, 27, 0.9), rgba(7, 16, 22, 0.82));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.admin-settings-head {
  margin-bottom: 18px;
}

.admin-settings-head h3 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.6rem;
}

.admin-settings-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.settings-field {
  display: grid;
  gap: 8px;
}

.settings-field-full {
  grid-column: 1 / -1;
}

.settings-field span {
  color: var(--cyan);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.settings-field input,
.settings-field textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(151, 237, 255, 0.12);
  background: rgba(5, 13, 18, 0.7);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-field input:focus,
.settings-field textarea:focus {
  border-color: rgba(151, 237, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(51, 148, 234, 0.1);
}

.settings-field textarea {
  resize: vertical;
  min-height: 110px;
}

.settings-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(151, 237, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.settings-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.settings-feedback {
  margin: 0;
  min-height: 1.2em;
  color: var(--cyan);
}

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

.stat-card {
  padding: 22px;
  border-radius: 20px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}

.stat-card strong {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1;
}

.admin-heading-inline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.admin-requests-panel {
  margin-top: 24px;
  padding: 26px;
}

.admin-heading-inline h2 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.admin-sidehint {
  margin: 34px 0 0;
  max-width: 22rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.request-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.request-card {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(9, 19, 25, 0.96), rgba(8, 16, 21, 0.9));
}

.request-head,
.request-meta,
.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.request-head {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.request-card h3 {
  margin: 0;
  font-size: 1.42rem;
}

.status-badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.status-new {
  color: #061017;
  background: linear-gradient(135deg, #7cf5ab, #cbffdc);
}

.status-done {
  color: #e9f4ff;
  background: rgba(51, 148, 234, 0.22);
  border: 1px solid rgba(151, 237, 255, 0.18);
}

.request-meta {
  margin-top: 12px;
  color: var(--muted);
}

.request-meta strong {
  color: var(--text);
}

.request-message {
  margin: 16px 0;
  color: var(--text);
  line-height: 1.72;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(151, 237, 255, 0.08);
}

.request-actions {
  margin-top: 18px;
}

.empty-state {
  margin-top: 22px;
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed rgba(151, 237, 255, 0.18);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1080px) {
  .hero,
  .about-layout,
  .machine-media-stack,
  .machine-layout,
  .contact-layout,
  .stats-grid,
  .admin-layout,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    max-width: none;
    margin-top: 0;
  }

  .admin-sidebar {
    position: static;
  }

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

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

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 24px, 1180px);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
  }

  .topbar,
  .footer,
  .admin-heading-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    padding: 14px 0 10px;
    gap: 14px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    padding: 8px;
  }

  .brand img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .topbar-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .topnav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
    flex: 1 1 auto;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.84rem;
    line-height: 1.1;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .eyebrow {
    margin-bottom: 10px;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
  }

  .hero-lead,
  .narrative-card,
  .machine-copy p,
  .info-card p,
  .contact-stack p:last-child {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-points,
  .partner-categories,
  .cta-row {
    margin-top: 20px;
    gap: 10px;
  }

  .hero-points span,
  .partner-categories span {
    font-size: 0.88rem;
    padding: 9px 12px;
  }

  .button {
    width: 100%;
    padding: 14px 18px;
    text-align: center;
  }

  .button-submit {
    justify-self: stretch;
  }

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

  .hero-ring {
    width: min(21rem, 92%);
  }

  .hero-card {
    width: min(18rem, 82%);
    padding: 12px;
    border-radius: 26px;
  }

  .hero-card img {
    border-radius: 18px;
  }

  .chip-top,
  .chip-bottom {
    position: static;
    margin-top: 12px;
    width: min(100%, 21rem);
    text-align: center;
  }

  .section {
    padding: 36px 0;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
    line-height: 1.02;
  }

  .glass-card,
  .admin-banner-card,
  .admin-settings-group,
  .admin-requests-panel,
  .request-card,
  .stat-card {
    padding: 18px;
  }

  .info-card {
    padding: 18px;
  }

  .info-card h3,
  .machine-copy h3 {
    font-size: 1.35rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select,
  .field textarea,
  .settings-field input,
  .settings-field textarea {
    padding: 13px 14px;
  }

  .contact-stack a {
    font-size: 1.02rem;
  }

  .video-preview-overlay {
    padding: 14px;
    gap: 10px;
  }

  .play-badge {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }

  .video-preview-copy strong {
    font-size: 1rem;
  }

  .spec-item {
    flex-direction: column;
    padding: 16px 18px;
  }

  .spec-item span {
    text-align: left;
    max-width: none;
  }

  .marquee-shell {
    border-radius: 34px;
    transform: none;
    padding: 18px 0;
  }

  .partner-logo-card {
    width: 168px;
    min-width: 168px;
    padding: 10px;
    gap: 8px;
    border-radius: 22px;
  }

  .partner-logo-box {
    min-height: 70px;
    padding: 10px;
    border-radius: 16px;
  }

  .partner-logo-image {
    max-height: 46px;
  }

  .partner-logo-name {
    font-size: 0.74rem;
  }

  .admin-sidehint {
    margin-top: 0;
    max-width: none;
    text-align: left;
  }

  .admin-titleblock h1,
  .admin-heading-inline h2,
  .admin-banner-card h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    min-height: 112px;
  }

  .request-card h3 {
    font-size: 1.18rem;
  }
}

@media (max-width: 560px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .topnav {
    gap: 6px;
  }

  .topnav a {
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.2rem);
  }

  .hero-points span,
  .partner-categories span {
    width: 100%;
    text-align: center;
  }

  .contact-phone-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-messengers {
    gap: 8px;
  }

  .messenger-link {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-basis: 32px;
  }

  .messenger-link img {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
  }

  .hero-card {
    width: min(16rem, 88%);
  }

  .video-preview-overlay {
    flex-direction: column;
    align-items: start;
    justify-content: end;
  }

  .modal-panel,
  .modal-panel-video {
    width: min(calc(100vw - 20px), 980px);
    padding: 18px;
    border-radius: 22px;
  }

  .modal-panel h3 {
    font-size: 1.45rem;
    padding-right: 28px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .admin-toolbar,
  .settings-actions,
  .request-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-auth-card {
    padding: 22px;
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 10px;
  }

  .topbar-right {
    gap: 8px;
  }

  .topnav {
    gap: 5px;
  }

  .hero {
    gap: 20px;
  }

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

  .section-heading h1,
  .section-heading h2 {
    font-size: clamp(1.7rem, 8.5vw, 2.4rem);
  }

  .brand img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .topnav a {
    padding: 7px 9px;
    font-size: 0.76rem;
    border-radius: 999px;
  }

  .partner-logo-card {
    width: 150px;
    min-width: 150px;
  }

  .partner-logo-box {
    min-height: 64px;
  }

  .partner-logo-image {
    max-height: 40px;
  }

  .partner-logo-name {
    font-size: 0.7rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .glass-card,
  .info-card,
  .admin-banner-card,
  .admin-settings-group,
  .admin-requests-panel,
  .request-card,
  .stat-card {
    padding: 16px;
  }
}

html[data-theme="light"] body.main-page {
  --text: #153245;
  --muted: #567082;
  --line: rgba(48, 109, 147, 0.18);
  --cyan: #1670c7;
  --accent: #4f8dd3;
  --shadow: 0 24px 60px rgba(79, 119, 148, 0.18);
  background:
    radial-gradient(circle at top left, rgba(51, 148, 234, 0.14), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(25, 193, 93, 0.12), transparent 24%),
    linear-gradient(180deg, #f5fbff 0%, #edf6fb 42%, #e8f2f8 100%);
}

html[data-theme="light"] body.main-page::before {
  background:
    radial-gradient(90% 140% at 10% 100%, rgba(51, 148, 234, 0.08) 0%, transparent 55%),
    radial-gradient(80% 120% at 60% 100%, rgba(25, 193, 93, 0.08) 0%, transparent 50%);
}

html[data-theme="light"] body.main-page::after {
  background:
    linear-gradient(125deg, transparent 0 17%, rgba(51, 148, 234, 0.08) 17% 22%, transparent 22% 39%, rgba(25, 193, 93, 0.08) 39% 44%, transparent 44% 61%, rgba(130, 170, 255, 0.08) 61% 66%, transparent 66%),
    linear-gradient(180deg, transparent, rgba(237, 246, 251, 0.18));
}

html[data-theme="light"] .main-page .brand,
html[data-theme="light"] .main-page .topnav a,
html[data-theme="light"] .main-page .theme-toggle,
html[data-theme="light"] .main-page .hero-points span,
html[data-theme="light"] .main-page .partner-categories span,
html[data-theme="light"] .main-page .spec-item,
html[data-theme="light"] .main-page .field input,
html[data-theme="light"] .main-page .field select,
html[data-theme="light"] .main-page .field textarea,
html[data-theme="light"] .main-page .modal-close,
html[data-theme="light"] .main-page .video-preview-card {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

html[data-theme="light"] .main-page .brand,
html[data-theme="light"] .main-page .topnav a,
html[data-theme="light"] .main-page .theme-toggle,
html[data-theme="light"] .main-page .glass-card,
html[data-theme="light"] .main-page .info-card,
html[data-theme="light"] .main-page .spec-item,
html[data-theme="light"] .main-page .field input,
html[data-theme="light"] .main-page .field select,
html[data-theme="light"] .main-page .field textarea,
html[data-theme="light"] .main-page .modal-panel,
html[data-theme="light"] .main-page .video-preview-card,
html[data-theme="light"] .main-page .marquee-shell,
html[data-theme="light"] .main-page .partner-logo-card {
  border-color: rgba(48, 109, 147, 0.16);
  box-shadow: 0 20px 50px rgba(110, 145, 171, 0.14);
}

html[data-theme="light"] .main-page .glass-card,
html[data-theme="light"] .main-page .info-card,
html[data-theme="light"] .main-page .modal-panel,
html[data-theme="light"] .main-page .marquee-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 255, 0.9));
}

html[data-theme="light"] .main-page .partner-logo-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.96));
}

html[data-theme="light"] .main-page .partner-logo-box {
  background: #ffffff;
}

html[data-theme="light"] .main-page .partner-logo-name {
  color: #21435a;
}

html[data-theme="light"] .main-page .messenger-link {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(48, 109, 147, 0.16);
}

html[data-theme="light"] .main-page .button-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid rgba(48, 109, 147, 0.16);
}

html[data-theme="light"] .main-page .hero-card,
html[data-theme="light"] .main-page .floating-chip {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(48, 109, 147, 0.16);
  box-shadow: 0 24px 60px rgba(95, 126, 148, 0.16);
}

html[data-theme="light"] .main-page .hero-ring {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 44%, transparent 45%),
    linear-gradient(135deg, rgba(51, 148, 234, 0.08), rgba(25, 193, 93, 0.08));
  border-color: rgba(48, 109, 147, 0.12);
  box-shadow:
    inset 0 0 0 16px rgba(255, 255, 255, 0.3),
    0 0 0 24px rgba(51, 148, 234, 0.04);
}

html[data-theme="light"] .main-page .modal-backdrop {
  background: rgba(231, 241, 247, 0.72);
}

html[data-theme="light"] .main-page .video-preview-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(12, 31, 43, 0.18));
}

html[data-theme="light"] .main-page .video-preview-copy span,
html[data-theme="light"] .main-page .video-fallback,
html[data-theme="light"] .main-page .field input::placeholder,
html[data-theme="light"] .main-page .field textarea::placeholder {
  color: #597181;
}

html[data-theme="light"] .main-page .hero h1,
html[data-theme="light"] .main-page .section-heading h2 {
  background: linear-gradient(180deg, #2f8fe6 0%, #2f8fe6 48%, #12a53e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
