:root {
  --bg: #07111f;
  --bg-soft: #0d1f39;
  --panel: rgba(12, 28, 49, 0.78);
  --panel-strong: rgba(16, 40, 72, 0.92);
  --line: rgba(170, 198, 237, 0.18);
  --text: #f3f7ff;
  --muted: #b8c8e6;
  --primary: #4471c4;
  --primary-deep: #1f3863;
  --primary-light: #b4c6e7;
  --accent: #82b8ff;
  --success: #2e9f86;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(68, 113, 196, 0.28), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(130, 184, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #091626 28%, #07111f 100%);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.form-success #feedback-status {
  color: #9ce0c9;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.2));
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 12s ease-in-out infinite;
}

.page-glow-left {
  top: 80px;
  left: -120px;
  background: rgba(68, 113, 196, 0.8);
}

.page-glow-right {
  right: -140px;
  top: 340px;
  background: rgba(180, 198, 231, 0.45);
  animation-delay: -4s;
}

.page-side-nav {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 18;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(180, 198, 231, 0.12);
  background: rgba(7, 17, 31, 0.48);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.page-side-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(180, 198, 231, 0.1);
  background: rgba(9, 20, 35, 0.62);
  color: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-side-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-side-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.page-side-label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.86);
  border: 1px solid rgba(180, 198, 231, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.page-side-link:hover .page-side-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.page-side-link:hover,
.page-side-link.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(68, 113, 196, 0.28), rgba(7, 17, 31, 0.88));
  border-color: rgba(130, 184, 255, 0.28);
  transform: translateX(1px);
  box-shadow: 0 0 18px rgba(130, 184, 255, 0.14);
}

.page-scroll-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: grid;
  gap: 10px;
}

.scroll-button {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(180, 198, 231, 0.18);
  background: rgba(7, 17, 31, 0.82);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.scroll-button:hover {
  transform: translateY(-2px);
  background: rgba(68, 113, 196, 0.22);
  border-color: rgba(130, 184, 255, 0.28);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.58);
  border-bottom: 1px solid rgba(180, 198, 231, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(68, 113, 196, 0.28));
}

.site-header .brand-logo {
  width: 96px;
  height: 96px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.83rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: 84px 0 52px;
  z-index: 1;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.85fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-circuit-board {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
}

.hero-circuit-board::before,
.hero-circuit-board::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-circuit-board::before {
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.92), rgba(7, 17, 31, 0.45) 30%, rgba(7, 17, 31, 0.35) 68%, rgba(7, 17, 31, 0.82)),
    url("assets/hero-pcb-pattern.svg") center/cover no-repeat;
  opacity: 0.3;
  filter: saturate(0.9);
}

.hero-circuit-board::after {
  background:
    radial-gradient(circle at 18% 26%, rgba(68, 113, 196, 0.08), transparent 28%),
    radial-gradient(circle at 78% 64%, rgba(130, 184, 255, 0.05), transparent 24%);
  opacity: 0.42;
}

.hero-circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pcb-flow-path {
  fill: none;
  stroke: rgba(157, 209, 255, 0.18);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pcb-flow-path.near {
  stroke: rgba(176, 223, 255, 0.28);
  stroke-width: 2.3;
}

.pcb-flow-path.mid {
  stroke: rgba(146, 205, 255, 0.2);
}

.pcb-flow-path.far {
  stroke: rgba(136, 191, 245, 0.14);
  stroke-width: 1.9;
}

.pcb-flow-path.branch {
  stroke: rgba(141, 198, 255, 0.11);
  stroke-width: 1.45;
}

.pcb-flow-node {
  fill: rgba(207, 234, 255, 0.54);
  stroke: rgba(130, 184, 255, 0.26);
  stroke-width: 1.6;
}

.pcb-flow-node.branch {
  fill: rgba(171, 220, 255, 0.34);
  stroke: rgba(130, 184, 255, 0.14);
  stroke-width: 1.1;
}

.pcb-flow-node.turn {
  fill: rgba(223, 242, 255, 0.62);
  stroke: rgba(148, 204, 255, 0.3);
}

.pcb-flow-pulse {
  fill: #dff4ff;
  opacity: 0.95;
}

.pcb-flow-pulse.near {
  opacity: 1;
}

.pcb-flow-pulse.alt {
  fill: #82b8ff;
}

.pcb-flow-pulse.mid {
  opacity: 0.84;
}

.pcb-flow-pulse.far {
  opacity: 0.68;
}

.pcb-flow-pulse.cool {
  fill: #8fd6ff;
  opacity: 0.74;
}

.pcb-flow-pulse.thin {
  opacity: 0.58;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 900px;
}

.hero-text,
.section-text,
.section-note,
.product-card p,
.feature-card p,
.advantage-card p,
.contact-card p,
.timeline span {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 700px;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #5b8cff 100%);
  box-shadow: 0 18px 34px rgba(68, 113, 196, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(180, 198, 231, 0.18);
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li,
.product-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.hero-points li::before,
.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 14px rgba(130, 184, 255, 0.55);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius) + 14px);
  border: 1px solid rgba(180, 198, 231, 0.12);
  background: linear-gradient(180deg, rgba(180, 198, 231, 0.08), rgba(68, 113, 196, 0.02));
  z-index: -1;
}

.hero-card,
.stat-card,
.feature-card,
.product-card,
.advantage-card,
.contact-card,
.timeline article {
  background: linear-gradient(180deg, rgba(17, 38, 65, 0.94), rgba(10, 22, 38, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.hero-card::after,
.product-card::after,
.advantage-card::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.06) 50%, transparent 80%);
  transform: translateX(-140%);
  animation: shimmer 7s linear infinite;
  pointer-events: none;
}

.hero-card-main {
  min-height: 250px;
}

.hero-card-logo {
  display: grid;
  gap: 18px;
}

.hero-logo-lockup {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
}

.hero-logo-lockup img {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 12px 28px rgba(68, 113, 196, 0.2));
}

.card-label,
.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(180, 198, 231, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 18px 0 12px;
  font-size: 1.85rem;
  line-height: 1.16;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-card-metric {
  display: grid;
  gap: 6px;
}

.hero-card-metric span {
  color: var(--accent);
  font-weight: 600;
}

.hero-card-metric strong {
  font-size: 2rem;
  line-height: 1;
}

.hero-card-metric small {
  color: var(--muted);
  line-height: 1.55;
}

.hero-gridline {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 198, 231, 0.18), transparent);
}

.inline-price-table {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-price-table div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(180, 198, 231, 0.14);
}

.inline-price-table span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.inline-price-table strong {
  font-size: 1.18rem;
}

.advantages-grid,
.catalog-grid {
  display: grid;
  gap: 20px;
}

.section {
  position: relative;
  padding: 74px 0;
  z-index: 1;
}

.section-dark {
  background: linear-gradient(180deg, rgba(11, 26, 46, 0.96), rgba(6, 15, 27, 0.95));
}

.section-accent {
  background: linear-gradient(135deg, rgba(68, 113, 196, 0.18), rgba(46, 159, 134, 0.12));
}

.section-media {
  padding-top: 26px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 820px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-note {
  max-width: 480px;
  margin: 0;
}

.two-column,
.roadmap-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.feature-card,
.advantage-card,
.contact-card,
.timeline article,
.product-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.feature-card h3,
.product-card h3,
.advantage-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card.featured {
  background:
    linear-gradient(180deg, rgba(68, 113, 196, 0.22), rgba(10, 22, 38, 0.94)),
    linear-gradient(180deg, rgba(17, 38, 65, 0.94), rgba(10, 22, 38, 0.92));
}

.catalog-grid-extended .product-card-spotlight {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(130, 184, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(68, 113, 196, 0.2), rgba(10, 22, 38, 0.94)),
    linear-gradient(180deg, rgba(17, 38, 65, 0.94), rgba(10, 22, 38, 0.92));
}

.product-media {
  position: relative;
  min-height: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(180, 198, 231, 0.16);
  background: linear-gradient(180deg, rgba(9, 20, 35, 0.8), rgba(6, 14, 24, 0.55));
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
}

.product-media::before,
.product-media::after {
  display: none;
}

.media-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(180, 198, 231, 0.14);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.product-media strong,
.product-media small {
  position: relative;
  z-index: 1;
}

.product-media strong {
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.product-media small {
  color: var(--muted);
  margin-top: 6px;
}

.product-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.media-stack {
  min-height: 0;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.price {
  color: var(--text);
  font-size: 1.2rem;
  white-space: nowrap;
}

.product-card ul {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.button-tertiary {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(180, 198, 231, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.button-tertiary:hover {
  background: rgba(68, 113, 196, 0.16);
}

.pricing-box {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(180, 198, 231, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(180, 198, 231, 0.1);
}

.pricing-row:last-child {
  border-bottom: 0;
}

.pricing-head {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-row span {
  color: var(--muted);
}

.advantages-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  display: grid;
  gap: 8px;
}

.timeline strong {
  font-size: 1.1rem;
  color: var(--accent);
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.contact-card a {
  width: fit-content;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--accent);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: start;
}

.feedback-points {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.feedback-points p {
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(180, 198, 231, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.6;
}

.feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(180, 198, 231, 0.14);
  background: linear-gradient(180deg, rgba(17, 38, 65, 0.94), rgba(10, 22, 38, 0.92));
  box-shadow: var(--shadow);
}

.feedback-form label {
  display: grid;
  gap: 10px;
}

.feedback-form span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(180, 198, 231, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: rgba(184, 200, 230, 0.62);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: rgba(130, 184, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(68, 113, 196, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.form-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.site-footer {
  padding: 28px 0 46px;
  border-top: 1px solid rgba(180, 198, 231, 0.1);
  background: rgba(4, 10, 18, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 30px;
  align-items: start;
}

.footer-brand,
.footer-map,
.footer-contact {
  display: grid;
  gap: 14px;
}

.footer-brand p,
.footer-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer-brand-link {
  width: fit-content;
}

.footer-map h3,
.footer-contact h3 {
  margin: 0;
  font-size: 1.05rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  width: fit-content;
  color: var(--muted);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text);
}

.hero-copy,
.hero-panel,
.stat-card,
.feature-card,
.product-card,
.advantage-card,
.timeline article,
.contact-card,
.media-slider {
  animation: riseIn 0.9s ease both;
}

.hero-panel,
.feature-card:nth-child(2),
.product-card:nth-child(2),
.advantage-card:nth-child(2),
.timeline article:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-card:nth-child(3),
.product-card:nth-child(3),
.advantage-card:nth-child(3),
.timeline article:nth-child(3) {
  animation-delay: 0.16s;
}

.media-slider {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(180, 198, 231, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 38, 65, 0.88), rgba(10, 22, 38, 0.94));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.media-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.media-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(180, 198, 231, 0.14);
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.6), rgba(11, 26, 46, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.media-video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.media-slide-copy {
  display: grid;
  gap: 14px;
}

.media-slide-copy h3 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.15;
}

.media-slide-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px 24px;
}

.slider-button,
.slider-dot,
.modal-close {
  cursor: pointer;
}

.slider-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(180, 198, 231, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.2rem;
}

.slider-button:hover,
.slider-dot:hover {
  background: rgba(68, 113, 196, 0.16);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(180, 198, 231, 0.26);
}

.slider-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 16, 0.74);
  backdrop-filter: blur(14px);
  animation: modalBackdropIn 0.28s ease;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 760px);
  margin: 7vh auto;
  border-radius: 26px;
  border: 1px solid rgba(180, 198, 231, 0.18);
  background: linear-gradient(180deg, rgba(17, 38, 65, 0.98), rgba(10, 22, 38, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  animation: modalIn 0.48s cubic-bezier(0.18, 0.84, 0.32, 1);
  transform-origin: 50% 12%;
  overflow: hidden;
  max-height: 86vh;
}

.modal-scroll {
  max-height: 86vh;
  overflow: auto;
  padding: 30px;
  scrollbar-gutter: stable;
}

.modal-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(130, 184, 255, 0.6), rgba(255, 255, 255, 0.08), rgba(68, 113, 196, 0.45));
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.modal-dialog::after {
  content: "";
  position: absolute;
  top: -120px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(130, 184, 255, 0.18), transparent 72%);
  filter: blur(4px);
  pointer-events: none;
}

.modal-dialog h3 {
  margin: 16px 0 14px;
  font-size: 1.85rem;
}

.modal-dialog p {
  color: var(--muted);
  line-height: 1.72;
}

.modal-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}

.modal-photo-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(180, 198, 231, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  max-width: 360px;
}

.modal-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.modal-hero-copy {
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(180, 198, 231, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.4rem;
}

.modal-close:hover {
  background: rgba(68, 113, 196, 0.14);
}

.modal-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.modal-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.modal-subtitle {
  margin: 22px 0 12px;
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border-style: hidden;
  box-shadow: 0 0 0 1px rgba(180, 198, 231, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border: 1px solid rgba(180, 198, 231, 0.1);
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
}

.spec-table th {
  width: 34%;
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.spec-table td {
  color: var(--muted);
}

.modal-price {
  margin: 18px 0 0;
  font-weight: 700;
  color: var(--text);
}

.pricing-box-modal {
  margin-top: 20px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-140%);
  }
  55%,
  100% {
    transform: translateX(140%);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -16px, 0) scale(1.06);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: perspective(1100px) translateY(34px) scale(0.94) rotateX(-12deg);
  }
  62% {
    opacity: 1;
    transform: perspective(1100px) translateY(-6px) scale(1.01) rotateX(1deg);
  }
  to {
    opacity: 1;
    transform: perspective(1100px) translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .roadmap-grid,
  .contact-grid,
  .feedback-layout,
  .footer-grid,
  .advantages-grid,
  .catalog-grid,
  .media-slide {
    grid-template-columns: 1fr;
  }

  .section-head,
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .page-side-nav {
    left: 12px;
  }

  .catalog-grid-extended .product-card-spotlight {
    grid-column: span 1;
  }

  .hero-logo-lockup {
    grid-template-columns: 72px 1fr;
  }

  .hero-logo-lockup img {
    width: 72px;
    height: 72px;
  }

  .modal-hero {
    grid-template-columns: 1fr;
  }

  .slider-controls {
    padding-top: 10px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: static;
  }

  .page-side-nav {
    display: none;
  }

  .page-scroll-widget {
    right: 12px;
    bottom: 12px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-card,
  .feature-card,
  .product-card,
  .advantage-card,
  .contact-card,
  .timeline article,
  .modal-scroll,
  .media-slide {
    padding: 20px;
  }

  .inline-price-table,
  .product-actions,
  .form-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .media-slide-copy h3 {
    font-size: 1.5rem;
  }

  .slider-controls {
    padding: 0 20px 20px;
  }

  .modal-dialog {
    margin: 4vh auto;
    width: min(calc(100% - 20px), 760px);
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    border-bottom: 0;
  }
}
