@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;800&display=swap');

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3rem);
  --text-3xl: clamp(2.4rem, 1.6rem + 3.2vw, 3.45rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 999px;

  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Exo 2', 'Trebuchet MS', Arial, sans-serif;

  --text: #2a1633;
  --muted: #6f5a7b;
  --primary: #b845d1;
  --primary-dark: #8b26a8;
  --accent: #ff6b8a;
  --border: rgba(98, 44, 120, 0.12);
  --shadow: 0 24px 60px rgba(131, 58, 180, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255,118,156,.2), transparent 25%),
    linear-gradient(135deg, #f4d8f2 0%, #dca3ea 45%, #f1c5e6 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247,236,247,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-text strong {
  font-size: var(--text-sm);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.brand-text span {
  font-size: var(--text-xs);
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.phone {
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  transition: .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 18px 36px rgba(184,69,209,.25);
}

.btn-secondary {
  background: rgba(255,255,255,.9);
  border-color: var(--border);
}

.hero {
  padding: var(--space-12) 0 var(--space-16);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .85rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.5);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
}

h1,
h2,
.brand-text strong,
.card h3,
.form-card h3,
summary,
.promo-box h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .04em;
}

h1 {
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  line-height: .92;
  margin: var(--space-5) 0 var(--space-4);
  max-width: 7ch;
  text-transform: uppercase;
  letter-spacing: .01em;
  word-break: normal;
  hyphens: none;
}

.hero p {
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.stat {
  background: rgba(255,255,255,.65);
  padding: var(--space-4);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.stat span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  isolation: isolate;
}

.visual-panel {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow);
}

.visual-fill {
  position: absolute;
  inset: 0;
  background: transparent;
}

.floating-note,
.floating-note-bottom {
  position: absolute;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  padding: .9rem 1rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 190px;
  z-index: 2;
}

.floating-note {
  right: -10px;
  top: 18px;
}

.floating-note-bottom {
  left: -10px;
  bottom: 18px;
}

.floating-note strong,
.floating-note-bottom strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

section {
  padding: var(--space-16) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-8);
}

.section-head h2 {
  font-size: var(--text-2xl);
  line-height: 1.08;
  max-width: 11ch;
  text-transform: uppercase;
}

.section-head p {
  max-width: 58ch;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(184,69,209,.12);
  color: var(--primary-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.15;
}

.card p {
  color: var(--muted);
}

.feature-list {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.feature-list li {
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.promo {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: var(--space-6);
  align-items: stretch;
}

.promo-box {
  background: linear-gradient(135deg, rgba(184,69,209,.95), rgba(255,107,138,.88));
  color: #fff;
  border-radius: 34px;
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

.promo-box h2 {
  font-size: var(--text-2xl);
  line-height: 1.08;
  max-width: 10ch;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.promo-box p {
  max-width: 52ch;
  color: rgba(255,255,255,.9);
  margin-bottom: var(--space-5);
}

.form-card {
  background: rgba(255,255,255,.92);
  border-radius: 34px;
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

.form-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.form-card p {
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}

label {
  font-size: var(--text-sm);
  font-weight: 700;
  display: grid;
  gap: .4rem;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 0 1rem;
  background: #fff;
  font: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(184,69,209,.12);
}

.alert {
  padding: var(--space-4);
  border-radius: 18px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.alert-success {
  background: rgba(67,122,34,.12);
  color: #2d5b15;
}

.alert-error {
  background: rgba(161,44,123,.12);
  color: #7b1d57;
}

.faq {
  display: grid;
  gap: var(--space-4);
}

details {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px;
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-sm);
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: var(--space-3);
  color: var(--muted);
}

.address-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-5);
}

.site-footer {
  padding: var(--space-8) 0 var(--space-12);
  color: var(--muted);
}

.footer-box {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.5);
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url('../images/1.jpg') center/cover no-repeat;
  border-radius: 36px;
  z-index: -1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.photo-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  padding: var(--space-6);
  box-shadow: var(--shadow);
  text-align: center;
}

.photo-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 8px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
}

.photo-2 { background-image: url('../images/2.jpg'); }
.photo-3 { background-image: url('../images/3.jpg'); }
.photo-4 { background-image: url('../images/4.jpg'); }
.photo-5 { background-image: url('../images/5.jpg'); }

.photo-note {
  font-size: var(--text-sm);
  color: var(--muted);
}

.size-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: var(--text-sm);
}

body:has(#trainer-page) .hero-visual {
  max-width: 560px;
  min-height: 640px;
  padding-top: 10px;
}

body:has(#trainer-page) .floating-note {
  right: -12px;
  top: 20px;
  width: 210px;
}

body:has(#trainer-page) .floating-note-bottom {
  left: -12px;
  bottom: 20px;
  width: 210px;
}

body:has(#trainer-page) .hero-photo {
  background-position: center top;
}

.floating-note {
  display: none !important;
}

.floating-note-single {
  width: min(320px, calc(100% - 24px));
  left: 18px;
  right: auto;
  bottom: 18px;
  top: auto;
  padding: 1rem 1.1rem;
}

.floating-note-single span {
  display: block;
  line-height: 1.5;
}

body:has(#trainer-page) .floating-note-single {
  width: min(340px, calc(100% - 24px));
  left: 18px;
  bottom: 18px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(247,236,247,.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding: 1.25rem 1.25rem 1.75rem;
  flex-direction: column;
  gap: .85rem;
  z-index: 30;
  box-shadow: 0 8px 32px rgba(131,58,180,.12);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  padding: .6rem 0;
  border-bottom: 1px solid rgba(98,44,120,.07);
}

.mobile-menu a.btn {
  border: none;
  margin-top: .5rem;
  text-align: center;
  justify-content: center;
}

.mobile-menu .phone {
  border: none;
  color: var(--primary-dark);
  font-size: var(--text-sm);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  h1 {
    max-width: 7.2ch;
  }

  .hero-visual {
    max-width: 460px;
  }

  .floating-note,
  .floating-note-bottom {
    width: 170px;
  }
}

@media (max-width: 980px) {
  .burger {
    display: flex;
    flex: 0 0 44px;
    margin-left: auto;
  }

  .nav {
    align-items: center;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .hero-grid,
  .grid-2,
  .promo,
  .address-box,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head h2,
  .section-head p,
  .promo-box h2,
  .promo-box p,
  .hero p,
  .card p {
    max-width: 100%;
  }

  .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
  }

  .hero-grid {
    gap: var(--space-6);
  }

  h1 {
    font-size: clamp(2.45rem, 8vw, 4rem);
    line-height: .95;
    max-width: 8.4ch;
  }

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

  .hero-visual {
    max-width: 100%;
    min-height: 460px;
    margin-left: 0;
  }

  .photo-circle {
    width: 200px;
    height: 200px;
  }

  body:has(#trainer-page) .hero-visual {
    min-height: 560px;
    max-width: 100%;
  }

  body:has(#trainer-page) .floating-note-bottom {
    left: 10px;
    bottom: 10px;
    width: 170px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .nav {
    padding: .9rem 0;
    gap: .75rem;
  }

  .brand {
    gap: var(--space-2);
    align-items: flex-start;
    max-width: calc(100% - 56px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .brand-text strong {
    font-size: .95rem;
    line-height: 1.05;
    letter-spacing: .02em;
  }

  .brand-text span {
    font-size: .78rem;
    line-height: 1.18;
  }

  h1 {
    font-size: clamp(2.1rem, 10.6vw, 3.15rem);
    line-height: .97;
    max-width: 8.6ch;
    margin-top: var(--space-4);
    letter-spacing: 0;
  }

  .hero {
    padding-top: var(--space-6);
  }

  .hero p {
    font-size: var(--text-sm);
  }

  .hero-visual {
    min-height: 360px;
  }

  .floating-note,
  .floating-note-bottom {
    position: absolute;
    width: 160px;
    padding: .8rem .85rem;
  }

  .floating-note {
    right: 10px;
    top: 10px;
  }

  .floating-note-bottom {
    left: 10px;
    bottom: 10px;
  }

  .visual-panel,
  .hero-photo,
  .visual-fill,
  .card,
  .promo-box,
  .form-card,
  .photo-card,
  details {
    border-radius: 24px;
  }

  .card,
  .promo-box,
  .form-card,
  .photo-card,
  details {
    padding: var(--space-5);
  }

  .footer-box {
    flex-direction: column;
  }

  .section-head h2,
  .promo-box h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    max-width: 100%;
  }

  .photo-circle {
    width: min(180px, 56vw);
    height: min(180px, 56vw);
  }

  body:has(#trainer-page) .hero-visual {
    min-height: 640px;
  }

  body:has(#trainer-page) .floating-note-bottom {
    left: 8px;
    bottom: 10px;
    width: 136px;
    padding: .72rem .75rem;
  }

  body:has(#trainer-page) .floating-note-bottom strong {
    font-size: .88rem;
  }

  body:has(#trainer-page) .floating-note-bottom span {
    font-size: .88rem;
    line-height: 1.38;
  }

  .floating-note-single {
    width: min(240px, calc(100% - 20px));
    left: 10px;
    bottom: 10px;
    padding: .82rem .9rem;
  }

  body:has(#trainer-page) .floating-note-single {
    width: min(250px, calc(100% - 20px));
    left: 10px;
    bottom: 10px;
  }

  .mobile-menu {
    padding: 1rem 1rem 1.4rem;
  }
}
