/*
Theme Name: Afimika Pilates Club
Description: Официальный сайт студии пилатеса Afimika — bar · pilates · wellness. Махачкала.
Version: 1.0
Text Domain: afimika
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  /* === ФИРМЕННЫЕ ЦВЕТА (из брендбука) === */

  /* Основной зелёный — sage/forest green */
  --green:        #516745;
  --green-dark:   #3e5235;
  --green-light:  #6d8a5c;

  /* Blush pink (розовый) */
  --pink:         #f0d9d3;
  --pink-light:   #faf4f1;

  /* Тёмный текст (TEXT из брендбука — правый свотч) */
  --navy:         #282828;

  /* Premium Gold / Cream (молочно-белый фон) */
  --cream:        #f6f2ed;

  /* Metallic Grey (акцент, металл) */
  --metal:        #9e9e9e;

  /* Text black */
  --white:        #ffffff;
  --text:         #1e1e1e;
  --text-light:   #6a6a6a;
  --border:       #e4d8d2;

  --font-serif:  'Cormorant Infant', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans:   'Onest', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease:            0.3s ease;
  --radius:          12px;
  --max-w:           1280px;
  --section-py:      100px;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);   /* #f6f2ed — Premium Gold/Cream */
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   TYPOGRAPHY
============================================ */
.label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.section-title em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--green);
  font-size: 1.15em;
  line-height: 1;
}

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  :root { --section-py: 70px; }
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 38px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 100px;
  transition: var(--ease);
  white-space: nowrap;
}

.btn-light {
  background: var(--cream);
  color: var(--green);
}
.btn-light:hover { background: var(--white); }

.btn-dark {
  background: var(--green);
  color: var(--cream);
}
.btn-dark:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--cream); }

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,240,235,0.4);
}
.btn-outline-light:hover {
  background: var(--cream);
  color: var(--green);
  border-color: var(--cream);
}

/* ============================================
   NAVIGATION
============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 0;
  transition: padding var(--ease), background var(--ease), box-shadow var(--ease);
}

.site-nav.scrolled {
  background: rgba(245, 240, 235, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 0;
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
}

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

/* Nav logo */
.nav-logo { display: flex; flex-direction: column; line-height: 1; }

.nav-logo-script {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--cream);
  transition: color var(--ease);
}
.site-nav.scrolled .nav-logo-script { color: var(--green); }

.nav-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.55);
  transition: color var(--ease);
  margin-top: 2px;
}
.site-nav.scrolled .nav-logo-sub { color: var(--text-light); }

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu > li > a {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: rgba(245,240,235,0.82);
  transition: color var(--ease);
}
.site-nav.scrolled .nav-menu > li > a { color: var(--text); }
.nav-menu > li > a:hover { color: var(--pink); }
.site-nav.scrolled .nav-menu > li > a:hover { color: var(--green); }

.nav-cta {
  padding: 10px 26px;
  border: 1px solid rgba(245,240,235,0.45);
  border-radius: 100px;
  color: var(--cream) !important;
  transition: background var(--ease), border-color var(--ease), color var(--ease) !important;
}
.site-nav.scrolled .nav-cta {
  border-color: var(--green) !important;
  color: var(--green) !important;
}
.nav-cta:hover {
  background: var(--cream) !important;
  border-color: var(--cream) !important;
  color: var(--green) !important;
}
.site-nav.scrolled .nav-cta:hover {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: var(--cream) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--cream);
  transition: var(--ease);
}
.site-nav.scrolled .nav-toggle span { background: var(--green); }

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a {
    display: block;
    padding: 14px 28px;
    color: var(--text) !important;
    font-size: 1rem;
  }
  .nav-menu > li > a:hover { color: var(--green) !important; background: var(--pink-light); }
  .nav-cta {
    margin: 8px 28px 8px;
    border-color: var(--green) !important;
    color: var(--green) !important;
    padding: 12px 26px;
    display: inline-block;
    width: calc(100% - 56px);
    text-align: center;
  }
}

/* ============================================
   HERO
============================================ */
.hero {
  min-height: 100vh;
  background-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255,255,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 75%, rgba(0,0,0,0.1) 0%, transparent 55%);
  pointer-events: none;
}

/* Decorative circles */
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(245,240,235,0.06);
  right: -200px; bottom: -200px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 130px 20px 100px;
}

/* Logo block */
.hero-logo {
  display: inline-block;
  margin-bottom: 52px;
}

.hero-logo-script {
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 11vw, 10rem);
  color: var(--cream);
  display: block;
  line-height: 0.85;
  margin-bottom: 8px;
}

.hero-logo-row2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.hero-logo-pilates {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 5.8rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
  line-height: 1;
}

.hero-logo-tags {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.52rem, 1.1vw, 0.78rem);
  font-weight: 300;
  color: rgba(245,240,235,0.65);
  letter-spacing: 0.12em;
  line-height: 1.7;
  padding-left: 14px;
  border-left: 1px solid rgba(245,240,235,0.25);
  text-align: left;
}

.hero-logo-row3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 4px;
}

.hero-logo-line {
  flex: 1;
  height: 1px;
  background: rgba(245,240,235,0.35);
  min-width: 60px;
}

.hero-logo-club {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.18em;
  line-height: 1;
}

/* Hero tagline */
.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.3vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.5);
  margin-bottom: 52px;
}
.hero-tagline span { margin: 0 10px; opacity: 0.35; }

/* Hero actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245,240,235,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(245,240,235,0.4), transparent);
  animation: scrollFade 2s ease-in-out infinite;
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   MARQUEE STRIP
============================================ */
.marquee-strip {
  background: var(--pink);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.marquee-track i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.35;
  flex-shrink: 0;
  font-style: normal;
  display: inline-block;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   ABOUT
============================================ */
.about {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  overflow: hidden;
  position: relative;
}

.about-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.about-img-placeholder svg {
  width: 80px; height: 80px;
  opacity: 0.15;
}

.about-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--pink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.about-badge-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.about-badge-txt {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 3px;
}

.about-content { padding-bottom: 24px; }
.about-content .section-title { margin-bottom: 28px; }

.about-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 40px;
}

.about-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-bottom: 44px;
}
.about-feat-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.about-feat-text { font-size: 0.85rem; color: var(--text-light); }

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-img { aspect-ratio: 16/9; }
  .about-badge { bottom: -20px; right: -10px; }
}

/* ============================================
   SERVICES
============================================ */
.services {
  padding: var(--section-py) 0;
  background: var(--green);
}

.services-head {
  text-align: center;
  margin-bottom: 64px;
}
.services-head .label { color: rgba(245,240,235,0.45); }
.services-head .section-title { color: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  padding: 56px 40px 48px;
  background: rgba(255,255,255,0.055);
  transition: background var(--ease), transform var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }

.service-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(245,240,235,0.07);
  line-height: 1;
  margin-bottom: 28px;
}

.service-icon {
  margin-bottom: 22px;
}
.service-icon svg {
  width: 40px; height: 40px;
  stroke: rgba(245,240,235,0.7);
  fill: none;
  stroke-width: 1.4;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 18px;
}

.service-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(245,240,235,0.6);
  margin-bottom: 34px;
}

.service-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--ease);
}
.service-link:hover { gap: 14px; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 44px 28px; }
}

/* ============================================
   WHY US
============================================ */
.why {
  padding: var(--section-py) 0;
  background: var(--pink);
}

.why-head {
  text-align: center;
  margin-bottom: 64px;
}
.why-head .section-title { color: var(--navy); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.why-card { text-align: center; }

.why-icon {
  width: 66px; height: 66px;
  margin: 0 auto 24px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg {
  width: 26px; height: 26px;
  stroke: var(--cream);
  fill: none; stroke-width: 1.5;
}

.why-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.why-text {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--navy);
  opacity: 0.68;
}

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .why-grid { grid-template-columns: 1fr; } }

/* ============================================
   SCHEDULE
============================================ */
.schedule {
  padding: var(--section-py) 0;
  background: var(--pink-light);
}

.schedule-head {
  text-align: center;
  margin-bottom: 50px;
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.sched-tab {
  padding: 10px 28px;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-light);
  transition: var(--ease);
}
.sched-tab.active, .sched-tab:hover {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.schedule-panel { display: none; }
.schedule-panel.active { display: block; }

.sched-table {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.05);
}

.sched-row {
  display: grid;
  grid-template-columns: 100px 1fr 160px 180px;
  border-bottom: 1px solid var(--border);
}
.sched-row:last-child { border-bottom: none; }
.sched-row:not(.sched-head):hover { background: var(--pink-light); }

.sched-head { background: var(--green); }

.sched-cell {
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
}
.sched-head .sched-cell {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,242,237,0.75);
  font-weight: 500;
}

.sched-time {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}

.sched-name { font-weight: 500; }
.sched-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 300;
  margin-top: 2px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 20px;
}
.tag-pilates { background: rgba(81,103,69,0.12);  color: var(--green); }
.tag-bar     { background: rgba(240,217,211,0.9); color: var(--text); }
.tag-well    { background: rgba(40,40,40,0.07);   color: var(--text); }

@media (max-width: 768px) {
  .sched-row { grid-template-columns: 90px 1fr; }
  .sched-cell:nth-child(3), .sched-cell:nth-child(4) { display: none; }
}

/* ============================================
   PRICING
============================================ */
.pricing {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.pricing-head {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 48px 38px;
  position: relative;
  transition: box-shadow var(--ease), transform var(--ease);
}
.price-card:hover { box-shadow: 0 20px 60px rgba(80,102,67,0.1); transform: translateY(-5px); }

.price-card.featured {
  background: var(--green);
  border-color: var(--green);
}

.price-badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--pink);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 18px;
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.price-card.featured .price-name { color: var(--cream); }

.price-sub {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 30px;
}
.price-card.featured .price-sub { color: rgba(245,240,235,0.55); }

.price-amount {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.price-card.featured .price-amount { color: var(--cream); }

.price-period {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
.price-card.featured .price-period { color: rgba(245,240,235,0.5); }

.price-div {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}
.price-card.featured .price-div { background: rgba(245,240,235,0.15); }

.price-feats {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 38px;
}
.price-feat {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.price-feat::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 700;
}
.price-card.featured .price-feat { color: var(--cream); }
.price-card.featured .price-feat::before { color: var(--pink); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ============================================
   GALLERY
============================================ */
.gallery {
  padding: var(--section-py) 0;
  background: var(--cream);
  padding-bottom: 0;
}

.gallery-head {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}

.g-item { overflow: hidden; }
.g-item:nth-child(1) { grid-column: span 5; aspect-ratio: 4/5; }
.g-item:nth-child(2) { grid-column: span 4; aspect-ratio: 1; }
.g-item:nth-child(3) { grid-column: span 3; aspect-ratio: 1; }
.g-item:nth-child(4) { grid-column: span 4; aspect-ratio: 4/3; }
.g-item:nth-child(5) { grid-column: span 3; aspect-ratio: 4/3; }
.g-item:nth-child(6) { grid-column: span 5; aspect-ratio: 4/3; }

.g-inner {
  width: 100%; height: 100%;
  transition: transform 0.6s ease;
}
.g-item:hover .g-inner { transform: scale(1.05); }

/* Placeholder gradient backgrounds */
.g-item:nth-child(1) .g-inner { background: linear-gradient(160deg, #506643 0%, #3d5233 100%); }
.g-item:nth-child(2) .g-inner { background: linear-gradient(160deg, #f0d8d0 0%, #e0c4b8 100%); }
.g-item:nth-child(3) .g-inner { background: linear-gradient(160deg, #4d6b5a 0%, #3a5446 100%); }
.g-item:nth-child(4) .g-inner { background: linear-gradient(160deg, #1d254f 0%, #2b3668 100%); }
.g-item:nth-child(5) .g-inner { background: linear-gradient(160deg, #b8c8a8 0%, #8aaa78 100%); }
.g-item:nth-child(6) .g-inner { background: linear-gradient(160deg, #506643 0%, #6a8558 100%); }

.g-inner-content {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.g-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .g-item:nth-child(n) { grid-column: span 1; aspect-ratio: 1; }
  .g-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }
}

/* ============================================
   CONTACT
============================================ */
.contact {
  padding: var(--section-py) 0;
  background: var(--green);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .label  { color: rgba(245,240,235,0.45); }
.contact-info .section-title { color: var(--cream); margin-bottom: 44px; }

.contact-items { display: flex; flex-direction: column; gap: 28px; }

.c-item { display: flex; gap: 18px; align-items: flex-start; }

.c-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(245,240,235,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.c-icon svg {
  width: 18px; height: 18px;
  stroke: var(--cream); fill: none; stroke-width: 1.5;
}

.c-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.38);
  margin-bottom: 5px;
}
.c-val {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.4;
}
.c-val a { color: var(--cream); transition: opacity var(--ease); }
.c-val a:hover { opacity: 0.7; }

.contact-social {
  display: flex; gap: 10px;
  margin-top: 40px;
}
.contact-social a {
  width: 44px; height: 44px;
  border: 1px solid rgba(245,240,235,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: var(--ease);
}
.contact-social a:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--green);
}
.contact-social svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
}

/* Contact form */
.contact-form-wrap {
  background: rgba(255,255,255,0.07);
  padding: 48px 40px;
}
.contact-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.45);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(245,240,235,0.15);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--ease), background var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245,240,235,0.28); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(245,240,235,0.4);
  background: rgba(255,255,255,0.12);
}
.form-group textarea { height: 110px; resize: none; }
.form-group select option { background: var(--green-dark); }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--green-dark);
  padding: 54px 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 44px;
}

.footer-logo-script {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--cream);
  display: block;
  line-height: 1;
}
.footer-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.35);
  margin-top: 4px;
  display: block;
}

.footer-nav {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.84rem;
  color: rgba(245,240,235,0.45);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(245,240,235,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(245,240,235,0.28);
}

/* ============================================
   FADE-UP ANIMATIONS
============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE — LARGE DESKTOP (1024–1279px)
============================================ */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container { padding: 0 36px; }

  .hero-logo-script  { font-size: clamp(4.5rem, 9vw, 8rem); }
  .hero-logo-pilates { font-size: clamp(2.2rem, 5.5vw, 5rem); }
  .hero-logo-club    { font-size: clamp(1.6rem, 4vw, 3.5rem); }

  .about-inner   { gap: 56px; }
  .service-card  { padding: 48px 32px 40px; }
  .why-grid      { gap: 28px; }
  .pricing-grid  { gap: 20px; }
  .price-card    { padding: 40px 28px; }
  .contact-inner { gap: 56px; }
  .contact-form-wrap { padding: 40px 32px; }
}

/* ============================================
   RESPONSIVE — TABLET (768–1023px)
============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --section-py: 80px; }
  .container { padding: 0 32px; }

  /* Hero */
  .hero-content { padding: 120px 32px 90px; }
  .hero-logo-script  { font-size: clamp(4rem, 10vw, 7rem); }
  .hero-logo-pilates { font-size: clamp(2rem, 6vw, 4.5rem); }
  .hero-logo-club    { font-size: clamp(1.4rem, 4vw, 3rem); }

  /* About: keep 2-col but tighter gap */
  .about-inner { gap: 44px; }
  .about-img   { aspect-ratio: 3/4; }

  /* Services: 2 columns on tablet */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card  { padding: 44px 28px 36px; }

  /* Pricing: 2 + 1 */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
  .price-card.featured {
    grid-column: span 2;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  /* Gallery: 3-column on tablet */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .g-item:nth-child(n) { grid-column: span 1; aspect-ratio: 1; }
  .g-item:nth-child(1) { grid-column: span 2; aspect-ratio: 4/3; }

  /* Contact: single column, less gap */
  .contact-inner { gap: 44px; }
  .contact-form-wrap { padding: 40px 32px; }
}

/* ============================================
   RESPONSIVE — MOBILE (< 768px)  — extends existing rules
============================================ */
@media (max-width: 767px) {
  /* Hero */
  .hero-content { padding: 110px 20px 80px; }
  .hero-logo    { margin-bottom: 32px; }

  /* Simplify hero logo row on mobile */
  .hero-logo-tags { display: none; }
  .hero-logo-row2 { gap: 0; }

  .hero-tagline {
    letter-spacing: 0.2em;
    margin-bottom: 36px;
  }

  /* Stack CTA buttons */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* About: features 1 column */
  .about-feats { grid-template-columns: 1fr; gap: 16px; }

  /* Clip about badge so it doesn't overflow */
  .about-visual { overflow: visible; }
  .about-badge  { right: 0; bottom: -16px; }

  /* Services: full padding reduction */
  .service-card { padding: 40px 24px 36px; }

  /* Why: gap reduction */
  .why-grid { gap: 28px; }

  /* Schedule tabs: full row */
  .schedule-tabs { gap: 6px; }
  .sched-tab { padding: 10px 18px; flex: 1; text-align: center; min-width: 0; }

  /* Pricing */
  .pricing-grid { max-width: 100%; }
  .price-card   { padding: 40px 28px; }

  /* Gallery */
  .gallery .container { padding: 0; }
  .gallery-head { padding: 0 20px; }

  /* Contact form */
  .contact-form-wrap { padding: 36px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-nav { justify-content: center; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE SMALL (< 480px)
============================================ */
@media (max-width: 479px) {
  :root { --section-py: 56px; }
  .container { padding: 0 16px; }

  /* Hero logo — explicit overrides for tiny screens */
  .hero-logo-script  { font-size: 3.6rem; }
  .hero-logo-pilates { font-size: 1.9rem; }
  .hero-logo-club    { font-size: 1.35rem; }
  .hero-logo-line    { min-width: 30px; }
  .hero-content      { padding: 100px 16px 70px; }

  .hero-tagline { font-size: 0.62rem; letter-spacing: 0.15em; }
  .hero-scroll  { display: none; }

  /* Section titles */
  .section-title { font-size: 1.8rem; }

  /* About */
  .about-img   { aspect-ratio: 4/3; }
  .about-badge { width: 96px; height: 96px; right: 0; bottom: -12px; }
  .about-badge-num  { font-size: 1.6rem; }
  .about-text  { font-size: 0.92rem; }

  /* Services */
  .service-card  { padding: 32px 18px 28px; }
  .service-title { font-size: 1.7rem; }
  .service-num   { font-size: 3.5rem; margin-bottom: 18px; }

  /* Why */
  .why-title { font-size: 1.1rem; }

  /* Schedule */
  .schedule-tabs { flex-direction: column; align-items: stretch; }
  .sched-tab     { text-align: center; }
  .sched-row     { grid-template-columns: 76px 1fr; }
  .sched-cell    { padding: 14px 12px; font-size: 0.84rem; }
  .sched-time    { font-size: 1rem; }

  /* Pricing */
  .price-card    { padding: 36px 20px; }
  .price-amount  { font-size: 2.8rem; }

  /* Contact */
  .contact-form-wrap { padding: 28px 16px; }
  .contact-form-wrap h3 { font-size: 1.55rem; margin-bottom: 24px; }
  .c-val { font-size: 0.95rem; }

  /* Footer */
  .footer-logo-script { font-size: 2.2rem; }
  .footer-nav { gap: 16px; }

  /* Buttons touch-friendly */
  .btn { padding: 14px 28px; min-height: 48px; }

  /* Gallery full bleed */
  .gallery-grid { gap: 3px; }
}

/* ============================================
   TOUCH & ACCESSIBILITY
============================================ */
@media (hover: none) {
  /* On touch — remove hover transforms to avoid sticky states */
  .service-card:hover  { transform: none; }
  .price-card:hover    { transform: none; box-shadow: none; }
  .g-item:hover .g-inner { transform: none; }
}

/* Prevent horizontal overflow globally */
html, body { max-width: 100%; overflow-x: hidden; }

/* Tap highlight reset on mobile */
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
