/* Гея 04 – landscaping and cleaning, Бургас.
   The colours of the firm's logo (a red flower on grass) over a cut through the soil.
   Sofia Sans Extra Condensed for headings, Noto Sans for text. One light theme with dark bands. */

@font-face {
    font-family: "Sofia Sans Extra Condensed";
    src: url("/fonts/sofia-sans-extra-condensed.woff2") format("woff2");
    font-weight: 100 1000;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/fonts/noto-sans.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --fir: #173d1f;
    --fir-deep: #0f2a15;
    --fir-soft: #24542d;
    --grass: #3d9a2b;
    --grass-ink: #2a6f1f;
    --poppy: #c4261f;
    --poppy-bright: #e3322b;
    --yolk: #f7d443;
    --leaf: #f0f6ea;
    --paper: #ffffff;
    --soil: #3b2717;
    --ink: #13241a;
    --muted: #465a4b;
    --line: #d3e2c9;
    --on-dark: #ffffff;
    --on-dark-soft: #d7e8cf;
    --focus: #c4261f;
    --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
    --text: "Noto Sans", system-ui, sans-serif;
    --radius: 22px;
    --wrap: 1180px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

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

img {
    height: auto;
    display: block;
}

a {
    color: var(--grass-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--poppy);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.005em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h3 {
    font-size: 1.7rem;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--yolk);
    color: var(--ink);
    font-weight: 700;
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    border-bottom: 1px solid rgba(23, 61, 31, 0.12);
}

.top-row {
    display: flex;
    align-items: center;
    gap: 12px 24px;
    min-height: 76px;
    flex-wrap: wrap;
    padding-block: 6px;
}

.brand {
    flex: none;
    border-radius: 10px;
}

.brand img {
    height: 68px;
    width: auto;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    margin-left: auto;
}

.nav a {
    position: relative;
    padding: 8px 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: 10px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 3px;
    height: 3px;
    border-radius: 3px;
    background: var(--grass);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a[aria-current]::after {
    transform: scaleX(1);
}

.nav a[aria-current="page"] {
    color: var(--grass-ink);
}

.top-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang {
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
    font-weight: 700;
}

.lang a,
.lang span {
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
}

.lang span {
    background: var(--leaf);
    color: var(--ink);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--poppy);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.call:hover {
    background: #a51d17;
    color: #fff;
    transform: translateY(-1px);
}

.menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 2px solid var(--fir);
    border-radius: 999px;
    background: transparent;
    color: var(--fir);
    font: 700 0.95rem var(--text);
    cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -5px;
}

.menu-bars::after {
    top: 5px;
}

@media (max-width: 1020px) {
    .nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .top-tools {
        margin-left: auto;
    }

    /* with the script: the navigation folds into a panel behind the menu button */
    .has-menu .menu-btn {
        display: inline-flex;
    }

    .has-menu .nav {
        display: none;
        flex-direction: column;
        padding: 6px 0 14px;
    }

    .has-menu.menu-open .nav {
        display: flex;
    }

    .has-menu .nav a {
        padding: 12px 10px;
        font-size: 1.05rem;
        border-top: 1px solid var(--line);
        border-radius: 0;
    }

    .has-menu .nav a::after {
        left: 0;
        right: auto;
        top: 12px;
        bottom: 12px;
        width: 4px;
        height: auto;
        transform: scaleY(0);
    }

    .has-menu .nav a[aria-current]::after {
        transform: scaleY(1);
    }

    .has-menu .nav a[aria-current] {
        padding-left: 16px;
    }
}

@media (max-width: 560px) {
    .brand img {
        height: 52px;
    }

    .top-row {
        gap: 8px 10px;
    }

    .call {
        padding: 9px 12px;
        font-size: 0.92rem;
    }

    .lang a,
    .lang span {
        padding: 5px 6px;
    }
}

@media (max-width: 400px) {
    .menu-btn {
        padding: 8px 10px;
        font-size: 0;
        gap: 0;
    }

    .menu-btn .menu-bars {
        margin: 5px 0;
    }
}

/* ---- buttons and links ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-yolk {
    background: var(--yolk);
    color: var(--ink);
}

.btn-yolk:hover {
    background: #ffe36b;
    color: var(--ink);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--fir);
}

.btn-poppy {
    background: var(--poppy);
    color: #fff;
}

.btn-poppy:hover {
    background: #a51d17;
    color: #fff;
}

.btn-outline {
    border-color: var(--fir);
    color: var(--fir);
    font-size: 0.92rem;
    min-height: 44px;
    padding: 10px 18px;
    text-align: center;
}

.btn-outline:hover {
    background: var(--fir);
    color: #fff;
}

.link-arrow {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

.link-arrow::after {
    content: " ›";
}

.link-arrow.on-dark {
    color: var(--yolk);
}

/* ---- the home hero: fir green above a cut through the soil ---- */

.hero {
    --focus: var(--yolk);
    position: relative;
    color: var(--on-dark);
    background:
        radial-gradient(70% 60% at 85% 10%, rgba(61, 154, 43, 0.35), transparent 70%),
        radial-gradient(50% 50% at 0% 100%, rgba(247, 212, 67, 0.08), transparent 70%),
        var(--fir);
    padding-top: clamp(32px, 6vw, 72px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px 48px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: clamp(12px, 2.5vw, 32px);
}

.hero h1 {
    font-size: clamp(3.4rem, 10.5vw, 8.6rem);
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: -0.01em;
    margin-bottom: 0.25em;
    color: #fff;
}

.hero .lead {
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    color: var(--on-dark-soft);
    max-width: 36em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 14px;
}

.hero-small {
    color: var(--on-dark-soft);
    font-size: 0.95rem;
}

.hero-small a {
    color: #fff;
}

.hero-arch {
    margin: 0;
    justify-self: end;
    width: min(100%, 400px);
}

.hero-arch a {
    display: block;
    border-radius: 999px 999px 28px 28px;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.hero-arch img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 40% 50%;
}

.ground {
    display: block;
    width: 100%;
    height: clamp(150px, 17vw, 250px);
    margin-top: clamp(-28px, -2vw, -8px);
    position: relative;
}

.blades,
.flower {
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

.blades {
    animation: grow 1.1s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.b0 { animation-delay: 0.1s; }
.b1 { animation-delay: 0.2s; }
.b2 { animation-delay: 0.3s; }
.b3 { animation-delay: 0.4s; }
.b4 { animation-delay: 0.5s; }
.b5 { animation-delay: 0.6s; }
.b6 { animation-delay: 0.7s; }
.b7 { animation-delay: 0.8s; }

.flower {
    animation: bloom 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both;
    animation-delay: calc(1s + var(--f, 0) * 0.7s);
}

@keyframes grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes bloom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

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

    .hero-arch {
        justify-self: start;
        width: min(78%, 320px);
    }

    .hero-arch img {
        aspect-ratio: 1 / 1;
    }
}

/* ---- sections ---- */

.band {
    padding-block: clamp(56px, 8vw, 104px);
}

.band-leaf {
    background: var(--leaf);
}

.h-section {
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    font-weight: 900;
    color: var(--fir);
}

.section-lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 40em;
}

.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 56px;
    align-items: start;
}

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

.prose {
    max-width: 38em;
}

.prose h2 {
    color: var(--fir);
}

/* ---- what we do: a bento ---- */

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

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--leaf);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.tile:hover {
    color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -24px rgba(15, 42, 21, 0.55);
}

.tile strong {
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.tile-note {
    border: 1px solid var(--line);
    background: var(--paper);
}

.tile-note strong {
    color: var(--fir);
}

a.tile-note strong {
    color: var(--grass-ink);
}

.tile-green {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
    justify-content: flex-end;
    color: #fff;
    background: var(--fir-deep);
    --focus: var(--yolk);
}

.tile-green img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tile-green::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(15, 42, 21, 0.95) 0%, rgba(15, 42, 21, 0.75) 40%, rgba(15, 42, 21, 0) 75%);
}

a.tile-green:hover {
    color: #fff;
}

a.tile-green:hover img {
    transform: scale(1.04);
}

.tile-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tile-title {
    font-size: clamp(2.4rem, 4.4vw, 3.4rem) !important;
    font-weight: 900 !important;
}

.tile-clean {
    grid-column: span 2;
    background: var(--yolk);
    min-height: 200px;
    justify-content: flex-end;
    padding-right: 42%;
}

.tile-art {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 38%;
    max-width: 200px;
    transform: translateY(-50%);
    color: var(--fir);
}

.tile-art path[stroke="#f7d443"],
.tile-art path[fill="#f7d443"] {
    stroke: var(--poppy);
}

.tile-art path[fill="#f7d443"] {
    fill: var(--poppy);
    stroke: none;
}

.bento > .tile:nth-child(5),
.bento > .tile:nth-child(6) {
    grid-column: span 2;
}

.project-line {
    margin-top: 32px;
    max-width: 46em;
    font-size: 1.15rem;
    padding-left: 20px;
    border-left: 4px solid var(--poppy);
}

@media (max-width: 900px) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tile-green,
    .tile-clean {
        grid-column: span 2;
    }

    .tile-green {
        grid-row: auto;
        min-height: 360px;
    }

    .bento > .tile:nth-child(5),
    .bento > .tile:nth-child(6) {
        grid-column: span 1;
    }
}

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

    .tile-green,
    .tile-clean,
    .bento > .tile:nth-child(5),
    .bento > .tile:nth-child(6) {
        grid-column: auto;
    }

    .tile-clean {
        padding-right: 24px;
        padding-top: 150px;
    }

    .tile-art {
        top: 20px;
        left: 24px;
        right: auto;
        width: 150px;
        transform: none;
    }
}

/* ---- the five stages: the same plot of ground, stage by stage ---- */

.trail {
    list-style: none;
    margin: 32px auto 0;
    padding: 0;
    width: min(100% - 32px, var(--wrap));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    counter-reset: none;
}

.trail-step > a,
.trail-step > div {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 0 0 20px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trail-step > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -24px rgba(15, 42, 21, 0.55);
    color: var(--ink);
}

.trail-step .plot,
.stage-card .plot,
.sub-plot .plot {
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(#dff0f7, #f4faf0 70%);
}

.trail-step strong {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    padding: 0 18px;
    margin-top: 10px;
    color: var(--fir);
}

.trail-step > a strong {
    color: var(--grass-ink);
}

.trail-step span:not(.trail-no) {
    padding: 0 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

.trail-no {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fir);
    color: var(--yolk);
    font: 900 1.5rem/1 var(--display);
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .trail-step {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
    }
}

@keyframes rise {
    from { opacity: 0.2; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
    .trail {
        width: 100%;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(74%, 300px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 4px 16px 18px;
        scroll-padding-inline: 16px;
    }

    .trail-step {
        scroll-snap-align: start;
    }
}

/* ---- the big figure ---- */

.figure-band {
    --focus: var(--yolk);
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(61, 154, 43, 0.25), transparent 70%),
        var(--fir-deep);
    color: var(--on-dark-soft);
    padding-block: clamp(56px, 8vw, 104px);
}

.figure-band h2 {
    color: #fff;
}

.figure-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px 64px;
    align-items: center;
}

.figure {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.figure-n {
    font: 900 clamp(7rem, 22vw, 15rem)/0.8 var(--display);
    color: var(--yolk);
    letter-spacing: -0.03em;
}

.figure-l {
    font: 700 1.15rem/1.3 var(--text);
    color: #fff;
    max-width: 14em;
    margin-top: 12px;
}

.figure-light {
    margin-bottom: 24px;
}

.figure-light .figure-n {
    color: var(--poppy);
    font-size: clamp(6rem, 14vw, 9rem);
}

.figure-light .figure-l {
    color: var(--fir);
}

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

/* ---- a sideways strip of photos ---- */

.strip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.strip {
    list-style: none;
    margin: 20px 0 0;
    padding: 4px max(16px, calc((100% - var(--wrap)) / 2)) 18px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.strip li {
    flex: none;
    position: relative;
    width: clamp(270px, 36vw, 460px);
    scroll-snap-align: center;
}

.strip figure {
    margin: 0;
}

.strip a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.strip a:hover img {
    transform: scale(1.04);
}

/* ---- the call band ---- */

.call-band {
    --focus: var(--yolk);
    background:
        radial-gradient(60% 90% at 0% 100%, rgba(247, 212, 67, 0.18), transparent 70%),
        var(--poppy);
    color: #fff;
    padding-block: clamp(48px, 7vw, 88px);
}

.call-band h2 {
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.2em;
}

.call-band p {
    font-size: 1.15rem;
}

.call-band a {
    color: #fff;
}

.call-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px 56px;
    align-items: center;
}

.call-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.call-big {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    font: 900 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display);
    color: #fff;
    letter-spacing: 0.01em;
}

.call-big small {
    font: 700 0.85rem/1.4 var(--text);
    opacity: 0.9;
}

.call-big:hover {
    color: var(--yolk);
}

.call-more {
    margin: 6px 0 0;
    font-size: 1rem !important;
}

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

/* ---- inner page heroes, with a fringe of grass at the bottom ---- */

.page-hero,
.sub-hero {
    --focus: var(--yolk);
    position: relative;
    color: var(--on-dark-soft);
    background:
        radial-gradient(60% 90% at 90% 0%, rgba(61, 154, 43, 0.35), transparent 70%),
        var(--fir);
    padding-block: clamp(48px, 7vw, 88px) clamp(64px, 8vw, 104px);
}

.page-hero::after,
.sub-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 26V20l4-14 3 14 5-18 3 18 4-12 4 12 5-20 3 20 4-10 3 10 6-16 3 16 4-13 4 13 5-19 3 19 3-9 4 9 6-17 3 17 4-12 4 12 5-20 3 20 3-11 4 11 4 6V26z'/%3E%3C/svg%3E") repeat-x bottom / 120px 26px;
}

.page-hero h1,
.sub-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #fff;
    max-width: 14em;
}

.page-hero .lead,
.sub-hero .lead {
    font-size: clamp(1.08rem, 1.7vw, 1.25rem);
    max-width: 40em;
    margin: 0;
}

.page-hero-grid,
.sub-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px 48px;
    align-items: center;
}

.clean-art {
    width: 100%;
    max-width: 260px;
    justify-self: end;
    color: #fff;
}

.sub-plot {
    border-radius: var(--radius);
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.14);
}

.crumbs {
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.crumbs a {
    color: #fff;
}

.crumbs span[aria-current] {
    color: var(--on-dark-soft);
}

.stage-no {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--yolk);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 820px) {
    .page-hero-grid,
    .sub-hero-grid {
        grid-template-columns: 1fr;
    }

    .clean-art {
        justify-self: start;
        max-width: 180px;
    }

    .sub-plot {
        max-width: 420px;
    }
}

/* ---- lists ---- */

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 16px 12px 62px;
    min-height: 52px;
    border-radius: 14px;
    background: var(--leaf);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 12px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grass-ink);
    color: #fff;
    font: 900 1.25rem/1 var(--display);
}

.checks {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.checks li {
    position: relative;
    padding-left: 30px;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 14px;
    height: 14px;
    border-radius: 0 70% 0 70%;
    background: var(--grass);
}

.steps-grid > div > .checks {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.list-card {
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.list-card h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    color: var(--fir);
}

.list-card .steps li {
    background: var(--leaf);
}

.offer-line {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--paper);
    border: 1px dashed var(--grass);
    max-width: 52em;
}

.band:not(.band-leaf) .offer-line {
    background: var(--leaf);
    border-style: solid;
    border-color: var(--line);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px 56px;
    align-items: start;
}

.steps-grid.no-photo {
    grid-template-columns: minmax(0, 46em);
}

.steps-grid h2 {
    color: var(--fir);
}

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

/* ---- photos ---- */

.photo-card,
.photo-pair figure {
    margin: 0;
}

.photo-card a,
.photo-pair a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.photo-card img,
.photo-pair img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card a:hover img,
.photo-pair a:hover img {
    transform: scale(1.03);
}

figcaption {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 8px;
}

.photo-pair {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 24px 18px;
}

.gallery figure {
    margin: 0;
}

.gallery a {
    display: block;
    border-radius: 18px;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery a:hover img {
    transform: scale(1.04);
}

.gallery li:nth-child(5n + 1) {
    grid-column: span 2;
}

.gallery li:nth-child(5n + 1) img {
    aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
    .gallery li:nth-child(5n + 1) {
        grid-column: auto;
    }

    .gallery li:nth-child(5n + 1) img {
        aspect-ratio: 4 / 3;
    }
}

/* ---- the stages on the landscaping page ---- */

.stage-cards {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 18px;
}

.stage-card {
    position: relative;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
}

.stage-card-body {
    padding: 18px 20px 22px;
}

.stage-card h3 {
    font-size: 1.65rem;
    color: var(--fir);
    margin-bottom: 0.3em;
}

.stage-card h3 a {
    color: var(--grass-ink);
    text-decoration: none;
}

.stage-card h3 a::before {
    content: "";
    position: absolute;
    inset: 0;
}

.stage-card h3 a:hover {
    color: var(--poppy);
}

.stage-card p {
    margin: 0;
    color: var(--muted);
}

.stage-chips {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stage-chips a,
.stage-chips span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-weight: 600;
    text-decoration: none;
}

.stage-chips b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--fir);
    font: 900 1.15rem/1 var(--display);
}

.stage-chips span[aria-current] {
    background: var(--fir);
    border-color: var(--fir);
    color: #fff;
}

.stage-chips span[aria-current] b {
    background: var(--yolk);
    color: var(--ink);
}

.stage-chips a:hover {
    border-color: var(--grass);
}

.chip-plain {
    color: var(--muted);
}

/* ---- EU project ---- */

.eu-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px 56px;
    align-items: start;
}

.eu-side img {
    width: 100%;
    max-width: 245px;
    background: #fff;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    margin-bottom: 16px;
}

.eu-text h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

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

/* ---- contact ---- */

.duo-contact {
    align-items: stretch;
}

.contact-card,
.form-card {
    padding: clamp(22px, 3vw, 40px);
    border-radius: var(--radius);
}

.contact-card {
    background: var(--leaf);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-kicker {
    font-weight: 700;
    margin: 0;
}

.call-big-ink {
    color: var(--fir);
}

.call-big-ink small {
    color: var(--muted);
}

.call-big-ink:hover {
    color: var(--poppy);
}

.contact-list {
    margin: 10px 0 0;
    display: grid;
    gap: 14px;
}

.contact-list dt {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-list dd {
    margin: 0;
}

.form-card {
    border: 1px solid var(--line);
}

.form-card h2 {
    color: var(--fir);
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #b9cdb0;
    border-radius: 12px;
    font: 1rem/1.5 var(--text);
    color: var(--ink);
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--grass-ink);
}

.contact-form > div {
    margin-bottom: 16px;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 18px;
    color: var(--poppy);
}

.form-hint {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 12px;
}

.contact-sent {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--leaf);
    border: 2px solid var(--grass);
    margin-bottom: 20px;
}

.contact-sent strong {
    display: block;
}

/* ---- footer ---- */

.foot {
    --focus: var(--yolk);
    background: var(--fir-deep);
    color: var(--on-dark-soft);
    padding-top: 64px;
    font-size: 0.95rem;
}

.foot a {
    color: #fff;
}

.foot a:hover {
    color: var(--yolk);
}

.foot h2 {
    font-family: var(--display);
    font-size: 1.6rem;
    color: #fff;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.7fr 1.2fr;
    gap: 36px 40px;
}

.foot-tag {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    border-radius: 18px;
    margin-bottom: 14px;
}

.foot-tag img {
    width: 150px;
}

.foot-name {
    font-weight: 700;
    color: #fff;
}

.foot-phones span {
    display: inline-block;
    min-width: 5.5em;
    color: var(--on-dark-soft);
}

.foot-phones a {
    font-weight: 700;
}

.foot-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.eu-badge {
    display: inline-block;
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
}

.eu-badge img {
    width: 110px;
}

.foot-eu p {
    font-size: 0.88rem;
}

.foot-bottom {
    margin-top: 48px;
    padding-block: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background: var(--leaf);
    text-align: center;
}

.not-found > div {
    max-width: 560px;
}

.not-found img {
    margin: 0 auto 20px;
}

.not-found h1 {
    font-size: clamp(2.6rem, 9vw, 4.4rem);
    color: var(--fir);
}

.not-found h2 {
    font-size: 2rem;
    color: var(--fir);
    margin-top: 32px;
}

/* ---- motion off ---- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox {
    --lb-bg: rgba(9, 28, 14, 0.95);
    --lb-text: #ffffff;
    --lb-accent: #f7d443;
    --lb-accent-soft: rgba(247, 212, 67, 0.2);
}
