:root {
    --sporofin-blue: #0091ff;
    --sporofin-blue-dark: #0074cc;
    --sporofin-blue-pale: #d4ecff;
    --sporofin-ink: #141414;
    --sporofin-muted: #666b70;
    --sporofin-line: #dce2e7;
    --sporofin-white: #ffffff;
    --sporofin-shadow: 0 18px 45px rgba(20, 20, 20, 0.09);
}

html,
body {
    margin: 0;
    padding: 0;
}

.sporofin-theme,
.sporofin-theme * {
    box-sizing: border-box;
}

.sporofin-theme {
    min-height: 100vh;
    color: var(--sporofin-ink);
    background: var(--sporofin-white);
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

.sporofin-theme img {
    max-width: 100%;
    height: auto;
}

.sporofin-theme a {
    color: var(--sporofin-blue-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.sporofin-theme a:hover,
.sporofin-theme a:focus-visible {
    color: var(--sporofin-blue);
}

.sporofin-theme h1,
.sporofin-theme h2,
.sporofin-theme h3,
.sporofin-theme p {
    margin-top: 0;
}

.sporofin-theme h1,
.sporofin-theme h2,
.sporofin-theme h3 {
    line-height: 1.18;
}

.site-container {
    width: min(1168px, calc(100% - 48px));
    margin-inline: auto;
}

/*
 * Concrete Theme Grid (Bootstrap 5)
 *
 * Concrete vytváří rozložení pomocí tříd .container, .row a .col-md-*.
 * Téma obsahuje jen potřebnou mřížku, aby se plný Bootstrap nemíchal
 * s vlastní typografií, tlačítky a navigací Sporofinu.
 */
.sporofin-theme .container {
    width: min(1168px, calc(100% - 48px));
    margin-inline: auto;
}

.sporofin-theme .site-container .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.sporofin-theme .row {
    --sporofin-grid-gutter-x: 1.5rem;
    --sporofin-grid-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--sporofin-grid-gutter-y));
    margin-right: calc(-0.5 * var(--sporofin-grid-gutter-x));
    margin-left: calc(-0.5 * var(--sporofin-grid-gutter-x));
}

.sporofin-theme .row > * {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    padding-right: calc(0.5 * var(--sporofin-grid-gutter-x));
    padding-left: calc(0.5 * var(--sporofin-grid-gutter-x));
    margin-top: var(--sporofin-grid-gutter-y);
}

.sporofin-theme .g-4 {
    --sporofin-grid-gutter-x: 1.5rem;
    --sporofin-grid-gutter-y: 1.5rem;
}

@media (min-width: 768px) {
    .sporofin-theme .col-md-1 { width: 8.33333333%; flex: 0 0 auto; }
    .sporofin-theme .col-md-2 { width: 16.66666667%; flex: 0 0 auto; }
    .sporofin-theme .col-md-3 { width: 25%; flex: 0 0 auto; }
    .sporofin-theme .col-md-4 { width: 33.33333333%; flex: 0 0 auto; }
    .sporofin-theme .col-md-5 { width: 41.66666667%; flex: 0 0 auto; }
    .sporofin-theme .col-md-6 { width: 50%; flex: 0 0 auto; }
    .sporofin-theme .col-md-7 { width: 58.33333333%; flex: 0 0 auto; }
    .sporofin-theme .col-md-8 { width: 66.66666667%; flex: 0 0 auto; }
    .sporofin-theme .col-md-9 { width: 75%; flex: 0 0 auto; }
    .sporofin-theme .col-md-10 { width: 83.33333333%; flex: 0 0 auto; }
    .sporofin-theme .col-md-11 { width: 91.66666667%; flex: 0 0 auto; }
    .sporofin-theme .col-md-12 { width: 100%; flex: 0 0 auto; }

    .sporofin-theme .offset-md-1 { margin-left: 8.33333333%; }
    .sporofin-theme .offset-md-2 { margin-left: 16.66666667%; }
    .sporofin-theme .offset-md-3 { margin-left: 25%; }
    .sporofin-theme .offset-md-4 { margin-left: 33.33333333%; }
    .sporofin-theme .offset-md-5 { margin-left: 41.66666667%; }
    .sporofin-theme .offset-md-6 { margin-left: 50%; }
    .sporofin-theme .offset-md-7 { margin-left: 58.33333333%; }
    .sporofin-theme .offset-md-8 { margin-left: 66.66666667%; }
    .sporofin-theme .offset-md-9 { margin-left: 75%; }
    .sporofin-theme .offset-md-10 { margin-left: 83.33333333%; }
    .sporofin-theme .offset-md-11 { margin-left: 91.66666667%; }
    .sporofin-theme .offset-md-12 { margin-left: 100%; }
}

.content-readable {
    max-width: 850px;
}

.lead {
    font-size: 1.18rem;
    line-height: 1.65;
}

.text-blue {
    color: var(--sporofin-blue);
}

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

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    transform: translateY(-150%);
    padding: 10px 16px;
    color: #fff !important;
    background: #000;
}

.skip-link:focus {
    transform: none;
}

.top-contact-bar {
    color: #fff;
    background: var(--sporofin-blue);
    font-size: 0.88rem;
    font-weight: 500;
}

.top-contact-bar__inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.top-contact-bar a {
    color: #fff;
    text-decoration: none;
}

.top-contact-bar a:hover,
.top-contact-bar a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.top-contact-bar__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-link {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    line-height: 1;
    transition: color 160ms ease, background-color 160ms ease;
}

.top-contact-bar .social-link:hover,
.top-contact-bar .social-link:focus-visible {
    color: var(--sporofin-blue);
    background: #fff;
    text-decoration: none;
}

.social-link--facebook::before {
    content: "f";
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    transform: translateY(2px);
}

.social-link--instagram::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 6px;
    background: radial-gradient(circle, currentColor 0 3px, transparent 3.5px);
}

.social-link--instagram::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(20, 20, 20, 0.08);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-logo {
    display: block;
    width: min(255px, 31vw);
    flex: 0 0 auto;
}

.site-logo img {
    display: block;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    display: flex;
    align-items: center;
}

.main-navigation li:not(:last-child)::after {
    content: "/";
    padding: 0 13px;
    color: #b4b7ba;
}

.main-navigation a {
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
    color: var(--sporofin-ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-decoration: none;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    background: var(--sporofin-blue);
    transition: transform 180ms ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after,
.main-navigation a.is-active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--sporofin-ink);
    background: transparent;
    font: inherit;
    font-weight: 600;
}

.menu-toggle__icon {
    width: 28px;
    display: grid;
    gap: 5px;
}

.menu-toggle__icon i {
    height: 2px;
    display: block;
    background: currentColor;
}

.home-hero {
    min-height: clamp(540px, 61vw, 760px);
    display: grid;
    background-image: url("../images/hero.webp");
    background-position: center center;
    background-size: cover;
}

.home-hero__inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.home-hero__content {
    width: min(650px, 58%);
    padding: clamp(54px, 7vw, 96px) 0 60px;
}

.home-hero h1 {
    margin-bottom: 0;
    color: #fff;
    font-size: clamp(2.7rem, 4.5vw, 5.1rem);
    font-weight: 300;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.home-hero h1 span {
    color: inherit;
}

.benefits-section {
    padding: 92px 0 96px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 58px 48px;
}

.benefit-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.benefit-card img {
    width: 78px;
    height: 78px;
    margin-bottom: 20px;
    object-fit: contain;
}

.benefit-card h3 {
    margin-bottom: 12px;
    color: var(--sporofin-blue);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.benefit-card p {
    max-width: 320px;
    margin: 0 auto 18px;
}

.benefit-card__content {
    width: 100%;
}

.benefit-card > .button {
    margin-top: auto;
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    border: 2px solid transparent;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button--primary {
    color: #fff !important;
    background: var(--sporofin-blue);
}

.button--primary:hover,
.button--primary:focus-visible {
    border-color: var(--sporofin-blue);
    color: var(--sporofin-blue) !important;
    background: #fff;
}

.button--small {
    min-height: 46px;
    padding: 8px 24px;
    font-size: 0.95rem;
}

.button--light {
    border-color: #fff;
    color: var(--sporofin-blue) !important;
    background: #fff;
}

.button--light:hover,
.button--light:focus-visible {
    color: #fff !important;
    background: transparent;
}

.wide-image {
    min-height: 400px;
    background-position: center;
    background-size: cover;
}

.wide-image--handshake {
    background-image: url("../images/handshake.webp");
}

.wide-image--chess {
    background-image: url("../images/chess.webp");
}

.page-title-band {
    padding: 72px 0 66px;
    background: var(--sporofin-blue-pale);
}

.page-title-band h1,
.contact-hero h1 {
    margin: 0;
    color: var(--sporofin-ink);
    font-size: clamp(2.45rem, 5vw, 4.8rem);
    font-weight: 300;
    letter-spacing: -0.035em;
}

.content-section,
.about-section,
.partners-section,
.contact-section {
    padding: 84px 0 96px;
}

.content-readable h2 {
    margin-bottom: 0.35em;
    color: var(--sporofin-blue);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
}

.content-readable h3 {
    font-size: 1.4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(44px, 7vw, 92px);
    align-items: stretch;
}

.about-photo {
    min-height: 610px;
    background-image: url("../images/hero.webp");
    background-position: 38% center;
    background-size: cover;
}

.about-copy {
    align-self: center;
}

.career-callout {
    padding: 48px 0;
    color: #fff;
    background: var(--sporofin-blue);
}

.career-callout__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.career-callout h2 {
    margin-bottom: 4px;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.career-callout p {
    margin-bottom: 0;
}

.certificates-section {
    padding: 88px 0 96px;
    text-align: center;
}

.certificates-section > .site-container > h2 {
    margin-bottom: 46px;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.certificate-card {
    padding: 42px 28px;
    border-top: 4px solid var(--sporofin-blue);
    background: #fff;
    box-shadow: var(--sporofin-shadow);
}

.certificate-card h3 {
    color: var(--sporofin-blue);
    font-size: 1.35rem;
}

.certificate-card strong {
    display: block;
    margin-top: 18px;
}

.partners-content {
    min-height: 60px;
}

.contact-hero {
    min-height: 390px;
    display: flex;
    align-items: flex-end;
    padding: 64px 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.68) 52%, rgba(255, 255, 255, 0.08) 100%), url("../images/contact-banner.webp");
    background-position: center;
    background-size: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: clamp(48px, 7vw, 88px);
    align-items: start;
}

.contact-intro h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    font-weight: 700;
}

.contact-intro .lead {
    max-width: 680px;
    margin-bottom: 34px;
}

.contact-card {
    padding: 38px;
    border-top: 5px solid var(--sporofin-blue);
    background: #f5f8fa;
}

.contact-card h2 {
    color: var(--sporofin-blue);
    font-size: 1.55rem;
}

.contact-card hr {
    margin: 26px 0;
    border: 0;
    border-top: 1px solid var(--sporofin-line);
}

.contact-map-section {
    padding: 0;
}

.consent-map {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-top: 5px solid var(--sporofin-blue);
    background: #f5f8fa;
}

.consent-map__placeholder {
    min-height: 460px;
    display: grid;
    place-items: center;
    padding: 48px;
    text-align: center;
}

.consent-map__content {
    max-width: 760px;
}

.consent-map__content h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 500;
}

.consent-map__content p {
    margin-bottom: 22px;
}

.consent-map__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 22px;
}

.consent-map iframe {
    width: 100%;
    height: 460px;
    display: block;
    border: 0;
}

.hours-list {
    margin: 0;
}

.hours-list div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
}

.hours-list dt,
.hours-list dd {
    margin: 0;
}

.hours-list dt {
    font-weight: 700;
}

.sporofin-contact-block form {
    display: grid;
    gap: 22px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label,
.form-consent label {
    font-size: 0.94rem;
    font-weight: 600;
}

.form-field label span {
    color: var(--sporofin-blue-dark);
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #b9c3ca;
    border-radius: 0;
    color: var(--sporofin-ink);
    background: #fff;
    font: inherit;
}

.form-field input {
    min-height: 52px;
    padding: 10px 14px;
}

.form-field textarea {
    padding: 13px 14px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--sporofin-blue);
    outline: 3px solid rgba(0, 145, 255, 0.18);
}

.form-consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
}

.form-consent input {
    width: 19px;
    height: 19px;
    margin-top: 4px;
    accent-color: var(--sporofin-blue);
}

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

.form-alert {
    margin-bottom: 26px;
    padding: 17px 20px;
    border-left: 4px solid;
}

.form-alert ul {
    margin: 8px 0 0;
}

.form-alert--success {
    border-color: #238636;
    background: #eaf7ed;
}

.form-alert--error {
    border-color: #b42318;
    background: #fff0ef;
}

.site-footer {
    color: #fff;
    background: #111820;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 1fr;
    gap: 50px;
    padding-top: 62px;
    padding-bottom: 56px;
}

.site-footer__logo {
    width: 210px;
    filter: brightness(0) invert(1);
}

.site-footer h2 {
    margin-bottom: 14px;
    color: var(--sporofin-blue);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer a {
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__bottom-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.86rem;
}

.site-footer__consent-button {
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    cursor: pointer;
}

.site-footer__consent-button:hover,
.site-footer__consent-button:focus-visible {
    color: var(--sporofin-blue);
}

.consent-banner,
.consent-dialog {
    box-sizing: border-box;
    color: #141414;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    line-height: 1.5;
}

.consent-banner *,
.consent-dialog * {
    box-sizing: border-box;
}

.consent-banner[hidden],
.consent-dialog[hidden],
.consent-map [hidden] {
    display: none !important;
}

.consent-banner {
    position: fixed;
    z-index: 100000;
    right: 22px;
    bottom: 22px;
    left: 22px;
    padding: 24px;
    border-top: 5px solid var(--sporofin-blue);
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.consent-banner__inner {
    width: min(1168px, 100%);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.consent-banner__text {
    max-width: 720px;
}

.consent-banner h2,
.consent-dialog h2,
.consent-dialog h3,
.consent-banner p,
.consent-dialog p {
    margin-top: 0;
}

.consent-banner h2 {
    margin-bottom: 6px;
    font-size: 1.35rem;
}

.consent-banner p {
    margin-bottom: 5px;
}

.consent-banner a,
.consent-dialog a {
    color: #006fbe;
}

.consent-banner__actions {
    min-width: 470px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.consent-banner__actions .consent-button--link {
    grid-column: 1 / -1;
}

.consent-button {
    min-height: 46px;
    padding: 11px 17px;
    border: 2px solid var(--sporofin-blue-dark);
    border-radius: 0;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
}

.consent-button--primary {
    color: #fff;
    background: var(--sporofin-blue-dark);
}

.consent-button--secondary {
    color: var(--sporofin-blue-dark);
    background: #fff;
}

.consent-button--link {
    min-height: auto;
    padding: 5px 8px;
    border-color: transparent;
    color: #3f474e;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.consent-button:hover,
.consent-button:focus-visible {
    outline: 3px solid rgba(0, 145, 255, 0.24);
    outline-offset: 2px;
}

.consent-dialog {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.consent-dialog__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(12, 18, 24, 0.72);
    cursor: default;
}

.consent-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px;
    border-top: 5px solid var(--sporofin-blue);
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
    outline: 0;
}

.consent-dialog__panel > h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.consent-dialog__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    color: #141414;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.consent-preference {
    margin-top: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #dce2e7;
    background: #f7f9fa;
}

.consent-preference h3,
.consent-preference p {
    margin-bottom: 3px;
}

.consent-preference h3,
.consent-preference strong {
    font-size: 1.05rem;
}

.consent-preference p,
.consent-preference small {
    display: block;
    color: #515960;
    font-size: 0.9rem;
}

.consent-preference__status {
    flex: 0 0 auto;
    color: #35414a;
    font-size: 0.86rem;
    font-weight: 700;
}

.consent-preference--switch {
    cursor: pointer;
}

.consent-preference--switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-switch {
    position: relative;
    flex: 0 0 auto;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #8b949b;
    transition: background 160ms ease;
}

.consent-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform 160ms ease;
}

.consent-preference--switch input:checked + .consent-switch {
    background: var(--sporofin-blue-dark);
}

.consent-preference--switch input:checked + .consent-switch::after {
    transform: translateX(24px);
}

.consent-preference--switch input:focus-visible + .consent-switch {
    outline: 3px solid rgba(0, 145, 255, 0.28);
    outline-offset: 3px;
}

.consent-dialog__details {
    margin: 22px 0 0;
    font-size: 0.9rem;
}

.consent-dialog__actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.consent-dialog-open {
    overflow: hidden;
}

@media (min-width: 821px) {
    .site-footer__grid > div:not(:first-child) {
        padding-top: 24px;
    }
}

@media (max-width: 1080px) {
    .site-header__inner {
        min-height: 112px;
    }

    .site-logo {
        width: 210px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 16px 30px rgba(20, 20, 20, 0.12);
        transition: max-height 240ms ease;
    }

    .main-navigation.is-open {
        max-height: 520px;
    }

    .main-navigation ul {
        width: min(1168px, calc(100% - 48px));
        align-items: stretch;
        flex-direction: column;
        margin: 0 auto;
        padding: 18px 0 24px;
    }

    .main-navigation li:not(:last-child)::after {
        content: none;
    }

    .main-navigation a {
        width: 100%;
        padding: 12px 0;
        font-size: 0.94rem;
    }

    .main-navigation a::after {
        display: none;
    }

    .main-navigation a.is-active {
        color: var(--sporofin-blue-dark);
    }
}

@media (max-width: 820px) {
    .top-contact-bar__inner {
        padding: 12px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .top-contact-bar__links {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .home-hero {
        min-height: 680px;
        background-image: url("../images/hero.webp");
        background-position: 48% center;
    }

    .home-hero__inner {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .home-hero__content {
        width: min(560px, 78%);
        padding: 46px 0;
    }

    .benefits-grid,
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-photo {
        min-height: 520px;
        background-position: center 38%;
    }

    .career-callout__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .site-container {
        width: min(100% - 32px, 1168px);
    }

    .sporofin-theme .container {
        width: min(100% - 32px, 1168px);
    }

    .sporofin-theme .site-container .container {
        width: 100%;
    }

    .top-contact-bar__inner {
        min-height: 0;
        display: block;
        padding: 9px 0;
    }

    .top-contact-bar__inner > span:first-child {
        display: none;
    }

    .top-contact-bar__links {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 38px 38px;
        grid-template-rows: repeat(2, auto);
        gap: 2px 10px;
        align-items: center;
    }

    .top-contact-bar__links > a:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .top-contact-bar__links > a:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .top-contact-bar__links .social-link--facebook {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .top-contact-bar__links .social-link--instagram {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .site-header__inner {
        min-height: 92px;
    }

    .site-logo {
        width: 175px;
    }

    .menu-toggle__label {
        display: none;
    }

    .main-navigation ul {
        width: calc(100% - 32px);
    }

    .home-hero {
        min-height: 610px;
    }

    .benefits-section,
    .content-section,
    .about-section,
    .partners-section,
    .contact-section,
    .certificates-section {
        padding: 62px 0 68px;
    }

    .benefits-grid,
    .certificates-grid,
    .contact-form-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__grid > :first-child {
        grid-column: auto;
    }

    .wide-image {
        min-height: 280px;
    }

    .page-title-band {
        padding: 52px 0 48px;
    }

    .about-photo {
        min-height: 430px;
    }

    .contact-card {
        padding: 28px 24px;
    }

    .consent-map,
    .consent-map__placeholder {
        min-height: 380px;
    }

    .consent-map__placeholder {
        padding: 34px 22px;
    }

    .consent-map iframe {
        height: 380px;
    }

    .site-footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .consent-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 20px;
    }

    .consent-banner__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .consent-banner__actions {
        min-width: 0;
    }

    .consent-dialog {
        padding: 12px;
    }

    .consent-dialog__panel {
        max-height: calc(100vh - 24px);
        padding: 28px 20px 22px;
    }

    .consent-dialog__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .top-contact-bar {
        font-size: 0.8rem;
    }

    .top-contact-bar__links {
        grid-template-columns: minmax(0, 1fr) 36px 36px;
        gap: 2px 8px;
    }

    .top-contact-bar .social-link {
        width: 36px;
        height: 36px;
    }

    .consent-banner__actions {
        grid-template-columns: 1fr;
    }

    .consent-banner__actions .consent-button--link {
        grid-column: auto;
    }

    .consent-preference {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sporofin-theme *,
    .sporofin-theme *::before,
    .sporofin-theme *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
