/* ============================================================
   AstroEnergy — Fotowoltaika dla domu
   ============================================================ */

.fotodom-hero {
  position: relative;
  overflow: hidden;
}

.fotodom-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/dlafomu-fotowoltaika.jpg') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

.fotodom-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 0;
}

.fotodom-hero .container {
  position: relative;
  z-index: 1;
}

/* --- Two column layout --- */
.fotodom-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.fotodom-col {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-600);
}

.fotodom-col p {
  margin-bottom: 1.5rem;
}

.fotodom-col p:last-child {
  margin-bottom: 0;
}

.fotodom-col strong {
  color: var(--gray-800);
  font-weight: 600;
}

.fotodom-highlight {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.75rem;
  margin: 0 0 1.5rem 0;
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.7;
}

/* --- Videos row --- */
.fotodom-videos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .fotodom-videos-row {
    grid-template-columns: 1fr;
  }
}

/* --- Video inline --- */
.fotodom-video {
  position: relative;
  margin: 10rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  margin: 1rem 0;
}

.fotodom-video__poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.fotodom-video:hover .fotodom-video__poster {
  transform: scale(1.03);
}

.fotodom-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 41, 106, 0.85);
  border-radius: 50%;
  transition: all 0.3s;
}

.fotodom-video:hover .fotodom-video__play {
  background: rgba(138, 61, 140, 0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

.fotodom-video__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* --- Why AstroEnergy --- */
.fotodom-why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.fotodom-why-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}

.fotodom-why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.fotodom-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: stretch;
}

.fotodom-why__card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fotodom-why__card:hover {
  border-color: rgba(104, 41, 106, 0.2);
  box-shadow: 0 4px 16px rgba(104, 41, 106, 0.08);
}

.fotodom-why__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}

.fotodom-why__icon svg {
  width: 20px;
  height: 20px;
}

.fotodom-why__title {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.375rem;
}

.fotodom-why__desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-500);
}

/* --- Steps --- */
.fotodom-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  counter-reset: step;
}

.fotodom-step {
  position: relative;
  padding: 2rem 1.5rem 2rem 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.fotodom-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  color: white;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.fotodom-step__title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.fotodom-step__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-500);
}

/* --- Features --- */
.fotodom-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.fotodom-feature {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.fotodom-feature:hover {
  border-color: rgba(104, 41, 106, 0.2);
  box-shadow: 0 4px 16px rgba(104, 41, 106, 0.08);
}

.fotodom-feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}

.fotodom-feature__title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.375rem;
}

.fotodom-feature__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-500);
}

/* --- Section headers --- */
.fotodom-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.fotodom-section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.fotodom-section-header p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Equipment Section --- */
.sprzet-cat {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-bg);
}

.sprzet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.sprzet-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.sprzet-card:hover {
  box-shadow: 0 4px 16px rgba(104, 41, 106, 0.08);
  transform: translateY(-3px);
}

.sprzet-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sprzet-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.sprzet-card__body {
  padding: 1.25rem;
}

.sprzet-card__title {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.375rem;
}

.sprzet-card__tags {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.sprzet-card__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-500);
}

/* --- Producenci carousel --- */
.producenci-carousel {
  overflow: hidden;
  position: relative;
}

.producenci-carousel::before,
.producenci-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.producenci-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.producenci-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.producenci-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: scrollLogos 60s linear infinite;
  width: max-content;
}

.producenci-track:hover {
  animation-play-state: paused;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.producenci-logo {
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem;
}

.producenci-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.75;
  transition: all var(--transition);
}

.producenci-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .fotodom-content,
  .fotodom-why-layout,
  .fotodom-steps {
    grid-template-columns: 1fr;
  }

  .fotodom-why-photo {
    position: static;
  }

  .fotodom-features {
    grid-template-columns: 1fr;
  }

  .sprzet-grid {
    grid-template-columns: 1fr;
  }
}
