/* ==========================================================================
   Conflict Management Mastery Academy – main stylesheet
   ========================================================================== */

/* Fonts (self-hosted, variable) ------------------------------------------- */
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/nunito-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design tokens (brand colours taken from the logo) ----------------------- */
:root {
    --blue: #0075bb;
    --blue-dark: #005a91;
    --blue-deep: #0d2f4a;
    --teal: #34b0ad;
    --teal-text: #1d7d7a;     /* teal darkened for readable text */
    --mint: #e3eeeb;
    --mint-soft: #f3f8f7;
    --ink: #1c2b3a;
    --muted: #536373;
    --line: #d3e1de;
    --white: #ffffff;
    --error: #b42318;
    --success: #1d7d4f;

    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Nunito", var(--font-body);

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgb(13 47 74 / 6%), 0 8px 24px rgb(13 47 74 / 8%);
    --shadow-lg: 0 2px 4px rgb(13 47 74 / 6%), 0 18px 48px rgb(13 47 74 / 14%);

    --container: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --topbar-h: 64px;
    --section-y: clamp(64px, 9vw, 112px);
}

/* Base -------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.2;
    color: var(--blue-deep);
    margin: 0 0 .6em;
    letter-spacing: -.01em;
    text-wrap: balance;
}
h1, h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 750; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 100;
    padding: .6em 1em;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.lead {
    font-size: 1.3rem;
    line-height: 1.55;
    color: var(--blue-deep);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .75em 1.5em;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgb(0 117 187 / 25%); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--mint); color: var(--blue-dark); }
.btn--small { padding: .5em 1.15em; font-size: .95rem; }
.btn--block { width: 100%; }

/* Top bar & navigation ---------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 92%);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.topbar.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 20px rgb(13 47 74 / 6%);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: var(--topbar-h);
}

/* Compact brand shows in the bar only once the large logo scrolls away */
.topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .06em;
    color: var(--blue);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.topbar__brand img { width: 34px; height: auto; }
.topbar.is-scrolled .topbar__brand { opacity: 1; visibility: visible; transform: none; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
    position: relative;
    display: block;
    padding: .5em .9em;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .98rem;
    color: var(--blue-deep);
    text-decoration: none;
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--blue); background: var(--mint-soft); }
.nav__link.is-active { color: var(--blue); }
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: .9em; right: .9em; bottom: .15em;
    height: 3px;
    border-radius: 3px;
    background: var(--teal);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    padding: .35em .8em;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .85rem;
    color: var(--muted);
    text-decoration: none;
}
.lang-switch:hover { border-color: var(--teal); color: var(--blue); }
.lang-switch__item.is-active { color: var(--blue); }
.lang-switch__sep { opacity: .5; }

.topbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--mint-soft);
    color: var(--blue);
    cursor: pointer;
}
.topbar__toggle .icon { width: 24px; height: 24px; }

@media (max-width: 860px) {
    .topbar__toggle { display: inline-flex; }
    .topbar__brand { opacity: 1; visibility: visible; transform: none; }
    .nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px var(--gutter) 24px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 32px rgb(13 47 74 / 10%);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav__list { flex-direction: column; }
    .nav__link { padding: .8em 1em; font-size: 1.1rem; }
    .nav__link.is-active::after { display: none; }
    .nav__link.is-active { background: var(--mint-soft); }
    .lang-switch { align-self: flex-start; margin: 4px 0 0 1em; }
}

/* Masthead (large logo + tagline, as in the sketch) ----------------------- */
.masthead { padding: 8px 0 clamp(24px, 4vw, 40px); }
.masthead__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.masthead__logo img { width: clamp(220px, 30vw, 330px); }
.masthead__tagline {
    margin: 0 0 .4em;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem);
    color: var(--teal-text);
    text-align: right;
}
.masthead__tagline::before {
    content: "";
    display: inline-block;
    width: 40px; height: 3px;
    margin: 0 14px .3em 0;
    border-radius: 3px;
    background: var(--teal);
}
@media (max-width: 860px) {
    .masthead { padding-top: 20px; }
    .masthead__inner { justify-content: center; }
    .masthead__tagline { text-align: center; width: 100%; }
    .masthead__tagline::before { display: none; }
}

/* Sections ---------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--mint-soft); }
.section__head {
    max-width: 640px;
    margin: 0 auto clamp(32px, 5vw, 56px);
    text-align: center;
}
.section__head h2::after {
    content: "";
    display: block;
    width: 56px; height: 4px;
    margin: .45em auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}
.section__head p { color: var(--muted); margin: 0; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* About / Kdo jsme -------------------------------------------------------- */
.about { padding-top: 0; }
.about__panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: clamp(28px, 5vw, 64px);
    border-radius: calc(var(--radius) * 1.6);
    background:
        radial-gradient(120% 90% at 100% 0%, rgb(52 176 173 / 16%), transparent 60%),
        linear-gradient(160deg, var(--mint) 0%, var(--mint-soft) 100%);
}
.about__text p:not(.lead) { color: var(--muted); }
.about__text .btn { margin-top: .5em; }
.about__visual { margin: 0; text-align: center; }

/* Round photo with soft concentric rings ("calm waves") */
.about__photo {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1;
    margin: 0 auto;
}
.about__photo::before,
.about__photo::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.about__photo::before { inset: -14px; border: 2px solid rgb(52 176 173 / 55%); }
.about__photo::after { inset: -30px; border: 2px dashed rgb(0 117 187 / 25%); animation: spin 90s linear infinite; }
.about__photo img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
}
.about__claim {
    max-width: 380px;
    margin: 48px auto 0;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    color: var(--blue);
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
    .about__panel { grid-template-columns: 1fr; }
    .about__visual { order: -1; padding-top: 24px; }
    .about__photo { width: min(78%, 340px); }
    .about__claim { margin-top: 36px; }
}

/* Carousel (scroll-snap) -------------------------------------------------- */
.carousel { position: relative; }
.carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 24px) / 4);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 24px;
    margin: -8px -4px 0;
    scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; display: flex; }
.carousel__slide > * { flex: 1; }
.carousel--wide .carousel__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }

.carousel__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    cursor: pointer;
    transition: background-color .2s, color .2s, opacity .2s;
}
.carousel__btn:hover:not(:disabled) { background: var(--teal); color: var(--white); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn .icon { width: 22px; height: 22px; }
.carousel.is-static .carousel__controls { display: none; }

@media (max-width: 1080px) {
    .carousel__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
    .carousel--wide .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 780px) {
    .carousel__track,
    .carousel--wide .carousel__track { grid-auto-columns: calc((100% - 24px) / 1.6); }
}
@media (max-width: 520px) {
    .carousel__track,
    .carousel--wide .carousel__track { grid-auto-columns: 86%; gap: 16px; }
}

/* Services cards ---------------------------------------------------------- */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px 28px;
    border-top: 4px solid var(--teal);
    transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__num {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--teal);
    opacity: .9;
    margin-bottom: 18px;
}
.service-card__title { margin-bottom: .5em; }
.service-card__summary { color: var(--muted); font-size: 1.02rem; flex: 1; }
.service-card .btn { margin-top: 8px; }

/* Team -------------------------------------------------------------------- */
.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}
.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 8px 0;
}
.person__photo {
    width: min(180px, 70%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: 0 0 0 2px var(--teal), var(--shadow);
    margin-bottom: 22px;
}
.person__name { font-size: 1.2rem; margin-bottom: .25em; }
.person__position {
    color: var(--teal-text);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1em;
    min-height: 2.6em;
}
.person .btn { margin-top: auto; }

.partners-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: rgb(255 255 255 / 88%);
    box-shadow: var(--shadow-lg);
}
.partners-card__title { color: var(--white); }
.partners-card p { font-size: 1rem; }
.partners-card__preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: auto 0 20px;
}
.partners-card .btn { align-self: flex-start; }

.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 12px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-sm);
    background: var(--mint-soft);
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}
.logo-tile--small {
    min-height: 44px;
    font-size: .8rem;
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 30%);
    color: rgb(255 255 255 / 80%);
}
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 1000px) {
    .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .team__grid { grid-template-columns: 1fr; }
    .person__position { min-height: 0; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Members strip ----------------------------------------------------------- */
.members {
    padding-block: clamp(36px, 5vw, 56px);
    background: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue) 70%, var(--teal) 130%);
    color: rgb(255 255 255 / 85%);
}
.members__inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
}
.members__text { flex: 1; }
.members__text h2 { color: var(--white); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .2em; }
.members__text p { margin: 0; }
.members__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgb(255 255 255 / 12%);
    color: var(--white);
    flex: none;
}
.members__icon .icon { width: 28px; height: 28px; }
.members__icon--dialog { background: var(--mint); color: var(--blue); margin-bottom: 16px; }
@media (max-width: 680px) {
    .members__inner { flex-direction: column; text-align: center; }
}

/* References -------------------------------------------------------------- */
.quote-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 32px 30px 28px;
}
.quote-card__mark { width: 40px; height: 30px; fill: var(--teal); opacity: .8; margin-bottom: 16px; }
.quote-card blockquote { margin: 0 0 24px; flex: 1; }
.quote-card blockquote p { margin: 0; font-size: 1.12rem; color: var(--ink); }
.quote-card figcaption {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
}
.quote-card figcaption strong { font-family: var(--font-head); color: var(--blue-deep); }
.quote-card figcaption span { color: var(--muted); }

/* Contact ----------------------------------------------------------------- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.contact__info p { color: var(--muted); }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon {
    width: 44px; height: 44px;
    padding: 11px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--blue);
}
.contact-list a { color: var(--blue-deep); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.contact-list--small { gap: 10px; margin-top: 0; }
.contact-list--small .icon { width: 34px; height: 34px; padding: 8px; }

@media (max-width: 860px) {
    .contact__grid { grid-template-columns: 1fr; }
}

/* Forms ------------------------------------------------------------------- */
.contact-form { padding: clamp(24px, 4vw, 40px); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .98rem; color: var(--blue-deep); }
.field input,
.field textarea {
    width: 100%;
    padding: .7em .9em;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgb(52 176 173 / 20%);
}
.field input:disabled { background: var(--mint-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; color: var(--error); font-size: .92rem; }

.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--blue); }
.field--check label { font-weight: 400; color: var(--muted); }
.field--check .field__error { grid-column: 2; }

.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.form__status--success { background: #e5f4ec; color: var(--success); }
.form__status--error { background: #fdecea; color: var(--error); }
.contact-form .btn { justify-self: start; }

.notice {
    padding: 12px 16px;
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--mint-soft);
    color: var(--muted);
    font-size: 1rem;
}

/* Modal dialogs ----------------------------------------------------------- */
.modal {
    width: min(640px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: calc(var(--radius) * 1.2);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    overflow: auto;
}
.modal--wide { width: min(860px, calc(100% - 32px)); }
.modal--narrow { width: min(460px, calc(100% - 32px)); }
.modal::backdrop {
    background: rgb(13 47 74 / 55%);
    backdrop-filter: blur(3px);
}
.modal[open] { animation: modal-in .25s ease-out; }
.modal[open]::backdrop { animation: fade-in .25s ease-out; }
.modal__body { position: relative; padding: clamp(28px, 5vw, 48px); }
.modal__body h3 { font-size: 1.6rem; padding-right: 40px; }
.modal__body p { color: var(--muted); }
.modal__body .btn { margin-top: 8px; }
.modal__kicker {
    display: block;
    margin-bottom: .6em;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--teal-text);
}
.modal__close {
    position: absolute;
    top: 16px; right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--mint-soft);
    color: var(--blue-deep);
    cursor: pointer;
    transition: background-color .2s;
}
.modal__close:hover { background: var(--mint); }
.modal__close .icon { width: 22px; height: 22px; }
.modal__body--person { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.modal__photo { border-radius: 50%; box-shadow: 0 0 0 2px var(--teal); }
@media (max-width: 560px) {
    .modal__body--person { grid-template-columns: 1fr; }
    .modal__photo { width: 120px; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
body:has(.modal[open]) { overflow: hidden; }

/* Footer ------------------------------------------------------------------ */
.footer {
    margin-top: 0;
    background: var(--mint);
    color: var(--ink);
    font-size: 1rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr .8fr;
    gap: 40px;
    padding-block: clamp(48px, 6vw, 72px);
}
.footer__brand img { width: 190px; margin-bottom: 12px; }
.footer__brand p { color: var(--teal-text); font-weight: 600; }
.footer__title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--blue);
    margin-bottom: 1em;
}
.footer address { line-height: 1.7; color: var(--muted); }
.footer__nav { display: grid; gap: 6px; }
.footer__nav a { color: var(--ink); text-decoration: none; }
.footer__nav a:hover { color: var(--blue); text-decoration: underline; }
.footer .contact-list .icon { background: var(--white); }
.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-block: 20px;
    font-size: .92rem;
    color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 960px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* 404 --------------------------------------------------------------------- */
.not-found { text-align: center; min-height: 40vh; }

/* Reveal on scroll -------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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