:root {
  --color-primary: #c50058;
  --color-black: #000e47;
  --color-white: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
}

.navbar,
.navbar-custom {
  margin-top: 0;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(197, 0, 88, 0.2);
  border-top: 5px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Override Bootstrap Primary Button */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: #a00048;
  border-color: #a00048;
}

/* Navbar Customization */
.navbar-custom {
  background-color: var(--color-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  height: 50px;
}

.navbar-custom .navbar-toggler {
  border-color: rgba(0, 14, 71, 0.25);
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(197, 0, 88, 0.18);
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 14, 71, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link-dark {
  color: var(--color-white) !important;
}

.nav-link-dark:hover {
  color: var(--color-black) !important;
}

.nav-link-dark.active {
  color: var(--color-black) !important;
}

.nav-link {
  color: var(--color-black);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: bold;
}

/* Hero Carousel */
.hero-carousel {
  height: 80vh;
  min-height: 500px;
  background-color: var(--color-black);
}

.hero-carousel .carousel-item {
  height: 80vh;
  min-height: 500px;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 14, 71, 0.6); /* Dark blue overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next,
.hero-carousel .carousel-indicators {
  z-index: 5;
}

/* Product Cards */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

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

.product-card-media {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f4f5f7;
}

.product-card-media .card-img-top {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 42%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  -webkit-user-drag: none;
  user-select: none;
}

.price-tag {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--color-black);
  color: white;
  padding: 2rem 0;
  /* margin-top: 3rem; */
}

/* Admin Specific */
.admin-logo {
  max-width: 150px;
  margin-bottom: 1.5rem;
}

.contact-channel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-channel-buttons .btn {
  flex: 1 1 150px;
}

.btn-telegram {
  background: #229ed9;
  border-color: #229ed9;
  color: #fff;
}

.btn-telegram:hover {
  background: #168ac0;
  border-color: #168ac0;
  color: #fff;
}

.floating-contact-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: grid;
  gap: 0.75rem;
}

/* WhatsApp and Telegram Floating Buttons */
.floating-contact-btn {
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  animation: breathe 2s infinite;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  color: white;
  transform: scale(1.1);
}

.telegram-btn {
  background-color: #229ed9;
  animation-delay: 0.4s;
}

.telegram-btn:hover {
  background-color: #168ac0;
  color: white;
  transform: scale(1.1);
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-black);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 10px 24px rgba(0, 14, 71, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
  animation: breathe 2s infinite;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary);
}

.floating-contact-buttons.footer-hidden,
.back-to-top.footer-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Services Section */
.services-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(197, 0, 88, 0.03) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #ff0080);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 0;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(197, 0, 88, 0.05) 0%,
    rgba(255, 0, 128, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(197, 0, 88, 0.2);
  border-color: var(--color-primary);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), #ff0080);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(197, 0, 88, 0.4);
}

.service-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--color-primary), #ff0080);
  border-radius: 22px;
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-icon::before {
  opacity: 0.6;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.service-description {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .service-description {
    font-size: 0.95rem;
  }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

.contact-card {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  overflow: hidden;
}

.map-container {
  height: 300px;
}

.icon-box-contact {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.hero-kicker,
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-kicker {
  color: #f9d7e7;
  margin-bottom: 0.75rem;
}

.hero-content,
.inner-hero .container {
  max-width: 100%;
}

.hero-content h1,
.hero-content p,
.inner-hero h1,
.inner-hero p {
  overflow-wrap: anywhere;
}

.section-eyebrow {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-heading {
  color: var(--color-black);
  font-size: 2.2rem;
  font-weight: 750;
  line-height: 1.15;
}

.inner-hero {
  min-height: 420px;
  color: white;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 14, 71, 0.88), rgba(197, 0, 88, 0.72));
}

.inner-hero .container {
  position: relative;
  z-index: 1;
}

.formation-detail-hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: 500px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.inner-hero h1 {
  max-width: 880px;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
}

.inner-hero p:not(.hero-kicker) {
  max-width: 760px;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 769px) {
  .hero-content.container,
  .inner-hero .container {
    padding-left: clamp(2rem, 6vw, 7rem);
    padding-right: clamp(2rem, 6vw, 7rem);
  }
}

@media (min-width: 1400px) {
  .hero-content.container,
  .inner-hero .container {
    padding-left: clamp(5rem, 8vw, 10rem);
    padding-right: clamp(5rem, 8vw, 10rem);
  }
}

.about-hero,
.shop-hero,
.contact-hero {
  background: linear-gradient(180deg, rgba(0, 14, 71, 0.42), rgba(197, 0, 88, 0.42)),
    url("../img/hero-bg.webp") center/cover no-repeat;
}

.courses-hero {
  background: linear-gradient(180deg, rgba(0, 14, 71, 0.42), rgba(197, 0, 88, 0.42)),
    url("../img/hero-bg.webp") center/cover no-repeat;
  min-height: 500px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.value-strip {
  background: white;
  border-bottom: 1px solid #e9ecef;
  padding: 1.25rem 0;
}

.value-strip .col-md-4 {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.value-strip i {
  color: var(--color-primary);
  font-size: 1.8rem;
}

.value-strip strong {
  color: var(--color-black);
}

.value-strip span {
  color: #6c757d;
  font-size: 0.95rem;
}

.product-card .card-body {
  text-align: left;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-search {
  min-width: min(100%, 420px);
  position: relative;
}

.catalog-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.catalog-search .form-control {
  padding-left: 2.7rem;
  min-height: 48px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.catalog-filters {
  position: sticky;
  top: 90px;
  padding: 1.35rem;
  border: 1px solid #e3e7ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 14, 71, 0.07);
}

.filter-group {
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid #e8ebef;
}

.catalog-filters .form-check-label {
  width: 100%;
  cursor: pointer;
}

.product-category-badge {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(197, 0, 88, 0.09);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.courses-preview,
.process-section {
  background: #f3f6f9;
}

.feature-tile,
.metric-card,
.process-card,
.course-card,
.mini-stat {
  background: white;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 14, 71, 0.06);
}

.feature-tile i,
.metric-card span,
.process-card span,
.course-icon,
.mini-stat i {
  color: var(--color-primary);
}

.feature-tile i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-tile h3,
.metric-card h3,
.process-card h3,
.course-card h3 {
  color: var(--color-black);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-tile p,
.metric-card p,
.process-card p,
.course-card p {
  color: #6c757d;
  margin-bottom: 0;
}

.metric-card span,
.process-card span {
  display: inline-block;
  font-weight: 800;
  margin-bottom: 1rem;
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.stack-list article {
  display: flex;
  gap: 1rem;
  background: white;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  padding: 1.25rem;
}

.stack-list i {
  color: var(--color-primary);
  font-size: 1.8rem;
  flex: 0 0 auto;
}

.stack-list h3 {
  color: var(--color-black);
  font-size: 1.15rem;
  font-weight: 700;
}

.stack-list p {
  color: #6c757d;
  margin-bottom: 0;
}

.course-card {
  display: flex;
  flex-direction: column;
}

.course-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(197, 0, 88, 0.08);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.course-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.65rem;
}

.course-card li {
  color: #394150;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.course-card li i {
  color: #198754;
  margin-top: 0.15rem;
}

.course-card .btn {
  margin-top: auto;
}

.formation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.formation-filter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #d8dde6;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: #fff;
  color: var(--color-black);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.formation-filter:hover,
.formation-filter.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.formation-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.formation-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.76);
}

.formation-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
}

.formation-card-content {
  position: relative;
  z-index: 2;
}

.formation-card--with-image .course-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.formation-card--with-image .formation-type,
.formation-card--with-image h3,
.formation-card--with-image p,
.formation-card--with-image .formation-meta span {
  color: #f7f7f7;
}

.formation-card--with-image .formation-status {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.formation-card--with-image .formation-status.open {
  background: rgba(52, 211, 153, 0.18);
  color: #e9f9ef;
}

.formation-card--with-image .formation-status.closed {
  background: rgba(248, 249, 250, 0.18);
  color: #f8f9fa;
}

.formation-card--with-image .btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-black);
  border-color: transparent;
}

.formation-type {
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.formation-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.formation-status.open {
  background: #e8f7ef;
  color: #126c39;
}

.formation-status.closed {
  background: #f2f3f5;
  color: #596171;
}

.hero-status {
  background: rgba(255, 255, 255, 0.92);
}

.formation-meta,
.formation-detail-meta {
  display: grid;
  gap: 0.65rem;
}

.formation-meta {
  margin: 1rem 0 0.25rem;
}

.formation-meta span {
  display: flex;
  gap: 0.55rem;
  align-items: start;
  color: #4f5968;
  font-size: 0.94rem;
}

.formation-meta i,
.formation-detail-meta i,
.formation-topic i {
  color: var(--color-primary);
}

.empty-state {
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  background: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state i {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.empty-state h1,
.empty-state h3 {
  color: var(--color-black);
}

.empty-state p {
  color: #6c757d;
}

.formation-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.formation-copy {
  color: #4f5968;
  font-size: 1.08rem;
  line-height: 1.85;
}

.formation-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.formation-topic {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 1rem;
  color: #303847;
  font-weight: 650;
}

.formation-detail-panel {
  position: sticky;
  top: 94px;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 1.4rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 14, 71, 0.08);
}

.formation-detail-panel h2 {
  color: var(--color-black);
  font-size: 1.35rem;
  font-weight: 780;
  margin: 0.85rem 0 1rem;
}

.formation-detail-meta div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef0f4;
}

.formation-detail-meta div:last-child {
  border-bottom: 0;
}

.formation-detail-meta i {
  grid-row: 1 / span 2;
  font-size: 1.1rem;
}

.formation-detail-meta span {
  color: #7b8491;
  font-size: 0.82rem;
}

.formation-detail-meta strong {
  color: #1e2530;
  font-weight: 760;
}

.mini-stat {
  height: 100%;
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.mini-stat i {
  font-size: 2rem;
}

.mini-stat strong {
  color: var(--color-black);
}

.mini-stat span {
  color: #6c757d;
  font-size: 0.92rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spec-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
}

.about-image,
.product-media img {
  width: 100%;
  object-fit: cover;
}

.about-image {
  aspect-ratio: 4 / 3;
}

.social-section-copy {
  max-width: 720px;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 150px;
  padding: 0.9rem 1.25rem;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  background: #fff;
  color: var(--color-black);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 14, 71, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.social-link-card i {
  font-size: 1.35rem;
}

.youtube-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.youtube-section-heading > div {
  max-width: 760px;
}

.btn-youtube {
  flex: 0 0 auto;
  background: #ff0000;
  color: #fff;
}

.btn-youtube:hover {
  background: #d90000;
  color: #fff;
}

.youtube-video-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  background: #fff;
  color: var(--color-black);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 14, 71, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youtube-video-card:hover {
  transform: translateY(-4px);
  color: var(--color-primary);
  box-shadow: 0 16px 32px rgba(0, 14, 71, 0.12);
}

.youtube-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.youtube-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-thumbnail i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 0, 0, 0.92);
  color: #fff;
  font-size: 1.8rem;
  transform: translate(-50%, -50%);
}

.youtube-video-title {
  display: -webkit-box;
  min-height: 4.8rem;
  padding: 1rem;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.youtube-empty {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px dashed #cfd5dc;
  border-radius: 10px;
  background: #fff;
}

.youtube-empty i {
  color: #ff0000;
  font-size: 2rem;
}

.cta-band {
  background: linear-gradient(90deg, var(--color-black), var(--color-primary));
  color: white;
  padding: 3rem 0;
}

.cta-band h2 {
  font-size: 2rem;
  font-weight: 760;
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.lead-form {
  background: white;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 14, 71, 0.06);
}

.product-detail-page {
  background: #fff;
}

.product-breadcrumb {
  font-size: 0.9rem;
}

.product-breadcrumb a {
  color: #596171;
  text-decoration: none;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.product-gallery-shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  position: sticky;
  top: 92px;
}

.product-thumbnails {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 0.2rem;
}

.product-thumb {
  border: 1px solid #d8dde6;
  background: #f7f8fa;
  border-radius: 6px;
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--color-black);
  box-shadow: 0 8px 20px rgba(0, 14, 71, 0.12);
  transform: translateY(-1px);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.protected-gallery {
  -webkit-touch-callout: none;
  user-select: none;
}

.product-viewer {
  min-height: 680px;
  background: #f4f5f7;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-watermark {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.product-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.05;
  -webkit-user-drag: none;
  user-select: none;
}

.product-watermark-main {
  width: min(58%, 520px);
  height: min(40%, 320px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
}

.product-watermark-modal {
  width: min(54%, 560px);
  height: min(40%, 340px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
}

.product-viewer::after,
.product-image-modal .modal-body::after {
  content: none;
}

.product-viewer::before,
.product-image-modal .modal-body::before {
  content: none;
}

.product-viewer-empty {
  color: #6c757d;
}

.zoom-stage {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  cursor: zoom-in;
  position: relative;
  background: #f4f5f7;
}

.zoom-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.zoom-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--zoom-image);
  background-repeat: no-repeat;
  background-size: 190%;
  background-position: var(--zoom-x, 50%) var(--zoom-y, 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.zoom-stage:hover::after {
  opacity: 1;
}

.zoom-stage:hover img {
  opacity: 0;
}

.zoom-stage figcaption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.viewer-nav,
.viewer-expand {
  position: absolute;
  z-index: 4;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.viewer-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.viewer-prev {
  left: 1rem;
}

.viewer-next {
  right: 1rem;
}

.viewer-expand {
  top: 1rem;
  right: 1rem;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.product-buy-panel {
  padding-top: 1rem;
}

.product-tagline {
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

.product-buy-panel h1 {
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 780;
  line-height: 1.02;
  margin-bottom: 1rem;
}

.product-price {
  color: #111827;
  font-size: 1.65rem;
  font-weight: 750;
  margin-bottom: 1.5rem;
}

.product-quick-meta {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  color: #333b49;
}

.product-quick-meta span {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.product-quick-meta i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.product-actions-stacked {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.product-actions-stacked .btn {
  width: 100%;
  border-radius: 4px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
}

.product-info-accordion {
  border-top: 1px solid #d8dde6;
}

.product-info-accordion details {
  border-bottom: 1px solid #d8dde6;
  padding: 1.1rem 0;
}

.product-info-accordion summary {
  list-style: none;
  cursor: pointer;
  color: #111827;
  font-weight: 750;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-info-accordion summary::-webkit-details-marker {
  display: none;
}

.product-info-accordion summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
}

.product-info-accordion details[open] summary::after {
  content: "-";
}

.product-info-accordion p {
  color: #596171;
  line-height: 1.75;
  margin: 1rem 0 0;
}

.product-info-accordion a {
  color: var(--color-primary);
  font-weight: 700;
}

.product-image-modal .modal-content {
  background: #f5f5f5;
}

.product-image-modal .modal-header {
  background: white;
  border-bottom: 1px solid #e6e9ee;
}

.product-image-modal .modal-body {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.product-image-modal img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.modal-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: white;
  color: var(--color-black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  z-index: 4;
}

.modal-prev {
  left: 2rem;
}

.modal-next {
  right: 2rem;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .navbar-brand img {
    max-width: 150px;
  }

  .youtube-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-link-card {
    min-width: calc(50% - 0.5rem);
  }

  .hero-carousel,
  .hero-carousel .carousel-item {
    height: 520px;
    min-height: 520px;
  }

  .hero-content {
    min-height: 520px;
    height: 520px;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content.container,
  .inner-hero .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
  }

  .hero-content h1,
  .inner-hero h1,
  .inner-hero p {
    width: min(100%, 350px);
    max-width: 350px !important;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-content p {
    width: min(100%, 320px);
    max-width: 320px !important;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .service-card p,
  .mini-stat span,
  .section-subtitle,
  .text-muted {
    overflow-wrap: anywhere;
  }

  .hero-content .display-3 {
    font-size: clamp(1.75rem, 7.6vw, 2.1rem);
    line-height: 1.08;
  }

  .section-heading {
    font-size: clamp(1.65rem, 7.4vw, 1.8rem);
    max-width: 350px;
    overflow-wrap: anywhere;
  }

  .inner-hero {
    min-height: 380px;
    padding: 5rem 0;
  }

  .inner-hero h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.05rem);
    line-height: 1.08;
  }

  .inner-hero p:not(.hero-kicker),
  .hero-content .lead {
    font-size: 1rem;
  }

  .catalog-toolbar {
    align-items: stretch;
  }

  .catalog-search {
    width: 100%;
  }

  .product-actions .btn {
    width: 100%;
  }

  .contact-card {
    padding: 1.25rem !important;
  }

  .floating-contact-buttons {
    right: 14px;
    bottom: 14px;
    gap: 0.55rem;
  }

  .floating-contact-btn {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .back-to-top {
    left: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    position: static;
  }

  .formation-detail-layout {
    grid-template-columns: 1fr;
  }

  .formation-detail-panel {
    position: static;
  }

  .product-shell {
    grid-template-columns: 1fr;
  }

  .product-gallery-shell {
    position: static;
    grid-template-columns: 1fr;
  }

  .product-thumbnails {
    order: 2;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 0.25rem 0 0.5rem;
  }

  .product-thumb {
    width: 76px;
    flex: 0 0 76px;
  }

  .product-viewer {
    min-height: 480px;
  }

  .zoom-stage::after {
    display: none;
  }

  .zoom-stage:hover img {
    opacity: 1;
  }

  .product-buy-panel {
    padding-top: 0;
  }

  .product-buy-panel h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 576px) {
  .catalog-filters {
    padding: 1rem;
  }

  .product-card .card-body,
  .formation-card-content {
    padding: 1.15rem;
  }

  .contact-channel-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 350px);
  }

  .formation-filters {
    justify-content: flex-start;
  }

  .formation-filter {
    width: 100%;
    justify-content: center;
  }

  .formation-topic-grid {
    grid-template-columns: 1fr;
  }

  .product-viewer {
    min-height: 320px;
  }

  .viewer-nav {
    width: 42px;
    height: 42px;
  }

  .viewer-prev {
    left: 0.6rem;
  }

  .viewer-next {
    right: 0.6rem;
  }

  .product-watermark-main,
  .product-watermark-modal {
    width: 64%;
    height: 38%;
    padding: 0.7rem;
  }

  .viewer-expand span {
    display: none;
  }

  .viewer-nav {
    width: 38px;
    height: 38px;
  }

  .modal-gallery-nav {
    width: 42px;
    height: 42px;
  }

  .modal-prev {
    left: 0.75rem;
  }

  .modal-next {
    right: 0.75rem;
  }
}
