﻿@media (max-width: 1500px) {
  .site-nav {
    position: fixed;
    inset: 90px 22px auto;
    display: grid;
    width: auto;
    max-height: calc(100vh - 112px);
    padding: 22px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 70px rgba(82, 52, 106, 0.18);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 240ms ease, transform 240ms ease;
  }

  .site-nav a {
    padding: 13px 16px;
  }

  body.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: inline-grid;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    left: max(12px, env(safe-area-inset-left));
    right: max(28px, env(safe-area-inset-right));
    max-width: calc(100vw - 40px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-right: 8px;
  }

  .site-header .brand {
    min-width: 0;
    max-width: min(42vw, 150px);
  }

  .site-header .brand-logo {
    width: clamp(96px, 27vw, 132px);
    height: 36px;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .site-nav {
    top: 82px;
    right: auto;
    left: 50%;
    z-index: 90;
    width: min(286px, calc(100vw - 32px));
    max-height: calc(100svh - 166px);
    transform: translate3d(-50%, -10px, 0);
    transform-origin: top center;
  }

  body.menu-open .site-nav {
    transform: translate3d(-50%, 0, 0);
  }

  .header-call {
    display: none !important;
  }

  .header-call span:first-child {
    display: none;
  }

  .header-call .phone-icon {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    top: 12px;
    left: 14px;
    right: 24px;
    max-width: calc(100vw - 38px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 9px 8px 14px;
    border-radius: 24px;
  }

  .brand {
    min-width: 0;
  }

  .site-header .brand-logo {
    width: 116px;
    height: 34px;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    width: 44px;
    height: 44px;
  }

  .site-nav {
    top: 72px;
    right: auto;
    left: 50%;
    z-index: 90;
    width: min(270px, calc(100vw - 32px));
    max-height: calc(100vh - 160px);
    padding: 14px;
    border-radius: 22px;
  }

  .site-nav a {
    padding: 12px 14px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.2;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    display: block;
    min-height: auto;
    padding: 108px 20px 44px;
  }

  .copy {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding-bottom: 0;
  }

  .title {
    max-width: 360px;
    font-size: clamp(2.7rem, 11vw, 3.75rem);
    line-height: 0.98;
  }

  .accent-line {
    margin: 18px 0 14px;
    font-size: clamp(1.24rem, 5.4vw, 1.72rem);
  }

  .lead {
    max-width: 350px;
    font-size: 0.96rem;
    line-height: 1.42;
  }

  .actions {
    gap: 12px;
    margin-top: 24px;
    max-width: 360px;
  }

  .btn {
    min-width: 0;
    min-height: 60px;
    width: 100%;
    padding-inline: 24px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 340px);
    gap: 16px 14px;
    margin-top: 24px;
  }

  .stats dt {
    font-size: clamp(1.65rem, 7.5vw, 2.25rem);
  }

  .stats dd {
    font-size: 0.82rem;
  }

  .micro {
    max-width: 340px;
    line-height: 1.65;
  }

  .portrait-stage {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    height: min(620px, 72svh);
    overflow: hidden;
    opacity: 0.44;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.62) 76%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.62) 76%, transparent 100%);
  }

  .portrait-stage::before {
    background:
      linear-gradient(90deg, rgba(247, 239, 251, 0.86) 0%, rgba(239, 225, 248, 0.54) 24%, rgba(231, 211, 244, 0.12) 48%, transparent 72%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 48%, rgba(72, 43, 96, 0.34) 100%);
  }

  .portrait {
    top: 0;
    right: -12vw;
    bottom: auto;
    width: min(108vw, 560px);
    height: auto;
  }

  .hero::after {
    background:
      linear-gradient(180deg, transparent 0%, transparent 58%, rgba(239, 225, 248, 0.16) 68%, rgba(39, 20, 58, 0.6) 84%, #171020 100%),
      linear-gradient(0deg, rgba(58, 34, 82, 0.16) 0%, transparent 30%, transparent 72%, rgba(255, 255, 255, 0.22) 100%);
  }

  .section,
  .teacher-feature,
  .cta-section,
  .footer {
    padding-inline: 20px;
  }

  .section {
    padding-block: 54px;
  }

  .placeholder-main {
    padding-top: 102px;
    padding-bottom: 54px;
  }

  .section h2,
  .cta-section h2 {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .price-head h1,
  .placeholder-panel h1,
  .subscription-experience h2 {
    overflow-wrap: normal;
    hyphens: none;
  }

  .cards-grid,
  .cards-grid.three,
  .compare-grid,
  .why-layout,
  .results-grid,
  .pricing-grid,
  .price-table,
  .subscription-experience,
  .poster-grid,
  .gallery-layout,
  .gallery-grid,
  .expanded-gallery,
  .gallery-video-card,
  .reviews-layout,
  .reviews-cards,
  .concert-video-grid,
  .program-flow,
  .contacts-hero,
  .contact-details,
  .teacher-feature,
  .teacher-directory,
  .lesson-layout,
  .media-section,
  .cta-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .cards-grid.three,
  .compare-grid,
  .program-card,
  .info-card {
    min-width: 0;
  }

  .info-card,
  .program-card,
  .compare-grid article,
  .results-grid article,
  .pricing-grid article {
    padding: 22px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .info-card {
    font-size: clamp(1.12rem, 5.3vw, 1.38rem);
  }

  #results .results-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(255px, 78vw);
    grid-template-columns: none;
    gap: 14px;
    margin-inline: -20px;
    padding: 0 20px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #results .results-grid::-webkit-scrollbar {
    display: none;
  }

  #results .results-grid::before {
    content: none;
  }

  #results .results-grid article {
    min-height: 230px;
    scroll-snap-align: start;
  }

  .teacher-feature:not(.is-expanded) p:nth-of-type(n+3) {
    display: none;
  }

  .teacher-more {
    display: inline-flex;
  }

  .why-layout .compare-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid,
  .contact-info-card {
    grid-template-columns: 1fr;
  }

  .reviews-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .reviews-photo-grid img {
    height: auto;
    aspect-ratio: 1;
    border-radius: 16px;
  }

  .program-flow::before {
    top: 10%;
    bottom: 10%;
    left: 44px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(255, 217, 118, 0.08), rgba(255, 217, 118, 0.58), rgba(166, 108, 255, 0.48), rgba(255, 217, 118, 0.08));
  }

  .program-flow article {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .program-flow small {
    grid-column: 2;
  }

  .teacher-directory article {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .teacher-directory img {
    width: 112px;
    height: 112px;
    border-radius: 20px;
  }

  .why-logo {
    margin-top: 0;
    min-height: 260px;
  }

  .concert-gallery {
    width: 100%;
    justify-self: stretch;
    animation: none;
  }

  .gallery-video-card {
    grid-column: auto;
  }

  .section-visual img {
    height: 240px;
    object-fit: cover;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 360px;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .price-row h3 {
    line-height: 1.25;
  }

  .subscription-experience {
    padding: 0;
    margin-top: 22px;
  }

  .subscription-benefits {
    grid-template-columns: 1fr;
  }

  .subscription-experience__visual {
    display: none;
  }

  .subscription-experience h2 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
  }

  .subscriptions-section .price-head::after,
  .subscriptions-section .subscription-experience::after,
  .subscriptions-section .price-table::before {
    width: 100%;
  }

  .concert-video-grid {
    display: none;
  }

  .gallery-layout {
    gap: 18px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-video-card {
    padding: 14px;
  }

  .gallery-video-card video {
    max-height: 220px;
  }

  .slider {
    grid-template-columns: 44px 1fr 44px;
  }

  .concert-gallery__stage img {
    height: clamp(260px, 68vw, 360px);
  }

  .concert-gallery__controls {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    padding: 10px;
  }

  .concert-gallery__arrow {
    width: 38px;
    height: 38px;
  }

  .concert-gallery__thumbs button {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .footer {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px 18px;
    align-items: start;
    padding: 30px 20px 26px;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer nav {
    display: none;
  }

  .footer address {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-social {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .footer h3 {
    margin-bottom: 8px;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .footer nav a,
  .footer address,
  .footer p,
  .footer-social a {
    font-size: 0.88rem;
    line-height: 1.45;
    overflow-wrap: normal;
    word-break: normal;
  }

  .footer .brand {
    padding: 0;
    background: transparent;
  }

  .footer .brand-logo {
    width: 96px;
    min-height: 46px;
    max-height: 58px;
  }

  .social-links {
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .social-links a {
    width: 38px;
    height: 38px;
  }

  .footer-social p br {
    display: none;
  }

  .footer-social p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .footer-social p a {
    display: inline-flex;
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    left: 10px;
    right: 26px;
    max-width: calc(100vw - 36px);
    grid-template-columns: minmax(0, 1fr) 40px;
    padding: 7px 6px 7px 12px;
    border-radius: 22px;
  }

  .site-header .brand {
    max-width: calc(100vw - 104px);
  }

  .site-header .brand-logo {
    width: clamp(88px, 29vw, 112px);
    height: 32px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    margin-right: 0;
  }

  .site-nav {
    top: 68px;
    right: auto;
    left: 50%;
    z-index: 90;
    width: min(258px, calc(100vw - 28px));
    max-height: calc(100svh - 150px);
    padding: 12px;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .hero-grid {
    padding: 96px 18px 40px;
  }

  .copy {
    max-width: 330px;
  }

  .title {
    max-width: 318px;
    font-size: clamp(2.36rem, 10.4vw, 3.05rem);
    line-height: 1;
  }

  .accent-line {
    font-size: clamp(1.12rem, 5vw, 1.42rem);
  }

  .lead {
    max-width: 310px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .actions {
    max-width: 318px;
    margin-top: 20px;
  }

  .btn {
    min-height: 56px;
    padding-inline: 22px;
  }

  .micro {
    max-width: 310px;
    margin-top: 18px;
    font-size: 0.86rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    width: min(100%, 310px);
    gap: 14px 12px;
    margin-top: 20px;
  }

  .stats dt {
    font-size: clamp(1.48rem, 7vw, 1.95rem);
  }

  .portrait-stage {
    height: min(500px, 62svh);
    opacity: 0.4;
  }

  .portrait {
    top: 0;
    right: -24vw;
    bottom: auto;
    width: 112vw;
  }

  .bg-word {
    bottom: -4vw;
    opacity: 0.08;
  }

  .cards-grid,
  .cards-grid.three,
  .compare-grid,
  .program-flow,
  .results-grid,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #results .results-grid {
    grid-template-columns: none !important;
    grid-auto-columns: minmax(250px, 82vw);
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .info-card,
  .program-card,
  .compare-grid article,
  .results-grid article,
  .pricing-grid article {
    min-height: 0;
    padding: 20px;
    border-radius: 24px;
  }

  .info-card h3,
  .program-card h3,
  .compare-grid article h3 {
    font-size: clamp(1.18rem, 6vw, 1.45rem);
    line-height: 1.16;
  }

  .info-card p,
  .program-card p,
  .compare-grid article p,
  .info-card span,
  .compare-grid span {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .teacher-directory article {
    grid-template-columns: 1fr;
  }

  .teacher-directory img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .footer {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px 14px;
    padding: 26px 18px 24px;
  }

  .footer .brand-logo {
    width: 84px;
  }

  .footer nav a,
  .footer address,
  .footer p,
  .footer-social a {
    font-size: 0.84rem;
  }

  .footer-social p {
    max-width: 100%;
  }
}

/* === Mobile fixes requested after review === */
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    align-items: center;
  }

  .menu-toggle {
    align-self: center;
    place-self: center end;
  }

  .site-nav {
    right: max(12px, env(safe-area-inset-right));
    left: auto;
    transform: translate3d(16px, -10px, 0);
    transform-origin: top right;
  }

  body.menu-open .site-nav {
    transform: translate3d(0, 0, 0);
  }

  .footer address {
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    max-width: calc(100vw - 28px);
    right: 14px;
  }

  .site-nav {
    right: 14px;
    left: auto;
    width: min(286px, calc(100vw - 28px));
    transform: translate3d(16px, -10px, 0);
  }

  body.menu-open .site-nav {
    transform: translate3d(0, 0, 0);
  }

  .hero-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .copy {
    max-width: min(100%, 360px);
    margin-left: 0;
    margin-right: auto;
  }

  .title,
  .lead,
  .actions,
  .micro {
    max-width: 100%;
  }

  .hero::after {
    background:
      linear-gradient(180deg, transparent 0%, transparent 72%, rgba(239, 225, 248, 0.08) 82%, rgba(39, 20, 58, 0.18) 92%, rgba(23, 16, 32, 0.46) 100%);
  }

  .portrait-stage {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0, 0, 0, 0.42) 84%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0, 0, 0, 0.42) 84%, transparent 100%);
  }

  .stats {
    position: relative;
    width: min(100%, 350px);
    margin-top: 22px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 24px 62px rgba(82, 52, 106, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(14px);
  }

  .stats::before {
    position: absolute;
    inset: -2px;
    z-index: -1;
    content: "";
    border-radius: inherit;
    background: conic-gradient(from var(--stats-angle, 0deg), transparent 0 28%, rgba(255, 217, 118, 0.9), rgba(166, 108, 255, 0.86), transparent 62% 100%);
    animation: statsBorderSpin 6s linear infinite;
  }

  .stats::after {
    position: absolute;
    inset: 1px;
    z-index: -1;
    content: "";
    border-radius: 26px;
    background: rgba(245, 231, 252, 0.84);
  }

  .stats div {
    min-width: 0;
  }

  .stats dt,
  .stats dd {
    color: #24162f;
  }

  .why-logo {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .teacher-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 4px 10px 14px 0;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(166, 108, 255, 0.22));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
  }

  #results .results-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-columns: none !important;
    gap: 14px;
    margin-inline: 0;
    padding: 0 0 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #results .results-grid article {
    width: 100%;
    scroll-snap-align: start;
  }

  .results-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    color: rgba(248, 244, 238, 0.72);
    font-weight: 700;
  }

  .results-mobile-nav button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .reviews-top,
  .reviews-cards {
    grid-template-columns: 1fr;
  }

  .reviews-media-slide img,
  .reviews-media-slide video {
    height: min(88vw, 430px);
    object-fit: contain;
  }

  .reviews-more {
    justify-content: stretch;
  }

  .reviews-more .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-header {
    right: 10px;
    max-width: calc(100vw - 20px);
  }

  .site-nav {
    right: 10px;
    left: auto;
    width: min(270px, calc(100vw - 20px));
  }

  .hero-grid {
    padding-left: 20px;
    padding-right: 18px;
  }

  .copy {
    max-width: min(100%, 344px);
  }

  #results .results-grid {
    grid-auto-columns: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .gallery-video-card,
  .reviews-media-slider {
    padding: 14px;
  }

  .video-slider__footer,
  .reviews-media-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .footer {
    grid-template-columns: 88px minmax(0, 1fr);
    overflow: hidden;
  }
}

@keyframes statsBorderSpin {
  to {
    --stats-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats::before {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .stats {
    isolation: isolate;
  }
}


/* === Final mobile fixes after visual review === */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    left: 14px;
    right: 14px;
    max-width: calc(100vw - 28px);
  }

  .site-nav {
    left: auto !important;
    right: 14px !important;
    width: min(286px, calc(100vw - 28px));
    margin-inline: 0 !important;
    transform: translate3d(14px, -10px, 0) !important;
    transform-origin: top right;
  }

  body.menu-open .site-nav {
    transform: translate3d(0, 0, 0) !important;
  }

  .placeholder-main {
    width: 100%;
    max-width: 100vw;
    padding-left: 14px;
    padding-right: 14px;
    overflow: hidden;
  }

  .placeholder-main::after {
    display: none;
  }

  .placeholder-panel {
    max-width: 100%;
  }

  .stats {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 22px 54px rgba(82, 52, 106, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }

  .stats::after {
    background: rgba(247, 234, 255, 0.52);
  }

  .reviews-media-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .footer {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 18px;
  }

  .footer address {
    justify-self: end;
    max-width: 100%;
    margin-left: auto;
    text-align: right;
  }

  .footer address h3 {
    text-align: right;
  }
}

@media (max-width: 767px) {
  .section-cta {
    justify-content: flex-start;
    margin-top: 26px;
  }

  .section-cta .btn {
    width: 100%;
    min-height: 56px;
  }

  .section-visual {
    min-height: 250px;
  }

  .section-visual .visual-cta {
    bottom: 28px;
    width: calc(100% - 44px);
  }
}

/* === Mobile carousel fixes for Lessons and Why sections === */
.mobile-carousel-nav {
  display: none;
}

@media (max-width: 760px) {
  .accent-line {
    display: inline-block;
    max-width: 100%;
    margin: 14px 0 12px;
    padding: 0;
    border-radius: 0;
    color: #8a3dff;
    font-weight: 800;
    line-height: 1.1;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    backdrop-filter: none;
  }

  .lesson-section .timeline,
  #why .compare-grid {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-columns: none !important;
    gap: 14px;
    width: 100%;
    margin-inline: 0;
    padding: 0 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lesson-section .timeline::-webkit-scrollbar,
  #why .compare-grid::-webkit-scrollbar {
    display: none;
  }

  .lesson-section .timeline article,
  #why .compare-grid article {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .lesson-section .timeline article {
    min-height: 232px;
  }

  #why .compare-grid article {
    min-height: 240px;
  }

  .lesson-section .timeline article + article,
  #why .compare-grid article + article {
    margin-left: 0;
  }

  .mobile-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 24px;
    color: rgba(248, 244, 238, 0.72);
    font-weight: 800;
  }

  .why-layout .mobile-carousel-nav {
    margin-bottom: 0;
  }

  .mobile-carousel-nav button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
  }

  .mobile-carousel-nav button:active {
    transform: translateY(1px);
  }

  .lesson-layout {
    align-items: start;
  }
}

/* === Tablet layout pass: 761px–1180px === */
@media (min-width: 761px) and (max-width: 1180px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    top: 18px;
    left: 22px;
    right: 22px;
    max-width: calc(100vw - 44px);
    grid-template-columns: minmax(150px, auto) 1fr auto;
    gap: 14px;
    padding: 10px 12px 10px 18px;
    border-radius: 30px;
  }

  .site-header .brand-logo {
    width: clamp(112px, 14vw, 150px);
    height: auto;
    max-height: 46px;
    object-fit: contain;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    align-self: center;
  }

  .header-call {
    display: none !important;
  }

  .site-nav {
    top: 86px;
    left: auto !important;
    right: 22px !important;
    width: min(360px, calc(100vw - 44px));
    max-height: calc(100svh - 112px);
    transform: translate3d(18px, -10px, 0) !important;
    transform-origin: top right;
  }

  body.menu-open .site-nav {
    transform: translate3d(0, 0, 0) !important;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
    min-height: 760px;
    padding: 128px 34px 58px;
    gap: 12px;
  }

  .copy {
    align-self: center;
    max-width: 610px;
    margin: 0;
  }

  .title {
    max-width: 610px;
    font-size: clamp(4rem, 8vw, 5.65rem);
  }

  .accent-line {
    max-width: 560px;
    font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  }

  .lead {
    max-width: 560px;
  }

  .actions {
    max-width: 560px;
    flex-wrap: wrap;
  }

  .actions .btn {
    flex: 1 1 240px;
    min-width: min(100%, 240px);
  }

  .stats {
    grid-template-columns: repeat(4, max-content);
    max-width: 100%;
    gap: 18px;
  }

  .stats div::after {
    right: -10px;
  }

  .portrait-stage {
    inset: 0 0 0 auto;
    width: 58vw;
    min-width: 420px;
    opacity: 0.84;
  }

  .portrait {
    right: -8vw;
    width: auto;
    height: min(100%, 860px);
  }

  .float-card {
    display: none;
  }

  .section,
  .teacher-feature,
  .cta-section,
  .footer {
    padding-left: clamp(32px, 5vw, 58px);
    padding-right: clamp(32px, 5vw, 58px);
  }

  .section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section h2,
  .section h1,
  .cta-section h2 {
    font-size: clamp(3.2rem, 7.2vw, 5.2rem);
    max-width: 820px;
  }

  .section-head {
    max-width: 860px;
  }

  .cards-grid,
  .cards-grid.three,
  .compare-grid,
  .results-grid,
  .pricing-grid,
  .poster-grid,
  .teacher-directory,
  .contact-details,
  .expanded-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid.three > article:last-child,
  .program-flow > article:last-child {
    grid-column: 1 / -1;
  }

  .lesson-layout,
  .media-section,
  .gallery-layout,
  .reviews-top,
  .teacher-feature,
  .cta-section,
  .contacts-hero,
  .subscription-experience {
    grid-template-columns: 1fr;
  }

  .lesson-section .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-visual,
  .concert-gallery,
  .gallery-video-card,
  .reviews-media-slider,
  .lead-form {
    max-width: 760px;
    width: 100%;
    justify-self: center;
  }

  .section-visual img {
    height: clamp(320px, 46vw, 520px);
  }

  .gallery-grid.photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-video-card {
    grid-column: auto;
  }

  .reviews-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-cards .review-card:last-child {
    grid-column: 1 / -1;
  }

  .reviews-media-slide img,
  .reviews-media-slide video {
    height: clamp(320px, 50vw, 520px);
  }

  .teacher-feature img {
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }

  .teacher-feature > div {
    max-width: 760px;
    justify-self: center;
  }

  .concert-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: minmax(160px, 0.8fr) minmax(210px, 1fr) minmax(220px, 1fr);
    gap: 28px 40px;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer nav {
    grid-column: 2;
  }

  .footer address {
    grid-column: 3;
    justify-self: end;
    text-align: right;
  }

  .footer address h3 {
    text-align: right;
  }

  .footer-social {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: center;
    justify-items: center;
    text-align: center;
  }

  .footer-social .social-links {
    width: 100%;
    justify-content: center;
  }

  .footer-social p {
    justify-content: center;
    margin-inline: auto;
    text-align: center;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(150px, auto) 1fr auto auto;
  }

  .header-call {
    display: inline-flex !important;
    min-width: 0;
    padding-left: 18px;
  }
}

/* === v10 refinements: mobile hero, tablet hero/program flow, subtle mobile motion === */
@media (max-width: 760px) {
  .hero-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .copy {
    max-width: min(100%, 330px);
  }

  .title {
    max-width: 312px;
    font-size: clamp(2.48rem, 10vw, 3.28rem);
    line-height: 0.99;
  }

  .accent-line {
    max-width: 308px;
    font-size: clamp(1.12rem, 4.9vw, 1.4rem);
    line-height: 1.12;
  }

  .lead {
    max-width: 318px;
  }

  .portrait-stage {
    opacity: 0.52;
  }

  .portrait-stage::before {
    background:
      linear-gradient(90deg, rgba(247, 239, 251, 0.9) 0%, rgba(239, 225, 248, 0.78) 42%, rgba(231, 211, 244, 0.2) 65%, transparent 84%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 18%, transparent 76%, rgba(72, 43, 96, 0.24) 100%);
  }

  .portrait {
    right: -46vw;
    top: 36px;
    bottom: auto;
    width: 132vw;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .copy {
    max-width: min(100%, 318px);
  }

  .title {
    max-width: 300px;
    font-size: clamp(2.38rem, 10.2vw, 3.04rem);
  }

  .accent-line,
  .lead {
    max-width: 300px;
  }

  .portrait {
    right: -54vw;
    width: 140vw;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 252, 255, 0.82) 0%, rgba(240, 226, 248, 0.42) 44%, rgba(82, 48, 112, 0.12) 100%),
      radial-gradient(circle at 80% 12%, rgba(255, 228, 244, 0.46), transparent 34%);
  }

  .hero-grid {
    display: block;
    min-height: clamp(660px, 82svh, 820px);
    padding: 128px 44px 60px;
  }

  .copy {
    max-width: min(650px, 72vw);
    margin: 0;
    padding-bottom: 0;
  }

  .title {
    max-width: 640px;
    font-size: clamp(3.35rem, 6.9vw, 5rem);
    line-height: 0.96;
  }

  .accent-line {
    max-width: 630px;
    font-size: clamp(1.45rem, 3.15vw, 2.08rem);
  }

  .lead {
    max-width: 530px;
  }

  .actions {
    max-width: 560px;
    flex-wrap: wrap;
  }

  .actions .btn {
    flex: 0 1 250px;
    min-width: 230px;
    min-height: 58px;
    padding-inline: 24px;
  }

  .micro {
    max-width: 560px;
  }

  .stats {
    grid-template-columns: repeat(4, max-content);
    gap: 18px;
    max-width: 100%;
  }

  .stats div:nth-child(2)::after {
    content: "";
  }

  .portrait-stage {
    inset: 0;
    width: 100%;
    min-width: 0;
    opacity: 0.82;
  }

  .portrait-stage::before {
    background:
      linear-gradient(90deg, rgba(247, 239, 251, 0.94) 0%, rgba(239, 225, 248, 0.72) 31%, rgba(231, 211, 244, 0.22) 58%, transparent 78%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 18%, transparent 76%, rgba(72, 43, 96, 0.22) 100%);
  }

  .portrait {
    right: -7vw;
    bottom: 0;
    width: auto;
    height: min(78vh, 720px);
  }

  .spotlight {
    right: 6vw;
    width: min(58vw, 560px);
    height: min(58vw, 560px);
  }

  .bg-word {
    opacity: 0.1;
  }

  .program-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .program-flow > article:last-child,
  .cards-grid.three > article:last-child {
    grid-column: auto !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .hero-grid {
    padding: 112px 36px 54px;
  }

  .copy {
    max-width: min(590px, 76vw);
  }

  .title {
    max-width: 570px;
    font-size: clamp(3.15rem, 6.65vw, 4.3rem);
  }

  .portrait {
    right: -16vw;
    height: min(72vh, 650px);
  }

  .actions .btn {
    flex-basis: 220px;
    min-width: 210px;
  }

  .stats {
    gap: 14px;
  }

  .stats dt {
    font-size: clamp(1.45rem, 3.5vw, 2.05rem);
  }

  .stats dd {
    font-size: 0.78rem;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .mobile-soft-reveal {
    opacity: 0.72;
    transform: translate3d(0, 18px, 0) scale(0.985);
    transition: opacity 640ms cubic-bezier(0.16, 1, 0.3, 1), transform 640ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease, border-color 260ms ease;
    will-change: opacity, transform;
  }

  .mobile-soft-reveal[data-mobile-reveal="left"] {
    transform: translate3d(-14px, 18px, 0) scale(0.985);
  }

  .mobile-soft-reveal[data-mobile-reveal="right"] {
    transform: translate3d(14px, 18px, 0) scale(0.985);
  }

  .mobile-soft-reveal.is-mobile-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-soft-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* === v11: restore original mobile hero portrait placement; reduce text instead === */
@media (max-width: 760px) {
  .hero-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .copy {
    max-width: min(100%, 330px);
  }

  .title {
    max-width: 318px;
    font-size: clamp(2.28rem, 9.6vw, 3.02rem);
    line-height: 0.99;
  }

  .accent-line {
    max-width: 310px;
    font-size: clamp(1.08rem, 4.7vw, 1.36rem);
    line-height: 1.12;
  }

  .lead {
    max-width: 318px;
  }

  .portrait-stage {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    height: min(620px, 72svh);
    overflow: hidden;
    opacity: 0.44;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.62) 76%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.62) 76%, transparent 100%);
  }

  .portrait-stage::before {
    background:
      linear-gradient(90deg, rgba(247, 239, 251, 0.86) 0%, rgba(239, 225, 248, 0.54) 24%, rgba(231, 211, 244, 0.12) 48%, transparent 72%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 48%, rgba(72, 43, 96, 0.34) 100%);
  }

  .portrait {
    top: 0;
    right: -12vw;
    bottom: auto;
    width: min(108vw, 560px);
    height: auto;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .copy {
    max-width: 318px;
  }

  .title {
    max-width: 300px;
    font-size: clamp(2.12rem, 9.2vw, 2.72rem);
  }

  .accent-line,
  .lead {
    max-width: 300px;
  }

  .portrait-stage {
    height: min(500px, 62svh);
    opacity: 0.4;
  }

  .portrait {
    top: 0;
    right: -24vw;
    bottom: auto;
    width: 112vw;
  }
}

/* Keep room for the fixed mobile call button. */
@media (max-width: 760px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 1180px) {
  .teacher-directory {
    grid-template-columns: 1fr;
  }

  .teacher-video-slot,
  .teacher-video-slot video {
    min-height: 210px;
  }
}

@media (max-width: 760px) {
  .teacher-directory article {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .teacher-card-actions .btn.compact {
    width: 100%;
    justify-content: space-between;
  }

  .teacher-video-slot,
  .teacher-video-slot video {
    min-height: 190px;
    border-radius: 22px;
  }

  .teacher-booking-modal {
    padding: 12px;
  }

  .teacher-booking-dialog {
    border-radius: 28px;
    padding: 26px 20px 22px;
  }
}

/* === v18 responsive teacher cards === */
@media (max-width: 980px) {
  .teachers-page .teacher-directory article > div {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
    column-gap: 22px;
  }

  .teachers-page .teacher-video-slot {
    max-width: 230px;
  }
}

@media (max-width: 820px) {
  .teachers-page .teacher-directory article {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .teachers-page .teacher-directory article > div {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "role"
      "title"
      "bio"
      "actions"
      "video";
  }

  .teachers-page .teacher-video-slot {
    justify-self: start;
    width: min(260px, 100%);
    max-width: 260px;
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .teachers-page .teacher-directory article {
    grid-template-columns: 1fr;
  }

  .teachers-page .teacher-directory img {
    width: 118px;
    height: 118px;
  }

  .teachers-page .teacher-card-actions .btn.compact.teacher-book-btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding-inline: 18px;
  }

  .teachers-page .teacher-card-actions .teacher-book-btn span {
    font-size: 0.88rem !important;
  }

  .teachers-page .teacher-video-slot {
    justify-self: center;
    width: min(260px, 100%);
    max-width: 260px;
    border-radius: 22px;
  }
}

/* === v23: restore lighter violet background, desktop lessons layout, framed lesson cards === */
html,
body {
  background: #6f4388 !important;
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 18%, transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(196, 136, 238, 0.36) 0%, rgba(166, 108, 255, 0.18) 24%, transparent 52%),
    radial-gradient(circle at 86% 86%, rgba(255, 214, 107, 0.08) 0%, transparent 36%),
    linear-gradient(135deg, #6f4388 0%, #70428b 42%, #7b4b96 72%, #5f3a7b 100%) !important;
  background-attachment: fixed !important;
}

main,
main > .section,
main > .section:nth-of-type(odd),
main > .section:nth-of-type(even),
main > .teacher-feature,
main > .cta-section,
.placeholder-main,
.placeholder-main.page-main,
.page-main,
.inner-section,
.subscriptions-section {
  background: transparent !important;
}

main > .section,
main > .teacher-feature,
main > .cta-section {
  color: #fffaf6 !important;
}

/* Keep desktop/tablet lesson layout intact: text cards left, image right, no detached mobile arrows. */
@media (min-width: 761px) {
  #lessons.lesson-section {
    padding-top: clamp(56px, 6vw, 92px) !important;
    padding-bottom: clamp(56px, 6vw, 92px) !important;
  }

  #lessons .lesson-layout {
    display: grid !important;
    grid-template-columns: minmax(520px, 1.08fr) minmax(360px, 0.82fr) !important;
    gap: clamp(30px, 4.2vw, 64px) !important;
    align-items: center !important;
  }

  #lessons .timeline {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  #lessons .mobile-carousel-nav {
    display: none !important;
  }

  #lessons .section-visual {
    display: block !important;
    width: 100% !important;
    max-width: 560px !important;
    justify-self: end !important;
    margin: 0 !important;
    min-height: 0 !important;
  }

  #lessons .section-visual img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }

  #lessons .section-cta {
    margin-top: 28px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  #lessons .lesson-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr) !important;
    gap: 28px !important;
  }

  #lessons .section-visual {
    max-width: 420px !important;
  }
}

/* Framed lesson cards like the Kristina block: soft glass, rounded, readable. */
#lessons .timeline article {
  position: relative !important;
  min-height: 0 !important;
  padding: clamp(22px, 2.2vw, 30px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)) !important;
  box-shadow:
    0 24px 70px rgba(34, 12, 52, 0.16),
    0 0 36px rgba(185, 132, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

#lessons .timeline article::before,
#lessons .timeline article::after {
  content: none !important;
  display: none !important;
}

#lessons .timeline h3 {
  color: #fff !important;
}

#lessons .timeline p {
  color: rgba(255, 250, 246, 0.78) !important;
}

#lessons .timeline b {
  color: #ffd976 !important;
  text-shadow: 0 0 20px rgba(255, 217, 118, 0.16);
}

/* If the lesson cards become a carousel on mobile, keep the cards compact and the image directly below. */
@media (max-width: 760px) {
  #lessons .timeline article {
    min-height: 230px !important;
  }

  #lessons .mobile-carousel-nav {
    margin: 14px 0 18px !important;
  }

  #lessons .section-visual {
    margin-top: 10px !important;
  }
}


/* === v32: centered mobile hero blocks + unified light glass cards + phone without icon === */
@media (max-width: 760px) {
  .hero .copy .stats,
  .hero .copy .hero-social-contact {
    align-self: center !important;
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero .copy .stats {
    width: min(100%, 318px) !important;
    text-align: left !important;
  }

  .hero .copy .hero-social-contact {
    width: min(100%, 318px) !important;
    text-align: center !important;
  }

  .stats div:nth-child(2),
  .stats div:nth-child(4) {
    transform: none !important;
  }

  .hero-social-card,
  .hero-address {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* One softer glass style for transparent content cards */
.info-card,
.program-card,
.timeline article,
.results-grid article,
.compare-grid article,
.glass-card,
.gallery-video-card,
.reviews-media-slider,
.yandex-reviews-card,
.teacher-feature,
.section-visual,
.faq details,
.price-card,
.subscription-card,
.teacher-card,
.poster-card,
.gallery-card,
.hero-social-card,
.hero-address,
.stats div {
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 217, 118, 0.10), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.09)),
    rgba(151, 88, 181, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 52px rgba(94, 40, 124, 0.13),
    0 0 44px rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(118%) !important;
}

.info-card:hover,
.program-card:hover,
.timeline article:hover,
.results-grid article:hover,
.compare-grid article:hover,
.glass-card:hover,
.gallery-video-card:hover,
.reviews-media-slider:hover,
.yandex-reviews-card:hover,
.teacher-feature:hover,
.section-visual:hover,
.faq details:hover,
.price-card:hover,
.subscription-card:hover,
.teacher-card:hover,
.poster-card:hover,
.gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.34), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 217, 118, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.11)),
    rgba(161, 96, 190, 0.20) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 22px 58px rgba(94, 40, 124, 0.15),
    0 0 52px rgba(255, 255, 255, 0.08) !important;
}

/* CTA phone: keep yellow text in the glass frame, remove the phone icon */
.cta-section .phone-link::before {
  display: none !important;
  content: none !important;
}

.cta-section .phone-link {
  justify-content: center !important;
  gap: 0 !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

/* === v33: final mobile centering, clean media glow, compact CTA form === */
@media (max-width: 760px) {
  /* Move only the hero stats/contact blocks closer to the visual center of the phone screen. */
  .hero .copy .stats,
  .hero .copy .hero-social-contact {
    transform: translateX(clamp(18px, 6vw, 30px)) !important;
  }

  .hero .copy .stats {
    width: min(84vw, 318px) !important;
  }

  .hero .copy .hero-social-contact {
    width: min(84vw, 318px) !important;
  }

  /* Make the CRM widget shorter on phones so there is not a huge empty white area. */
  .cta-section .lead-form,
  .cta-section .crm-lead-form {
    padding: 18px !important;
    gap: 12px !important;
    border-radius: 28px !important;
  }

  .cta-section .crm-lead-frame {
    height: 540px !important;
    min-height: 540px !important;
    max-height: 540px !important;
  }
}

@media (max-width: 420px) {
  .hero .copy .stats,
  .hero .copy .hero-social-contact {
    transform: translateX(22px) !important;
  }

  .cta-section .crm-lead-frame {
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
  }
}

/* Remove square glass frames around concert/gallery images. Leave only a soft premium glow. */
.concert-gallery,
.gallery-grid button,
.photo-grid button {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.concert-gallery {
  padding: 0 !important;
}

.concert-gallery::before {
  inset: -20px !important;
  border: 0 !important;
  border-radius: 40px !important;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(255, 217, 118, 0.14), transparent 38%),
    radial-gradient(circle at 50% 52%, rgba(181, 104, 255, 0.22), transparent 58%) !important;
  filter: blur(16px) !important;
  opacity: 0.9 !important;
}

.concert-gallery__stage {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow:
    0 22px 72px rgba(78, 32, 108, 0.22),
    0 0 42px rgba(255, 255, 255, 0.10),
    0 0 56px rgba(188, 115, 255, 0.14) !important;
}

.concert-gallery__stage img,
.gallery-grid button img,
.photo-grid button img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow:
    0 20px 58px rgba(67, 25, 94, 0.18),
    0 0 42px rgba(255, 255, 255, 0.10) !important;
}

/* Keep the same softer glass look for transparent blocks across the site. */
.info-card,
.program-card,
.timeline article,
.results-grid article,
.compare-grid article,
.glass-card,
.gallery-video-card,
.reviews-media-slider,
.yandex-reviews-card,
.teacher-feature,
.faq details,
.price-card,
.subscription-card,
.teacher-card,
.poster-card,
.hero-social-card,
.hero-address,
.stats div {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.34), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(255, 217, 118, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.10)),
    rgba(165, 100, 194, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 52px rgba(94, 40, 124, 0.13),
    0 0 48px rgba(255, 255, 255, 0.08) !important;
}

/* Phone number in CTA: no icon, only text inside the glass frame. */
.cta-section .phone-link::before,
.phone-link::before {
  display: none !important;
  content: none !important;
}

.cta-section .phone-link {
  justify-content: center !important;
  gap: 0 !important;
}

/* === v34: softer glass, clean lesson image, taller mobile CRM === */
/* Reduce the bright glow in translucent cards so text stays crisp and readable. */
.info-card,
.program-card,
.timeline article,
.results-grid article,
.compare-grid article,
.glass-card,
.gallery-video-card,
.reviews-media-slider,
.yandex-reviews-card,
.teacher-feature,
.faq details,
.price-card,
.subscription-card,
.teacher-card,
.poster-card,
.hero-social-card,
.hero-address,
.stats div,
.contact-info-card,
.placeholder-panel,
.subscription-benefits article,
.price-row,
.teacher-directory article,
.reviews-media-card,
.video-slider,
.gallery-video-card,
.concert-gallery {
  border-color: rgba(255, 255, 255, 0.34) !important;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 217, 118, 0.07), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.085)),
    rgba(132, 73, 162, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 34px rgba(79, 31, 105, 0.11),
    0 0 22px rgba(255, 255, 255, 0.035) !important;
  text-shadow: none !important;
}

.info-card:hover,
.program-card:hover,
.timeline article:hover,
.results-grid article:hover,
.compare-grid article:hover,
.glass-card:hover,
.gallery-video-card:hover,
.reviews-media-slider:hover,
.yandex-reviews-card:hover,
.teacher-feature:hover,
.faq details:hover,
.price-card:hover,
.subscription-card:hover,
.teacher-card:hover,
.poster-card:hover,
.gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.39) !important;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.26), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 217, 118, 0.09), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.095)),
    rgba(140, 79, 169, 0.19) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.29),
    0 16px 38px rgba(79, 31, 105, 0.12),
    0 0 26px rgba(255, 255, 255, 0.04) !important;
}

/* In the lessons section remove the remaining square/glass frame behind the photo. */
#lessons .section-visual,
#lessons .section-visual:hover {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

#lessons .section-visual::before,
#lessons .section-visual::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#lessons .section-visual img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow:
    0 20px 54px rgba(61, 24, 86, 0.16),
    0 0 36px rgba(255, 255, 255, 0.055) !important;
}

/* Give the mobile CRM widget a little more white area back so the form is not cut off. */
@media (max-width: 760px) {
  .cta-section .lead-form,
  .cta-section .crm-lead-form {
    padding: 18px !important;
    gap: 14px !important;
    border-radius: 28px !important;
  }

  .cta-section .crm-lead-frame {
    height: 590px !important;
    min-height: 590px !important;
    max-height: 590px !important;
    border-radius: 24px !important;
  }
}

@media (max-width: 420px) {
  .cta-section .crm-lead-frame {
    height: 575px !important;
    min-height: 575px !important;
    max-height: 575px !important;
  }
}

/* === v42: contacts page responsive polish === */
@media (max-width: 1180px) {
  .contacts-page .contacts-redesign {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "map"
      "form";
    width: min(100% - 44px, 860px);
    padding-top: 128px;
  }

  .contacts-page .contacts-form-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .contacts-page .contacts-redesign {
    width: min(100% - 28px, 520px);
    padding-top: 108px;
    padding-bottom: 42px;
    gap: 22px;
  }

  .contacts-page .contacts-copy-panel {
    gap: 18px;
  }

  .contacts-page .contacts-copy-panel h1 {
    font-size: clamp(4rem, 16vw, 5.7rem);
  }

  .contacts-page .contacts-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contacts-page .contacts-info-item {
    min-height: 0;
    padding: 18px 20px;
    gap: 8px;
  }

  .contacts-page .contacts-social-panel {
    width: 100%;
    justify-content: space-between;
    border-radius: 28px;
    padding: 18px 20px;
  }

  .contacts-page .contacts-social-panel > span {
    max-width: 180px;
  }

  .contacts-page .contacts-map-card {
    min-height: 330px;
    padding: 9px;
    border-radius: 30px;
  }

  .contacts-page .contacts-map-card iframe {
    min-height: 330px;
    border-radius: 24px;
  }

  .contacts-page .contacts-map-link {
    left: 18px;
    right: 18px;
    bottom: 18px;
    justify-content: space-between;
  }

  .contacts-page .contacts-form-panel {
    padding: 20px;
    border-radius: 34px;
  }

  .contacts-page .contacts-form-head h2 {
    font-size: clamp(3.3rem, 14vw, 4.8rem);
  }

  .contacts-page .contact-form-card .crm-lead-frame {
    height: 690px;
    min-height: 690px;
    max-height: 690px;
    border-radius: 28px;
  }

  .contacts-page .contact-form-card .btn {
    min-height: 62px;
  }
}


/* === v43: contacts responsive polish === */
@media (max-width: 1180px) {
  .contacts-page .contacts-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .contacts-page .contacts-info-grid {
    grid-template-columns: 1fr;
  }

  .contacts-page .contacts-info-item:nth-child(2) strong a {
    white-space: normal;
  }

  .contacts-page .contacts-copy-panel > .section-kicker:first-child {
    display: none !important;
  }
}


/* === v84: global mobile/tablet alignment pass === */
@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body > main,
  main,
  .placeholder-main,
  .page-main,
  .about-page-main,
  .certificate-page-main {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  main > .section,
  main > .teacher-feature,
  main > .cta-section,
  .section,
  .teacher-feature,
  .cta-section,
  .footer {
    max-width: 100vw !important;
  }

  .section-head,
  .price-head,
  .placeholder-panel,
  .about-hero__copy,
  .gift-hero__content,
  .contacts-copy-panel,
  .contacts-form-panel,
  .contacts-map-card,
  .contacts-info-grid,
  .contacts-info-item,
  .cards-grid,
  .compare-grid,
  .timeline,
  .results-grid,
  .pricing-grid,
  .teacher-directory,
  .reviews-layout,
  .reviews-cards,
  .lesson-layout,
  .media-section,
  .subscription-experience,
  .subscription-benefits,
  .program-flow {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  img,
  video,
  iframe,
  svg {
    max-width: 100%;
  }

  .section-head h1,
  .section-head h2,
  .price-head h1,
  .placeholder-panel h1,
  .placeholder-panel h2,
  .about-hero h1,
  .gift-hero h1,
  .contacts-copy-panel h1,
  .contacts-form-head h2 {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .section-head p,
  .price-head p,
  .placeholder-panel p,
  .about-hero__lead,
  .gift-hero__lead,
  .contacts-lead,
  .contacts-form-head p,
  .info-card,
  .program-card,
  .compare-grid article,
  .results-grid article,
  .pricing-grid article,
  .teacher-card,
  .teacher-directory article,
  .contact-info-card {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  /* Contacts: remove the hidden desktop/grid minimum width that clipped content on 320–375px screens. */
  .contacts-page.placeholder-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .contacts-page .contacts-redesign {
    width: calc(100vw - 28px) !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 108px 0 42px !important;
    gap: 22px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "copy"
      "map"
      "form" !important;
  }

  .contacts-page .contacts-redesign > *,
  .contacts-page .contacts-copy-panel > *,
  .contacts-page .contacts-form-panel > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .contacts-page .contacts-copy-panel h1 {
    width: 100% !important;
    font-size: clamp(3.05rem, 13.6vw, 4.25rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.048em !important;
  }

  .contacts-page .contacts-lead {
    width: 100% !important;
    font-size: clamp(0.98rem, 4.2vw, 1.05rem) !important;
    line-height: 1.55 !important;
  }

  .contacts-page .contacts-info-grid {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .contacts-page .contacts-info-item,
  .contacts-page .contacts-social-panel,
  .contacts-page .contacts-map-card,
  .contacts-page .contacts-form-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contacts-page .contacts-info-item {
    padding: 18px 20px !important;
  }

  .contacts-page .contacts-info-item span,
  .contacts-page .contacts-info-item strong,
  .contacts-page .contacts-info-item small {
    max-width: 100% !important;
  }

  .contacts-page .contacts-info-item:nth-child(2) strong a {
    white-space: normal !important;
  }

  .contacts-page .contacts-social-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 18px 18px !important;
  }

  .contacts-page .contacts-social-panel > span {
    max-width: none !important;
  }

  .contacts-page .contacts-social-panel .social-links {
    flex-shrink: 0 !important;
  }

  .contacts-page .contacts-form-panel {
    padding: 20px !important;
  }

  .contacts-page .contacts-form-head h2 {
    font-size: clamp(2.9rem, 13vw, 4.25rem) !important;
    line-height: 0.95 !important;
  }

  .contacts-page .contact-form-card .crm-lead-frame {
    width: 100% !important;
    height: 660px !important;
    min-height: 660px !important;
    max-height: 660px !important;
  }

  /* “Узнаёте себя?”: equal, compact mobile cards with consistent gaps. */
  #about .cards-grid.three {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 24px !important;
  }

  #about .info-card {
    display: grid !important;
    align-content: start !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 22px 20px !important;
    font-size: clamp(1.2rem, 5.7vw, 1.48rem) !important;
    line-height: 1.16 !important;
  }

  #about .info-card > span {
    display: block !important;
    margin-top: 0 !important;
    font-size: clamp(0.94rem, 4.1vw, 1.04rem) !important;
    line-height: 1.38 !important;
  }

  #about .section-cta--about {
    margin-top: 18px !important;
  }

  /* Lesson carousel: the card must grow enough for the full text on narrow phones. */
  #lessons .timeline {
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 12px !important;
  }

  #lessons .timeline article {
    height: auto !important;
    min-height: clamp(300px, 86vw, 342px) !important;
    overflow: visible !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    column-gap: 16px !important;
    row-gap: 10px !important;
    padding: 24px 20px !important;
  }

  #lessons .timeline b {
    font-size: clamp(2.25rem, 10vw, 2.65rem) !important;
  }

  #lessons .timeline h3 {
    font-size: clamp(1.16rem, 5.4vw, 1.42rem) !important;
    line-height: 1.12 !important;
  }

  #lessons .timeline p {
    font-size: clamp(0.98rem, 4.45vw, 1.08rem) !important;
    line-height: 1.38 !important;
  }

  #lessons .mobile-carousel-nav {
    margin-top: 4px !important;
    margin-bottom: 24px !important;
  }

  .mobile-quick-call {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 380px) {
  .contacts-page .contacts-redesign {
    width: calc(100vw - 24px) !important;
  }

  .contacts-page .contacts-copy-panel h1 {
    font-size: clamp(2.82rem, 13.2vw, 3.12rem) !important;
  }

  .contacts-page .contacts-social-panel {
    grid-template-columns: 1fr !important;
    justify-items: start !important;
  }

  #lessons .timeline article {
    min-height: 348px !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    padding: 22px 18px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body > main,
  main,
  .placeholder-main,
  .page-main,
  .about-page-main,
  .certificate-page-main {
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  .contacts-page .contacts-redesign,
  .about-hero,
  .gift-hero,
  .section,
  .teacher-feature,
  .cta-section {
    max-width: calc(100vw - 44px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .contacts-page .contacts-redesign > *,
  .about-hero > *,
  .gift-hero > *,
  .lesson-layout > *,
  .media-section > *,
  .cards-grid > *,
  .compare-grid > * {
    min-width: 0 !important;
  }

  .contacts-page .contacts-copy-panel h1 {
    font-size: clamp(4.6rem, 9vw, 6.6rem) !important;
  }
}

/* === v85: mobile carousel width guard === */
@media (max-width: 760px) {
  #lessons .lesson-layout,
  #why .why-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #lessons .timeline,
  #why .compare-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-auto-columns: 100% !important;
  }

  #lessons .timeline article {
    min-height: 0 !important;
    height: auto !important;
  }

  #lessons .mobile-carousel-nav,
  #why .mobile-carousel-nav {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* === v86: hero blocks true mobile centering + equal about-card spacing === */
@media (max-width: 760px) {
  .hero .hero-grid,
  .hero-grid {
    justify-items: center !important;
  }

  .hero .copy {
    width: min(calc(100vw - 40px), 350px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center !important;
    align-self: center !important;
    transform: none !important;
    overflow: visible !important;
  }

  .hero .copy .stats,
  .hero .copy .hero-social-contact {
    width: min(100%, 318px) !important;
    max-width: min(100%, 318px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    justify-self: center !important;
    transform: none !important;
  }

  .hero .copy .stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .hero .copy .stats > div,
  .hero .copy .hero-social-card,
  .hero .copy .hero-address {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .hero .copy .hero-social-contact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #about .cards-grid.three {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    row-gap: 12px !important;
    column-gap: 0 !important;
    width: 100% !important;
    margin-top: 24px !important;
  }

  #about .cards-grid.three > .info-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .hero .copy {
    width: min(calc(100vw - 32px), 344px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .hero .copy .stats,
  .hero .copy .hero-social-contact {
    width: min(100%, 304px) !important;
    max-width: min(100%, 304px) !important;
  }
}

/* === v91: larger program media, vertical lesson photo and tighter contacts intro === */
#programs .cards-grid.three {
  gap: clamp(22px, 2.2vw, 34px) !important;
}

#programs .program-card {
  padding: clamp(24px, 2.1vw, 32px) !important;
}

#programs .program-card__image {
  width: 100% !important;
}

#programs .program-card__image img {
  width: 100% !important;
  height: clamp(220px, 15vw, 285px) !important;
  object-fit: cover !important;
  object-position: center center !important;
}

#programs .program-card:nth-child(3) .program-card__image img {
  object-position: 68% center !important;
}

#lessons .section-visual {
  width: min(100%, 480px) !important;
  max-width: 480px !important;
}

#lessons .section-visual img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: clamp(24px, 2.4vw, 34px) !important;
}

.contacts-page.placeholder-main {
  padding-top: 0 !important;
}

.contacts-page .contacts-redesign {
  padding-top: clamp(104px, 8vw, 128px) !important;
}

@media (min-width: 761px) and (max-width: 1180px) {
  #programs .cards-grid.three {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100%, 880px) !important;
    margin-inline: auto !important;
  }

  #programs .cards-grid.three > article,
  #programs .cards-grid.three > article:last-child {
    grid-column: auto !important;
    width: 100% !important;
  }

  #programs .program-card__image img {
    height: clamp(300px, 40vw, 410px) !important;
  }

  #lessons .section-visual {
    width: min(100%, 380px) !important;
    max-width: 380px !important;
  }

  .contacts-page .contacts-redesign {
    padding-top: 104px !important;
  }
}

@media (max-width: 760px) {
  #programs .cards-grid.three {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  #programs .program-card {
    width: 100% !important;
    padding: 20px !important;
  }

  #programs .program-card__image img {
    height: clamp(200px, 58vw, 260px) !important;
  }

  #lessons .section-visual {
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    margin: 12px auto 0 !important;
  }

  .contacts-page .contacts-redesign {
    padding-top: 92px !important;
  }
}

@media (max-width: 380px) {
  #programs .program-card__image img {
    height: clamp(190px, 56vw, 220px) !important;
  }

  .contacts-page .contacts-redesign {
    padding-top: 86px !important;
  }
}

/* === v92: About page photo story === */
.about-photo-section {
  padding-top: clamp(58px, 7vw, 104px) !important;
  padding-bottom: clamp(64px, 8vw, 112px) !important;
}

.about-photo-section__head {
  margin-bottom: clamp(26px, 4vw, 52px) !important;
}

.about-photo-grid {
  columns: 4;
  column-gap: clamp(10px, 1.35vw, 20px);
  width: 100%;
}

.about-photo-grid button {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 0 clamp(10px, 1.35vw, 20px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(12px, 1.25vw, 18px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 0 rgba(56, 23, 78, 0.12);
  cursor: zoom-in;
  break-inside: avoid;
}

.about-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
}

@media (hover: hover) {
  .about-photo-grid button:hover img {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.02);
  }
}

@media (max-width: 980px) {
  .about-photo-grid {
    columns: 3;
  }
}

@media (max-width: 760px) {
  .about-photo-section {
    padding-top: 48px !important;
    padding-bottom: 64px !important;
  }

  .about-photo-grid {
    columns: 2;
    column-gap: 10px;
  }

  .about-photo-grid button {
    margin-bottom: 10px;
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .about-photo-grid {
    columns: 1;
  }
}

/* === v94: reliable lazy-video play control === */
.lazy-video-parent {
  position: relative;
}

.lazy-video-play {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: clamp(54px, 5vw, 72px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(176, 70, 230, 0.92);
  box-shadow: 0 10px 30px rgba(45, 16, 62, 0.3);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.lazy-video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #fff;
  transform: translate(-50%, -50%);
}

.lazy-video-play:hover {
  background: rgba(191, 80, 238, 0.98);
  transform: translate(-50%, -50%) scale(1.06);
}

.lazy-video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.lazy-video-play.is-hidden {
  display: none;
}

/* === v96: five-event poster grid === */
.poster-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.poster-grid .poster-card {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1) !important;
}

.poster-grid .poster-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: inherit;
}

.poster-grid .poster-card:hover img {
  transform: none;
}

@media (max-width: 1180px) {
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .poster-grid {
    grid-template-columns: 1fr;
  }
}

/* === v100: vocal feedback form bottom guard === */
.cta-section .crm-lead-form {
  display: grid !important;
  gap: clamp(18px, 2vw, 24px) !important;
  overflow: visible !important;
}

.cta-section .crm-lead-frame {
  height: 760px !important;
  min-height: 760px !important;
  max-height: none !important;
}

.cta-section .crm-lead-form .btn {
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 !important;
  position: relative;
  z-index: 2;
}

@media (min-width: 901px) {
  .cta-section .crm-lead-frame {
    height: 760px !important;
    min-height: 760px !important;
    max-height: none !important;
  }
}

@media (max-width: 900px) {
  .cta-section .crm-lead-frame {
    height: 820px !important;
    min-height: 820px !important;
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  .cta-section .crm-lead-form {
    gap: 18px !important;
  }

  .cta-section .crm-lead-frame {
    height: 820px !important;
    min-height: 820px !important;
    max-height: none !important;
  }

  .cta-section .crm-lead-form .btn {
    min-height: 68px !important;
  }
}

/* === v101: desktop-compact menu opens from the right edge === */
@media (min-width: 1181px) and (max-width: 1500px) {
  .site-nav {
    top: 96px !important;
    left: auto !important;
    right: clamp(12px, 2vw, 28px) !important;
    width: min(360px, calc(100vw - 44px)) !important;
    max-height: calc(100svh - 118px) !important;
    transform: translate3d(18px, -10px, 0) !important;
    transform-origin: top right !important;
  }

  body.menu-open .site-nav {
    transform: translate3d(0, 0, 0) !important;
  }
}

/* === v102: portrait tablet CTA form containment === */
@media (min-width: 901px) and (max-width: 1180px) {
  main > .cta-section,
  .cta-section {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    gap: clamp(28px, 4vw, 46px) !important;
    padding-left: clamp(28px, 4vw, 48px) !important;
    padding-right: clamp(28px, 4vw, 48px) !important;
    overflow-x: clip !important;
  }

  .cta-section > div:first-child {
    width: min(100%, 720px) !important;
    justify-self: center !important;
  }

  .cta-section .crm-lead-form {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    justify-self: center !important;
  }
}

/* === v103: contacts small-laptop containment === */
@media (min-width: 1181px) and (max-width: 1439px) {
  .contacts-page.placeholder-main,
  .contacts-page {
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  .contacts-page .contacts-redesign {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "copy"
      "map"
      "form" !important;
    width: min(calc(100vw - 72px), 980px) !important;
    max-width: calc(100vw - 72px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: clamp(112px, 8vw, 132px) !important;
    gap: clamp(28px, 3.2vw, 42px) !important;
    overflow: visible !important;
  }

  .contacts-page .contacts-copy-panel,
  .contacts-page .contacts-map-card,
  .contacts-page .contacts-form-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .contacts-page .contacts-copy-panel h1 {
    max-width: 880px !important;
    font-size: clamp(5.4rem, 7.6vw, 7.2rem) !important;
  }

  .contacts-page .contacts-lead {
    max-width: 820px !important;
  }

  .contacts-page .contacts-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .contacts-page .contacts-form-panel {
    position: relative !important;
    top: auto !important;
    justify-self: center !important;
  }

  .contacts-page .contacts-form-head h2,
  .contacts-page .contacts-form-head p:last-child {
    max-width: 760px !important;
  }
}

/* === v124: about cards final compact fallback === */
body #about .info-card.info-card--with-visual > .info-card__visual {
  display: none !important;
  position: static !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
}

#about .info-card--with-visual {
  padding-right: clamp(24px, 1.8vw, 28px) !important;
}

@media (max-width: 760px) {
  #about .info-card--with-visual {
    padding: 22px !important;
  }
}

/* === v143: guitar mobile carousel click area, rhythm and equal cards === */
@media (max-width: 760px) {
  body.guitar-page #lessons .mobile-carousel-nav,
  body.guitar-page #why .mobile-carousel-nav {
    position: relative !important;
    z-index: 40 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 22px 0 0 !important;
    padding-bottom: 32px !important;
    pointer-events: auto !important;
  }

  body.guitar-page #why .mobile-carousel-nav {
    padding-bottom: 34px !important;
  }

  body.guitar-page .mobile-carousel-nav button {
    min-width: 44px !important;
    min-height: 44px !important;
    pointer-events: auto !important;
  }

  body.guitar-page #lessons .timeline,
  body.guitar-page #why .compare-grid {
    display: flex !important;
    align-items: stretch !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.guitar-page #lessons .timeline article {
    flex: 0 0 100% !important;
    height: auto !important;
    min-height: 286px !important;
    scroll-snap-align: start !important;
    transform: none !important;
  }

  body.guitar-page #why .compare-grid article {
    flex: 0 0 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    height: auto !important;
    min-height: clamp(156px, 42vw, 178px) !important;
    scroll-snap-align: start !important;
    transform: none !important;
  }

  body.guitar-page .guitar-lesson-visual,
  body.guitar-page .guitar-why-visual {
    margin-top: 0 !important;
  }
}

/* === v145: guitar hero portrait keeps natural proportions on mobile === */
@media (max-width: 900px) {
  body.guitar-page .hero .portrait {
    top: 0 !important;
    bottom: auto !important;
    right: -10vw !important;
    width: min(108vw, 650px) !important;
    height: auto !important;
    max-width: none !important;
    transform: scale(1) !important;
    transform-origin: 54% 52% !important;
  }
}

@media (max-width: 560px) {
  body.guitar-page .hero .portrait {
    top: 0 !important;
    right: -24vw !important;
    bottom: auto !important;
    width: 124vw !important;
    height: auto !important;
  }
}

/* === v159: guitar mobile/tablet hero typography and compact trial CTA === */
@media (max-width: 1180px) {
  body.guitar-page .hero .copy {
    transform: none !important;
  }

  body.guitar-page .hero .title {
    max-width: min(100%, 660px) !important;
    font-size: clamp(3.05rem, 6.7vw, 4.42rem) !important;
    line-height: 0.96 !important;
  }
}

@media (max-width: 760px) {
  body.guitar-page .hero .title {
    max-width: min(100%, 330px) !important;
    font-size: clamp(2.24rem, 9.2vw, 2.76rem) !important;
    line-height: 0.98 !important;
  }

  body.guitar-page .hero .accent-line {
    max-width: min(100%, 310px) !important;
    font-size: clamp(1.05rem, 4.7vw, 1.2rem) !important;
    line-height: 1.12 !important;
  }

  body.guitar-page .hero .lead {
    max-width: min(100%, 310px) !important;
  }

  body.guitar-page .guitar-objections .section-cta--about {
    min-height: 0 !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 16px !important;
    padding: 18px 20px !important;
    border-radius: 24px !important;
  }

  body.guitar-page .guitar-objections .section-cta--about p {
    flex: 1 1 auto !important;
    max-width: none !important;
    font-size: clamp(0.98rem, 4.15vw, 1.08rem) !important;
    line-height: 1.12 !important;
    font-weight: 850 !important;
  }

  body.guitar-page .guitar-objections .section-cta--about .btn.compact {
    width: auto !important;
    min-width: 124px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding-inline: 14px 12px !important;
    gap: 6px !important;
    font-size: 0.8rem !important;
  }

  body.guitar-page .guitar-objections .section-cta--about .btn.compact span[aria-hidden="true"] {
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 1.14rem !important;
    transform: translateY(-1px) !important;
  }
}

@media (max-width: 340px) {
  body.guitar-page .guitar-objections .section-cta--about {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: start !important;
  }

  body.guitar-page .guitar-objections .section-cta--about p {
    max-width: 100% !important;
  }

  body.guitar-page .guitar-objections .section-cta--about .btn.compact {
    width: min(100%, 190px) !important;
  }
}

/* === v161: guitar compact-desktop hero readability === */
@media (min-width: 1181px) and (max-width: 1640px) {
  body.guitar-page .hero {
    min-height: 800px !important;
  }

  body.guitar-page .hero .copy {
    width: min(44vw, 540px) !important;
    max-width: min(44vw, 540px) !important;
    transform: none !important;
  }

  body.guitar-page .hero .title {
    max-width: 540px !important;
    font-size: clamp(3.35rem, 4.05vw, 4.05rem) !important;
    line-height: 0.96 !important;
  }

  body.guitar-page .hero .accent-line {
    max-width: 520px !important;
    font-size: clamp(1.45rem, 1.75vw, 1.85rem) !important;
    line-height: 1.08 !important;
  }

  body.guitar-page .hero .lead {
    max-width: 520px !important;
    font-size: clamp(0.92rem, 1vw, 1.05rem) !important;
  }

  body.guitar-page .hero .portrait {
    right: 8.6vw !important;
    top: 70px !important;
    bottom: auto !important;
    height: calc(100% - 70px) !important;
    max-height: 760px !important;
    transform: scale(1) !important;
  }

  body.guitar-page .portrait-stage::before {
    background:
      linear-gradient(90deg, rgba(247, 239, 251, 0.98) 0%, rgba(247, 239, 251, 0.92) 31%, rgba(239, 225, 248, 0.52) 47%, rgba(231, 211, 244, 0.16) 61%, transparent 76%) !important,
      linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 18%, transparent 76%, rgba(72, 43, 96, 0.28) 100%) !important;
  }

  body.guitar-page .hero .portrait-stage .glass-card {
    min-width: 152px !important;
    padding: 18px 20px !important;
    border-radius: 22px !important;
  }

  body.guitar-page .hero .portrait-stage .glass-card strong {
    font-size: clamp(1.55rem, 1.8vw, 2rem) !important;
  }

  body.guitar-page .hero .portrait-stage .glass-card span {
    font-size: 0.82rem !important;
    line-height: 1.18 !important;
  }

  body.guitar-page .hero .rating-card {
    top: 140px !important;
    right: 3.8vw !important;
    width: 190px !important;
  }

  body.guitar-page .hero .students-card {
    top: 300px !important;
    right: 5.2vw !important;
    width: 190px !important;
  }

  body.guitar-page .hero .concerts-card {
    top: 430px !important;
    right: 11.6vw !important;
    width: 205px !important;
  }

  body.guitar-page .hero .years-card {
    top: 596px !important;
    right: 3.8vw !important;
    bottom: auto !important;
    width: 190px !important;
  }
}

/* === v164: index video previews stay inside native video frame === */
body:not(.guitar-page) #concerts .lazy-video-poster,
body:not(.guitar-page) #gallery .lazy-video-poster,
body:not(.guitar-page) #achievements .lazy-video-poster,
body:not(.guitar-page) #reviews .lazy-video-poster {
  display: none !important;
}

/* === v170: responsive landscape heroes for piano and drums pages === */
@media (min-width: 1181px) and (max-width: 1640px) {
  body.piano-page .hero .portrait,
  body.drums-page .hero .portrait {
    top: 70px !important;
    right: 0 !important;
    width: min(66vw, 1040px) !important;
    height: calc(100% - 70px) !important;
    max-height: 760px !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body.piano-page .portrait-stage::before,
  body.drums-page .portrait-stage::before {
    background:
      linear-gradient(90deg, rgba(247, 239, 251, 0.96) 0%, rgba(247, 239, 251, 0.82) 33%, rgba(239, 225, 248, 0.48) 54%, rgba(231, 211, 244, 0.18) 68%, transparent 84%) !important,
      linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, transparent 20%, transparent 76%, rgba(72, 43, 96, 0.24) 100%) !important;
  }

  body.piano-page .hero .title,
  body.drums-page .hero .title {
    max-width: min(100%, 520px) !important;
    font-size: clamp(2.62rem, 5.35vw, 3.75rem) !important;
    line-height: 0.98 !important;
  }

  body.piano-page .hero .accent-line,
  body.drums-page .hero .accent-line,
  body.piano-page .hero .lead,
  body.drums-page .hero .lead {
    max-width: 500px !important;
  }
}

@media (max-width: 900px) {
  body.piano-page .hero .portrait,
  body.drums-page .hero .portrait {
    top: 0 !important;
    right: -34vw !important;
    bottom: auto !important;
    width: 134vw !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center right !important;
    transform: none !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body.piano-page .hero .title,
  body.drums-page .hero .title {
    max-width: min(100%, 470px) !important;
    font-size: clamp(2.48rem, 5.1vw, 3.38rem) !important;
    line-height: 0.98 !important;
  }

  body.piano-page .hero .portrait,
  body.drums-page .hero .portrait {
    right: -45vw !important;
  }
}

@media (max-width: 560px) {
  body.piano-page .hero .portrait,
  body.drums-page .hero .portrait {
    right: -58vw !important;
    width: 168vw !important;
  }
}

@media (max-width: 760px) {
  body.piano-page .hero .title,
  body.drums-page .hero .title {
    max-width: min(100%, 320px) !important;
    font-size: clamp(2.02rem, 8.35vw, 2.54rem) !important;
    line-height: 1 !important;
  }

  body.piano-page .hero .accent-line,
  body.drums-page .hero .accent-line {
    max-width: min(100%, 305px) !important;
  }
}
