:root {
    --bg: #f5f2ea;
    --paper: #ffffff;
    --text: #10291f;
    --muted: #4f5d55;
    --green: #0f3c2b;
    --green-2: #174f39;
    --gold: #bd8a13;
    --gold-2: #d7a427;
    --line: #e5dfd2;
    --soft: #f0eadc;
    --shadow: 0 22px 55px rgba(16, 41, 31, 0.13);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(189, 138, 19, 0.08), transparent 34rem),
        linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
    line-height: 1.6;
}

a {
    color: inherit;
}

.page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    min-height: 100vh;
}

.container {
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto;
}

/* Header */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-logo {
    width: 92px;
    height: 72px;
    position: relative;
    display: inline-block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.04;
}

.brand-text strong,
.footer-brand strong {
    font-size: 35px;
    font-weight: 850;
    letter-spacing: -0.045em;
    color: var(--green);
}

.brand-text small,
.footer-brand small {
    font-size: 25px;
    font-weight: 800;
    color: var(--gold);
}

.hammer {
    position: absolute;
    width: 14px;
    height: 52px;
    background: var(--green);
    border-radius: 4px;
    top: 6px;
    left: 38px;
    transform-origin: bottom center;
}

.hammer::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 13px;
    background: var(--green);
    border-radius: 3px;
    top: -5px;
    left: -13px;
}

.hammer-left {
    transform: rotate(42deg);
}

.hammer-right {
    transform: rotate(-42deg);
}

.brand-hill {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 20px;
    border-bottom: 5px solid var(--green);
    border-radius: 50%;
}

.brand-logo::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    top: 0;
    left: 41px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 44px;
    font-weight: 800;
    font-size: 18px;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    padding: 12px 0;
    color: #061d15;
}

.main-nav a::after {
    content: "";
    position: absolute;
    height: 3px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

/* Hero */

.hero {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 24%, rgba(255,255,255,0.44) 42%, rgba(255,255,255,0.08) 68%, rgba(255,255,255,0.00) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.00) 58%, rgba(16, 41, 31, 0.34) 100%),
        url("/assets/img/hero-rudice.jpg") center 99% / cover no-repeat;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.08) 0,
            rgba(255,255,255,0.08) 2px,
            transparent 2px,
            transparent 18px
        );
    opacity: 0.24;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 86px 0 50px;
}

.hero-copy {
    max-width: 600px;
}

.hero h1 {
    margin: 0 0 28px;
    font-size: clamp(58px, 8vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero h1 span {
    display: block;
    color: var(--green);
}

.hero h1 em {
    display: block;
    font-style: normal;
    color: var(--gold);
}

.hero p {
    margin: 0;
    max-width: 520px;
    font-size: 23px;
    line-height: 1.55;
    font-weight: 500;
    color: #10251d;
}

.hero-actions {
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.action-card {
    min-height: 122px;
    padding: 24px 28px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 18px 38px rgba(16, 41, 31, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(16, 41, 31, 0.22);
}

.action-green {
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #fff;
}

.action-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #fff;
}

.action-light {
    background: rgba(255,255,255,0.94);
    color: var(--green);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.18);
    font-size: 31px;
}

.action-light .action-icon {
    background: transparent;
    font-size: 38px;
}

.action-arrow {
    font-size: 42px;
    line-height: 1;
}

/* Sections */

.section {
    padding: 64px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
    max-width: 1240px;
}

.about-text {
    position: relative;
}

.about-text h2,
.section-heading h2,
.contact-strip h2 {
    margin: 0 0 24px;
    font-size: clamp(34px, 4vw, 45px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    color: var(--green);
}

.about-text h2::after,
.section-heading h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 18px;
    background: var(--gold);
}

.about-text p {
    font-size: 18px;
    color: #1f2e28;
}

.photo-placeholder {
    aspect-ratio: 16 / 7;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(15, 60, 43, 0.78), rgba(189, 138, 19, 0.62)),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.16) 0,
            rgba(255,255,255,0.16) 2px,
            transparent 2px,
            transparent 20px
        );
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px;
    overflow: hidden;
}

.photo-placeholder strong {
    display: block;
    font-size: 28px;
}

.photo-placeholder span {
    display: block;
    margin-top: 8px;
    opacity: 0.88;
}

.team-photo {
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: var(--soft);
    box-shadow: 0 18px 42px rgba(16, 41, 31, 0.13);
}

.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Principles */

.principles-section {
    padding-top: 20px;
}

.centered {
    text-align: center;
}

.centered h2::after {
    margin-left: auto;
    margin-right: auto;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 34px;
}

.principle {
    text-align: center;
    padding: 0 38px;
    border-right: 1px solid #d8d0c0;
}

.principle:last-child {
    border-right: 0;
}

.principle-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 38px;
    box-shadow: 0 12px 24px rgba(16, 41, 31, 0.16);
}

.principle-icon.green {
    background: var(--green);
}

.principle-icon.gold {
    background: var(--gold);
}

.principle h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.15;
    color: var(--green);
}

.principle p {
    margin: 0;
    color: #1d2e27;
}

/* Contact strip */

.contact-strip-section {
    padding-top: 28px;
}

.contact-strip {
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.90), rgba(239,234,219,0.92)),
        radial-gradient(circle at right bottom, rgba(15, 60, 43, 0.15), transparent 18rem);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    padding: 28px 50px;
    align-items: center;
}

.contact-strip-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.mail-icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--green);
    color: #fff;
    font-size: 50px;
}

.contact-strip h2 {
    margin-bottom: 8px;
    font-size: 30px;
}

.contact-strip p {
    margin: 0;
    font-size: 18px;
}

.contact-strip-right {
    border-left: 1px solid #d2c9b8;
    padding-left: 44px;
}

.contact-strip-right span {
    display: block;
    margin: 6px 0 18px;
    color: var(--muted);
}

.button {
    display: inline-flex;
    min-height: 45px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
}

.button-green {
    background: var(--green);
    color: #fff;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,0.88);
}

.footer-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
}

.footer-logo {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 46px;
}

.footer-logo .hammer {
    width: 8px;
    height: 32px;
    top: 6px;
    left: 24px;
}

.footer-logo .hammer::before {
    width: 27px;
    height: 8px;
    top: -3px;
    left: -9px;
}

.footer-logo .brand-hill {
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-bottom-width: 3px;
}

.footer-brand {
    gap: 10px;
}

.footer-brand strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.footer-brand small {
    display: block;
    font-size: 16px;
    line-height: 1;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 42px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #58635d;
    text-decoration: none;
    font-size: 15px;
}

.footer-nav a:hover {
    color: var(--green);
}

.copyright {
    color: #58635d;
    font-size: 15px;
}

/* Existing subpages compatibility */

.page-hero {
    padding-bottom: 24px;
}

.narrow {
    max-width: 820px;
}

.narrow p {
    font-size: 18px;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 12px 28px rgba(16, 41, 31, 0.07);
}

.card h3 {
    margin-top: 0;
    color: var(--green);
}

/* Candidates */

.candidates-hero {
    padding-bottom: 38px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 18px;
    color: var(--green);
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.section-lead {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
}

.candidates-section {
    padding-top: 24px;
}

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

.candidate-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(180px, 34%) 1fr;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 34px rgba(16, 41, 31, 0.08);
}

.candidate-photo-wrap {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: var(--soft);
}

.candidate-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.candidate-number {
    position: absolute;
    left: 16px;
    bottom: 16px;
    min-width: 48px;
    height: 48px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(16, 41, 31, 0.24);
}

.candidate-content {
    min-width: 0;
    padding: 28px 28px 30px;
}

.candidate-content h2 {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.candidate-content h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 13px;
    background: var(--gold);
}

.candidate-content p {
    margin: 0;
    color: #34453d;
    font-size: 16px;
    line-height: 1.62;
}

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

    .candidate-card {
        grid-template-columns: minmax(210px, 28%) 1fr;
    }

    .candidate-photo-wrap {
        min-height: 320px;
    }
}

@media (max-width: 680px) {
    .candidates-hero {
        padding-bottom: 18px;
    }

    .candidate-grid {
        gap: 20px;
    }

    .candidate-card {
        grid-template-columns: 1fr;
    }

    .candidate-photo-wrap {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .candidate-content {
        padding: 24px 22px 26px;
    }

    .candidate-content h2 {
        font-size: 25px;
    }

    .candidate-content p {
        font-size: 16px;
    }

    .team-photo {
        aspect-ratio: 4 / 3;
    }
}

/* Responsive */

@media (max-width: 980px) {
    .header-inner {
        min-height: auto;
        padding: 22px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        gap: 18px 28px;
        flex-wrap: wrap;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 64px 0 34px;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

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

    .contact-strip-right {
        border-left: 0;
        border-top: 1px solid #d2c9b8;
        padding-left: 0;
        padding-top: 26px;
    }

    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 0;
    }

    .principle:nth-child(2) {
        border-right: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 28px 0;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .brand-logo {
        width: 72px;
        height: 58px;
    }

    .brand-text strong {
        font-size: 28px;
    }

    .brand-text small {
        font-size: 20px;
    }

    .main-nav {
        font-size: 16px;
        gap: 12px 18px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero p {
        font-size: 19px;
    }

    .action-card {
        min-height: 96px;
        font-size: 19px;
        padding: 20px;
    }

    .about-grid {
        gap: 34px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .principle {
        border-right: 0;
        border-bottom: 1px solid #d8d0c0;
        padding: 0 18px 28px;
    }

    .principle:last-child {
        border-bottom: 0;
    }

    .contact-strip {
        padding: 24px;
    }

    .contact-strip-left {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Contact page */

.contact-page-section {
    padding-top: 20px;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 34px;
    box-shadow: 0 16px 38px rgba(16, 41, 31, 0.08);
}

.contact-info-card h2,
.contact-form-card h2 {
    margin: 0 0 16px;
    color: var(--green);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.contact-info-card p {
    color: var(--muted);
    font-size: 18px;
}

.contact-detail {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.contact-detail strong {
    display: block;
    margin-bottom: 6px;
    color: var(--green);
}

.contact-detail a {
    color: var(--gold);
    font-weight: 800;
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 28px;
    padding: 18px;
    border-radius: 16px;
    background: var(--soft);
}

.contact-note p {
    margin: 0;
    font-size: 16px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

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

.form-field label {
    font-weight: 800;
    color: var(--green);
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #d8d0c0;
    border-radius: 12px;
    padding: 14px 15px;
    font: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 160px;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(189, 138, 19, 0.14);
}

.form-submit {
    border: 0;
    cursor: pointer;
    justify-self: start;
    font: inherit;
}

.form-message {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-message.success {
    background: rgba(15, 60, 43, 0.10);
    color: var(--green);
    border: 1px solid rgba(15, 60, 43, 0.22);
}

.form-message.error {
    background: rgba(160, 40, 30, 0.10);
    color: #84251c;
    border: 1px solid rgba(160, 40, 30, 0.22);
}

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

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

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }
}

/* Mobile polish */

@media (max-width: 860px) {
    body {
        background: #f5f2ea;
    }

    .page-shell {
        max-width: none;
        width: 100%;
        box-shadow: none;
        background: #fff;
    }

    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: auto;
        padding: 16px 0 14px;
        gap: 16px;
        align-items: center;
    }

    .brand {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .brand-logo {
        width: 62px;
        height: 50px;
        transform: scale(0.92);
        transform-origin: center;
    }

    .brand-text strong {
        font-size: 28px;
        letter-spacing: -0.04em;
    }

    .brand-text small {
        font-size: 20px;
    }

    .main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        font-size: 15px;
        font-weight: 800;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 999px;
        background: #f4efe4;
        text-align: center;
        line-height: 1.15;
    }

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

    .main-nav a.active {
        background: var(--green);
        color: #fff;
    }

    .hero {
        min-height: auto;
        border-bottom: 1px solid var(--line);
    }

@media (max-width: 860px) {
    .hero-bg {
        background:
            linear-gradient(180deg, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0.20) 42%, rgba(16,41,31,0.22) 100%),
            url("/assets/img/hero-rudice-mobile.jpg") center center / cover no-repeat;
    }
}

    .hero-content {
        min-height: 560px;
        padding: 44px 0 28px;
        justify-content: flex-end;
    }

    .hero-copy {
        max-width: 100%;
        padding-top: 115px;
    }

    .hero h1 {
        font-size: clamp(46px, 15vw, 72px);
        line-height: 0.95;
        margin-bottom: 18px;
        letter-spacing: -0.07em;
        text-shadow: 0 1px 0 rgba(255,255,255,0.45);
    }

    .hero p {
        max-width: 100%;
        font-size: 18px;
        line-height: 1.45;
        font-weight: 650;
        color: #0c2118;
        background: rgba(255,255,255,0.72);
        border: 1px solid rgba(255,255,255,0.65);
        border-radius: 18px;
        padding: 14px 16px;
        backdrop-filter: blur(8px);
    }

    .hero-actions {
        margin-top: 20px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .action-card {
        min-height: 76px;
        padding: 15px 17px;
        border-radius: 16px;
        font-size: 18px;
        gap: 14px;
        box-shadow: 0 12px 26px rgba(16, 41, 31, 0.18);
    }

    .action-icon {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .action-light .action-icon {
        font-size: 28px;
    }

    .action-arrow {
        font-size: 30px;
    }

    .section {
        padding: 42px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-text h2,
    .section-heading h2,
    .contact-strip h2 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .about-text p,
    .section-lead,
    .narrow p {
        font-size: 16px;
    }

    .photo-placeholder {
        aspect-ratio: 16 / 10;
        border-radius: 18px;
        padding: 22px;
    }

    .photo-placeholder strong {
        font-size: 22px;
    }

    .principles-section {
        padding-top: 18px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 26px;
    }

    .principle {
        display: grid;
        grid-template-columns: 74px 1fr;
        gap: 16px;
        text-align: left;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid #d8d0c0;
        align-items: center;
    }

    .principle:last-child {
        border-bottom: 0;
    }

    .principle-icon {
        width: 64px;
        height: 64px;
        margin: 0;
        font-size: 30px;
    }

    .principle h3 {
        font-size: 21px;
        margin-bottom: 6px;
    }

    .principle p {
        font-size: 15px;
    }

    .contact-strip {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
        border-radius: 18px;
    }

    .contact-strip-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .mail-icon {
        width: 72px;
        height: 72px;
        font-size: 38px;
    }

    .contact-strip-right {
        border-left: 0;
        border-top: 1px solid #d2c9b8;
        padding-left: 0;
        padding-top: 20px;
    }

    .button {
        width: 100%;
        min-height: 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        justify-items: center;
        padding: 26px 0;
    }

    .footer-nav {
        gap: 10px 18px;
        justify-content: center;
    }

    .footer-nav a {
        font-size: 14px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 22px;
        border-radius: 22px;
    }

    .contact-info-card h2,
    .contact-form-card h2 {
        font-size: 27px;
    }

    .form-submit {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .brand-logo {
        width: 54px;
        height: 44px;
        transform: scale(0.82);
    }

    .brand-text strong {
        font-size: 24px;
    }

    .brand-text small {
        font-size: 18px;
    }

    .main-nav {
        font-size: 14px;
        gap: 7px;
    }

    .main-nav a {
        min-height: 40px;
        padding: 8px 7px;
    }

    .hero-content {
        min-height: 520px;
        padding-bottom: 22px;
    }

    .hero-copy {
        padding-top: 95px;
    }

    .hero h1 {
        font-size: clamp(42px, 17vw, 62px);
    }

    .hero p {
        font-size: 16px;
        padding: 12px 14px;
    }

    .action-card {
        min-height: 70px;
        font-size: 16px;
        padding: 13px 14px;
    }

    .action-icon {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .section {
        padding: 34px 0;
    }

    .principle {
        grid-template-columns: 58px 1fr;
        gap: 12px;
    }

    .principle-icon {
        width: 52px;
        height: 52px;
        font-size: 25px;
    }

    .principle h3 {
        font-size: 19px;
    }

    .contact-strip h2 {
        font-size: 26px;
    }
}

/* Mobile final tuning */

@media (max-width: 860px) {
    .header-inner {
        padding: 14px 0 16px;
    }

    .brand {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .brand-logo {
        width: 58px;
        height: 46px;
        transform: none;
        flex: 0 0 auto;
    }

    .brand-logo .hammer {
        width: 8px;
        height: 32px;
        top: 6px;
        left: 25px;
    }

    .brand-logo .hammer::before {
        width: 27px;
        height: 8px;
        top: -3px;
        left: -9px;
    }

    .brand-logo::after {
        width: 9px;
        height: 9px;
        top: 0;
        left: 25px;
    }

    .brand-logo .brand-hill {
        left: 5px;
        right: 5px;
        bottom: 3px;
        height: 13px;
        border-bottom-width: 3px;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-text strong {
        font-size: 24px;
        line-height: 0.95;
        letter-spacing: -0.045em;
    }

    .brand-text small {
        font-size: 18px;
        line-height: 1;
    }

    .hero-bg {
        background:
            linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 34%, rgba(255,255,255,0.22) 68%, rgba(16,41,31,0.18) 100%),
            url("/assets/img/hero-rudice-mobile.jpg") center center / cover no-repeat;
    }

    .hero-content {
        min-height: 610px;
        padding: 34px 0 28px;
        justify-content: flex-end;
    }

    .hero-copy {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: clamp(44px, 14vw, 66px);
        max-width: 100%;
    }

    .principles-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px;
    }

    .principle {
        display: block;
        text-align: center;
        padding: 26px 22px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(16, 41, 31, 0.07);
    }

    .principle:last-child {
        border-bottom: 1px solid var(--line);
    }

    .principle-icon {
        width: 76px;
        height: 76px;
        margin: 0 auto 16px;
        font-size: 34px;
    }

    .principle h3 {
        margin: 0 0 12px;
        font-size: 24px;
        line-height: 1.15;
        text-align: center;
    }

    .principle p {
        max-width: 320px;
        margin: 0 auto;
        font-size: 17px;
        line-height: 1.55;
        text-align: center;
        color: #1d2e27;
    }
}

@media (max-width: 430px) {
    .brand-logo {
        width: 52px;
        height: 42px;
    }

    .brand-logo .hammer {
        left: 23px;
    }

    .brand-logo::after {
        left: 23px;
    }

    .brand-text strong {
        font-size: 22px;
    }

    .brand-text small {
        font-size: 16px;
    }

    .hero-content {
        min-height: 590px;
    }

    .hero h1 {
        font-size: clamp(40px, 14vw, 58px);
    }

    .principle {
        padding: 24px 18px;
    }

    .principle h3 {
        font-size: 22px;
    }

    .principle p {
        font-size: 16px;
    }
}

/* Mobile hero as centered block */

@media (max-width: 860px) {
    .hero-content {
        min-height: 640px;
        padding: 34px 0 30px;
        justify-content: flex-end;
    }

    .hero-copy {
        max-width: 100%;
        padding-top: 0;
        display: grid;
        justify-items: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 28px;
        padding: 28px 22px 22px;
        box-shadow: 0 18px 44px rgba(16, 41, 31, 0.16);
        backdrop-filter: blur(10px);
    }

    .hero h1 {
        margin: 0 0 18px;
        font-size: clamp(42px, 13vw, 64px);
        line-height: 0.95;
        letter-spacing: -0.07em;
        text-align: center;
        text-shadow: none;
    }

    .hero h1 span,
    .hero h1 em {
        display: block;
    }

    .hero p {
        max-width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        backdrop-filter: none;
        font-size: 18px;
        line-height: 1.5;
        font-weight: 700;
        text-align: center;
        color: #0c2118;
    }

    .hero-actions {
        margin-top: 18px;
    }
}

@media (max-width: 430px) {
    .hero-content {
        min-height: 620px;
        padding: 28px 0 24px;
    }

    .hero-copy {
        border-radius: 24px;
        padding: 24px 18px 20px;
    }

    .hero h1 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .hero p {
        font-size: 16px;
        line-height: 1.48;
    }
}

/* Mobile hero correction: title free, text in card */

@media (max-width: 860px) {
    .hero-content {
        min-height: 640px;
        padding: 34px 0 30px;
        justify-content: flex-end;
    }

    .hero-copy {
        max-width: 100%;
        padding: 0;
        display: block;
        text-align: left;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .hero h1 {
        margin: 0 0 22px;
        font-size: clamp(44px, 14vw, 66px);
        line-height: 0.95;
        letter-spacing: -0.07em;
        text-align: left;
        text-shadow: 0 1px 0 rgba(255,255,255,0.38);
    }

    .hero h1 span,
    .hero h1 em {
        display: block;
    }

    .hero p {
        max-width: 100%;
        margin: 0;
        padding: 18px 20px;
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 24px;
        box-shadow: 0 14px 34px rgba(16, 41, 31, 0.12);
        backdrop-filter: blur(9px);
        font-size: 18px;
        line-height: 1.52;
        font-weight: 750;
        text-align: left;
        color: #0c2118;
    }

    .hero-actions {
        margin-top: 18px;
    }
}

@media (max-width: 430px) {
    .hero-content {
        min-height: 620px;
        padding: 28px 0 24px;
    }

    .hero h1 {
        font-size: clamp(40px, 14vw, 58px);
        margin-bottom: 18px;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.5;
        padding: 16px 18px;
        border-radius: 22px;
    }
}

/* CTA card image icons */

.action-icon-image {
    overflow: hidden;
}

.action-icon-image img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

@media (max-width: 860px) {
    .action-icon-image img {
        width: 30px;
        height: 30px;
    }
}

/* CTA candidate icon cleanup */

.action-card .action-icon-image {
    width: 62px;
    height: 62px;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.action-card .action-icon-image img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
}

@media (max-width: 860px) {
    .action-card .action-icon-image {
        width: 58px;
        height: 58px;
    }

    .action-card .action-icon-image img {
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 430px) {
    .action-card .action-icon-image {
        width: 52px;
        height: 52px;
    }

    .action-card .action-icon-image img {
        width: 52px;
        height: 52px;
    }
}

/* Contact strip image icon */

.mail-icon-image {
    overflow: hidden;
}

.mail-icon-image img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
}

@media (max-width: 860px) {
    .mail-icon-image img {
        width: 46px;
        height: 46px;
    }
}

/* Mobile contact strip icon centering */

@media (max-width: 860px) {
    .contact-strip-left {
        align-items: center;
        text-align: center;
    }

    .contact-strip-left .mail-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-strip-left h2,
    .contact-strip-left p {
        text-align: center;
    }
}

/* Sponsors page */

.sponsors-hero {
    padding-bottom: 38px;
}

.sponsors-section {
    padding-top: 18px;
}

.sponsors-outro {
    position: relative;
    margin-top: 34px;
    padding: 30px 36px 30px 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #fff 0%, #f4efe4 100%);
    box-shadow: 0 14px 34px rgba(16, 41, 31, 0.07);
    overflow: hidden;
}

.sponsors-outro::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 8px;
    background: var(--gold);
}

.sponsors-outro h2 {
    margin: 0 0 6px;
    color: var(--green);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.sponsors-outro p {
    max-width: 900px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.sponsors-outro .sponsors-outro-thanks {
    margin-top: 17px;
    color: var(--green);
    font-weight: 800;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sponsor-card {
    position: relative;
    min-width: 0;
    min-height: 330px;
    padding: 34px 32px 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 7px solid var(--green);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(16, 41, 31, 0.09);
}

.sponsor-card-featured {
    border-top-color: var(--gold);
    background:
        radial-gradient(circle at 100% 0, rgba(189, 138, 19, 0.12), transparent 15rem),
        var(--paper);
}

.sponsor-card-kicker {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 60, 43, 0.09);
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sponsor-card-featured .sponsor-card-kicker {
    background: rgba(189, 138, 19, 0.13);
}

.sponsor-card h2 {
    position: relative;
    margin: 0 0 18px;
    color: var(--green);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.sponsor-card p {
    position: relative;
    margin: 0;
    color: #34453d;
    font-size: 17px;
    line-height: 1.65;
}

.sponsor-company-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
}

.sponsor-company-link strong {
    color: var(--green);
}

.sponsor-company-link:hover strong {
    color: var(--gold);
    text-decoration: underline;
}

@media (min-width: 981px) and (max-width: 1260px) {
    .main-nav {
        gap: 24px;
        font-size: 16px;
    }
}

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

    .sponsor-card {
        min-height: 0;
    }
}

@media (max-width: 860px) {
    .main-nav a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .sponsors-hero {
        padding-bottom: 24px;
    }

    .sponsors-section {
        padding-top: 10px;
    }
}

@media (max-width: 620px) {
    .sponsors-outro {
        margin-top: 22px;
        padding: 25px 22px 25px 28px;
    }

    .sponsors-outro p {
        font-size: 16px;
    }

    .sponsor-grid {
        gap: 20px;
    }

    .sponsor-card {
        padding: 29px 22px 26px;
        border-radius: 24px;
    }

    .sponsor-card-kicker {
        max-width: 100%;
        margin-bottom: 16px;
        font-size: 12px;
    }

    .sponsor-card h2 {
        font-size: 29px;
    }

    .sponsor-card p {
        font-size: 16px;
    }
}

/* Mobile overflow correction (v7)
 * Prevents older and narrower mobile browsers from widening the document.
 */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

.page-shell,
.site-header,
main,
.section,
.site-footer {
    max-width: 100%;
}

.container {
    width: calc(100% - 64px);
    max-width: 1360px;
}

img,
picture {
    max-width: 100%;
}

.about-grid,
.about-text,
.about-photo,
.team-photo {
    min-width: 0;
}

.team-photo,
.team-photo picture {
    display: block;
    width: 100%;
    max-width: 100%;
}

.team-photo picture {
    height: 100%;
}

@media (max-width: 860px) {
    .container {
        width: calc(100% - 28px);
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-photo,
    .team-photo {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    .container {
        width: calc(100% - 22px);
    }
}

/* Contact choices and anonymous tip modal (v8) */

.contact-strip {
    display: block;
    padding: 38px 44px 42px;
}

#kontaktni-moznosti {
    scroll-margin-top: 138px;
}

.contact-strip-heading {
    display: flex;
    align-items: center;
    gap: 26px;
    max-width: 850px;
    margin-bottom: 30px;
}

.contact-strip-heading h2 {
    margin: 0 0 5px;
}

.contact-strip-heading p {
    margin: 0;
    color: var(--muted);
}

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

.contact-choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.contact-choice-anonymous {
    border-top: 5px solid var(--gold);
}

.contact-choice-reply {
    border-top: 5px solid var(--green);
}

.contact-choice-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-choice h3 {
    margin: 7px 0 8px;
    color: var(--green);
    font-size: clamp(23px, 2.2vw, 29px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.contact-choice p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 16px;
}

.contact-choice .button {
    width: auto;
    margin-top: auto;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button-gold {
    background: var(--gold);
    color: #fff;
}

.button-gold:hover,
.button-green:hover {
    filter: brightness(1.08);
}

body.modal-open {
    overflow: hidden;
}

.anonymous-modal {
    position: fixed;
    inset: 0;
    width: min(650px, calc(100% - 32px));
    max-width: 650px;
    max-height: min(86vh, 760px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 24px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 30px 90px rgba(6, 29, 21, 0.32);
    z-index: 100;
}

.anonymous-modal::backdrop {
    background: rgba(6, 29, 21, 0.64);
    backdrop-filter: blur(3px);
}

.anonymous-modal-inner {
    position: relative;
    padding: 40px;
}

.anonymous-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
    color: var(--green);
    font: 400 30px/1 system-ui, sans-serif;
    cursor: pointer;
}

.anonymous-modal-close:hover,
.anonymous-modal-close:focus-visible {
    background: #e6decd;
}

.anonymous-modal-kicker {
    display: inline-block;
    margin: 0 52px 8px 0;
    color: var(--gold);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.anonymous-modal h2 {
    margin: 0 50px 12px 0;
    color: var(--green);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.anonymous-modal-note {
    margin: 0 0 24px;
    padding: 15px 17px;
    border-left: 5px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: #f7f2e6;
    color: #34453d;
}

.anonymous-form {
    display: grid;
    gap: 20px;
}

.anonymous-form textarea {
    min-height: 190px;
}

.form-hint {
    color: var(--muted);
    font-size: 14px;
}

.anonymous-submit {
    width: auto;
    border: 0;
    cursor: pointer;
    font: inherit;
    justify-self: start;
}

@media (max-width: 860px) {
    #kontaktni-moznosti {
        scroll-margin-top: 16px;
    }

    .contact-strip {
        padding: 26px 22px;
    }

    .contact-strip-heading {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: 22px;
        text-align: center;
    }

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

    .contact-choice {
        padding: 24px 22px;
    }

    .contact-choice .button,
    .anonymous-submit {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .anonymous-modal {
        width: calc(100% - 22px);
        max-height: calc(100dvh - 22px);
        border-radius: 20px;
    }

    .anonymous-modal-inner {
        padding: 30px 20px 22px;
    }

    .anonymous-modal-close {
        top: 12px;
        right: 12px;
    }

    .anonymous-modal h2 {
        margin-right: 42px;
        font-size: 29px;
    }

    .anonymous-modal-note {
        font-size: 15px;
    }
}

/* Fixed candidate cards and full candidate detail (v12) */

.candidate-age {
    display: inline-block;
    white-space: nowrap;
}

.candidate-card {
    height: 320px;
}

.candidate-photo-wrap,
.candidate-photo-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.candidate-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding-bottom: 76px;
}

.candidate-content h2 {
    flex: 0 0 auto;
}

.candidate-summary-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.candidate-summary-wrap::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 48px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--paper) 88%);
    transition: opacity 0.15s ease;
}

.candidate-card.has-overflow .candidate-summary-wrap::after {
    opacity: 1;
}

.candidate-summary {
    height: 100%;
    overflow: hidden;
}

.candidate-more {
    position: absolute;
    right: 20px;
    bottom: 18px;
    min-width: 76px;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font: 800 15px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 60, 43, 0.22);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.candidate-more:hover,
.candidate-more:focus-visible {
    background: var(--green-2);
    box-shadow: 0 10px 24px rgba(15, 60, 43, 0.28);
    transform: translateY(-1px);
}

.candidate-more:focus-visible,
.candidate-modal-close:focus-visible {
    outline: 3px solid var(--gold-2);
    outline-offset: 3px;
}

.candidate-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 6vh 28px;
    overflow: hidden;
    border: 0;
    color: var(--text);
    background: rgba(6, 29, 21, 0.82);
    backdrop-filter: blur(5px);
    z-index: 120;
}

.candidate-modal[open] {
    display: grid;
    place-items: center;
}

.candidate-modal::backdrop {
    background: transparent;
}

.candidate-modal-panel {
    width: min(1180px, 100%);
    height: min(88vh, 790px);
    height: min(88dvh, 790px);
    display: grid;
    grid-template-columns: minmax(320px, 43%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.candidate-modal-photo {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--soft);
}

.candidate-modal-photo picture,
.candidate-modal-photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.candidate-modal-photo img {
    object-fit: cover;
    object-position: center top;
}

.candidate-modal-content {
    min-width: 0;
    min-height: 0;
    padding: clamp(38px, 5vw, 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.candidate-modal-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.candidate-modal-content h2 {
    margin: 0 56px 22px 0;
    color: var(--green);
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.candidate-modal-content h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 20px;
    background: var(--gold);
}

.candidate-modal-description {
    color: #34453d;
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.7;
}

.candidate-modal-close {
    position: fixed;
    top: max(18px, 7vh);
    right: max(18px, calc((100vw - 1180px) / 2 + 18px));
    z-index: 2;
    width: 48px;
    height: 48px;
    padding: 0 0 3px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font: 400 34px/1 system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.candidate-modal-close:hover {
    background: var(--green-2);
}

@media (max-width: 680px) {
    .candidate-card {
        height: auto;
    }

    .candidate-photo-wrap {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .candidate-content {
        height: 270px;
        padding-bottom: 72px;
    }

    .candidate-more {
        right: 18px;
        bottom: 16px;
    }
}

@media (max-width: 760px) {
    .candidate-modal {
        padding: 0;
        background: var(--paper);
        backdrop-filter: none;
    }

    .candidate-modal-panel {
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(320px, 52dvh) auto;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .candidate-modal-photo {
        min-height: 320px;
    }

    .candidate-modal-content {
        min-height: 48dvh;
        padding: 30px 22px 44px;
        overflow: visible;
    }

    .candidate-modal-content h2 {
        margin-right: 52px;
        font-size: clamp(32px, 10vw, 44px);
    }

    .candidate-modal-description {
        font-size: 17px;
        line-height: 1.65;
    }

    .candidate-modal-close {
        top: 14px;
        right: 14px;
        width: 46px;
        height: 46px;
        background: rgba(15, 60, 43, 0.94);
    }
}

@media (prefers-reduced-motion: reduce) {
    .candidate-more {
        transition: none;
    }
}
