:root {
  --bgk-primary: #111111;
  --bgk-primary-soft: #1f1f1f;
  --bgk-accent: #f97316;
  --bgk-accent-dark: #c95d0f;
  --bgk-light: #ffffff;
  --bgk-muted: #6b7280;
  --bgk-border: rgba(17, 17, 17, 0.10);
  --bgk-bg: #f4f4f4;
  --bgk-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --bgk-radius: 18px;
  --bgk-bottom-nav-height: 76px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.bgk-pwa-enabled {
  background: var(--bgk-bg);
  padding-bottom: calc(var(--bgk-bottom-nav-height) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.bgk-pwa-enabled a,
body.bgk-pwa-enabled button {
  -webkit-tap-highlight-color: rgba(249, 115, 22, 0.20);
}

.bgk-card {
  background: var(--bgk-light);
  border: 1px solid var(--bgk-border);
  border-radius: var(--bgk-radius);
  padding: 20px;
  margin: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.bgk-button,
.bgk-cta-button,
a.bgk-button,
a.bgk-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  background: var(--bgk-accent);
  color: #ffffff !important;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  text-decoration: none !important;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.bgk-button:hover,
.bgk-cta-button:hover,
a.bgk-button:hover,
a.bgk-cta-button:hover {
  background: var(--bgk-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.34);
}

.bgk-button:focus-visible,
.bgk-cta-button:focus-visible,
.bgk-bottom-nav__link:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 3px;
}

.bgk-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 20px 64px;
  text-align: center;
  background: linear-gradient(160deg, #111111 0%, #222222 58%, #3a210f 100%);
  color: white;
}

.bgk-hero::after {
  content: "";
  position: absolute;
  inset: auto -35% -55% -35%;
  height: 220px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35), rgba(249, 115, 22, 0));
  pointer-events: none;
}

.bgk-hero > * {
  position: relative;
  z-index: 1;
}

.bgk-hero h1 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(32px, 8vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.bgk-hero p {
  max-width: 620px;
  margin: 0 auto 24px;
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.55;
  opacity: 0.92;
}

.bgk-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.bgk-service-item {
  min-height: 126px;
  background: white;
  border: 1px solid var(--bgk-border);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bgk-service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.bgk-service-item h3,
.bgk-service-item h4 {
  margin: 0 0 8px;
  color: var(--bgk-primary);
  font-size: 16px;
  line-height: 1.2;
}

.bgk-service-item p {
  margin: 0;
  color: var(--bgk-muted);
  font-size: 13px;
  line-height: 1.45;
}

.bgk-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  min-height: var(--bgk-bottom-nav-height);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(17, 17, 17, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bgk-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  color: white !important;
  text-decoration: none !important;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.bgk-bottom-nav__link:hover,
.bgk-bottom-nav__link:active {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  opacity: 0.96;
}

.bgk-bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--bgk-accent);
  font-size: 20px;
  line-height: 1;
}

.bgk-bottom-nav__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bgk-loaded .bgk-bottom-nav {
  animation: bgkSlideUp 260ms ease both;
}

@keyframes bgkSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 380px) {
  .bgk-bottom-nav {
    padding-right: 4px;
    padding-left: 4px;
  }

  .bgk-bottom-nav__link {
    font-size: 11px;
  }

  .bgk-bottom-nav__icon {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  body.bgk-pwa-enabled {
    padding-bottom: 0;
  }

  .bgk-bottom-nav {
    display: none;
  }

  .bgk-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1180px;
    margin: 0 auto;
  }
}

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