/* ==========================================================================
   Atlantyda – strona główna
   ========================================================================== */

/* ---------- Hero (wariant „split”) ---------- */
.home-hero {
  padding-top: clamp(40px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.home-hero__copy { display: flex; flex-direction: column; gap: 28px; }
.home-hero h1 { text-wrap: balance; }
.home-hero__lead { max-width: 560px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero__media { position: relative; aspect-ratio: 5 / 4; min-height: 360px; }

/* ---------- Pasek zaufania ---------- */
.trust { padding-top: 56px; }
.trust__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__item { display: flex; gap: 12px; align-items: center; font: 700 15px var(--font); color: var(--ink); }
@media (max-width: 1000px) { .trust__row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust__row { grid-template-columns: 1fr; } }

/* ---------- Oferta ---------- */
.offer { scroll-margin-top: 80px; }
.offer .section-head__text { max-width: 640px; }
.offer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .offer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .offer__grid { grid-template-columns: 1fr; } }
.offer-card { display: flex; flex-direction: column; gap: 18px; color: var(--text); }
.offer-card:hover { color: var(--text); }
.offer-card__media { position: relative; aspect-ratio: 4 / 3; }
.offer-card__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.offer-card__title h3 { font: 700 22px/1.2 var(--font); color: var(--ink); }
.offer-card p { font: 400 15px/1.6 var(--font); }

/* ---------- Zalety ---------- */
.benefits {
  padding: clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }
.benefit { display: flex; flex-direction: column; gap: 16px; }
.benefit h3 { font: 700 21px var(--font); color: var(--ink); }
.benefit p { font: 400 16px/1.6 var(--font); }

/* ---------- Karuzela realizacji ---------- */
.carousel { padding-top: var(--section); scroll-margin-top: 80px; overflow: hidden; }
.carousel__head { margin-bottom: 40px; }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
  scroll-padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track .real { flex: 0 0 min(440px, 82vw); scroll-snap-align: start; }
.carousel__more {
  flex: 0 0 min(440px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 32px;
  color: var(--white);
}
.carousel__more:hover { color: var(--white); filter: brightness(1.08); }
.carousel__more h3 { font: 700 28px/1.2 var(--font); }
.carousel__more span { display: flex; align-items: center; gap: 8px; font: 700 15px var(--font); }

/* ---------- Wiarygodność ---------- */
.cred__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .cred__top { grid-template-columns: 1fr; } }
.cred__copy { display: flex; flex-direction: column; gap: 16px; }
.cred__copy p { font: 400 17px/1.65 var(--font); text-wrap: pretty; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stat__v { font: 700 clamp(32px, 3vw, 44px)/1 var(--font); letter-spacing: -.02em; color: var(--accent); }
.stat__l { font: 400 15px/1.4 var(--font); }
.certs { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .certs { grid-template-columns: 1fr; } }
.cert { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cert__logo { position: relative; flex: 0 0 88px; height: 64px; }
.cert__text { display: flex; flex-direction: column; gap: 4px; }
.cert__text strong { font: 700 15px var(--font); color: var(--ink); }
.cert__text span { font: 400 13px/1.45 var(--font); }

/* ---------- SEO ---------- */
.seo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 96px);
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.seo__grid h2 { text-wrap: balance; }
.seo__body { display: flex; flex-direction: column; gap: 20px; font: 400 16px/1.75 var(--font); }
.seo__body p { text-wrap: pretty; }
.seo__body h3 { margin-top: 8px; font: 700 19px var(--font); color: var(--ink); }
.seo__more { display: contents; }
.seo__toggle { align-self: flex-start; }
.seo__toggle svg { transition: transform .2s; }
.seo__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
