/* ===== «Анашым» бөбекжай бақшасы — WordPress тема стилі ===== */
:root {
  --red: #e63946;
  --blue: #1d6fb8;
  --green: #2fa84f;
  --yellow: #ffc83d;
  --ink: #1f2a44;
  --muted: #5d6b86;
  --bg: #f7f9fc;
  --card: #ffffff;
  --line: #e7ecf3;
  --shadow: 0 18px 40px -18px rgba(31, 42, 68, .35);
  --radius: 22px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Nunito", "Inter", sans-serif; line-height: 1.2; letter-spacing: -.01em; }

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

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

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.section { padding: 84px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }

.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.brand .logo {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--red), var(--yellow) 45%, var(--green) 70%, var(--blue));
  box-shadow: 0 8px 20px -8px rgba(29, 111, 184, .6);
}
.brand .name { font-size: 1.05rem; }
.brand .name span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.menu { display: flex; align-items: center; gap: 28px; }
.menu a { font-weight: 600; color: var(--muted); transition: color .2s; }
.menu a:hover { color: var(--ink); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center;
  padding: 70px 0 80px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--red); }
.hero p { color: var(--muted); font-size: 1.12rem; margin-bottom: 28px; max-width: 52ch; }
.hero .place {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--blue); box-shadow: var(--shadow);
}
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800;
  padding: 14px 26px; border-radius: 999px; transition: transform .2s, box-shadow .2s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgba(29, 111, 184, .7); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero-media .blob {
  position: absolute; inset: auto -30px -30px auto; width: 180px; height: 180px; z-index: -1;
  background: radial-gradient(circle, var(--yellow), transparent 70%); filter: blur(6px); opacity: .7;
}
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: 18px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.hero-badge b { font-size: 1.5rem; color: var(--green); }
.hero-badge small { color: var(--muted); font-weight: 600; }

/* ===== Stats ===== */
.stats { background: #fff; border-block: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; padding: 46px 0;
}
.stat { text-align: center; padding: 14px; }
.stat b { display: block; font-family: "Nunito", sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; }
.stat:nth-child(1) b { color: var(--red); }
.stat:nth-child(2) b { color: var(--blue); }
.stat:nth-child(3) b { color: var(--green); }
.stat:nth-child(4) b { color: var(--yellow); }
.stat:nth-child(5) b { color: var(--blue); }
.stat:nth-child(6) b { color: var(--red); }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.about-text p + p { margin-top: 16px; color: var(--muted); }
.about-text p:first-of-type { font-size: 1.12rem; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline { margin-top: 26px; display: grid; gap: 14px; }
.tl-item { display: flex; gap: 14px; align-items: flex-start; }
.tl-item .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; background: var(--blue); box-shadow: 0 0 0 4px rgba(29,111,184,.15); }
.tl-item:nth-child(2) .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(47,168,79,.15); }
.tl-item:nth-child(3) .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(230,57,70,.15); }
.tl-item b { display: block; }

/* ===== Values ===== */
.values { background: linear-gradient(180deg, #fff, var(--bg)); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.value-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 10px 30px -22px rgba(31,42,68,.4); transition: transform .2s, box-shadow .2s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.value-card:nth-child(4n+1) .ic { background: #ffe6e8; }
.value-card:nth-child(4n+2) .ic { background: #e3f0fb; }
.value-card:nth-child(4n+3) .ic { background: #e3f6e9; }
.value-card:nth-child(4n+4) .ic { background: #fff3d6; }
.value-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .98rem; }

/* ===== Director ===== */
.director-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.director-card .photo img { height: 100%; object-fit: cover; min-height: 420px; }
.director-card .info { padding: 40px; }
.director-card .role { color: var(--blue); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.director-card h3 { font-size: 1.7rem; margin: 8px 0 18px; }
.director-card .quote { color: var(--muted); font-style: italic; border-left: 4px solid var(--yellow); padding-left: 16px; margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts .f { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.facts .f span { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.facts .f b { font-size: 1.05rem; }

/* ===== Gallery ===== */
.gallery-grid {
  margin-top: 40px;
  columns: 4; column-gap: 16px;
}
.gallery-grid figure {
  break-inside: avoid; margin-bottom: 16px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 26px -20px rgba(31,42,68,.5); cursor: zoom-in; background: #fff;
  border: 1px solid var(--line); transition: transform .2s;
}
.gallery-grid figure:hover { transform: scale(1.015); }
.gallery-grid img { width: 100%; }
.gallery-more { text-align: center; margin-top: 34px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 35, .92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .close { position: absolute; top: 22px; right: 28px; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; background: none; border: 0; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox .prev { left: 24px; } .lightbox .next { right: 24px; }

/* ===== Contact ===== */
.contact { background: var(--ink); color: #fff; border-radius: var(--radius); }
.contact .wrap { padding: 64px 40px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.contact h2 { color: #fff; }
.contact .lead { color: #c4ccdc; }
.contact .info-row { display: flex; gap: 14px; margin-top: 22px; align-items: flex-start; }
.contact .info-row .ic { font-size: 1.4rem; flex: none; }
.contact .info-row span { color: #aeb8cc; font-size: .85rem; display: block; }
.contact .info-row b { font-weight: 600; }
.socials { display: flex; flex-direction: column; gap: 14px; }
.social-link {
  display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); padding: 16px 20px; border-radius: 16px; transition: .2s;
}
.social-link:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.social-link .si { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; flex: none; }
.social-link.fb .si { background: #1877f2; }
.social-link.ig .si { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link b { display: block; } .social-link small { color: #aeb8cc; }

/* ===== Footer ===== */
.footer { padding: 40px 0; text-align: center; color: var(--muted); font-size: .9rem; }
.footer .brand { justify-content: center; margin-bottom: 14px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .director-card { grid-template-columns: 1fr; }
  .director-card .photo img { min-height: 320px; }
  .gallery-grid { columns: 2; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .menu { position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: transform .3s; }
  .menu.open { transform: translateY(0); }
  .menu a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

/* ===== WordPress қосымшалары ===== */
.g-hidden { display: none; }
.logo-img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 20px -8px rgba(29, 111, 184, .6); }
.footer .logo-img { width: 46px; height: 46px; }

.contact-map { margin-top: 18px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.contact-map iframe { width: 100%; height: 240px; border: 0; display: block; }

.entry-content { max-width: 70ch; color: var(--ink); }
.entry-content p { margin-bottom: 16px; }
.entry-content img { border-radius: 14px; margin: 18px 0; }
.entry-content h2, .entry-content h3 { margin: 26px 0 12px; }
.sec-title { font-family: "Nunito", sans-serif; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }

.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
