.cw-pamokos-page {
  background: #fffdfa;
  color: var(--cw-ink, #2d211b);
  overflow: clip;
  padding-bottom: clamp(3.5rem, 6vw, 6rem) !important;
}

.cw-pamokos-page *,
.cw-pamokos-page *::before,
.cw-pamokos-page *::after { box-sizing: border-box; }

.cw-pamokos-page img { display: block; max-width: 100%; }

.cw-pamokos-hero {
  display: grid;
  grid-template-columns: minmax(320px, 40%) minmax(0, 60%);
  margin: 0 auto;
  max-width: 1536px;
  min-height: clamp(540px, 42vw, 640px);
  position: relative;
  width: 100%;
}

.cw-pamokos-hero__copy {
  align-self: center;
  max-width: 570px;
  padding: 54px clamp(32px, 4.6vw, 76px) 54px max(34px, calc((100vw - 1380px) / 2));
  position: relative;
  z-index: 3;
  text-align: left;
}

.cw-pamokos-hero__copy h1 {
  color: var(--cw-ink, #2d211b);
  font-family: var(--wp--preset--font-family--display, Raleway, "Segoe UI", sans-serif);
  font-weight: 400;
  margin: 0;
}

/* The Kontaktai rules in theme.css also own this hero's responsive typography. */
.cw-pamokos-hero__body {
  margin: 12px 0 0;
}

.cw-pamokos-button {
  align-items: center;
  background: linear-gradient(135deg, #a85732, #87401f);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(184, 94, 51, 0.18);
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  margin-top: 26px;
  min-height: 54px;
  padding: 12px 28px;
  text-decoration: none;
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.cw-pamokos-button:hover,
.cw-pamokos-button:focus-visible {
  box-shadow: 0 15px 34px rgba(184, 94, 51, 0.27);
  color: #fff;
}

.cw-pamokos-button:focus-visible,
.cw-pamokos-lesson-card button:focus-visible,
.cw-pamokos-faq button:focus-visible {
  outline: 3px solid #176182;
  outline-offset: 3px;
}

.cw-pamokos-hero__media {
  min-height: clamp(540px, 42vw, 640px);
  overflow: visible;
  position: relative;
}

.cw-pamokos-hero__defs { position: absolute; }

.cw-pamokos-hero__media > picture {
  clip-path: url("#cw-pamokos-hero-clip");
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.cw-pamokos-hero__media > picture img {
  height: 100%;
  object-fit: cover;
  object-position: 44% 50%;
  transform: translateX(12%) scale(1.08);
  transform-origin: center;
  width: 100%;
}

.cw-pamokos-hero__lines {
  inset: -2px 0 -3px -1px;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: calc(100% + 1px);
  z-index: 2;
}

.cw-pamokos-hero__lines path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cw-pamokos-hero__line-clay { stroke: var(--cw-clay, #cb7546); stroke-width: 2.2; }
.cw-pamokos-hero__line-sage { stroke: var(--cw-sage, #75988a); stroke-width: 2.4; }
.cw-pamokos-hero__lines circle { fill: var(--cw-sky, #4c98c5); stroke: #fffdfa; stroke-width: 4; vector-effect: non-scaling-stroke; }

.cw-pamokos-section {
  margin-inline: auto;
  max-width: 1200px;
  scroll-margin-top: 124px;
  width: min(calc(100% - 64px), 1200px);
}

.cw-pamokos-experiences { padding-top: clamp(46px, 5vw, 76px); }
.cw-pamokos-booking { padding-top: clamp(56px, 6vw, 92px); }

.cw-pamokos-heading {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(40px, 1fr) 14px auto 14px minmax(40px, 1fr);
  margin: 0 auto 30px;
  max-width: 800px;
}

.cw-pamokos-heading h2 {
  color: var(--cw-ink, #2d211b);
  font-family: var(--wp--preset--font-family--display, Raleway, "Segoe UI", sans-serif);
  font-size: clamp(32px, 3.1vw, 47px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-align: center;
}

.cw-pamokos-heading > span {
  background: var(--cw-sky, #4c98c5);
  height: 1px;
  width: 100%;
}

.cw-pamokos-heading > i {
  background: var(--cw-sky, #4c98c5);
  border: 3px solid #fffdfa;
  border-radius: 50%;
  height: 14px;
  width: 14px;
}

.cw-pamokos-experiences__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cw-pamokos-lesson-card {
  background: #fffaf4;
  border: 1px solid rgba(187, 153, 126, 0.34);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(74, 47, 32, 0.035);
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.cw-pamokos-lesson-card__media {
  aspect-ratio: 4 / 3;
  background: #eee7de;
  display: block;
  overflow: hidden;
  width: 100%;
}

.cw-pamokos-lesson-card__media > img {
  height: 100%;
  max-width: none;
  object-fit: cover;
  width: 100%;
}

.cw-pamokos-lesson-card h3 {
  color: var(--cw-ink, #2d211b);
  font-family: var(--wp--preset--font-family--display, Raleway, "Segoe UI", sans-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.cw-pamokos-lesson-card__body > p {
  color: var(--cw-ink-soft, #67574e);
  font-size: 14px;
  line-height: 1.56;
  margin: 12px 0 0;
}

.cw-pamokos-lesson-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cw-pamokos-lesson-card.is-selected {
  border-color: rgba(203, 117, 70, 0.7);
  box-shadow: 0 16px 36px rgba(105, 66, 42, 0.09);
}

.cw-pamokos-lesson-card--individual .cw-pamokos-lesson-card__media > img { object-position: 47% 50%; }
.cw-pamokos-lesson-card--pair .cw-pamokos-lesson-card__media > img { object-position: 50% 64%; }
.cw-pamokos-lesson-card--group .cw-pamokos-lesson-card__media > img { object-position: 50% 52%; }
.cw-pamokos-lesson-card--thematic .cw-pamokos-lesson-card__media > img { object-position: 50% 50%; }

.cw-pamokos-lesson-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 25px;
}

.cw-pamokos-lesson-card__body > p { min-height: 66px; }

.cw-pamokos-lesson-card ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.cw-pamokos-lesson-card li {
  align-items: flex-start;
  color: var(--cw-ink-soft, #67574e);
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.35;
}

.cw-pamokos-lesson-card li svg {
  fill: none;
  flex: 0 0 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  width: 18px;
}

.cw-pamokos-lesson-card__price {
  color: var(--cw-ink, #2d211b) !important;
  font-family: var(--wp--preset--font-family--display, Raleway, "Segoe UI", sans-serif);
  font-size: 18px !important;
  margin-top: 20px !important;
  min-height: 28px !important;
}

.cw-pamokos-lesson-card__price span {
  color: var(--cw-ink-soft, #67574e);
  font-family: inherit;
  font-size: 13px;
}

.cw-pamokos-lesson-card__select {
  margin: auto 0 0;
}

.cw-pamokos-lesson-card button {
  background: transparent;
  border: 1px solid rgba(45, 33, 27, 0.75);
  border-radius: 999px;
  color: var(--cw-ink, #2d211b);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  margin-top: 0;
  min-height: 47px;
  padding: 9px 20px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  width: 100%;
}

.cw-pamokos-lesson-card button:hover,
.cw-pamokos-lesson-card button[aria-pressed="true"] {
  background: var(--cw-clay-deep, #a65b36);
  border-color: var(--cw-clay-deep, #a65b36);
  color: #fff;
}

.cw-pamokos-booking .cw-booking-system { max-width: none; }

.cw-pamokos-benefits {
  background: #fffaf4;
  border: 1px solid rgba(187, 153, 126, 0.3);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(74, 47, 32, 0.035);
  margin-top: 30px;
  overflow: hidden;
}

.cw-pamokos-benefits ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  min-height: 144px;
  padding: 0 44px;
}

.cw-pamokos-benefits li {
  align-items: center;
  display: flex;
  gap: 17px;
  min-width: 0;
  padding: 24px 18px;
  position: relative;
}

.cw-pamokos-benefits li + li::before {
  background: rgba(187, 153, 126, 0.28);
  content: "";
  height: 76px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
}

.cw-pamokos-benefit__icon {
  align-items: center;
  display: flex;
  flex: 0 0 42px;
  flex-shrink: 0;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.cw-pamokos-benefit__icon svg {
  display: block;
  fill: none;
  height: 40px;
  max-height: 100%;
  max-width: 100%;
  stroke: #c87545;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  vector-effect: non-scaling-stroke;
  width: 40px;
}

.cw-pamokos-benefit__copy { min-width: 0; }

.cw-pamokos-benefit__copy h2 {
  color: var(--cw-ink, #2d211b);
  font-family: var(--wp--preset--font-family--display, Raleway, "Segoe UI", sans-serif);
  font-size: clamp(20px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.14;
  margin: 0;
}

.cw-pamokos-benefit__copy p {
  color: #746961;
  font-size: 14px;
  line-height: 1.45;
  margin: 9px 0 0;
}

.cw-pamokos-faq {
  border: 1px solid rgba(187, 153, 126, 0.32);
  border-radius: 16px;
  margin-top: 18px;
  overflow: hidden;
}

.cw-pamokos-faq__item + .cw-pamokos-faq__item { border-top: 1px solid rgba(187, 153, 126, 0.28); }
.cw-pamokos-faq h2 { font: inherit; margin: 0; }

.cw-pamokos-faq button {
  align-items: center;
  background: #fffaf4;
  border: 0;
  color: var(--cw-ink, #2d211b);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 14px;
  gap: 12px;
  grid-template-columns: 22px minmax(0, 1fr) 20px;
  min-height: 56px;
  padding: 10px 20px;
  text-align: left;
  width: 100%;
}

.cw-pamokos-faq button > span {
  align-items: center;
  border: 1px solid var(--cw-clay, #cb7546);
  border-radius: 50%;
  color: var(--cw-clay, #cb7546);
  display: inline-flex;
  font-size: 17px;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.cw-pamokos-faq button > svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms ease;
  width: 18px;
}

.cw-pamokos-faq button[aria-expanded="true"] > svg { transform: rotate(180deg); }

.cw-pamokos-faq__panel {
  background: #fffdfa;
  overflow: hidden;
  transition: height 260ms ease;
}

.cw-pamokos-faq__panel > div { padding: 0 54px 18px; }
.cw-pamokos-faq__panel p { color: var(--cw-ink-soft, #67574e); font-size: 14px; line-height: 1.55; margin: 0; }

@media (max-width: 1024px) {
  .cw-pamokos-hero { grid-template-columns: minmax(300px, 42%) minmax(0, 58%); min-height: 520px; }
  .cw-pamokos-hero__media { min-height: 520px; }
  .cw-pamokos-hero__copy { padding-left: 32px; padding-right: 20px; }
  .cw-pamokos-experiences__grid { gap: 18px; }
  .cw-pamokos-lesson-card__body { padding-inline: 20px; }
  .cw-pamokos-benefits ul { min-height: 150px; padding-inline: 24px; }
  .cw-pamokos-benefits li { gap: 13px; padding-inline: 20px; }
  .cw-pamokos-benefit__icon { flex-basis: 38px; height: 38px; width: 38px; }
  .cw-pamokos-benefit__icon svg { height: 38px; width: 38px; }
  .cw-pamokos-benefit__copy h2 { font-size: 20px; }
}

@media (max-width: 820px) {
  .cw-pamokos-hero__copy { padding-inline: 20px; }
  .cw-pamokos-hero { grid-template-columns: minmax(260px, 43%) minmax(0, 57%); min-height: 470px; }
  .cw-pamokos-hero__media { min-height: 470px; }
  .cw-pamokos-button { font-size: 14px; min-height: 48px; }
  .cw-pamokos-section { width: min(calc(100% - 38px), 760px); }
  .cw-pamokos-experiences__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-pamokos-benefits ul { min-height: 164px; padding-inline: 6px; }
  .cw-pamokos-benefits li { gap: 8px; padding-inline: 4px; }
  .cw-pamokos-benefit__icon { flex-basis: 34px; height: 34px; width: 34px; }
  .cw-pamokos-benefit__icon svg { height: 34px; width: 34px; }
  .cw-pamokos-benefit__copy h2 { font-size: 18px; }
  .cw-pamokos-benefit__copy p { font-size: 13px; margin-top: 7px; }
}

@media (max-width: 700px) {
  .cw-pamokos-hero { display: flex; flex-direction: column; min-height: 0; }
  .cw-pamokos-hero__copy { max-width: none; padding: 54px 20px 34px; }
  .cw-pamokos-hero__media { min-height: min(76vw, 480px); }
  .cw-pamokos-hero__media > picture { clip-path: none; border-radius: 58px 18px 58px 18px; inset: 0 14px; overflow: hidden; width: calc(100% - 28px); }
  .cw-pamokos-hero__media > picture img { object-position: left center; transform: none; }
  .cw-pamokos-hero__lines { display: none; }
  .cw-pamokos-heading { gap: 9px; grid-template-columns: minmax(24px, 1fr) 10px auto 10px minmax(24px, 1fr); }
  .cw-pamokos-heading h2 { font-size: clamp(29px, 8vw, 39px); }
  .cw-pamokos-heading > i { border-width: 2px; height: 10px; width: 10px; }
  .cw-pamokos-booking { padding-top: clamp(78px, 18vw, 96px); }
  .cw-pamokos-booking .cw-pamokos-heading { margin-bottom: clamp(44px, 10vw, 56px); }
  .cw-pamokos-page > .cw-pamokos-heading { margin-bottom: clamp(44px, 10vw, 56px); margin-top: clamp(78px, 18vw, 96px); }
  .cw-pamokos-experiences__grid { grid-template-columns: 1fr; }
  .cw-pamokos-lesson-card__body > p { min-height: 0; }
  .cw-pamokos-benefits { border-radius: 20px; margin-top: 26px; }
  .cw-pamokos-benefits ul { grid-template-columns: 1fr; min-height: 0; padding: 0 22px; }
  .cw-pamokos-benefits li { gap: 16px; min-height: 108px; padding: 20px 0; }
  .cw-pamokos-benefits li + li::before { height: 1px; left: 0; right: 0; top: 0; transform: none; width: auto; }
  .cw-pamokos-benefit__icon { flex-basis: 42px; height: 42px; width: 42px; }
  .cw-pamokos-benefit__icon svg { height: 40px; width: 40px; }
  .cw-pamokos-benefit__copy h2 { font-size: 20px; }
  .cw-pamokos-benefit__copy p { font-size: 14px; margin-top: 6px; }
}

@media (max-width: 640px) {
  .cw-pamokos-hero__copy { padding-inline: 14px; }
}

@media (max-width: 480px) {
  .cw-pamokos-section { width: calc(100% - 28px); }
  .cw-pamokos-button { min-height: 48px; width: 100%; }
  .cw-pamokos-heading { grid-template-columns: 28px 9px minmax(0, auto) 9px 28px; }
  .cw-pamokos-heading h2 { font-size: 29px; }
  .cw-pamokos-lesson-card h3 { font-size: 23px; }
  .cw-pamokos-faq button { min-height: 58px; padding-inline: 14px; }
  .cw-pamokos-faq__panel > div { padding-inline: 48px 16px; }
}

@media (min-width: 821px) {
  .cw-pamokos-hero {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    width: var(--cw-wide);
    min-height: 0;
    padding-block: 24px;
  }

  .cw-pamokos-hero__copy {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 20px 0;
  }

  .cw-pamokos-hero__media {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 28px;
    overflow: hidden;
  }

  .cw-pamokos-hero__media > picture { clip-path: none; }
  .cw-pamokos-hero__media > picture img { transform: none; object-position: left center; }
  .cw-pamokos-hero__defs,
  .cw-pamokos-hero__lines { display: none; }

  .cw-pamokos-hero__body { margin-top: 12px; }
  .cw-pamokos-button { margin-top: 20px; }
  .cw-pamokos-experiences { padding-top: clamp(34px, 3vw, 46px); }
}

/* Pamokos desktop density target: 80%, without scaling the document or mobile UI. */
@media (min-width: 1101px) {
  .cw-pamokos-page { --cw-pamokos-desktop-scale: 0.8; }
  .cw-pamokos-hero {
    gap: clamp(22px, 3.2vw, 45px);
    max-width: 1088px;
    padding-block: 19px;
    width: min(calc(100% - 56px), 1088px);
  }
  .cw-pamokos-hero__copy { padding-block: 16px; }
  .cw-pamokos-hero__copy h1 { font-size: clamp(2.4rem, 3.56vw, 3.1rem); }
  .cw-pamokos-hero__lead,
  .cw-pamokos-hero__body { font-size: clamp(0.9rem, 1vw, 0.95rem); line-height: 1.6; }
  .cw-pamokos-button { font-size: 14px; margin-top: 16px; min-height: 44px; padding: 10px 22px; }
  .cw-pamokos-section { max-width: 960px; width: min(calc(100% - 56px), 960px); }
  .cw-pamokos-experiences { padding-top: clamp(27px, 2.4vw, 37px); }
  .cw-pamokos-booking { padding-top: clamp(45px, 4.8vw, 74px); }
  .cw-pamokos-heading { gap: 11px; margin-bottom: 24px; max-width: 640px; }
  .cw-pamokos-heading h2 { font-size: clamp(28px, 2.48vw, 38px); }
  .cw-pamokos-experiences__grid { gap: 22px; }
  .cw-pamokos-lesson-card h3 { font-size: 21px; }
  .cw-pamokos-lesson-card__body { padding: 19px 21px 20px; }
  .cw-pamokos-benefits { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cw-pamokos-button,
  .cw-pamokos-lesson-card,
  .cw-pamokos-lesson-card button,
  .cw-pamokos-faq__panel,
  .cw-pamokos-faq button > svg { transition: none !important; }
}

.cw-pamokos-contact {
  align-items: center;
  background: var(--cw-porcelain);
  border: 1px solid var(--cw-line);
  border-radius: 28px;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-top: clamp(48px, 7vw, 82px);
  padding: clamp(26px, 4vw, 44px);
}
.cw-pamokos-contact h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -0.035em; margin: 0; }
.cw-pamokos-contact p:not(.cw-info-eyebrow) { color: var(--cw-ink-soft); line-height: 1.65; margin: 12px 0 0; max-width: 650px; }
.cw-pamokos-contact .cw-pamokos-button { flex: 0 0 auto; margin: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .cw-pamokos-contact { align-items: stretch; flex-direction: column; }
  .cw-pamokos-contact .cw-pamokos-button { width: 100%; }
}

@media (min-width: 1101px) {
  .cw-pamokos-contact { margin-top: clamp(38px, 5.6vw, 66px); padding: clamp(21px, 3.2vw, 35px); }
  .cw-pamokos-contact h2 { font-size: clamp(1.6rem, 2.4vw, 2.16rem); }
}
