:root {
  color-scheme: light;
  --ink: #27173a;
  --surface: #f8f2ff;
  --text: #27173a;
  --muted: #554663;
  --accent: #681fa5;
  --line: #e5d8ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, sans-serif;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h2 { color: var(--accent); }
h1, h2 { letter-spacing: -.065em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.25rem); line-height: 1.04; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; }
.container { width: min(100% - 3rem, 76rem); margin-inline: auto; }
main section { padding-block: clamp(3.75rem, 8vw, 7.25rem); }

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 1rem auto auto 1rem;
  transform: translateY(-200%);
  background: white;
  color: var(--ink);
  padding: .6rem 1rem;
}
.skip-link:focus { transform: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  position: relative;
  display: block;
  flex: none;
  width: clamp(11rem, 19vw, 15rem);
  aspect-ratio: 5.8;
  overflow: hidden;
}
.brand img {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.8rem, 2.6vw, 2.2rem); }
nav a {
  display: block;
  padding-block: .65rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { color: var(--text); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .65rem 1.25rem;
  border-radius: .6rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 780;
}
.button:hover { background: #511485; }
.header-cta, .instagram { background: #fff; border-color: #cfa9e9; color: var(--accent); }
.header-cta:hover, .instagram:hover { background: #f3e8fc; }
.text-link { color: var(--accent); font-weight: 700; text-underline-offset: .25em; }

.hero {
  background: radial-gradient(ellipse at 90% 24%, #f3e5ff, transparent 58%), #fff;
  border-bottom: 1px solid var(--line);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.place { color: var(--accent); font-size: .875rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 {
  margin: .85rem 0 1.4rem;
  font-size: clamp(3.2rem, 7.2vw, 7rem);
  line-height: .94;
}
.hero h1 span { display: block; color: var(--accent); }
.hero-intro { color: var(--muted); max-width: 30rem; }
.lesson-languages { color: var(--muted); font-size: .95rem; margin-top: .75rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.35rem; margin-top: 1.65rem; }
.hero-media {
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1.25rem 3.5rem #50247820;
}
.hero-media figcaption {
  padding: .85rem 1rem;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 720;
  text-align: center;
}

.courses { background: var(--surface); }
.courses h2 { max-width: 15ch; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.grid article {
  padding: clamp(1.2rem, 2.75vw, 2rem);
  border: 1px solid var(--line);
  border-top: 3px solid #9b47cf;
  border-radius: .85rem;
  background: #fff;
}
.grid article p { margin-top: .65rem; }

.gallery { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.7rem, 2vw, 1.3rem);
  margin-top: 2rem;
}
.gallery-grid a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; }
.gallery-grid a:hover { border-color: var(--accent); }
.gallery-grid img { width: 100%; transition: transform .2s ease; }
@media (hover: hover) { .gallery-grid a:hover img { transform: scale(1.035); } }

.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 2rem; }
.faq-list { border-top: 1px solid var(--line); }
details { padding: 1rem .2rem; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .65rem 0 0; color: var(--muted); }

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 5vw, 4rem);
  background: linear-gradient(125deg, #f8f0ff, #f1e2fe);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}
.contact-panel h2 { max-width: 16ch; }
.contact-panel p { margin-top: .8rem; color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-block: 1.5rem;
  font-size: .9rem;
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.2rem, 11vw, 6rem); }
  .hero-media { max-width: 44rem; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .65rem; padding-top: .9rem; }
  nav { width: 100%; gap: .1rem 1rem; border-top: 1px solid var(--line); }
  nav a { font-size: .875rem; }
  .grid, .faq-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-grid img { transition: none; }
}
