@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --ink: #17233c;
  --muted: #667085;
  --blue: #7495be;
  --blue-dark: #4d6f99;
  --aqua: #61a7c4;
  --paper: #f5f7fa;
  --white: #fff;
  --line: rgba(23, 35, 60, .12);
  --shadow: 0 24px 60px rgba(31, 52, 83, .14);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Poppins, Arial, sans-serif; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: white; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: rgba(255,255,255,.94); box-shadow: 0 2px 14px rgba(25,38,63,.07); backdrop-filter: blur(14px); }
.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 130px; max-height: 58px; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 34px; }
.menu a { position: relative; font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--blue); transition: right .25s ease; }
.menu a:hover::after, .menu a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px; background: var(--ink); transition: transform .2s, opacity .2s; }

.hero { min-height: 740px; padding: 190px 0 120px; display: grid; align-items: center; position: relative; overflow: hidden; color: white; background: linear-gradient(125deg, var(--blue-dark), var(--aqua)); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,34,62,.34), transparent 70%); }
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { color: white; opacity: .8; }
.hero h1 { max-width: 960px; margin: 12px 0 25px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 1.01; letter-spacing: -.055em; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.75); }
.lead { max-width: 700px; margin-bottom: 38px; font-size: clamp(1.05rem, 2vw, 1.35rem); opacity: .9; }
.eyebrow { margin: 0 0 14px; color: var(--blue-dark); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 15px 22px; color: var(--ink); background: white; border: 1px solid white; border-radius: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(21,35,61,.17); }
.hero-shape { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.hero-shape-one { width: 580px; height: 580px; top: 90px; right: -100px; }
.hero-shape-two { width: 280px; height: 280px; bottom: -100px; right: 28%; background: rgba(255,255,255,.05); }

.programs { background: var(--paper); }
.section-heading { max-width: 690px; margin: 0 0 58px; }
.section-heading h2, .about-copy h2, .contact h2 { margin: 0 0 20px; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading > p:last-child, .about-copy > p { color: var(--muted); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 275px; gap: 18px; }
.program-card { position: relative; overflow: hidden; min-height: 260px; color: white; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(33,55,87,.08); text-decoration: none; }
.program-card:first-child, .program-card:last-child { grid-column: span 2; }
.program-card:nth-child(4) { grid-column: span 2; }
.program-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.card-zth img { object-position: center 18%; }
.card-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,27,46,.06), rgba(17,27,46,.8)); transition: background .3s; }
.card-copy { position: absolute; inset: auto 25px 23px; display: grid; gap: 3px; }
.card-copy strong { font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.2; }
.card-copy small { max-width: 450px; opacity: .82; }
.card-number { position: absolute; right: 0; bottom: 0; color: rgba(255,255,255,.42); font-size: 3.5rem; line-height: 1; font-weight: 700; }
.program-card:hover img { transform: scale(1.07); }
.program-card:hover .card-tint { background: linear-gradient(180deg, rgba(36,65,101,.05), rgba(47,83,125,.9)); }

.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-photo { position: relative; }
.about-photo > img { width: 100%; min-height: 610px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-stat { position: absolute; right: -32px; bottom: 45px; width: 190px; padding: 27px; color: white; background: var(--blue-dark); box-shadow: var(--shadow); }
.about-stat strong, .about-stat span { display: block; }
.about-stat strong { font-size: 2.5rem; line-height: 1; }
.about-stat span { margin-top: 9px; font-size: .75rem; }
.values { margin: 36px 0 0; padding: 0; list-style: none; }
.values li { display: grid; grid-template-columns: 50px 1fr; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); }
.values li > span { color: var(--blue); font-size: .76rem; font-weight: 700; }
.values strong, .values small { display: block; }
.values small { color: var(--muted); }

.program-detail { padding-top: 20px; background: var(--white); }
.details-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.detail { grid-column: span 2; padding: 34px; background: var(--paper); border-top: 3px solid var(--blue); }
.detail:nth-child(4), .detail:nth-child(5) { grid-column: span 3; }
.detail > span { color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.detail h3 { margin: 12px 0; font-size: 1.35rem; }
.detail p { margin: 0; color: var(--muted); font-size: .9rem; }
.detail a { display: inline-block; margin-top: 18px; color: var(--blue-dark); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

/* Aloldalak */
.subpage .site-header { position: fixed; }
.subhero { min-height: 620px; padding: 185px 0 100px; display: flex; align-items: end; position: relative; overflow: hidden; color: white; background: #233956; }
.subhero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(15,26,45,.9) 0%, rgba(15,26,45,.48) 58%, rgba(15,26,45,.25)), var(--hero-image); background-position: center; background-size: cover; }
.subhero::after { content: ""; position: absolute; right: -130px; bottom: -230px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.subhero-content { position: relative; z-index: 2; max-width: 850px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 25px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumbs span { opacity: .45; }
.subhero h1 { margin: 0 0 22px; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -.055em; }
.subhero .lead { margin: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 85px; align-items: start; }
.prose h2 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.12; letter-spacing: -.04em; }
.prose h3 { margin: 42px 0 14px; font-size: 1.45rem; line-height: 1.25; }
.prose p { color: #4f5d72; }
.prose .intro { color: var(--ink); font-size: 1.25rem; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.25rem; color: #4f5d72; }
.prose li { margin: 9px 0; padding-left: 5px; }
.side-card { position: sticky; top: 112px; padding: 32px; background: var(--paper); border-top: 4px solid var(--blue); }
.side-card h3 { margin: 0 0 15px; font-size: 1.3rem; }
.side-card p { color: var(--muted); font-size: .9rem; }
.side-card .button { margin-top: 12px; color: white; background: var(--blue-dark); border-color: var(--blue-dark); }
.info-strip { padding: 38px 0; color: white; background: var(--blue-dark); }
.info-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info-strip small, .info-strip strong { display: block; }
.info-strip small { margin-bottom: 5px; opacity: .65; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.info-strip strong { font-size: 1.05rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.feature { padding: 27px; background: var(--paper); border-left: 3px solid var(--blue); }
.feature span { color: var(--blue); font-size: .72rem; font-weight: 700; }
.feature h3 { margin: 9px 0 7px; font-size: 1.1rem; }
.feature p { margin: 0; font-size: .86rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.topic { min-height: 190px; padding: 27px; background: var(--paper); }
.topic h3 { margin: 0 0 10px; font-size: 1.1rem; }
.topic p { margin: 0; font-size: .84rem; }
.timeline { margin: 34px 0 0; padding: 0; list-style: none; counter-reset: timeline; }
.timeline li { position: relative; margin: 0; padding: 0 0 30px 55px; border-left: 1px solid var(--line); }
.timeline li::before { counter-increment: timeline; content: counter(timeline, decimal-leading-zero); position: absolute; left: -18px; top: 0; width: 36px; height: 36px; display: grid; place-items: center; color: white; background: var(--blue-dark); border-radius: 50%; font-size: .67rem; font-weight: 700; }
.timeline strong { display: block; color: var(--ink); }
.timeline span { color: var(--muted); font-size: .9rem; }
.page-cta { padding: 85px 0; text-align: center; color: white; background: linear-gradient(125deg, var(--blue-dark), var(--aqua)); }
.page-cta h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.page-cta p { max-width: 650px; margin: 0 auto 28px; opacity: .8; }

.contact { color: white; background: linear-gradient(125deg, #263d5e, var(--blue-dark)); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.contact-copy > p:not(.eyebrow) { max-width: 640px; color: rgba(255,255,255,.72); }
.contact .eyebrow { color: #bcd5f1; }
.button-light { margin-top: 22px; }
.contact-data { display: grid; gap: 24px; font-style: normal; }
.contact-data div { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.contact-data small { display: block; margin-bottom: 5px; opacity: .6; text-transform: uppercase; letter-spacing: .12em; }
.contact-data a { font-size: 1.2rem; text-decoration: none; }
.contact-data p { margin: 0; }

.footer { padding: 54px 0 20px; color: white; background: #111b2d; }
.footer-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; }
.footer img { width: 120px; }
.footer p { line-height: 1.35; }
.footer p small, .copyright { color: rgba(255,255,255,.5); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .8rem; text-decoration: none; }
.copyright { margin-top: 35px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .7rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .section { padding: 82px 0; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu { position: absolute; top: 82px; left: 0; right: 0; display: grid; gap: 0; padding: 10px 24px 22px; background: white; box-shadow: 0 14px 20px rgba(20,35,60,.1); transform: scaleY(0); transform-origin: top; opacity: 0; pointer-events: none; transition: .2s ease; }
  .menu.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .menu a { padding: 13px 0; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card:first-child, .program-card:last-child, .program-card:nth-child(4) { grid-column: span 1; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .content-grid { grid-template-columns: 1fr; gap: 55px; }
  .side-card { position: static; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .about-photo > img { min-height: 480px; }
  .about-stat { right: 20px; }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .detail, .detail:nth-child(4), .detail:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 30px, 1180px); }
  .nav { height: 72px; }
  .brand img { width: 108px; }
  .menu { top: 72px; }
  .hero { min-height: 660px; padding-top: 155px; }
  .hero h1 { font-size: 3.1rem; }
  .program-grid, .details-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .subhero { min-height: 560px; padding-top: 145px; }
  .subhero h1 { font-size: 3.1rem; }
  .feature-list, .topic-grid, .info-strip-grid { grid-template-columns: 1fr; }
  .program-card { height: 330px; }
  .about-grid { gap: 45px; }
  .about-photo > img { min-height: 400px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
