/* Transkom Help — zelena tema (maloprodaja / market) */
:root {
  --bg: #f4fdf7;
  --bg-warm: #f0fdf4;
  --bg-blush: #dcfce7;
  --surface: #fefffe;
  --page-pattern: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%2316a34a' fill-opacity='0.16'/%3E%3C/svg%3E");
  --page-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --text: #1c1c24;
  --muted: #5f6570;
  --border: #dce8e0;

  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-light: #22c55e;
  --brand-glow: rgba(22, 163, 74, 0.18);
  --hero-from: #14532d;
  --hero-to: #22c55e;

  --kasa: #ca8a04;
  --kasa-bg: #fefce8;
  --robno: #0d9488;
  --robno-bg: #ecfdf5;
  --eo: #2563eb;
  --eo-bg: #eff6ff;
  --update: #7c3aed;
  --update-bg: #f5f3ff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(28, 28, 36, 0.08);
  --shadow-hover: 0 12px 32px rgba(28, 28, 36, 0.12);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --support-bg: linear-gradient(135deg, #f0fdf4 0%, #fefce8 50%, #f0f9ff 100%);
  --max: 1140px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: #ecfdf5;
  background-image:
    radial-gradient(ellipse 110% 80% at 0% 0%, rgba(22, 163, 74, 0.12), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(34, 197, 94, 0.1), transparent 48%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(187, 247, 208, 0.45), transparent 55%),
    linear-gradient(180deg, #f4fdf7 0%, #ecfdf5 45%, #d1fae5 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

/* Full-page dot texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: var(--page-pattern);
  background-size: 22px 22px;
  opacity: 1;
  pointer-events: none;
}

/* Full-page grain (visible on whole site, not only hero) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--page-noise);
  background-size: 160px 160px;
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-sheen {
  display: none;
}

body.is-home .page-sheen,
body:not(.is-home) .page-sheen {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 35%, rgba(255, 255, 255, 0.55) 0%, transparent 22%),
    radial-gradient(circle at 88% 70%, rgba(22, 163, 74, 0.08) 0%, transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(220, 252, 231, 0.5) 0%, transparent 40%);
}

/* Retail / market icons on dotted background */
.page-retail-deco {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.retail-deco-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  opacity: 0.11;
  rotate: var(--rot, 0deg);
  animation: retail-float 18s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .retail-deco-icon {
    animation: none;
  }
}

.retail-deco-icon:nth-child(odd) {
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.retail-deco-icon .ic {
  width: 100%;
  height: 100%;
}

@keyframes retail-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* Floating ambient shapes (home) */
.ambient-shapes {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, calc(var(--max) + 2.5rem));
  height: 0;
  top: 0;
  pointer-events: none;
  z-index: 0;
}

body.is-home main {
  position: relative;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.shape-1 {
  width: 280px;
  height: 280px;
  top: -40px;
  left: -80px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.14) 0%, transparent 70%);
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 120px;
  right: -60px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
}

.shape-3 {
  width: 160px;
  height: 160px;
  top: 380px;
  left: 10%;
  background: radial-gradient(circle, rgba(21, 128, 61, 0.1) 0%, transparent 70%);
}

.shape-4 {
  width: 220px;
  height: 220px;
  top: 520px;
  right: 5%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

a {
  color: var(--brand);
}

img,
video {
  max-width: 100%;
  height: auto;
}

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

/* —— Header + masthead —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header--home {
  position: relative;
  box-shadow: none;
}

.masthead {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.site-header--home .masthead {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.07) 0%, transparent 40%),
    linear-gradient(
      155deg,
      #14532d 0%,
      var(--brand-dark) 22%,
      var(--brand) 52%,
      var(--brand-light) 78%,
      #4ade80 92%
    );
}

.site-header--home .masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-pattern);
  background-size: 20px 20px;
  opacity: 0.32;
  pointer-events: none;
}

.site-header--home .masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.header-brand {
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.header-retail-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.header-deco-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.16;
  rotate: var(--rot, 0deg);
}

.header-deco-icon .ic {
  width: 100%;
  height: 100%;
}

.header-brand-inner {
  position: relative;
  z-index: 1;
}

body:not(.is-home) .header-brand {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    linear-gradient(135deg, #14532d 0%, var(--brand-dark) 28%, var(--brand) 62%, var(--brand-light) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(28, 28, 36, 0.1);
}

body:not(.is-home) .header-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-pattern);
  background-size: 20px 20px;
  opacity: 0.35;
  pointer-events: none;
}

.header-brand-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.site-header--home .header-brand-inner {
  padding-bottom: 0.85rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #fff;
  flex: 1 1 auto;
  min-width: min(100%, 280px);
}

.brand-link:hover .brand-title {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.logo-mark {
  display: block;
  width: 52px;
  height: 52px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.brand-heading {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.brand-title {
  color: #fff;
}

.brand-sep {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.brand-sub {
  font-weight: 600;
  color: #dcfce7;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.brand-tagline {
  margin: 0;
  flex: 0 1 auto;
  max-width: 22rem;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.header-toolbar {
  width: 100%;
  background: rgba(255, 252, 251, 0.97);
  border-bottom: 1px solid rgba(22, 163, 74, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-toolbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 420px;
  min-width: 160px;
}

.header-search input {
  width: 100%;
  padding: 0.6rem 2.35rem 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.header-search .search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.15rem;
  background: var(--text);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 12px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-home::before {
  content: "← ";
  opacity: 0.7;
}

.btn-home:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

body.is-home .header-toolbar {
  display: none;
}

body.is-home .brand-tagline {
  display: none;
}

body.is-home main {
  padding-top: 0;
}

/* —— Main —— */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

main.page-inner {
  padding-top: 1.25rem;
}

/* —— Hero (home: inside masthead) —— */
.hero-banner {
  margin: 0 0 1.75rem;
  padding: 2.75rem 1.5rem 3rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
  background:
    linear-gradient(
      128deg,
      var(--hero-from) 0%,
      var(--brand-dark) 22%,
      var(--brand) 48%,
      var(--brand-light) 72%,
      #86efac 88%,
      rgba(244, 253, 247, 0.15) 100%
    );
  box-shadow:
    0 20px 50px -12px rgba(20, 83, 45, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.hero-banner--masthead {
  margin: 0 auto 0;
  padding: 1.75rem 1.25rem 3rem;
  max-width: var(--max);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

.hero-banner--masthead::before,
.hero-banner--masthead::after {
  display: none;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

/* Noise + dot texture (shared with page) */
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image: var(--page-pattern);
  background-size: 20px 20px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 80% at 0% 100%, rgba(255, 200, 180, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
    linear-gradient(180deg, transparent 55%, rgba(253, 248, 246, 0.25) 100%);
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-ring-1 {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
}

.hero-ring-2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(255, 180, 160, 0.12) 0%, transparent 70%);
}

.hero-banner > h2,
.hero-banner > p,
.hero-banner > .hero-body,
.hero-banner > .hero-deco {
  position: relative;
  z-index: 3;
}

.hero-banner h2,
.hero-banner .hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-banner .hero-lead {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  font-size: 1.05rem;
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-search-wrap {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 5;
}

.hero-search {
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-search input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
}

.hero-search .search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.hero-deco {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.hero-deco-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-deco-icon .ic {
  width: 22px;
  height: 22px;
}

/* Transkom94 LIVE — preuzimanje u hero */
.hero-apps {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-self: center;
  justify-self: end;
  min-width: 0;
}

.hero-app-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  min-width: 0;
  max-width: 138px;
  flex: 0 0 auto;
  padding: 0.4rem 0.55rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 20px rgba(15, 61, 38, 0.16);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 61, 38, 0.24);
}

.hero-app-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.hero-app-card__icon {
  flex-shrink: 0;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 61, 38, 0.2);
}

.hero-app-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.hero-app-card__platform {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-app-card--android .hero-app-card__platform {
  color: #1faa59;
}

.hero-app-card--windows .hero-app-card__platform {
  color: #0078d4;
}

.hero-app-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-app-card--android .hero-app-card__cta {
  color: #15803d;
}

.hero-app-card__cta .ic {
  width: 12px;
  height: 12px;
}

.hero-app-card--windows .hero-app-card__cta {
  color: #0078d4;
}

.ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.section-ico {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.35rem;
  color: var(--brand);
}

.section-ico .ic {
  width: 18px;
  height: 18px;
}

/* —— Sections —— */
.section {
  margin-bottom: 1.75rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-head a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* Quick chips */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 252, 251, 0.95);
  border: 1px solid rgba(22, 163, 74, 0.08);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}

.chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip--kasa .chip-icon { background: var(--kasa-bg); color: var(--kasa); }
.chip--robno .chip-icon { background: var(--robno-bg); color: var(--robno); }
.chip--eo .chip-icon { background: var(--eo-bg); color: var(--eo); }
.chip--update .chip-icon { background: var(--update-bg); color: var(--update); }

.cat-icon .ic {
  width: 26px;
  height: 26px;
}

.cat-card--kasa .cat-icon { color: var(--kasa); }
.cat-card--robno .cat-icon { color: var(--robno); }
.cat-card--eo .cat-icon { color: var(--eo); }
.cat-card--update .cat-icon { color: var(--update); }

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: rgba(255, 252, 251, 0.95);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(22, 163, 74, 0.07);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.cat-card--kasa { border-top: 4px solid var(--kasa); }
.cat-card--robno { border-top: 4px solid var(--robno); }
.cat-card--eo { border-top: 4px solid var(--eo); }
.cat-card--update { border-top: 4px solid var(--update); }

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cat-card--kasa .cat-icon { background: var(--kasa-bg); }
.cat-card--robno .cat-icon { background: var(--robno-bg); }
.cat-card--eo .cat-icon { background: var(--eo-bg); }
.cat-card--update .cat-icon { background: var(--update-bg); }

.cat-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.cat-card .cat-desc {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.cat-topics {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
}

.cat-topics li {
  padding: 0.2rem 0;
  color: var(--muted);
}

.cat-topics li::before {
  content: "✓ ";
  color: var(--eo);
  font-weight: 700;
}

.cat-cta {
  font-weight: 700;
  font-size: 0.9rem;
}

.cat-card--kasa .cat-cta { color: var(--kasa); }
.cat-card--robno .cat-cta { color: var(--robno); }
.cat-card--eo .cat-cta { color: var(--eo); }
.cat-card--update .cat-cta { color: var(--update); }

/* 2-column layout */
.layout-2 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .layout-2 {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: rgba(255, 252, 251, 0.92);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(22, 163, 74, 0.06);
  height: 100%;
  backdrop-filter: blur(8px);
}

.panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

/* Problem rows */
.problem-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.problem-row:last-child {
  border-bottom: none;
}

.problem-row:hover {
  background: var(--bg-warm);
}

.problem-row .pr-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.problem-row .pr-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.problem-row .pr-arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.search-empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Video cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

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

.video-card {
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}

.video-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.video-thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: #1a1a22;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-videos {
  padding: 1.35rem;
}

.section-videos .section-head {
  margin-bottom: 1rem;
}

.section-sub {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.video-grid--home {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 900px) {
  .video-grid--home {
    grid-template-columns: repeat(4, 1fr);
  }
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

.video-card:hover .video-play {
  background: rgba(0, 0, 0, 0.35);
}

.video-play {
  color: var(--brand);
}

.video-play .ic-play {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.video-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.video-card span.vc-title {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

/* How-to panel */
.panel-howto h3 {
  margin: 0 0 1rem;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.how-steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.how-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-icon--1 { background: #ecfdf5; color: var(--brand); }
.how-icon--2 { background: var(--kasa-bg); color: var(--kasa); }
.how-icon--3 { background: #ecfdf3; color: var(--eo); }

.how-steps strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.how-steps span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Support bar */
.support-bar {
  margin-bottom: 1rem;
}

.support-bar-inner {
  background: var(--support-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.support-bar-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.support-bar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-bar-icon .ic {
  width: 28px;
  height: 28px;
}

.support-bar-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.support-bar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .contact-cards-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

.contact-card-lg {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-photo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 0.65rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(22, 163, 74, 0.15));
}

.contact-card-lg strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.contact-role {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-email {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.support-bar--compact .support-bar-head {
  margin-bottom: 1rem;
}

.support-bar--compact {
  margin-top: 1.5rem;
}

/* Legacy support panel alias */
.support-panel {
  background: transparent;
  border: none;
  padding: 0;
}

.support-intro {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.support-intro strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.support-person {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.support-person:last-of-type {
  border-bottom: none;
  margin-bottom: 0.75rem;
}

.support-person strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.support-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-call,
.btn-viber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  flex: 1;
  min-width: 100px;
}

.contact-card-lg .support-actions {
  justify-content: center;
  max-width: 280px;
  margin: 0 auto;
}

.contact-card-lg .btn-call,
.contact-card-lg .btn-viber {
  flex: 1;
  min-width: 110px;
}

.btn-call {
  background: var(--brand);
  color: #fff !important;
}

.btn-viber {
  background: #7360f2;
  color: #fff !important;
}

/* —— Inner pages —— */
.page-hero-sm {
  background:
    linear-gradient(128deg, #14532d 0%, var(--brand-dark) 50%, var(--brand) 100%);
  color: #fff;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 32px rgba(74, 13, 24, 0.2);
  position: relative;
  overflow: hidden;
}

.page-hero-sm::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-pattern);
  background-size: 18px 18px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.page-hero-sm h2,
.page-hero-sm p {
  position: relative;
  z-index: 1;
}

.page-hero-sm h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.page-hero-sm p {
  margin: 0;
  opacity: 0.9;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 600;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.problem-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.15s;
}

.problem-list a:hover {
  border-color: var(--brand);
  transform: translateX(4px);
}

.problem-list a::after {
  content: "→";
  margin-left: auto;
  color: var(--brand);
}

.category-articles {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 800px;
}

.article-in-category {
  scroll-margin-top: 6rem;
}

.category-articles .article {
  margin-bottom: 0;
}

.article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 800px;
}

.article-lead {
  background: var(--bg-warm);
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}

.article h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--brand-dark);
  line-height: 1.35;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--brand-glow);
}

.video-wrap {
  margin: 0 0 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}

.video-wrap video {
  width: 100%;
  display: block;
}

.steps {
  margin: 0;
  padding-left: 1.35rem;
}

.steps li {
  margin-bottom: 0.85rem;
  padding-left: 0.25rem;
}

.steps strong {
  color: var(--brand);
}

.note {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.help-img {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 0 1.25rem 2rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.footer-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--surface);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.35rem;
}

.feature strong {
  display: block;
  font-size: 0.95rem;
}

.feature p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

body:not(.is-home) .footer-welcome-wrap {
  display: none;
}

.footer-welcome-wrap {
  margin: 0 0 0.5rem;
}

.footer-welcome-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-welcome-btn:hover {
  color: var(--brand-dark);
}

.how-to {
  margin-top: 0.75rem;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
}

.how-to summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}

.how-to ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.2rem;
}

@media (max-width: 720px) {
  .header-brand-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .brand-link {
    justify-content: center;
  }

  .site-brand {
    align-items: center;
  }

  .brand-heading {
    justify-content: center;
  }

  .brand-tagline {
    text-align: center;
    max-width: none;
  }

  .header-toolbar-inner {
    justify-content: stretch;
  }

  .header-search {
    max-width: none;
  }
}

/* Video suggest dropdown */
.video-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(28, 28, 36, 0.22);
  border: 1px solid rgba(22, 163, 74, 0.12);
  overflow: hidden;
  text-align: left;
}

.video-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.video-suggest__item:last-child {
  border-bottom: none;
}

.video-suggest__item:hover,
.video-suggest__item.is-active {
  background: #fff5f6;
}

.video-suggest__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a22;
}

.video-suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-suggest__text {
  flex: 1;
  min-width: 0;
}

.video-suggest__title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--brand-dark);
}

.video-suggest__hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.video-suggest__play {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* Welcome modal */
body.welcome-open {
  overflow: hidden;
}

.welcome-modal[hidden] {
  display: none !important;
}

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.welcome-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 36, 0.55);
  backdrop-filter: blur(4px);
}

.welcome-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(92vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 24px 60px rgba(28, 28, 36, 0.25);
  border: 1px solid rgba(22, 163, 74, 0.12);
  animation: welcome-in 0.35s ease;
}

@keyframes welcome-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.welcome-modal__badge {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.welcome-modal__panel h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.2;
}

.welcome-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.welcome-steps li {
  margin-bottom: 0.55rem;
}

.welcome-steps li:last-child {
  margin-bottom: 0;
}

.welcome-cats {
  margin-bottom: 1.15rem;
}

.welcome-cats__label {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.welcome-cats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.welcome-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.welcome-cat:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px var(--brand-glow);
  transform: translateY(-1px);
}

.welcome-cat__icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.welcome-cat__icon .ic {
  width: 20px;
  height: 20px;
}

.welcome-cat--kasa .welcome-cat__icon {
  background: var(--kasa-bg);
  color: var(--kasa);
}

.welcome-cat--robno .welcome-cat__icon {
  background: var(--robno-bg);
  color: var(--robno);
}

.welcome-cat--eo .welcome-cat__icon {
  background: var(--eo-bg);
  color: var(--eo);
}

.welcome-cat--update .welcome-cat__icon {
  background: var(--update-bg);
  color: var(--update);
}

.welcome-cat__name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--brand-dark);
}

.welcome-cat__hint {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.25;
}

.welcome-modal__btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 4px 16px var(--brand-glow);
}

.welcome-modal__btn:hover {
  filter: brightness(1.06);
}

@media (max-width: 400px) {
  .welcome-cats__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .hero-search-wrap {
    grid-column: 1;
    grid-row: 1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-apps {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-end;
    width: 100%;
  }
}

@media (max-width: 600px) {

  .hero-banner {
    padding: 2rem 1rem 2.75rem;
    border-radius: 20px;
  }

  .shape-1,
  .shape-2 {
    opacity: 0.6;
  }
}
