/* GRT homepage — same red language as GRTEdit */

/* Home header was absolute over old hero — fix overlap with logo/menu */
body.common-home header {
  position: relative !important;
  background: #111 !important;
  z-index: 100;
}
body.common-home header .tophead {
  background: #111;
}
body.common-home #supermenu {
  padding-left: 260px !important;
}
body.common-home #logo {
  z-index: 120 !important;
}
@media (max-width: 991px) {
  body.common-home #supermenu {
    padding-left: 0 !important;
  }
}

.grt-home {
  width: min(1760px, calc(100vw - 32px));
  margin: 0 auto 48px;
  padding: 12px 12px 0;
  box-sizing: border-box;
}
.grt-home * { box-sizing: border-box; }

.grt-home-hero {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 36px 32px 40px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(1000px 320px at 85% -10%, rgba(225, 6, 0, 0.5), transparent 55%),
    linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #2a0a0a 100%);
  box-shadow: 0 16px 40px rgba(225, 6, 0, 0.18);
}
.grt-home-hero .badge {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.22);
  border: 1px solid rgba(255, 120, 120, 0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd0d0;
}
.grt-home-hero h1 {
  margin: 0;
  font-family: "Play", "Open Sans", sans-serif;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}
.grt-home-hero p {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.grt-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.grt-home-cta a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 9px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
}
.grt-home-cta a.primary {
  background: #e10600;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(225, 6, 0, 0.35);
}
.grt-home-cta a.ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
}
.grt-home-cta a.soft {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.grt-home-section {
  margin: 36px 0 0;
}
.grt-home-section h2 {
  font-family: "Play", "Open Sans", sans-serif;
  font-size: 24px;
  margin: 0 0 16px;
  padding: 0 0 10px 14px;
  border-left: 4px solid #e10600;
  color: #111;
}
.grt-home-section .lead {
  margin: 0 0 18px;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.grt-home-notes {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.grt-home-notes li {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  color: #4a1010;
  font-size: 14px;
  line-height: 1.45;
  list-style: none;
}
.grt-home-notes li.grt-home-note-important {
  background: #e10600;
  border: 2px solid #9a0400;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.28);
}
.grt-home-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.grt-home-brands span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.grt-home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grt-home-cards li {
  margin: 0;
  padding: 18px 16px 18px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #e10600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  list-style: none;
}
.grt-home-cards strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #111;
}
.grt-home-cards span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
}

.grt-home-dealers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.grt-home-dealer {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.grt-home-dealer .city {
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}
.grt-home-dealer .who {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.grt-home-dealer a,
.grt-home-dealer span {
  color: #a10000;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.grt-home-dealer a:hover { text-decoration: underline; }

/* Legacy modules dump — JS pulls .podbor out, then hides the rest */
.grt-legacy-source {
  position: absolute !important;
  left: -99999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.grt-home-podbor-slot,
.grt-home-latest {
  width: min(1760px, calc(100vw - 32px));
  margin: 0 auto 28px;
  padding: 0 12px;
  box-sizing: border-box;
  min-height: 40px;
}

/* Firmware picker — forced visible after move to mount */
#grt-podbor-mount .podbor,
.grt-home-podbor-slot .podbor {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  text-align: center !important;
  margin: 16px auto 28px !important;
  bottom: auto !important;
}
#grt-podbor-mount .podbor .inn,
.grt-home-podbor-slot .podbor .inn {
  display: inline-block !important;
  width: 950px !important;
  max-width: 100% !important;
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.15) !important;
  padding: 15px 3px 15px 0 !important;
}
#grt-podbor-mount .podbor .form-group,
#grt-podbor-mount .podbor .ajax-category-container,
#grt-podbor-mount .podbor .btn {
  display: inline-block !important;
  visibility: visible !important;
}

@media (max-width: 992px) {
  body.common-home #supermenu {
    padding-left: 0 !important;
  }
}
@media (max-width: 640px) {
  .grt-home-hero { padding: 24px 18px 28px; }
  .grt-home { padding: 8px 8px 0; }
}
