/* Advertising — podstrona_advertising (sekcja_1–3.png) */

.adv-page {
  --adv-gold: #d4a356;
  --adv-gold-deep: #b8923d;
  --adv-cream: #faf7f2;
  --adv-cream-2: #f9f6f0;
  --adv-ink: #14120f;
  --adv-ink-soft: #4a4540;
  --adv-rule: rgba(0, 0, 0, 0.08);
  --adv-max: var(--site-content-max);
  --adv-card-own: #a32a26;
  --adv-card-share: #2d6a4f;
  --adv-card-be: #1552a1;
  --adv-card-with: #6f4e27;
  --adv-share-box: rgba(15, 60, 42, 0.55);
  background: transparent;
  color: var(--adv-ink);
}

/* —— Sekcja 1: Advertising hub + map —— */
.adv-m1 {
  background: var(--surface-cream-a);
}

.adv-m1__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.adv-m1__copy {
  max-width: 34rem;
}

.adv-m1__title {
  margin: 0 0 0;
  font-family: var(--hero-h1-font-family);
  font-size: var(--hero-h1-font-size);
  font-weight: var(--hero-h1-font-weight);
  line-height: var(--hero-h1-line-height);
  letter-spacing: var(--hero-h1-letter-spacing);
  color: var(--adv-ink);
}

.adv-m1__body {
  margin: 0;
  font-family: var(--type-body-font-family);
  font-size: var(--type-body-font-size);
  line-height: var(--type-body-line-height);
  font-weight: var(--type-body-font-weight);
  color: var(--adv-ink-soft);
}

.adv-m1__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 28px;
}

.adv-m1__map {
  position: relative;
  min-height: clamp(260px, 36vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-m1__map-svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

/* —— Sekcja 2: OSBW framework cards —— */
.adv-m2 {
  background: var(--surface-cream-c);
}

.adv-m2__head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto clamp(36px, 5vw, 52px);
}

.adv-m2__title {
  margin: 0 0 0;
  font-family: var(--type-h2-font-family);
  font-size: var(--type-h2-font-size);
  font-weight: var(--type-h2-font-weight);
  line-height: var(--type-h2-line-height);
  letter-spacing: var(--type-h2-letter-spacing);
  color: var(--adv-ink);
}

.adv-m2__lead {
  margin: 0;
  font-family: var(--type-body-font-family);
  font-size: var(--type-body-font-size);
  line-height: var(--type-body-line-height);
  font-weight: var(--type-body-font-weight);
  color: var(--adv-ink-soft);
}

.adv-m2__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}

.adv-m2__court {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(8px, 1.2vw, 14px);
  text-align: center;
}

.adv-m2__court-hair {
  width: min(200px, 46vw);
  height: var(--ui-gold-hairline-h);
  margin: 0 auto clamp(14px, 2vw, 20px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ui-gold-hairline-soft) 22%,
    var(--ui-gold-hairline-bg) 50%,
    var(--ui-gold-hairline-soft) 78%,
    transparent 100%
  );
  border-radius: 999px;
  opacity: 0.95;
}

.adv-m2__court-text {
  margin: 0 auto;
  max-width: min(52rem, 100%);
  font-family: var(--type-body-font-family);
  font-size: var(--type-body-sm-font-size);
  line-height: calc(var(--type-body-sm-line-height) * 1.08);
  font-weight: var(--type-body-font-weight);
  letter-spacing: 0.01em;
  color: var(--adv-ink-soft);
}

.adv-m2__card {
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(22px, 2.6vw, 30px) clamp(18px, 2.2vw, 24px);
  color: #faf9f6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 14px 40px rgba(20, 14, 6, 0.14);
}

.adv-m2__card-head {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 14px);
  margin-bottom: clamp(10px, 1.2vw, 14px);
  min-width: 0;
}

.adv-m2__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.adv-m2__card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.adv-m2__card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.adv-m2__card-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--type-h3-font-family);
  font-size: var(--type-h3-font-size);
  font-weight: var(--type-h3-font-weight);
  line-height: var(--type-h3-line-height);
  letter-spacing: var(--type-h3-letter-spacing);
}

.adv-m2__card-kicker {
  margin: 0 0 12px;
  font-family: var(--type-h5-font-family);
  font-size: var(--type-caption-font-size);
  font-weight: var(--type-h5-font-weight);
  line-height: var(--type-caption-line-height);
  letter-spacing: var(--type-h5-letter-spacing);
  text-transform: var(--type-h5-text-transform);
  color: rgba(255, 255, 255, 0.88);
}

.adv-m2__card-desc {
  margin: 0 0 14px;
  font-family: var(--type-body-font-family);
  font-size: var(--type-body-sm-font-size);
  line-height: var(--type-body-sm-line-height);
  font-weight: var(--type-body-font-weight);
  color: rgba(255, 250, 244, 0.95);
}

.adv-m2__card-rule {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 1px;
  margin-top: auto;
  margin-right: 0;
  margin-bottom: 14px;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  flex-shrink: 0;
}

.adv-m2__examples {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding-bottom: 0;
  font-family: var(--type-body-font-family);
  font-size: var(--type-caption-font-size);
  line-height: var(--type-caption-line-height);
  font-weight: var(--type-body-font-weight);
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.adv-m2__examples svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  opacity: 0.95;
}

.adv-m2__featured {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: var(--adv-share-box);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 12px;
  align-items: center;
  min-height: 86px;
  box-sizing: border-box;
}

.adv-m2__featured-img {
  grid-row: 1 / span 2;
  width: 56px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.adv-m2__featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adv-m2__featured-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.adv-m2__featured-label {
  margin: 0;
  font-family: var(--type-h5-font-family);
  font-size: var(--type-caption-font-size);
  font-weight: var(--type-h5-font-weight);
  letter-spacing: var(--type-h5-letter-spacing);
  text-transform: var(--type-h5-text-transform);
  color: rgba(255, 255, 255, 0.75);
}

.adv-m2__featured-title {
  margin: 0;
  font-family: var(--type-h5-font-family);
  font-size: var(--type-caption-font-size);
  font-weight: 600;
  line-height: var(--type-caption-line-height);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.adv-m2__featured--placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.1);
}

.adv-m2__featured--placeholder .adv-m2__featured-img {
  background: rgba(255, 255, 255, 0.1);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.28);
}

.adv-m2__featured--placeholder .adv-m2__featured-label,
.adv-m2__featured--placeholder .adv-m2__featured-title {
  color: transparent;
  user-select: none;
}

.adv-m2__card--own {
  background: var(--adv-card-own);
}

.adv-m2__card--share {
  background: var(--adv-card-share);
}

.adv-m2__card--be {
  background: var(--adv-card-be);
}

.adv-m2__card--with {
  background: var(--adv-card-with);
}

/* —— Sekcja 3: Inquire / register —— */
.adv-m3 {
  background: var(--surface-cream-d);
}

.adv-m3__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) 1px minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.adv-m3__rail {
  background: var(--adv-rule);
  min-height: 120px;
  align-self: stretch;
}

.adv-m3__aside {
  max-width: 26rem;
}

.adv-m3__title {
  margin: 0 0 0;
  font-family: var(--type-h2-font-family);
  font-size: var(--type-h2-font-size);
  font-weight: var(--type-h2-font-weight);
  line-height: var(--type-h2-line-height);
  letter-spacing: var(--type-h2-letter-spacing);
  color: var(--adv-ink);
}

.adv-m3__body {
  margin: 0 0 clamp(22px, 3vh, 32px);
  font-family: var(--type-body-font-family);
  font-size: var(--type-body-font-size);
  line-height: var(--type-body-line-height);
  font-weight: var(--type-body-font-weight);
  color: var(--adv-ink-soft);
}

.adv-m3__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adv-m3__bullet {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.adv-m3__bullet-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-m3__bullet-icon svg {
  width: 18px;
  height: 18px;
}

.adv-m3__bullet p {
  margin: 0;
  font-family: var(--type-body-font-family);
  font-size: var(--type-body-font-size);
  font-style: normal;
  font-weight: var(--type-body-font-weight);
  line-height: var(--type-body-line-height);
  color: var(--adv-ink-soft);
}

.adv-m3__form-wrap {
  min-width: 0;
}

.adv-m3__form {
  width: 100%;
}

.adv-m3__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.adv-m3__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adv-m3__field--full {
  grid-column: 1 / -1;
}

.adv-m3__field label {
  font-family: var(--type-h5-font-family);
  font-size: var(--type-h5-font-size);
  font-weight: var(--type-h5-font-weight);
  line-height: var(--type-h5-line-height);
  letter-spacing: var(--type-h5-letter-spacing);
  text-transform: var(--type-h5-text-transform);
  color: var(--adv-ink);
}

.adv-m3__field .req {
  color: var(--adv-gold-deep);
}

.adv-m3__input,
.adv-m3__select,
.adv-m3__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(60, 50, 40, 0.2);
  border-radius: var(--radius-4, 6px);
  font-family: var(--type-body-font-family);
  font-size: var(--type-body-sm-font-size);
  line-height: var(--type-body-sm-line-height);
  background: #fff;
  color: var(--adv-ink);
}

.adv-m3__input::placeholder,
.adv-m3__textarea::placeholder {
  color: #9a948c;
}

.adv-m3__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.adv-m3__textarea {
  min-height: 120px;
  resize: vertical;
}

.adv-m3__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 22px;
}

@media (max-width: 1080px) {
  .adv-m2__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .adv-m1__grid {
    grid-template-columns: 1fr;
  }

  .adv-m1__map {
    order: -1;
    min-height: 220px;
    max-width: 520px;
    margin: 0 auto;
  }

  .adv-m3__grid {
    grid-template-columns: 1fr;
  }

  .adv-m3__rail {
    width: 100%;
    height: 1px;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .adv-m1 {
    --page-section-pad-top: 50px;
  }

  .adv-m2__cards {
    grid-template-columns: 1fr;
  }

  .adv-m3__fields {
    grid-template-columns: 1fr;
  }

  .adv-m1__actions,
  .adv-m3__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .adv-m1__actions .adv-btn,
  .adv-m3__actions .adv-btn {
    width: 100%;
    justify-content: center;
  }
}
