:root {
  --rn-blue: #0d6efd;
  --rn-green: #20c997;
  --rn-yellow: #ffd166;
  --rn-ink: #15243a;
  --rn-muted: #627086;
  --rn-paper: #f6f9fc;
  --rn-white: #fff;
  --rn-shadow: 0 18px 45px rgba(20, 45, 80, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--rn-ink); background: var(--rn-white); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.65; }
img { max-width: 100%; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; color: var(--rn-white); background: linear-gradient(100deg, var(--rn-blue), var(--rn-green)); box-shadow: 0 5px 18px rgba(10, 35, 65, .13); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 1rem; letter-spacing: .01em; }
.brand-copy span { margin-top: 4px; font-size: .72rem; opacity: .88; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--rn-white); font-size: .94rem; text-decoration: none; font-weight: 600; transition: color .2s ease; }
.header-link { color: white; text-decoration: none; font-weight: 700; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--rn-yellow); }
.nav-links .nav-cta { color: var(--rn-ink); background: var(--rn-yellow); padding: 10px 18px; border-radius: 999px; }
.nav-toggle { display: none; color: white; border: 1px solid rgba(255,255,255,.55); background: transparent; border-radius: 10px; padding: 8px 12px; font: inherit; }

.hero { min-height: 590px; display: flex; align-items: center; color: white; background: linear-gradient(90deg, rgba(11, 34, 57, .9) 0%, rgba(11, 34, 57, .68) 48%, rgba(11, 34, 57, .08) 100%), url("../img/hero.jpg") center/cover no-repeat; }
.hero-content { max-width: 670px; padding-block: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; color: #fff; background: rgba(32, 201, 151, .2); border: 1px solid rgba(255,255,255,.38); border-radius: 999px; font-size: .84rem; font-weight: 700; }
.hero h1 { max-width: 650px; margin: 20px 0 14px; font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.08; letter-spacing: -.035em; }
.hero p { max-width: 565px; margin: 0; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 21px; border: 0; border-radius: 999px; background: var(--rn-yellow); color: var(--rn-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.button-secondary { color: white; border: 1px solid rgba(255,255,255,.68); background: rgba(255,255,255,.1); }

.section { padding-block: 78px; }
.section-soft { background: var(--rn-paper); }
.section-heading { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-heading .kicker { color: var(--rn-blue); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 7px 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.65rem); line-height: 1.2; }
.section-heading p { margin: 0; color: var(--rn-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 25px; background: white; border: 1px solid #e8eef5; border-radius: 18px; box-shadow: var(--rn-shadow); }
.feature-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 15px; color: var(--rn-blue); background: #eaf2ff; border-radius: 14px; font-size: 1.25rem; font-weight: 800; }
.feature-card h3 { margin: 0 0 7px; font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--rn-muted); }
.admission-callout { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; color: white; background: linear-gradient(110deg, var(--rn-blue), var(--rn-green)); border-radius: 22px; box-shadow: var(--rn-shadow); }
.admission-callout h2 { margin: 0 0 7px; font-size: clamp(1.4rem, 3vw, 2rem); }
.admission-callout p { margin: 0; color: rgba(255,255,255,.9); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step-card { position: relative; padding: 25px; background: white; border-radius: 18px; border: 1px solid #e8eef5; }
.step-number { display: grid; width: 38px; height: 38px; margin-bottom: 15px; place-items: center; color: var(--rn-ink); background: var(--rn-yellow); border-radius: 50%; font-weight: 800; }
.step-card h3 { margin: 0 0 7px; }
.step-card p { margin: 0; color: var(--rn-muted); }
.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.gallery-photo { min-height: 320px; overflow: hidden; border-radius: 22px; box-shadow: var(--rn-shadow); }
.gallery-photo img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.gallery-copy h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
.gallery-copy p { color: var(--rn-muted); }
.gallery-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.gallery-tags span { padding: 7px 12px; color: #15644f; background: #e7f8f2; border-radius: 999px; font-size: .86rem; font-weight: 700; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border: 1px solid #e8eef5; border-radius: 18px; background: white; }
.contact-strip p { margin: 3px 0 0; color: var(--rn-muted); }
.site-footer { padding: 28px 0; color: rgba(255,255,255,.86); background: #102d4b; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-row p { margin: 0; }
.footer-row a { color: var(--rn-yellow); text-decoration: none; }

.form-page { min-height: 100vh; padding: 42px 0 64px; background: var(--rn-paper); }
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: start; }
.form-intro, .registration-form { background: white; border: 1px solid #e7edf4; border-radius: 20px; box-shadow: var(--rn-shadow); }
.form-intro { overflow: hidden; }
.form-intro img { display: block; width: 100%; height: 230px; object-fit: cover; }
.form-intro-copy { padding: 23px; }
.form-intro-copy h1 { margin: 0 0 9px; font-size: 1.8rem; line-height: 1.2; }
.form-intro-copy p { color: var(--rn-muted); }
.registration-form { padding: clamp(22px, 4vw, 34px); }
.registration-form h2 { margin: 0 0 6px; font-size: 1.45rem; }
.form-lead { margin: 0 0 22px; color: var(--rn-muted); }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; }
.form-group input, .form-group select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfd9e5; border-radius: 10px; background: white; color: var(--rn-ink); font: inherit; }
.form-group input:focus, .form-group select:focus { border-color: var(--rn-blue); outline: 3px solid rgba(13,110,253,.14); }
.form-help { display: block; margin-top: 5px; color: var(--rn-muted); font-size: .86rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; color: var(--rn-muted); font-size: .92rem; }
.consent input { margin-top: 5px; }
.form-submit { width: 100%; }
.form-back { display: inline-block; margin-bottom: 18px; color: var(--rn-blue); font-weight: 700; text-decoration: none; }
.notice { padding: 14px 16px; border-radius: 12px; color: #1d4b3e; background: #e7f8f2; }
.form-error { margin: 15px auto; padding: 14px 16px; border-radius: 12px; color: #842029; background: #f8d7da; }
.receipt { max-width: 720px; margin: 40px auto; padding: 34px; background: white; border: 1px solid #e7edf4; border-radius: 20px; box-shadow: var(--rn-shadow); }
.receipt-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid #e7edf4; }
.receipt-head img { width: 62px; height: 62px; object-fit: contain; }
.receipt-head h1 { margin: 0; font-size: 1.55rem; }
.receipt dl { display: grid; grid-template-columns: 150px 1fr; gap: 11px 20px; margin: 26px 0; }
.receipt dt { color: var(--rn-muted); }
.receipt dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.no-print { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .container { width: min(100% - 30px, 580px); }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 43px; height: 43px; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy span { font-size: .66rem; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 15px max(15px, calc((100vw - 580px)/2)); background: linear-gradient(100deg, var(--rn-blue), var(--rn-green)); box-shadow: 0 10px 18px rgba(10,35,65,.15); }
  .nav-links.is-open { display: grid; gap: 0; }
  .nav-links a { padding: 12px 0; }
  .nav-links .nav-cta { width: fit-content; padding: 9px 16px; margin-top: 5px; }
  .hero { min-height: 560px; background-position: 58% center; }
  .hero-content { padding-block: 70px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .section { padding-block: 58px; }
  .admission-callout, .contact-strip, .footer-row { align-items: flex-start; flex-direction: column; }
  .gallery-grid, .form-layout { grid-template-columns: 1fr; }
  .gallery-photo, .gallery-photo img { min-height: 250px; }
}

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: white; }
  .receipt { margin: 0 auto; border: 0; box-shadow: none; }
}
