:root {
  /* Soft rainbow pastels */
  --r-red: #ffb3c1;
  --r-orange: #ffd6a5;
  --r-yellow: #fdffb6;
  --r-green: #caffbf;
  --r-blue: #9bf6ff;
  --r-violet: #bdb2ff;
  --r-red-ink: #c45c74;
  --r-orange-ink: #c47a3a;
  --r-green-ink: #2f8562;
  --r-blue-ink: #3b7ea8;
  --r-violet-ink: #6b5bb8;

  --sky: #9bf6ff;
  --sky-deep: #5ec8d8;
  --sky-ink: #3b7ea8;
  --sky-soft: #e8f9fc;
  --mint: #caffbf;
  --mint-deep: #2f8562;
  --mint-soft: #eaf8e8;
  --coral: #ffb3c1;
  --pink: #ffb3c1;
  --pink-deep: #c45c74;
  --peach-soft: #fff3e8;
  --wood: #d6b48e;
  --wood-soft: #f2e5d4;
  --cream: #fffaf5;
  --cream-2: #f8f0e8;
  --ink: #3a4250;
  --muted: #6b7380;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(90, 120, 150, 0.12);
  --shadow-sm: 0 4px 14px rgba(90, 120, 150, 0.10);
  --line: rgba(155, 246, 255, 0.35);
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Kazakh", sans-serif;
  --max: 1120px;
  --rainbow: linear-gradient(90deg,
    var(--r-red) 0%, var(--r-orange) 18%, var(--r-yellow) 36%,
    var(--r-green) 54%, var(--r-blue) 72%, var(--r-violet) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--r-violet-ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--sky-ink); color: #fff; padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container.narrow { width: min(100% - 2rem, 760px); }

.rainbow-bar {
  height: 5px;
  background: var(--rainbow);
  width: 100%;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px;
}
.logo {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit; margin-right: auto;
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--rainbow);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(80, 60, 100, 0.35);
  box-shadow: 0 4px 14px rgba(189, 178, 255, 0.40), inset 0 -3px 0 rgba(255, 255, 255, 0.28);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: .95rem; }
.logo-text small { font-size: .72rem; color: var(--muted); font-weight: 500; }

.nav {
  display: none; gap: .85rem; align-items: center;
}
.nav a {
  text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 500;
  padding: .35rem 0;
}
.nav a:hover { color: var(--r-violet-ink); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.lang-switch {
  display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 3px;
  border: 1px solid var(--line);
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: .35rem .7rem; border-radius: 999px;
  font-weight: 700; font-size: .75rem; color: var(--muted);
}
.lang-btn.is-active {
  background: var(--white); color: var(--sky-ink); box-shadow: 0 1px 4px rgba(90, 120, 150, .14);
}

.nav-toggle {
  width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; gap: 5px; padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 979px) {
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 69px;
    background: var(--cream); padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: .7rem 0; border-bottom: 1px solid rgba(0,0,0,.05); }
}

@media (min-width: 980px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

.hero {
  position: relative; overflow: hidden;
  padding: 4.5rem 0 4rem;
  color: var(--ink);
  background: linear-gradient(165deg,
    #fff0f3 0%, #fff6ea 22%, #fffceb 44%, #f3fbf0 66%, #eef9fc 84%, #f5f2ff 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-bg .dot {
  position: absolute; border-radius: 50%; opacity: 0.55;
}
.hero-bg .d1 { width: 18px; height: 18px; background: var(--r-red); top: 12%; left: 8%; }
.hero-bg .d2 { width: 14px; height: 14px; background: var(--r-orange); top: 28%; right: 14%; }
.hero-bg .d3 { width: 22px; height: 22px; background: var(--r-yellow); bottom: 22%; left: 18%; }
.hero-bg .d4 { width: 16px; height: 16px; background: var(--r-green); top: 55%; right: 8%; }
.hero-bg .d5 { width: 12px; height: 12px; background: var(--r-blue); bottom: 14%; right: 28%; }
.hero-bg .d6 { width: 20px; height: 20px; background: var(--r-violet); top: 18%; left: 42%; opacity: 0.4; }
.hero-bg::after {
  content: "";
  position: absolute; right: -40px; bottom: -60px; width: 280px; height: 280px;
  border: 18px solid rgba(189, 178, 255, 0.28); border-radius: 50%;
}
.hero-inner { position: relative; max-width: 720px; }
.eyebrow {
  display: inline-block; margin: 0 0 .8rem;
  padding: .3rem .75rem; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,179,193,.35), rgba(189,178,255,.35));
  color: var(--r-violet-ink);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.hero h1 {
  margin: 0 0 1rem; font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.15; font-weight: 800; color: var(--ink);
}
.lead { margin: 0 0 .9rem; font-size: 1.08rem; color: var(--muted); max-width: 36em; }
.hero-location {
  margin: 0 0 .6rem; font-size: .98rem; font-weight: 600; color: var(--sky-ink);
}
.hero-note {
  margin: 0 0 1.5rem; font-size: .95rem; color: var(--r-violet-ink);
  background: rgba(189, 178, 255, 0.18);
  display: inline-block; padding: .45rem .85rem; border-radius: 12px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
  font-family: inherit; font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--r-blue), var(--r-violet));
  color: #2a2a4a;
  box-shadow: 0 6px 16px rgba(189, 178, 255, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--r-violet), var(--r-red));
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, .75); color: var(--r-violet-ink);
  border-color: var(--r-violet);
}
.btn-ghost:hover { background: var(--white); border-color: var(--r-red); color: var(--r-red-ink); }
.btn-block { width: 100%; }

.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section h2 {
  margin: 0 0 1rem; font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--r-violet-ink);
}
.section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.section-head p { margin: 0; color: var(--muted); }

.soft-cards {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .soft-cards { grid-template-columns: repeat(3, 1fr); }
}
.soft-cards li {
  background: var(--white); border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  border-top: 5px solid var(--r-red);
  display: flex; flex-direction: column; gap: .35rem;
}
.soft-cards li:nth-child(3n+2) { border-top-color: var(--r-green); }
.soft-cards li:nth-child(3n) { border-top-color: var(--r-blue); }
.soft-cards .icon { font-size: 1.4rem; }
.soft-cards strong { color: var(--ink); }
.soft-cards span { color: var(--muted); font-size: .92rem; }

.nursila-grid {
  display: grid; gap: 2rem; align-items: start;
}
@media (min-width: 860px) {
  .nursila-grid { grid-template-columns: minmax(260px, 380px) 1fr; gap: 2.5rem; }
}
.nursila-photo {
  margin: 0; background: var(--cream); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--wood-soft);
  border-top: 5px solid transparent;
  border-image: var(--rainbow) 1;
  border-image-slice: 1;
  border-bottom: 0; border-left: 0; border-right: 0;
}
.nursila-photo {
  border: 1px solid var(--wood-soft);
  position: relative;
}
.nursila-photo::before {
  content: ""; display: block; height: 5px;
  background: var(--rainbow);
}
.nursila-photo img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; display: block; }
.nursila-photo figcaption {
  padding: .7rem 1rem; font-size: .78rem; color: var(--muted); text-align: center;
  background: var(--cream-2);
}
.nursila-name {
  font-weight: 700; color: var(--pink-deep); margin: 0 0 1rem; font-size: 1.05rem;
}
.nursila-copy .eyebrow {
  background: linear-gradient(90deg, rgba(255,214,165,.5), rgba(255,179,193,.45));
  color: var(--r-orange-ink);
}
.merits {
  margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: merit;
  display: grid; gap: .7rem;
}
.merits li {
  counter-increment: merit;
  position: relative;
  padding: .9rem 1rem .9rem 3.1rem;
  background: var(--cream); border-radius: 16px;
  border: 1px solid var(--wood-soft);
  font-size: .95rem;
}
.merits li::before {
  content: counter(merit);
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--rainbow); color: #fff;
  text-shadow: 0 1px 2px rgba(80, 60, 100, 0.35);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.merits li:nth-child(6n+1)::before { background: var(--r-red); }
.merits li:nth-child(6n+2)::before { background: var(--r-orange); color: #6a4010; text-shadow: none; }
.merits li:nth-child(6n+3)::before { background: var(--r-yellow); color: #5a5010; text-shadow: none; }
.merits li:nth-child(6n+4)::before { background: var(--r-green); color: #1e4a30; text-shadow: none; }
.merits li:nth-child(6n+5)::before { background: var(--r-blue); color: #1e4a5a; text-shadow: none; }
.merits li:nth-child(6n)::before { background: var(--r-violet); }

.gallery {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.gallery-dense {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
  .gallery-dense { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .gallery-dense { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  margin: 0; padding: 0; border: 0; background: var(--cream-2);
  border-radius: 16px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:nth-child(6n+1) { box-shadow: 0 0 0 2px var(--r-red), var(--shadow-sm); }
.gallery-item:nth-child(6n+2) { box-shadow: 0 0 0 2px var(--r-orange), var(--shadow-sm); }
.gallery-item:nth-child(6n+3) { box-shadow: 0 0 0 2px var(--r-yellow), var(--shadow-sm); }
.gallery-item:nth-child(6n+4) { box-shadow: 0 0 0 2px var(--r-green), var(--shadow-sm); }
.gallery-item:nth-child(6n+5) { box-shadow: 0 0 0 2px var(--r-blue), var(--shadow-sm); }
.gallery-item:nth-child(6n) { box-shadow: 0 0 0 2px var(--r-violet), var(--shadow-sm); }
.gallery-item:hover, .gallery-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(90, 120, 150, 0.18);
  outline: 2px solid var(--r-violet);
  outline-offset: 2px;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-item.tall { aspect-ratio: 3/4; }
.gallery-item.portrait { aspect-ratio: 3/4; }
.gallery-item.wide { aspect-ratio: 16/9; }

/* Application form */
.section-apply {
  background: linear-gradient(180deg, #fff5f7 0%, #f5f2ff 50%, var(--cream) 100%);
}
.apply-card {
  background: var(--white);
  border-radius: 24px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.apply-card::before {
  content: ""; display: block; height: 6px; margin: -1.75rem -1.5rem 1.25rem;
  background: var(--rainbow);
}
.coming-soon-badge {
  display: inline-block; margin: 0 0 1.25rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(253, 255, 182, 0.65); color: #6a5a10;
  font-size: .85rem; font-weight: 600;
}
.apply-form { display: grid; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-row input,
.form-row textarea {
  font: inherit; padding: .75rem .9rem; border-radius: 12px;
  border: 1.5px solid rgba(189, 178, 255, 0.45);
  background: var(--cream); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--r-violet);
  box-shadow: 0 0 0 3px rgba(189, 178, 255, 0.35);
  background: var(--white);
}
.form-msg {
  margin: .25rem 0 0; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(202, 255, 191, 0.45); color: var(--mint-deep);
  font-weight: 600; font-size: .95rem;
}
.form-msg.is-error {
  background: rgba(255, 179, 193, 0.4); color: var(--r-red-ink);
}

/* Instagram Reels embeds */
.ig-head { text-align: center; margin-inline: auto; }
.ig-icon { color: var(--pink-deep); margin-bottom: .35rem; }
.ig-reels {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto 1.5rem;
}
@media (min-width: 768px) {
  .ig-reels { grid-template-columns: repeat(2, 1fr); }
  /* Three cards: pair on the first row, last card centered at the same width. */
  .ig-reel:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 1.25rem) / 2);
    justify-self: center;
  }
}
.ig-reel {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  background-clip: padding-box;
  outline: 2px solid var(--r-red);
  outline-offset: -2px;
}
.ig-reel:nth-child(4n+1) { outline-color: var(--r-red); }
.ig-reel:nth-child(4n+2) { outline-color: var(--r-orange); }
.ig-reel:nth-child(4n+3) { outline-color: var(--r-green); }
.ig-reel:nth-child(4n) { outline-color: var(--r-violet); }
.ig-reel iframe {
  display: block;
  width: 100%;
  height: 720px;
  max-width: 100%;
  border: 0;
  background: #fafafa;
}
.ig-reel-fallback {
  display: block;
  text-align: center;
  padding: .65rem .75rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--r-violet-ink);
  text-decoration: none;
}
.ig-reel-fallback:hover { text-decoration: underline; }
.ig-cta { text-align: center; }

.section-contacts {
  background: linear-gradient(180deg, var(--sky-soft), #f0eefc 55%, var(--cream));
}
.note { color: var(--muted); margin-top: -.25rem; }
.contacts-list {
  margin: 1.75rem 0; padding: 0; display: grid; gap: 1rem;
}
.contacts-list > div {
  background: var(--white); border-radius: 16px; padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--r-blue);
}
.contacts-list > div:nth-child(2) { border-left-color: var(--r-green); }
.contacts-list > div:nth-child(3) { border-left-color: var(--r-orange); }
.contacts-list > div:nth-child(4) { border-left-color: var(--r-violet); }
.contacts-list > div:nth-child(5) { border-left-color: var(--r-red); }
.contacts-list dt {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 0 0 .25rem; font-weight: 700;
}
.contacts-list dd { margin: 0; font-size: 1.05rem; }
.placeholder {
  display: inline-block; color: var(--muted);
  background: repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(214,180,142,.16) 6px, rgba(214,180,142,.16) 12px);
  padding: .15rem .45rem; border-radius: 6px; border: 1px dashed rgba(214,180,142,.6);
}
.domain-note { font-size: .9rem; color: var(--muted); }

.site-footer {
  padding: 0 0 2.25rem; border-top: none;
  background: var(--cream-2);
}
.site-footer .footer-inner {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; padding-top: 1.5rem;
}
.site-footer p { margin: 0; font-size: .9rem; }
.muted { color: var(--muted); }

/* Phone: swipe the photo row like a filmstrip. Wider screens keep the grid. */
@media (max-width: 599px) {
  .gallery {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .15rem;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: .75rem;
    padding-bottom: .45rem;
    scrollbar-width: thin;
    scrollbar-color: var(--r-violet) transparent;
  }
  .gallery::-webkit-scrollbar { height: 6px; }
  .gallery::-webkit-scrollbar-thumb {
    background: var(--r-violet);
    border-radius: 99px;
  }
  .gallery-item {
    flex: 0 0 82%;
    scroll-snap-align: start;
    height: auto;
  }
}

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  height: 100dvh; max-height: 100dvh;
  display: flex; flex-direction: column;
  padding:
    calc(.65rem + env(safe-area-inset-top, 0px))
    calc(.4rem + env(safe-area-inset-right, 0px))
    calc(.65rem + env(safe-area-inset-bottom, 0px))
    calc(.4rem + env(safe-area-inset-left, 0px));
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(189, 178, 255, .45), transparent 58%),
    radial-gradient(90% 55% at 0% 100%, rgba(255, 179, 193, .38), transparent 52%),
    radial-gradient(70% 45% at 100% 80%, rgba(155, 246, 255, .28), transparent 50%),
    rgba(58, 48, 72, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.lightbox[hidden] { display: none !important; }
.lightbox-viewport {
  flex: 1; min-height: 0; width: 100%;
  overflow: hidden;
  touch-action: none;
  z-index: 1;
}
.lightbox-track {
  display: flex; height: 100%; width: 100%;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
}
.lightbox-slide {
  flex: 0 0 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: .25rem .35rem;
  min-width: 0;
}
.lightbox-slide img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 18px 50px rgba(58, 48, 72, .35);
  -webkit-user-drag: none;
  user-select: none;
}
.lightbox-count {
  position: absolute;
  top: calc(.75rem + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  z-index: 2; margin: 0;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(255, 250, 245, .94);
  color: var(--r-violet-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2;
  border: 0; cursor: pointer; border-radius: 50%;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  padding: 0;
  background: rgba(255, 250, 245, .94);
  color: var(--r-violet-ink);
  box-shadow: var(--shadow-sm);
  font-size: 1.7rem; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close {
  top: calc(.7rem + env(safe-area-inset-top, 0px));
  right: calc(.7rem + env(safe-area-inset-right, 0px));
  font-size: 2rem;
}
.lightbox-nav.prev {
  left: calc(.45rem + env(safe-area-inset-left, 0px));
  top: 50%; transform: translateY(-50%);
}
.lightbox-nav.next {
  right: calc(.45rem + env(safe-area-inset-right, 0px));
  top: 50%; transform: translateY(-50%);
}
.lightbox-close:hover, .lightbox-nav:hover,
.lightbox-close:focus-visible, .lightbox-nav:focus-visible {
  background: #fff;
  outline: 3px solid var(--r-violet);
  outline-offset: 2px;
}
.lightbox-nav[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery-item, .lightbox-track { transition: none; }
}

.features-intro {
  margin: 1.5rem 0 0; font-weight: 700; color: var(--r-violet-ink); font-size: 1.05rem;
}
.soft-cards-wide {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .soft-cards-wide { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .soft-cards-wide { grid-template-columns: repeat(4, 1fr); }
}
.soft-cards-wide li:nth-child(6n+1) { border-top-color: var(--r-red); }
.soft-cards-wide li:nth-child(6n+2) { border-top-color: var(--r-orange); }
.soft-cards-wide li:nth-child(6n+3) { border-top-color: var(--r-yellow); }
.soft-cards-wide li:nth-child(6n+4) { border-top-color: var(--r-green); }
.soft-cards-wide li:nth-child(6n+5) { border-top-color: var(--r-blue); }
.soft-cards-wide li:nth-child(6n) { border-top-color: var(--r-violet); }

/* ---------- background music toggle ---------- */
.music {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
}
.music-btn {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(var(--r-red), var(--r-orange), var(--r-yellow), var(--r-green), var(--r-blue), var(--r-violet), var(--r-red)) border-box;
  color: var(--r-violet-ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.music-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.music-btn:focus-visible { outline: 3px solid var(--r-blue-ink); outline-offset: 3px; }
.music-ico { width: 24px; height: 24px; }
.music-btn .ico-on { display: none; }
.music-btn.is-playing .ico-on { display: block; }
.music-btn.is-playing .ico-off { display: none; }
.music-btn.is-playing .ico-on { animation: music-bob 1.6s ease-in-out infinite; }
.music-btn.is-waiting::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--r-violet);
  animation: music-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes music-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px) rotate(-6deg); } }
@keyframes music-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
/* YouTube stays mounted so audio can play, but must never be seen.
   Android Chrome still paints opacity:0 iframes (thumbnail + controls
   below the footer). Park the box off-screen. Do not use display:none. */
.music-player,
.music-player iframe {
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  width: 220px;
  height: 124px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .music-btn.is-playing .ico-on, .music-btn.is-waiting::after { animation: none; }
}

/* 2026-10-28 texts */
.hero-slogan{font-style:italic;max-width:42rem;margin:.75rem auto 0;opacity:.9}
.photo-ph{margin:1.25rem auto;max-width:640px;aspect-ratio:4/3;border:2px dashed #c9b8f0;border-radius:18px;display:flex;align-items:center;justify-content:center;text-align:center;padding:1rem;background:rgba(255,255,255,.6);color:#7a6aa6;font-weight:600}
.hero .photo-ph{max-width:520px;aspect-ratio:16/9}
.hours-line{margin-top:1rem}
#process .merits,#values .merits,#about .merits{margin:.5rem 0 1rem 1.25rem}
#values .merits li,#process .merits li,#about .merits li{margin:.35rem 0}
.groups-gallery { grid-template-columns: 1fr; }
@media (min-width: 600px) { .groups-gallery { grid-template-columns: repeat(2, 1fr); } }
.group-card { margin: 0; }
.group-card .gallery-item { width: 100%; display: block; }
.group-card .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.group-card figcaption { text-align: center; font-weight: 600; margin-top: .5rem; }
.hero-photo{margin:1.5rem 0 0;max-width:640px;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);border:3px solid #fff}
.hero-photo img{display:block;width:100%;height:auto}

/* qarlygash additions */
.info-table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;margin:1rem 0}
.info-table th,.info-table td{padding:.7rem .9rem;border-bottom:1px solid #eee;text-align:left;vertical-align:top}
.info-table th{width:38%;color:var(--ink);white-space:nowrap}
.placeholder{color:var(--muted);font-style:italic}
details.faq{background:#fff;border-radius:14px;padding:.8rem 1rem;margin:.6rem 0;box-shadow:0 2px 8px rgba(0,0,0,.05)}
details.faq summary{cursor:pointer;font-weight:600}
details.faq p{margin:.6rem 0 0}
.doc-list{list-style:none;padding:0;display:grid;gap:.6rem}
.doc-list li{display:flex;gap:.6rem;align-items:center;background:#fff;border-radius:12px;padding:.7rem 1rem;flex-wrap:wrap}
.doc-list li .placeholder{margin-left:auto;font-size:.9rem}
.head-card{display:flex;gap:1rem;align-items:center;background:#fff;border-radius:18px;padding:1rem;margin:1rem 0}
.head-card img{width:120px;height:120px;object-fit:cover;border-radius:50%}
.head-name{font-size:1.15rem;margin:.2rem 0}
.team-list li span+span{font-size:.85rem}
h3{margin-top:1.6rem}
.logo-img{width:48px;height:48px;border-radius:50%;box-shadow:0 3px 10px rgba(80,140,200,.3)}

/* ===== Қарлығаш logo palette ===== */
:root{
  --q-sky:#2a9fd6; --q-sky-light:#7fd0ef; --q-sky-soft:#e6f6fc; --q-sky-bg:#cdeff8;
  --q-navy:#23205a; --q-sun:#ffcc29; --q-sun-deep:#f5a623; --q-leaf:#8cbf26; --q-leaf-ink:#3f6e0f; --q-gold:#c9a24a;
  --r-red:var(--q-sun); --r-orange:var(--q-sun-deep); --r-yellow:#ffe98a; --r-green:var(--q-leaf); --r-blue:var(--q-sky-light); --r-violet:var(--q-sky);
  --r-red-ink:#8a5a00; --r-orange-ink:#8a5a00; --r-green-ink:var(--q-leaf-ink); --r-blue-ink:#1b6f99; --r-violet-ink:var(--q-navy);
  --sky:var(--q-sky-light); --sky-deep:var(--q-sky); --sky-ink:#1b6f99; --sky-soft:var(--q-sky-soft);
  --mint:var(--q-leaf); --mint-deep:var(--q-leaf-ink); --mint-soft:#eef7dc;
  --cream:#f4fbfe; --cream-2:#e6f6fc; --ink:#23264a; --muted:#4f5b70;
  --line:rgba(42,159,214,.25); --shadow:0 10px 30px rgba(35,32,90,.10); --shadow-sm:0 4px 14px rgba(35,32,90,.08);
  --rainbow:linear-gradient(90deg,var(--q-sky) 0%,var(--q-sky-light) 30%,var(--q-sun) 55%,var(--q-sun-deep) 75%,var(--q-leaf) 100%);
}
h1,h2,h3{color:var(--q-navy)}
.site-header{background:rgba(255,255,255,.92)}
.hero{background:linear-gradient(180deg,var(--q-sky-bg) 0%,var(--q-sky-soft) 60%,var(--cream) 100%)}
.section-alt{background:var(--q-sky-soft)}
.btn-primary{background:var(--q-sun);color:var(--q-navy);box-shadow:0 6px 16px rgba(245,166,35,.35)}
.btn-primary:hover{background:var(--q-sun-deep);color:var(--q-navy)}
.hero-cta .btn-primary[href*="wa.me"]{background:#25d366;color:#0b3d1e;box-shadow:0 6px 16px rgba(37,211,102,.3)}
.hero-cta .btn-primary[href*="wa.me"]:hover{background:#1fb457}
.btn-ghost{color:var(--q-navy);border-color:var(--q-sky)}
.btn-ghost:hover{border-color:var(--q-navy);color:var(--q-navy)}
.eyebrow{background:#fff3c4;color:#6b4a00}
.section-apply{background:linear-gradient(180deg,#fff8dc 0%,var(--q-sky-soft) 100%)}
.section-contacts{background:linear-gradient(180deg,var(--q-sky-soft),var(--cream))}
.soft-cards li{border-top-color:var(--q-sky)}
.soft-cards li:nth-child(3n+2){border-top-color:var(--q-sun)}
.soft-cards li:nth-child(3n){border-top-color:var(--q-leaf)}
.info-table th,details.faq summary{color:var(--q-navy)}
.lang-btn.is-active{background:var(--q-navy);color:#fff}
.site-footer{background:var(--q-navy);color:#e6f6fc}
.site-footer .muted{color:#b9d9ea}
/* nav dropdowns + pages */
.nav{gap:.15rem}
.nav .dd{position:relative}
.nav .dd-btn{background:none;border:0;font:inherit;color:var(--ink);padding:.5rem .55rem;cursor:pointer;border-radius:10px;font-size:.92rem}
.nav>a{font-size:.92rem;padding:.5rem .55rem}
.nav .dd-btn:hover,.nav .dd.is-active>.dd-btn,.nav a[aria-current]{color:var(--q-navy);background:var(--q-sky-soft)}
.nav .caret{font-size:.7em;margin-left:.25rem}
.nav .dd-menu{display:none;position:absolute;top:100%;left:0;min-width:260px;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:.4rem;z-index:50;border-top:3px solid var(--q-sun)}
.nav .dd.open .dd-menu{display:block}
@media(min-width:1280px){.nav .dd:hover .dd-menu{display:block}}
.nav .dd-menu a{display:block;padding:.5rem .7rem;border-radius:9px;color:var(--ink);text-decoration:none;font-size:.92rem}
.nav .dd-menu a:hover{background:var(--q-sky-soft)}
@media(max-width:1279px){
 .nav-toggle{display:flex!important}
 .nav{display:none!important;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:.5rem 1rem 1rem;box-shadow:var(--shadow);max-height:80vh;overflow:auto}
 .nav.is-open{display:flex!important}
 .nav .dd-menu{position:static;box-shadow:none;border-top:0;padding:0 0 .3rem 1rem;min-width:0}
 .nav .dd-btn,.nav>a{text-align:left;width:100%;padding:.7rem .5rem;font-size:1rem;border-bottom:1px solid #eef3f7;border-radius:0}
}
.site-header{position:sticky;top:0;z-index:40}
.page-section h1{font-size:clamp(1.6rem,4vw,2.3rem);margin-top:0}
.post{background:#fff;border-radius:18px;padding:1.2rem 1.3rem;margin:1rem 0;box-shadow:var(--shadow-sm);border-left:5px solid var(--q-sky)}
.post:nth-of-type(3n+2){border-left-color:var(--q-sun)}.post:nth-of-type(3n){border-left-color:var(--q-leaf)}
.post h3{margin:.2rem 0 .6rem}
.post-date{color:var(--sky-ink);font-weight:600;margin:0;font-size:.9rem}
.post-text p{margin:.35rem 0}
.post-text.clamp{max-height:14em;overflow:hidden;-webkit-mask-image:linear-gradient(#000 70%,transparent)}
.more{margin:.5rem 0}
.file-list{list-style:none;padding:0;margin:.8rem 0;display:grid;gap:.4rem}
.file-list a{display:block;background:var(--q-sky-soft);padding:.6rem .8rem;border-radius:10px;color:var(--q-navy);text-decoration:none;font-weight:600}
.file-list a:hover{background:#d4eef9}
.placeholder-box{background:#fff;border:2px dashed var(--q-sky-light);border-radius:18px;padding:2.5rem 1rem;text-align:center;color:var(--muted);font-size:1.1rem}
.placeholder-box span{font-size:2rem}
.rich img{max-width:100%;height:auto;border-radius:12px}
.rich .symbols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.rich .symbols figure{background:#fff;border-radius:16px;padding:1rem;margin:0;text-align:center}
.rich .symbols img{max-height:180px}
.rich .anthem{background:#fff;border-radius:16px;padding:1rem 1.3rem;white-space:pre-line}
.tm-photo{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;margin-bottom:.5rem}
.head-card img{object-position:top}
.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.admin-card{background:#fff;border-radius:18px;overflow:hidden;margin:0;box-shadow:var(--shadow-sm)}
.admin-card img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top}
.admin-card figcaption{padding:1rem;display:grid;gap:.25rem}
.admin-card figcaption span{color:var(--muted);font-size:.92rem}
.menu-table thead th{background:var(--q-sky-soft)}
.nav .dd-btn,.nav>a{white-space:nowrap}
@media(min-width:1280px){.nav .dd-btn,.nav>a{font-size:.82rem;padding:.4rem .3rem}.logo-text small{display:none}}
/* header: brand never overlapped */
.header-inner{display:flex;align-items:center;gap:1rem;min-width:0}
.logo{flex-shrink:0;position:relative;z-index:1}
.logo-text strong,.logo-text small{white-space:nowrap}

.nav-toggle{flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}

/* nav: never wrap; JS adds html.nav-burger when it doesn't fit */
@media(min-width:1280px){.nav{flex:0 1 auto;min-width:0;flex-wrap:nowrap!important;white-space:nowrap;margin-left:auto}}
.nav>*{flex-shrink:0;white-space:nowrap}
.nav>a.nav-home{display:none}
html.nav-burger .nav-toggle{display:flex!important}
html.nav-burger .nav{display:none!important;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:.5rem 1rem 1rem;box-shadow:var(--shadow);max-height:80vh;overflow:auto;white-space:normal}
html.nav-burger .nav.is-open{display:flex!important}
html.nav-burger .nav .dd-menu{position:static;box-shadow:none;border-top:0;padding:0 0 .3rem 1rem;min-width:0}
html.nav-burger .nav .dd:not(.open):hover .dd-menu{display:none}
html.nav-burger .nav .dd-btn,html.nav-burger .nav>a{text-align:left;width:100%;padding:.7rem .5rem;font-size:1rem;border-bottom:1px solid #eef3f7;border-radius:0}
html.nav-burger .nav>a.nav-home{display:block}
@media(max-width:1279px){.nav>a.nav-home{display:block}}
