* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f8fb;
  --dark: #0b1220;
  --dark-2: #121b2d;
  --text: #111827;
  --muted: #64748b;
  --line: #dce3ee;
  --card: #ffffff;
  --blue: #2563eb;
  --blue-2: #60a5fa;
  --green: #14b8a6;
  --brand-blue: #214779;
  --brand-light: #7bbde0;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
}

.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  max-width: 32vw;
  height: 48px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.brand-logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.nav a {
  color: #d7e2f1;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: transparent;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 10px;
}

.hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.30), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(20, 184, 166, 0.22), transparent 26%),
    linear-gradient(135deg, #0b1220 0%, #101b31 58%, #0e1728 100%);
  color: #fff;
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-brand-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(360px, 100%);
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
}

.hero-brand-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-slogan {
  max-width: 720px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: #cad7ea;
  font-size: 19px;
}

.hero-actions,
.hero-points,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: #fff;
  color: var(--dark);
}

.section .btn.primary,
.platform-card .btn.primary {
  background: var(--dark);
  color: #fff;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.hero-points {
  margin-top: 32px;
}

.hero-points span,
.chips span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #eaf1fb;
  font-size: 13px;
  font-weight: 700;
}

.chips span {
  background: #eaf1ff;
  color: #1e3a8a;
}

.hero-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-line {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: #cbd7e8;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.14);
}

.hero-card h2 {
  font-size: 34px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.metric-grid div {
  min-height: 126px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
}

.metric-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.metric-grid span {
  color: #c9d6e8;
  font-size: 13px;
}

.section {
  padding: 88px 0;
  background: #fff;
}

.section.muted {
  background: #f3f6fb;
}

.section.dark {
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.20), transparent 25%),
    linear-gradient(135deg, #0b1220 0%, #121b2d 100%);
  color: #fff;
}

.section.dark p {
  color: #cbd7e8;
}

.section-head {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

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

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

.card-number {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--blue);
  font-weight: 900;
}

.card p {
  color: var(--muted);
}

.card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 44px;
  align-items: start;
}

.split > div > p {
  color: var(--muted);
  font-size: 18px;
}

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

.feature-list div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.feature-list span {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline-item {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border-radius: 26px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 38px;
  border-radius: 16px;
  color: #fff;
  background: var(--dark);
  font-weight: 900;
}

.timeline-item p {
  color: var(--muted);
}

.dark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dark-grid div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: #eef5ff;
  font-weight: 700;
}

.platform-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.platform-card {
  min-height: 100%;
  padding: 34px;
  border-radius: 28px;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
}

.platform-card p {
  color: #475569;
  font-size: 17px;
}

.compact .card {
  min-height: 210px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

.price-card.featured {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.price-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.price-card.featured span {
  color: #93c5fd;
}

.price-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.price-card p {
  color: var(--muted);
}

.price-card.featured p {
  color: #cbd7e8;
}

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

.process-grid div {
  padding: 24px;
  border-top: 3px solid var(--blue);
  background: #fff;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

.process-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--blue);
  font-weight: 900;
}

.process-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.process-grid p {
  color: var(--muted);
}

.contacts {
  padding-top: 30px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  padding: 42px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.28), transparent 35%),
    linear-gradient(135deg, #0b1220, #111d34);
  box-shadow: var(--shadow);
}

.contact-card p {
  color: #cbd7e8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-grid a {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.contact-grid span {
  display: block;
  color: #aebdd2;
  font-size: 13px;
  margin-bottom: 6px;
}

.contact-grid strong {
  color: #fff;
  word-break: break-word;
}

.footer {
  padding: 26px 0;
  color: #64748b;
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #0b1220;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .platform-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .cards.four,
  .pricing-grid,
  .timeline,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand-logo-box {
    width: 168px;
    max-width: 56vw;
    height: 42px;
    padding: 5px 9px;
    border-radius: 12px;
  }

  .hero {
    padding: 54px 0;
  }

  .section {
    padding: 60px 0;
  }

  .cards.four,
  .cards.two,
  .pricing-grid,
  .timeline,
  .process-grid,
  .dark-grid,
  .metric-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand-card {
    width: min(280px, 100%);
    margin-bottom: 20px;
    padding: 12px 14px;
  }

  .hero-brand-card,
  .hero-card,
  .contact-card,
  .platform-card {
    padding: 24px;
    border-radius: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}


/* logo fix v6 - forced compact branding */
.site-header .header-inner {
  min-height: 74px !important;
}
.site-header .brand-compact {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: 360px !important;
  min-width: 0 !important;
}
.site-header .brand-mark {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 10px !important;
}
.site-header .brand-copy {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
  color: #fff !important;
}
.site-header .brand-copy strong {
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  white-space: nowrap !important;
}
.site-header .brand-copy small {
  margin-top: 4px !important;
  color: #9fb0c7 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.hero-brand-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  max-width: 560px !important;
  margin-bottom: 26px !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.07) !important;
  box-shadow: none !important;
}
.hero-brand-inline img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block !important;
}
.hero-brand-title {
  margin: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}
.hero-brand-slogan {
  margin-top: 6px !important;
  color: #cfe3ff !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}
.hero-brand-card {
  display: none !important;
}
@media (max-width: 720px) {
  .site-header .brand-copy strong { font-size: 15px !important; white-space: normal !important; }
  .site-header .brand-copy small { display: none !important; }
  .site-header .brand-mark { width: 42px !important; height: 42px !important; max-width: 42px !important; max-height: 42px !important; }
  .hero-brand-inline { align-items: flex-start !important; padding: 12px 14px !important; }
  .hero-brand-inline img { width: 54px !important; height: 54px !important; max-width: 54px !important; max-height: 54px !important; }
  .hero-brand-title { font-size: 19px !important; }
  .hero-brand-slogan { font-size: 13px !important; }
}


/* Header slogan fix */
.brand-compact { flex-shrink: 0; }
.brand-slogan-one-line { white-space: nowrap; }
@media (max-width: 860px) {
  .brand-compact { max-width: calc(100vw - 96px) !important; }
  .brand-slogan-one-line { font-size: 11px !important; white-space: nowrap; }
}
@media (max-width: 520px) {
  .brand-slogan-one-line { display: none; }
}


/* hero title fix - keep IT-инфраструктура on one line */
.hero-content {
  min-width: 0;
}
.hero h1 {
  max-width: 980px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.hero-title-nowrap {
  display: inline-block;
  white-space: nowrap;
}
@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 34px;
  }
}
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(33px, 10.4vw, 44px);
    line-height: 1.08;
  }
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 31px;
  }
}
