:root {
  --ob-pink: #ff1782;
  --ob-pink-soft: #fff6fa;
  --ob-line: #c4c4c4;
  --ob-line-hover: #9a9a9a;
  --ob-muted: #767676;
  --ob-ink: #1d1d1f;
  --ob-radius: 10px;
}

/* Form: section labels and AI prices */

.form-row__ai-note {
  font-weight: 300;
  color: var(--ob-pink);
}

/* Form: add-ons and hours unlock once a machine is chosen (form.js syncLockedRows) */

.form-row[data-unlocks-with-machine] > * {
  transition: opacity 0.2s ease;
}
.form-row.is-locked > :not(h4) {
  opacity: 0.35;
}
.form-row__lock-hint {
  display: none;
  margin-left: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ob-muted);
}
.form-row.is-locked .form-row__lock-hint {
  display: inline;
}
@media (prefers-reduced-motion: reduce) {
  .form-row[data-unlocks-with-machine] > * {
    transition: none;
  }
}

.radio-input-price.is-ai {
  font-weight: 600;
  color: var(--ob-pink);
}

/* Form: add-on cards */

.addon-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.addon-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
  padding: 0 16px 16px;
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius);
  background: #ffffff;
  color: var(--ob-ink);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  isolation: isolate;
}
.addon-card:hover {
  border-color: var(--ob-line-hover);
}
.addon-card:has(.addon-card__input:checked) {
  border-color: var(--ob-pink);
  box-shadow: 0 0 0 0.5px var(--ob-pink);
  background: var(--ob-pink-soft);
}
.addon-card:has(.addon-card__input:focus-visible) {
  outline: 2px solid var(--ob-pink);
  outline-offset: 2px;
}
.addon-card--no-media {
  padding-top: 16px;
}

.addon-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  cursor: pointer;
}
/* Stretch the label behind the card's content so clicks on the card padding toggle the checkbox too. */
.addon-card__body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.addon-card__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

/* Same round indicator as the radio tiles (style.css .radio-input-content::before), but still a checkbox. */
.addon-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ob-line);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.addon-card__input:checked ~ .addon-card__check {
  border-color: var(--ob-pink);
  background: var(--ob-pink);
  box-shadow: inset 0 0 0 3.5px #ffffff, 0 1px 4px rgba(0, 0, 0, 0.3);
}
.addon-card--no-media .addon-card__check {
  box-shadow: none;
}
.addon-card--no-media .addon-card__input:checked ~ .addon-card__check {
  box-shadow: inset 0 0 0 3.5px #ffffff;
}

.addon-card__media {
  position: relative;
  display: block;
  align-self: stretch;
  height: 150px;
  margin: 0 -16px 14px;
  overflow: hidden;
  background: #eeeeee;
}
.addon-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 22%;
}
/* Split before/after picture, shared by the add-on card (static) and .ob-compare (slider). */
.addon-card__after,
.ob-compare__after {
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.addon-card__divider,
.ob-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: #ffffff;
}
.ob-compare__knob {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: var(--ob-pink);
}
.ob-compare__tag {
  position: absolute;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}
.ob-compare__tag--before {
  left: 8px;
}
.ob-compare__tag--after {
  right: 8px;
  background: var(--ob-pink);
}

.addon-card__title {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.addon-card--no-media .addon-card__title {
  padding-right: 28px;
}
.addon-card__desc {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ob-muted);
}
.addon-card__more {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ob-pink);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1190px) {
  .addon-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Bottom drawer (template-parts/drawer.php, assets/js/drawer.js) */

body.ob-drawer-lock,
html:has(> body.ob-drawer-lock) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

/* Above the GDPR cookie bar (z-index 9900), so the drawer's buttons stay clickable before consent. */
.ob-drawer {
  --ob-drawer-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: fixed;
  inset: 0;
  z-index: 10000;
  color: var(--ob-ink);
}
.ob-drawer[hidden] {
  display: none;
}
.ob-drawer:not(.is-open) {
  pointer-events: none;
}

.ob-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 31, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.ob-drawer.is-open .ob-drawer__backdrop {
  opacity: 1;
}

.ob-drawer__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  height: 80vh;
  height: 80dvh;
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  background: #ffffff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s var(--ob-drawer-ease);
}
.ob-drawer__panel:focus {
  outline: none;
}
.ob-drawer.is-open .ob-drawer__panel {
  transform: translateY(0);
}
.ob-drawer.is-dragging .ob-drawer__panel {
  transition: none;
}

[data-drawer-drag] {
  touch-action: none;
}

.ob-drawer__grab {
  flex: none;
  padding: 10px 0 0;
  cursor: grab;
}
.ob-drawer__grab::before {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  margin: 0 auto;
  border-radius: 5px;
  background: var(--ob-line);
}

.ob-drawer__head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px 12px;
}
.ob-drawer__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.ob-drawer__intro {
  max-width: 620px;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ob-muted);
}
.ob-drawer__close {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  font-family: inherit;
  font-size: 16px;
  line-height: 34px;
  color: var(--ob-ink);
  cursor: pointer;
}
.ob-drawer__close:hover {
  background: #e8e8e8;
}
.ob-drawer__close:focus-visible,
.ob-drawer__add:focus-visible,
.ob-drawer__cta:focus-visible,
.ob-drawer__more a:focus-visible {
  outline: 2px solid var(--ob-pink);
  outline-offset: 2px;
}

.ob-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 28px 16px;
}

.ob-drawer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ob-drawer__grid--photos {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.ob-drawer__figure {
  margin: 0;
}
.ob-drawer__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 576 / 704;
  object-fit: cover;
  border-radius: var(--ob-radius);
  background: #eeeeee;
}
.ob-drawer__grid--photos .ob-drawer__figure img {
  aspect-ratio: 4 / 3;
}
.ob-drawer__figure figcaption {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.ob-drawer__foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eeeeee;
}
.ob-drawer__more {
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ob-muted);
}
.ob-drawer__more a {
  color: var(--ob-pink);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.ob-drawer__add,
.ob-drawer__cta {
  flex: none;
  padding: 11px 22px;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .ob-drawer__head {
    padding: 12px 16px 10px;
  }
  .ob-drawer__title {
    font-size: 18px;
  }
  .ob-drawer__body {
    padding: 4px 16px 16px;
  }
  .ob-drawer__grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
  }
  .ob-drawer__grid--photos {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .ob-drawer__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ob-drawer__backdrop,
  .ob-drawer__panel {
    transition: none;
  }
}

/* Before/after slider (template-parts/compare.php, assets/js/compare.js) */

.ob-compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 576 / 704;
  overflow: hidden;
  border-radius: var(--ob-radius);
  background: #eeeeee;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ob-compare:has(.ob-compare__range:focus-visible) {
  outline: 2px solid var(--ob-pink);
  outline-offset: 3px;
}
.ob-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 22%;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}
.ob-compare.is-loading .ob-compare__img {
  opacity: 0;
}
.ob-compare__knob {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  font-size: 16px;
}
.ob-compare__tag {
  bottom: 12px;
  font-size: 11px;
}
.ob-compare__tag--before {
  left: 12px;
}
.ob-compare__tag--after {
  right: 12px;
}
/* Invisible but focusable: keyboard and screen readers use the range, pointers are handled in compare.js. */
.ob-compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ob-compare__img {
    transition: none;
  }
}

/* Fotobudka AI page (page-fotobudka-ai.php) */

.ai-page {
  color: var(--ob-ink);
}
.ai-page a:not(.btn):not(.btn-outline):not(.btn-second) {
  color: var(--ob-pink);
  text-decoration: underline;
}

.ai-section {
  padding-top: 96px;
}
.ai-section__title {
  font-size: 34px;
  font-weight: 600;
  line-height: 41px;
  text-align: center;
}
.ai-section__lead {
  max-width: 680px;
  margin: 12px auto 40px;
  font-size: 17px;
  font-weight: 300;
  line-height: 28px;
  text-align: center;
}

.ai-hero {
  margin-top: 75px;
  padding: 64px 0 24px;
  background: url("../img/kropki_sekcja_1.svg") no-repeat center / cover;
}
.ai-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 64px;
  align-items: center;
}
.ai-hero__badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: 90px;
  background: var(--ob-pink);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}
.ai-hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 54px;
}
.ai-hero__kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 300;
  line-height: 36px;
}
.ai-hero__lead {
  max-width: 560px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 30px;
}
.ai-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 44px;
  margin-top: 36px;
}
.ai-hero__media {
  min-width: 0;
  margin: 0;
}

/* Style picker above the hero slider (compare.js: [data-compare-style]) */
.ai-style-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}
.ai-style-picker__track {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 2px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.ai-style-picker__track::-webkit-scrollbar {
  display: none;
}
.ai-style-picker__track li {
  flex: none;
  margin: 0;
  scroll-snap-align: start;
}
.ai-style-picker__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--ob-line);
  border-radius: 90px;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ob-ink);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.ai-style-picker__chip:hover {
  border-color: var(--ob-line-hover);
}
.ai-style-picker__chip[aria-pressed="true"] {
  border-color: var(--ob-pink);
  box-shadow: 0 0 0 0.5px var(--ob-pink);
  background: var(--ob-pink-soft);
}
.ai-style-picker__chip:focus-visible {
  outline: 2px solid var(--ob-pink);
  outline-offset: 2px;
}
.ai-style-picker__chip img {
  display: block;
  width: 32px;
  height: 32px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}
.ai-style-picker__nav {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--ob-line);
  border-radius: 50%;
  background: #ffffff;
  font-family: inherit;
  font-size: 20px;
  line-height: 28px;
  color: var(--ob-ink);
  cursor: pointer;
}
.ai-style-picker__nav:hover {
  border-color: var(--ob-pink);
  color: var(--ob-pink);
}
@media (hover: none) {
  .ai-style-picker__nav {
    display: none;
  }
}
.ai-hero__compare {
  box-shadow: 0 18px 40px rgba(29, 29, 31, 0.18);
}
.ai-hero__caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: var(--ob-muted);
}

.ai-effects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-effects__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--ob-radius);
  background: none;
  font-family: inherit;
  text-align: center;
  color: var(--ob-ink);
  cursor: pointer;
}
.ai-effects__button:focus-visible {
  outline: 2px solid var(--ob-pink);
  outline-offset: 3px;
}
.ai-effects__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--ob-radius);
  background: #eeeeee;
}
.ai-effects__media::after {
  content: "⟷";
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: var(--ob-pink);
}
.ai-effects__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 576 / 704;
  object-fit: cover;
  transition: transform 0.3s ease-out;
}
.ai-effects__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
@media (hover: hover) {
  .ai-effects__button:hover .ai-effects__media img {
    transform: scale(1.04);
  }
  .ai-effects__button:hover .ai-effects__label {
    color: var(--ob-pink);
  }
}

.ai-how__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ai-step;
}
.ai-how__step {
  padding: 24px;
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius);
  counter-increment: ai-step;
}
.ai-how__step::before {
  content: counter(ai-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ob-pink);
  font-weight: 700;
  color: #ffffff;
}

.ai-how__step h3,
.ai-features__item h3,
.ai-custom__card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}
.ai-how__step p,
.ai-features__item p,
.ai-custom__card p {
  font-size: 15px;
  line-height: 24px;
  color: var(--ob-muted);
}

.ai-features__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-features__item {
  padding: 24px;
  border-radius: var(--ob-radius);
  background: var(--ob-pink-soft);
}
.ai-features__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--ob-pink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-custom__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ai-custom__card {
  padding: 28px;
  border: 1px solid var(--ob-pink);
  border-radius: var(--ob-radius);
  background: var(--ob-pink-soft);
}
.ai-custom__note {
  max-width: 680px;
  margin: 28px auto 0;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  color: var(--ob-muted);
}
.ai-custom__action {
  margin-top: 24px;
  text-align: center;
}

.ai-prices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ai-prices__machine {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius);
}
.ai-prices__name {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}
.ai-prices__kind {
  font-weight: 300;
}
.ai-prices__list {
  flex: 1 0 auto;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.ai-prices__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 15px;
  line-height: 22px;
}
.ai-prices__price {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ob-pink);
}
.ai-prices__price--tbd {
  font-weight: 400;
  color: var(--ob-muted);
}
.ai-prices__cta {
  text-align: center;
}

.ai-faq__list {
  max-width: 860px;
  margin: 0 auto;
}

.ai-cta .heading {
  margin-bottom: 48px;
}
.ai-cta__fan {
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.callToActionFooter .ai-cta__fan img {
  width: 120px;
  height: auto;
  margin: 0 -10px;
  border: 4px solid #ffffff;
  border-radius: var(--ob-radius);
  box-shadow: 0 8px 24px rgba(29, 29, 31, 0.18);
  aspect-ratio: 576 / 704;
  object-fit: cover;
}
.ai-cta__fan img:nth-child(1) {
  transform: rotate(-8deg) translateY(14px);
}
.ai-cta__fan img:nth-child(2) {
  transform: rotate(-4deg) translateY(4px);
}
.ai-cta__fan img:nth-child(3) {
  position: relative;
  z-index: 1;
}
.ai-cta__fan img:nth-child(4) {
  transform: rotate(4deg) translateY(4px);
}
.ai-cta__fan img:nth-child(5) {
  transform: rotate(8deg) translateY(14px);
}
.ai-cta a.btn {
  margin-top: 64px;
}

/* Gadżety premium page (page-gadzety-premium.php) */

.props-hero__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ob-radius);
  box-shadow: 0 18px 40px rgba(29, 29, 31, 0.18);
}
.props-hero--no-media .ai-hero__grid {
  grid-template-columns: minmax(0, 1fr);
}
.props-hero--no-media .ai-hero__text {
  text-align: center;
}
.props-hero--no-media .ai-hero__actions {
  justify-content: center;
}
.props-content .container {
  max-width: 860px;
  font-size: 17px;
  font-weight: 300;
  line-height: 28px;
}
.props-content .container > * + * {
  margin-top: 24px;
}
.props-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ob-radius);
}
.props-cta a.btn {
  margin-top: 8px;
}

.ai-lightbox {
  display: flex;
  justify-content: center;
  height: 100%;
  container-type: size;
}
.ai-lightbox__compare {
  flex: none;
  width: min(100%, 420px);
  width: min(100cqw, 100cqh * 576 / 704);
}

@media (max-width: 1190px) {
  .ai-hero {
    margin-top: 60px;
    padding-top: 40px;
    background-image: url("../img/mobile_kropki_sekcja1.svg");
  }
  .ai-features__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .ai-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .ai-hero__text {
    text-align: center;
  }
  .ai-hero__lead {
    margin-right: auto;
    margin-left: auto;
  }
  .ai-hero__actions {
    flex-direction: column;
  }
  .ai-hero__media {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .ai-prices__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .ai-section {
    padding-top: 64px;
  }
  .ai-section__title {
    font-size: 26px;
    line-height: 32px;
  }
  .ai-section__lead {
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 26px;
  }
  .ai-hero__title {
    font-size: 30px;
    line-height: 38px;
  }
  .ai-hero__kicker {
    font-size: 22px;
    line-height: 28px;
  }
  .ai-hero__lead {
    font-size: 16px;
    line-height: 26px;
  }
  .ai-hero__actions .btn {
    padding-right: 18px;
    padding-left: 18px;
    font-size: 16px;
  }
  .ai-effects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .ai-effects__label {
    font-size: 12px;
  }
  .ai-how__steps,
  .ai-features__list,
  .ai-custom__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .callToActionFooter .ai-cta__fan img {
    width: 76px;
    margin: 0 -8px;
    border-width: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-effects__media img {
    transition: none;
  }
}

/* Fotobudka AI links: badge, homepage teaser, pricelist line, machine banner */

.badge-new {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 90px;
  background: var(--ob-pink);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  vertical-align: middle;
}

.ai-teaser {
  padding: 80px 0;
}
.ai-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 64px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  color: var(--ob-ink);
}
.ai-teaser__compare {
  width: 100%;
}
.ai-teaser__text .badge-new {
  margin: 0 0 14px;
}
.ai-teaser__text h2 {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: 34px;
  line-height: 41px;
}
.ai-teaser__text h2 .light {
  font-weight: 300;
}
.ai-teaser__text p {
  max-width: 500px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 30px;
}
.ai-teaser__thumbs {
  display: flex;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.ai-teaser__thumbs li {
  margin: 0;
}
.ai-teaser .ai-teaser__thumbs img {
  display: block;
  width: 64px;
  height: 64px;
  max-width: none;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 20%;
}
.ai-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.price-ai-line {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ob-pink);
}
.price-ai-line a {
  margin-left: 6px;
  color: var(--ob-pink);
  text-decoration: underline;
}

.ai-banner {
  padding: 20px 0;
  background: var(--ob-pink-soft);
  border-bottom: 1px solid var(--ob-line);
  color: var(--ob-ink);
}
.ai-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.ai-banner__text .badge-new {
  margin: 0 0 6px;
}
.ai-banner__title {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 600;
}
.ai-banner__lead {
  margin: 0;
  font-size: 14px;
  color: var(--ob-muted);
}

@media (max-width: 767px) {
  .ai-teaser {
    padding: 40px 0;
  }
  .ai-teaser__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .ai-teaser__compare {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
  .ai-teaser__text {
    text-align: center;
  }
  .ai-teaser__text h2 {
    font-size: 28px;
    line-height: 34px;
  }
  .ai-teaser__text p {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 26px;
  }
  .ai-teaser__thumbs,
  .ai-teaser__actions {
    justify-content: center;
  }
  .ai-teaser .ai-teaser__thumbs img {
    width: 56px;
    height: 56px;
  }
}
