:root {
  --bg: #f8faff;
  --surface: #ffffff;
  --surface-soft: #eef3ff;
  --text: #162033;
  --muted: #5f6a7d;
  --line: #dce5f7;
  --primary: #4d2ffd;
  --primary-dark: #321bb8;
  --primary-soft: #edf1ff;
  --sky: #7fc1fa;
  --accent: #5b57fc;
  --success: #2fbf71;
  --shadow: 0 18px 45px rgba(51, 42, 112, 0.1);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0, var(--bg) 52%, #ffffff 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: 108px;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(24, 34, 45, 0.06);
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(77, 47, 253, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.section {
  padding: 86px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-top: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  h1 {
    background: linear-gradient(135deg, #162033 8%, var(--primary) 72%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.38;
}

.hero-text,
.text-block p,
.narrow-content p,
.contact-intro {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 13px 20px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.primary-button {
  background: linear-gradient(135deg, var(--sky), var(--primary) 62%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(77, 47, 253, 0.18);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(135deg, #6ab4f4, var(--primary-dark) 70%);
}

.secondary-button {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--primary);
  color: #ffffff;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--sky), var(--primary));
}

.product-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.product-badge img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(77, 47, 253, 0.18);
}

.product-badge strong,
.product-badge span {
  display: block;
}

.product-badge strong {
  font-size: 1.22rem;
  line-height: 1.2;
}

.product-badge span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(47, 191, 113, 0.12);
}

.message-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.message-card {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(127, 193, 250, 0.3) 0 28%, transparent 28%),
    linear-gradient(180deg, #ffffff, #f7f9ff),
    #ffffff;
}

.message-card.wide {
  min-height: 72px;
}

.message-card.short {
  width: 74%;
}

.panel-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.panel-footer span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 8px;
  text-align: center;
}

.two-column,
.split-section,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.text-block p:last-child,
.narrow-content p:last-child,
.contact-intro:last-child,
.responsible-box p:last-child {
  margin-bottom: 0;
}

.muted-section {
  background: linear-gradient(180deg, #f3f6ff, #eef3ff);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

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

.info-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 10px 24px rgba(51, 42, 112, 0.04);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky), var(--primary));
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.responsible-box,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(24, 34, 45, 0.05);
  padding: 28px;
}

.company-name {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 800;
}

.narrow-content {
  max-width: 820px;
}

.contact-card {
  font-style: normal;
}

.contact-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

.contact-card strong {
  color: var(--text);
}

.contact-card a:not(.button) {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-card .button {
  margin-top: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

:focus-visible {
  outline: 3px solid rgba(127, 193, 250, 0.55);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .header-content {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .site-nav a {
    flex: 1;
    padding: 9px 8px;
    text-align: center;
  }

  .section {
    padding: 62px 0;
  }

  [id] {
    scroll-margin-top: 142px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.75rem, 17vw, 4.2rem);
  }

  .hero-panel {
    padding: 18px;
  }

  .panel-footer {
    grid-template-columns: 1fr;
  }

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

  .info-card {
    min-height: 128px;
  }

  .responsible-box,
  .contact-card {
    padding: 22px;
  }
}
