@font-face { font-family: Karnivor; src: url('../fonts/KARNIVOR.ttf') format('truetype'); font-display: swap; }

:root {
    --ink: #08091d;
    --blue: #063f8c;
    --blue-light: #1266c7;
    --paper: #f5f6f8;
    --line: #dfe2e8;
    --muted: #656979;
    --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Open Sans", Arial, sans-serif; }
a { color: inherit; }

.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px max(24px, calc((100vw - 1180px) / 2));
    background: var(--white);
}
.header-brands { display: flex; align-items: center; gap: 28px; }
.header-brands a { display: flex; align-items: center; }
.site-header img { display: block; width: auto; height: auto; }
.site-header .abbud-logo { width: 190px; }
.site-header .agro-logo { width: 150px; }
.back-link { color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }

.hero {
    min-height: 390px;
    display: grid;
    align-items: center;
    padding: 52px max(24px, calc((100vw - 1180px) / 2));
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(4, 7, 29, .95) 0%, rgba(4, 7, 29, .82) 45%, rgba(4, 7, 29, .32) 100%),
        url('../images/img_banner_02.jpg') center 44% / cover no-repeat;
}
.hero-content { max-width: 720px; }
.eyebrow { margin: 0 0 12px; color: #82b9fb; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--white); font-family: Karnivor, Arial, sans-serif; font-size: clamp(40px, 5.4vw, 64px); font-weight: 400; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.hero-content > p:not(.eyebrow) { max-width: 590px; margin: 22px 0 0; color: #e4e8f1; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.primary-button, .secondary-button, .download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.page .primary-button,
.page .primary-button:visited { color: var(--white); background: var(--blue-light); }
.secondary-button { color: var(--white); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.page .primary-button:hover,
.page .primary-button:focus,
.page .primary-button:active { color: var(--white); background: var(--blue); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }

.calendar { max-width: 1180px; margin: 0 auto; padding: 68px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3.2vw, 39px); }
.download-link, .contact-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }

.filters { display: grid; grid-template-columns: minmax(300px, 1fr) 190px 190px; gap: 12px; margin-top: 24px; }
.filters label { display: block; margin: 0; }
.filters input, .filters select { width: 100%; height: 52px; margin: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background-color: var(--white); font: inherit; font-size: 14px; }
.filters select { appearance: auto; }
.filters input:focus, .filters select:focus { border-color: var(--blue-light); outline: 3px solid rgba(18,102,199,.12); }
.search-field { position: relative; }
.search-field span:not(.sr-only) { position: absolute; top: 11px; left: 16px; color: var(--blue); font-size: 25px; }
.search-field input { padding-left: 48px; }

.results-bar { display: flex; justify-content: space-between; gap: 20px; margin: 25px 0 16px; color: var(--muted); font-size: 13px; }
.results-bar button { padding: 0; border: 0; color: var(--blue); background: none; font: inherit; font-weight: 700; cursor: pointer; }

.championship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.championship-card { min-height: 250px; display: grid; grid-template-columns: 112px 1fr; background: var(--white); border: 1px solid transparent; box-shadow: 0 8px 24px rgba(8,9,29,.06); transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.championship-card[hidden] { display: none; }
.championship-card:hover { transform: translateY(-4px); border-color: rgba(6,63,140,.25); box-shadow: 0 15px 34px rgba(8,9,29,.12); }
.championship-card.featured { border-color: rgba(18,102,199,.35); }
.date-block { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); background: var(--ink); }
.date-block strong { font-size: 27px; }
.date-block span { margin-top: 5px; color: #9bc7fa; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.date-block .cross-month { display: flex; align-items: center; flex-direction: column; font-size: 17px; line-height: 1.15; }
.date-block .cross-month span { margin: 0; color: var(--white); font-size: inherit; letter-spacing: 0; }
.date-block .cross-month i { margin: 4px 0; color: #9bc7fa; font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-content { padding: 25px; }
.tag { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tag.regional { color: #165d42; background: #dcf3e8; }
.tag.national { color: #084d98; background: #dfedfd; }
.tag.featured-tag { color: #6d4a08; background: #fff0c8; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card-content h3 { margin: 13px 0 10px; font-family: "Open Sans", Arial, sans-serif; font-size: 19px; font-weight: 700; line-height: 1.35; text-transform: uppercase; }
.card-content > p, details p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
details { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
summary { color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
details p { margin-top: 11px; }
.details-content { margin-top: 13px; }
.details-content strong { display: block; margin-top: 12px; color: var(--ink); font-size: 12px; text-transform: uppercase; }
.details-content strong:first-child { margin-top: 0; }

.empty-state { padding: 55px; text-align: center; background: var(--white); border: 1px dashed #bdc2cc; }
.empty-state strong { font-size: 20px; }
.empty-state p { color: var(--muted); }
.public-empty .primary-button { margin-top: 15px; }

.history-section { padding: 78px max(24px, calc((100vw - 1180px) / 2)); background: #e9ebf0; }
.history-heading { max-width: 680px; }
.history-heading h2 { margin: 0; font-size: clamp(28px, 3.2vw, 39px); }
.history-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.history-document { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 28px; margin-top: 30px; padding: 28px; background: var(--white); box-shadow: 0 8px 24px rgba(8,9,29,.06); }
.history-year { color: var(--blue); font-size: 29px; font-weight: 900; }
.history-document strong { font-size: 18px; }
.history-document p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.history-actions { display: flex; gap: 10px; }
.history-actions a { padding: 12px 15px; color: var(--blue); border: 1px solid #cbd6e6; font-size: 12px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.history-actions a:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }

.document-note { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 50px; padding: 30px; color: var(--white); background: var(--ink); }
.document-note > div { display: flex; align-items: center; gap: 20px; }
.document-note > div > span { display: grid; width: 58px; height: 58px; place-items: center; color: var(--ink); background: var(--white); font-weight: 900; }
.document-note p { margin: 6px 0 0; color: #bfc3cf; line-height: 1.5; }

.site-footer { padding: 0 max(24px, calc((100vw - 1180px) / 2)); color: var(--white); background: #050521; }
.footer-main { display: grid; grid-template-columns: minmax(250px, 1.3fr) .7fr 1.2fr; gap: clamp(50px, 8vw, 120px); padding: 62px 0 54px; }
.footer-about img { display: block; width: 230px; height: auto; }
.footer-about p { max-width: 390px; margin: 22px 0 0; color: #566677; line-height: 1.65; }
.site-footer h2 { margin: 7px 0 23px; color: var(--white); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-links a, .footer-contact a { color: #d8dde4; text-decoration: none; transition: color 160ms ease; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: #72adf2; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: #566677; font-style: normal; line-height: 1.5; }
.footer-contact > div { display: grid; grid-template-columns: 105px 1fr; column-gap: 16px; }
.footer-contact > div a + a { grid-column: 2; }
.footer-contact > div span { color: #566677; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 28px 0 34px; border-top: 1px solid #394654; }
.footer-bottom p { max-width: 700px; margin: 0; color: #566677; font-size: 13px; line-height: 1.6; }
.footer-bottom a { color: var(--white); font-weight: 700; }
.footer-social { display: flex; align-items: center; gap: 15px; white-space: nowrap; font-size: 13px; }
.footer-social span { color: #566677; font-style: italic; }
.footer-social a { color: var(--white); font-weight: 700; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1228px) {
    .calendar { width: calc(100% - 48px); }
}

@media (max-width: 820px) {
    .section-heading { align-items: flex-start; flex-direction: column; }
    .filters { grid-template-columns: 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .championship-grid { grid-template-columns: 1fr; }
    .document-note { align-items: flex-start; flex-direction: column; }
    .history-document { grid-template-columns: 90px 1fr; }
    .history-actions { grid-column: 1 / -1; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .site-header { height: 70px; }
    .header-brands { gap: 10px; }
    .site-header .abbud-logo { width: min(39vw, 155px); }
    .site-header .agro-logo { width: min(31vw, 120px); }
    .hero { min-height: 430px; background-position: 55% center; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .calendar { width: calc(100% - 32px); padding: 55px 0 65px; }
    .filters { grid-template-columns: 1fr; }
    .search-field { grid-column: auto; }
    .championship-card { grid-template-columns: 1fr; }
    .date-block { min-height: 76px; }
    .date-block strong { font-size: 23px; }
    .document-note > div { align-items: flex-start; }
    .history-section { padding-block: 58px; }
    .history-document { grid-template-columns: 1fr; padding: 23px; }
    .history-actions { grid-column: auto; align-items: stretch; flex-direction: column; }
    .history-actions a { text-align: center; }
    .footer-main { grid-template-columns: 1fr; gap: 38px; padding-block: 48px; }
    .footer-about { grid-column: auto; }
    .footer-contact > div { grid-template-columns: 95px 1fr; }
    .footer-social { flex-wrap: wrap; white-space: normal; }
}

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