:root {
  --navy: #123B5D;
  --petrol: #008C83;
  --green: #4CAF50;
  --green-dark: #2E7D32;
  --brown: #8B5E3C;
  --brown-dark: #74492B;
  --light: #F8F9F7;
  --beige: #E0DED9;
  --text: #1E2B36;
  --muted: #5B6670;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 59, 93, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: Montserrat, system-ui, sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--light); }
img { max-width: 100%; height: auto; }
a { color: var(--petrol); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent; font: 600 .9rem/1 Montserrat, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-brown { background: var(--brown); color: #fff; }
.btn-brown:hover { background: var(--brown-dark); }
.btn-outline { border-color: var(--green-dark); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { color: var(--navy); background: transparent; padding-inline: .4em; }
.btn-white { background: #fff; color: var(--brown-dark); }
.btn-sm { padding: .7em 1.2em; font-size: .8rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--beige); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: .2s; }

.flash { padding: 14px 0; font-weight: 600; }
.flash-ok { background: #E3F2E4; color: var(--green-dark); }
.flash-err { background: #FBE9E7; color: #A33A1E; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 500px at 85% 20%, rgba(76, 175, 80, .16), transparent 60%), linear-gradient(160deg, #fff 0%, var(--light) 55%, #EEF3EC 100%); }
.hero-bg { position: absolute; inset: 0; background: right center/cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 249, 247, .94) 0%, rgba(248, 249, 247, .8) 42%, rgba(248, 249, 247, 0) 68%); }
.hero-img .hero-inner { position: relative; }
.hero-img .hero-inner { min-height: 520px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; padding-block: clamp(56px, 9vw, 110px); }
.hero-mark { justify-self: center; width: min(360px, 100%); opacity: .95; filter: drop-shadow(0 20px 40px rgba(18, 59, 93, .12)); }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--green-dark); margin-bottom: 1em; }
.eyebrow span { color: var(--brown); margin-inline: .5em; }
.lead { font-size: 1.12rem; color: #33424F; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }


/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: #fff; }
.section-head { margin-bottom: 36px; }
.empty, .card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }

/* Trainings */
.training-list { display: grid; gap: 22px; }
.training-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-left: 5px solid var(--green); }
.date-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; padding: 14px 0; border-radius: 12px; background: var(--navy); color: #fff; line-height: 1.1; }
.date-badge .d { font-size: 2.2rem; font-weight: 800; }
.date-badge .m { text-transform: uppercase; font-weight: 600; letter-spacing: .1em; }
.date-badge .y { font-size: .8rem; opacity: .7; }
.training-body h3 { font-size: 1.3rem; }
.training-body h3 a { color: var(--navy); text-decoration: none; }
.training-body h3 a:hover { color: var(--green-dark); }
.training-body p { color: var(--muted); margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 10px; font-weight: 600; font-size: .9rem; color: var(--petrol); }
.meta li + li::before { content: "•"; margin-right: 18px; color: var(--beige); }
.training-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 220px; text-align: center; }
.price { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: 0; }
.price small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }

.note-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 26px 30px; border-radius: var(--radius); background: #EEF3EC; border-left: 4px solid var(--green); }
.note-box p { margin: 0; }
.note-green { display: block; }
.note-green p:last-child { margin: 0; }

/* Upcoming */
.upcoming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.upcoming-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--light); border: 1px solid var(--beige); transition: border-color .2s, transform .2s; }
.upcoming-card:hover { border-color: var(--green); transform: translateY(-2px); }
.upcoming-card .num { font-size: .85rem; font-weight: 700; color: var(--brown); letter-spacing: .1em; margin-bottom: 10px; }
.upcoming-card p { color: var(--muted); font-size: .93rem; }
.upcoming-card .link { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--green-dark); text-decoration: none; }

/* Newsletter */
.newsletter { background: linear-gradient(120deg, var(--brown) 0%, var(--brown-dark) 100%); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 48px; }
.newsletter h2 { color: #fff; }
.newsletter p { margin: 0; opacity: .9; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter-form input[type=email] { flex: 1 1 220px; padding: .9em 1.2em; border-radius: 999px; border: 0; font: inherit; }
.newsletter-form .check { flex-basis: 100%; color: #fff; }
.newsletter-form .check a { color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact-list a { font-size: 1.2rem; font-weight: 600; color: var(--navy); text-decoration: none; }
blockquote { margin: 0; padding: 22px 0 0 0; border-top: 3px solid var(--green); width: fit-content; max-width: 30ch; font-size: 1.2rem; font-weight: 600; color: var(--navy); }

/* Forms */
.form { display: grid; gap: 16px; }
.form h3 { font-size: 1.35rem; margin: 0; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; padding: .75em .9em; border: 1px solid #CFD4D8; border-radius: 10px; font: 400 1rem Montserrat, sans-serif; color: var(--text); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: .3em; accent-color: var(--green-dark); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-zip { grid-template-columns: 1fr 2fr; }
.form-sub { margin: 8px 0 -4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--green-dark); }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice label { flex-direction: row; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--beige); border-radius: 10px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--green); background: #EEF3EC; }
.total { margin: 0; padding: 14px; border-radius: 10px; background: var(--light); font-size: 1.05rem; }

/* Training detail */
.t-hero { background: linear-gradient(135deg, var(--navy) 0%, #0E2E49 60%, #0d4f5b 100%); color: #fff; padding-block: 48px 56px; }
.t-hero h1 { color: #fff; max-width: 26ch; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.back { display: inline-block; margin-bottom: 20px; color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .9rem; }
.t-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 24px 0 30px; }
.t-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; opacity: .65; }
.t-facts dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.t-facts small { opacity: .7; font-weight: 400; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.t-layout { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.t-content h2 { font-size: 1.4rem; margin-top: 1.8em; }
.t-side { position: sticky; top: 100px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: #E3F2E4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.lecturers { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px; margin: 20px 0 10px; }
.lecturers figure { margin: 0; text-align: center; }
.lecturers img, .avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; margin: 0 auto 12px; border: 4px solid #fff; box-shadow: var(--shadow); }
.avatar { background: var(--beige); color: var(--navy); font-size: 2.6rem; font-weight: 700; }
.lecturers figcaption b { display: block; color: var(--navy); }
.lecturers figcaption span { font-size: .85rem; color: var(--muted); }
.t-content .note-box { margin-block: 36px 24px; }

.prose h1 { margin-bottom: 1em; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #A5D6A7; }
.site-footer .brand img { height: auto; width: min(300px, 100%); }
.footer-bottom { margin-top: 40px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

/* Responsive */
@media (max-width: 1000px) {
  .t-layout, .contact-grid { grid-template-columns: 1fr; }
  .t-side { position: static; }
  .upcoming-grid { grid-template-columns: 1fr 1fr; }
  .training-card { grid-template-columns: auto 1fr; }
  .training-cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; }
  .training-cta .price { margin-right: auto; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--beige); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--beige); }
  .nav .btn { margin-top: 14px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero-bg { background-position: 70% center; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(248, 249, 247, .9) 0%, rgba(248, 249, 247, .82) 100%); }
  .hero-img .hero-inner { min-height: 0; }
  .upcoming-grid, .newsletter-inner, .footer-grid, .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 label:first-child { grid-column: 1 / -1; }
  .training-card { grid-template-columns: 1fr; padding: 22px; }
  .date-badge { flex-direction: row; gap: 8px; width: auto; padding: 8px 16px; justify-self: start; }
  .date-badge .d { font-size: 1.3rem; }
  .note-box { flex-direction: column; align-items: flex-start; }
  .training-cta .btn { flex: 1 1 100%; }
}
