/* Manrope (variable 200–800): кирилиця + латиниця, браузер вантажить лише потрібні файли */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/Manrope-cyrillic-ext.woff2') format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/Manrope-cyrillic.woff2') format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/Manrope-latin-ext.woff2') format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/Manrope-latin.woff2') format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-main: #f9fbf9;
  --bg-card: #ffffffd9;
  --bg-header: #f9fbf9bf;
  --text-main: #0f1710;
  --text-muted: #4b5563;
  --accent: #10b981;
  --accent-glow: #10b98159;
  --accent-light: #10b9811f;
  --border: #10b98133;
  --shadow-premium: 0 20px 40px -15px #0000000d;
  --radius: 20px;
  --hero-overlay: linear-gradient(180deg, #f9fbf9bf 0%, #f9fbf9f2 100%);
}

body.dark-theme {
  --bg-main: #070a08;
  --bg-card: #121a14b3;
  --bg-header: #070a08cc;
  --text-main: #f3fcf6;
  --text-muted: #9ca3af;
  --accent: #39FF14;
  --accent-glow: #39ff1473;
  --accent-light: #39ff141f;
  --border: #39ff1440;
  --shadow-premium: 0 20px 40px -15px #000000b3;
  --hero-overlay: linear-gradient(180deg, #070a08bf 0%, #070a08f2 100%);
}

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

html {
  scroll-behavior: smooth;
}

/* кнопки й поля форм за замовчуванням не успадковують шрифт */
button,
input,
select,
textarea {
  font-family: inherit;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-highlight {
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  will-change: transform;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 48px;
}

.logo-img {
  height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform .3s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.03);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav__link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 4px 0;
  transition: color .3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s ease;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link:hover::after {
  width: 100%;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 102;
}

.burger-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all .3s ease;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: var(--shadow-premium);
}

.hero {
  padding: clamp(140px, 20vh, 200px) 0 clamp(60px, 10vh, 100px);
  text-align: center;
  position: relative;
  background: var(--hero-overlay), url('/img/hero.webp') center/cover no-repeat;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero__subtitle {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 32px;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  text-align: center;
}

.hero__card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  display: inline-block;
  box-shadow: var(--shadow-premium);
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.btn {
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: transform .3s ease, box-shadow .3s ease;
}

.btn--primary {
  background: var(--accent);
  color: #03200e;
  box-shadow: 0 10px 25px -5px var(--accent-glow);
}

body.dark-theme .btn--primary {
  color: #000;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px 0 var(--accent-glow);
}

.section {
  padding: clamp(50px, 8vh, 90px) 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all .4s ease;
}

.section-title .text-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}

body.dark-theme .section-title {
  background: linear-gradient(135deg, #fff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-theme .section-title .text-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #03200e;
  border-color: var(--accent);
}

body.dark-theme .filter-btn.active {
  color: #000;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 30vw, 340px), 1fr));
  gap: 24px;
}

/* Карточки */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.grid-3 .card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 12px;
  padding: 24px 20px;
  cursor: pointer;
}

.grid-3 .card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -10px var(--accent-glow);
}

.grid-3 .card .icon-box {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.grid-3 .card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
  line-height: 1.3;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding-right: 65px;
}

.grid-3 .card p {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.5;
  margin: 0;
}

.card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-light);
  color: #065f46;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}

body.dark-theme .card__tag {
  background: #39ff1426;
  color: #39FF14;
}

/* Іконки */
.icon-box,
.contact-item__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-light) 0%, #ffffff0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: 0 8px 20px -6px var(--accent-glow), inset 0 1px 1px #ffffff4d;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background .4s ease, color .4s ease;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.icon-box svg,
.contact-item__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 8px var(--accent-glow));
  transition: transform .4s ease, filter .4s ease;
}

.card:hover .icon-box,
.benefit-card:hover .icon-box,
.contact-item:hover .contact-item__icon {
  transform: translateY(-4px) scale(1.05);
  background: var(--accent);
  color: #03200e;
  box-shadow: 0 12px 28px 0 var(--accent-glow);
  border-color: var(--accent);
}

body.dark-theme .card:hover .icon-box,
body.dark-theme .benefit-card:hover .icon-box,
body.dark-theme .contact-item:hover .contact-item__icon {
  color: #000;
}

.card:hover .icon-box svg,
.benefit-card:hover .icon-box svg,
.contact-item:hover .contact-item__icon svg {
  transform: scale(1.1) rotate(-8deg);
  filter: none;
}

/* Benefit-card */
.benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 24px;
  box-shadow: var(--shadow-premium);
  transition: transform .3s ease, border-color .3s ease;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 12px;
  text-align: left;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.benefit-card .icon-box {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.benefit-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
  line-height: 1.3;
  display: flex;
  align-items: center;
  min-height: 58px;
}

.benefit-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--text-muted);
  font-size: .95rem;
  text-align: left;
  line-height: 1.6;
  margin: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-premium);
  transition: border-color .3s ease;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item__question {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform .3s ease;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* Модальні вікна */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #000000b3;
  backdrop-filter: blur(8px);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}

.modal.active {
  display: flex !important;
  opacity: 1;
}

.modal__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 550px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-premium);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 15;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.form__input {
  padding: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 12px;
  font-family: inherit;
}

/* Контакти */
.contacts-modern {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.contacts-modern__content {
  padding: clamp(30px, 5vw, 50px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacts-modern__header {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: left;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.contact-item__icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-item__title {
  font-size: .85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
}

.contact-item__text {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2px;
}

.contact-item__text a {
  color: var(--accent);
  text-decoration: none;
}

.contacts-modern__map {
  min-height: 380px;
  width: 100%;
  position: relative;
}

.contacts-modern__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) opacity(0.9);
}

.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}

/* Карусель */
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 30px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border);
  contain: layout paint;
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease-in-out, visibility .6s ease-in-out;
  pointer-events: none;
  overflow: hidden;
  will-change: opacity, visibility;
}

.carousel__slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #00000059;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid #ffffff4d;
  color: #fff;
  font-size: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
  z-index: 10;
}

.carousel__btn:hover {
  background: var(--accent);
  color: #03200e;
  border-color: var(--accent);
}

body.dark-theme .carousel__btn:hover {
  color: #000;
}

.carousel__btn--prev {
  left: 12px;
}

.carousel__btn--next {
  right: 12px;
}

.carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff80;
  border: none;
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}

.carousel__dot.active {
  background: #fff;
  width: 22px;
  border-radius: 10px;
}

/* -----------------------------------------------------------------
   СТІЛИ ТА КОМПОНЕНТИ СТОРІНКИ РОЗКЛАДУ (Schedule)
   ----------------------------------------------------------------- */
.schedule-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.schedule-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-tab-btn.active, 
.schedule-tab-btn:hover {
  background: var(--accent);
  color: #03200e;
  border-color: var(--accent);
}

body.dark-theme .schedule-tab-btn.active,
body.dark-theme .schedule-tab-btn:hover {
  color: #000;
}

.schedule-day-content {
  display: none;
  text-align: center;
  width: 100%;
}

.schedule-day-content.active {
  display: block;
}

.schedule-card-wrapper {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.schedule-main-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  margin-top: 20px;
}

.schedule-day-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--accent);
  text-align: center;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.schedule-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.schedule-table td {
  padding: 16px;
  font-size: 1.05rem;
  vertical-align: middle;
}

.schedule-item-name {
  text-align: left;
  color: var(--text-main);
  font-weight: 500;
}

.schedule-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.schedule-item-name a:hover {
  color: var(--accent);
}

.schedule-time {
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
  width: 130px;
}

.schedule-note {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 0.95rem;
  width: 100%;
}

.schedule-footer-info {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
}

.schedule-footer-title {
  color: var(--text-main);
  font-weight: 600;
}

.schedule-footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Адаптивність */
@media (max-width: 900px) {
  .contacts-modern {
    grid-template-columns: 1fr;
  }
  .burger-btn {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    border-left: 1px solid var(--border);
    transition: right .4s ease;
  }
  .nav.active {
    right: 0;
  }
}

@media (max-width: 768px) {
  .carousel {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .carousel__btn {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
  .carousel__btn--prev {
    left: 8px;
  }
  .carousel__btn--next {
    right: 8px;
  }
  .carousel__dots {
    bottom: 8px;
  }
}

@media (max-width: 480px) {
  .logo-link {
    height: 38px;
  }
}
/* ==========================================================================
   Класи замість inline-стилів (style="..." прибрано з розмітки)
   ========================================================================== */

/* Контейнери */
.container--sm { max-width: 800px; }
.container--rules { max-width: 850px; }
.container--md { max-width: 900px; }
.text-center { text-align: center; }

/* Відступи */
.m-0 { margin: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }
.overflow-x { overflow-x: auto; }

/* Посилання */
a.card { text-decoration: none; color: inherit; }
.link-accent { color: var(--accent); }

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
}

/* Hero */
.hero__subtitle--narrow { max-width: 700px; margin: 0 auto 20px; }
.hero__card--center { max-width: 500px; margin: 0 auto; }

/* Картки з текстом */
.align-start { text-align: left; align-items: flex-start; }
.card--static { text-align: left; align-items: flex-start; cursor: default; }
.card--rules { padding: clamp(24px, 4vw, 48px); cursor: default; }
.card .card__title { font-size: 1.5rem; margin-bottom: 16px; }
.card .card__subtitle { font-size: 1.4rem; margin-bottom: 12px; }
.card .card__heading { font-size: 1.3rem; margin-bottom: 12px; color: var(--text-main); }
.card .card__heading--spaced { margin: 24px 0 12px; }
.card__cta { margin-top: 36px; text-align: center; width: 100%; }
.section-title--card { font-size: 1.8rem; margin-bottom: 24px; text-align: left; }

.card .text-lead { text-align: left; font-size: 1.05rem; line-height: 1.8; color: var(--text-main); }
.card .text-lead--muted { color: var(--text-muted); margin-top: 12px; }
.text-body,
.card .text-body { color: var(--text-muted); line-height: 1.7; }

.text-list {
  margin-left: 20px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.card .tip {
  color: var(--accent);
  margin-top: 12px;
  font-weight: 600;
  font-size: .95rem;
}

/* Таблиця порівняння (Exotic Pole Dance) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  color: var(--text-main);
  font-size: .95rem;
}
.compare-table th,
.compare-table td { padding: 12px; }
.compare-table__head { border-bottom: 2px solid var(--border); text-align: left; }
.compare-table__row { border-bottom: 1px solid var(--border); }
.compare-table .is-accent { color: var(--accent); }
.compare-table .is-label { font-weight: 700; }
.compare-table .is-muted { color: var(--text-muted); }

/* Правила */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.rules-item { display: flex; gap: 14px; align-items: flex-start; }
.rules-num { color: var(--accent); font-weight: 800; min-width: 24px; }

/* Соцмережі (шапка та контакти) */
.social-link {
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  transition: color .3s ease;
}
.social-link:hover { color: var(--accent); }
.nav__socials { display: inline-flex; gap: 10px; align-items: center; margin-left: 10px; }
.contact-socials { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.contact-item__text a.social-link { color: var(--text-main); }
.contact-item__text a.social-link:hover { color: var(--accent); }

/* Модальне вікно */
.modal__title { font-size: 1.3rem; }
.modal__text { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.btn--block { width: 100%; }
.hp-field { display: none !important; }

/* 404 */
.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  filter: drop-shadow(0 0 25px var(--accent-glow));
  margin-bottom: 10px;
}
.hero__title--sm { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn--ghost { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-main); }

/* ==========================================================================
   Меню: активний пункт + випадаючий список «Напрями»
   ========================================================================== */
.nav__link.is-active,
.nav__dropdown.is-current > .nav__toggle { color: var(--accent); }
.nav__link.is-active::after { width: 100%; }

.nav__toggle {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__toggle::before {
  content: '';
  order: 2;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s ease;
}
.nav__dropdown.open > .nav__toggle::before { transform: translateY(1px) rotate(-135deg); }

.nav__dropdown { position: relative; }

.nav__submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px 28px;
  padding: 20px 24px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-premium);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 101;
}
/* «місток», щоб меню не закривалось при переході курсора */
.nav__submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }

.nav__dropdown.open > .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (hover: hover) and (min-width: 901px) {
  .nav__dropdown:hover > .nav__submenu,
  .nav__dropdown:focus-within > .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.nav__group { display: flex; flex-direction: column; gap: 6px; }
.nav__group-title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.nav__sublink {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__sublink:hover,
.nav__sublink.is-active { color: var(--accent); }

@media (max-width: 900px) {
  .nav {
    justify-content: flex-start;
    align-items: flex-start;
    background: var(--bg-main);
    gap: 22px;
    padding-top: 90px;
    overflow-y: auto;
  }
  .nav__submenu {
    position: static;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0 0 14px;
    background: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__submenu::before { display: none; }
  .nav__dropdown.open > .nav__submenu { display: grid; transform: none; }
  .nav__socials { margin-left: 0; }
}

/* ==========================================================================
   Футер: посилання на всі сторінки
   ========================================================================== */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
  text-align: left;
  margin-bottom: 28px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__title {
  color: var(--text-main);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer__col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--accent); }

/* ==========================================================================
   Блок «Розклад тренувань» на сторінках напрямів (includes/schedule-block.php)
   ========================================================================== */
.direction-schedule__card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-premium);
  padding: clamp(16px, 3vw, 32px);
  margin-top: 30px;
}

.direction-schedule__table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-main);
  text-align: left;
}

.direction-schedule__table thead th {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  padding: 0 14px 12px;
  border-bottom: 2px solid var(--border);
}

.direction-schedule__table tbody th,
.direction-schedule__table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.direction-schedule__table tbody tr:last-child th,
.direction-schedule__table tbody tr:last-child td { border-bottom: none; }

.direction-schedule__table tbody tr { transition: background .2s ease; }
.direction-schedule__table tbody tr:hover { background: var(--accent-light); }

.direction-schedule__table tbody th {
  font-weight: 700;
  white-space: nowrap;
  width: 1%;
}

.direction-schedule__table tbody td:last-child { color: var(--text-muted); }
.direction-schedule__table tbody td[data-label="Час"] { color: var(--text-main); }

.direction-schedule__time {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.dark-theme .direction-schedule__time { color: #39FF14; }

.direction-schedule__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.direction-schedule__link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.direction-schedule__link:hover { text-decoration: underline; }

/* Мобільні: кожен рядок — окрема картка «День / Час / Група» */
@media (max-width: 600px) {
  .direction-schedule__table thead { display: none; }
  .direction-schedule__table,
  .direction-schedule__table tbody,
  .direction-schedule__table tr,
  .direction-schedule__table th,
  .direction-schedule__table td { display: block; width: 100%; }

  .direction-schedule__table tbody tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .direction-schedule__table tbody tr:last-child { border-bottom: none; }
  .direction-schedule__table tbody th,
  .direction-schedule__table tbody td { padding: 4px 0; border: none; }
  .direction-schedule__table tbody th { font-size: 1.05rem; }

  .direction-schedule__table tbody td[data-label="Група"]::before {
    content: attr(data-label) ": ";
    font-weight: 700;
  }

  .direction-schedule__actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Міні-іконка (день у таблиці розкладу) — той самий стиль, що й .icon-box */
.icon-box--sm {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  margin-bottom: 0;
  background: var(--accent-light);
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: 0 4px 12px -4px var(--accent-glow);
}
.icon-box--sm svg {
  width: 17px;
  height: 17px;
  filter: none;
}
.direction-schedule__table tbody tr:hover .icon-box--sm {
  transform: translateY(-2px) scale(1.05);
  background: var(--accent);
  border-color: var(--accent);
  color: #03200e;
  box-shadow: 0 8px 18px 0 var(--accent-glow);
}
body.dark-theme .direction-schedule__table tbody tr:hover .icon-box--sm { color: #000; }
.direction-schedule__table tbody tr:hover .icon-box--sm svg { transform: scale(1.1) rotate(-8deg); }

.direction-schedule__day {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Час у розкладі — кнопка запису */
button.direction-schedule__time {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
button.direction-schedule__time:hover,
button.direction-schedule__time:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #03200e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px var(--accent-glow);
  outline: none;
}
body.dark-theme button.direction-schedule__time:hover,
body.dark-theme button.direction-schedule__time:focus-visible { color: #000; }

/* Плашка «Запис на: Понеділок, 18:30» у модальному вікні */
.booking-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: .92rem;
}
.booking-preview strong { color: var(--accent); }
.booking-preview[hidden] { display: none; }

/* ==========================================================================
   Блок «Інші напрями» / «Детальніше про напрями» (includes/directions-links.php)
   ========================================================================== */
.directions-links__groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.directions-links__group-title {
  display: block;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.directions-links__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.directions-links__link {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.directions-links__link:hover,
.directions-links__link:focus-visible {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}
