:root {
  --brand-dark: #001c48;
  --brand-accent: #00a8ff;
  --brand-muted: #7a8ca4;
  --section-light: #f5f8fb;
  --section-colored: #e4f4ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #102239;
  background-color: #ffffff;
  line-height: 1.7;
  padding-top: 77px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0077ff;
}

.site-header {
  position: relative;
  z-index: 1030;
}

.site-navbar {
  background: rgba(0, 28, 72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo {
  width: 56px;
  height: auto;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-main {
  font-size: 1.05rem;
}

.brand-sub {
  font-size: 0.68rem;
  color: #8bc4ff;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #ffffff;
}

.profile-menu {
  position: relative;
}

.profile-menu .profile-toggle svg {
  transition: transform 0.2s ease;
}

.profile-menu:hover .profile-toggle svg,
.profile-menu.is-open .profile-toggle svg {
  transform: rotate(180deg);
}

.profile-menu .profile-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(0, 28, 72, 0.98);
  border-radius: 1rem;
  min-width: 240px;
  padding: 1rem;
  box-shadow: 0 18px 36px rgba(5, 15, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 20;
}

.profile-menu:hover .profile-dropdown,
.profile-menu.is-open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  cursor: pointer;
}

.profile-dropdown-link:hover,
.profile-dropdown-link:focus {
  color: var(--brand-accent);
}

.profile-dropdown-link[data-profile-action="logout"] {
  color: #ff8f8f;
}

.profile-dropdown-link[data-profile-action="logout"]:hover {
  color: #ffb3b3;
}

@media (max-width: 991.98px) {
  .profile-menu .profile-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: rgba(0, 28, 72, 0.85);
    margin-top: 0.5rem;
    display: none;
  }

  .profile-menu.is-open .profile-dropdown {
    display: block;
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(8, 44, 92, 0.55), rgba(0, 168, 255, 0.55)),
    url('https://images.pexels.com/photos/863988/pexels-photo-863988.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 24, 48, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  text-align: center;
  padding-inline: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
}

.hero-wave svg {
  width: 100%;
  display: block;
}

.hero-wave path {
  fill: #ffffff;
}

.hero-small {
  min-height: 320px;
}

.hero-bg-blur {
  filter: blur(1px);
  transform: scale(1.05);
}

/* SECTIONS */
.section {
  padding-block: 4rem;
}

.section-light {
  background-color: var(--section-light);
}

.section-colored {
  background-color: var(--section-colored);
}

/* Вертикален фон като about.html (expert → mission → benefits → stats) — contacts, login */
.section-about-gradient {
  background: linear-gradient(
    270deg,
    #ffffff 0%,
    #fafcfe 12%,
    #f4f8fc 32%,
    #eef5fc 52%,
    #e7eff9 72%,
    #dde9f5 88%,
    #d0e1f0 100%
  );
}

.section-title {
  text-align: center;
  font-weight: bold;
  font-size: 1.9rem;
  margin-bottom: 2.5rem;
  color: #08305d;
  letter-spacing: 0.05em;
}

.section-title.align-left {
  text-align: left;
}

/* OFFER CARDS */
.offer-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.offer-card .card-body {
  min-height: 165px;
  padding: 1.5rem;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.15);
}

.home-offer-grid:hover .offer-card {
  opacity: 0.45;
  transform: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.home-offer-grid .offer-card:hover {
  opacity: 1;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.offer-swiper .swiper-slide {
  width: auto;
}

.offer-swiper .swiper-slide article {
  height: 100%;
}

.testimonials-swiper .swiper-slide .testimonial-card {
  height: 100%;
}

/* Global Swiper pagination — center dots under carousel (all instances) */
.swiper.offer-swiper > .offer-swiper-pagination.swiper-pagination,
.swiper.offer-swiper > .swiper-pagination {
  position: relative !important;
  inset: auto !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap;
  margin-inline: auto !important;
  text-align: center;
  box-sizing: border-box;
}

.swiper.offer-swiper > .offer-swiper-pagination .swiper-pagination-bullet,
.swiper.offer-swiper > .swiper-pagination .swiper-pagination-bullet {
  background: var(--brand-accent);
  opacity: 0.4;
  margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px) !important;
  flex-shrink: 0;
}

.swiper.offer-swiper > .offer-swiper-pagination .swiper-pagination-bullet-active,
.swiper.offer-swiper > .swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* FUN SECTION */
.fun-section {
  background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 55%);
}

.fun-stack img,
.fun-hero {
  border-radius: 1.25rem;
  object-fit: cover;
}

.fun-stack img {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.fun-section p {
  color: #425671;
  text-align: justify;
}

/* COURSE DETAILS */
.programs-section .course-detail-list {
  display: grid;
  gap: 1.75rem;
}

.programs-section .course-detail {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fcff 100%);
  border: 1px solid rgba(7, 89, 168, 0.1);
  box-shadow: 0 16px 30px rgba(6, 53, 102, 0.09);
}

.programs-section .course-detail:nth-child(even) {
  background: linear-gradient(145deg, #f2f9ff 0%, #e9f5ff 100%);
}

.programs-section .course-detail + .course-detail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -17px;
  height: 18px;
  background: linear-gradient(90deg, rgba(0, 168, 255, 0.18), rgba(255, 123, 84, 0.18));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C120 72 220 8 340 40 C460 72 560 8 680 40 C800 72 900 8 1020 40 C1100 60 1140 58 1200 40 L1200 80 L0 80 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C120 72 220 8 340 40 C460 72 560 8 680 40 C800 72 900 8 1020 40 C1100 60 1140 58 1200 40 L1200 80 L0 80 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.programs-section .program-row {
  min-height: 100%;
}

.programs-section .course-detail-media {
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(0, 28, 72, 0.16);
  aspect-ratio: 4 / 3;
  width: min(100%, 360px);
  margin-inline: auto;
}

.programs-section .course-detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.programs-section .program-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
}

.programs-section .course-detail h3 {
  position: relative;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: #08305d;
  padding-left: 1rem;
}

.programs-section .course-detail h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00a8ff, #ff7b54);
}

.programs-section .course-detail p {
  margin-bottom: 0;
  color: #3f5874;
  line-height: 1.75;
  max-width: 56ch;
  text-wrap: pretty;
}

@media (min-width: 992px) {
  .programs-section .course-detail-list {
    gap: 2.25rem;
  }

  .programs-section .course-detail {
    padding: 1.7rem 1.8rem;
  }

  .programs-section .course-detail:nth-child(even) .program-row {
    flex-direction: row-reverse;
  }
}

/* CERTIFICATE PATH */
.cert-path-intro {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  text-align: center;
  color: #2f4b6e;
  font-weight: 500;
}

.cert-path-list {
  position: relative;
  display: grid;
  gap: 1rem;
}

.cert-level-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f4fbff 100%);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  border: 2px solid rgba(0, 143, 214, 0.18);
  box-shadow: 0 12px 24px rgba(9, 51, 95, 0.12);
}

.cert-level-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.cert-level-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0a3a69;
}

.cert-level-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  animation: certIconFloat 3.2s ease-in-out infinite;
}

.cert-level-card p {
  margin: 0;
  color: #3d5b7b;
}

.cert-path-goal {
  margin: 1.5rem auto 0;
  max-width: 760px;
  background: linear-gradient(90deg, #ffd86b, #ffc94a);
  color: #473100;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(144, 104, 0, 0.25);
}

@keyframes certIconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (min-width: 992px) {
  .cert-path-list {
    max-width: 980px;
    margin-inline: auto;
    gap: 1.25rem;
  }

  .cert-path-list::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 740'%3E%3Cpath d='M840 500 C650 610, 300 560, 130 700' fill='none' stroke='%2300a8ff' stroke-width='14' stroke-linecap='round' stroke-dasharray='6 20' opacity='0.22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 0;
  }

  .cert-level-card {
    width: min(430px, 48%);
    z-index: 1;
    overflow: visible;
  }

  .cert-level-card:nth-child(odd) {
    justify-self: start;
  }

  .cert-level-card:nth-child(even) {
    justify-self: end;
  }

  .cert-level-card:nth-child(4n + 1),
  .cert-level-card:nth-child(4n + 2) {
    transform: rotate(-0.8deg);
  }

  .cert-level-card:nth-child(4n + 3),
  .cert-level-card:nth-child(4n + 4) {
    transform: rotate(0.8deg);
  }

  .cert-level-card:nth-child(1)::after {
    content: "";
    position: absolute;
    top: 52%;
    right: -220px;
    width: 230px;
    height: 145px;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 230 145'%3E%3Cpath d='M2 16 C78 20, 146 38, 228 124' fill='none' stroke='%2300a8ff' stroke-width='14' stroke-linecap='round' stroke-dasharray='8 19' opacity='0.36'/%3E%3Cpath d='M2 16 C78 20, 146 38, 228 124' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-dasharray='2 26' opacity='0.38'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .cert-level-card:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 56%;
    left: -238px;
    width: 248px;
    height: 152px;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 248 152'%3E%3Cpath d='M246 18 C162 18, 88 38, 4 136' fill='none' stroke='%2300a8ff' stroke-width='14' stroke-linecap='round' stroke-dasharray='8 19' opacity='0.36'/%3E%3Cpath d='M246 18 C162 18, 88 38, 4 136' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-dasharray='2 26' opacity='0.38'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .cert-level-card:nth-child(3)::after {
    content: "";
    position: absolute;
    top: 72%;
    right: -234px;
    width: 244px;
    height: 168px;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 244 168'%3E%3Cpath d='M2 20 C84 24, 160 52, 242 156' fill='none' stroke='%2300a8ff' stroke-width='14' stroke-linecap='round' stroke-dasharray='8 19' opacity='0.36'/%3E%3Cpath d='M2 20 C84 24, 160 52, 242 156' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-dasharray='2 26' opacity='0.38'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .cert-level-card:nth-child(5)::after {
    content: "";
    position: absolute;
    top: 72%;
    right: -228px;
    width: 238px;
    height: 166px;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 238 166'%3E%3Cpath d='M2 18 C82 20, 154 48, 236 154' fill='none' stroke='%2300a8ff' stroke-width='14' stroke-linecap='round' stroke-dasharray='8 19' opacity='0.36'/%3E%3Cpath d='M2 18 C82 20, 154 48, 236 154' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-dasharray='2 26' opacity='0.38'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
}

/* AUTH */
.auth-form .form-label {
  font-weight: 600;
  color: #0b2d53;
}

.auth-form .form-control {
  border-radius: 1rem;
  padding-block: 0.9rem;
  border-color: rgba(8, 48, 93, 0.2);
  box-shadow: inset 0 1px 2px rgba(2, 20, 44, 0.04);
}

.auth-form .form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 255, 0.15);
}

.password-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #4b5563;
}

.password-hints .hint-item {
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.password-hints .hint-item.is-valid {
  background: #ecfdf3;
  color: #15803d;
  border-color: #bbf7d0;
}

/* MY COURSES */
.my-course-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.my-course-thumb {
  width: 78px;
  height: 78px;
  border-radius: 0.9rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.my-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.my-course-body h3 {
  color: #0b2d53;
}

/* ORDER HISTORY */
#orderHistoryWrapper table {
  border-radius: 1rem;
  overflow: hidden;
}

.my-courses-thumbnail {
  width: 84px;
  height: 52px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.my-course-row {
  cursor: pointer;
}

.my-course-row:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: -2px;
}

.my-courses-progress {
  min-width: 150px;
  height: 1rem;
  border-radius: 999px;
  background: #e9eef5;
}

.my-courses-progress .progress-bar {
  background: linear-gradient(90deg, #0f7ce8, #00a8ff);
  font-size: 0.72rem;
  font-weight: 600;
}

.course-watch-player-section {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(6, 28, 56, 0.15);
  background: #081a32;
}

.course-watch-player-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.course-watch-player-frame,
.course-watch-player-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.course-watch-description-section,
.course-watch-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
}

.course-watch-description {
  color: #304862;
}

.course-watch-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.course-lesson-item {
  width: 100%;
  border: 1px solid #d9e2ef;
  border-radius: 0.8rem;
  background: #f8fbff;
  color: #102239;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.course-lesson-item:hover,
.course-lesson-item:focus-visible {
  border-color: #9cc9ff;
  background: #eef6ff;
}

.course-lesson-item.is-active {
  border-color: #1f8fff;
  background: #e6f3ff;
}

.course-lesson-item-index {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #0f7ce8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.course-lesson-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.course-lesson-item-body strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.course-lesson-item-body small {
  color: #60748c;
}

#orderHistoryWrapper th {
  font-weight: 700;
  color: #0b2d53;
}

#orderHistoryWrapper td {
  color: #374151;
}

.auth-form small {
  color: var(--brand-muted);
}

.list-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: #10293f;
}

.list-checks li {
  position: relative;
  padding-left: 1.75rem;
}

.list-checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: #0c96ff;
  font-weight: 700;
}

.list-steps {
  list-style: none;
  counter-reset: steps;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #0c2644;
}

.list-steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
}

.list-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SHOP */
.shop-intro-section {
  padding-block: 2.75rem;
}

.shop-intro-title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 1rem;
}

.shop-intro-description {
  font-size: 0.98rem;
  color: #4a6075;
  line-height: 1.65;
  max-width: 62ch;
}

.shop-intro-section .list-checks {
  gap: 0.6rem;
  font-size: 0.94rem;
}

.shop-intro-section .list-checks li {
  color: #35516d;
}

.shop-intro-card {
  border-radius: 1.1rem;
}

.shop-intro-card .h5 {
  font-size: 1.05rem;
}

.shop-intro-section .list-steps {
  gap: 0.55rem;
  font-size: 0.92rem;
}

.shop-courses-section {
  padding-top: 3.25rem;
}

.shop-course-card {
  border: 0;
  border-radius: 1.75rem;
  box-shadow: 0 24px 60px rgba(7, 30, 61, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(7, 30, 61, 0.18);
}

#shopCoursesGrid .shop-course-card[data-course-card] {
  cursor: pointer;
}

@media (min-width: 768px) {
  #shopCoursesGrid .shop-course-card {
    min-height: 100%;
  }
}

@media (max-width: 767.98px) {
  .shop-intro-section {
    padding-block: 2.35rem;
  }

  .shop-courses-section {
    padding-top: 2.75rem;
  }
}

.shop-course-media {
  flex: 1 1 40%;
  min-height: 220px;
  background: #0c2644;
}

.shop-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-course-body {
  flex: 0 1 50%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shop-course-body h3 {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #0c2644;
}

.shop-course-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shop-course-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 38, 68, 0.08);
  color: #0c2644;
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-course-meta li svg {
  color: var(--brand-accent);
}

.shop-course-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

#shopCoursesGrid > article {
  display: flex;
}

#shopCoursesGrid .shop-course-card {
  width: 100%;
  height: 100%;
}

#shopCoursesGrid .shop-course-body h3 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-height: 1.7em;
}

#shopCoursesGrid .shop-course-body p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  min-height: calc(1.7em * 3);
}

#shopCoursesGrid .shop-course-actions {
  margin-top: 0;
}

#shopCoursesGrid .shop-course-body {
  padding-bottom: 1rem;
}

.shop-course-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-accent);
}

/* ADMIN COURSE MANAGEMENT */
.admin-panel-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-panel-nav-btn {
  border: 1px solid #d9e4f2;
  background: #f8fbff;
  color: #123456;
  border-radius: 0.9rem;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.admin-panel-nav-btn:hover,
.admin-panel-nav-btn:focus-visible {
  border-color: #93c5fd;
  background: #edf5ff;
}

.admin-panel-nav-btn.is-active {
  border-color: var(--brand-accent);
  background: #e6f3ff;
  color: #0b2d53;
}

.admin-panel-nav-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(15, 124, 232, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f7ce8;
  flex-shrink: 0;
}

.admin-course-card {
  position: relative;
}

#adminCoursesGrid > article {
  display: flex;
}

#adminCoursesGrid .shop-course-card {
  width: 100%;
  height: 100%;
}

#adminCoursesGrid .shop-course-body h3 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-height: 1.7em;
}

#adminCoursesGrid .shop-course-body p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  min-height: calc(1.7em * 3);
}

#adminCoursesGrid .shop-course-actions {
  margin-top: 0;
}

#adminCoursesGrid .shop-course-body {
  padding-bottom: 1rem;
}

.admin-course-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.admin-course-actions .icon-btn {
  width: 34px;
  height: 34px;
  background: rgba(248, 251, 255, 0.95);
}

.admin-stats-placeholder {
  border: 1px dashed rgba(12, 38, 68, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #60748c;
  background: #f8fbff;
}

.admin-stats-chart-wrap {
  position: relative;
  min-height: 220px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(8, 48, 93, 0.12);
  background: #f8fbff;
  color: #08305d;
  transition: all 0.15s ease;
  padding: 0;
}

.icon-btn:hover,
.icon-btn:focus {
  background: #08305d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.icon-btn.icon-danger {
  color: #b72b2b;
  border-color: rgba(183, 43, 43, 0.2);
}

.icon-btn.icon-danger:hover,
.icon-btn.icon-danger:focus {
  background: #b72b2b;
  color: #fff;
}

.admin-course-edit {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(8, 48, 93, 0.15);
  display: none;
}

.admin-course-card.is-editing .admin-course-edit {
  display: block;
}

.admin-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-lesson-item {
  border: 1px solid rgba(8, 48, 93, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

.admin-lesson-item .form-label {
  font-weight: 600;
  color: #0b2d53;
}

.shop-course-actions .btn {
  min-width: 160px;
}

.shop-status-alert {
  border-radius: 1.25rem;
  border: 1px solid rgba(12, 38, 68, 0.12);
}

/* SHOP SUBSCRIPTIONS */
.shop-subscriptions-section {
  padding-top: 3.25rem;
  padding-bottom: 2.5rem;
  background: var(--section-light);
}

.shop-subscriptions-lead {
  font-size: 0.98rem;
  color: #4a6075;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 0;
}

.subscription-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(12, 38, 68, 0.1);
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 30, 61, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscription-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00a8ff, #0077ff);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.35);
}

.subscription-card--featured {
  padding-top: 2.1rem;
  margin-top: 10px;
  border: 2px solid rgba(0, 168, 255, 0.45);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 55%);
  box-shadow: 0 24px 56px rgba(0, 119, 255, 0.16);
}

.subscription-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c2644;
  margin: 0;
  letter-spacing: 0.02em;
}

.subscription-card__price {
  font-size: clamp(2rem, 3.5vw, 2.45rem);
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1.1;
  margin: 0;
}

.subscription-card__period {
  font-size: 0.88rem;
  font-weight: 600;
  color: #526781;
  margin: 0;
}

.subscription-card__terms {
  font-size: 0.8rem;
  color: #7a8ca4;
  margin: 0 0 0.25rem;
  line-height: 1.45;
}

.subscription-card__description {
  font-size: 0.92rem;
  color: #4a6075;
  line-height: 1.55;
  margin: 0;
}

.subscription-card__features {
  gap: 0.5rem;
  font-size: 0.88rem;
  margin: 0.35rem 0 0.75rem;
  flex-grow: 1;
}

.subscription-card__features li {
  color: #35516d;
}

.subscription-card__cta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.subscription-card--featured .subscription-card__cta {
  box-shadow: 0 10px 24px rgba(0, 119, 255, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .subscription-card:hover {
    transform: scale(1.02);
    box-shadow: 0 26px 60px rgba(7, 30, 61, 0.16);
  }

  .subscription-card--featured:hover {
    box-shadow: 0 30px 64px rgba(0, 119, 255, 0.22);
  }
}

@media (max-width: 767.98px) {
  .shop-subscriptions-section {
    padding-top: 2.75rem;
    padding-bottom: 2rem;
  }

  .subscription-card--featured {
    margin-top: 0.75rem;
  }
}

.subscription-details-period {
  font-size: 0.9rem;
  color: #526781;
  font-weight: 600;
}

/* COURSE DETAILS PAGE */
.course-details-back-link {
  color: #0c2644;
  margin-top: 0;
}

.course-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 2rem;
  align-items: start;
}

.course-details-main {
  background: linear-gradient(145deg, #07162d, #0f2747);
  border-radius: 1.4rem;
  padding: 1.7rem;
  color: #f1f6ff;
}

.course-details-title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.course-details-description {
  font-size: 0.95rem;
  color: rgba(241, 246, 255, 0.9);
  margin-bottom: 1.25rem;
}

.course-details-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.course-details-meta li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
}

.course-details-cta {
  background: #fff;
  border-radius: 1.1rem;
  border: 1px solid rgba(8, 48, 93, 0.15);
  box-shadow: 0 16px 40px rgba(6, 25, 50, 0.15);
  overflow: hidden;
}

.course-details-image-wrap {
  min-height: 110px;
  max-height: 110px;
  height: 110px;
  background: #0c2644;
  overflow: hidden;
}

.course-details-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
}

.course-details-cta-body {
  padding: 1.25rem;
}

.course-details-cta-label {
  font-size: 0.82rem;
  color: #526781;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-details-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1.1;
}

.course-details-lifetime-note {
  font-size: 0.9rem;
  color: #526781;
  margin-bottom: 1rem;
}

.course-details-lessons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.course-details-lessons-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.course-details-lessons-list li strong {
  white-space: nowrap;
}

/* CART */
.cart-page {
  background: radial-gradient(circle at top right, rgba(0, 168, 255, 0.08), transparent 55%);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(12, 38, 68, 0.08);
  border-radius: 1.25rem;
  padding: 1rem;
  background: #f8fbff;
}

@media (min-width: 576px) {
  .cart-item {
    flex-direction: row;
    align-items: stretch;
  }
}

.cart-item-media {
  flex: 0 0 140px;
  border-radius: 1rem;
  overflow: hidden;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #0c2644;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item-remove {
  border: 0;
  background: transparent;
  color: #ff5f6d;
  font-weight: 600;
}

.cart-summary-card {
  position: sticky;
  top: 6rem;
  border-radius: 1.5rem;
}

.cart-total-price {
  font-size: 1.8rem;
  color: #0c2644;
}

.cart-benefits li + li {
  margin-top: 0.25rem;
}

.lesson-items .lesson-item:last-child {
  margin-bottom: 0;
}

.duration-auto-pill {
  min-height: 100%;
  border: 1px dashed rgba(8, 48, 93, 0.2);
  border-radius: 1rem;
  background: #f8fbff;
  padding: 0.75rem;
}

.course-image-dropzone {
  border: 2px dashed rgba(8, 48, 93, 0.22);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.course-image-dropzone:hover,
.course-image-dropzone:focus {
  border-color: var(--brand-accent);
  background: #f4fbff;
}

.course-image-dropzone.is-dragover {
  border-color: var(--brand-accent);
  background: #eef8ff;
}

.course-image-dropzone.is-invalid {
  border-color: #dc3545;
  background: #fff5f5;
}

.course-image-preview {
  margin: 0.8rem auto 0;
  max-height: 180px;
  width: auto;
  border-radius: 0.75rem;
  object-fit: contain;
}

.lesson-description-editor {
  border: 1px solid rgba(8, 48, 93, 0.16);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(8, 48, 93, 0.12);
  background: #f8fbff;
}

.rich-editor-btn {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.rich-editor-separator {
  display: inline-flex;
  align-items: center;
  color: rgba(8, 48, 93, 0.5);
  font-weight: 600;
  padding-inline: 0.1rem 0.25rem;
}

.rich-editor-btn.dropdown-toggle::after {
  margin-left: 0.25rem;
  vertical-align: 0.15em;
}

.rich-icon-bold {
  font-weight: 700;
  font-family: 'Times New Roman', serif;
}

.rich-icon-italic {
  font-style: italic;
  font-family: 'Times New Roman', serif;
}

.rich-icon-underline {
  text-decoration: underline;
  font-family: 'Times New Roman', serif;
}

.rich-icon-color,
.rich-icon-highlight {
  display: inline-block;
  font-weight: 700;
  font-family: 'Times New Roman', serif;
  padding-bottom: 1px;
}

.rich-icon-color {
  border-bottom: 3px solid #1565c0;
}

.rich-icon-highlight {
  border-bottom: 3px solid #fff59d;
}

.rich-color-menu {
  min-width: 140px;
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 0.35rem;
}

.rich-color-option {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  border: 1px solid rgba(8, 48, 93, 0.2);
  cursor: pointer;
}

.rich-color-option:hover,
.rich-color-option:focus {
  outline: 2px solid rgba(0, 168, 255, 0.45);
  outline-offset: 1px;
}

.rich-font-size-menu {
  min-width: 130px;
}

.rich-font-size-option {
  border-radius: 0.45rem;
  font-size: 0.9rem;
}

.rich-font-size-option.active,
.rich-font-size-option:active {
  background: rgba(0, 168, 255, 0.14);
  color: #08305d;
}

.rich-font-size-toggle {
  width: auto;
  min-width: 48px;
  padding-inline: 0.45rem;
}

.rich-font-size-label {
  font-weight: 700;
}

.text-small {
  font-size: 0.875rem;
}

.text-medium {
  font-size: 1rem;
}

.text-large {
  font-size: 1.25rem;
}

.rich-editor-content {
  min-height: 130px;
  padding: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.rich-editor-content:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 168, 255, 0.15);
}

.lesson-item .lesson-remove-btn {
  width: 32px;
  height: 32px;
}

.lesson-item .form-label {
  font-weight: 600;
}

.admin-course-form textarea {
  border-radius: 1.25rem;
}

/* TEAM */
.team-card {
  border-radius: 2rem;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.team-card .team-card-media,
.team-card .card-body {
  transition: transform 0.3s ease,
  box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.team-card.is-active .team-card-media,
.team-card.is-active .card-body,
.team-card:hover .team-card-media,
.team-card:hover .card-body {
  transform: translateY(-6px);
  box-shadow: 0 34px 72px rgba(7, 30, 61, 0.3);
}

.team-card.is-muted .team-card-media,
.team-card.is-muted .card-body {
  opacity: 0.45;
  filter: saturate(0.7);
  box-shadow: none;
  transform: translateY(0);
}

.team-card-frame {
  padding: 1.25rem 1.5rem 0;
  min-height: 360px;
}

.team-card-media {
  border-radius: 2rem;
  display: flex;
  justify-content: center;
}

.team-card-media img {
  width: 100%;
  max-width: 92%;
  height: auto;
  object-fit: contain;
  border-radius: 1.75rem 1.75rem 0 0;
  box-shadow: 0 25px 45px rgba(5, 34, 66, 0.18);
}

.team-card .card-body {
  background: #fff;
  margin: -2rem 1.75rem 1.5rem;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 26px 50px rgba(7, 30, 61, 0.12);
}

.team-card .team-role {
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

/* TESTIMONIALS */
.testimonial-card {
  border-radius: 1.5rem;
  border: 0;
  box-shadow: 0 16px 38px rgba(10, 23, 46, 0.08);
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  color: #435972;
  margin-bottom: 1.5rem;
}

.testimonial-text-link {
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.testimonial-link {
  font-weight: 600;
  color: var(--brand-accent);
}

/* GALLERY */
.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* FOOTER */
.site-footer {
  background: rgba(0, 28, 72) url('images/footer-logo.png') no-repeat right 4rem bottom 2rem / 180px;
  color: #d7e7ff;
  padding-top: 3.5rem;
}

.site-footer .brand-stack {
  color: #ffffff;
}

.footer-link-list {
  list-style: none;
  padding-left: 0;
}

.footer-link-list li+li {
  margin-top: 0.35rem;
}

.footer-link-list a {
  color: inherit;
  text-decoration: none;
}

.footer-link-list a:hover {
  text-decoration: underline;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.footer-social-icon {
  width: 24px;
  height: 24px;
}

/* MAPS */
.map-embed iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 1rem;
}

.schedule-section .schedule-split-card {
  overflow: hidden;
  border-radius: 1rem;
}

.schedule-section .schedule-split-card .card-body {
  padding: 1.25rem 1.25rem 1.1rem;
}

.schedule-section .schedule-split-card .map-embed {
  height: 100%;
  border-left: 1px solid rgba(8, 48, 93, 0.1);
}

.schedule-section .schedule-split-card .map-embed iframe {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}

@media (max-width: 991.98px) {
  .schedule-section .schedule-split-card .map-embed {
    border-left: 0;
    border-top: 1px solid rgba(8, 48, 93, 0.1);
  }

  .schedule-section .schedule-split-card .map-embed iframe {
    min-height: 240px;
  }
}

/* CONTACTS */
.contacts-section .contacts-main-title {
  margin-bottom: 1rem;
}

.contact-panel {
  background: linear-gradient(145deg, #ffffff, #f5fbff);
  border: 1px solid rgba(8, 48, 93, 0.1);
  border-radius: 1.2rem;
  box-shadow: 0 16px 28px rgba(8, 48, 93, 0.1);
  padding: 1.25rem 1.15rem;
}

.contact-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0b2d53;
  margin-bottom: 0.55rem;
}

.contact-group h3 i {
  color: #00a8ff;
}

.contact-group a {
  display: block;
  color: #244566;
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.2rem;
}

.contact-group a:hover {
  color: #0b75c9;
}

.contact-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 168, 255, 0.35), rgba(255, 123, 84, 0.2));
  margin: 0.9rem 0;
}

.contact-social-list {
  display: flex;
  gap: 0.65rem;
}

.contacts-section .footer-social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  background-color: rgba(0, 168, 255, 0.14);
  color: #0b2d53;
}

.contacts-section .footer-social-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
}

.contacts-locations-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #0b2d53;
  margin-bottom: 1rem;
}

.contact-location-card {
  background: #fff;
  border: 1px solid rgba(8, 48, 93, 0.1);
  border-radius: 1.2rem;
  box-shadow: 0 14px 24px rgba(8, 48, 93, 0.09);
  padding: 0.9rem;
}

.contact-location-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.contact-location-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0b2d53;
}

.contact-location-head h4 i {
  color: #00a8ff;
  margin-right: 0.15rem;
}

.contact-location-head a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0b75c9;
  text-decoration: none;
}

.contact-location-head a:hover {
  text-decoration: underline;
}

.contacts-section .map-embed iframe {
  height: 230px;
  border-radius: 0.9rem;
  border: 1px solid rgba(8, 48, 93, 0.08);
}

/* CHECK LIST */
.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: #4a6075;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00a86b;
  font-weight: 700;
}

/* SCROLL TO TOP */
.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: conic-gradient(#ff7b54 var(--scroll, 0%), rgba(255, 255, 255, 0.15) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

.scroll-top-progress {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(5, 32, 66, 0.96);
}

.scroll-top-arrow {
  position: relative;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================
   TRAINERS PAGE
   Spacing scale (8px grid): 8 / 16 / 24 / 32 / 48
   ============================================================ */
.trainers-section {
  --t-space-1: 0.5rem;
  --t-space-2: 1rem;
  --t-space-3: 1.5rem;
  --t-space-4: 2rem;
  --t-space-5: 3rem;
  --t-radius-sm: 0.75rem;
  --t-radius-md: 1rem;
  --t-radius-lg: 1.5rem;
  --t-shadow-sm: 0 4px 12px rgba(7, 30, 61, 0.06);
  --t-shadow-md: 0 16px 32px rgba(7, 30, 61, 0.08);
  --t-shadow-lg: 0 30px 60px rgba(7, 30, 61, 0.10);

  background:
    radial-gradient(circle at 8% 10%, rgba(0, 168, 255, 0.07), transparent 45%),
    radial-gradient(circle at 92% 90%, rgba(0, 168, 255, 0.05), transparent 50%),
    linear-gradient(180deg, #eef4fa 0%, #f7fafd 50%, #ffffff 100%);
  padding-block: var(--t-space-5);
}

.trainers-section .container {
  max-width: 1200px;
}

.trainer-profile {
  padding-block: var(--t-space-3);
}

.trainer-profile+.trainer-profile {
  margin-top: var(--t-space-3);
  border-top: 1px solid rgba(7, 30, 61, 0.06);
}

/* ---------- Photo card (left column) ---------- */
.trainer-photo-card {
  background: #ffffff;
  border-radius: var(--t-radius-md);
  padding: var(--t-space-2);
  box-shadow: var(--t-shadow-lg);
  margin: 0;
  position: sticky;
  top: 6rem;
}

.trainer-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: var(--t-space-1);
  overflow: hidden;
  background: #eef4fb;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.trainer-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.trainer-photo-frame:hover img,
.trainer-photo-frame:focus-visible img {
  transform: scale(1.04);
}

.trainer-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: var(--t-space-1);
  padding: var(--t-space-3) var(--t-space-2);
  background:
    radial-gradient(circle at center 60%, rgba(0, 28, 72, 0.10), transparent 60%),
    linear-gradient(180deg, transparent 45%, rgba(0, 28, 72, 0.65) 100%);
  transition: background 0.3s ease;
  pointer-events: none;
}

.trainer-photo-frame:hover .trainer-photo-overlay,
.trainer-photo-frame:focus-visible .trainer-photo-overlay {
  background:
    radial-gradient(circle at center 40%, rgba(0, 28, 72, 0.20), transparent 60%),
    linear-gradient(180deg, rgba(0, 28, 72, 0.25) 0%, rgba(0, 28, 72, 0.75) 100%);
}

.trainer-photo-frame:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.trainer-photo-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 14px 32px rgba(0, 168, 255, 0.55);
  transition: transform 0.25s ease;
  margin-top: auto;
  margin-bottom: var(--t-space-1);
}

.trainer-photo-frame:hover .trainer-photo-play,
.trainer-photo-frame:focus-visible .trainer-photo-play {
  transform: scale(1.1);
}

.trainer-photo-overlay-text {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trainer-photo-meta {
  text-align: center;
  margin-top: var(--t-space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--t-space-1);
}

.trainer-photo-caption {
  font-family: 'Caveat', 'Montserrat', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0;
  line-height: 1.2;
}

.trainer-photo-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0;
}

.trainer-photo-phone:hover,
.trainer-photo-phone:focus {
  color: var(--brand-accent);
}

.trainer-photo-phone i {
  color: var(--brand-accent);
  font-size: 1rem;
}

/* Primary CTA button */
.trainer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--t-space-1);
  width: 100%;
  margin-top: var(--t-space-2);
  padding: 0.75rem var(--t-space-3);
  background: linear-gradient(135deg, #00a8ff 0%, #006fff 100%);
  color: #ffffff;
  border: 0;
  border-radius: var(--t-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 168, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.trainer-cta:hover,
.trainer-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 168, 255, 0.40);
  filter: brightness(1.06);
  color: #ffffff;
  outline: none;
}

.trainer-cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 168, 255, 0.28);
}

.trainer-cta i {
  font-size: 1.05rem;
}

/* ---------- Content (right column) ---------- */
.trainer-content {
  padding-top: var(--t-space-1);
  text-align: justify;
}

.trainer-heading {
  margin-bottom: var(--t-space-3);
}

.trainer-name {
  font-style: normal;
  font-weight: 600;
  color: var(--brand-dark);
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--t-space-1);
}

.trainer-role {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--t-space-1);
  margin-bottom: 0;
}

.trainer-role::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
}

/* Stat highlight chips */
.trainer-stats {
  list-style: none;
  padding-left: 0;
  margin: var(--t-space-3) 0 var(--t-space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--t-space-1);
}

.trainer-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(0, 168, 255, 0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-dark);
  box-shadow: var(--t-shadow-sm);
}

.trainer-stat-chip i {
  color: var(--brand-accent);
  font-size: 0.95rem;
}

.trainer-stat-chip strong {
  color: var(--brand-dark);
  font-weight: 700;
}

/* Body text */
.trainer-body {
  color: #3d556f;
  font-size: 1rem;
  line-height: 1.8;
}

.trainer-body p {
  margin-bottom: var(--t-space-2);
}

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

.trainer-body strong {
  color: var(--brand-dark);
  font-weight: 600;
}

/* ---------- Block sections (achievements / certs) ---------- */
.trainer-block {
  margin-top: var(--t-space-4);
  padding: var(--t-space-3);
  background: #ffffff;
  border: 1px solid rgba(7, 30, 61, 0.06);
  border-radius: var(--t-radius-md);
  box-shadow: var(--t-shadow-sm);
}

.trainer-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--t-space-2);
  margin-bottom: var(--t-space-2);
}

.trainer-block-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.01em;
}

.trainer-block-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.trainer-block-icon--gold {
  color: #f4b800;
}

.trainer-block-icon--accent {
  color: var(--brand-accent);
}

.trainer-block-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--section-light);
  color: var(--brand-dark);
  border: 1px solid rgba(7, 30, 61, 0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.trainer-block-toggle:hover,
.trainer-block-toggle:focus-visible {
  background: var(--brand-accent);
  color: #ffffff;
  border-color: var(--brand-accent);
  outline: none;
}

.trainer-block-toggle i {
  transition: transform 0.25s ease;
}

.trainer-block-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Collapsible (CSS grid height-animation trick) */
.trainer-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}

.trainer-collapse>.trainer-collapse-inner {
  min-height: 0;
  overflow: hidden;
}

.trainer-collapse-inner {
  display: flex;
  flex-direction: column;
  gap: var(--t-space-3);
}

/* Certificate sub-group */
.trainer-cert-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: var(--t-space-1);
}

/* ---------- Badge groups ---------- */
.trainer-badges {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--t-space-1);
}

.trainer-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Outlined gold chips for achievements */
.trainer-badges--outline li {
  padding: 0.45rem 0.95rem;
  background: rgba(244, 184, 0, 0.08);
  border: 1px solid rgba(244, 184, 0, 0.35);
  color: #6b4d00;
  border-radius: 999px;
  font-weight: 500;
}

/* Soft cert pills (with icon) */
.trainer-badges--soft {
  flex-direction: column;
  gap: var(--t-space-1);
}

.trainer-badges--soft li {
  padding: 0.65rem 0.9rem;
  background: rgba(0, 168, 255, 0.06);
  border: 1px solid rgba(0, 168, 255, 0.18);
  border-radius: var(--t-radius-sm);
  color: var(--brand-dark);
  font-weight: 500;
  width: 100%;
  align-items: flex-start;
}

.trainer-badges--soft li>i {
  color: var(--brand-accent);
  font-size: 1rem;
  margin-top: 0.15em;
  flex-shrink: 0;
}

/* Accent badges for technique names */
.trainer-badges--accent li {
  padding: 0.5rem 0.9rem;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.14) 0%, rgba(0, 168, 255, 0.04) 100%);
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: var(--t-radius-sm);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Video modal ---------- */
.trainer-video-modal .modal-content {
  border-radius: var(--t-radius-md);
  border: 0;
  overflow: hidden;
}

.trainer-video-modal .modal-header {
  background: var(--brand-dark);
  color: #ffffff;
  border-bottom: 0;
}

.trainer-video-modal .modal-header .modal-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trainer-video-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.trainer-video-modal .modal-body {
  padding: 1rem;
  background: #f3f7fb;
}

.trainer-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 75vh;
  margin: 0 auto;
  background: #000;
  border-radius: var(--t-radius-sm);
  overflow: hidden;
}

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

/* RESPONSIVE */
@media (max-width: 992px) {
  body {
    padding-top: 77px;
  }

  .hero {
    min-height: 50vh;
  }

  .team-card-frame {
    min-height: 300px;
  }

  .course-details-layout {
    grid-template-columns: 1fr;
  }

  .trainer-photo-card {
    position: static;
    max-width: 480px;
    margin-inline: auto;
  }

  /* Collapsible certs ONLY on mobile */
  .trainer-block-toggle {
    display: inline-flex;
  }

  .trainer-collapse {
    grid-template-rows: 0fr;
  }

  .trainer-collapse.is-open {
    grid-template-rows: 1fr;
  }

  .trainer-block {
    padding: 1.25rem;
  }

  .trainer-stats {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 76px;
  }

  .section {
    padding-block: 3rem;
  }

  .hero h1 {
    letter-spacing: 0.1em;
  }

  .offer-card .card-img-top {
    height: 170px;
  }

  .course-panel-img {
    min-height: 180px;
  }

  
  .course-panel-img  img{
    /* border-radius: 15.25rem !important; */
    background-color: greenyellow;
  }

  .map-embed iframe {
    height: 220px;
  }

  #shopCoursesGrid .shop-course-body p {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: calc(1.7em * 2);
  }

  .course-watch-description-section,
  .course-watch-sidebar {
    padding: 1rem;
  }

  .trainer-name {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .trainer-role {
    font-size: 0.85rem;
  }

  .trainer-body {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .trainer-stats {
    gap: 0.5rem;
  }

  .trainer-stat-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  .trainer-photo-play {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .trainer-photo-overlay-text {
    font-size: 0.7rem;
  }

  .trainer-block-title {
    font-size: 0.95rem;
  }

  .trainer-cta {
    padding: 0.85rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   About page — premium editorial layout, bento, stats, CTA
   -------------------------------------------------------------------------- */
.about-page {
  --about-radius: 22px;
  --about-shadow: 0 14px 40px rgba(8, 44, 92, 0.12);
  --about-shadow-hover: 0 22px 50px rgba(8, 44, 92, 0.18);
  --about-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.78));
  --about-border: 1px solid rgba(0, 119, 255, 0.12);
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
}

.about-page .about-container {
  position: relative;
  z-index: 1;
}

.about-section {
  position: relative;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  overflow: clip;
}

.about-section--expert {
  background: linear-gradient(180deg, #ffffff 0%, #eef5fc 55%, #e8f2fb 100%);
}

.about-section-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 10% 0%, rgba(0, 168, 255, 0.14), transparent 55%),
    radial-gradient(90% 60% at 100% 20%, rgba(0, 28, 72, 0.06), transparent 50%);
  pointer-events: none;
}

.about-section--mission {
  background: linear-gradient(180deg, #f0f6fd 0%, #ffffff 100%);
}

/* Index: „Забавно и полезно“ — запазва радиалния акцент върху mission градиента */
.about-section--mission.fun-section {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(180deg, #f0f6fd 0%, #ffffff 100%);
}

.about-section--benefits {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fafcfe 22%,
    #f4f8fc 52%,
    #eef5fc 100%
  );
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.about-section--stats {
  background: linear-gradient(
    180deg,
    #eef5fc 0%,
    #e7eff9 32%,
    #dde9f5 64%,
    #d0e1f0 100%
  );
}

.about-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.about-display-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.about-display-title--sm {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.about-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: #2a3f5c;
  max-width: 52ch;
}

.about-section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Bento grid — expertise */
.about-bento--expert {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.about-bento-visual {
  position: relative;
  border-radius: var(--about-radius);
  overflow: hidden;
  box-shadow: var(--about-shadow);
  border: var(--about-border);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.about-bento-visual > picture {
  display: block;
  flex: 1 1 auto;
  min-height: 220px;
  position: relative;
}

.about-bento-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
  transition: transform 0.6s ease;
  display: block;
}

@media (max-width: 767.98px) {
  .about-float-stack {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(0, 28, 72, 0.06), rgba(240, 247, 255, 0.95));
    pointer-events: none;
  }

  .about-float-card {
    position: static;
    max-width: none;
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem;
  }
}

.about-bento-visual:hover .about-bento-img {
  transform: scale(1.06);
}

.about-float-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 28, 72, 0.12);
  max-width: min(220px, 78vw);
  pointer-events: none;
}

.about-float-card:nth-child(1) {
  top: 10%;
  left: 8%;
}

.about-float-card:nth-child(2) {
  top: 38%;
  right: 6%;
}

.about-float-card:nth-child(3) {
  bottom: 22%;
  left: 6%;
}

.about-float-card:nth-child(4) {
  bottom: 8%;
  right: 8%;
}

.about-float-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand-accent);
}

.about-float-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-glass-card {
  border-radius: var(--about-radius);
  background: var(--about-glass);
  border: var(--about-border);
  box-shadow: 0 10px 28px rgba(8, 44, 92, 0.08);
  padding: 1.35rem 1.5rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  height: 100%;
}

.about-bento--expert > .about-glass-card {
  padding: 1rem 1.15rem;
}

.about-bento--expert > .about-glass-card .about-glass-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.65rem;
}

.about-bento--expert > .about-glass-card .about-card-title {
  margin-bottom: 0.4rem;
}

.about-bento--expert > .about-glass-card .about-card-body {
  font-size: 0.98rem;
  line-height: 1.55;
}

.about-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--about-shadow-hover);
  border-color: rgba(0, 168, 255, 0.28);
}

.about-glass-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand-accent);
  background: rgba(0, 168, 255, 0.1);
  transition: transform 0.35s ease, color 0.2s ease, box-shadow 0.35s ease;
}

.about-glass-card__icon svg {
  width: 24px;
  height: 24px;
}

.about-glass-card:hover .about-glass-card__icon {
  transform: translateY(-3px) scale(1.05);
  color: #0088e6;
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.25), 0 8px 20px rgba(0, 168, 255, 0.2);
}

.about-card-title {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.about-card-body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #3d5370;
  margin: 0;
}

/* Timeline */
.about-timeline {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 1.25rem;
  border-radius: var(--about-radius);
  background: rgba(255, 255, 255, 0.65);
  border: var(--about-border);
  box-shadow: 0 8px 28px rgba(8, 44, 92, 0.06);
}

.about-timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--brand-dark);
}

.about-timeline-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.about-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  min-width: 112px;
  flex: 1 1 100px;
}

.about-timeline-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-accent), #0066cc);
  box-shadow: 0 6px 16px rgba(0, 119, 255, 0.35);
}

.about-timeline-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2a3f5c;
  max-width: 10rem;
  line-height: 1.35;
}

.about-timeline-connector {
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 168, 255, 0.2), rgba(0, 168, 255, 0.65));
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .about-timeline-connector {
    display: none;
  }

  .about-timeline-track {
    flex-direction: column;
  }

  .about-timeline-step {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    text-align: left;
  }
}

/* Quote */
.about-quote {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 52rem;
  padding: 1.75rem 1.5rem;
  border-left: 4px solid var(--brand-accent);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0 var(--about-radius) var(--about-radius) 0;
  box-shadow: var(--about-shadow);
  text-align: center;
}

.about-quote__text {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-style: italic;
  font-weight: 500;
  color: #1a3352;
  line-height: 1.65;
}

/* Wave dividers between sections */
.about-wave-divider {
  line-height: 0;
  color: #eef5fc;
  margin-top: -1px;
}

.about-wave-divider--flip {
  transform: scaleY(-1);
  color: #eef5fc;
  margin-bottom: -1px;
}

.about-wave-divider svg {
  width: 100%;
  height: clamp(40px, 6vw, 64px);
  display: block;
}

/* Mission */
.about-mission-visual {
  position: relative;
  border-radius: var(--about-radius);
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  box-shadow: var(--about-shadow);
  border: var(--about-border);
}

.about-mission-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.about-mission-visual:hover .about-mission-img {
  transform: scale(1.04);
}

.about-mission-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 28, 72, 0.45), transparent);
  pointer-events: none;
}

.about-mission-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-mission-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-mission-card--wide {
    grid-column: span 2;
  }
}

/* Benefits в Swiper: пълна ширина на слайда (glass картите като експертиза / мисия) */
.offer-swiper .swiper-slide .about-glass-card {
  width: 100%;
}
.about-stats-bento {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .about-stats-bento {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.about-stat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--about-radius);
  background: rgba(255, 255, 255, 0.85);
  border: var(--about-border);
  box-shadow: var(--about-shadow);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.about-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--about-shadow-hover);
}

.about-stat-card__head {
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  background: linear-gradient(160deg, rgba(0, 168, 255, 0.22), rgba(0, 28, 72, 0.08));
  border-bottom: 1px solid rgba(0, 119, 255, 0.1);
}

.about-stat-card__value {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
}

.about-stat-card__caption {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5d78;
  line-height: 1.4;
}

.about-stat-list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-stat-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #3d5370;
}

.about-stat-list__icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--brand-accent);
}

.about-stat-cta {
  display: block;
  text-align: center;
  margin: 0 1.25rem 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: linear-gradient(180deg, rgba(0, 168, 255, 0.2), rgba(0, 168, 255, 0.08));
  border: 1px solid rgba(0, 168, 255, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-stat-cta:hover,
.about-stat-cta:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-accent), #0066cc);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Final CTA */
.about-final-cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5rem) 1rem;
  margin-top: 0;
}

.about-final-cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #001c48 0%, #003a7a 45%, #0066b3 100%);
  opacity: 1;
}

.about-final-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 20% 20%, rgba(0, 168, 255, 0.35), transparent 55%);
  pointer-events: none;
}

.about-final-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.about-final-cta__lead {
  font-size: 1.0625rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  position: relative;
}

.about-btn-primary {
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.about-btn-primary:hover,
.about-btn-primary:focus-visible {
  background: #e8f4ff;
  color: #001c48;
}

.about-btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
}

.about-btn-outline:hover,
.about-btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sticky mobile CTA */
.about-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0));
  background: rgba(0, 28, 72, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.2);
}

.about-sticky-cta__btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-top: 0;
}

.about-sticky-cta__btn--primary {
  background: var(--brand-accent);
  border-color: transparent;
  color: #fff;
}

.about-sticky-cta__btn:hover,
.about-sticky-cta__btn:focus-visible {
  color: #fff;
  opacity: 0.95;
}

@media (min-width: 992px) {
  .about-page {
    padding-bottom: 0;
  }
}

@media (max-width: 991.98px) {
  .about-page .scroll-top.visible {
    bottom: 5.75rem;
  }
}

/* Scroll reveal */
.about-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.about-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-reveal--delay-1 {
  transition-delay: 0.08s;
}

.about-reveal--delay-2 {
  transition-delay: 0.14s;
}

.about-reveal--delay-3 {
  transition-delay: 0.2s;
}

.about-reveal--delay-4 {
  transition-delay: 0.26s;
}

@media (prefers-reduced-motion: reduce) {
  .about-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-bento-img,
  .about-mission-img,
  .about-glass-card,
  .about-stat-card {
    transition: none !important;
  }

  .about-bento-visual:hover .about-bento-img,
  .about-mission-visual:hover .about-mission-img {
    transform: none;
  }
}

@media (min-width: 992px) {
  .about-bento--expert {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 0.875rem;
    align-items: stretch;
  }

  .about-bento-visual {
    grid-column: 1 / span 6;
    grid-row: 1 / span 3;
    display: block;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  .about-bento-visual > picture {
    position: absolute;
    inset: 0;
    flex: unset;
    min-height: 0;
    height: 100%;
    width: 100%;
  }

  .about-bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 32%;
  }

  .about-bento-card--expertise {
    grid-column: 7 / span 6;
    grid-row: 1;
  }

  .about-bento-card--method {
    grid-column: 7 / span 3;
    grid-row: 2;
  }

  .about-bento-card--equipment {
    grid-column: 10 / span 3;
    grid-row: 2;
  }

  .about-bento-card--individual {
    grid-column: 7 / span 3;
    grid-row: 3;
  }

  .about-bento-card--goals {
    grid-column: 10 / span 3;
    grid-row: 3;
  }
}

/* Legal / Terms & Conditions */
.legal-document-card {
  border-radius: 1rem;
}

.legal-document {
  color: #1f2937;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-document__title {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #001c48;
}

.legal-document__title:first-child {
  margin-top: 0;
}

.legal-document p {
  margin-bottom: 1rem;
}

.legal-document ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.legal-document li {
  margin-bottom: 0.5rem;
}

.legal-document a {
  color: #0d6efd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-document a:hover {
  color: #0a58ca;
}

.footer-legal-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-link:hover {
  color: #fff;
}

@media (max-width: 575.98px) {
  .legal-document {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .legal-document__title {
    font-size: 1.1rem;
  }
}
