/* Reset + zmienne (spójne z resztą projektu) */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg: #f7f7f8;         /* jasne tło strony */
  --surface: #ffffff;    /* karty, sekcje */
  --text: #1f2328;       /* główny tekst */
  --muted: #6b7280;      /* opis/sekundarny */
  --accent: #f58220;     /* pomarańcz */
  --line: #e6e7ea;       /* obramowania */
  --shadow: 0 8px 24px rgba(16,24,40,.08);
  --radius: 12px;
  --transition: .25s ease;
}

.services-alt {
  position: relative;
  background-color: #f7f7f8 !important; /* jasna baza */
  padding: clamp(32px, 6vw, 64px) 20px;
  border-top: 1px solid #e6e7ea;
  overflow: hidden;
}

/* ANIMOWANE LINIE W TLE */
.services-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(0deg, rgba(245,130,32,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,130,32,0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: moveGrid 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* DELIKATNE KÓŁKA W RUCHU */
.services-alt::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, rgba(245,130,32,0.06) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(245,130,32,0.06) 0%, transparent 40%);
  animation: floatCircles 25s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* ANIMACJA RUCHU SIATKI */
@keyframes moveGrid {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 80px 80px, 80px 80px; }
}

/* ANIMACJA PŁYNNYCH PLAM */
@keyframes floatCircles {
  from { transform: translate(-10%, -10%) scale(1); }
  to   { transform: translate(10%, 10%) scale(1.1); }
}

.services-alt__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.services-alt__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Tytuł sekcji */
.section-title{
  font-size: clamp(22px, 3.4vw, 32px);
  margin-bottom: 40px;
  text-align: center;
  color: var(--text);
  font-weight: 800;
}

/* ===== POJEDYNCZA USŁUGA ===== */
.service-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3.2vw, 28px);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-row:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16,24,40,.12);
}

/* Wariant odwrócony */
.service-row--reverse{
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.service-row--reverse .service-row__content{
  direction: ltr;
}

/* Media */
.service-row__media,
.service-row__img{
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(16,24,40,.08);
}
.service-row__media video,
.service-row__img img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

/* Tekst */
.service-row__content h3{
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
}
.service-row__content p{
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* Przyciski w usługach */
.service-row__content .btn{
  margin-top: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 12px 24px;
  transition: background var(--transition), box-shadow var(--transition);
}
.service-row__content .btn:hover{
  background: #ff983a;
  box-shadow: 0 8px 20px rgba(245,130,32,.25);
}

/* ===== Responsywność ===== */
@media (max-width: 980px){
  .service-row,
  .service-row--reverse{
    grid-template-columns: 1fr;
    direction: ltr;
  }
}
@media (max-width: 640px){
  .section-title{ margin-bottom: 28px; }
  .service-row{ gap: 20px; margin-bottom: 36px; }
}

/* Animacje wejścia */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.service-row__media,
.service-row__content {
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.service-row__media.is-in,
.service-row__content.is-in {
  opacity: 1; transform: translateY(0);
}
.service-row__media.is-in.left { animation: fadeInLeft .8s ease forwards; }
.service-row__media.is-in.right{ animation: fadeInRight .8s ease forwards; }
.service-row__content.is-in    { animation: fadeInUp .8s ease forwards; }
