/* =============================================================
   ProfiDental — Main Stylesheet
   Sections: Base | Typography | Components | Hero
   ============================================================= */

/* ─── Base reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

/*
 * .pd-container — wycentrowany wrapper contentu wewnątrz sekcji.
 * Tło i obrazy full-width zostają na sekcji — tu ograniczamy tylko treść.
 * Max-width = 1440px (projekt Figma), padding wewnętrzny = 64px / 20px mobile.
 */
.pd-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-desktop);
  padding-right: var(--container-padding-desktop);
}

@media (max-width: 767px) {
  .pd-container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Typography ──────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-accent-gold);
}

/* ─── Components: Button ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  padding: 14px var(--spacing-24);
  border-radius: var(--radius-m);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.18s ease, background 0.18s ease;
}

.btn--primary {
  background: var(--color-accent-gold);
  color: var(--color-primary-navy-dark);
  border-color: var(--color-accent-gold);
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--secondary-ondark {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.btn--secondary-ondark:hover {
  background: rgba(247, 244, 239, 0.08);
}

/* ─── Components: Button secondary (light bg) ────────────── */
.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-accent-gold);
}

.btn--secondary:hover {
  background: rgba(201, 162, 92, 0.08);
}

/* ─── Components: Chip ────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent-gold);
  background: rgba(201, 162, 92, 0.1);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-accent-gold);
  white-space: nowrap;
}

/* ─── Components: Trustbar ────────────────────────────────── */
.trustbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: center;
}

.trustbar__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-inverse);
  white-space: nowrap;
}

.trustbar__item img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Section: About — Desktop ───────────────────────────── */
.about {
  background: var(--color-surface-secondary);
  padding-top: var(--spacing-96);
  padding-bottom: var(--spacing-96);
}

/* .about__inner jest klasą .pd-container + flex layout */
.about__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-64);
}

.about__media {
  flex-shrink: 0;
  width: 624px;
  height: 416px;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__img-placeholder {
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    146deg,
    #1e3350 0px,
    #1e3350 25px,
    #0b1b2b 25px,
    #0b1b2b 50px
  );
}

.about__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  min-width: 0;
}

.about__text > .btn {
  align-self: flex-start;
}

.about__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-primary);
}

.about__body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-accent-gold-safe);
  text-transform: uppercase;
}

/* ─── Section: About — Mobile ─────────────────────────────── */
@media (max-width: 767px) {
  .about {
    padding-top: var(--spacing-64);
    padding-bottom: var(--spacing-64);
  }

  .about__inner {
    flex-direction: column;
    gap: var(--spacing-24);
    align-items: stretch;
  }

  .about__media {
    width: 100%;
    height: 233px;
  }

  .about__heading {
    font-size: 26px;
  }

  .about__body {
    font-size: 16px;
  }
}

/* ─── Components: Button outline-gold (dark bg, gold border, white text) ── */
.btn--outline-gold {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-accent-gold);
}

.btn--outline-gold:hover {
  background: rgba(201, 162, 92, 0.12);
}

/* ─── Section: BeforeAfter — Desktop ─────────────────────── */
.before-after {
  background: var(--color-primary-navy-dark);
  padding-top: 67px;
  padding-bottom: 67px;
}

.before-after__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-24);
  text-align: center;
}

.before-after__eyebrow {
  color: var(--color-accent-gold);
  width: 100%;
  text-align: left;
}

.before-after__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-inverse);
  width: 100%;
  text-align: left;
}

.before-after__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-inverse);
  width: 100%;
  text-align: left;
}

/* ─── BA Grid ─────────────────────────────────────────────── */
.ba-grid {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-24);
  width: 100%;
  align-items: stretch;
}

/* ─── BA Card base ────────────────────────────────────────── */
.ba-card {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ba-card {
  border: 2px solid var(--color-accent-gold);
}

/* ─── BA Card Slider ──────────────────────────────────────── */
.ba-card__slider {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: col-resize;
  user-select: none;
  height: 259px;
}

/* Placeholder on slider itself (no images) */
.ba-card__slider--placeholder {
  background-image: repeating-linear-gradient(
    153deg,
    #1e3350 0px, #1e3350 25px,
    #0b1b2b 25px, #0b1b2b 50px
  );
}

/* Placeholder as absolute child (inside slider with images missing) */
.ba-card__placeholder {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    153deg,
    #1e3350 0px, #1e3350 25px,
    #0b1b2b 25px, #0b1b2b 50px
  );
}

/* After image — fills entire slider */
.ba-card__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Before wrap — pełna szerokość, clip-path tnie prawą stronę */
.ba-card__before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--ba-split, 50%)) 0 0);
}

/* Before image — pełna wielkość jak after, clip kontroluje wrap */
.ba-card__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Handle line */
.ba-handle-line {
  position: absolute;
  left: var(--ba-split, 50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent-gold);
  transform: translateX(-50%);
}

/* Handle circle */
.ba-handle-circle {
  position: absolute;
  left: var(--ba-split, 50%);
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  flex-shrink: 0;
  cursor: col-resize;
  user-select: none;
}

.ba-handle-circle img {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

/* Tags Przed / Po */
.ba-tag {
  position: absolute;
  bottom: 12px;
  background: rgba(5, 16, 28, 0.72);
  border: 1px solid var(--color-accent-gold);
  border-radius: 4px;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}

.ba-tag--before { left: 12px; }
.ba-tag--after  { right: 12px; }

/* ─── BA Card Body ────────────────────────────────────────── */
.ba-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 20px;
}


.ba-card__eyebrow {
  color: var(--color-accent-gold-safe);
}

.ba-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.ba-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.ba-card__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: 6px;
}

.ba-card__link:hover {
  text-decoration: underline;
}

/* ─── Section: BeforeAfter — Mobile ──────────────────────── */
@media (max-width: 767px) {
  .before-after {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .before-after__heading {
    font-size: 26px;
  }

  .before-after__desc {
    font-size: 16px;
  }

  .ba-grid {
    flex-direction: column;
  }

}

/* ─── Section: Hero — Desktop ─────────────────────────────── */
.hero {
  position: relative;
  height: 672px;
  overflow: hidden;
  background: var(--color-primary-navy);
  display: flex;
  align-items: center;
}

/* Background image — desktop: specific crop/zoom offset from Figma */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dual gradient overlay matching Figma exactly */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg,
      rgba(5, 16, 28, 0.85) 0%,
      rgba(5, 16, 28, 0.40) 55%,
      rgba(5, 16, 28, 0.15) 100%),
    linear-gradient(180deg,
      rgba(5, 16, 28, 0.35) 0%,
      rgba(5, 16, 28, 0.55) 65%,
      rgba(5, 16, 28, 0.84) 100%);
}

/*
 * .hero__container — wycentrowany wrapper (pd-container pattern).
 * .hero__inner     — 560px blok tekstu wewnątrz kontenera.
 */
.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-desktop);
  padding-right: var(--container-padding-desktop);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  align-items: flex-start;
  max-width: 560px;
}

.hero__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--color-text-inverse);
}

.hero__description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-inverse);
}

.hero__cta {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-16);
  align-items: center;
}

/* ─── Section: Hero — Mobile ──────────────────────────────── */
@media (max-width: 767px) {
  .hero {
    min-height: 628px;
    height: auto;
    align-items: flex-start;
  }

  /* Kontener nie dokłada już własnego paddingu — robi to .hero__inner poniżej,
     żeby uniknąć podwójnego marginesu (64px desktop + 20px mobile). */
  .hero__container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile: full-width content, top-padded to clear the overlay header */
  .hero__inner {
    padding: 96px var(--container-padding-mobile) var(--spacing-64);
    width: 100%;
    max-width: 100%;
  }

  .hero__chip {
    white-space: normal;
    max-width: 100%;
  }

  .hero__heading {
    font-size: 30px;
    width: 100%;
  }

  .hero__description {
    font-size: 18px;
    width: 100%;
  }

  /* Buttons stack vertically, full width */
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  /* Trustbar: wrap to 2 rows (clock+star / pin) */
  .trustbar {
    flex-wrap: wrap;
    column-gap: 32px;
    row-gap: var(--spacing-8);
  }
}

/* ─── Section: Services ───────────────────────────────────── */
.services {
  background: var(--color-surface-secondary);
}

.services__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.services__inner > .btn {
  align-self: center;
}

.services__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-accent-gold-safe);
  margin: 0;
}

.services__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-primary);
  margin: 0;
}

.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.services__card {
  background: var(--color-primary-navy);
  border-radius: var(--radius-m);
  padding: 32px 24px;
  width: 410px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.services__card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.services__card-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.services__card-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-inverse);
  margin: 0;
}

.services__card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-inverse);
  margin: 0;
  flex: 1;
}

/* ─── Section: Services — Mobile ─────────────────────────── */
@media (max-width: 767px) {
  .services__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .services__heading {
    font-size: 26px;
  }

  .services__grid {
    flex-direction: column;
  }

  .services__card {
    width: 100%;
    min-height: auto;
  }
}

/* ─── Section: Why ────────────────────────────────────────── */
.why {
  background: var(--color-primary-navy-dark);
}

.why__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.why__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-accent-gold);
  margin: 0;
}

.why__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-inverse);
  margin: 0;
}

.why__grid {
  display: flex;
  gap: 24px;
  width: 100%;
}

.why__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why__card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.why__card-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.why__card-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  color: var(--color-text-inverse);
  margin: 0;
}

.why__card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-inverse);
  opacity: 0.75;
  margin: 0;
}

/* ─── Section: Why — Mobile ───────────────────────────────── */
@media (max-width: 767px) {
  .why__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .why__heading {
    font-size: 26px;
  }

  .why__grid {
    flex-direction: column;
  }
}

/* ─── Section: Reviews ────────────────────────────────────── */
.reviews {
  background: var(--color-surface-secondary);
}

.reviews__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.reviews__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-accent-gold-safe);
  margin: 0;
}

.reviews__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-primary);
  margin: 0;
}

.reviews__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.reviews__summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviews__summary-score {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-primary);
  margin: 0;
  white-space: nowrap;
}

.reviews__summary-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews__summary-count {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0;
}

.reviews__stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.reviews__stars img {
  display: block;
  flex-shrink: 0;
}

.reviews__track {
  display: flex;
  gap: 24px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.reviews__card {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 24px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-snap-align: start;
  max-height: 260px;
  overflow: hidden;
  position: relative;
}

.reviews__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.reviews__card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews__card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-navy);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews__card-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviews__card-initials {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--color-accent-gold-safe);
}

.reviews__card-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.reviews__card-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews__card-date {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  margin: 0;
}

.reviews__card-source {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-accent-gold);
  margin: 0;
  flex-shrink: 0;
}

.reviews__verified {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.reviews__card-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.reviews__empty {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  font-style: italic;
}

.reviews__inner > .btn {
  align-self: center;
}

/* ─── Section: Reviews — Mobile ───────────────────────────── */
@media (max-width: 767px) {
  .reviews__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .reviews__heading {
    font-size: 26px;
  }

  .reviews__subtitle {
    font-size: 16px;
  }

  .reviews__card {
    min-width: calc(100vw - 40px - 48px);
  }
}

/* ─── Section: Guide (Blog) ───────────────────────────────── */
.guide {
  background: var(--color-bg);
  padding-top: var(--spacing-96);
  padding-bottom: var(--spacing-96);
}

.guide__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.guide__eyebrow {
  margin: 0;
}

.guide__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-primary);
  margin: 0;
}

.guide__grid {
  display: flex;
  gap: 32px;
  width: 100%;
}

.guide__card {
  background: #fff;
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  min-width: 0;
}

.guide__card-image-wrap {
  display: block;
  height: 225px;
  flex-shrink: 0;
  overflow: hidden;
}

.guide__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide__card-image-placeholder {
  width: 100%;
  height: 100%;
}

.guide__card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  flex: 1;
}

.guide__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.guide__card-reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.guide__card-reading-time img {
  display: block;
  flex-shrink: 0;
}

.guide__card-date {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.guide__card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin: 0;
}

.guide__card-title a {
  color: inherit;
  text-decoration: none;
}

.guide__card-title a:hover {
  color: var(--color-accent-gold);
}

.guide__card-excerpt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.guide__card-more {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-accent-gold-safe);
  text-decoration: none;
  white-space: nowrap;
  margin-top: auto;
}

.guide__inner > .btn {
  align-self: center;
}

/* ─── Section: Guide (Blog) — Mobile ─────────────────────── */
@media (max-width: 767px) {
  .guide {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .guide__heading {
    font-size: 26px;
  }

  .guide__grid {
    flex-direction: column;
    gap: 24px;
  }

  .guide__card {
    flex: none;
    width: 100%;
  }
}

/* ─── Section: FAQ — Desktop ──────────────────────────────── */
.faq {
  background: var(--color-primary-navy-dark);
  padding-top: var(--spacing-96);
  padding-bottom: var(--spacing-96);
}

.faq__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-64);
}

.faq__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-16);
  width: 360px;
  flex-shrink: 0;
}

.faq__eyebrow {
  color: var(--color-accent-gold);
  margin: 0;
}

.faq__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-inverse);
  margin: 0;
}

.faq__description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-inverse);
  margin: 0;
}

.faq__accordion {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.faq-item {
  width: 100%;
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  width: 100%;
  padding: var(--spacing-24) 0;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-item__question {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-inverse);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.faq-item__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.faq-item.is-open .faq-item__panel {
  opacity: 1;
}

.faq-item__answer {
  margin: 0;
  padding-bottom: var(--spacing-24);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-inverse);
  opacity: 0.75;
}

/* ─── Section: FAQ — Mobile ───────────────────────────────── */
@media (max-width: 767px) {
  .faq {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .faq__inner {
    flex-direction: column;
    gap: var(--spacing-32);
  }

  .faq__intro {
    width: 100%;
  }

  .faq__heading {
    font-size: 26px;
  }

  .faq__accordion {
    width: 100%;
  }
}

/* ─── Section: Contact — Desktop ──────────────────────────── */
.contact {
  background: var(--color-surface-secondary);
  padding-top: var(--spacing-96);
  padding-bottom: var(--spacing-96);
}

.contact__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-64);
}

.contact__info {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-16);
}

.contact__eyebrow {
  color: var(--color-accent-gold-safe);
  margin: 0;
}

.contact__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--color-text-primary);
  margin: 0;
}

.contact__description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  width: 100%;
}

.contact__details p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.contact__map {
  flex: 1 0 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-16);
}

.contact__map-frame,
.contact__map-placeholder {
  width: 100%;
  height: 300px;
  border: 1px solid #e1dacd;
  border-radius: var(--radius-l);
}

.contact__map-placeholder {
  background: repeating-linear-gradient(
    -35deg,
    #ffffff 0,
    #ffffff 40px,
    var(--color-bg) 40px,
    var(--color-bg) 80px
  );
}

/* ─── Section: Contact — Mobile ───────────────────────────── */
@media (max-width: 767px) {
  .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .contact__inner {
    flex-direction: column;
    gap: var(--spacing-48, 48px);
  }

  .contact__heading {
    font-size: 26px;
  }

  .contact__description {
    font-size: 16px;
  }

  .contact__map-frame,
  .contact__map-placeholder {
    height: 263px;
  }
}

/* ─── Site Header — Desktop ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary-navy-dark);
}

/* Tylko strona główna: header pływa przezroczyście nad Hero, aż do przewinięcia */
.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header--overlay.is-scrolled {
  background: var(--color-primary-navy-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Otwarte menu mobilne: pasek zawsze kryjący, niezależnie od scrolla */
.site-header--overlay.menu-open {
  background: var(--color-primary-navy-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-24);
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
}

.site-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-32);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--color-text-inverse);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav a:hover {
  opacity: 0.8;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--spacing-24);
}

.site-header__phone {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--color-text-inverse);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.site-header__burger-line {
  position: relative;
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text-inverse);
}

.site-header__burger-line::before,
.site-header__burger-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--color-text-inverse);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__burger-line::before {
  top: -7px;
}

.site-header__burger-line::after {
  top: 7px;
}

.site-header__mobile-nav {
  display: none;
}

/* ─── Site Header — Mobile ────────────────────────────────── */
@media (max-width: 767px) {
  .site-header__inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header__logo img {
    height: 28px;
  }

  .site-header__nav,
  .site-header__right {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }

  .site-header__mobile-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-24);
    padding: 24px 20px 32px;
    background: var(--color-primary-navy-dark);
    border-top: 1px solid rgba(247, 244, 239, 0.12);
  }

  .site-header__mobile-nav.is-open {
    display: flex;
    min-height: 100vh;
    overflow-y: auto;
  }

  .site-header__mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-16);
    width: 100%;
  }

  .site-header__mobile-nav-list a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--color-text-inverse);
    text-decoration: none;
  }

  .site-header__mobile-nav .btn {
    width: 100%;
  }

  .site-header__burger.is-open .site-header__burger-line {
    background: transparent;
  }

  .site-header__burger.is-open .site-header__burger-line::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header__burger.is-open .site-header__burger-line::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ─── Site Footer — Desktop ───────────────────────────────── */
.site-footer {
  background: var(--color-primary-navy-dark);
}

.site-footer__inner {
  padding-top: var(--spacing-64);
  padding-bottom: var(--spacing-32);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-48);
}

.site-footer__grid {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-48);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 340px;
  flex-shrink: 0;
}

.site-footer__logo img {
  display: block;
  height: 40px;
  width: auto;
}

.site-footer__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-inverse);
  margin: 0;
}

.site-footer__social {
  display: flex;
  gap: 16px;
}

.site-footer__social-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 239, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.site-footer__social-btn:hover {
  background: rgba(247, 244, 239, 0.08);
  border-color: rgba(247, 244, 239, 0.4);
}

.site-footer__social-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 200px;
  flex-shrink: 0;
}

.site-footer__col:nth-child(3) {
  width: 260px;
}

.site-footer__col-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin: 0;
}

.site-footer__nav-list,
.site-footer__col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__nav-list a,
.site-footer__col-list p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-inverse);
  text-decoration: none;
  margin: 0;
  white-space: nowrap;
}

.site-footer__nav-list a:hover {
  opacity: 0.8;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-inverse);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  gap: 24px;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: none;
}

.site-footer__legal a:hover {
  text-decoration: underline;
}

/* ─── Site Footer — Mobile ────────────────────────────────── */
@media (max-width: 767px) {
  .site-footer__inner {
    padding-top: 64px;
    padding-bottom: 32px;
    gap: var(--spacing-32);
  }

  .site-footer__grid {
    flex-direction: column;
    gap: var(--spacing-32);
  }

  .site-footer__brand,
  .site-footer__col,
  .site-footer__col:nth-child(3) {
    width: 100%;
  }
}
