:root {
  --primary: #0b4a86;
  --primary-dark: #123f7a;
  --primary-soft: #eaf4ff;
  --text: #0f172a;
  --muted: #475569;
  --surface: #ffffff;
  --surface-accent: #f8fbff;
  --border: #e2e8f0;
  --border-strong: #d6e2ef;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
  --header-height: 80px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 48%, #ffffff 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #1f78d1;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1200;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section-muted {
  background:
    radial-gradient(circle at top left, rgba(31, 120, 209, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(234, 244, 255, 0.5), rgba(248, 250, 252, 0.92));
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: rgba(11, 74, 134, 0.35);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: clamp(219px, 27vw, 294px);
  height: auto;
}

.site-nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--primary);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.lang-button {
  min-width: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
}

.lang-button.is-active {
  background: linear-gradient(135deg, var(--primary), #1861ad);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 74, 134, 0.22);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #1861ad);
  box-shadow: 0 14px 30px rgba(11, 74, 134, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
}

.button-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 1.25rem;
  height: 0.9rem;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle-bars span:nth-child(1) {
  top: 0;
}

.nav-toggle-bars span:nth-child(2) {
  top: 0.4rem;
}

.nav-toggle-bars span:nth-child(3) {
  top: 0.8rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 0.4rem;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 0.4rem;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6.2rem 0 4.75rem;
  background:
    radial-gradient(circle at top left, rgba(31, 120, 209, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 74, 134, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 74, 134, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(31, 120, 209, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-badge {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(11, 74, 134, 0.08);
}

.hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  line-height: 0.98;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.offer-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.offer-strip li {
  padding: 0.66rem 0.9rem;
  border: 1px solid rgba(31, 120, 209, 0.18);
  border-radius: 999px;
  background: rgba(234, 244, 255, 0.88);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.capability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.capability-strip li {
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-support {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hero-system {
  padding: 1.25rem;
}

.hero-system-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.hero-system-header span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-system-header strong {
  font-size: 1.18rem;
  line-height: 1.35;
}

.hero-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.system-tile {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.system-tile strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--text);
}

.system-tile p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-system-footer {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(31, 120, 209, 0.12);
  border-radius: 20px;
  background: rgba(234, 244, 255, 0.72);
  color: var(--text);
  line-height: 1.6;
}

.visual-shell {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, var(--surface-accent));
  box-shadow: var(--shadow);
}

.hero-visual {
  padding: 1rem;
}

.about-grid,
.ehive-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
  gap: 1.5rem;
  align-items: start;
}

.surface-card {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.copy-stack {
  display: grid;
  gap: 1.15rem;
}

.highlight-stack {
  display: grid;
  gap: 1rem;
}

.highlight-card {
  padding: 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.highlight-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  color: var(--text);
}

.highlight-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.highlight-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-stat {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
}

.highlight-stat-value {
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.services-grid,
.use-case-grid,
.cooperation-grid {
  display: grid;
  gap: 1rem;
}

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

.service-card,
.use-case-card,
.cooperation-card {
  height: 100%;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  border-radius: 20px;
  background: var(--primary-soft);
  border: 1px solid rgba(31, 120, 209, 0.1);
}

.service-icon img,
.use-case-icon img {
  width: 1.7rem;
  height: 1.7rem;
}

.service-card p,
.use-case-card p,
.cooperation-card p {
  font-size: 0.96rem;
  line-height: 1.7;
}

.diagram-shell {
  padding: 1rem;
  overflow: hidden;
}

.diagram-shell img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(214, 226, 239, 0.85);
}

.proof-gallery {
  display: grid;
  gap: 1rem;
}

.proof-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
}

.proof-image-card {
  padding: 1rem;
}

.proof-image {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(214, 226, 239, 0.9);
  background: #ffffff;
}

.proof-caption {
  display: grid;
  gap: 0.45rem;
  padding: 0.2rem 0.35rem 0.1rem;
}

.proof-card strong,
.proof-caption strong {
  font-size: 1.02rem;
  color: var(--text);
}

.platform-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.platform-notes li {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text);
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--primary) 0 38%, transparent 39%),
    rgba(31, 120, 209, 0.12);
}

.use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
}

.use-case-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  border: 1px solid rgba(31, 120, 209, 0.1);
}

.use-case-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

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

.cooperation-card {
  padding: 1.45rem;
}

.contact-card {
  display: grid;
  gap: 1.1rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-size: 0.96rem;
}

.contact-list a {
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.contact-topics li {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0;
  background:
    radial-gradient(circle at top left, rgba(31, 120, 209, 0.24), transparent 30%),
    #0b2545;
  color: #d7e4f2;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand img {
  width: 315px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(215, 228, 242, 0.82);
}

.footer-meta {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer-meta strong {
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-top: 0.35rem;
}

.footer-nav a,
.site-footer a {
  color: #f5fbff;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5fbff;
  cursor: pointer;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(11, 74, 134, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.94));
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.cookie-banner__content {
  flex: 1 1 32rem;
}

.cookie-banner__title {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.cookie-banner__text {
  max-width: 70ch;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cookie-banner__actions .button {
  min-height: 3rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

body.has-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.has-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .services-grid,
  .cooperation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .ehive-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .site-nav .button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 5.4rem;
  }

  .services-grid,
  .use-case-grid,
  .cooperation-grid,
  .hero-system-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .button-arrow,
  .reveal,
  .nav-toggle-bars span,
  .nav-links a::after,
  .lang-button {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
