:root {
  --bg: #0d1117;
  --bg-soft: #121a24;
  --card: #161f2d;
  --text: #e8eef7;
  --muted: #a6b3c5;
  --accent: #ffb703;
  --accent-2: #2ec4b6;
  --line: #263242;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top right, #152033 0, var(--bg) 45%);
  color: var(--text);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 34px;
  max-width: 760px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 183, 3, 0.08);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 25, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 84px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffd166);
  color: #1b1f24;
  box-shadow: 0 10px 20px rgba(255, 183, 3, 0.25);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 26px;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.stat strong {
  font-size: 1.2rem;
  display: block;
}

.stat span {
  color: var(--muted);
  font-size: .9rem;
}

.hero-visual {
  background: linear-gradient(160deg, rgba(46, 196, 182, 0.16), rgba(255, 183, 3, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 360px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -70px;
  top: -80px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.35), rgba(255, 183, 3, 0));
}

.badge {
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  border: 1px solid rgba(46, 196, 182, .5);
  border-radius: 999px;
  width: fit-content;
  padding: 6px 12px;
  background: rgba(46, 196, 182, 0.1);
}

.hero-gallery {
  position: relative;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 21, 0.7);
}

.hero-gallery-main {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}

.hero-gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  background: rgba(3, 8, 18, 0.9);
}

.hero-gallery-thumb {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity .2s ease, transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 183, 3, 0.6);
}

.features-grid,
.apps-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.spec-list {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list span {
  color: var(--muted);
}

.highlight-box {
  background: linear-gradient(155deg, rgba(255, 183, 3, .16), rgba(46, 196, 182, .1));
  border: 1px solid rgba(255, 183, 3, .35);
  border-radius: var(--radius);
  padding: 24px;
}

.highlight-box h3 {
  margin-bottom: 10px;
}

.highlight-box p {
  color: var(--text);
  opacity: .92;
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.cta p {
  color: var(--muted);
  max-width: 700px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: .9rem;
  color: var(--muted);
}

.field input,
.field textarea {
  background: #0f1622;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  font: inherit;
  width: 100%;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field.full {
  grid-column: 1 / -1;
}

.tiny {
  font-size: .82rem;
  color: var(--muted);
}

footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .hero-grid,
  .specs {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .apps-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-hide-mobile {
    display: none;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .features-grid,
  .apps-grid,
  .steps-grid,
  .contact-form,
  .stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 52px;
  }

  .product-teaser-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    width: 100%;
  }
}

/* ===== Тимчасова головна (kj.com.ua) ===== */
.page-home .home-hero {
  padding-top: 88px;
  padding-bottom: 48px;
}

.home-hero-inner {
  max-width: 820px;
}

.home-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 680px;
}

.home-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.home-features {
  grid-template-columns: repeat(3, 1fr);
}

.product-teaser-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.product-teaser {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-teaser .badge {
  margin-bottom: 0;
}

.product-teaser .btn {
  margin-top: auto;
  width: fit-content;
}

.product-teaser--soon {
  opacity: 0.85;
  border-style: dashed;
}

.soon-label {
  display: inline-block;
  margin-top: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  width: fit-content;
}

.contact-list {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.contact-list a {
  color: var(--accent-2);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

footer a {
  color: var(--accent-2);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .home-features {
    grid-template-columns: 1fr;
  }
}
