@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400.woff2?v=41cfc0') format('woff2');
}
@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600.woff2?v=41cfc0') format('woff2');
}
@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700.woff2?v=41cfc0') format('woff2');
}
@font-face {
    font-family: Sintony;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/sintony-400.woff2?v=41cfc0') format('woff2');
}
@font-face {
    font-family: Sintony;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/sintony-700.woff2?v=41cfc0') format('woff2');
}

:root {
    color-scheme: light;
    --accent: #cc027e;
    --accent-mid: #b60170;
    --accent-dark: #a00062;
    --ink: #333;
    --muted: #514a53;
    --line: #e7dce3;
    --soft: #fff6fa;
    --scrollbar-thumb: #027fcc;
    --scrollbar-thumb-hover: #02649f;
    --scrollbar-track: #f1f7fb;
    font-family: Poppins, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--scrollbar-track); }
html::-webkit-scrollbar-thumb { border: 2px solid var(--scrollbar-track); border-radius: 6px; background: var(--scrollbar-thumb); }
html::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; color: var(--ink); background: #fff; line-height: 1.65; }
main { flex: 1; }
a, button { transition: color 160ms ease, background-color 160ms ease; }
a { color: var(--accent-mid); text-underline-offset: .18em; }
a:hover { color: var(--scrollbar-thumb-hover); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.container { width: min(100% - 40px, 1100px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px 16px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 10px; color: #fff; }

.site-header { border-top: 15px solid var(--accent); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 198px; padding-block: 18px; }
.brand { color: var(--ink); cursor: default; -webkit-user-select: none; user-select: none; }
.brand-copy { display: grid; line-height: 1.3; }
.brand-title { font-family: Sintony, Arial, sans-serif; font-size: 36px; line-height: 1.45; }
.brand-title::after { display: block; width: 114px; height: 3px; margin-top: 8px; background: currentColor; content: ''; }
.brand-copy small { margin-top: 8px; color: var(--muted); font-size: 14px; font-style: italic; }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px 25px; margin: 0; padding: 0; list-style: none; -webkit-user-select: none; user-select: none; }
.nav-list .nav-item { position: relative; display: block; padding: 12px 0; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; text-transform: uppercase; transition: color 160ms ease; }
.nav-list .nav-item::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; background: currentColor; content: ''; transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.nav-list a:hover, .nav-list a:focus-visible { color: var(--scrollbar-thumb-hover); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); }
.nav-list [aria-current="page"] { color: var(--accent-mid); cursor: default; }
.nav-list [aria-current="page"]::after { transform: scaleX(1); }

.home-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 390px; padding-block: 72px; background: var(--soft); }
.home-hero-image { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #fff6faf2, #fff6fa99 60%, #fff6fa00); content: ''; }
h1, h2, h3 { font-family: Sintony, Arial, sans-serif; }
h1, h2 { line-height: 1.2; }
.home-hero h1 { max-width: 780px; margin: 0 0 18px; font-size: clamp(38px, 5vw, 60px); }
.home-subtitle { margin: 0; font-size: clamp(22px, 3vw, 28px); }

.home-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 48px 80px; }
.home-preview { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.home-preview-image { display: block; flex-shrink: 0; width: 250px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; }
.home-preview-image img { display: block; width: 100%; height: 100%; object-fit: cover; clip-path: circle(34% at 50% 50%); transition: clip-path .4s ease; }
.home-preview h2 { margin: 20px 0; font-size: 24px; font-weight: 400; line-height: 1.3; }
.home-preview h2::after { display: block; width: 32px; height: 2px; margin: 10px auto 0; background: currentColor; content: ''; transition: transform .4s ease; }
.home-preview p { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.home-preview-more { display: inline-block; margin-top: auto; padding: 10px 28px; border-radius: 8px; background: var(--accent-dark); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color 160ms ease; }
.home-preview-more:hover { background: var(--scrollbar-thumb-hover); color: #fff; }
.home-preview-more:focus-visible { border-radius: 8px; }
.home-preview-image:focus-visible img { clip-path: circle(48% at 50% 50%); }
.home-preview:focus-within h2::after { transform: scaleX(2); }
@media (hover: hover) {
    .home-preview-image:hover img { clip-path: circle(48% at 50% 50%); }
    .home-preview:hover h2::after { transform: scaleX(2); }
}

.page-content { padding-block: 64px 96px; }
.page-content h1 { margin: 0 0 38px; padding-bottom: 18px; border-bottom: 3px solid var(--accent); font-size: clamp(36px, 5vw, 50px); }
.prose { max-width: 780px; font-size: 18px; }
.prose h2 { margin: 42px 0 16px; font-size: 28px; }
.marika-content h2 { color: var(--accent-mid); }
.prose p { margin: 0 0 20px; }
.prose .paragraph-lead { color: var(--accent-mid); font-weight: 700; }
.prose ul { margin: 0 0 24px; padding-left: 1.5em; }
.prose li { padding-left: .2em; margin-block: 6px; }
.prose a { overflow-wrap: anywhere; }
.prose address { margin: 0 0 25px; font-style: normal; }
.marika-portrait { float: right; width: 240px; max-width: 40%; height: auto; margin: 0 0 24px 32px; }
.training-year { margin-top: 28px; }
.training-year h3 { margin: 0 0 12px; color: var(--accent-dark); font-size: 22px; }
.prose .training-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.prose .training-list li { margin: 0; padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: 4px; background: var(--soft); overflow-wrap: anywhere; }
.training-date { display: block; margin-bottom: 4px; color: var(--accent-dark); font-size: 15px; font-weight: 600; }
.contact-content h2 { margin-top: 26px; color: var(--accent-mid); font-size: 22px; }
.contact-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.contact-columns > .contact-content { min-width: 0; }
.contact-columns h2:first-child { margin-top: 0; }
.contact-form { display: grid; gap: 20px; max-width: 600px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.contact-form input:not([type="hidden"]), .contact-form textarea { display: block; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 4px; color: var(--ink); background: #fff; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border: 2px solid #d71920; }
.contact-form .contact-error { display: block; margin-top: 6px; color: #d71920; font-size: .875em; }
.contact-form button { justify-self: start; min-height: 44px; padding: 10px 24px; border: 0; border-radius: 4px; background: var(--accent-mid); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.contact-form button:hover { background: var(--scrollbar-thumb-hover); }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.contact-form [aria-invalid="true"]:focus-visible { outline-color: #d71920; }
.contact-form .contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-notice { padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--soft); }
.contact-success { border-left-color: #15803d; background: #f0fdf4; color: #166534; }
.contact-notice p:last-child, .contact-notice ul:last-child { margin-bottom: 0; }
.contact-notifications { position: fixed; top: 20px; left: 50%; z-index: 1000; width: min(480px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.contact-toast { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; border: 1px solid #fecaca; border-left: 4px solid #d71920; border-radius: 6px; background: #fff1f2; color: #b91c1c; box-shadow: 0 6px 24px #0002; pointer-events: auto; animation: contact-toast-in .2s ease-out; transition: opacity .2s, transform .2s; }
.contact-toast--success { border-color: #bbf7d0; border-left-color: #15803d; background: #f0fdf4; color: #166534; }
.contact-toast--leaving { opacity: 0; transform: translateY(-20px); }
.contact-toast-close { flex-shrink: 0; width: 28px; height: 28px; margin: -3px -5px 0 auto; padding: 0; border: 0; border-radius: 3px; color: inherit; background: transparent; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.contact-toast-close:hover { background: #0001; }
.contact-toast-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@keyframes contact-toast-in { from { opacity: 0; transform: translateY(calc(-100% - 24px)); } to { opacity: 1; transform: translateY(0); } }

.site-footer { padding-block: 38px 20px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-company { text-align: right; }
.footer-company .footer-links { margin-top: 12px; }
.site-footer p { margin: 5px 0 0; color: var(--muted); }
.footer-links { display: grid; gap: 5px; align-content: start; }
.footer-links a { overflow-wrap: anywhere; }
.footer-credit { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
    .home-previews { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 32px 60px; }
    .home-preview { width: min(100%, 400px); margin-inline: auto; }
    .contact-columns { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; min-height: 0; padding-block: 20px; }
    .brand-title { font-size: 30px; line-height: 1.3; }
    .site-header nav { width: 100%; }
    .nav-list { gap: 0 18px; }
    .home-hero { min-height: 330px; }
    .page-content { padding-block: 44px 70px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-company { text-align: left; }
    .marika-portrait { float: none; display: block; width: 280px; max-width: 100%; margin: 0 0 24px; }
}

@media (max-width: 360px) {
    .container { width: min(100% - 28px, 1100px); }
    .brand-title { font-size: 27px; }
    .nav-list { gap: 0 13px; }
    .nav-list .nav-item { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    a, button { transition: none; }
    .home-preview-image img, .home-preview h2::after, .home-preview-more { transition: none; }
    .contact-toast { animation: none; transition: none; }
    .nav-list .nav-item, .nav-list .nav-item::after { transition: none; }
}
