/* YogaCore — кастомные стили поверх темы yogaworks */

/* Логотип-текст */
.yc-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.yc-logo span { color: #b0764a; }

.header-wrap .logo a {
  width: auto;
  align-items: center;
  justify-content: center;
}

/* Хлебные крошки */
.breadcrumbs { padding: 18px 0 0; font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs a { color: var(--color-gray-700); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumbs .crumb-sep { color: var(--color-gray-500); }
.breadcrumbs .crumb-current { color: var(--color-gray-300); }

/* Hero для внутренних страниц */
.yc-hero {
  padding: 90px 0 70px;
  background: linear-gradient(180deg, #fdf0e3 0%, #f7e6d2 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.yc-hero[style*="background-image"] .yc-hero-inner {
  background: rgba(255, 250, 243, .88);
  padding: 40px 48px;
  border-radius: 12px;
  max-width: 780px;
}
.yc-hero .h1 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; margin-bottom: 18px; }
.yc-hero .sub-title { font-family: var(--font-secondary); font-size: 13px; letter-spacing: .14em; color: #b0764a; margin-bottom: 14px; }
.yc-hero-text { font-size: 18px; line-height: 1.55; color: var(--color-gray-700); max-width: 720px; margin-bottom: 26px; }
.yc-hero .btn-wrap { display: flex; gap: 14px; flex-wrap: wrap; }

/* Фото тренера */
.yc-trainer-photo { text-align: center; padding: 24px 0 8px; }
.yc-trainer-photo img { max-width: 100%; max-height: 520px; width: auto; height: auto; border-radius: 12px; }
.yc-trainer-split { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.yc-trainer-left .yc-trainer-photo { padding: 0; text-align: left; }
.yc-trainer-left .yc-trainer-photo img { max-height: none; height: auto; border-radius: 14px; }
.yc-trainer-right .yc-trainer-card + .yc-trainer-card { margin-top: 42px; }
.yc-trainer-right .yc-content { max-width: none; }
@media (max-width: 991px) {
  .yc-trainer-split { grid-template-columns: 1fr; }
  .yc-trainer-left .yc-trainer-photo img { max-height: 520px; }
}

/* Блоки контента */
.yc-block .yc-content { max-width: 900px; }
.yc-content p { font-size: 17px; line-height: 1.65; color: var(--color-gray-700); }
.yc-content p + p { padding-top: 16px; }
.yc-content ul, .yc-content ol { margin: 14px 0; padding-left: 0; }
.yc-content li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 17px; line-height: 1.55; color: var(--color-gray-700); }
.yc-content ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #b0764a; }
.yc-content ol { counter-reset: yc; }
.yc-content ol li { counter-increment: yc; }
.yc-content ol li::before { content: counter(yc) '.'; position: absolute; left: 0; top: 0; font-family: var(--font-secondary); color: #b0764a; }
.yc-content h2 { margin-top: 28px; margin-bottom: 12px; font-size: 26px; }
.yc-content h3 { margin-top: 20px; margin-bottom: 8px; font-size: 20px; }
.yc-content a { color: #b0764a; }
.yc-content a:hover { text-decoration: underline; }
.yc-muted { color: var(--color-gray-300); font-size: 14px; }

/* Карточки */
.yc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-top: 8px; }
.yc-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-400);
  border-radius: 14px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.yc-card:hover { box-shadow: 0 10px 30px rgba(31,31,31,.08); transform: translateY(-2px); }
.yc-card h3 { font-size: 20px; line-height: 1.25; }
.yc-card h3 a { color: var(--color-primary); text-decoration: none; }
.yc-card h3 a:hover { color: #b0764a; }
.yc-card p { font-size: 15px; line-height: 1.55; color: var(--color-gray-700); }
.yc-card .btn { margin-top: auto; align-self: flex-start; }
.yc-stars { color: #d8a05a; letter-spacing: 3px; font-size: 16px; }

/* Таблицы (цены, расписание) */
.yc-table { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--color-white); border-radius: 12px; overflow: hidden; }
.yc-table th, .yc-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-gray-400); font-size: 15px; }
.yc-table thead th { background: var(--color-gray-800); color: var(--color-white); font-weight: 500; }
.yc-table tbody tr:hover { background: #fdf6ec; }
.yc-price { font-family: var(--font-secondary); font-size: 20px; white-space: nowrap; }

/* Фильтры расписания */
.yc-filters { display: flex; flex-wrap: wrap; gap: 26px; }
.yc-filter strong { display: block; margin-bottom: 10px; font-size: 14px; }
.yc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yc-chip {
  border: 1px solid var(--color-gray-600); background: var(--color-white);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px;
  font-family: var(--font-text); color: var(--color-primary); transition: color .15s, background .15s, border-color .15s;
}
.yc-chip:hover { border-color: var(--color-primary); }
.yc-chip.active { background: var(--color-gray-800); color: var(--color-white); border-color: var(--color-gray-800); }

/* Связанные ссылки */
.related-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.related-list a {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--color-gray-600);
  border-radius: 999px; color: var(--color-primary); text-decoration: none; font-size: 15px;
  transition: color .15s, background .15s, border-color .15s;
}
.related-list a:hover { background: var(--color-gray-800); color: var(--color-white); }

/* CTA-блок */
.yc-cta { background: linear-gradient(135deg, #2b2620 0%, #4a3c2e 100%); color: var(--color-white); }
.yc-cta .h2, .yc-cta .title { color: var(--color-white); }
.yc-cta .sub-text p { color: rgba(255,255,255,.75); }
.yc-cta .btn-transparent { border-color: rgba(255,255,255,.5); color: var(--color-white); }
.yc-cta .btn-wrap { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* Форма записи */
.yc-signup { background: #fdf6ec; border-radius: 14px; padding: 30px; }
.yc-form { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.yc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--color-gray-700); }
.yc-form input, .yc-form select {
  padding: 13px 16px; border: 1px solid var(--color-gray-600); border-radius: 10px;
  font-size: 15px; font-family: var(--font-text); background: var(--color-white);
}
.yc-form .btn { align-self: flex-start; }

/* Вторая кнопка в hero — на светлом фото нужна рамка */
.hero-banner .btn-transparent, .yc-hero .btn-transparent {
  border-color: var(--color-gray-800);
}

/* Hero: фото заполняет весь баннер без искажений, фокус — нижняя часть (фигура и мост) */
.hero-banner .banner-image img {
  object-fit: cover;
  object-position: center 68%;
  transform: none;
  animation: none;
}
/* Светлая вуаль слева — читаемость текста поверх фото */
.hero-banner .banner-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(238,243,246,.78) 0%, rgba(238,243,246,.45) 40%, rgba(255,255,255,0) 70%);
}
.hero-banner .banner-title,
.hero-banner .banner-content p {
  text-shadow: 0 1px 14px rgba(255,255,255,.65);
}
.hero-banner { padding: 140px 0 40px; }
.hero-banner .banner-content { text-align: center; align-items: center; justify-content: center; }
.hero-banner .banner-content .btn-wrap { justify-content: center; }
.hero-banner .banner-content .banner-title {
  display: block; text-align: center;
  text-transform: none;
  font-family: var(--font-text);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.18;
}
.about-us .sub-text ul { margin: 12px 0 0; padding-left: 20px; }
.about-us .sub-text ul li { margin-bottom: 8px; }

/* Hero: панель преимуществ (класс banner-bottom режется адблоком — переименован в hero-points) */
.hero-banner .banner-content .hero-points {
  display: flex;
  align-items: center;
  margin-top: auto;
  background: rgba(255,255,255,.6);
  padding: 16px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.hero-banner .banner-content .hero-points ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0;
  row-gap: 18px;
  width: 100%;
  padding: 0;
  list-style: none;
}
.hero-banner .banner-content .hero-points ul li {
  padding: 0 8px;
  font-size: var(--text-md);
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  color: var(--color-primary);
}
.hero-banner .banner-content .hero-points ul li .icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-content: center;
}
.hero-banner .banner-content .hero-points ul li .icon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
@media (max-width: 767px) {
  .hero-banner .banner-content .hero-points {
    display: block;
    margin: auto -16px 0;
    border-radius: 0;
    padding: 18px 16px 16px;
  }
  .hero-banner .banner-content .hero-points ul { margin: 0 -4px; }
  .hero-banner .banner-content .hero-points ul li { padding: 0 4px; font-size: 12px; }
  .hero-banner .banner-content .hero-points ul li .icon { width: 18px; height: 18px; }
}

/* FAQ — open state */
.faq-item.open .faq-icon svg { transform: rotate(180deg); }
.faq-icon svg { transition: transform .2s; }
.faq-answer[hidden] { display: none; }

/* Правый нижний блок в футере */
.footer-legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-legal p { font-size: 13px; color: rgba(255,255,255,.55); }
.footer-legal a { color: rgba(255,255,255,.8); }

@media (max-width: 768px) {
  .yc-hero { padding: 60px 0 46px; }
  .yc-hero[style*="background-image"] .yc-hero-inner { padding: 26px 22px; }
  .yc-form-row { grid-template-columns: 1fr; }
  .yc-table { font-size: 13px; }
  .yc-table th, .yc-table td { padding: 10px 8px; }
}

/* Плавная прокрутка и prefers-reduced-motion */
html { scroll-behavior: smooth !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
.yc-certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.yc-cert { display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); background: #faf7f2; transition: transform .3s ease, box-shadow .3s ease; }
.yc-cert:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.yc-cert img { width: 100%; aspect-ratio: 3/4; object-fit: contain; object-position: center; padding: 6px; display: block; box-sizing: border-box; }
@media (max-width: 600px) { .yc-certs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ===== Premium layer: trainer page ===== */
.yc-progress { position: fixed; top: 0; left: 0; width: 100%; height: 1px; background: #b08d57; transform: scaleX(0); transform-origin: 0 50%; z-index: 999; pointer-events: none; }
.yc-label { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9b8465; margin-bottom: 22px; }
.yc-label .yc-label-line { display: block; flex: 0 0 72px; height: 1px; background: currentColor; opacity: .5; }
.yc-has-bg { position: relative; overflow: hidden; }
.yc-bgword { position: absolute; top: 4%; right: -2%; font-size: clamp(100px, 18vw, 280px); font-weight: 600; line-height: 1; color: #6b5233; opacity: .035; pointer-events: none; white-space: nowrap; z-index: 0; }
.yc-trainer-photo { overflow: hidden; }
.yc-trainer-photo img { transition: transform .8s ease; display: block; }
@media (pointer: fine) { .yc-trainer-photo:hover img { transform: scale(1.04); } }
.kw { display: inline-block; font-weight: 600; }
.yc-certs-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.yc-certs-track .yc-cert { flex: 0 0 230px; scroll-snap-align: start; }
.yc-certs-track .yc-cert img { transition: transform .8s ease; }
@media (pointer: fine) { .yc-certs-track .yc-cert:hover img { transform: scale(1.03); } }
.yc-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(24,18,12,.85); opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.yc-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; transform: scale(.96); transition: transform .45s ease; }
.yc-lightbox.on { opacity: 1; visibility: visible; }
.yc-lightbox.on img { transform: scale(1); }
.yc-lb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.yc-cursor { position: fixed; top: 0; left: 0; z-index: 1001; pointer-events: none; display: none; align-items: center; justify-content: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(176,141,87,.9); color: #fff; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
@media (pointer: fine) { .yc-cursor.on { display: flex; } .yc-cert { cursor: none; } }
.yc-hero .btn::after { content: '→'; display: inline-block; margin-left: 10px; transition: transform .35s ease; }
.yc-hero .btn:hover::after { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .yc-progress, .yc-cursor { display: none; } }

/* Центрирование блока «Наши залы» на главной */
#locations .yc-cards { display: flex; flex-wrap: wrap; justify-content: center; }
#locations .yc-card { flex: 0 1 340px; text-align: center; align-items: center; }

/* Фото справа в блоке «Почему YogaCore» */
.about-us .about-photo { overflow: hidden; border-radius: 16px; height: 100%; }
.about-us .about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991px) { .about-us .about-photo img { height: auto; max-height: 520px; } }
