:root {
  --kw-bg: #f5f8fb;
  --kw-bg-soft: #eef3f7;
  --kw-surface: rgba(255, 255, 255, 0.88);
  --kw-surface-strong: #ffffff;
  --kw-border: rgba(137, 135, 159, 0.18);
  --kw-border-strong: rgba(137, 135, 159, 0.28);
  --kw-shadow: 0 18px 40px rgba(44, 62, 80, 0.08);
  --kw-shadow-soft: 0 10px 24px rgba(44, 62, 80, 0.06);
  --kw-primary: #2c3e50;
  --kw-primary-soft: #5f7486;
  --kw-accent: #89879f;
  --kw-accent-dark: #6f6c86;
  --kw-footer: #22303f;
}

html {
  scroll-behavior: smooth;
}

body.site-page,
body.standalone-page,
body.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(137, 135, 159, 0.18), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #eff4f8 100%);
  color: var(--kw-primary);
}

body.site-page {
  position: relative;
}

body.site-page a,
body.standalone-page a,
body.legal-page a {
  color: var(--kw-accent);
  transition: color 0.2s ease, opacity 0.2s ease;
}

body.site-page a:hover,
body.standalone-page a:hover,
body.legal-page a:hover {
  color: var(--kw-primary);
  text-decoration: none;
}

#mainNav {
  background: rgba(44, 62, 80, 0.92) !important;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.18);
  backdrop-filter: blur(10px);
}

#mainNav .container {
  max-width: 1180px;
}

#mainNav .navbar-brand {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#mainNav .navbar-nav li.nav-item a.nav-link {
  color: rgba(255, 255, 255, 0.86);
}

#mainNav .navbar-nav li.nav-item a.nav-link:hover,
#mainNav .navbar-nav li.nav-item a.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

header.masthead.bg-primary {
  margin: 1.4rem 1rem 0;
  padding-top: calc(4rem + 72px);
  padding-bottom: 3rem;
  border-radius: 32px;
  background: linear-gradient(145deg, #8a889f 0%, #6e8091 100%) !important;
  box-shadow: var(--kw-shadow);
}

header.masthead .container {
  max-width: 460px;
}

header.masthead img {
  width: min(270px, 64vw) !important;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

section {
  padding: 2.5rem 0;
}

section > .container {
  max-width: 1120px;
  padding: 2rem 1.35rem;
  background: var(--kw-surface);
  border: 1px solid var(--kw-border);
  border-radius: 28px;
  box-shadow: var(--kw-shadow-soft);
}

section h2,
section h3,
section h4 {
  color: var(--kw-primary) !important;
}

section h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
}

section h3,
section h4 {
  letter-spacing: 0.05em;
}

.lead {
  color: var(--kw-primary-soft);
  line-height: 1.75;
}

#info .container {
  text-align: center;
}

#info-intro-text {
  max-width: 52rem;
  margin: 0 auto;
}

#intro-address,
#contact-links,
#map-address {
  max-width: 28rem;
  margin: 0.3rem auto 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--kw-border);
  border-radius: 18px;
  background: rgba(238, 243, 247, 0.72);
}

#contact-links a,
#intro-address a,
#map-address a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

#offers-label {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--kw-primary);
}

#contact-offers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.site-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: #eef3f7;
  border: 1px solid var(--kw-border-strong);
  color: var(--kw-primary);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

#video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.video-card {
  padding: 1rem;
  border: 1px solid var(--kw-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: var(--kw-shadow-soft);
}

.video-card__frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #dce6ee;
  padding-top: 56.25%;
}

.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-card__caption {
  margin: 0.9rem 0 0;
  color: var(--kw-primary-soft);
  font-size: 0.92rem;
}

.video-list--teaser {
  display: block !important;
}

.video-library-teaser {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid var(--kw-border);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: var(--kw-shadow-soft);
  color: inherit !important;
  text-decoration: none;
}

.video-library-teaser__media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem;
}

.video-library-teaser__lead,
.video-library-teaser__stack-item {
  overflow: hidden;
  border-radius: 20px;
  background: #dfe7ee;
}

.video-library-teaser__lead {
  min-height: 230px;
}

.video-library-teaser__stack {
  display: grid;
  gap: 0.55rem;
}

.video-library-teaser__stack-item {
  min-height: 111px;
}

.video-library-teaser__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-library-teaser__fallback {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #6f8091 0%, #8a889f 100%);
  color: #ffffff;
}

.video-library-teaser__platform {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-library-teaser__fallback-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.video-library-teaser__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(44, 62, 80, 0.82);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-library-teaser__body {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.video-library-teaser__label {
  color: var(--kw-primary-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-library-teaser__title {
  color: var(--kw-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.video-library-teaser__text {
  color: var(--kw-primary-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.video-library-teaser__footer {
  margin-top: 0.15rem;
}

.video-library-teaser__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #8a889f 0%, #6e8091 100%);
  color: #ffffff !important;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(44, 62, 80, 0.12);
}

.video-teaser-grid,
.video-library {
  display: grid;
  gap: 1rem;
}

.video-teaser-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--kw-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: var(--kw-shadow-soft);
  color: inherit !important;
}

.video-teaser-card__image,
.video-library__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-teaser-card__fallback,
.video-library__preview--fallback {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.35rem;
  min-height: 190px;
  padding: 1rem;
  background: linear-gradient(135deg, #6f8091 0%, #8a889f 100%);
  color: #ffffff;
}

.video-teaser-card__platform,
.video-library__preview-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-teaser-card__fallback-title,
.video-library__preview-text {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.video-teaser-card__body {
  padding: 0.95rem 1rem 1.05rem;
}

.video-teaser-card__label {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--kw-primary-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-teaser-card__title {
  display: block;
  color: var(--kw-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.video-teaser-footer {
  margin-top: 0.9rem;
}

.video-teaser-footer__link,
.video-library__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(137, 135, 159, 0.18);
  background: #ffffff;
  color: var(--kw-primary) !important;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.video-teaser-footer__link {
  width: 100%;
  background: linear-gradient(135deg, #8a889f 0%, #6e8091 100%);
  border: 0;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(44, 62, 80, 0.12);
}

.video-library__card {
  overflow: hidden;
  border: 1px solid var(--kw-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: var(--kw-shadow-soft);
}

.video-library__preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.video-library__play-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(44, 62, 80, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-library__body {
  padding: 1rem;
}

.video-library__title {
  margin: 0 0 0.75rem;
  color: var(--kw-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.video-library__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.video-library__action--primary {
  border: 0;
  background: linear-gradient(135deg, #8a889f 0%, #6e8091 100%);
  color: #ffffff !important;
}

.video-library__player {
  position: relative;
  overflow: hidden;
  background: #dce6ee;
  padding-top: 56.25%;
}

.video-library__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.service-card {
  height: 100%;
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--kw-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: var(--kw-shadow-soft);
}

.service-card__title {
  margin: 0 0 0.7rem;
  color: var(--kw-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-card__body {
  margin: 0;
  color: var(--kw-primary-soft);
  line-height: 1.7;
}

.Image {
  padding: 0.4rem 0;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.Image img,
.gallery-tile__image,
.img-responsive,
.img-responsive100 {
  border-radius: 22px;
  border: 1px solid var(--kw-border);
  box-shadow: var(--kw-shadow-soft);
}

.Image--poster img,
.Image--schedule img {
  width: 100%;
  background: linear-gradient(180deg, #f9fbfd 0%, #edf3f7 100%);
  object-fit: contain;
}

.Image--poster img {
  max-height: min(72vh, 780px);
  padding: 0.75rem;
}

.Image--schedule img {
  max-height: min(68vh, 680px);
  padding: 0.5rem;
}

.Image--feature {
  max-width: 760px;
  margin: 0 auto 1rem;
}

.Image--feature img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.Image--feature-wide {
  max-width: none;
  margin: 0 0 1.2rem;
}

.Image--feature-wide img {
  max-height: 320px;
  object-position: center 38%;
}

.Image--physio-banner img {
  border: 0;
  box-shadow: none;
}

.service-grid--physio {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.service-grid--physio .service-card {
  padding: 1.25rem 1.2rem;
  border-color: rgba(95, 116, 134, 0.1);
  background: linear-gradient(180deg, #fafdff 0%, #eef4f8 100%);
  box-shadow: none;
}

.service-grid--physio .service-card__title {
  margin: 0 0 0.7rem;
  color: #3d566c;
}

.service-grid--physio .service-card__body {
  margin: 0;
}

.service-grid--mama .service-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9f4f4 100%);
}

#schedule-title,
#hatha-yoga-title,
#videos-subtitle,
#gallery-subtitle,
#guest-lecturers-title,
#current-courses-title {
  color: var(--kw-primary-soft) !important;
}

.team .row {
  align-items: start;
}

.team .portfolio-item {
  border-radius: 24px;
  box-shadow: var(--kw-shadow-soft);
}

#team-profile-name {
  display: block;
  margin-top: 1rem;
  color: var(--kw-primary);
  font-size: 1.35rem;
  font-weight: 700;
}

#team-profile-role {
  color: var(--kw-primary-soft);
}

.guest-lecturers-table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--kw-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--kw-shadow-soft);
}

.guest-lecturers-table th {
  border: 0;
  background: linear-gradient(135deg, #7a7a93 0%, #647a8c 100%);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.guest-lecturers-table td {
  border-color: rgba(137, 135, 159, 0.12);
  background: #ffffff;
  color: var(--kw-primary-soft);
}

.guest-lecturers-table td:first-child {
  color: var(--kw-primary);
  font-weight: 700;
}

#map {
  width: calc(100% - 2rem);
  max-width: 1120px;
  height: 420px;
  margin: 0 auto;
  border: 1px solid var(--kw-border);
  border-radius: 28px;
  box-shadow: var(--kw-shadow-soft);
}

#gallery-description {
  max-width: 34rem;
  margin: 0 auto 1.2rem;
  text-align: center;
}

.gallery-tile {
  margin-bottom: 1rem;
}

.gallery-tile__image {
  margin: 0;
  opacity: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-tile__image:hover {
  transform: translateY(-4px);
}

.footer {
  margin: 2rem 1rem 0;
  padding: 3rem 0;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #304354 0%, #22303f 100%);
}

.footer .container {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 1rem;
}

.footer h4,
.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.copyright {
  background: #1a252f;
}

.standalone-page,
.legal-page {
  padding: 2rem 1rem 3rem;
}

.standalone-shell,
.legal-shell {
  max-width: 900px;
  margin: 0 auto;
}

.standalone-hero,
.legal-hero {
  margin-bottom: 1.2rem;
  padding: 1.6rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(145deg, #8a889f 0%, #6e8091 100%);
  color: #ffffff;
  box-shadow: var(--kw-shadow);
}

.standalone-hero h1,
.legal-hero h1 {
  margin: 0.25rem 0 0.45rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.standalone-hero p,
.legal-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
}

.standalone-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standalone-card,
.legal-card {
  padding: 1.35rem;
  border: 1px solid var(--kw-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--kw-shadow-soft);
}

.legal-content h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  color: var(--kw-primary);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--kw-primary-soft);
  line-height: 1.75;
}

.legal-content strong {
  color: var(--kw-primary);
}

@media (max-width: 991.98px) {
  header.masthead.bg-primary {
    border-radius: 26px;
  }

  section > .container {
    padding: 1.5rem 1rem;
    border-radius: 24px;
  }

  .footer {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    border-radius: 24px 24px 0 0;
  }

  .service-grid--physio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  header.masthead.bg-primary {
    margin: 1rem 0.75rem 0;
    padding-top: calc(2.6rem + 72px);
    padding-bottom: 1.55rem;
  }

  section {
    padding: 1rem 0;
  }

  section > .container {
    padding: 1rem 0.85rem;
    border-radius: 20px;
  }

  #intro-address,
  #contact-links,
  #map-address {
    padding: 0.8rem 0.85rem;
  }

  #video-list,
  .service-grid {
    gap: 0.85rem;
  }

  .service-card,
  .video-card {
    border-radius: 20px;
  }

  .service-grid--physio {
    gap: 0.85rem;
  }

  .service-grid--physio .service-card {
    display: block;
  }

  .poster-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .Image--poster img,
  .Image--schedule img,
  .Image--feature img {
    max-height: none;
    padding: 0;
    object-fit: contain;
  }

  .guest-lecturers-table {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .guest-lecturers-table td {
    background: transparent;
  }

  .video-teaser-grid,
  .video-library {
    gap: 0.85rem;
  }

  .video-library-teaser {
    gap: 0.85rem;
  }

  .video-library-teaser__media {
    grid-template-columns: 1fr;
  }

  .video-library-teaser__lead {
    min-height: 210px;
  }

  .video-library-teaser__stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-library-teaser__stack-item {
    min-height: 104px;
  }

  .mobile-disclosure__item--hidden {
    display: none !important;
  }

  .mobile-disclosure__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.78rem 0.95rem;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #8a889f 0%, #6e8091 100%);
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(44, 62, 80, 0.12);
  }

  #info-intro-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  #team > .container {
    padding-bottom: 0.85rem;
  }

  .standalone-page,
  .legal-page {
    padding: 1rem 0.75rem 2rem;
  }

  .standalone-hero,
  .legal-hero,
  .standalone-card,
  .legal-card {
    border-radius: 22px;
  }
}
