:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;

  --blue: #2563eb;
  --yellow: #fbbf24;

  --card: #ffffff;
  --soft: rgba(15, 23, 42, 0.06);
  --soft2: rgba(15, 23, 42, 0.10);

  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

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

.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  z-index: 50;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  display: block;
}
.dot--b { background: var(--blue); }
.dot--y { background: var(--yellow); }

.brand__name {
  font-size: 18px;
}

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

.nav__link {
  font-size: 14px;
  color: #334155;
  transition: 0.2s;
}
.nav__link:hover {
  color: var(--blue);
}

.burger {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  margin: 5px 0;
  border-radius: 2px;
}

.mobileMenu{
  display:none;                 /* ✅ коли закрито — не існує для кліків */
  position:absolute;
  left:0;
  right:0;
  top:76px;                     /* висота header__inner */
  background:#fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  z-index: 9999;                /* ✅ щоб було над контентом тільки коли open */
  padding: 10px 20px;
}

.mobileMenu a{
  display:block;
  padding:10px 0;
  font-size:14px;
  color:#334155;
}

.mobileMenu.isOpen{
  display:block;
}

/* ✅ відкрито */
.mobileMenu.isOpen{
  display: block;
}




/* Hero */
.hero {
  padding: 64px 0 56px;
}

.hero__inner {
  text-align: center;
}

.hero__title {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 auto 22px;
  max-width: 560px;
  font-size: 15px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}
.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  background: white;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}
.btn--ghost:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--blue);
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 0 auto 26px;
}

.catCard {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: white;
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  min-height: 78px;
}

.catCard:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.25);
}

.catIcon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.25);
  margin-bottom: 10px;
  font-size: 18px;
}

.catText {
  display: block;
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.1;
}

/* Popular */
.popular {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 22px;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.popular__title {
  text-align: left;
  margin: 0 0 14px;
  font-size: 16px;
}

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

.popCard {
  background: white;
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}

.popCard:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.25);
}

.popIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.popIcon--blue {
  background: rgba(37, 99, 235, 0.14);
  color: var(--blue);
}

.popIcon--yellow {
  background: rgba(251, 191, 36, 0.25);
  color: #8a5b00;
}

.popName {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  flex: 1;
  text-align: left;
}

.popArrow {
  font-size: 18px;
  color: #94a3b8;
}

/* Footer */
.footer {
  padding: 34px 0 28px;
  color: #475569;
}

.footerCols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding-top: 10px;
}

.footerCol a {
  display: block;
  font-size: 13px;
  padding: 6px 0;
  color: #64748b;
}

.footerTitle {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 6px;
}

.footerBottom {
  margin-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 14px;
}

.footerDisclaimer {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 8px;
}

.footerCopy {
  margin: 0;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-block;
  }
  .categories {
    grid-template-columns: repeat(3, 1fr);
  }
  .popularGrid {
    grid-template-columns: 1fr;
  }
  .footerCols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero__title {
    font-size: 34px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 340px;
  }
}
/* гарантуємо кліки по сторінці коли mobileMenu приховане */
#mobileMenu { pointer-events: none; }
#mobileMenu[style*="display: block"] { pointer-events: auto; }

/* на всяк випадок: щоб inputs/buttons завжди були зверху */
.page, .main { position: relative; z-index: 1; }
