/* OD Oponešice – public website */

:root {
    --lime: #9BC628;
    --green: #2A7D2F;
    --green-hover: #1F5E24;
    --green-dark: #173D1C;
    --black: #111511;
    --text: #1A1A1A;
    --muted: #4A524A;
    --bg-light: #F5F7F2;
    --border: #E1E7DC;
    --tint: #EEF5E0;
    --font-head: 'Kanit', system-ui, sans-serif;
    --font-body: 'Exo 2', system-ui, sans-serif;
    --radius: 10px;
}

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

body {
    margin: 0;
    /* Sticky footer: on short pages the footer stays at the bottom of the window. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    color: var(--text);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--lime); color: var(--black); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.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; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
    padding: 15px 26px; border-radius: 6px; border: 1.5px solid transparent;
    cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: #AED23F; color: var(--black); }
.btn-outline { border-color: var(--green); color: var(--green); font-weight: 600; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; font-weight: 600; }
.btn-outline-light:hover { background: #fff; color: var(--green-dark); }

/* Section headings */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head p { max-width: 460px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.eyebrow { display: block; font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.section-title { font-weight: 700; font-size: 40px; line-height: 1.1; }
.more-link { font-weight: 700; font-size: 16px; padding: 10px 0; }

/* Top bar */
.topbar { background: var(--black); color: #D8DED6; font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.topbar-group { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--lime); }
.topbar-item { display: inline-flex; gap: 8px; align-items: center; }
.topbar-item .icon { color: var(--lime); flex: none; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #E4E8E1; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }

.logo { display: flex; gap: 14px; align-items: center; color: #111; }
.logo:hover { color: #111; }
.logo-mark {
    width: 58px; height: 52px; border-radius: 8px; flex: none;
    background: linear-gradient(135deg, var(--lime) 0%, var(--green) 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 800; font-size: 30px; color: #fff; letter-spacing: -1px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: .5px; }
.logo-sub { font-weight: 300; font-size: 14px; letter-spacing: 3px; margin-top: 3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; }
.main-nav a { color: var(--text); font-weight: 600; font-size: 16px; padding: 10px 0; display: block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.main-nav .btn { padding: 12px 22px; color: #fff; }
.main-nav .btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; width: 48px; height: 48px; padding: 0; cursor: pointer; color: var(--text); align-items: center; justify-content: center; }
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
    .site-header .container { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; flex-basis: 100%; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
    .main-nav li a { padding: 12px 0; border-top: 1px solid var(--border); }
    .main-nav li:last-child a { margin-top: 12px; border-top: 0; text-align: center; }
    .logo-mark { width: 48px; height: 44px; font-size: 25px; }
    .logo-name { font-size: 23px; }
    .logo-sub { font-size: 12px; letter-spacing: 2.4px; }
}

/* Hero slider */
.hero { background: var(--green-dark); color: #fff; position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: hero-fade .5s ease; }
.no-js .hero-slide:first-child { display: block; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active { animation: none; } }

.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 104px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero .eyebrow { color: var(--lime); margin: 0; }
.hero .hero-title { font-weight: 800; font-size: clamp(36px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.5px; overflow-wrap: anywhere; }
.hero-lead { font-size: 19px; line-height: 1.55; color: #D6E2D3; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-media { flex: 1 1 460px; min-width: 0; height: 400px; border-radius: var(--radius); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 40px; }
.hero-controls .container { display: flex; align-items: center; gap: 16px; }
.hero-dots { display: flex; gap: 4px; }
.hero-dot { background: none; border: 0; padding: 12px 2px; cursor: pointer; }
.hero-dot span { display: block; width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: width .2s, background-color .2s; }
.hero-dot[aria-current="true"] span { width: 34px; background: var(--lime); }
.hero-arrow { background: none; border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 50%; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-arrow:hover { border-color: var(--lime); color: var(--lime); }
.no-js .hero-controls { display: none; }

@media (max-width: 700px) {
    .hero-inner { padding-top: 48px; gap: 32px; }
    .hero .hero-title { font-size: 34px; }
    .hero-lead { font-size: 17px; }
    .hero-media { height: 240px; flex-basis: 100%; }
    .section { padding: 56px 0; }
    .section-title { font-size: 32px; }
}

/* Placeholders for photos that are not available yet */
.ph {
    background-color: #E9EFE4;
    background-image: repeating-linear-gradient(135deg, rgba(42, 125, 47, .08) 0 12px, transparent 12px 24px);
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #4A5A47; font-size: 15px; padding: 24px;
}
.ph-dark {
    background-color: #22472A;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px);
    color: #B9CBB5;
}

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tile {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
    display: flex; gap: 18px; align-items: flex-start; color: var(--text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { color: var(--text); border-color: var(--green); box-shadow: 0 8px 24px rgba(23, 61, 28, .08); transform: translateY(-2px); }
.tile-icon { flex: none; width: 52px; height: 52px; border-radius: 8px; background: var(--tint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.tile-body { display: flex; flex-direction: column; gap: 6px; flex: 1; align-self: stretch; }
.tile-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.2; }
.tile-text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tile-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; color: var(--green); }
.tile-more .icon { transition: transform .15s; }
.tile:hover .tile-more { text-decoration: underline; text-underline-offset: 3px; }
.tile:hover .tile-more .icon { transform: translateX(3px); }

/* Stats band */
.stats { background: var(--green); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: 52px; line-height: 1; }
.stat-label { font-size: 16px; color: #E6F0E3; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
@media (max-width: 400px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
a.news-card:hover { color: var(--text); border-color: var(--green); box-shadow: 0 8px 24px rgba(23, 61, 28, .08); }
.news-card-media { height: 220px; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.news-date { align-self: flex-start; background: var(--tint); color: var(--green-hover); font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 4px; }
.news-title { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.2; }
.news-excerpt { font-size: 15px; line-height: 1.55; color: var(--muted); }
.empty-note { color: var(--muted); font-size: 17px; }

/* Brands */
.brands { border-bottom: 1px solid #E4E8E1; padding: 64px 0; }
.brands h2 { font-weight: 700; font-size: 28px; text-align: center; margin-bottom: 28px; }
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px 16px; }
.brand-list img { width: 100%; height: auto; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-info .eyebrow { margin: 0; }
.contact-details { display: flex; flex-wrap: wrap; gap: 24px 40px; font-size: 16px; line-height: 1.6; }
.contact-details div { display: flex; flex-direction: column; }
.contact-details strong { font-weight: 600; }
.map { border: 0; width: 100%; height: 300px; border-radius: var(--radius); background: var(--bg-light); }

.form-card { flex: 1 1 420px; min-width: 0; background: var(--bg-light); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form-card h3 { font-weight: 600; font-size: 26px; }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-row .field { flex: 1 1 180px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input, .field textarea {
    font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px;
    border: 1px solid #C9D3C4; border-radius: 6px; background: #fff; color: var(--text); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid rgba(42, 125, 47, .25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-weight: 500; font-size: 14px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-card .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 6px; font-weight: 500; }
.alert-success { background: var(--tint); color: var(--green-hover); border: 1px solid #C8DFA6; }
.alert-error { background: #FDECEA; color: #8A1C12; border: 1px solid #F3C1BB; }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }

/* Subpages */
.page-hero { background: var(--green-dark); color: #fff; padding: 40px 0 48px; }
.breadcrumb ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: #B9CBB5; }
.breadcrumb li + li::before { content: "›"; margin: 0 10px; color: #7E9879; }
.breadcrumb a { color: #D6E2D3; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current] { color: #fff; }
.page-hero-title { display: flex; align-items: center; gap: 18px; }
.page-hero-icon { flex: none; width: 60px; height: 60px; border-radius: 10px; background: rgba(155, 198, 40, .16); color: var(--lime); display: flex; align-items: center; justify-content: center; }
.page-hero h1 { font-weight: 800; font-size: 48px; line-height: 1.05; letter-spacing: -.5px; }
.page-hero-lead { margin-top: 16px; font-size: 19px; line-height: 1.55; color: #D6E2D3; max-width: 640px; }
@media (max-width: 700px) {
    .page-hero h1 { font-size: 34px; }
    .page-hero-icon { width: 48px; height: 48px; }
    .page-hero-lead { font-size: 17px; }
}

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .page-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: #2B302B; }
.prose > * + * { margin-top: 18px; }
.prose .lead { font-size: 20px; line-height: 1.6; color: var(--text); }
.prose h2 { font-weight: 700; font-size: 26px; line-height: 1.2; margin-top: 40px; color: var(--text); }
.prose h3 { font-weight: 600; font-size: 21px; margin-top: 28px; color: var(--text); }
.prose h2 + p, .prose h3 + p, .prose h2 + ul { margin-top: 12px; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul:not(.model-grid) li { position: relative; padding-left: 28px; }
.prose ul:not(.model-grid) li + li { margin-top: 12px; }
.prose ul:not(.model-grid) li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--lime); }
/* Supplier box with a logo (e.g. Krmné směsi → AGRO Jevišovice) */
.prose .supplier { display: flex; align-items: center; gap: 20px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.prose .supplier img { flex: none; width: 96px; height: auto; }
.prose .supplier p { margin: 0; font-size: 18px; }
.prose ul.list-columns { columns: 2 240px; column-gap: 32px; }
.prose ul.list-columns li, .prose ul.list-columns li + li { break-inside: avoid; margin: 0; padding-bottom: 12px; }
.prose strong { font-weight: 600; color: var(--text); }

.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.model-grid li { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.model-grid li:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(23, 61, 28, .08); }
.model-grid a { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; cursor: zoom-in; }
.model-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.model-grid span { font-family: var(--font-head); font-weight: 600; font-size: 18px; text-align: center; color: var(--text); }

.gallery-title { font-weight: 700; font-size: 26px; margin: 48px 0 20px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

.page-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 112px; }
@media (max-width: 960px) { .page-aside { position: static; } }
.aside-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.aside-card h2 { font-weight: 600; font-size: 21px; margin-bottom: 12px; }
.aside-card-contact { background: var(--green-dark); border-color: var(--green-dark); color: #D6E2D3; }
.aside-card-contact h2 { color: #fff; }
.aside-contacts { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aside-contacts li { display: flex; align-items: center; gap: 10px; }
.aside-contacts .icon { color: var(--lime); flex: none; }
.aside-contacts a { color: #fff; font-weight: 600; }
.aside-contacts a:hover { color: var(--lime); }
.aside-card-contact .btn { width: 100%; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); font-weight: 500; border-top: 1px solid var(--border); }
.aside-links li:first-child a { border-top: 0; }
.aside-links a:hover { color: var(--green); }
.aside-links .icon { color: var(--green); flex: none; }
.aside-links a[aria-current="page"] { color: var(--green); font-weight: 700; background: var(--tint); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 6px; border-top-color: transparent; }
.aside-links li:has(a[aria-current="page"]) + li a { border-top-color: transparent; }

/* Contacts page */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.contact-card h2 { font-weight: 600; font-size: 22px; line-height: 1.2; }
.contact-card p { color: var(--muted); line-height: 1.6; }
.contact-card-role { font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); }
.contact-card-main { background: var(--green-dark); border-color: var(--green-dark); color: #D6E2D3; }
.contact-card-main h2 { color: #fff; }
.contact-card-main p { color: #D6E2D3; }
.contact-card-main .contact-card-role { color: var(--lime); }
.contact-lines { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-lines li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.contact-lines .icon { flex: none; color: var(--green); }
.contact-lines a { font-weight: 600; }
.contact-card-main .contact-lines .icon { color: var(--lime); }
.contact-card-main .contact-lines a { color: #fff; }
.contact-card-main .contact-lines a:hover { color: var(--lime); }
.contact-ids { font-size: 14px; margin-top: 4px; }
.contact-info .more-link { align-self: flex-start; }

/* News list and detail */
.page-hero-date { display: inline-block; background: var(--lime); color: var(--black); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; }
.news-article { max-width: 860px; }
.news-article-photo { display: block; margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; }
.news-article-photo img { width: 100%; max-height: 520px; object-fit: cover; }
.news-back { margin-top: 48px; font-weight: 700; }
.pager { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: 48px; color: var(--muted); }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 14, 10, .94); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 14, 10, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 160px); }
.lightbox-figure img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); user-select: none; }
.lightbox-caption { font-size: 15px; color: #C9D1C6; text-align: center; }
.lightbox-btn { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 50%; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.lightbox-btn:hover { background: var(--lime); border-color: var(--lime); color: var(--black); }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 24px; top: 24px; }
.lightbox-btn[hidden] { display: none; }
.lightbox-counter { position: absolute; left: 24px; top: 36px; font-size: 15px; font-weight: 600; color: #C9D1C6; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
    .lightbox-figure { max-width: 100vw; padding: 0 8px; }
    .lightbox-figure img { max-height: calc(100dvh - 180px); }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; transform: none; }
    .lightbox-prev { left: calc(50% - 64px); }
    .lightbox-next { right: calc(50% - 64px); }
    .lightbox-close { top: 16px; right: 16px; }
    .lightbox-counter { top: 30px; left: 16px; }
}

/* Footer */
.site-footer { background: var(--black); color: #C9D1C6; font-size: 15px; line-height: 1.7; }
.footer-main { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; }
.footer-col:first-child { flex-basis: 260px; gap: 4px; }
.footer-heading { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: #fff; margin-bottom: 8px; }
.footer-company { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 6px; }
.site-footer a { color: #C9D1C6; }
.site-footer a:hover { color: var(--lime); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid #2A302A; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: #9AA597; }
.footer-bottom a { color: #9AA597; }

/* Error pages (404, 419) */
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.error-subtitle { margin: 40px 0 16px; font-size: 24px; }
.error-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; max-width: 900px; }
.error-links a { border-top: 0; border-bottom: 1px solid var(--border); }

/* Submit button while the form is being sent (public/js/site.js) */
.btn.is-loading { cursor: progress; opacity: .85; gap: 10px; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
