/* Fitroxx branding, native controls, and progressive enhancement.
   reference.css preserves the authorized reference's component geometry. */
:root {
  --blue: #0c7bc0;
  --orange: #c8133c;
  --main: #0c7bc0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
}
article,
aside,
footer,
header,
main,
nav,
section {
  display: block;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}
svg {
  vertical-align: middle;
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  text-decoration: none;
}
button:not(.button) {
  border: 0;
  padding: 0;
  min-width: 0;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
}
ul,
ol {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.site-container {
  position: relative;
}
@media (min-width: 576px) {
  .site-container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .site-container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .site-container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .site-container {
    max-width: 1140px;
  }
}
.page-heading {
  font-size: 42px !important;
  line-height: 1.3 !important;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  background: white;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.header .logo img {
  width: 175px;
  height: auto;
}
footer .logo img {
  width: 240px;
  height: auto;
}
.brand-descriptor {
  color: var(--blue);
  font-weight: 500;
}
.header .top-line {
  justify-content: space-between;
}
.header-controls {
  margin-left: 24px;
}
.header .main-nav-list {
  margin-bottom: 0;
}
.header .main-nav-list a[aria-current="page"] {
  color: var(--orange);
}
.hamburger,
.close-nav,
.up-btn {
  border: 0;
  background: transparent;
}
.hamburger svg,
.close-nav svg,
.up-btn svg {
  margin: 0;
}
.hamburger svg path {
  fill: #3b4757;
}
.close-nav svg path {
  fill: none;
  stroke: #3b4757;
}
.up-btn {
  background: var(--blue);
}
.up-btn svg path {
  fill: white;
}
.contact-list a {
  overflow-wrap: anywhere;
}
.contact-list p {
  margin-bottom: 18px;
}
.quickLinks-item {
  display: block;
  border: 0;
  text-align: center;
  font: inherit;
  background: transparent !important;
}
.quickLinks-wrap .quickLinks-item .quickLinks-head {
  background: inherit;
}
.quickLinks-wrap .quickLinks-item[data-for-quick="2"] .quickLinks-head {
  background: var(--orange);
}
.quickLinks-wrap .quickLinks-item[data-for-quick="4"] .quickLinks-head {
  background: var(--blue);
}
.quickLinks-item[data-for-quick="2"] {
  background: var(--orange) !important;
}
.quickLinks-item[data-for-quick="4"] {
  background: var(--blue) !important;
}
.quickLinks-desc {
  max-height: 80vh;
  overflow: auto;
}
.quickLinks-desc.hover {
  visibility: visible;
  opacity: 1;
}
.quick-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--blue);
  background: #eaf5f7;
  font-size: 25px;
  z-index: 2;
}
.form-note {
  font-size: 12px !important;
  margin-top: 18px;
  line-height: 1.5;
}
.main-form input,
.main-form textarea {
  width: 100%;
}
.main-form textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-container .main-form {
  max-width: 740px;
}
.contact-container > .site-container > .tw-flex > div {
  width: 100%;
  max-width: 780px;
}
.heroSlider {
  overflow: hidden;
  position: relative;
}
.heroSlider .hero-image img {
  display: block;
  width: 100%;
  height: auto;
}
.fx-carousel {
  position: relative;
  min-width: 0;
}
.fx-viewport {
  overflow: hidden;
  width: 100%;
}
.fx-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.3s ease;
  width: 100%;
  align-items: stretch;
}
.fx-track > * {
  flex-shrink: 0 !important;
  min-width: 0;
  list-style: none;
}
.fx-track > li::before,
.fx-track > li::after {
  display: none;
}
.fx-track > .swiper-slide {
  height: auto;
}
.fx-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
}
.fx-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  background: #dce9ed;
}
.fx-dots button[aria-current="true"] {
  background: var(--orange);
}
.fx-arrows {
  position: absolute;
  inset: 50% 6px auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}
.fx-arrows button {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffffde;
  color: var(--blue);
  box-shadow: 0 2px 8px #0001;
  font-size: 27px;
  line-height: 1;
}
.fx-pause {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: #ffffffde;
  color: var(--blue);
  font-size: 15px;
}
.heroSlider .fx-track {
  gap: 30px;
}
.testimSlider .fx-track {
  gap: 20px;
}
.testimSlider {
  overflow: hidden;
}
.testimCard {
  height: 100%;
}
.swiper-button-next,
.swiper-button-prev {
  display: none;
}
.statement-list.fx-carousel,
.adventage-slider.fx-carousel {
  display: block;
}
.teacher-slider .fx-track > *,
.education-slier .fx-track > * {
  padding: 0 15px 25px;
}
.statement-list .fx-track > li,
.adventage-slider .fx-track > li {
  padding: 0 15px;
}
.program-big-slider:not(.fx-carousel) img {
  width: 100%;
}
.boxed-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.boxed-gallery-grid .grid-item {
  position: relative;
}
.boxed-gallery-grid .gallery-item a {
  display: block;
}
.boxed-gallery-grid .gallery-item img {
  width: 100%;
  height: auto;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.pagination button {
  width: 40px;
  height: 40px;
  background: #eaf5f7;
  border-radius: 50%;
  color: var(--blue);
}
.pagination button[aria-current="page"] {
  background: var(--orange);
  color: #fff;
}
.gallery-status {
  font-size: 13px;
  text-align: center;
  padding-top: 12px;
}
.grid-filter a {
  cursor: pointer;
}
.learning-elements-wrap .learning-item {
  border: 0;
  padding: 0;
  font: inherit;
}
.learning-elements-wrap .learning-item p {
  pointer-events: none;
}
.learning-elements-wrap .for-tab {
  pointer-events: none;
}
.lightbox {
  border: 0;
  border-radius: 12px;
  padding: 48px 18px 18px;
  width: min(1000px, 94vw);
  max-height: 94vh;
  background: #fff;
  color: #3b4757;
}
.lightbox::backdrop {
  background: #152b3be6;
}
.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-height: 72vh;
  width: auto;
  object-fit: contain;
}
.lightbox iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.lightbox-close {
  position: absolute;
  right: 12px;
  top: 8px;
  width: 34px;
  height: 34px;
  background: #eaf5f7;
  color: var(--blue);
  font-size: 28px;
  border-radius: 50%;
}
.lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}
.lightbox-controls button {
  border-radius: 25px;
  padding: 8px 18px;
  color: white;
  background: var(--blue);
}
.lightbox-caption {
  text-align: center;
  margin: 10px 0 0;
  font-size: 13px;
}
/* Content remains visible if JavaScript fails or is switched off. */
html:not(.js) .on-scroll {
  opacity: 1 !important;
  transform: none !important;
}
html:not(.js) .tab-content {
  display: block !important;
}
html:not(.js) .swiper-wrapper {
  display: flex;
  overflow: auto;
}
html:not(.js) .swiper-slide {
  flex: 0 0 100%;
}
html:not(.js) .heroSlider .swiper-slide:not(:first-child) {
  display: none;
}
@media (max-width: 1199px) {
  .header .main-nav {
    position: fixed;
    z-index: 1001;
  }
  .header .main-nav.active {
    visibility: visible;
  }
}
@media (max-width: 991px) {
  .page-heading {
    font-size: 34px !important;
  }
  .quickLinks-wrap {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    top: auto;
    transform: none;
    width: 100%;
    z-index: 950;
  }
  .quickLinks-wrap .quickLinks-item {
    width: 50%;
    border-radius: 0 !important;
    flex: 0 0 50%;
  }
  .quickLinks-wrap .quickLinks-item .quickLinks-head {
    width: 100%;
    height: 65px;
    padding: 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    align-items: center;
  }
  .quickLinks-wrap .quickLinks-item .quickLinks-head img {
    width: 24px;
    margin: 0;
  }
  .quickLinks-wrap .quickLinks-item .quickLinks-head p {
    display: block;
    margin: 0;
    font-size: 12px;
    transform: none;
    height: auto;
  }
  .quickLinks-wrap .quickLinks-desc {
    position: relative;
    top: 0 !important;
    left: 0;
    right: auto;
    width: 100%;
    order: 3;
    display: none;
    visibility: visible;
    opacity: 1;
    border-radius: 0;
    max-height: 75vh;
  }
  .quickLinks-wrap .quickLinks-desc.hover {
    display: block;
  }
  .boxed-gallery-grid .grid-item {
    width: 33.3333%;
  }
}
@media (max-width: 767px) {
  .boxed-gallery-grid .grid-item {
    width: 50%;
    padding: 0 8px;
    margin-bottom: 16px;
  }
  .boxed-gallery-grid {
    margin: 0 -8px;
  }
  .header {
    padding: 18px 0;
  }
  .header .logo img {
    width: 150px;
  }
  footer .footer-top {
    padding: 65px 0 25px;
  }
  .contact-container .main-form {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .page-heading {
    font-size: 26px !important;
  }
  .quickLinks-wrap .quickLinks-content {
    padding: 35px 20px 20px;
  }
  .contact-list a {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .gallery-item img,
  .icon img,
  .count-numb img {
    transform: none !important;
  }
}

/* Fitroxx photography: portrait sources retain their proportions in each layout.
   Pairing portraits fills the existing wide spaces without stretching a child. */
.heroSection {
  background: #eaf5f8;
}
.fitroxx-hero-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(1140px, 100%);
  margin: auto;
  padding: 14px 15px 22px;
}
.heroSlider .fitroxx-hero-frame img {
  width: 100%;
  height: clamp(330px, 41vw, 530px);
  object-fit: cover;
  object-position: 50% 48%;
  border-radius: 28px;
}
.heroSlider .fx-dots {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 14px;
  border-radius: 24px;
  background: #ffffffed;
}
.heroSlider .fx-pause {
  bottom: 35px;
  right: max(30px, calc((100% - 1090px) / 2));
}
.heroSlider .fx-arrows {
  inset-inline: max(25px, calc((100% - 1100px) / 2));
}
.fitroxx-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px 0;
}
.fitroxx-photo-pair img {
  width: 100%;
  height: 390px;
  display: block;
  object-fit: cover;
  object-position: 50% 53%;
  border-radius: 100px 100px 30px 30px;
}
.fitroxx-photo-pair img:nth-child(2) {
  border-radius: 30px 30px 100px 100px;
  margin-top: 45px;
}
.intro-photo-pair {
  padding: 45px 0;
}
.rest-photo-pair img {
  height: 380px;
}
.svg-block.video-block .fitroxx-photo-pair img {
  transform: none;
}
.fitroxx-page-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: #eaf5f8;
}
.fitroxx-page-photos img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 43%;
}
.count-section {
  background: linear-gradient(120deg, #eaf5f8, #f4fafd 55%, #fff0f4);
}
.video-section {
  background: #f0f8fb;
  height: auto;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.fitroxx-tour-row {
  align-items: center;
}
.fitroxx-tour-row > div:first-child {
  width: 50%;
  flex: none;
}
.video-section h2,
.video-section p {
  max-width: 100%;
}
.fitroxx-tour-photos {
  width: 50%;
  padding: 0 15px;
}
.fitroxx-tour-photos .fitroxx-photo-pair img {
  height: 390px;
}
.education-short .education-top img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: 50% 53%;
}
.program-card img {
  width: 100%;
  object-fit: cover;
}
.programs-section picture img {
  aspect-ratio: 480/390;
  object-fit: cover;
  object-position: 50% 52%;
}
.tab-values__img img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: 50% 48%;
  border-radius: 26px;
}
.teacher-card {
  overflow: hidden;
}
.fitroxx-team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 25px auto 5px;
  display: grid;
  place-items: center;
  background: #eaf5f8;
  border: 3px solid #fff;
  color: var(--blue);
  font-family: Poppins, Arial, sans-serif;
  font-size: 38px;
  font-weight: 600;
}
.teacher-card__info {
  width: 100% !important;
}
.boxed-gallery-grid .gallery-item a {
  overflow: hidden;
  border-radius: 18px;
}
.boxed-gallery-grid .gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 50% 51%;
  display: block;
}
.gallery-prewiev-wrap .gallery-item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 51%;
}
.gallery-prewiev-wrap .gallery-item a {
  border-radius: 20px;
}
.lightbox img {
  max-width: 100%;
}
.statement-ico img {
  width: 72px;
  height: 72px;
}
.count-numb img {
  width: 64px;
  height: 64px;
}
@media (max-width: 991px) {
  .fitroxx-photo-pair img {
    height: 350px;
  }
  .fitroxx-tour-photos .fitroxx-photo-pair img {
    height: 310px;
  }
  .education-short .education-top img {
    height: 300px;
  }
}
@media (max-width: 767px) {
  .fitroxx-hero-frame {
    gap: 10px;
    padding: 10px 10px 20px;
  }
  .heroSlider .fitroxx-hero-frame img {
    height: clamp(270px, 65vw, 400px);
    border-radius: 18px;
  }
  .heroSlider .fx-dots {
    bottom: 28px;
    gap: 10px;
    padding: 8px 12px;
  }
  .heroSlider .fx-arrows {
    inset-inline: 15px;
  }
  .heroSlider .fx-pause {
    right: 20px;
    bottom: 28px;
  }
  .fitroxx-photo-pair {
    gap: 12px;
  }
  .fitroxx-photo-pair img,
  .rest-photo-pair img {
    height: clamp(250px, 62vw, 370px);
    border-radius: 75px 75px 22px 22px;
  }
  .fitroxx-photo-pair img:nth-child(2) {
    margin-top: 25px;
    border-radius: 22px 22px 75px 75px;
  }
  .intro-photo-pair {
    padding: 30px 0 0;
  }
  .fitroxx-page-photos {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .fitroxx-page-photos img:nth-child(n + 4) {
    display: none;
  }
  .fitroxx-tour-row > div:first-child,
  .fitroxx-tour-photos {
    width: 100%;
  }
  .fitroxx-tour-photos {
    padding-top: 15px;
  }
  .fitroxx-tour-photos .fitroxx-photo-pair img {
    height: clamp(260px, 65vw, 400px);
  }
  .video-section {
    padding: 40px 0;
  }
  .gallery-prewiev-wrap .gallery-item a img {
    height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item img {
    transform: none !important;
  }
}
/* SVG viewboxes need explicit icon geometry in flex rows. */
.contact-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-list a img {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}
.quickLinks-head img {
  width: 38px;
  height: 38px;
}
.icons-list .icon img {
  width: 34px;
  height: 34px;
}
.teacher-card {
  flex-direction: column;
  padding: 30px;
}
.teacher-card .teacher-card__info {
  max-width: none;
}
.fitroxx-team-avatar {
  order: -1;
  flex-shrink: 0;
  margin: 0 0 20px;
}
.education-top img[src*="balloon-teamwork"],
.programs-section img[src*="balloon-fun"] {
  object-position: 50% 75%;
}
.gallery-prewiev-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.gallery-prewiev-wrap .gallery-item {
  width: auto;
  padding: 0;
  margin: 0;
}
.gallery-prewiev-wrap .gallery-item a {
  height: auto;
}
.gallery-prewiev-wrap .gallery-item a img {
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
@media (max-width: 767px) {
  .gallery-prewiev-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .gallery-prewiev-wrap .gallery-item:nth-child(n) {
    width: auto;
    margin: 0;
  }
}
.program-preview .program-slider-wrap .program-big-slider img {
  aspect-ratio: 480/390;
  height: auto;
  object-fit: cover;
  object-position: 50% 58%;
}
.program-preview img[src*="balloon-fun"] {
  object-position: 50% 76%;
}
.svg-block.video-block .fitroxx-photo-pair img {
  border-radius: 75px 75px 24px 24px;
}
.svg-block.video-block .fitroxx-photo-pair img:nth-child(2) {
  border-radius: 24px 24px 75px 75px;
}
@media (max-width: 991px) {
  .quickLinks-wrap .quickLinks-item .quickLinks-head img {
    height: 24px;
  }
}
