/* ===========================
   Global stylesheet — style.css
   Refactored & unified for all subpages
   - Layout, hero, cards, galleries, lightbox
   - CTA, forms, tables, responsiveness
   - Smooth scroll, basic animations, dark mode ready
   =========================== */

/* --- CSS variables (light & dark ready) --- */
:root {
  --color-bg: #f6f6f6;
  --color-bg-elevated: #ffffff;
  --color-text: #222222;
  --color-text-muted: #777777;
  --color-primary: #b30000;
  --color-primary-dark: #8a0000;
  --color-accent-soft: rgba(179, 0, 0, 0.12);
  --color-border-soft: #e6e6e6;
  --color-shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.08);
  --color-shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --transition-fast: 0.15s ease;
  --transition-med: 0.18s ease;
}

/* Dark mode hook */
body.dark-mode {
  --color-bg: #050608;
  --color-bg-elevated: #111318;
  --color-text: #f5f5f5;
  --color-text-muted: #a0a4b0;
  --color-border-soft: #2a2d36;
  --color-shadow-soft: 0 2px 14px rgba(0, 0, 0, 0.7);
  --color-shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.85);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  scroll-behavior: smooth;
}

/* --- Layout container helpers --- */
.container,
.abs-container,
.content-wrapper,
.product-content,
.contact-section,
.app-description,
.policy-wrapper,
.about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ========================================= */
/* PREMIUM, PRZEZROCZYSTE MENU Z BLUREM     */
/* ========================================= */

.top-nav {
  width: 100%;
  background: transparent !important;
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(8px); /* BLUR ZAWSZE AKTYWNY */
  transition: all 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

/* Po przewinięciu - dalej blur, zmienia się tylko kolor obramowania */
.top-nav.scrolled {
  background: transparent !important;
  backdrop-filter: blur(8px) !important; /* BLUR DALEJ DZIAŁA */
  border-bottom: 1px solid rgba(179, 0, 0, 0.2);
}

/* Domyślnie – ciemne litery */
.top-nav .menu a {
  color: #222222 !important;
  font-weight: 600;
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.top-nav .menu a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #b30000 !important;
}

.top-nav .menu a.active {
  background: rgba(179, 0, 0, 0.12);
  color: #b30000 !important;
}

/* Hamburger – ciemny (domyślnie) */
.hamburger span {
  background: #222222 !important;
}

/* Gdy menu jest nad banerem – jasne litery */
.top-nav.on-hero {
  backdrop-filter: blur(8px) !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.top-nav.on-hero .menu a {
  color: #f0f0f0 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.top-nav.on-hero .menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.top-nav.on-hero .menu a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.top-nav.on-hero .hamburger span {
  background: white !important;
}

/* Logo – domyślnie ciemne */
.logo {
  position: relative;
  width: auto;
  height: 36px;
  display: inline-block;
}

.logo img {
  position: absolute;
  left: 0;
  top: 0;
  height: 36px;
  width: auto;
  transition: opacity 120ms ease;
  backface-visibility: hidden;
}

.logo-dark {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.logo-light {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* Logo nad banerem – jasne */
.top-nav.on-hero .logo-dark {
  opacity: 0;
  pointer-events: none;
}

.top-nav.on-hero .logo-light {
  opacity: 1;
  pointer-events: auto;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Menu */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.menu a:hover,
.menu a:focus {
  outline: none;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  width: 36px;
  height: 28px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 3px;
  transition: background 0.2s ease;
}

/* ========================================= */
/* UJEDNOLICONY STYL BANERA (HERO)          */
/* ========================================= */

.hero-rotator {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

/* Wszystkie podstrony – 5px odstępu */
body:not(.home) .hero-rotator {
  margin-top: 5px;
}

/* Specjalny przypadek dla strony kontakt */
body.contact .hero-rotator {
  background-position: center 38% !important;
}

/* Overlay – przyciemnienie dla lepszej czytelności tekstu */
.hero-rotator .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  pointer-events: none;
  z-index: 2;
}

/* Kontener na tekst */
.hero-rotator .hero-text {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Główny tytuł na banerze */
.hero-rotator h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Podtytuł na banerze (opcjonalny) */
.hero-rotator p {
  font-size: 1.3rem;
  margin: 0;
  color: #ffffff;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Warstwy rotatora (dla strony głównej) */
.hero-rotator .hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-rotator .hero-layer.visible {
  opacity: 1;
  animation: slowZoom 8s ease-out forwards;
}

/* Animacja zoom */
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* --- Sekcje --- */
section {
  padding: 28px 0;
}

/* --- Product / app / gallery grids --- */
.product-grid,
.app-grid,
.gallery-grid {
  display: grid;
  gap: 20px;
}

/* --- Zastosowania: siatka w stylu produkt.html --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 18px;
  justify-content: center;
  padding: 0 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* Karty zastosowań — dopasowane do kart produktów */
.app-card {
  background: var(--color-bg-elevated);
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  text-align: center;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--color-shadow-strong);
}

/* Obrazki w kartach zastosowań — identyczne jak w produktach */
.app-image {
  width: 100%;
  max-width: 260px;
  height: 180px;
  margin: 0 auto;
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.app-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Bardzo ścisły, kompaktowy układ kart produktów */
.product-grid {
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 18px;
  justify-content: center;
  padding: 0 24px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* --- Cards --- */
.product-card,
.app-card {
  background: var(--color-bg-elevated);
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease, border-color 0.2s;
  border: 1px solid transparent;
}

.product-card:hover,
.app-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 15px 35px rgba(179, 0, 0, 0.12);
}

.card-header h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.card-header p.lead {
  margin: 0;
  font-size: 0.92rem;
  color: #444;
}

/* --- Image boxes --- */
.product-image,
.app-image {
  width: 100%;
  max-width: 260px;
  height: 180px;
  margin: 0 auto;
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.product-image img,
.app-image img,
.gallery-grid img.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

/* Overlay on image hover */
.product-image .overlay,
.app-image .overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(6px);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity var(--transition-med), transform var(--transition-med);
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Applications cards --- */
.app-card {
  text-align: center;
  align-items: center;
}

.app-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.app-text {
  font-size: 0.98rem;
  color: #444;
  line-height: 1.5;
}

.app-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-actions a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  transition: background var(--transition-med), transform 0.12s ease;
}

.app-actions a.primary {
  background: var(--color-primary);
}

.app-actions a:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.75);
}

.app-actions a.primary:hover {
  background: var(--color-primary-dark);
}

/* --- Features --- */
.features {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.features .feature {
  background: var(--color-bg-elevated);
  padding: 18px;
  border-radius: var(--radius-lg);
  width: 260px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* --- Forms --- */
.contact-form {
  background: var(--color-bg-elevated);
  padding: 20px;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  border: 1px solid #dcdcdc;
  font-size: 1rem;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--color-text);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  background: var(--color-primary);
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-med), transform 0.12s ease;
}

.contact-form button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 10px;
  border: 1px solid var(--color-border-soft);
  text-align: left;
}

table th {
  background: #f7f7f7;
}

/* --- Gallery / lightbox --- */
.thumb {
  cursor: pointer;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: var(--radius-lg);
}

/* --- CTA section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), #660000);
  color: #ffffff;
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  margin: 36px 16px;
}

.cta-section .cta-btn {
  display: inline-block;
  background: #ffffff;
  color: var(--color-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-med), color var(--transition-med), transform 0.12s ease;
}

.cta-section .cta-btn:hover {
  background: #ffeaea;
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* --- Small helpers --- */
.text-center {
  text-align: center;
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Footer --- */
footer {
  background: #000000;
  color: #ffffff;
  padding: 22px 16px;
  font-size: 0.85rem;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Page-specific wrappers --- */
.product-content {
  max-width: 900px;
  margin: 80px auto;
  padding: 40px 30px;
  text-align: justify;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.content-wrapper {
  max-width: 1100px;
  margin: 60px auto;
  background: var(--color-bg-elevated);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* --- Fade-in animation --- */
@keyframes fadeInUpSoft {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUpSoft 0.7s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.1s;
}

.fade-in.delay-2 {

}

.app-clickable {
  text-decoration: none;
  color: inherit;
  display: block;
}

.med-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.med-btn {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--color-shadow-soft);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.med-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--color-shadow-strong);
}

/* Baner kontakt — pełne dopasowanie obrazka bez przycinania */
body.kontakt .hero-rotator {
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* UNIWERSALNA RAMKA TEKSTOWA – szeroka jak w badania.html */
.text-box {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--color-shadow-soft);
  border: 1px solid var(--color-border-soft);
}

/* GALERIA – 3 miniatury w rzędzie, każda 150px */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gallery-grid img.thumb {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s ease;
}

.gallery-grid img.thumb:hover {
  transform: scale(1.05);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 150px);
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 150px);
  }
}

/* PRZYCISK WRÓĆ – PRZYPINANY DO LEWEGO DOLNEGO ROGU */
.back-floating {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow-soft);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  transition: 0.2s ease;
}

.back-floating:hover {
  background: var(--color-bg-hover);
  transform: translateX(-3px);
}

/* POPRAWKA — overlay działa gdy .app-image jest linkiem */
.app-image:hover .overlay {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  pointer-events: auto;
}

body.contact .content-wrapper {
  max-width: 550px;
  padding: 30px;
}

.product-image:hover .overlay {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  pointer-events: auto;
}

.features-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.features-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 25px 35px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  box-shadow: var(--color-shadow-soft);
  max-width: 1200px;
  width: 100%;
}

.feature-item {
  flex: 1;
  text-align: center;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.feature-item h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ULTRA WĄSKI PASEK Z 3 CECHAMI — pełny tekst, minimalna wysokość */
.features-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.features-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 10px 20px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  box-shadow: var(--color-shadow-soft);
  max-width: 1100px;
  width: 100%;
}

/* Każdy element */
.feature-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ikona mniejsza */
.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

/* Tytuł mniejszy */
.feature-item h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Opis mniejszy, ale widoczny */
.feature-item p {
  margin: 2px 0 0 0;
  font-size: 0.80rem;
  line-height: 1.2;
}

/* MOBILE NAVIGATION FIX */
@media (max-width: 820px) {

  /* Ukrywamy pełne menu */
  .menu ul {
    display: none;
    flex-direction: column;
    gap: 14px;
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 12px;
    position: absolute;
    top: 70px;
    right: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px); /* BLUR W MENU MOBILNYM */
    border: 1px solid rgba(179, 0, 0, 0.15);
  }

  /* Pokazujemy hamburger */
  .hamburger {
    display: flex;
  }

  /* Gdy aktywne — pokazujemy menu */
  .menu.open ul {
    display: flex;
  }

  /* Dostosowanie kolorów dla mobile */
  .top-nav.on-hero .menu ul {
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .top-nav.on-hero .menu a {
    color: #f0f0f0 !important;
  }
}

/* RESPONSYWNOŚĆ — poprawka dla produkt.html */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    padding: 0 12px;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 12px;
  }
}

/* RESPONSYWNOŚĆ — poprawka dla zastosowania.html */
@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    padding: 0 12px;
  }
}

@media (max-width: 600px) {
  .app-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 12px;
  }
}

/* ========================================= */
/* RESPONSYWNOŚĆ BANERA                     */
/* ========================================= */

@media (max-width: 992px) {
  .hero-rotator {
    height: 50vh;
    min-height: 300px;
  }
  body.home .hero-rotator {
    height: 55vh;
    min-height: 350px;
  }
  .hero-rotator h1 {
    font-size: 3rem;
  }
  .hero-rotator p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-rotator {
    height: 45vh;
    min-height: 280px;
  }
  body.home .hero-rotator {
    height: 50vh;
    min-height: 350px;
  }
  .hero-rotator h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  .hero-rotator p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-rotator {
    height: 40vh;
    min-height: 240px;
  }
  body.home .hero-rotator {
    height: 45vh;
    min-height: 280px;
  }
  .hero-rotator h1 {
    font-size: 2rem;
  }
  .hero-rotator p {
    font-size: 1rem;
  }
}