:root {
    --background: #f6f1e8;
    --foreground: #17201a;
    --muted: #5f675e;
    --paper: #fffaf0;
    --line: #ded2bf;
    --green: #245b45;
    --blue: #1f6380;
    --brick: #9b3f2f;
    --gold: #c19038;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-shell {
    min-height: 100vh;
}

.home-hero {
    min-height: 76vh;
    padding: 20px;
    position: relative;
    color: #fffaf0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(14, 29, 22, 0.9), rgba(14, 29, 22, 0.42)),
        url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Viekšniai%20vandens%20malūnas%20-%20panoramio.jpg") center / cover;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(180deg, transparent, rgba(246, 241, 232, 0.98));
    pointer-events: none;
}

.topbar {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-link,
.brand-logo,
.text-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    min-height: 48px;
}

.brand-logo img {
    width: clamp(260px, 46vw, 440px);
    max-width: calc(100vw - 48px);
    height: auto;
    display: block;
}

.text-link {
    color: var(--green);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: 0 auto 40px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.16;
    letter-spacing: 0;
}

.lead {
    max-width: 690px;
    margin: 22px 0 0;
    color: inherit;
    font-size: 19px;
    line-height: 1.55;
}

.places-section,
.place-article,
.site-footer,
.not-found {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.places-section {
    padding: 52px 0 34px;
}

.section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 22px;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.place-card {
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, border-color 180ms ease;
}

.place-card:hover {
    transform: translateY(-3px);
    border-color: var(--green);
}

.place-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #d8ccb9;
}

.card-copy {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.card-copy span {
    color: var(--brick);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.site-footer {
    padding: 34px 0 42px;
    display: grid;
    gap: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-group {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.site-footer strong {
    display: block;
    color: var(--foreground);
}

.site-footer p {
    margin: 0;
}

.logo-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
}

.logo-row img {
    width: 100%;
    height: 78px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 10px;
}

.partner-logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.partner-logo-row img {
    width: min(230px, 100%);
    height: 78px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 10px;
}

.footer-executor img {
    width: min(205px, 100%);
    height: 88px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 10px;
}

.footer-year {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.place-shell {
    padding-top: 20px;
}

.place-article,
.not-found {
    padding: 36px 0 48px;
}

.place-article {
    display: grid;
    gap: 34px;
}

.place-hero {
    max-width: 860px;
}

.place-hero h1,
.not-found h1 {
    color: var(--green);
    font-size: clamp(40px, 7vw, 74px);
}

.place-hero .lead,
.not-found .lead {
    color: var(--muted);
}

.meta-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-row span {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.watch-section {
    margin-top: 0;
}

.video-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(23, 32, 26, 0.14);
    background: linear-gradient(135deg, rgba(36, 91, 69, 0.92), rgba(31, 99, 128, 0.86)), #17201a;
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.button-link {
    margin-top: 24px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
}

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

@media (max-width: 680px) {
    .home-hero {
        min-height: 72vh;
        padding: 16px;
    }

    .hero-content {
        margin-bottom: 28px;
    }

    h1 {
        font-size: 42px;
    }

    .lead {
        font-size: 17px;
    }

    .places-section,
    .place-article,
    .site-footer,
    .not-found {
        width: min(100% - 28px, 1120px);
    }

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

    .site-footer {
        gap: 14px;
    }

    .logo-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .logo-row img,
    .partner-logo-row img {
        height: 70px;
        padding: 8px;
    }

    .logo-row img:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 10px) / 2);
    }

    .footer-executor img {
        height: 78px;
        padding: 8px;
    }
}
