@media (max-width: 1080px) {

  .hero-grid,
  .contact-wrap,
  .about-grid,
  .classes-grid,
  .events-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .logo-card {
    width: min(100%, 380px);
  }

}


@media (max-width: 1024px) {

  .container {
    width: min(100% - 24px, var(--container));
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(15, 15, 18, 0.96);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-gold);
    z-index: 30;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .btn-nav {
    margin-left: 0;
    margin-top: 4px;
    width: 100%;
  }

  .hero-grid,
  .contact-wrap,
  .about-grid,
  .classes-grid,
  .events-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero.section {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: clamp(1.7rem,5vw,2.3rem);
    margin-bottom: 12px;
  }

  .section-heading p {
    font-size: .98rem;
  }

  .hero-text {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .hero-actions {
    margin-bottom: 22px;
  }

  .hero-features {
    gap: 12px;
  }

  .feature-card {
    padding: 14px 16px;
  }

  .feature-card strong {
    font-size: .96rem;
  }

  .feature-card span {
    font-size: .86rem;
  }

  .logo-card {
    width: min(100%,320px);
  }

  .logo-core {
    padding: 20px;
  }

  .logo-core-image {
    padding: 14px;
  }

  .featured-event {
    grid-template-columns: 1fr;
  }

  .featured-event-content h3 {
    font-size: clamp(1.5rem,5vw,2rem);
  }

  .featured-description,
  .featured-meta,
  .event-body p,
  .gallery-body p,
  .contact-info p {
    font-size: .96rem;
  }

  .countdown {
    grid-template-columns: repeat(2,1fr);
  }

  .contact-wrap {
    gap: 20px;
  }

  .contact-info,
  .contact-form {
    padding: 24px;
  }

  .gallery-filters {
    gap: 10px;
    margin-bottom: 22px;
  }

  .filter-btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: .92rem;
  }

  .gallery-body h3,
  .event-body h3,
  .class-card h3,
  .info-card h3 {
    font-size: 1.1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }

  .calendar-weekdays,
  .calendar-grid {
    grid-template-columns: repeat(7,minmax(0,1fr));
  }

  .calendar-day {
    min-height: 95px;
    padding: 8px;
  }

  .calendar-event {
    font-size: .66rem;
    padding: 5px 6px;
  }

}

@media (max-width: 768px) {

  .header {
    backdrop-filter: blur(10px);
  }

  .nav {
    min-height: 74px;
    gap: 16px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-name {
    font-size: 1.45rem;
    line-height: 1;
  }

  .brand-sub {
    font-size: .64rem;
    letter-spacing: .06em;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

.nav-links {
  position: absolute;
  top: 82px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-gold);
  z-index: 30;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .section {
    padding: 56px 0;
  }

  .hero.section {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.02;
    margin-bottom: 16px;
  }

  .hero-text {
    font-size: .95rem;
    margin-bottom: 18px;
  }

  .hero-actions,
  .featured-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-features {
    gap: 10px;
  }

  .feature-card {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .hero-visual {
    margin-bottom: 4px;
  }

  .logo-card {
    width: min(100%,260px);
  }

  .logo-ring {
    padding: 12px;
  }

  .logo-core {
    padding: 16px;
  }

  .logo-core-image {
    padding: 12px;
  }

  .info-card,
  .class-card,
  .contact-info,
  .contact-form,
  .event-body,
  .gallery-body {
    padding: 18px;
    border-radius: 18px;
  }

  .featured-event {
    gap: 16px;
    padding: 18px;
  }

  .featured-event-image {
    min-height: 240px;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-item {
    padding: 12px 8px;
  }

  .gallery-filters {
    gap: 8px;
  }

  .calendar-day {
    min-height: 74px;
  }

  .footer {
    padding: 18px 0 80px;
  }

  .whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow:
      0 12px 30px rgba(18, 140, 126, 0.35),
      0 0 0 0 rgba(37, 211, 102, 0.3);
    transition:
      transform 0.25s ease,
      filter 0.25s ease,
      box-shadow 0.3s ease;
  }

  .whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.06);
    box-shadow:
      0 16px 36px rgba(18, 140, 126, 0.42),
      0 0 0 8px rgba(37, 211, 102, 0.08);
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
    display: block;
  }
}

@media (max-width: 560px) {

  .hero-title {
    font-size: 1.85rem;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .logo-card {
    width: min(100%,230px);
  }

  .countdown {
    grid-template-columns: 1fr 1fr;
  }

  .logo-core-image {
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .section:not(.hero)::before {
    width: min(94%, 1180px);
  }

  .section:not(.hero)::after {
    width: min(160px, 46vw);
    height: 24px;
    top: -12px;
    opacity: 0.3;
  }

  .section:not(.hero) .section-heading::before {
    width: 56px;
    margin-bottom: 16px;
    opacity: 0.75;
  }
}