:root {
  --bg-dark: #0b0d24;
  --bg-dark-2: #10153a;
  --brand: #2f58b8;
  --brand-2: #3b6ae3;
  --text: #0b1020;
  --text-muted: #53607a;
  --white: #ffffff;
  --card: #ffffff;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  --radius: 14px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f7f8fb;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  background: var(--brand);
  color: var(--white);
}

.header-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

/* SAB logo link (replaces the former "САБ" badge). */
.brand-logo {
  width: 118px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 10px;
  text-decoration: none;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.brand-logo-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  filter: brightness(1.2);
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 12px;
  line-height: 1.25;
  opacity: 0.9;
  max-width: 560px;
}

/* Removed: .brand-right-title (header right label) */

.site-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.05);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.site-nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.nav-spacer {
  height: 0;
}

.site-nav.is-stuck {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  background: rgba(15, 18, 48, 0.9);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  opacity: 0.95;
  padding: 10px 8px;
  border-radius: 10px;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 15% 20%, rgba(59, 106, 227, 0.26), transparent 55%),
    radial-gradient(900px 480px at 80% 55%, rgba(47, 88, 184, 0.22), transparent 60%),
    linear-gradient(180deg, #0a0c22 0%, #0b0d24 45%, #070819 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 36, 0.65) 0%, rgba(11, 13, 36, 0.35) 40%, rgba(11, 13, 36, 0.65) 100%),
    radial-gradient(1200px 700px at 40% 30%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 56px 0 66px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  font-size: 12px;
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-title-sub {
  display: block;
}

.hero-rule {
  width: 92px;
  height: 8px;
  background: rgba(59, 106, 227, 0.8);
  margin: 20px auto 24px;
}

.hero-lead {
  margin: 0 auto 26px;
  max-width: 880px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.18em;
  text-transform: none;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-2);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(59, 106, 227, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-dark {
  background:
    radial-gradient(900px 380px at 15% 20%, rgba(59, 106, 227, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--white);
}

.section-light {
  background: #f5f7ff;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

/* Special layout for "Ключові продукти" section (match reference screenshot):
   - Header centered (title, rule, subtitle)
*/
.solutions-header {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.solutions-header .section-title {
  justify-self: center;
  text-align: center;
  width: auto;
}

.solutions-header .section-rule {
  margin: 16px 0 16px;
}

.solutions-header .section-subtitle {
  margin: 0;
}

.section-kicker {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  font-size: 12px;
}

.section-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title-dark {
  color: #10163b;
}

.section-rule {
  width: 72px;
  height: 8px;
  margin: 16px auto 16px;
  background: rgba(59, 106, 227, 0.8);
}

.section-rule-dark {
  background: rgba(59, 106, 227, 0.9);
}

.section-subtitle {
  margin: 0 auto;
  max-width: 820px;
  opacity: 0.85;
  line-height: 1.8;
}

.section-subtitle-dark {
  color: var(--text-muted);
  opacity: 1;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.pill {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 13px;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}

.card-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1.1;
  color: #10163b;
}

.card-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 8px;
  background: rgba(47, 88, 184, 0.9);
  margin-top: 14px;
}

.card-body {
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 14px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(16, 22, 59, 0.06);
}

.price-card-top {
  padding: 24px 22px 18px;
  text-align: center;
}

.price-tier {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 18px;
  color: #10163b;
  text-transform: uppercase;
}

.price-sub {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.price-amount {
  padding: 18px 22px 12px;
  text-align: center;
  border-top: 1px solid rgba(16, 22, 59, 0.08);
  border-bottom: 1px solid rgba(16, 22, 59, 0.08);
}

.price-number {
  margin: 0;
  font-weight: 500;
  font-size: 44px;
  color: rgba(47, 88, 184, 0.95);
}

.price-unit {
  margin: 0;
  font-size: 14px;
  color: rgba(47, 88, 184, 0.95);
}

.price-body {
  padding: 18px 22px 22px;
}

.price-list-title {
  margin: 0 0 12px;
  font-weight: 700;
  color: #10163b;
}

.price-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.price-badges {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.pricing-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}

.contact-icon {
  font-size: 26px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.contact-label {
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.55;
  font-size: 12px;
  text-transform: uppercase;
}

.contact-value {
  margin-top: 8px;
  font-weight: 600;
  opacity: 0.9;
}

.contact-link {
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

.contact-link:hover,
.contact-link:focus-visible {
  border-bottom-style: solid;
  outline: none;
}

.status-line {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.75;
  text-align: center;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: #070818;
  color: rgba(255, 255, 255, 0.78);
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-top {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-top:hover,
.footer-top:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* Responsive */
@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .brand-subtitle {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    gap: 6px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-inner {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
}

