/* ============================================================
   Тараз-Ғасыр колледжі — style.css
   Modern education UI · white base · green/gold accents
   ============================================================ */

:root {
  /* Brand palette — navy blue & gold (new logo) */
  --green-900: #122a52;   /* deep navy */
  --green-700: #1a3e7c;   /* primary blue */
  --green-600: #2154a8;   /* hover blue */
  --green-500: #2f6fd0;   /* accent blue */
  --green-50:  #f2f6fc;   /* light blue tint */
  --gold-500:  #e3a82b;   /* logo gold */
  --gold-600:  #c8901b;   /* gold hover */
  --ink-900:   #0f1b30;
  --ink-700:   #33415c;
  --ink-500:   #5c6b85;
  --line:      #e3e9f3;
  --white:     #ffffff;
  --radius:    18px;
  --shadow-sm: 0 2px 10px rgba(18, 42, 82, .06);
  --shadow-md: 0 12px 32px rgba(18, 42, 82, .14);
  --container: 1140px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Topbar (admission announcement) ---------- */
.topbar { background: linear-gradient(90deg, var(--green-900), var(--green-700)); color: #fff; }
.topbar__inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 22px; font-size: .86rem; font-weight: 600; flex-wrap: wrap; text-align: center;
}
.topbar__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); flex: none;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 168, 43, .55); }
  50% { box-shadow: 0 0 0 7px rgba(227, 168, 43, 0); }
}
.topbar a { color: var(--gold-500); font-weight: 800; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 46px; height: 46px; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 1.02rem; color: var(--green-900); line-height: 1.15; }
.brand__since { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-500); letter-spacing: .06em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink-700); font-weight: 600; font-size: .93rem; transition: color .2s; }
.nav a:hover { color: var(--green-600); }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: 8px; }
.lang a {
  padding: 6px 13px; font-size: .8rem; font-weight: 700; text-decoration: none;
  color: var(--ink-500); background: var(--white); transition: .2s;
}
.lang a.is-active { background: var(--green-700); color: #fff; }
.lang a:not(.is-active):hover { background: var(--green-50); color: var(--green-700); }

.burger {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink-900); margin: 5px auto; border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: .2s;
}
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold-500); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn--ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--ghost:hover { background: var(--green-50); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--green-50) 0%, #fff 85%); }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(47, 111, 208, .14), transparent);
  border-radius: 50%;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 64px; position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; font-size: .8rem; font-weight: 700; color: var(--green-700);
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; font-weight: 800; color: var(--green-900); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--green-600); }
.hero__sub { font-size: 1.08rem; color: var(--ink-500); max-width: 540px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero__badge {
  position: absolute; left: -18px; bottom: 22px; background: #fff; border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; color: var(--green-900);
}
.hero__badge svg { flex: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border-bottom: 3px solid var(--gold-500);
}
.stat b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--green-700); line-height: 1.25; }
.stat span { font-size: .78rem; color: var(--ink-500); font-weight: 600; line-height: 1.35; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--green-50); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 10px; }
.section__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--green-900); line-height: 1.2; }
.section__desc { margin-top: 12px; color: var(--ink-500); }

/* ---------- Admission ---------- */
.admission { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.adm-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.fact b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin-bottom: 4px; }
.fact span { font-weight: 800; color: var(--green-900); font-size: 1.02rem; }
.fact--accent { background: var(--green-700); border-color: var(--green-700); }
.fact--accent b { color: rgba(255,255,255,.7); }
.fact--accent span, .fact--accent a { color: #fff; text-decoration: none; }
.perks { display: flex; flex-wrap: wrap; gap: 10px; }
.perk {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green-50);
  border: 1px solid rgba(47,111,208,.25); color: var(--green-900); font-weight: 700; font-size: .88rem;
  border-radius: 999px; padding: 9px 16px;
}
.docs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.docs-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--green-900); margin-bottom: 16px; }
.docs-list { list-style: none; counter-reset: doc; display: grid; gap: 12px; }
.docs-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-700); }
.docs-list li::before {
  counter-increment: doc; content: counter(doc);
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-500); color: var(--green-900); font-weight: 800; font-size: .85rem;
}
.docs-list small { display: block; color: var(--ink-500); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.about__text p { margin-bottom: 14px; color: var(--ink-700); }
.about__text .lead { font-size: 1.15rem; font-weight: 700; color: var(--green-900); }
.doc-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.doc-list li {
  display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm); font-size: .93rem; color: var(--ink-700);
}
.doc-list svg { flex: none; margin-top: 2px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: feat; }
.feature {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px 24px; box-shadow: var(--shadow-sm); transition: .25s;
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--gold-500));
  opacity: 0; transition: opacity .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(47, 111, 208, .35); }
.feature:hover::before { opacity: 1; }
.feature:not(.feature--photo)::after {
  counter-increment: feat; content: "0" counter(feat);
  position: absolute; top: 18px; right: 22px;
  font-weight: 800; font-size: 1.5rem; letter-spacing: .02em;
  color: var(--green-500); opacity: .16;
}
.feature__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff;
  margin-bottom: 16px; box-shadow: 0 8px 18px rgba(26, 62, 124, .28);
  transition: transform .25s;
}
.feature:hover .feature__icon { transform: scale(1.08) rotate(-4deg); }
.feature h3 { font-size: 1.02rem; font-weight: 800; color: var(--green-900); margin-bottom: 6px; }
.feature p { font-size: .9rem; color: var(--ink-500); }

/* Photo card inside features grid */
.feature--photo {
  padding: 0; border: 0; display: flex; align-items: flex-end; min-height: 250px;
  background:
    linear-gradient(180deg, rgba(18, 42, 82, .1) 20%, rgba(18, 42, 82, .88) 100%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  background-size: cover; background-position: center;
}
.feature--photo .feature__overlay { padding: 24px; width: 100%; }
.feature--photo h3 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.feature--photo .btn { padding: 10px 20px; font-size: .88rem; }

/* ---------- Specialties table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .9rem; }
.spec-table th {
  background: var(--green-700); color: #fff; text-align: left; padding: 14px 16px;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em; white-space: nowrap;
}
.spec-table th:first-child { border-radius: 0; }
.spec-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-700); }
.spec-table tr:nth-child(even) td { background: #fafdfb; }
.spec-table tr:hover td { background: var(--green-50); }
.spec-table .code { font-weight: 700; color: var(--green-900); }
.spec-table .dur { white-space: nowrap; font-weight: 600; }
.spec-note { margin-top: 16px; font-size: .85rem; color: var(--ink-500); }

/* ---------- Video ---------- */
.video-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 16/9; background: var(--green-900); max-width: 900px; margin: 0 auto;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
}
.contact-list b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin-bottom: 2px; }
.contact-list a, .contact-list span.val { color: var(--green-900); font-weight: 700; text-decoration: none; font-size: .98rem; }
.contact-list a:hover { color: var(--green-600); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 420px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-900), var(--green-700)); border-radius: 24px; padding: 52px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; max-width: 560px; line-height: 1.25; }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 8px; font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.8); padding: 56px 0 28px; margin-top: 84px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer p, .footer a, .footer li { font-size: .88rem; color: rgba(255,255,255,.72); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-500); }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.footer__brand b { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .8rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .about, .contacts, .admission { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__media { order: -1; }
  .hero__badge { left: 12px; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 20px 22px 26px; gap: 16px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow-md); margin-left: 0;
  }
  .nav.is-open { transform: none; }
  .burger { display: block; }
  .lang { margin-left: 0; }
  .section { padding: 60px 0; }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
}
