/* ==== Custom Navbar (Oswald, WOW) ==== */
.custom-navbar {
  font-family: 'Oswald', sans-serif;
  font-size: 1.07rem;
  letter-spacing: 0.015em;
  border-bottom: 2.2px solid #f5f5f5;
}
.navbar-brand {
  font-weight: 800;
  color: #222 !important;
  font-size: 1.33rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.logo-img { transition: transform .18s; }
.navbar-brand:hover .logo-img { transform: scale(1.09) rotate(-4deg); }

.navbar-nav .nav-link {
  color: #222;
  padding: 0.5rem 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color .18s, background .18s;
  border-radius: 1.1rem;
  position: relative;
  letter-spacing: 0.01em;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus {
  color: #b71c1c;
  background: #f8d7da44;
}
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
  opacity: 1;
  width: 72%;
}
.navbar-nav .nav-link::after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #b71c1c, #dc3545);
  opacity: 0;
  transition: opacity .18s, width .18s;
}

/* Coach Login button (deskop) */
.btn-coach-login {
  background: #f8d7da;
  color: #b71c1c;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.18rem;
  transition: background .17s, color .14s, transform .17s;
  border: none;
  box-shadow: 0 2px 10px #b71c1c13;
  margin-left: 8px;
  display: flex;
  align-items: center; justify-content: center;
}
.btn-coach-login:hover, .btn-coach-login:focus {
  background: linear-gradient(90deg,#dc3545 70%,#b71c1c 100%);
  color: #fff;
  transform: scale(1.08);
  outline: none;
}

/* --- Hamburger & Offcanvas  --- */
.hamburger {
  padding: 0;
  width: 40px; height: 40px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: opacity .18s;
  z-index: 1002;
  display: inline-flex;
  align-items: center;
}
.hamburger-box {
  width: 36px; height: 36px;
  display: inline-block;
  position: relative;
}
.hamburger-inner {
  display: block;
  margin-top: 16px;
  width: 36px; height: 4px;
  background: #b71c1c;
  border-radius: 3px;
  position: relative;
  transition: all .28s cubic-bezier(0.4,0.1,0.15,0.95);
}
.hamburger-inner:before,
.hamburger-inner:after {
  content: "";
  display: block;
  width: 36px; height: 4px;
  background: #b71c1c;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all .28s cubic-bezier(0.4,0.1,0.15,0.95);
}
.hamburger-inner:before { top: -12px; }
.hamburger-inner:after  { bottom: -12px; }

/* Анімація відкриття */
.hamburger.active .hamburger-inner {
  background: transparent;
}
.hamburger.active .hamburger-inner:before {
  transform: translateY(12px) rotate(45deg);
  background: #dc3545;
}
.hamburger.active .hamburger-inner:after {
  transform: translateY(-12px) rotate(-45deg);
  background: #dc3545;
}

/* --- Mobile tweaks --- */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 0.7rem 1.1rem;
    margin: 0.22em 0;
    font-size: 1.11rem;
  }
  .btn-coach-login {
    margin-left: 0; margin-top: 8px;
    width: 38px; height: 38px;
  }
}

/* --- Mobile nav and hamburger (з попереднього кроку, якщо треба, можна підлаштувати кольори під .custom-navbar) --- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  z-index: 1001;
  inset: 0;
  background: rgba(32,30,46,0.41);
  transition: opacity .25s;
  opacity: 0;
}
.mobile-nav {
  position: fixed;
  z-index: 1002;
  top: 0; right: -350px;
  width: 86vw; max-width: 335px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px #b71c1c18;
  transition: right .34s cubic-bezier(.77,0,.18,1);
  padding: 32px 28px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top-left-radius: 1.5em;
  border-bottom-left-radius: 1.5em;
}
.mobile-nav.open { right: 0; }
.mobile-nav-list {
  list-style: none;
  padding: 0;
  width: 100%;
}
.mobile-nav-list li { margin-bottom: 1.1rem; }
.mobile-nav-list a {
  display: block;
  color: #b71c1c;
  font-weight: 800;
  font-size: 1.23rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.28em 0;
  transition: color .17s;
  letter-spacing: 0.02em;
}
.mobile-nav-list a:hover,
.mobile-nav-list .active {
  color: #fff;
  background: linear-gradient(90deg,#dc3545 55%,#b71c1c 100%);
  border-radius: 0.8em;
  padding-left: 0.38em;
}
.mobile-nav-list .coach-link {
  font-size: 1.05em;
  color: #b71c1c;
  background: #f8d7da;
  padding: 0.37em 0.7em;
  border-radius: 0.9em;
  font-weight: 700;
}
.mobile-nav-list .coach-link:hover { color: #fff; background: #dc3545; }

/* Overlay відкритий */
.mobile-nav.open ~ .mobile-nav-overlay {
  display: block;
  opacity: 1;
  pointer-events: all;
}

/* Приховуємо стандартний navbar-collapse на мобільному */
@media (max-width: 991px) {
  .collapse.navbar-collapse { display: none !important; }
}

/*───────────────────────────────*/
/* 1. Базові стилі та заголовки  */
/*───────────────────────────────*/
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #fff;
}

/* footer */
.footer-kanku-modern {
  position: relative;
  background: rgba(22, 17, 34, 0.98);
  overflow: hidden;
  box-shadow: 0 -8px 36px #b71c1c19, 0 -1px 10px #0002;
  width: 100%;
  z-index: 1;
}

.footer-bg-arc {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0; top: -34%;
  width: 140vw; min-width: 1050px;
  background: radial-gradient(circle at 60% 60%, #b71c1c29 50%, transparent 75%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  filter: blur(2px);
}

.footer-content {
  position: relative;
  z-index: 2;
  min-height: 78px;
  flex-wrap: wrap;
  gap: 1.4em;
}

.footer-brand {
  gap: 1.2em;
  align-items: center;
  min-width: 210px;
}

.footer-logo-img {
  height: 54px;
  width: 54px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #b71c1c38;
  box-shadow: 0 4px 22px #b71c1c1b, 0 0px 8px #dc354522;
  object-fit: cover;
  transition: transform .18s;
}
.footer-logo-img:hover { transform: scale(1.09) rotate(-3deg); }

.footer-brand-title {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.34rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.footer-brand-sub {
  font-size: 0.96rem;
  color: #fff;
  font-weight: 500;
  margin-top: 1px;
  font-family: 'Montserrat',sans-serif;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.09rem;
  display: flex;
  align-items: center;
  gap: 0.22em;
  transition: color .18s, background .18s;
  padding: 0.14em 0.7em 0.14em 0.3em;
  border-radius: 0.9em;
  opacity: 0.96;
}
.footer-link:hover, .footer-link:focus {
  background: #dc35451b;
  color: #ffdde1;
  box-shadow: 0 1px 7px #dc35451f;
  opacity: 1;
  text-decoration: underline;
}
.footer-link.viber .footer-viber-icon svg {
  fill: #7c529e;
  transition: fill .17s, filter .22s;
}
.footer-link.viber:hover .footer-viber-icon svg,
.footer-link.viber:focus .footer-viber-icon svg {
  fill: #fff !important;
  filter: drop-shadow(0 2px 7px #9258b76a);
}

.footer-link.viber:hover,
.footer-link.viber:focus {
  background: #7c529e33;
  color: #fff;
  text-decoration: underline;
}

.footer-link.telegram .bi-telegram { font-size: 1.24em; color: #229ED9;}
.footer-link.telegram:hover .bi-telegram { color: #fff;}

.footer-link.phone .bi-telephone-fill { color: #43d66a; }
.footer-link.email .bi-envelope-fill { color: #ffb84d; }

.footer-link.viber .footer-viber-icon { display: flex; align-items: center; }
.footer-link .footer-viber-icon svg { vertical-align: middle; }

.footer-social {
  gap: 0.5em;
  margin-top: 0.05em;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.02rem;
  width: 2.45em; height: 2.45em;
  background: rgba(240,240,240,0.05);
  border-radius: 1.3em;
  color: #fff;
  margin-right: 0.08em;
  transition: background .18s, color .14s, box-shadow .18s, transform .13s;
  box-shadow: 0 2px 12px #b71c1c0b;
  opacity: 0.92;
  position: relative;
  overflow: hidden;
}
.footer-social-link:last-child { margin-right: 0;}
.footer-social-link:hover, .footer-social-link:focus {
  background: #dc3545;
  color: #fff;
  box-shadow: 0 2px 18px #b71c1c38;
  transform: scale(1.17) rotate(-8deg);
  opacity: 1;
}
.footer-social-link.facebook:hover { background: #1877f2; color: #fff; }
.footer-social-link.instagram:hover { background: radial-gradient(circle at 30% 90%, #fd5949 10%, #d6249f 60%, #285AEB 100%); color: #fff;}
.footer-social-link.youtube:hover { background: #ff0000; color: #fff;}
.footer-social-link.telegram:hover { background: #229ED9; color: #fff;}

.social-text{
    color: #eaeaea;
}

.footer-bottom {
  font-family: 'Montserrat',sans-serif;
  font-size: 0.99em;
  opacity: 0.8;
  letter-spacing: 0.03em;
  padding-top: 10px;
}

.footer-main-group {
  gap: 1em;
}
.footer-contacts {
  gap: 0.7em;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.footer-phone-group {
  display: flex;
  align-items: center;
  gap: 0.25em;
  background: transparent;
}
.footer-phone-group:not(:last-child) {
  margin-right: 0.55em;
}
.footer-bottom a.legal { color: #fff; text-decoration: none; }
.footer-bottom a.legal:hover { text-decoration: underline; }

/* Адаптив */
@media (max-width: 1050px) {
  .footer-content { flex-direction: column; gap: 1.5em; align-items: stretch; text-align: center;}
  .footer-main-group { flex-direction: column !important; align-items: center !important;}
  .footer-social { margin-top: 10px;}
  .footer-logo-img { height: 42px; width: 42px;}
  .footer-brand-title { font-size: 1.07rem;}
  .footer-contacts { justify-content: center;}
  .footer-bottom { font-size: 0.97em; }
}

@media (max-width: 600px) {
  .footer-logo-img { height: 32px; width: 32px;}
  .footer-brand-title { font-size: 0.93rem;}
  .footer-link span, .footer-link i { font-size: 1em; }
  .footer-link .footer-viber-icon svg { width: 19px; height: 19px;}
  .footer-content { gap: 0.7em;}
  .footer-main-group, .footer-contacts { flex-direction: column !important; align-items: center !important;}
  .footer-phone-group { justify-content: center; flex-direction: row; margin-right: 0;}
  .footer-bottom { font-size: 0.93em;}
  .social-text{font-size: 0.75rem;}
}

@media (max-width: 410px) {
  .footer-link { font-size: 0.96rem; }
  .footer-social-link { font-size: 1.41rem; width: 2em; height: 2em; }
}