:root {
  --bg: #f6f8fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --border: rgba(16, 38, 70, 0.1);
  --text: #101f3a;
  --muted: #55647d;
  --blue: #2563eb;
  --teal: #0891b2;
  --gradient: linear-gradient(92deg, #2456e6 0%, #0891b2 100%);
  --radius: 18px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - 48px));
}

section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section {
  padding: 110px 0;
}

.section-alt {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 70%),
    var(--bg-soft);
  border-block: 1px solid rgba(16, 38, 70, 0.07);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

h1,
h2,
h3 {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(36, 86, 230, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(8, 145, 178, 0.45);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 2px 8px -4px rgba(16, 38, 70, 0.12);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 86, 230, 0.4);
  box-shadow: 0 8px 20px -8px rgba(16, 38, 70, 0.18);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(16, 38, 70, 0.07);
  box-shadow: 0 4px 24px -12px rgba(16, 38, 70, 0.15);
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  z-index: 102;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 6px 16px rgba(36, 86, 230, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.3s ease;
}

.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 8px 20px rgba(36, 86, 230, 0.5));
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.logo-dot {
  color: var(--teal);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 34px;
}

.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + 52px) 0 78px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(36, 86, 230, 0.18), transparent 65%);
  animation: float 12s ease-in-out infinite;
}

.orb-2 {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 65%);
  animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 40px) scale(1.08);
  }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 38, 70, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 38, 70, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-head {
  max-width: 860px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(36, 86, 230, 0.28);
  background: rgba(36, 86, 230, 0.07);
  color: #1d4ed8;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 22px;
}

.lead {
  max-width: 620px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 38px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 44px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.hero-stats .stat {
  text-align: center;
}

.stat-label {
  margin-inline: auto;
}

.stat-num b {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  max-width: 130px;
}

.marquee {
  padding: 26px 0;
  border-block: 1px solid rgba(16, 38, 70, 0.07);
  background: var(--bg-soft);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track ul {
  display: flex;
  align-items: center;
}

.marquee-track li {
  position: relative;
  padding: 0 34px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(16, 38, 70, 0.4);
  white-space: nowrap;
}

.marquee-track li::after {
  content: "✦";
  position: absolute;
  right: -8px;
  color: var(--blue);
  font-size: 11px;
  opacity: 0.6;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(16, 38, 70, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 200px at var(--mx, 50%) var(--my, 0%), rgba(36, 86, 230, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 86, 230, 0.35);
  box-shadow: 0 24px 48px -20px rgba(16, 38, 70, 0.28);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(36, 86, 230, 0.09);
  border: 1px solid rgba(36, 86, 230, 0.22);
  color: var(--blue);
  margin-bottom: 22px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.card-price {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  counter-reset: step;
  gap: 20px;
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(16, 38, 70, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 20px 40px -20px rgba(16, 38, 70, 0.25);
}

.step-num {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.step-dur {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(8, 145, 178, 0.09);
  border: 1px solid rgba(8, 145, 178, 0.25);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

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

.case {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(16, 38, 70, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.case::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 86, 230, 0.35);
  box-shadow: 0 24px 48px -20px rgba(16, 38, 70, 0.28);
}

.case:hover::after {
  opacity: 1;
}

.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.case-metric {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(44px, 5vw, 58px);
  font-weight: 600;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.case-metric span {
  font-size: 0.55em;
}

.case h3 {
  font-size: 16.5px;
  margin-bottom: 10px;
}

.case p {
  color: var(--muted);
  font-size: 14px;
}

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

.split-content > p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 30px;
}

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

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--muted);
}

.checklist b {
  color: var(--text);
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--teal);
}

.split-panel {
  display: grid;
  gap: 20px;
}

.quote-card {
  position: relative;
  padding: 36px 30px 30px;
  border-radius: 22px;
  background: linear-gradient(150deg, #eaf1ff, #e6f8fd);
  border: 1px solid rgba(36, 86, 230, 0.2);
  box-shadow: 0 20px 44px -22px rgba(16, 38, 70, 0.3);
}

.quote-mark {
  position: absolute;
  top: 6px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 84px;
  line-height: 1;
  color: rgba(36, 86, 230, 0.3);
}

.quote-card blockquote {
  position: relative;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 26px;
  color: #16304f;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.quote-author b {
  display: block;
  font-size: 15px;
}

.quote-author span:not(.avatar) {
  font-size: 13px;
  color: var(--muted);
}

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

.panel-stats div {
  padding: 18px 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(16, 38, 70, 0.1);
  text-align: center;
}

.panel-stats b {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel-stats span {
  font-size: 12.5px;
  color: var(--muted);
}

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

.faq-item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(16, 38, 70, 0.1);
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.faq-item.active {
  border-color: rgba(36, 86, 230, 0.4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 26px;
  text-align: left;
  font-weight: 700;
  font-size: 16.5px;
}

.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(36, 86, 230, 0.45);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15px;
}

.section-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 80% 20%, rgba(6, 182, 212, 0.1), transparent 70%),
    radial-gradient(50% 80% at 15% 85%, rgba(36, 86, 230, 0.12), transparent 70%),
    var(--bg-soft);
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cta-info > p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 34px;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.contact-list svg {
  color: var(--teal);
  flex-shrink: 0;
}

.contact-list a:hover {
  color: var(--text);
}

.cta-form {
  position: relative;
  padding: 36px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 32px 64px -28px rgba(16, 38, 70, 0.35);
  display: grid;
  gap: 18px;
}

.cta-form.success > *:not(.form-success) {
  display: none;
}

.cta-form.success .form-success {
  display: grid;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cta-form label {
  display: grid;
  gap: 8px;
}

.cta-form label span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(16, 38, 70, 0.14);
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  font-size: 15px;
}

.cta-form input:focus,
.cta-form textarea:focus {
  border-color: rgba(36, 86, 230, 0.6);
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.14);
}

.cta-form input.invalid,
.cta-form textarea.invalid {
  border-color: rgba(220, 38, 38, 0.55);
}

.form-note {
  font-size: 12px;
  color: rgba(85, 100, 125, 0.75);
  text-align: center;
}

.form-success {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 10px;
  gap: 8px;
}

.form-success[hidden] {
  display: none !important;
}

.form-success svg {
  color: #10b981;
  margin-bottom: 8px;
}

.form-success b {
  font-size: 19px;
}

.form-success span {
  color: var(--muted);
  font-size: 15px;
}

.footer {
  border-top: 1px solid rgba(16, 38, 70, 0.08);
  background: var(--surface);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer .logo-text {
  font-size: 17px;
}

.footer .logo-mark {
  width: 32px;
  height: 32px;
}

.footer-nav {
  display: flex;
  gap: 26px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.copyright {
  font-size: 13.5px;
  color: rgba(85, 100, 125, 0.75);
}

/* Ховаємо блоки лише тоді, коли клас .js вже проставлений інлайн-скриптом
   у <head>. Інакше збій завантаження main.js лишив би сторінку порожньою:
   клас .reveal має майже весь контент. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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

@media (max-width: 1024px) {
  .hero-stats {
    gap: 36px;
  }

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

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

  .split,
  .cta-wrap {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .split-panel {
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(246, 248, 251, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 101;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    font-size: 22px;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: 100%;
  }

  .stat-label {
    max-width: none;
  }

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

@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-form {
    padding: 28px 22px;
  }

  .header-actions .btn {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Калькулятор економії ---------- */

.calc {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.calc-inputs {
  padding: 34px 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 54px -34px rgba(16, 38, 70, 0.35);
  display: grid;
  gap: 28px;
}

.calc-field {
  display: grid;
  gap: 12px;
}

.calc-label {
  font-size: 15px;
  font-weight: 700;
  display: grid;
  gap: 3px;
}

.calc-label i {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.calc-control {
  display: grid;
  grid-template-columns: 1fr 128px;
  align-items: center;
  gap: 18px;
}

.calc-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid rgba(16, 38, 70, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.calc-num:focus-within {
  border-color: rgba(36, 86, 230, 0.6);
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.14);
}

.calc-num input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  -moz-appearance: textfield;
}

.calc-num input::-webkit-outer-spin-button,
.calc-num input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-num span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex: none;
}

.calc-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #2456e6 0%,
    #0891b2 var(--fill, 12%),
    rgba(16, 38, 70, 0.12) var(--fill, 12%),
    rgba(16, 38, 70, 0.12) 100%
  );
  outline: none;
  cursor: pointer;
}

.calc-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2456e6;
  box-shadow: 0 4px 12px -3px rgba(36, 86, 230, 0.6);
  cursor: grab;
  transition: transform 0.15s ease;
}

.calc-control input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.12);
  cursor: grabbing;
}

.calc-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2456e6;
  box-shadow: 0 4px 12px -3px rgba(36, 86, 230, 0.6);
  cursor: grab;
}

.calc-control input[type="range"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.22);
}

.calc-hint {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.calc-result {
  position: relative;
  overflow: hidden;
  padding: 32px 30px;
  border-radius: 24px;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--gradient);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(36, 86, 230, 0.7);
  display: grid;
  gap: 22px;
}

.calc-grid {
  display: grid;
  gap: 18px;
}

.calc-cell {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.calc-cell:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-cell b {
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  flex: none;
  min-width: 108px;
  font-variant-numeric: tabular-nums;
}

.calc-cell span {
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.calc-total {
  display: grid;
  gap: 6px;
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.calc-total-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.calc-total b {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.calc-total-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.calc-result .btn-primary {
  background: #fff;
  color: #17356e;
  box-shadow: 0 12px 28px -12px rgba(6, 22, 54, 0.5);
}

.calc-result .btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(6, 22, 54, 0.6);
}

.calc-note {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  font-size: 13.5px;
  font-weight: 600;
  color: #b91c1c;
  text-align: center;
}

.form-error[hidden] {
  display: none;
}

.cta-form.sending #contact-submit {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .calc-inputs,
  .calc-result {
    padding: 26px 20px;
  }

  .calc-control {
    grid-template-columns: 1fr 118px;
    gap: 12px;
  }

  .calc-num {
    padding: 8px 10px;
  }

  /* 16px не дає iOS зумити сторінку на фокусі поля */
  .calc-num input {
    font-size: 16px;
  }

  .calc-num span {
    font-size: 12px;
  }

  .calc-cell b {
    font-size: 22px;
    min-width: 92px;
  }
}

/* ---------- Два акценти в шапці ---------- */

.hero-accents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  width: 100%;
  margin-top: 38px;
}

.accent {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(165deg, #ffffff, #f2f6fd);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -44px rgba(16, 38, 70, 0.45);
  text-align: left;
  overflow: hidden;
}

.accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient);
}

.accent-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.accent-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.accent-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.accent-title {
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.25;
}

.accent-text {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.accent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.accent-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 86, 230, 0.07);
  border: 1px solid rgba(36, 86, 230, 0.16);
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 600;
}

/* --- спільна оболонка обох демо --- */

.demo {
  margin-top: auto;
  border-radius: 16px;
  border: 1px solid rgba(16, 38, 70, 0.18);
  background: #0e1a30;
  overflow: hidden;
  box-shadow: 0 20px 44px -24px rgba(16, 38, 70, 0.6);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-bar b {
  color: #c8d6f0;
  font-size: 12px;
  font-weight: 600;
}

.demo-dots {
  display: flex;
  gap: 5px;
}

.demo-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.demo-body {
  padding: 16px;
}

/* --- демо 01: запит природною мовою --- */

.demo-ask .demo-body {
  display: flex;
  flex-direction: column;
  /* Підібрано так, щоб обидва демо в шапці були однакової висоти. */
  min-height: 223px;
}

.ask-q {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-self: flex-end;
  max-width: 94%;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--gradient);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.ask-caret {
  flex: none;
  width: 2px;
  height: 15px;
  background: #fff;
  animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.ask-think {
  display: flex;
  gap: 5px;
  height: 0;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ask-think.on {
  height: auto;
  opacity: 1;
}

.ask-think i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  animation: thinkBounce 1.1s ease-in-out infinite;
}

.ask-think i:nth-child(2) {
  animation-delay: 0.15s;
}

.ask-think i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes thinkBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.ask-a {
  display: grid;
  gap: 1px;
  margin-top: 12px;
}

.ask-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #c3d2ec;
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(6px);
  animation: rowIn 0.32s ease forwards;
}

.ask-row:first-child {
  border-radius: 10px 10px 0 0;
}

.ask-row:last-child {
  border-radius: 0 0 10px 10px;
}

.ask-row b {
  color: #e2edff;
  font-weight: 600;
  white-space: nowrap;
}

.ask-row.is-total {
  background: rgba(125, 211, 252, 0.14);
}

.ask-row.is-total b {
  color: #7dd3fc;
}

@keyframes rowIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- демо 02: камера й машинний зір --- */

.see-modes {
  display: flex;
  gap: 4px;
}

.see-mode {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #93a4c4;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.see-mode.is-on {
  background: rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
}

.see-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #fca5a5 !important;
  font-size: 10.5px !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 2s infinite;
}

.see-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 162px;
}

.see-frame {
  position: relative;
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0a1428;
  overflow: hidden;
}

.corner {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  border: 2px solid #60a5fa;
}

.corner.tl {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 4px 0 0 0;
}

.corner.tr {
  top: 8px;
  right: 8px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 4px 0 0;
}

.corner.bl {
  bottom: 8px;
  left: 8px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 4px;
}

.corner.br {
  bottom: 8px;
  right: 8px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 4px 0;
}

.see-scan {
  position: absolute;
  z-index: 3;
  top: 6%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7dd3fc, transparent);
  box-shadow: 0 0 18px #38bdf8;
  opacity: 0;
}

.demo-see.scanning .see-scan {
  opacity: 1;
  animation: scanSweep 1.5s ease-in-out;
}

@keyframes scanSweep {
  from {
    top: 6%;
  }
  to {
    top: 92%;
  }
}

.see-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-see.mode-doc .see-scene-doc,
.demo-see.mode-goods .see-scene-goods {
  opacity: 1;
  transform: none;
}

.sheet {
  display: grid;
  gap: 6px;
  width: 62%;
  padding: 13px 11px;
  border-radius: 3px;
  background: #dde6f6;
  box-shadow: 0 12px 26px -12px #000;
  transform: rotate(-3.5deg);
}

.sheet .l {
  height: 4px;
  border-radius: 2px;
  background: #9aabc8;
}

.sheet .accentline {
  height: 6px;
  background: #2456e6;
}

.sheet .w30 { width: 30%; }
.sheet .w45 { width: 45%; }
.sheet .w55 { width: 55%; }
.sheet .w60 { width: 60%; }
.sheet .w70 { width: 70%; }
.sheet .w75 { width: 75%; }
.sheet .w80 { width: 80%; }

.see-scene-goods {
  grid-template-columns: repeat(3, 32px);
  grid-auto-rows: 32px;
  gap: 10px;
  align-content: center;
  justify-content: center;
}

.box {
  position: relative;
  border-radius: 5px;
  background: linear-gradient(160deg, #3d5273, #24344c);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.box i {
  position: absolute;
  top: -13px;
  left: -1px;
  padding: 0 4px;
  border-radius: 3px;
  background: #22c55e;
  color: #04240f;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.demo-see.detecting .box {
  animation: detect 0.45s ease forwards;
}

.demo-see.detecting .box i {
  opacity: 1;
}

.demo-see.detecting .box:nth-child(1) { animation-delay: 0.05s; }
.demo-see.detecting .box:nth-child(2) { animation-delay: 0.14s; }
.demo-see.detecting .box:nth-child(3) { animation-delay: 0.23s; }
.demo-see.detecting .box:nth-child(4) { animation-delay: 0.32s; }
.demo-see.detecting .box:nth-child(5) { animation-delay: 0.41s; }
.demo-see.detecting .box:nth-child(6) { animation-delay: 0.5s; }

.demo-see.detecting .box:nth-child(1) i { transition-delay: 0.05s; }
.demo-see.detecting .box:nth-child(2) i { transition-delay: 0.14s; }
.demo-see.detecting .box:nth-child(3) i { transition-delay: 0.23s; }
.demo-see.detecting .box:nth-child(4) i { transition-delay: 0.32s; }
.demo-see.detecting .box:nth-child(5) i { transition-delay: 0.41s; }
.demo-see.detecting .box:nth-child(6) i { transition-delay: 0.5s; }

@keyframes detect {
  from {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
  to {
    box-shadow: 0 0 0 1.5px #22c55e;
  }
}

.see-fields {
  display: grid;
  align-content: start;
  gap: 6px;
}

.see-fields li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #93a4c4;
  font-size: 11.5px;
  opacity: 0;
  transform: translateX(8px);
  animation: fieldIn 0.3s ease forwards;
}

.see-fields li b {
  color: #dbe6fb;
  font-weight: 600;
  text-align: right;
}

@keyframes fieldIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.see-result {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.see-result.on {
  opacity: 1;
}

/* ---------- Секція 01: запити природною мовою ---------- */

.ask-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 26px;
  align-items: start;
}

.qlist {
  padding: 32px 30px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(16, 38, 70, 0.1);
}

.qlist-title {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.qlist ul {
  display: grid;
  gap: 10px;
}

.qlist li {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.qlist li:hover {
  transform: translateX(4px);
  border-color: rgba(36, 86, 230, 0.3);
}

.qlist li::before {
  content: "«";
  color: var(--blue);
  font-weight: 700;
}

.qlist li::after {
  content: "»";
  color: var(--blue);
  font-weight: 700;
}

.qlist-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.ask-panel {
  padding: 32px 30px;
  border-radius: 22px;
  background: linear-gradient(165deg, #ffffff, #f2f6fd);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -44px rgba(16, 38, 70, 0.45);
}

.ask-panel h3 {
  margin-bottom: 20px;
  font-size: 19px;
}

.mini-steps {
  display: grid;
  gap: 18px;
  counter-reset: ms;
}

.mini-steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: ms;
}

.mini-steps li::before {
  content: counter(ms);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.mini-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: -14px;
  left: 15px;
  width: 1px;
  background: rgba(36, 86, 230, 0.22);
}

.mini-steps b {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.mini-steps span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.note {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.note svg {
  flex: none;
  margin-top: 2px;
  color: #059669;
}

.note p {
  color: var(--muted);
  font-size: 13.5px;
}

.note b {
  color: var(--text);
}

/* ---------- Секція 02: машинний зір ---------- */

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vcard {
  position: relative;
  padding: 32px 30px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(16, 38, 70, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.vcard:hover {
  transform: translateY(-5px);
  border-color: rgba(36, 86, 230, 0.3);
  box-shadow: 0 30px 60px -32px rgba(16, 38, 70, 0.4);
}

.vcard:hover::before {
  transform: none;
}

.vcard-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(36, 86, 230, 0.09);
  border: 1px solid rgba(36, 86, 230, 0.22);
  color: var(--blue);
}

.vcard-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vcard h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.vcard > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
}

.vlist {
  display: grid;
  gap: 11px;
}

.vlist li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 14.5px;
}

.vlist li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.vision-note {
  max-width: 900px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* ---------- Картки послуг: акцентні та широка ---------- */

.card-lead {
  background: linear-gradient(170deg, #ffffff, #f2f7ff);
  border-color: rgba(36, 86, 230, 0.24);
}

.card-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 86, 230, 0.1);
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
}

.card-link::after {
  content: "→";
  transition: transform 0.25s ease;
}

.card:hover .card-link::after {
  transform: translateX(4px);
}

.card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.card-wide .card-icon {
  margin-bottom: 0;
}

.card-wide h3 {
  margin-bottom: 6px;
}

.card-wide .card-price {
  margin-bottom: 0;
  white-space: nowrap;
}

/* ---------- Адаптив нових блоків ---------- */

@media (max-width: 1024px) {
  .hero-accents {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .ask-grid,
  .vision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .accent {
    padding: 26px 22px;
  }

  .card-wide {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .hero-accents {
    margin-top: 40px;
  }

  .accent-head {
    gap: 12px;
  }

  .see-body {
    grid-template-columns: 1fr;
  }

  .see-frame {
    min-height: 128px;
  }

  .qlist,
  .ask-panel,
  .vcard {
    padding: 26px 22px;
  }
}

/* ---------- Клавіатурна навігація й інтерактив демо ---------- */

/* Поля форми й повзунки калькулятора мають власні стани фокуса вище;
   тут — усе решта, що досі покладалось на дефолтне кільце браузера. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.see-mode:hover {
  background: rgba(96, 165, 250, 0.18);
  color: #dbeafe;
}

.see-mode:focus-visible {
  outline-color: #7dd3fc;
  outline-offset: 2px;
}

/* ---------- Сторінка 404 ---------- */

.notfound {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 60px 0;
  overflow: hidden;
}

.notfound-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.notfound-inner {
  position: relative;
  max-width: 620px;
  text-align: center;
}

.notfound .logo {
  justify-content: center;
  margin-bottom: 44px;
}

.notfound-code {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(72px, 16vw, 132px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.28;
}

.notfound h1 {
  margin: -8px 0 16px;
  font-size: clamp(26px, 4vw, 38px);
}

.notfound p {
  margin-inline: auto;
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.notfound-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.notfound-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.notfound-nav a:hover {
  color: var(--blue);
}

/* ---------- Текстові сторінки (політика обробки даних) ---------- */

.legal {
  padding: 60px 0 90px;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.legal-back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.legal-back::before {
  content: "← ";
}

.legal-back:hover {
  color: var(--blue);
}

.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 20px;
}

.legal-lead {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.legal h2 {
  margin: 44px 0 14px;
  font-size: 22px;
}

.legal h3 {
  margin: 26px 0 10px;
  font-size: 17px;
}

.legal p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
}

.legal ul {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.legal li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
}

.legal li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.legal a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .logo,
.legal .btn {
  text-decoration: none;
}

.legal b {
  color: var(--text);
}

/* Таблиця отримувачів даних: на вузькому екрані гортається сама,
   щоб не розтягувати сторінку горизонтально. */
.legal-table {
  margin: 18px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.legal-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table th,
.legal-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.legal-table thead th {
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-table tbody tr + tr td {
  border-top: 1px solid var(--border);
}

.legal-table td {
  color: var(--muted);
}

.legal-table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.legal-updated {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px !important;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Посилання на політику стоїть у дрібному сірому тексті під кнопкою —
   без цього правила воно там просто губиться. */
.form-note a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
