:root {
    color-scheme: light;
    --bg: #f5f5f5;
    --paper: #ffffff;
    --ink: #221f1a;
    --muted: #6d675e;
    --line: #dedede;
    --accent: #54a33a;
    --accent-dark: #347425;
    --gold: #f4c340;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.topline {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #2f7f24, #75bc43 35%, #f0c63d, #75bc43 70%, #2f7f24);
    background-size: 220% 100%;
    animation: pasture-line 12s ease-in-out infinite;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 1120px);
    padding: 14px 20px 10px;
    text-decoration: none;
}

.brand img {
    width: min(520px, 92vw);
    height: auto;
    max-height: 230px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
    transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover img {
    transform: translateY(-2px);
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.16));
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #333;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

nav a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.hero {
    min-height: 520px;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(42px, 6vw, 72px) clamp(18px, 4vw, 56px);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12)),
        var(--hero-image, linear-gradient(135deg, #5b6a4b, #d5c295));
    background-size: cover;
    background-position: center calc(50% + var(--hero-offset, 0px));
    color: #fff;
    overflow: hidden;
}

.hero-content {
    width: min(920px, 100%);
    padding: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 5px solid var(--accent);
    color: var(--ink);
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    transform: translateZ(0);
}

.hero p {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.intro-text {
    max-width: 720px;
    margin: 20px auto 0;
    font-size: clamp(17px, 2vw, 21px);
    color: var(--muted);
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button {
    margin-top: 26px;
}

.button:hover,
button:hover {
    background: var(--accent-dark);
}

.button,
button,
input,
textarea,
a {
    outline-offset: 3px;
}

.button,
button {
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover {
    box-shadow: 0 8px 18px rgba(52, 116, 37, 0.24);
    transform: translateY(-1px);
}

.section,
.split-section,
.contact-section {
    padding: clamp(48px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 6px solid #fff;
    border-bottom: 6px solid #fff;
}

.photo-strip img {
    width: 100%;
    height: clamp(160px, 22vw, 290px);
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.photo-strip img:hover {
    filter: saturate(1.08);
    transform: scale(1.025);
}

.section-heading {
    max-width: 1080px;
    margin: 0 auto 26px;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.offer-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.offer-grid article {
    min-height: 178px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper);
    border-top: 4px solid var(--accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.offer-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(84, 163, 58, 0.55);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.09);
}

.offer-grid p,
.offer-grid li,
.split-section p,
.split-section li,
.contact-section p {
    color: var(--muted);
}

.offer-grid ul,
.check-list {
    margin: 0;
    padding-left: 20px;
}

.offer-grid li,
.check-list li {
    margin: 7px 0;
}

.muted-section {
    background: #f8f7f2;
}

.compact-section {
    background: #fff;
}

.compact-section .section-heading {
    max-width: 920px;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 24px;
}

.logo-row img {
    width: auto;
    height: 72px;
    object-fit: contain;
    background: #fff;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    background: #fff;
}

.split-section > div,
.contact-section > div {
    max-width: 560px;
}

.split-section img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.13);
}

.gallery-section {
    background: #eef2ea;
}

.gallery {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.gallery a {
    display: block;
    background: #ddd;
    border-radius: 0;
    overflow: hidden;
    border: 4px solid #fff;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.gallery a:hover img {
    filter: saturate(1.12) contrast(1.04);
    transform: scale(1.07);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
    gap: clamp(28px, 5vw, 64px);
    background: var(--paper);
}

.contact-line {
    margin: 8px 0;
}

form {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fbfaf6;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c9c0b1;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

.captcha-wrap {
    max-width: 100%;
    overflow: auto;
}

.hidden-field {
    position: absolute;
    left: -10000px;
}

.notice {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.notice.success {
    background: #e4f4e8;
    color: #1c5c37;
}

.notice.error {
    background: #ffe7df;
    color: #8a2c19;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 4vw, 56px);
    color: #fff;
    background: #333;
    border-top: 5px solid var(--accent);
}

.js-ready .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 70px clamp(18px, 4vw, 70px);
    background: rgba(18, 24, 18, 0.92);
}

.lightbox img {
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 140px);
    object-fit: contain;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    z-index: 101;
    width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2b1f;
    font-size: 30px;
    line-height: 1;
}

.lightbox-close {
    top: 18px;
    right: 18px;
}

.lightbox-prev {
    left: 18px;
    top: 50%;
}

.lightbox-next {
    right: 18px;
    top: 50%;
}

@keyframes pasture-line {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 860px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-grid,
    .split-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

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

    .photo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    nav a {
        padding: 12px 14px;
        font-size: 13px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 22px;
    }

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

    form {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js-ready .reveal {
        opacity: 1;
        transform: none;
    }

}
