/* MAEVE – Tesla Med Ion Stream 680 PRO (sprzedaż + edukacja) */

.cs_tm_page .cs_of_hero_aside img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% 12%;
}

.cs_tm_page .cs_of_hero_lead p {
  color: #3a3a3a;
  margin: 0 0 16px;
}

.cs_tm_page .cs_of_hero_lead p:last-child {
  margin-bottom: 0;
}

.cs_tm_toc {
  background: #fff;
  border-bottom: 1px solid rgba(48, 48, 48, 0.08);
  padding: 18px 0;
  position: sticky;
  top: 80px;
  z-index: 20;
}

@media (max-width: 991px) {
  .cs_tm_toc {
    position: static;
  }
}

.cs_tm_toc_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs_tm_toc_list a {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.cs_tm_toc_list a:hover,
.cs_tm_toc_list a:focus-visible {
  color: var(--accent);
}

.cs_tm_levels,
.cs_tm_areas {
  display: grid;
  gap: 16px;
}

.cs_tm_levels {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cs_tm_areas {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cs_tm_level,
.cs_tm_area {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  padding: 24px 22px;
}

.cs_of_section_alt .cs_tm_level,
.cs_of_section_alt .cs_tm_area {
  background: #fff;
}

.cs_tm_level strong,
.cs_tm_area h3 {
  color: var(--primary);
  display: block;
  font-family: var(--primary-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 10px;
}

.cs_tm_level p,
.cs_tm_area p,
.cs_tm_area ul {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.cs_tm_area ul {
  list-style: none;
  padding: 0;
}

.cs_tm_area li {
  margin: 0 0 8px;
  padding-left: 16px;
  position: relative;
}

.cs_tm_area li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 5px;
}

.cs_tm_patent {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin: 0 0 40px;
}

.cs_tm_patent:last-child {
  margin-bottom: 0;
}

.cs_tm_patent_reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.cs_tm_patent_reverse .cs_tm_patent_media {
  order: 2;
}

.cs_tm_patent_copy {
  order: 1;
}

.cs_tm_patent_media img {
  border-radius: 12px;
  display: block;
  height: 240px;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.cs_tm_patent_kicker {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cs_tm_patent h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px;
}

.cs_tm_patent p {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.cs_tm_patent ol {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.65;
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.cs_tm_patent li {
  margin-bottom: 8px;
}

.cs_tm_patent p.cs_tm_callout,
.cs_tm_callout {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  color: #3a3a3a;
  margin: 18px 0 0;
  padding: 16px 18px;
}

@media (max-width: 991px) {
  .cs_tm_patent,
  .cs_tm_patent_reverse {
    grid-template-columns: 1fr;
  }

  .cs_tm_patent_reverse .cs_tm_patent_media,
  .cs_tm_patent_copy {
    order: initial;
  }
}

.cs_tm_quote {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  color: var(--primary);
  font-family: var(--primary-font);
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  line-height: 1.45;
  margin: 28px 0 0;
  padding: 22px 24px;
}

.cs_tm_process_head {
  margin-bottom: clamp(28px, 4vw, 40px);
  max-width: 760px;
}

.cs_tm_process_head h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.12em;
  margin: 0 0 16px;
}

.cs_tm_process_head p {
  color: #3a3a3a;
  font-size: 17px;
  line-height: 1.7em;
  margin: 0;
}

.cs_tm_process_visual {
  margin: 0 0 clamp(24px, 3vw, 36px);
}

.cs_tm_process_visual img {
  aspect-ratio: 2.4 / 1;
  background: #fff;
  border-radius: 22px;
  display: block;
  max-height: 360px;
  object-fit: cover;
  object-position: center 52%;
  width: 100%;
}

.cs_tm_process_steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cs_tm_process_steps article {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  padding: 16px 16px 18px;
}

.cs_tm_process_steps .cs_tm_icon {
  margin-bottom: 12px;
}

.cs_tm_process_steps .cs_tm_level_num {
  margin-bottom: 4px;
}

.cs_tm_process_steps strong {
  color: var(--primary);
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
}

.cs_tm_process_steps p {
  color: #3a3a3a;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1199px) {
  .cs_tm_process_steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cs_tm_process_visual img {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }

  .cs_tm_process_steps {
    grid-template-columns: 1fr;
  }

  .cs_tm_process_steps article {
    align-items: start;
    display: grid;
    gap: 2px 14px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px 18px;
  }

  .cs_tm_process_steps .cs_tm_icon {
    align-self: center;
    grid-row: 1 / span 3;
    margin: 0;
  }

  .cs_tm_process_steps strong {
    font-size: 20px;
  }

  .cs_tm_process_steps p {
    font-size: 16px;
  }
}

#efekty {
  scroll-margin-top: 88px;
}

.cs_tm_effects_body {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 28px;
  min-width: 0;
}

.cs_tm_effects_visual {
  margin: 0;
  position: sticky;
  top: 120px;
}

.cs_tm_effects_visual img {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.cs_tm_effects_visual figcaption {
  color: #3a3a3a;
  font-size: 14px;
  line-height: 1.5em;
  margin-top: 12px;
}

.cs_tm_page #efekty .cs_of_section_head p,
.cs_tm_page #efekty .cs_tm_phase li {
  color: #3a3a3a;
}

.cs_tm_effects_body .cs_tm_phase_grid {
  grid-template-columns: 1fr;
}

.cs_tm_phase_grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs_tm_phase {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  padding: 26px 24px;
}

.cs_tm_phase h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.cs_tm_phase_when {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: -2px 0 12px;
  text-transform: uppercase;
}

.cs_tm_phase p,
.cs_tm_phase ul {
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.cs_tm_phase li strong {
  color: var(--primary);
  font-weight: 600;
}

.cs_tm_phase_group {
  margin-top: 20px;
}

.cs_tm_phase_group h4 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
}

.cs_tm_phase_group ul {
  margin-top: 8px;
}

.cs_tm_phase ul {
  list-style: none;
  margin-top: 12px;
  padding: 0;
}

.cs_tm_phase li {
  margin: 0 0 8px;
  padding-left: 16px;
  position: relative;
}

.cs_tm_phase li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 5px;
}

@media (max-width: 991px) {
  .cs_tm_effects_body {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .cs_tm_effects_visual {
    max-width: none;
    position: static;
  }

  .cs_tm_effects_visual img {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .cs_tm_phase_grid,
  .cs_tm_effects_body .cs_tm_phase_grid {
    grid-template-columns: 1fr;
  }

  .cs_tm_page #efekty .cs_of_section_head h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.2;
  }

  .cs_tm_page #efekty .cs_of_section_head p {
    font-size: 16px;
    line-height: 1.65;
  }

  .cs_tm_effects_body .cs_tm_phase {
    padding: 20px 18px;
  }

  .cs_tm_effects_body .cs_tm_phase h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  .cs_tm_effects_body .cs_tm_phase_group h4 {
    font-size: 17px;
  }

  .cs_tm_effects_body .cs_tm_phase ul {
    font-size: 16px;
    line-height: 1.6;
  }

  .cs_tm_effects_body .cs_tm_phase li {
    margin-bottom: 10px;
    overflow-wrap: break-word;
  }
}

.cs_tm_disclaimer {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.1);
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-top: 24px;
  padding: 18px 20px;
}

.cs_tm_body_head {
  margin-bottom: clamp(36px, 5vw, 52px);
  max-width: 760px;
}

.cs_tm_body_head h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.12em;
  margin: 0 0 16px;
}

.cs_tm_body_head p {
  color: #3a3a3a;
  font-size: 17px;
  line-height: 1.7em;
  margin: 0 0 10px;
}

.cs_tm_body_head p:last-child {
  margin-bottom: 0;
}

.cs_tm_body_mechanism {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  margin-bottom: clamp(40px, 5vw, 56px);
}

.cs_tm_body_visual {
  margin: 0;
  position: sticky;
  top: 120px;
}

.cs_tm_body_visual img {
  border-radius: 22px;
  display: block;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.cs_tm_body_visual figcaption {
  color: #3a3a3a;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
}

.cs_tm_body_beats {
  display: grid;
  gap: 10px;
}

.cs_tm_body_beats article,
.cs_tm_body_why_grid article,
.cs_tm_body_place_grid article {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  padding: 16px 18px;
}

.cs_tm_body_beats strong,
.cs_tm_body_why_grid strong {
  color: var(--primary);
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 2px 0 8px;
}

.cs_tm_body_beats p,
.cs_tm_body_why_grid p {
  color: #3a3a3a;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.cs_tm_body_places,
.cs_tm_body_why {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.cs_tm_body_places h3,
.cs_tm_body_why h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin: 0 0 16px;
}

.cs_tm_body_place_grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs_tm_body_place_grid article {
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.cs_tm_body_why_grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs_tm_body_section .cs_tm_callout {
  margin-top: 8px;
}

@media (max-width: 991px) {
  .cs_tm_body_mechanism {
    grid-template-columns: 1fr;
  }

  .cs_tm_body_visual {
    max-width: 560px;
    position: static;
  }

  .cs_tm_body_why_grid,
  .cs_tm_body_place_grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .cs_tm_body_why_grid,
  .cs_tm_body_place_grid {
    grid-template-columns: 1fr;
  }

  .cs_tm_body_beats strong,
  .cs_tm_body_why_grid strong {
    font-size: 19px;
  }

  .cs_tm_body_beats p,
  .cs_tm_body_why_grid p,
  .cs_tm_body_place_grid article {
    font-size: 16px;
  }
}

/* —— Icons —— */
.cs_tm_icon {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff !important;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 16px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  margin-bottom: 12px;
  width: 44px;
}

.cs_tm_icon i,
.cs_tm_icon .fa-solid,
.cs_tm_icon .fa-regular {
  color: #fff !important;
  font-style: normal;
  line-height: 1;
}

.cs_tm_icon_sm {
  font-size: 14px;
  height: 36px;
  margin-bottom: 10px;
  width: 36px;
}

.cs_tm_page .cs_of_quick_cards .cs_tm_icon {
  margin-bottom: 12px;
}

.cs_tm_page #w-skrocie .cs_of_quick_cards h3 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.cs_tm_page #w-skrocie .cs_of_quick_cards p {
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.65em;
}

/* —— Media: keep images supporting, not dominating —— */
.cs_tm_page .cs_tm_patent_media,
.cs_tm_page .cs_tm_split_media,
.cs_tm_page .cs_tm_section_visual,
.cs_tm_page .cs_tm_process > img {
  overflow: hidden;
}

.cs_tm_page .cs_tm_patent_media img,
.cs_tm_page .cs_tm_split_media img,
.cs_tm_page .cs_tm_section_visual img,
.cs_tm_page .cs_tm_process > img {
  border-radius: 12px;
  display: block;
  height: 240px;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.cs_tm_page .cs_tm_split_media img.cs_tm_media_probe {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  height: auto;
  max-height: none;
  max-width: 560px;
  object-fit: cover;
  object-position: center 40%;
  width: 100%;
}

.cs_tm_wide_visual {
  margin: 0 0 clamp(32px, 4vw, 48px);
  width: 100%;
}

.cs_tm_wide_visual img {
  border-radius: 12px;
  display: block;
  height: auto;
  max-height: none;
  object-fit: contain;
  width: 100%;
}

.cs_tm_page .cs_tm_section_visual {
  margin: 0 0 24px;
  max-width: 720px;
}

.cs_tm_page .cs_tm_section_visual img {
  height: 200px;
  max-height: 200px;
}

.cs_tm_page .cs_of_hero_aside img {
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: 62% 12%;
  width: 100%;
}

@media (max-width: 991px) {
  .cs_tm_page .cs_tm_patent_media img,
  .cs_tm_page .cs_tm_split_media img,
  .cs_tm_page .cs_tm_process > img {
    height: 200px;
    max-height: 200px;
  }

  .cs_tm_page .cs_tm_split_media img.cs_tm_media_probe {
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: 480px;
    object-position: center 40%;
  }

  .cs_tm_page .cs_tm_section_visual {
    max-width: none;
  }

  .cs_tm_page .cs_tm_section_visual img {
    height: 160px;
    max-height: 160px;
  }
}

.cs_tm_split {
  align-items: start;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
}

.cs_tm_split_copy .cs_of_section_head {
  margin-bottom: 16px;
}

.cs_tm_split_copy .cs_of_prose {
  max-width: none;
}

.cs_tm_split_actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

@media (max-width: 991px) {
  .cs_tm_split {
    grid-template-columns: 1fr;
  }
}

.cs_tm_who_grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cs_tm_who_card {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  padding: 20px 18px;
}

.cs_tm_who_card p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.cs_tm_level,
.cs_tm_area,
.cs_tm_phase {
  position: relative;
}

.cs_tm_level_num {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cs_tm_levels_head {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 760px;
}

.cs_tm_levels_head h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.12em;
  margin: 0 0 16px;
}

.cs_tm_levels_head p {
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.7em;
  margin: 0;
}

.cs_tm_levels_body {
  align-items: start;
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

.cs_tm_levels_visual {
  margin: 0;
  position: sticky;
  top: 120px;
}

.cs_tm_levels_visual img {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  display: block;
  max-height: min(780px, calc(100vh - 160px));
  object-fit: cover;
  object-position: center 46%;
  width: 100%;
}

.cs_tm_levels_visual figcaption {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.55em;
  margin-top: 14px;
}

.cs_tm_levels_section .cs_tm_levels {
  gap: 10px;
  grid-template-columns: 1fr;
}

.cs_tm_levels_section .cs_tm_level {
  align-items: start;
  display: grid;
  gap: 2px 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 16px 18px;
}

.cs_tm_levels_section .cs_tm_level .cs_tm_icon {
  align-self: center;
  grid-row: 1 / span 3;
  margin: 0;
}

.cs_tm_levels_section .cs_tm_level_num {
  margin-bottom: 2px;
}

.cs_tm_levels_section .cs_tm_level strong {
  font-size: 20px;
  margin: 0 0 4px;
}

.cs_tm_levels_section .cs_tm_level p {
  font-size: 15px;
}

.cs_tm_compare_icon_row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.cs_tm_related_visual {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}

.cs_tm_related_visual .cs_tm_icon {
  margin-bottom: 0;
  margin-top: 4px;
}

/* Tighten patent image column so copy stays primary */
.cs_tm_patent {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.cs_tm_patent_reverse {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

/* —— Gallery + lightbox —— */
.cs_tm_gallery {
  margin-top: 32px;
}

.cs_tm_gallery_intro {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 760px;
}

.cs_tm_gallery_group {
  margin: 0 0 28px;
}

.cs_tm_gallery_group:last-of-type {
  margin-bottom: 0;
}

.cs_tm_gallery_group h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px;
}

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

.cs_tm_gallery_grid[data-cols="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cs_tm_gallery_grid[data-cols="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs_tm_gallery_grid[data-cols="1"] {
  grid-template-columns: minmax(0, 280px);
}

.cs_tm_gallery_item {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  border-radius: 12px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cs_tm_gallery_item:hover,
.cs_tm_gallery_item:focus-visible {
  border-color: rgba(169, 0, 93, 0.35);
  box-shadow: 0 12px 28px rgba(54, 0, 27, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.cs_tm_gallery_item img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.cs_tm_gallery_meta {
  color: var(--secondary);
  display: block;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px 14px;
}

.cs_tm_gallery_check {
  height: 1px;
  left: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.cs_tm_gallery_expand {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    margin 0.45s ease,
    visibility 0s linear 0.5s;
  visibility: hidden;
}

.cs_tm_gallery_expand_inner {
  min-height: 0;
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs_tm_gallery_check:checked ~ .cs_tm_gallery_expand {
  grid-template-rows: 1fr;
  margin-top: 14px;
  opacity: 1;
  pointer-events: auto;
  transition:
    grid-template-rows 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    margin 0.45s ease,
    visibility 0s linear 0s;
  visibility: visible;
}

.cs_tm_gallery_check:checked ~ .cs_tm_gallery_expand .cs_tm_gallery_expand_inner {
  transform: none;
}

.cs_tm_gallery_actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.cs_tm_gallery_toggle,
.cs_tm_gallery_toggle span {
  color: #fff;
}

.cs_tm_gallery_toggle {
  align-items: center;
  background: var(--accent);
  border: none;
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(195, 0, 107, 0.24);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 54px;
  min-width: 240px;
  padding: 16px 36px;
  text-transform: uppercase;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cs_tm_gallery_toggle:hover,
.cs_tm_gallery_check:focus-visible ~ .cs_tm_gallery_actions .cs_tm_gallery_toggle {
  background: #a4005c;
  box-shadow: 0 16px 32px rgba(195, 0, 107, 0.32);
  transform: translateY(-2px);
}

.cs_tm_gallery_check:checked ~ .cs_tm_gallery_actions .cs_tm_gallery_toggle_more,
.cs_tm_gallery_check:not(:checked) ~ .cs_tm_gallery_actions .cs_tm_gallery_toggle_less {
  display: none;
}

.cs_tm_lightbox {
  align-items: center;
  background: rgba(20, 8, 14, 0.92);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10000;
}

.cs_tm_lightbox.is_open {
  display: flex;
}

.cs_tm_lightbox_dialog {
  max-height: calc(100vh - 48px);
  max-width: min(1100px, 100%);
  overflow: auto;
  position: relative;
  width: 100%;
}

.cs_tm_lightbox_dialog img {
  border-radius: 12px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  width: 100%;
}

.cs_tm_lightbox_caption,
.cs_tm_lightbox_note {
  color: #fff;
  line-height: 1.55;
  margin: 14px auto 0;
  max-width: 760px;
  text-align: center;
}

.cs_tm_lightbox_caption {
  font-size: 15px;
}

.cs_tm_lightbox_note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.cs_tm_lightbox_close,
.cs_tm_lightbox_nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  position: absolute;
  width: 44px;
}

.cs_tm_lightbox_close {
  right: 0;
  top: 0;
  z-index: 2;
}

.cs_tm_lightbox_nav {
  top: 50%;
  transform: translateY(-50%);
}

.cs_tm_lightbox_prev { left: 0; }
.cs_tm_lightbox_next { right: 0; }

.cs_tm_lightbox_close:hover,
.cs_tm_lightbox_nav:hover,
.cs_tm_lightbox_close:focus-visible,
.cs_tm_lightbox_nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

body.cs_tm_lightbox_active {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .cs_tm_gallery_grid,
  .cs_tm_gallery_grid[data-cols="4"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cs_tm_gallery_grid,
  .cs_tm_gallery_grid[data-cols="4"],
  .cs_tm_gallery_grid[data-cols="3"],
  .cs_tm_gallery_grid[data-cols="1"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs_tm_lightbox {
    padding: 12px;
  }

  .cs_tm_lightbox_nav {
    top: auto;
    bottom: 8px;
    transform: none;
  }

  .cs_tm_lightbox_prev { left: 8px; }
  .cs_tm_lightbox_next { right: 8px; }
}

/* —— Słowo od ekspertki —— */
.cs_tm_expert_head {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 760px;
}

.cs_tm_expert_head h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.12em;
  margin: 0 0 16px;
}

.cs_tm_expert_head p {
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.7em;
  margin: 0;
}

.cs_tm_expert_body {
  align-items: start;
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
}

.cs_tm_expert_visual {
  margin: 0;
  position: sticky;
  top: 120px;
}

.cs_tm_expert_visual img {
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  display: block;
  max-height: min(680px, calc(100vh - 200px));
  object-fit: cover;
  object-position: 64% 0%;
  width: 100%;
}

.cs_tm_expert_visual figcaption {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.55em;
  margin-top: 14px;
}

.cs_tm_expert_pull {
  background: #fff;
  border-left: 3px solid var(--accent);
  margin: 0 0 18px;
  padding: 22px 24px;
}

.cs_tm_expert_pull p {
  color: var(--primary);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.cs_tm_expert_beats {
  display: grid;
  gap: 10px;
}

.cs_tm_expert_beats article {
  background: #fff;
  border: 1px solid rgba(48, 48, 48, 0.08);
  padding: 16px 18px;
}

.cs_tm_expert_beats strong {
  color: var(--primary);
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 2px 0 8px;
}

.cs_tm_expert_beats p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.cs_tm_expert_story cite {
  color: var(--primary);
  display: block;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  margin-top: 22px;
}

.cs_tm_expert_story cite span {
  color: var(--secondary);
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

@media (max-width: 991px) {
  .cs_tm_levels_body {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .cs_tm_levels_visual {
    max-width: 560px;
    position: static;
  }

  .cs_tm_levels_visual img {
    aspect-ratio: 4 / 5;
    max-height: 520px;
    object-fit: cover;
  }

  .cs_tm_expert_body {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .cs_tm_expert_visual {
    max-width: 560px;
    position: static;
  }

  .cs_tm_expert_visual img {
    aspect-ratio: 4 / 5;
    max-height: 560px;
    object-position: 68% 12%;
  }
}
