/* Көркем-Ай — яркий, живой, современный дизайн */
:root {
  --pink: #ff4f9a;
  --pink-soft: #ff8fbd;
  --pink-light: #fff0f7;
  --blue: #38a8e0;
  --cyan: #63d8f5;
  --yellow: #ffd85a;
  --orange: #ff9f43;
  --green: #66c88a;
  --purple: #a78bfa;
  --navy: #0f1c3f;
  --navy-mid: #1a2a5a;
  --ink: #243044;
  --muted: #69758a;
  --bg: #fff9fc;
  --card: #ffffff;
  --line: #f1dce8;
  --shadow: 0 18px 50px rgba(76, 36, 66, 0.10);
  --shadow-sm: 0 8px 24px rgba(76, 36, 66, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1180px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Comfortaa', 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, #fff0f7 0 18%, transparent 40%),
    radial-gradient(circle at 92% 12%, #eaf9ff 0 16%, transparent 38%),
    radial-gradient(circle at 50% 100%, #fff8e7 0 12%, transparent 35%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  transition: font-size 0.2s, filter 0.2s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

html.a11y-font-lg { font-size: 112%; }
html.a11y-font-xl { font-size: 125%; }
html.a11y-contrast-bw { filter: grayscale(1) contrast(1.35); }
html.a11y-contrast-inverted { filter: invert(1) hue-rotate(180deg); }
html.a11y-hide-images img:not(.a11y-keep) { opacity: 0.08; }

/* TOP BAR dark blue shimmer */
.topbar {
  background: linear-gradient(90deg, #0a1628 0%, #152a52 25%, #1e3a6e 50%, #152a52 75%, #0a1628 100%);
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite;
  border-bottom: 2px solid rgba(255, 216, 90, 0.35);
  font-size: 13.5px;
  color: #e8f0ff;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.topbar .container {
  display: flex; gap: 16px; justify-content: space-between; align-items: center;
  padding: 10px 0; flex-wrap: wrap;
}
.top-info { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: #c8d8f8; }
.top-info span { display: inline-flex; align-items: center; gap: 6px; }
.top-info a { color: #ffe566; font-weight: 800; }
.top-info a:hover { color: #fff; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lang-switch button {
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1);
  color: #e8f0ff; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; transition: 0.2s;
}
.lang-switch button.active {
  background: linear-gradient(135deg, #ffd85a, #ff9f43); color: #0a1628; border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 216, 90, 0.4);
}
.a11y-btn {
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12);
  color: #fff; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 13px;
}
.a11y-btn:hover { background: var(--pink); border-color: transparent; }

header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(241, 220, 232, 0.85);
  box-shadow: 0 4px 20px rgba(76, 36, 66, 0.05);
}
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; flex-shrink: 0; }
.brand img {
  width: 54px; height: 54px; object-fit: cover; border-radius: 50%;
  box-shadow: 0 8px 22px rgba(255, 79, 154, 0.25); border: 3px solid #fff;
  transition: transform 0.35s ease;
}
.brand:hover img { transform: scale(1.08) rotate(-3deg); }
.brand-text { line-height: 1.1; }
.brand-text b { display: block; font-size: 18px; font-family: var(--font-display); letter-spacing: -0.02em; }
.brand-text span { font-size: 12px; color: var(--muted); font-weight: 600; }

.navlinks { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.navlinks a {
  padding: 9px 13px; border-radius: 14px; font-weight: 700; font-size: 14px;
  transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); white-space: nowrap;
}
.navlinks a:hover { background: var(--pink-light); color: #d92876; transform: translateY(-2px); }
.navlinks a.cta {
  background: linear-gradient(135deg, var(--pink), #ff6bab); color: #fff !important;
  box-shadow: 0 8px 20px rgba(255, 79, 154, 0.35); padding: 10px 18px;
}
.navlinks a.cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 28px rgba(255, 79, 154, 0.45); }
.menu-btn {
  display: none; border: 0; background: var(--pink-light); width: 44px; height: 44px;
  border-radius: 14px; font-size: 22px; align-items: center; justify-content: center;
}

/* HERO video */
.hero { position: relative; padding: 0; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0a1628; }
.hero-video-wrap iframe {
  position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.77vh; transform: translate(-50%, -50%);
  pointer-events: none; border: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(10,22,40,0.78) 0%, rgba(21,42,82,0.72) 50%, rgba(15,28,63,0.8) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,216,90,0.45);
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 13.5px;
  color: #ffe566; margin-bottom: 18px; backdrop-filter: blur(8px);
  animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5.8vw, 58px); line-height: 1.08;
  margin: 0 0 16px; letter-spacing: -0.03em; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #ffd85a, #ff8fbd, #63d8f5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 4s ease infinite; background-size: 200% 200%;
}
@keyframes gradientShift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.hero .lead { font-size: 17.5px; color: rgba(255,255,255,0.88); max-width: 520px; margin-bottom: 28px; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 16px;
  font-weight: 800; font-size: 15px; border: 0; transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary { background: linear-gradient(135deg, var(--pink), #ff6bab); color: #fff; box-shadow: 0 10px 28px rgba(255,79,154,0.4); }
.btn-primary:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 36px rgba(255,79,154,0.5); }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.45); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,0.35); }
.btn-whatsapp:hover { transform: translateY(-4px) scale(1.04); }
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-pills span {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
  backdrop-filter: blur(6px); transition: 0.25s;
}
.hero-pills span:hover { background: rgba(255,216,90,0.25); border-color: #ffd85a; transform: translateY(-2px); }

/* US flag CSS icon */
.flag-us {
  display: inline-block; width: 1.35em; height: 1em; vertical-align: -0.12em;
  border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); position: relative; overflow: hidden;
  background: repeating-linear-gradient(#B22234 0 7.69%, #fff 7.69% 15.38%);
}
.flag-us::before {
  content: ''; position: absolute; left: 0; top: 0; width: 40%; height: 53.85%;
  background: #3C3B6E;
}

.hero-card {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  border-radius: 32px; padding: 28px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-card:hover { transform: translateY(-8px) scale(1.02); }
.hero-card-emoji { font-size: 48px; margin-bottom: 12px; display: inline-block; animation: bounceSoft 2.5s ease-in-out infinite; }
@keyframes bounceSoft { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-card h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; color: #fff; }
.hero-card p { color: rgba(255,255,255,0.85); margin: 0; font-size: 14.5px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.hero-stat {
  text-align: center; background: rgba(255,255,255,0.12); border-radius: 16px; padding: 12px 8px;
  border: 1px solid rgba(255,255,255,0.2); transition: 0.3s;
}
.hero-stat:hover { background: rgba(255,216,90,0.2); transform: scale(1.06); }
.hero-stat b { display: block; font-size: 22px; font-family: var(--font-display); color: #ffd85a; }
.hero-stat span { font-size: 11.5px; color: rgba(255,255,255,0.75); font-weight: 600; }

section { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; color: var(--pink); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -0.02em; transition: transform 0.3s; }
.section-head:hover h2 { transform: scale(1.02); }
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 24px 50px rgba(76,36,66,0.14); border-color: var(--pink-soft); }
.card .ico {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, var(--pink-light), #eaf9ff); border-radius: 18px; margin-bottom: 16px;
  transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover .ico { transform: scale(1.15) rotate(-6deg); background: linear-gradient(135deg, #ffd6e8, #c5f0ff); }
.card h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 14.5px; }

.groups-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.group-card:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(76,36,66,0.14); }
.group-card .visual {
  height: 160px; display: flex; align-items: flex-end; justify-content: center; position: relative; overflow: hidden;
}
.group-card:nth-child(1) .visual { background: linear-gradient(160deg, #ffe4f0 0%, #ffc2d9 100%); }
.group-card:nth-child(2) .visual { background: linear-gradient(160deg, #e0f4ff 0%, #b8e4ff 100%); }
.group-card:nth-child(3) .visual { background: linear-gradient(160deg, #fff3d0 0%, #ffe08a 100%); }
.group-card .kids-row { display: flex; gap: 0; position: relative; z-index: 1; margin-bottom: 8px; }
.kid-avatar {
  width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15); object-fit: cover; margin-left: -10px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kid-avatar:first-child { margin-left: 0; }
.group-card:hover .kid-avatar { transform: scale(1.1) translateY(-6px); }
.group-card .head { padding: 18px 22px 12px; }
.group-card .head .age {
  display: inline-block; background: var(--pink); color: #fff; font-weight: 800; font-size: 12px;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 8px;
}
.group-card h3 { font-family: var(--font-display); margin: 0; font-size: 20px; }
.group-card .body { padding: 0 22px 22px; }
.group-card p { color: var(--muted); margin: 0; font-size: 14.5px; }

.director-block {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 36px; padding: 36px;
  box-shadow: var(--shadow); transition: 0.35s;
}
.director-block:hover { box-shadow: 0 28px 60px rgba(76,36,66,0.12); transform: translateY(-4px); }
.director-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px;
  box-shadow: 0 16px 40px rgba(255,79,154,0.2); border: 4px solid #fff; transition: transform 0.4s;
}
.director-block:hover .director-photo { transform: scale(1.03); }
.director-block blockquote {
  font-size: 20px; font-weight: 700; font-family: var(--font-display); margin: 0 0 16px; color: var(--ink); line-height: 1.4;
}
.director-block p { color: var(--muted); margin: 0; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.news-card:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(76,36,66,0.14); }
.news-card .img { height: 160px; display: grid; place-items: center; font-size: 48px; transition: transform 0.4s; }
.news-card:hover .img { transform: scale(1.08); }
.news-card .body { padding: 20px; }
.news-card .date { font-size: 12px; color: var(--pink); font-weight: 800; margin-bottom: 6px; }
.news-card h3 { font-size: 17px; margin: 0 0 8px; font-family: var(--font-display); }
.news-card p { color: var(--muted); font-size: 14px; margin: 0; }

.ig-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ig-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ig-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.ig-card .cover { height: 200px; display: grid; place-items: center; font-size: 56px; position: relative; }
.ig-card .cover .ig-badge {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.ig-card .body { padding: 16px; }
.ig-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ig-card h3 { font-size: 15px; margin: 0 0 6px; font-family: var(--font-display); }
.ig-card p { font-size: 13px; color: var(--muted); margin: 0; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow-sm); transition: 0.35s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-card .stars { color: #ffb800; font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card .text { font-size: 14.5px; color: var(--ink); margin: 0 0 14px; line-height: 1.55; }
.review-card .author { font-weight: 800; font-size: 13px; color: var(--pink); }
.review-card .source { font-size: 11px; color: var(--muted); margin-top: 4px; }
.review-rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #fff8e0, #ffe8a0); border: 1px solid #ffd85a;
  padding: 10px 18px; border-radius: 16px; font-weight: 800; margin-bottom: 24px;
}
.review-rating-badge b { font-size: 28px; color: #e6a800; font-family: var(--font-display); }

.contacts-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.contact-info {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .ico {
  width: 42px; height: 42px; border-radius: 14px; background: var(--pink-light);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0; transition: 0.3s;
}
.contact-item:hover .ico { transform: scale(1.12) rotate(-5deg); }
.contact-item b { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.contact-item span, .contact-item a { font-weight: 800; font-size: 15px; }

.form-card {
  background: linear-gradient(160deg, #fff, #fff5fa); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.form-card h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 22px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px;
  font-family: inherit; font-size: 15px; background: #fff; transition: 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,79,154,0.12);
}
.form-group textarea { min-height: 100px; resize: vertical; }

.map-wrap {
  margin-top: 32px; border-radius: 24px; overflow: hidden; border: 2px solid var(--line);
  box-shadow: var(--shadow-sm); height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  font-weight: 800; font-size: 14px; transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); border: 2px solid transparent;
}
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-btn.wa { background: #25d366; color: #fff; }
.social-btn:hover { transform: translateY(-4px) scale(1.05); filter: brightness(1.08); }

.stats-bar {
  background: linear-gradient(135deg, #0a1628, #1a2a5a); color: #fff; padding: 22px 0; border-top: 3px solid var(--pink);
}
.stats-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; text-align: center; }
.stat-item b { display: block; font-size: 26px; font-family: var(--font-display); color: var(--yellow); }
.stat-item span { font-size: 13px; opacity: 0.75; }

footer { background: #0a1628; color: #e2e8f0; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand b { font-family: var(--font-display); font-size: 20px; color: #fff; display: block; margin-bottom: 8px; }
.footer-brand p { color: #94a3b8; font-size: 14px; margin: 0 0 16px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; }
.footer-col a { display: block; color: #94a3b8; font-size: 14.5px; padding: 5px 0; transition: 0.2s; }
.footer-col a:hover { color: var(--pink-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #64748b;
}

.page-hero {
  padding: 56px 0 32px; text-align: center;
  background: linear-gradient(135deg, rgba(255,240,247,0.6), rgba(234,249,255,0.5));
}
.page-hero .crumb { color: var(--pink); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); margin: 0 0 14px; letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 17px; }

.flag-kz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85em;
  height: 1.15em;
  vertical-align: -0.2em;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.flag-kz svg {
  width: 100%;
  height: 100%;
  display: block;
}
.flag-kz-lg {
  width: 2.4em;
  height: 1.5em;
}

.to-top {
  position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 2px solid var(--yellow); font-size: 20px;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--pink); transform: scale(1.1); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,0.75); backdrop-filter: blur(6px);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #fff; border-radius: 28px; padding: 28px; max-width: 420px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25); border: 2px solid var(--line);
}
.modal-card h2 { font-family: var(--font-display); margin: 0 0 8px; font-size: 20px; }
.modal-card p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.modal-actions button {
  padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  font-weight: 700; font-size: 14px; transition: 0.2s;
}
.modal-actions button:hover { border-color: var(--pink); background: var(--pink-light); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .groups-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .director-block { grid-template-columns: 1fr; text-align: center; }
  .director-photo { max-width: 240px; margin: 0 auto; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .navlinks {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  }
  .navlinks.open { display: flex; }
  .navlinks a { width: 100%; text-align: left; padding: 12px 14px; }
  .groups-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-info { display: none; }
  .hero { min-height: 480px; }
  section { padding: 48px 0; }
  .map-wrap { height: 280px; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stats-grid { gap: 24px; }
}


/* Center alignment for blocks */
.cards-grid .card,
.reviews-grid .review-card,
.ig-feed .ig-card,
.group-card {
  text-align: center;
}
.cards-grid .card .ico,
.group-card .visual {
  margin-left: auto;
  margin-right: auto;
}
.cards-grid .card p,
.review-card .text,
.ig-card .body p {
  text-align: center;
}
.reviews-grid .review-card .author,
.reviews-grid .review-card .source {
  text-align: center;
}
.section-head { text-align: center; }
.hero-pills { justify-content: center; }
@media (min-width: 761px) {
  .hero-grid > div:first-child { text-align: left; }
  .hero-pills { justify-content: flex-start; }
}
.director-block { text-align: center; }
@media (min-width: 981px) {
  .director-block > div:last-child { text-align: left; }
}
.contact-item { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
@media (min-width: 761px) {
  .contact-item { flex-direction: row; text-align: left; justify-content: flex-start; align-items: flex-start; }
}
.gov-block { text-align: left; max-width: 860px; margin-left: auto; margin-right: auto; }
.gov-block h2, .gov-block h3 { text-align: center; }
.gov-jump { text-align: center; }

.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.daily-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.daily-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.daily-card .num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #ff6bab);
  color: #fff; font-weight: 900; font-size: 15px;
  display: grid; place-items: center; margin: 0 auto 12px;
}
.daily-card .ico-big { font-size: 36px; margin-bottom: 8px; display: block; }
.daily-card .time {
  font-weight: 900; color: var(--pink); font-size: 14px; margin-bottom: 6px;
}
.daily-card p { margin: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.menu-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.menu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.menu-table th {
  background: linear-gradient(135deg, #fff0f7, #eaf9ff);
  padding: 12px 10px;
  text-align: center;
  font-weight: 800;
  border-bottom: 2px solid var(--line);
  color: var(--ink);
}
.menu-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
  line-height: 1.45;
}
.menu-table tr:hover td { background: #fffafc; }
.menu-table .day-cell {
  font-weight: 800;
  color: var(--pink);
  white-space: nowrap;
  background: #fff8fb;
}
