:root {
    --ink: #10251c;
    --green-950: #062f20;
    --green-800: #0b5035;
    --green-700: #116b46;
    --green-100: #e8f3ed;
    --gold: #d6a84f;
    --gold-soft: #f3e5c4;
    --cream: #f8f4e9;
    --paper: #fffdf8;
    --muted: #617068;
    --line: rgba(6, 47, 32, .12);
    --shadow: 0 24px 60px rgba(6, 47, 32, .12);
    --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { color: var(--green-700); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
h2 { margin-bottom: 14px; color: var(--green-950); font-size: clamp(2.25rem, 4.5vw, 4.3rem); }
.lead { color: var(--muted); font-size: 1.08rem; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.92); backdrop-filter: blur(18px); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 800; }
.brand img { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; box-shadow: 0 8px 22px rgba(6,47,32,.13); }
.brand small { display: block; margin-top: -3px; color: var(--gold); font-size: .69rem; letter-spacing: .18em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .91rem; font-weight: 700; }
.nav-links a:hover { color: var(--green-700); }
.nav-cta, .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 999px; background: var(--gold); color: var(--green-950); font-weight: 800; box-shadow: 0 12px 26px rgba(214,168,79,.24); cursor: pointer; }
.button.secondary { background: transparent; color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.42); }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--green-950); font-size: 1.3rem; }

.hero { position: relative; min-height: 720px; display: grid; align-items: end; overflow: hidden; background: var(--green-950); color: white; }
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .46; }
.hero-media::after { content: ""; background: linear-gradient(90deg, rgba(3,35,23,.96) 0%, rgba(3,35,23,.73) 48%, rgba(3,35,23,.15) 100%), linear-gradient(0deg, rgba(3,35,23,.82), transparent 45%); }
.hero-content { position: relative; z-index: 2; max-width: 850px; padding: 130px 0 88px; }
.hero .eyebrow { color: #f0cf8d; }
.hero h1 { max-width: 800px; margin: 18px 0 24px; }
.hero p { max-width: 660px; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 50px; color: rgba(255,255,255,.72); font-size: .86rem; font-weight: 700; }
.hero-note span::before { content: "✓"; margin-right: 8px; color: var(--gold); }

.facts { position: relative; z-index: 3; margin-top: -38px; }
.facts-grid { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.fact { padding: 30px; border-right: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact strong { display: block; color: var(--green-950); font-family: Georgia,serif; font-size: 2rem; }
.fact span { color: var(--muted); font-size: .85rem; }

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 12px 34px rgba(6,47,32,.07); transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card img { width: 100%; height: 230px; object-fit: cover; background: var(--green-100); }
.news-body { padding: 26px; }
.news-date { color: var(--green-700); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { margin: 10px 0; color: var(--green-950); font-size: 1.25rem; line-height: 1.35; }
.news-card p { color: var(--muted); font-size: .93rem; }
.text-link { color: var(--green-700); font-weight: 800; }
.news-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 38px; }
.news-pagination > :last-child { justify-self: end; }
.news-page-button { min-width: 150px; }
.news-page-button.secondary-page { border: 1px solid var(--line); background: var(--paper); color: var(--green-800); box-shadow: none; }
.news-page-status { color: var(--muted); font-size: .84rem; font-weight: 700; text-align: center; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; min-height: 530px; border-radius: 40px; object-fit: cover; box-shadow: var(--shadow); }
.about-badge { position: absolute; right: -20px; bottom: 32px; max-width: 220px; padding: 24px; border-radius: 24px; background: var(--gold); color: var(--green-950); font-weight: 800; box-shadow: var(--shadow); }
.check-list { display: grid; gap: 16px; margin-top: 26px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; }
.check-list li::before { content: "✓"; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: var(--green-100); color: var(--green-700); text-align: center; font-weight: 900; }

.programs { background: var(--green-950); color: white; }
.programs h2 { color: white; }
.programs .lead { color: rgba(255,255,255,.7); }
.program-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.program-card { min-height: 310px; padding: 28px 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 26px; background: rgba(255,255,255,.07); transition: transform .25s, background .25s; }
.program-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.program-code { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 32px; border-radius: 18px; background: var(--gold); color: var(--green-950); font-family: Georgia,serif; font-size: 1.35rem; font-weight: 900; }
.program-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.program-card p { color: rgba(255,255,255,.7); font-size: .9rem; }
.program-tag { display: inline-block; margin-top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #f3d89e; font-size: .72rem; font-weight: 800; }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.value-number { color: var(--gold); font-family: Georgia,serif; font-size: 2.6rem; font-weight: 900; }
.value-card h3 { margin: 12px 0 8px; color: var(--green-950); font-size: 1.3rem; }
.value-card p { margin: 0; color: var(--muted); }

.gallery { background: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 22px; background: var(--green-100); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 32px 18px 16px; background: linear-gradient(transparent,rgba(0,0,0,.72)); color: white; font-size: .82rem; }

.admission { padding: 74px 0; background: var(--gold); }
.admission-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.admission h2 { margin-bottom: 10px; font-size: clamp(2.1rem,4vw,3.7rem); }
.admission p { margin: 0; color: rgba(6,47,32,.74); }
.admission .button { background: var(--green-950); color: white; box-shadow: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-card h3 { color: var(--green-950); font-size: 1.3rem; }
.contact-card p { color: var(--muted); }
.contact-list { display: grid; gap: 16px; margin-top: 24px; }
.contact-item strong { display: block; color: var(--green-950); }

.site-footer { padding: 54px 0 26px; background: #041f15; color: rgba(255,255,255,.75); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 54px; }
.footer-brand { color: white; font-family: Georgia,serif; font-size: 1.7rem; }
.site-footer h3 { color: white; font-size: .95rem; }
.site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.admin-link { color: rgba(255,255,255,.44); }

.article { padding: 70px 0 100px; }
.article-shell { max-width: 850px; margin: auto; }
.article h1 { color: var(--green-950); font-size: clamp(2.5rem,5vw,4.8rem); }
.article-cover { width: 100%; max-height: 560px; margin: 34px 0; border-radius: 32px; object-fit: cover; box-shadow: var(--shadow); }
.article-content { color: #34463e; font-size: 1.06rem; }
.article-content p { margin: 0 0 1.45em; line-height: 1.85; }
.article-content p:last-child { margin-bottom: 0; }
.article-content br { display: block; content: ""; margin-top: .55em; }
.article-content ul, .article-content ol { margin: 0 0 1.45em; padding-left: 1.5em; }
.article-content li + li { margin-top: .45em; }
.article-content img { width: 100%; height: auto; margin: 26px 0; border-radius: 22px; box-shadow: 0 14px 36px rgba(6,47,32,.1); }
.article-content figure { margin: 30px 0; }
.article-content figcaption { margin-top: -16px; color: var(--muted); font-size: .82rem; text-align: center; }
.article-content h2, .article-content h3 { margin-top: 38px; color: var(--green-950); font-family: Georgia,serif; }
.article-content blockquote { margin: 30px 0; padding: 16px 24px; border-left: 4px solid var(--gold); background: var(--paper); }
.article-gallery { margin-top: 54px; padding-top: 38px; border-top: 1px solid var(--line); }
.article-gallery h2 { margin-bottom: 24px; font-size: clamp(1.8rem,3vw,2.6rem); }
.article-photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.article-photo-grid figure { overflow: hidden; margin: 0; border-radius: 22px; background: var(--green-100); }
.article-photo-grid img { width: 100%; height: 330px; object-fit: cover; transition: transform .3s; }
.article-photo-grid figure:hover img { transform: scale(1.025); }

.empty { grid-column: 1/-1; padding: 45px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

@media (max-width: 1050px) {
    .program-grid { grid-template-columns: repeat(3,1fr); }
    .news-grid { grid-template-columns: repeat(2,1fr); }
    .gallery-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 780px) {
    .section { padding: 72px 0; }
    .menu-button { display: block; }
    .nav-links { position: absolute; top: 78px; left: 20px; right: 20px; display: none; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
    .nav-links.open { display: grid; }
    .nav-cta { display: none; }
    .hero { min-height: 680px; }
    .facts-grid { grid-template-columns: repeat(2,1fr); }
    .fact:nth-child(2) { border-right: 0; }
    .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .about-grid, .contact-grid, .admission-grid, .footer-grid { grid-template-columns: 1fr; }
    .about-badge { right: 16px; }
    .program-grid, .values-grid { grid-template-columns: repeat(2,1fr); }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .admission .button { justify-self: start; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 28px,1180px); }
    .hero-content { padding-bottom: 70px; }
    .hero-note { display: grid; gap: 8px; }
    .news-grid, .program-grid, .values-grid { grid-template-columns: 1fr; }
    .news-card img { height: 210px; }
    .news-pagination { grid-template-columns: 1fr 1fr; }
    .news-page-status { grid-column: 1/-1; grid-row: 1; }
    .news-page-button { min-width: 0; padding-inline: 14px; }
    .gallery-grid { grid-auto-rows: 170px; }
    .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
    .article-photo-grid { grid-template-columns: 1fr; }
    .article-photo-grid img { height: 250px; }
    .footer-bottom { flex-direction: column; }
}
