:root {
  --ch-shell-navy: #0d1f3c;
  --ch-shell-text: #2d3a4e;
  --ch-shell-text-soft: #5a6a7e;
  --ch-shell-text-faint: rgba(255, 255, 255, 0.24);
  --ch-shell-border: rgba(13, 31, 60, 0.08);
  --ch-shell-border-strong: rgba(13, 31, 60, 0.14);
  --ch-shell-blue: #2563eb;
  --ch-shell-blue-dark: #1d4ed8;
  --ch-shell-bg: #f5f7fa;
  --ch-shell-bg-soft: #edf0f5;
  --ch-shell-white: #ffffff;
  --ch-shell-font: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 18px;
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ch-shell-blue);
  color: #fff;
  font: 600 13px/1 var(--ch-shell-font);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-nav,
.nav__drawer,
.site-footer {
  font-family: var(--ch-shell-font);
}

.site-nav .container,
.site-footer .container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(13, 31, 60, 0.07);
  box-shadow: 0 1px 0 rgba(13, 31, 60, 0.04), 0 4px 24px rgba(13, 31, 60, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 58px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  display: block;
  width: 212px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 12px;
}

.nav__links a {
  color: var(--ch-shell-text-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav__links a:hover {
  color: var(--ch-shell-navy);
}

.nav__text-link {
  display: inline-flex;
  align-items: center;
}

.nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__item--has-submenu {
  padding: 10px 0;
  margin: -10px 0;
}

.nav__text-link .nav__item-label {
  line-height: 1;
}

.nav__text-link--current:not(.nav__text-link--courses) {
  color: var(--ch-shell-navy);
  font-weight: 600;
}

.nav__text-link--has-submenu {
  gap: 8px;
}

.nav__text-link--courses {
  color: var(--ch-shell-navy);
  font-weight: 600;
  transition: color 180ms ease;
}

.nav__text-link--courses:hover,
.nav__text-link--courses:focus-visible,
.nav__text-link--courses.nav__text-link--current {
  color: var(--ch-shell-navy);
}

.nav__submenu-caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  opacity: 0.58;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav__item--has-submenu:hover .nav__submenu-caret,
.nav__item--has-submenu:focus-within .nav__submenu-caret {
  transform: rotate(45deg) translate(1px, 0);
  opacity: 0.92;
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav__item--has-submenu:hover .nav__submenu,
.nav__item--has-submenu:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__submenu-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  width: 100%;
  padding: 0 16px 0 19px;
  border: 1px solid rgba(13, 31, 60, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ch-shell-text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 18px 38px rgba(13, 31, 60, 0.12);
}

.nav__item--has-submenu .nav__text-link--current,
.nav__item--has-submenu:hover > .nav__text-link,
.nav__item--has-submenu:focus-within > .nav__text-link {
  color: var(--ch-shell-navy);
}

.nav__submenu-link:hover,
.nav__submenu-link:focus-visible {
  color: var(--ch-shell-navy);
  border-color: rgba(37, 99, 235, 0.16);
  background: #fff;
}

.nav__login {
  flex-shrink: 0;
  margin-left: 2px;
}

.nav__cart-link {
  position: relative;
  flex-shrink: 0;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ch-shell-text);
}

.nav__cart-link svg {
  width: 17px;
  height: 17px;
  display: block;
}

.nav__cart-link .nav__item-label {
  line-height: 1;
}

.nav__cart-link:hover {
  color: var(--ch-shell-navy);
  border-color: rgba(13, 31, 60, 0.22);
  box-shadow: 0 10px 24px rgba(13, 31, 60, 0.08);
}

.nav__cart-link .nav__cart-count {
  top: -5px;
  right: -6px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ch-shell-border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ch-shell-text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.nav__cart:hover {
  transform: translateY(-1px);
  color: var(--ch-shell-navy);
  border-color: rgba(13, 31, 60, 0.22);
  box-shadow: 0 10px 24px rgba(13, 31, 60, 0.08);
}

.nav__cart--mobile {
  display: none;
}

.nav__cart svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav__cart-count {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ch-shell-blue);
  color: #fff;
  font: 700 10px/18px var(--ch-shell-font);
  text-align: center;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: var(--ch-shell-text);
  font: 600 13px/1 var(--ch-shell-font);
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ch-shell-blue) 0%, var(--ch-shell-blue-dark) 100%);
  border-color: var(--ch-shell-blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.btn-outline,
.btn-outline-white {
  background: transparent;
  border-color: var(--ch-shell-border-strong);
}

.btn-outline {
  color: var(--ch-shell-text);
}

.btn-outline-white {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
  background: rgba(13, 31, 60, 0.04);
  border-color: rgba(13, 31, 60, 0.22);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--ch-shell-navy);
  border-color: #fff;
  box-shadow: 0 14px 28px rgba(13, 31, 60, 0.12);
}

.btn-white:hover {
  color: var(--ch-shell-navy);
  background: #f7f9fc;
  border-color: #f7f9fc;
}

.btn-lg {
  min-height: 52px;
  padding: 15px 28px;
  font-size: 14px;
}

.site-nav .btn,
.nav__drawer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--ch-shell-font);
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-nav .btn {
  padding: 8px 14px;
}

.site-nav .btn-primary,
.nav__drawer .btn-primary {
  background: linear-gradient(135deg, var(--ch-shell-blue) 0%, var(--ch-shell-blue-dark) 100%);
  border-color: var(--ch-shell-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.site-nav .btn-primary:hover,
.nav__drawer .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.site-nav .btn-outline-white,
.nav__drawer .btn-outline {
  background: transparent;
  color: var(--ch-shell-text);
  border-color: var(--ch-shell-border-strong);
}

.site-nav .btn-outline-white:hover,
.nav__drawer .btn-outline:hover {
  background: var(--ch-shell-bg);
  border-color: rgba(13, 31, 60, 0.22);
}

.btn-full {
  width: 100%;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px 2px;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ch-shell-text);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav__drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px 24px;
  background: #fff;
  border-top: 1px solid rgba(13, 31, 60, 0.07);
}

.nav__drawer[aria-hidden="false"] {
  display: flex;
}

.nav__drawer-group {
  border-bottom: 1px solid rgba(13, 31, 60, 0.06);
}

.nav__drawer-group:last-of-type {
  border-bottom: 0;
}

.nav__drawer-link,
.nav__drawer-sublink {
  display: block;
  text-decoration: none;
}

.nav__drawer-link {
  padding: 12px 0;
  color: var(--ch-shell-text-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav__drawer-link--courses {
  color: var(--ch-shell-navy);
  font-weight: 600;
}

.nav__drawer-submenu {
  display: grid;
  gap: 0;
  padding: 0 0 8px 16px;
}

.nav__drawer-sublink {
  padding: 8px 0;
  color: var(--ch-shell-text);
  font-size: 14px;
  font-weight: 500;
}

.nav__drawer .btn {
  margin-top: 10px;
  min-height: 42px;
}

.site-footer {
  margin-top: 0;
  padding: 24px 0 16px;
  background: var(--ch-shell-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, max-content));
  justify-content: center;
  gap: 42px;
  padding-bottom: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-bottom: 0;
}

.footer__brand-logo img {
  display: block;
  width: 184px;
  height: auto;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  color: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px) scale(1.04);
}

.footer__social-link svg {
  display: block;
  width: 19px;
  height: 19px;
}

.footer__col-title {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col ul li a,
.footer__legal a,
.footer__copy {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.footer__col ul li a:hover,
.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 1025px) {
  .site-footer {
    padding: 14px 0 10px;
  }

  .site-footer .container {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: start;
    align-items: start;
    column-gap: 28px;
    row-gap: 6px;
  }

  .site-footer .footer__top {
    display: contents;
  }

  .site-footer .footer__brand {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .site-footer .footer__grid {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 92px max-content;
    justify-content: start;
    align-items: center;
    width: max-content;
    column-gap: 12px;
    row-gap: 6px;
    align-self: start;
    justify-self: start;
    padding: 0;
    margin: 0;
    border-bottom: 0;
  }

  .site-footer .footer__social {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    gap: 12px;
    justify-self: end;
  }

  .site-footer .footer__col {
    display: contents;
  }

  .site-footer .footer__col-title {
    margin-bottom: 0;
    min-width: 92px;
    line-height: 1;
    justify-self: start;
    align-self: center;
  }

  .site-footer .footer__col ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
  }

  .site-footer .footer__col ul li a {
    white-space: nowrap;
    line-height: 1.18;
  }

  .site-footer .footer__bottom {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 7px;
  }

  .site-footer .footer__copy,
  .site-footer .footer__legal a {
    line-height: 1.2;
  }

  .site-footer .footer__legal {
    gap: 9px;
  }
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2cdf72 0%, #25d366 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.26), 0 6px 18px rgba(13, 31, 60, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.3), 0 8px 22px rgba(13, 31, 60, 0.16);
  filter: brightness(1.02);
}

.floating-whatsapp:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18), 0 18px 36px rgba(37, 211, 102, 0.3), 0 8px 22px rgba(13, 31, 60, 0.16);
}

.floating-whatsapp__icon {
  width: 28px;
  height: 28px;
  display: block;
}

@media (max-width: 1024px) {
  .site-nav .container,
  .site-footer .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__cart--mobile {
    display: inline-flex;
    margin-left: auto;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__inner {
    height: 56px;
    gap: 10px;
  }

  .nav__logo img {
    width: 190px;
  }

  .nav__drawer {
    padding: 14px 18px 18px;
  }

  .footer__grid {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .skip-link {
    left: 10px;
  }

  .site-nav .container,
  .site-footer .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav__logo img {
    width: 184px;
  }

  .nav__drawer {
    padding: 14px 10px 18px;
  }

  .site-footer {
    padding: 12px 0 12px;
  }

  .site-footer .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .site-footer .footer__brand {
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-footer .footer__grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    justify-content: stretch;
    max-width: none;
    width: 100%;
    gap: 0 24px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .site-footer .footer__brand-logo img {
    width: 156px;
    margin: 0;
  }

  .site-footer .footer__social {
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 12px;
  }

  .site-footer .footer__social-link {
    width: 22px;
    height: 22px;
  }

  .site-footer .footer__social-link svg {
    width: 20px;
    height: 20px;
  }

  .site-footer .footer__col {
    align-items: flex-start;
    text-align: left;
  }

  .site-footer .footer__col-title {
    display: none;
  }

  .site-footer .footer__col ul {
    display: grid;
    width: 100%;
    align-items: flex-start;
    gap: 7px;
  }

  .site-footer .footer__col ul li a {
    display: block;
    width: 100%;
  }

  .site-footer .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 7px;
  }

  .site-footer .footer__copy {
    width: 100%;
    font-size: 11px;
    text-align: left;
  }

  .site-footer .footer__legal {
    justify-content: flex-start;
    width: 100%;
    gap: 5px 12px;
  }

  .site-footer .footer__legal a {
    font-size: 11px;
    line-height: 1.3;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp__icon {
    width: 24px;
    height: 24px;
  }
}
