/* ORO Dance Studio — страницы направлений (шаблон tools/pages.py). Стиль главной: чёрный фон с сеткой,
   красные размытые пятна, стеклянные карточки с белой рамкой 1px и радиусом 10, акцент #ff3700, заголовки капсом. */

.pg { position: relative; font-size: 16px; line-height: 1.5; }
.pg-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.pg-blobs i { position: absolute; border-radius: 50%; background: var(--c-red); filter: blur(140px); opacity: .55; }
.pg-blobs i:nth-child(1) { width: 520px; height: 520px; left: -220px; top: 0; }
.pg-blobs i:nth-child(2) { width: 460px; height: 460px; right: -200px; top: 34%; opacity: .4; }
.pg-blobs i:nth-child(3) { width: 380px; height: 380px; left: -160px; top: 68%; opacity: .35; }

.pg-head, .pg-main, .pg-foot { width: min(1200px, 100%); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pg-head { display: flex; align-items: center; gap: 24px; padding-top: 24px; padding-bottom: 8px; }
.pg-logo img { display: block; width: 48px; height: auto; }
.pg-head-title { flex: 1; margin: 0; font-size: 13px; line-height: 1.3; opacity: .7; max-width: 260px; }
.pg-head-phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }

/* кнопки как на главной: белая «таблетка» + кружок со стрелкой */
.pg-btn { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: #000; cursor: pointer; }
.pg-btn span { display: inline-flex; align-items: center; height: 52px; padding: 0 32px; border-radius: 100px; background: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; transition: background .2s, color .2s; }
.pg-btn i { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; font-style: normal; font-size: 20px; transition: background .2s, color .2s, transform .2s; }
.pg-btn:hover span, .pg-btn:hover i { background: var(--c-accent); color: #fff; }
.pg-btn:hover i { transform: rotate(45deg); }
.pg-btn--sm span { height: 40px; padding: 0 20px; font-size: 14px; }
.pg-btn--sm i { width: 40px; height: 40px; font-size: 16px; }
.pg-btn--ghost span, .pg-btn--ghost i { background: transparent; color: #fff; border: 1px solid #fff; }

.pg-tag { margin: 0 0 14px; font-size: 14px; color: rgba(255, 255, 255, .45); letter-spacing: .02em; }
.pg h1, .pg h2 { overflow-wrap: break-word; hyphens: manual; margin: 0; font-weight: 700; text-transform: uppercase; line-height: 1.08; }
.pg h1 { font-size: clamp(30px, 3.6vw, 46px); }
.pg h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 28px; }
.pg h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.pg p { margin: 0 0 12px; }

/* первый экран */
.pg-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 0 64px; }
.pg-crumbs { font-size: 13px; opacity: .6; margin-bottom: 24px; }
.pg-crumbs a { color: #fff; }
.pg-crumbs span { margin: 0 8px; }
.pg-lead { font-size: 18px; color: rgba(255, 255, 255, .85); margin: 22px 0 18px !important; max-width: 560px; }
.pg-points { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-points li { border: 1px solid rgba(255, 255, 255, .5); border-radius: 100px; padding: 6px 14px; font-size: 14px; }
.pg-hero-media, .pg-media { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25); }
.pg-cover { width: 100%; height: 100%; object-fit: cover; }
.pg-hero-media .pg-cover { aspect-ratio: 4 / 5; max-height: 640px; object-position: center 30%; }
@media (max-width: 1023px) { .pg-hero-media .pg-cover { aspect-ratio: 4 / 3; } }

/* секции и карточки */
.pg-sec { padding: 56px 0; }
.pg-card { position: relative; padding: 28px; border: 1px solid #fff; border-radius: 10px; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.pg-card p { color: rgba(255, 255, 255, .8); font-size: 15px; margin: 0; }
.pg-num { position: absolute; top: 20px; right: 24px; font-size: 14px; color: rgba(255, 255, 255, .35); }
.pg-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pg-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pg-grid-5 { grid-template-columns: repeat(5, 1fr); }
.pg-grid-5 .pg-card { padding-top: 48px; }
.pg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 17px; color: rgba(255, 255, 255, .85); }
.pg-center { display: flex; justify-content: center; margin-top: 36px; }

.pg-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: stretch; }
.pg-split--rev .pg-media { order: -1; }
.pg-split--rev { grid-template-columns: 1fr 1.3fr; }
.pg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pg-media .pg-cover { min-height: 280px; }

/* тренеры */
.pg-trainer { display: flex; flex-direction: column; border: 1px solid #fff; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .35); }
.pg-trainer-img { width: 100%; height: auto; aspect-ratio: 340 / 200; object-fit: cover; object-position: 50% 26%; }
.pg-trainer-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.pg-trainer-body p { color: rgba(255, 255, 255, .8); font-size: 15px; flex: 1; margin-bottom: 18px; }

/* цены */
.pg-prices table { width: 100%; border-collapse: collapse; font-size: 17px; }
.pg-prices td { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.pg-prices td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.pg-note { margin-top: 16px !important; }

/* вопросы */
.pg-faqs { display: grid; gap: 12px; }
.pg-faq { border: 1px solid rgba(255, 255, 255, .6); border-radius: 10px; background: rgba(0, 0, 0, .35); }
.pg-faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17px; position: relative; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; transition: transform .2s; }
.pg-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pg-faq p { padding: 0 24px 20px; margin: 0; color: rgba(255, 255, 255, .8); }

/* контакты */
.pg-contact-card { padding: 48px; text-align: center; }
.pg-contact-card h2 { margin-bottom: 18px; }
.pg-addr { font-size: 17px; color: rgba(255, 255, 255, .85) !important; }
.pg-phone { display: inline-block; margin: 8px 0 22px; font-size: 26px; font-weight: 700; color: #fff; text-decoration: none; }
.pg-contact-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.pg-foot { padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .15); }
.pg-foot a { color: rgba(255, 255, 255, .8); }
.pg-foot nav, .pg-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }

@media (max-width: 1023px) {
  .pg-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .pg-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .pg-split, .pg-split--rev { grid-template-columns: 1fr; }
  .pg-split--rev .pg-media { order: 0; }
}
@media (max-width: 640px) {
  .pg-head { gap: 12px; padding-top: 16px; }
  .pg-head-title, .pg-head-phone { display: none; }
  .pg-head-cta { margin-left: auto; }
  .pg-lead { font-size: 16px; }
  .pg h1 { font-size: 26px; }
  .pg h2 { font-size: 23px; }
  .pg-sec { padding: 40px 0; }
  .pg-grid-2, .pg-grid-3, .pg-grid-5, .pg-cols { grid-template-columns: 1fr; }
  .pg-cols { gap: 0; font-size: 16px; }
  .pg-card { padding: 22px 20px; }
  .pg-grid-5 .pg-card { padding-top: 22px; }
  .pg-btn span { height: 48px; padding: 0 22px; font-size: 15px; }
  .pg-btn i { width: 48px; height: 48px; }
  .pg-hero .pg-btn, .pg-center .pg-btn { width: 100%; }
  .pg-hero .pg-btn span, .pg-center .pg-btn span { flex: 1; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; }
  .pg-contact-card { padding: 32px 20px; }
  .pg-phone { font-size: 22px; }
  .pg-faq summary { font-size: 16px; padding: 18px 48px 18px 18px; }
  .pg-faq p { padding: 0 18px 18px; }
  .pg-blobs i { filter: blur(100px); }
  .pg-blobs i:nth-child(1) { width: 320px; height: 320px; left: -180px; }
  .pg-blobs i:nth-child(2) { width: 300px; height: 300px; right: -170px; }
}
.pg-num + h3 { padding-right: 44px; }
.pg-grid-5 .pg-num + h3 { padding-right: 0; }

/* кому подходит, первое занятие, история, расписание */
.pg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pg-aud h3 { font-size: 26px; text-transform: uppercase; }
.pg-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: t; }
.pg-timeline li { position: relative; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .5); }
.pg-timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--c-accent); }
.pg-time { display: block; margin-bottom: 8px; font-weight: 700; font-size: 18px; text-transform: uppercase; }
.pg-timeline p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
.pg-result { margin-top: 32px !important; padding: 20px 24px; border-radius: 10px; background: rgba(255, 55, 0, .12); border: 1px solid var(--c-accent); font-size: 18px; font-weight: 600; }
.pg-story { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; margin: 0; padding: 0; overflow: hidden; }
.pg-story-img { width: 100%; height: 320px; object-fit: cover; object-position: 50% 38%; }
.pg-story > div { padding: 32px 36px 32px 0; }
.pg-story blockquote { margin: 0 0 18px; }
.pg-story blockquote p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; font-weight: 600; color: #fff; }
.pg-story figcaption { font-size: 15px; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.pg-story figcaption b { color: #fff; }
.pg-story-note { font-size: 14px !important; color: rgba(255, 255, 255, .6) !important; }
.pg-schedule table { width: 100%; border-collapse: collapse; font-size: 17px; }
.pg-schedule th { text-align: left; font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .5); padding: 0 0 10px; }
.pg-schedule td { padding: 14px 12px 14px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.pg-schedule td:nth-child(2) { font-weight: 700; white-space: nowrap; }
@media (max-width: 1023px) {
  .pg-grid-4, .pg-timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pg-grid-4, .pg-timeline { grid-template-columns: 1fr; }
  .pg-story { grid-template-columns: 1fr; gap: 0; }
  .pg-story-img { height: auto; min-height: 0; aspect-ratio: 340 / 200; object-position: 50% 26%; }
  .pg-story > div { padding: 22px 20px 24px; }
  .pg-schedule table { font-size: 15px; }
  .pg-result { font-size: 16px; }
}

/* блок тренеров с главной (разметка и стили 1:1 из главной — assets/team.css) — на всю ширину экрана, как на главной */
.pg-team-main { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
@supports (overflow: clip) { .pg-team-main { overflow: clip; } }

/* оффер главной в первом экране */
.pg-offer { margin: 0 0 28px; padding: 20px 22px; border: 1px solid #fff; border-radius: 10px; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); max-width: 520px; }
.pg-offer-title { margin: 0 0 12px !important; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; color: rgba(255, 255, 255, .7); }
.pg-offer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-offer li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.4; }
.pg-offer li::before { content: "+"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: 14px; line-height: 18px; text-align: center; font-weight: 700; }

/* ---------- /arenda ---------- */
.pg-hero .pg-contact-btns { justify-content: flex-start; margin-top: 24px; }
.pg-hall-area { color: #ff3700; white-space: nowrap; }
.pg-booking { padding: 0; overflow: hidden; background: #fff; }
.pg-booking iframe { display: block; width: 100%; height: 1120px; border: 0; }
@media (max-width: 1023px) { .pg-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .pg-booking iframe { height: 1300px; }
}

/* галерея: лента фото, листается пальцем; по клику — на весь экран */
.pg-halls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pg-hall, .pg-gal, .pg-gal-track { min-width: 0; max-width: 100%; }
.pg-hall h3 { margin-bottom: 8px; }
.pg-hall > p { max-width: 760px; }
.pg-gal { position: relative; margin: 20px -8px -8px; }
.pg-gal-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pg-gal-track::-webkit-scrollbar { display: none; }
.pg-gal-item { flex: 0 0 auto; scroll-snap-align: start; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.pg-gal-item img { display: block; height: 320px; width: auto; transition: transform .3s; }
.pg-gal-item:hover img { transform: scale(1.03); }
.pg-gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid #fff;
  background: rgba(0,0,0,.55); color: #fff; font-size: 18px; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pg-gal-prev { left: 12px; } .pg-gal-next { right: 12px; }
.pg-access { margin-top: 16px; }
.pg-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.pg-lightbox[hidden] { display: none; }
.pg-lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 6px; }
.pg-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.5); color: #fff; font-size: 20px; cursor: pointer; }
.pg-lb-close { top: 16px; right: 16px; } .pg-lb-prev { left: 16px; top: 50%; } .pg-lb-next { right: 16px; top: 50%; }
.pg-lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; opacity: .7; font-size: 14px; }
@media (max-width: 640px) {
  .pg-gal-item img { height: 220px; }
  .pg-gal-btn { display: none; }
  .pg-lb-prev, .pg-lb-next { top: auto; bottom: 12px; }
}
