body.type-index.ai50-active {
  --ink:#282a2b; --paper:#f6f1ea; --aqua:#59c7c3; --gutter:clamp(24px,6.1vw,98px); background:var(--paper);
  & .courses {font:500 17px/1.55 AI50Manrope,Arial,sans-serif;color:var(--ink);width:100%;text-align:left;background:var(--paper)}
  & :where(.courses) :where(h2,h3,p) {font-family:inherit;color:inherit;text-transform:none;text-align:left;margin:0;}
  & .courses h3 {line-height:1.55}
  & .courses strong {font-weight:800}
  & .courses .buy {display:inline-flex;align-items:center;text-decoration:none;color:white}
  & .courses [hidden] {display:none!important}
  & .courses .buy[aria-disabled] {opacity:.72;cursor:default}
.courses {
  max-width: 1680px;
  margin-inline: auto;
  padding: clamp(64px, 6.5vw, 100px) var(--gutter) clamp(64px, 6vw, 96px);
}
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "booking offer";
  align-items: start;
  gap: clamp(34px, 5vw, 75px) clamp(36px, 6vw, 105px);
}
.course-details { grid-area: booking; }
.offer { grid-area: offer; padding-top: 6px; container-type: inline-size; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.offer h2 {
  font-size: clamp(30px, 13cqi, 83px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.042em;
  margin: 0 0 clamp(18px, 2vw, 28px);
  white-space: pre-line;
}
.course-subtitle { margin: 0 0 12px; line-height: 1.4; text-wrap: pretty; font-size: clamp(17px, 1.4vw, 21px); font-weight: 800; }
.offer-lead { max-width: 39ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; text-wrap: pretty; }
#ai50-home .a50-copy p { max-width: min(33ch, 37vw); text-wrap: pretty; }
@media (max-width: 900px) and (orientation: portrait), (max-width: 550px) {
  #ai50-home .a50-copy p { max-width: 32ch; }
}
@media (max-width: 550px) and (min-height: 710px) and (orientation: portrait) {
  #ai50-home .a50-copy { align-self: center; margin-bottom: 0; }
}
#ai50-home .academy-name { display: block; margin-bottom: clamp(10px, 1.4vw, 18px); font-size: clamp(15px, 1.2vw, 18px); font-weight: 800; }
#ai50-home a.a50-go { text-decoration: none; }
.booking {
  position: relative;
  background: var(--aqua);
  padding: clamp(24px, 3.2vw, 48px);
  border-radius: clamp(20px, 2.3vw, 34px);
}
.booking::after, .program::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 14%;
  width: 30px;
  height: 24px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.booking-date::first-letter { text-transform: uppercase; }
.booking-date { display: block; font-size: clamp(34px, 3.35vw, 54px); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; margin: 14px 0 8px; }
.booking-when { display: flex; flex-wrap: wrap; gap: 2px 1em; font-size: clamp(16px, 1.35vw, 22px); }
.booking-when span { white-space: nowrap; }
.booking-stock { display: flex; align-items: baseline; gap: .55em; margin-top: 10px; }
.booking-stock strong { font-size: 1.4em; line-height: 1; }
.buy:disabled { background: #355a59; cursor: default; }
.booking-action { display: flex; flex-wrap: wrap; gap: 16px 25px; justify-content: space-between; align-items: center; margin-top: clamp(25px, 2.8vw, 44px); }
.booking-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 15px; }
.booking-price strong { font-size: clamp(23px, 2vw, 33px); line-height: 1.1; }
.buy { background: var(--ink); color: white; border: 0; border-radius: 100px; padding: 14px 25px; font: 800 17px/1.4 AI50Manrope, sans-serif; cursor: pointer; }
.buy:hover { background: #144b49; }
.program {
  position: relative;
  margin-top: 36px;
  background: #dcece7;
  border-radius: 22px;
}
.program::after { width: 20px; height: 15px; }
.program summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(20px, 3.2vw, 48px);
  list-style: none;
  cursor: pointer;
}
.program summary::-webkit-details-marker { display: none; }
.program summary:focus-visible { outline: 3px solid #286d69; border-radius: 22px; outline-offset: 3px; }
.program summary strong { font-size: clamp(18px, 1.65vw, 25px); }
.program summary span { margin-left: auto; font-size: 15px; white-space: nowrap; }
.program summary::after { content: ''; width: 9px; height: 9px; flex: none; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.program[open] summary::after { transform: translateY(2px) rotate(225deg); }
.program ol { margin: 0; padding: 2px clamp(20px, 3.2vw, 48px) 25px; list-style: none; }
.program li { display: grid; grid-template-columns: max-content 1fr; gap: 14px; padding-block: 9px; }
.program li strong { display: block; margin-bottom: 3px; }
.program time { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 780px) {
  .featured { grid-template-columns: minmax(0, 1fr); grid-template-areas: "offer" "booking"; gap: 32px; }
  .offer h2 { max-width: 17ch; }
  .offer-lead { max-width: 42ch; margin-bottom: 0; }
  .courses { padding-block: 52px 60px; }
}

}

/* Ink on the booking bubble, aqua on the light page. */
body.type-index #ai50-home .a50-go,
body.type-detail #product-detail-form,
body.ordering-process:not(.in-kosik) #content {
  --cta-fill:#59c7c3; --cta-hover:#75d3ce; --cta-down:#49b6b2; --cta-text:#282a2b;
}
:is(body.type-index.ai50-active #ai50-home .a50-go,
    body.type-index.ai50-active #kurzy .buy,
    body.type-detail #product-detail-form .add-to-cart-button,
    body.ordering-process #content-wrapper #content :is(.next-step-forward,.btn-conversion,#orderFormButton)):not(.next-step-back) {
  display:inline-flex; align-items:center; justify-content:center;
  box-sizing:border-box; width:fit-content; max-width:100%; min-height:52px; height:auto;
  margin-inline:0; padding:14px 25px; border:0; border-radius:100px;
  background:var(--cta-fill,#282a2b)!important; color:var(--cta-text,#fff)!important; box-shadow:none;
  font:800 17px/1.4 AI50Manrope,Arial,sans-serif!important;
  letter-spacing:0; text-align:center; text-decoration:none; text-transform:none;
  white-space:normal; cursor:pointer; appearance:none;
  transition:background-color .23s ease,transform .23s ease;
  & :is(.order-button-text,span) {font:inherit!important;color:inherit!important;letter-spacing:inherit}
  &::before,&::after {display:none!important}
  &:focus-visible {outline:3px solid #144b49;outline-offset:4px}
  @media (hover:hover) and (pointer:fine) {
    &:hover:not(:disabled,[aria-disabled="true"],.disabled) {background:var(--cta-hover,#144b49)!important;transform:translateY(-3px)}
  }
  &:active:not(:disabled,[aria-disabled="true"],.disabled) {background:var(--cta-down,#103d3b)!important;transform:translateY(0)}
  &:is(:disabled,[aria-disabled="true"],.disabled) {opacity:.55;cursor:default;transform:none}
  @media (prefers-reduced-motion:reduce) {
    &, &:hover, &:active {transition:none!important;transform:none!important}
  }
}
/* Keep availability in the layout while Shoptet supplies the live count. */
body.type-index.ai50-active #kurzy .booking-stock[hidden] {
  display:flex!important;visibility:hidden;
}
#kurzy .booking-stock {min-height:1.7em}
html:has(body.type-index.ai50-active) {scroll-behavior:auto!important}

@media (prefers-reduced-motion:no-preference) {
  #kurzy .course-await {opacity:.78}
  #kurzy .course-reveal {transition:opacity .42s ease-out}
  #kurzy .program summary::after {transition:transform .23s ease}
  @supports (interpolate-size:allow-keywords) and selector(details::details-content) {
    #kurzy .program {interpolate-size:allow-keywords}
    #kurzy .program::details-content {
      block-size:0;overflow:clip;
      transition:block-size .28s ease,content-visibility .28s allow-discrete;
    }
    #kurzy .program[open]::details-content {block-size:auto}
  }
}

/* Keep the seat count beside its edit link and show the total just once. */
@media (max-width:680px) {
  body.ordering-process #content-wrapper #content .order-summary #summary-box {
    & h2 {padding:0!important;margin:0 0 15px!important;font-size:21px}
    & .cart-item-name .main-link {display:block;font:800 17px/1.35 AI50Manrope,Arial,sans-serif}
    & #shipping-billing-summary:not(:has(.recapitulation-single:not(.ai50-included))) {display:none}
    & .order-summary-item.price .price-wrapper {
      display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px
    }
    & .order-summary-item.price .price-wrapper > * {flex:0 0 auto;min-width:0!important}
    & .order-summary-item.price .price {white-space:nowrap;font-size:clamp(24px,6.6vw,32px)}
    &:has(.cart-item:only-child):has(.helper.ai50-included) {
      display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;
      & > *, & .cart-item-name {grid-column:1/-1}
      & .cart-items, & .cart-item {display:contents}
      & .cart-item-name {grid-row:auto}
      & .cart-item-amount {grid-row:auto;grid-column:1;align-self:center}
      & .cart-item-price {display:none}
      & .ai50-edit-seats {grid-column:2;min-height:44px;display:inline-flex!important;align-items:center;margin:0!important}
      & .order-summary-item.price {margin-top:12px!important}
    }
  }
}

/* Only suppress a success toast during the landing page's direct checkout. */
body.type-index.ai50-direct-purchase :is(.messages .msg-success,.messages .success,.message.success) {display:none!important}

#ai50-home .a50-meet {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: clamp(20px, 3.8vh, 38px);
  transform: translateX(-50%);
  display: inline-grid;
  grid-template-columns: 26px minmax(0, 1fr);
  width: max-content;
  max-width: min(calc(100% - 24px), 70vw);
  box-sizing: border-box;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 22px;
  border-radius: 100px;
  background: #fcfaf7;
  color: #282a2b;
  box-shadow: 0 1px 5px #282a2b24;
  font: 800 16px/1.3 AI50Manrope, sans-serif;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  transition: background-color .18s ease;
}
#ai50-home .a50-meet::before { content: ""; display: block; width: 26px; height: 26px; background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48dGl0bGU+T3NvYm7DrSByb3p2b2o8L3RpdGxlPjxwYXRoIGQ9Ik03IDIyQTE0LjUgMTQuNSAwIDEgMSAzNiAyMkExNC41IDE0LjUgMCAxIDEgNyAyMloiIGZpbGw9IiNFM0RERDQiIC8+PHBhdGggZD0iTTcgNjRWNTdBMjEgMjEgMCAwIDEgNDkgNTdWNjRaIiBmaWxsPSIjNTlDN0MzIiAvPjxwYXRoIGQ9Ik01NC4wMDAwIDExLjEwMDBRNTQuMDAwMCA5LjAwMDAgNTYuMTAwMCA5LjAwMDBMNTguOTAwMCA5LjAwMDBRNjEuMDAwMCA5LjAwMDAgNjEuMDAwMCAxMS4xMDAwTDYxLjAwMDAgMTcuMDAwMEw2Ni45MDAwIDE3LjAwMDBRNjkuMDAwMCAxNy4wMDAwIDY5LjAwMDAgMTkuMTAwMEw2OS4wMDAwIDIxLjkwMDBRNjkuMDAwMCAyNC4wMDAwIDY2LjkwMDAgMjQuMDAwMEw2MS4wMDAwIDI0LjAwMDBMNjEuMDAwMCAyOS45MDAwUTYxLjAwMDAgMzIuMDAwMCA1OC45MDAwIDMyLjAwMDBMNTYuMTAwMCAzMi4wMDAwUTU0LjAwMDAgMzIuMDAwMCA1NC4wMDAwIDI5LjkwMDBMNTQuMDAwMCAyNC4wMDAwTDQ4LjEwMDAgMjQuMDAwMFE0Ni4wMDAwIDI0LjAwMDAgNDYuMDAwMCAyMS45MDAwTDQ2LjAwMDAgMTkuMTAwMFE0Ni4wMDAwIDE3LjAwMDAgNDguMTAwMCAxNy4wMDAwTDU0LjAwMDAgMTcuMDAwMFoiIGZpbGw9IiM1OUM3QzMiIC8+PC9zdmc+") center / contain no-repeat; }
@media (hover: hover) {
  #ai50-home .a50-meet:hover { background: #dceeea; }
}
#ai50-home .a50-meet:focus-visible { outline: 3px solid #197573; outline-offset: 3px; }
