/* =========================================================
   HERO
   ========================================================= */

.hero
{
    position: relative;
    padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(4rem, 2rem + 5vw, 7rem);
}

.hero__grid
{
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    min-height: calc(100svh - 9rem);
}

.hero__content
{
    position: relative;
    z-index: 3;
}

.hero__title
{
    margin-block: 1.75rem 2rem;
    font-size: var(--text-display);
    font-weight: 900;
    line-height: 0.92;
}

.hero__title-line
{
    display: block;
    opacity: 0;
    transform: translateY(0.4em);
    animation: hero-line-in 1s var(--ease) forwards;
}

.hero__title-line:nth-child(2) { animation-delay: 0.12s; }

@keyframes hero-line-in
{
    to
    {
        opacity: 1;
        transform: none;
    }
}

.highlight
{
    position: relative;
    display: inline-block;
}

.highlight__scribble
{
    position: absolute;
    left: -2%;
    bottom: -0.12em;
    width: 104%;
    height: 0.24em;
    overflow: visible;
    fill: none;
    stroke: var(--color-green);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: draw-line 1.2s var(--ease) 0.7s forwards;
}

.highlight__scribble path:last-child
{
    stroke-width: 3;
    animation: inherit;
    animation-delay: 0.95s;
}

@keyframes draw-line
{
    to
    {
        stroke-dashoffset: 0;
    }
}

.hero__lead
{
    max-width: 32rem;
    font-size: var(--text-lg);
    line-height: 1.55;
    color: var(--color-ink-soft);
}

.hero__actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* ---------- Saisonale Deko (Weihnachts- und Wiesn-Modus) ---------- */

.hero__particles
{
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.hero__particles span
{
    position: absolute;
    top: -1.5rem;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    animation: particle-fall var(--duration) linear var(--delay) infinite;
}

/* Schneeflocken */
.hero__particles--christmas span
{
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(28, 36, 32, 0.16);
    opacity: 0.9;
}

/* Weiß-blaue Rauten und Brezn */
.hero__particles--oktoberfest span
{
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l9 9-9 9-9-9z' fill='%232a8bd8' stroke='%231c2420' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero__particles--oktoberfest span.is-white
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l9 9-9 9-9-9z' fill='%23ffffff' stroke='%231c2420' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.hero__particles--oktoberfest span.is-pretzel
{
    width: calc(var(--size) * 2);
    height: calc(var(--size) * 2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg stroke='%231c2420' stroke-width='4.5'%3E%3Cpath d='M12 21c-5 0-9-3-9-8 0-4 2.5-7 5.5-7S12 9 12 12c0-3 1-6 3.5-6S21 9 21 13c0 5-4 8-9 8z'/%3E%3Cpath d='M7 11l10 7M17 11L7 18'/%3E%3C/g%3E%3Cg stroke='%23a8692e' stroke-width='2.5'%3E%3Cpath d='M12 21c-5 0-9-3-9-8 0-4 2.5-7 5.5-7S12 9 12 12c0-3 1-6 3.5-6S21 9 21 13c0 5-4 8-9 8z'/%3E%3Cpath d='M7 11l10 7M17 11L7 18'/%3E%3C/g%3E%3C/svg%3E");
}

/* "top" statt translate, damit die Teilchen unabhängig von der Hero-Höhe bis ganz nach unten fallen */
@keyframes particle-fall
{
    to
    {
        top: 100%;
        transform: translateX(var(--drift)) rotate(var(--spin));
    }
}

@media (prefers-reduced-motion: reduce)
{
    .hero__particles
    {
        display: none;
    }
}

/* ---------- Hero-Visual ---------- */

.hero__visual
{
    position: relative;
    display: flex;
    justify-content: center;
    height: clamp(30rem, 78vh, 46rem);
    margin: 0;
}

.hero__disc
{
    position: absolute;
    top: 10%;
    left: 50%;
    width: min(88%, 26rem);
    aspect-ratio: 1;
    border: var(--stroke);
    border-radius: 50%;
    background: var(--color-green);
    transform: translateX(-50%);
    box-shadow: 8px 8px 0 var(--color-ink);
}

.hero__image
{
    position: relative;
    z-index: 2;
    width: auto;
    height: 100%;
    filter: drop-shadow(6px 8px 0 rgba(28, 36, 32, 0.12));
    opacity: 0;
    transform: translateY(1.5rem);
    transform-origin: 50% 95%;
    animation: hero-line-in 1.2s var(--ease) 0.3s forwards;
}

/* Die Figur wippt kurz, wenn man auf "Projekt anfragen" zeigt.
   hero-line-in bleibt in der Liste, damit die Einblendung nicht neu startet. */
.hero:has(.hero__cta:hover) .hero__image,
.hero:has(.hero__cta:focus-visible) .hero__image
{
    animation: hero-line-in 1.2s var(--ease) 0.3s forwards, figure-wiggle 0.9s var(--ease);
}

@keyframes figure-wiggle
{
    0%, 100% { rotate: 0deg; }
    20% { rotate: -3deg; }
    45% { rotate: 2.5deg; }
    70% { rotate: -1deg; }
}

/* Stempel: dreht sich ohne JavaScript gleichmäßig, mit JavaScript nur beim Scrollen */

.hero__badge
{
    position: absolute;
    top: 8%;
    right: 2%;
    z-index: 4;
    width: clamp(5.5rem, 8vw, 7.5rem);
    overflow: visible;
    animation: badge-spin 24s linear infinite;
}

.js .hero__badge[data-scroll-spin]
{
    animation: none;
    transform: rotate(var(--badge-rotation, 0deg));
}

.hero__badge circle
{
    fill: var(--color-paper-light);
    stroke: var(--color-ink);
    stroke-width: 2;
}

.hero__badge text
{
    fill: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__badge-star
{
    fill: var(--color-green);
    stroke: var(--color-ink);
    stroke-width: 1.5;
}

@keyframes badge-spin
{
    to
    {
        transform: rotate(360deg);
    }
}

/* =========================================================
   SECTIONS – gemeinsam
   ========================================================= */

.section
{
    position: relative;
    padding-block: var(--section-space);
}

.section-title
{
    font-size: var(--text-2xl);
}

/* =========================================================
   PROJEKTE
   ========================================================= */

.work
{
    padding-top: calc(var(--section-space) + 1rem);
}

.work__head
{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.work__all
{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.work__all svg
{
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.25s var(--ease);
}

.work__all:hover svg
{
    transform: translateX(4px);
}

/* Bewusst ungleich: das neueste Projekt groß, die beiden anderen versetzt daneben */
.work__list
{
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.work__item:first-child
{
    grid-row: span 2;
}

.work__item:nth-child(3)
{
    margin-left: clamp(0rem, -2rem + 4vw, 3rem);
}

.work__link
{
    display: grid;
    gap: 0.35rem;
    text-decoration: none;
}

.work__media
{
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 0.75rem;
    border: var(--stroke);
    border-radius: var(--radius);
    background: var(--color-paper-dark);
    box-shadow: var(--shadow-offset);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), rotate 0.4s var(--ease);
}

.work__item:first-child .work__media
{
    aspect-ratio: 5 / 4;
}

.work__media img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wie hingeworfene Fotos: leicht schräg, beim Darüberfahren richten sie sich auf */
.work__item:nth-child(1) .work__media { rotate: -1deg; }
.work__item:nth-child(2) .work__media { rotate: 1.5deg; }
.work__item:nth-child(3) .work__media { rotate: -0.75deg; }

.work__link:hover .work__media,
.work__link:focus-visible .work__media
{
    rotate: 0deg;
}

.work__link:hover .work__media
{
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--color-ink);
}

.work__placeholder
{
    display: grid;
    place-items: center;
    height: 100%;
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--color-muted);
}

.work__meta
{
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-muted);
}

.work__title
{
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.work__link:hover .work__title
{
    color: var(--color-green);
}

.work__teaser
{
    max-width: 34rem;
    color: var(--color-ink-soft);
}

/* =========================================================
   LEISTUNGEN
   ========================================================= */

.services__grid
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.services__title
{
    position: sticky;
    top: 7rem;
}

.services__list
{
    margin: 0;
}

.service
{
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    gap: 0.5rem 2rem;
    padding-block: 1.5rem;
    border-top: var(--stroke);
}

.service:last-child
{
    border-bottom: var(--stroke);
}

.service__title
{
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.service__text
{
    margin: 0;
    color: var(--color-ink-soft);
}

.process__title
{
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

/* =========================================================
   ÜBER MICH
   ========================================================= */

.about
{
    border-block: var(--stroke);
    background: var(--color-paper-light);
}

.about__grid
{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 1rem + 5vw, 6rem);
    align-items: center;
}

.about__title
{
    margin-block: 1.25rem 1.5rem;
    font-size: var(--text-2xl);
}

.about__title .serif-italic
{
    font-weight: 400;
}

.about__text
{
    max-width: 34rem;
    color: var(--color-ink-soft);
}

.about__text + .about__text
{
    margin-top: 1rem;
}

.about__timeline
{
    padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
    border: var(--stroke);
    border-radius: var(--radius);
    background: var(--color-paper);
    box-shadow: var(--shadow-offset);
}

.about__timeline-title
{
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.timeline
{
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline__item
{
    position: relative;
    padding: 0 0 1.75rem 2rem;
}

.timeline__item:last-child
{
    padding-bottom: 0;
}

/* Verbindungslinie zwischen den Punkten */
.timeline__item:not(:last-child)::after
{
    content: "";
    position: absolute;
    top: 0.9rem;
    bottom: -0.1rem;
    left: calc(0.4rem - 1px);
    width: 2px;
    background: var(--color-line);
}

.timeline__item::before
{
    content: "";
    position: absolute;
    top: 0.3rem;
    left: 0;
    width: 0.8rem;
    aspect-ratio: 1;
    border: 2px solid var(--color-ink);
    border-radius: 50%;
    background: var(--color-paper-light);
}

.timeline__item:last-child::before
{
    background: var(--color-green);
}

.timeline__year
{
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 800;
    color: var(--color-green);
}

.timeline__title
{
    margin-top: 0.15rem;
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.3;
}

.timeline__text
{
    margin-top: 0.15rem;
    font-size: 1rem;
    color: var(--color-ink-soft);
}

/* =========================================================
   ABLAUF
   ========================================================= */

.process__steps
{
    --step-dot: 3.25rem;
    --step-gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--step-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.step
{
    position: relative;
}

/* Verbindungslinie zum nächsten Schritt */
.step:not(:last-child)::after
{
    content: "";
    position: absolute;
    top: calc(var(--step-dot) / 2 - 1px);
    left: var(--step-dot);
    right: calc(-1 * var(--step-gap));
    height: 2px;
    background: linear-gradient(var(--color-green), var(--color-green)) left / 0% 100% no-repeat, var(--color-line);
    transition: background-size 0.7s var(--ease);
}

/* Mit JavaScript füllt sich die Linie, sobald ein Schritt beim Scrollen erreicht ist */
.step.is-reached:not(:last-child)::after
{
    background-size: 100% 100%, auto;
    transition-delay: calc(var(--step-index, 0) * 0.3s + 0.15s);
}

.step__number
{
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--step-dot);
    aspect-ratio: 1;
    margin-bottom: 1.5rem;
    border: var(--stroke);
    border-radius: 50%;
    background: var(--color-paper-light);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 3px 3px 0 var(--color-ink);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step:hover .step__number,
.step.is-reached .step__number,
html:not(.js) .step:last-child .step__number
{
    background: var(--color-green);
    color: var(--color-on-green);
}

.step.is-reached .step__number
{
    animation: step-pop 0.5s var(--ease) calc(var(--step-index, 0) * 0.3s) both;
    transition-delay: calc(var(--step-index, 0) * 0.3s);
}

@keyframes step-pop
{
    50% { scale: 1.18; }
}

.step__title
{
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.15;
}

.step__text
{
    font-size: 1rem;
    color: var(--color-ink-soft);
}

/* =========================================================
   REGION
   ========================================================= */

.region
{
    padding-top: calc(var(--section-space) - 2rem);
}

.region__grid
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 4vw, 6rem);
    align-items: center;
}

.region__content
{
    position: relative;
    padding-left: 4.5rem;
}

.region__chapter
{
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-muted);
}

.region__title
{
    margin-block: 1.5rem;
    font-size: var(--text-2xl);
}

.region__title .serif-italic
{
    font-weight: 400;
    color: var(--color-green);
}

.region__text
{
    max-width: 32rem;
    color: var(--color-ink-soft);
}

.region__places
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.region__places li
{
    padding: 0.4rem 0.9rem;
    border: var(--stroke);
    border-radius: 999px;
    background: var(--color-paper-light);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}

.region__places li.is-highlighted
{
    background: var(--color-green-light);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--color-ink);
}

.region__places li.is-home.is-highlighted
{
    background: var(--color-green);
    box-shadow: 5px 5px 0 var(--color-ink);
}

.region__places li.is-home
{
    background: var(--color-green);
    color: var(--color-on-green);
    box-shadow: 3px 3px 0 var(--color-ink);
}

.region__map
{
    position: relative;
    margin: 0;
    padding: clamp(1rem, 0.5rem + 2vw, 2rem);
    border: var(--stroke);
    border-radius: var(--radius);
    background: var(--color-paper-light);
    box-shadow: 8px 8px 0 var(--color-green);
}

.region__map svg
{
    width: 100%;
    height: auto;
    overflow: visible;
}

.map__ring
{
    fill: none;
    stroke: var(--color-line);
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
}

.map__ring--outer
{
    stroke: var(--color-ink);
    stroke-opacity: 0.25;
}

.map__river
{
    fill: none;
    stroke: var(--color-green-light);
    stroke-width: 10;
    stroke-linecap: round;
}

/* Fließendes Wasser */
.map__river-flow
{
    fill: none;
    stroke: var(--color-paper-light);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 10 18;
    animation: river-flow 3s linear infinite;
}

@keyframes river-flow
{
    to
    {
        stroke-dashoffset: -28;
    }
}

/* Schwabhausen pulsiert wie ein Standort-Pin */
.map__pulse
{
    fill: none;
    stroke: var(--color-green);
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
    animation: map-pulse 2.4s var(--ease) infinite;
}

@keyframes map-pulse
{
    from
    {
        opacity: 0.8;
        transform: scale(1);
    }

    to
    {
        opacity: 0;
        transform: scale(2.2);
    }
}

/* Ort in der Liste und auf der Karte gegenseitig hervorheben */
.map__place circle,
.map__place rect
{
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.3s var(--ease), fill 0.3s;
}

.map__place.is-highlighted circle,
.map__place.is-highlighted rect
{
    fill: var(--color-green);
    transform: scale(1.8);
}

.map__place.is-highlighted text
{
    fill: var(--color-green);
    font-weight: 800;
}

.map__place,
.map__home
{
    cursor: default;
}

.map__place circle,
.map__place rect
{
    fill: var(--color-ink);
}

.map__place--city rect
{
    fill: var(--color-green);
    stroke: var(--color-ink);
    stroke-width: 2;
}

.map__place text,
.map__home-label,
.map__compass text
{
    fill: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
}

.map__home circle
{
    fill: var(--color-green);
    stroke: var(--color-ink);
    stroke-width: 2.5;
}

.map__home path
{
    fill: var(--color-paper-light);
    stroke: var(--color-ink);
    stroke-width: 2;
}

.map__home .map__home-dot
{
    fill: var(--color-ink);
    stroke: none;
}

.map__home-label
{
    font-size: 15px;
    font-weight: 800;
}

.map__compass path
{
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 2;
    stroke-linecap: round;
}

.region__caption
{
    margin-top: 0.75rem;
    font-size: var(--text-sm);
    color: var(--color-muted);
    text-align: right;
}

/* =========================================================
   KONTAKT
   ========================================================= */

.contact__card
{
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 1rem + 4vw, 4.5rem);
    border: var(--stroke);
    border-radius: calc(var(--radius) * 3);
    background: var(--color-green);
    color: var(--color-on-green);
    box-shadow: 8px 8px 0 var(--color-ink);
}

/* Dezenter Kreis als einziges Deko-Element */
.contact__card::before
{
    content: "";
    position: absolute;
    top: -10rem;
    right: -8rem;
    width: 26rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-green-dark);
    opacity: 0.35;
    pointer-events: none;
}

.contact__title
{
    position: relative;
    max-width: 40rem;
    margin-bottom: 1.25rem;
    font-size: var(--text-2xl);
}

.contact__text
{
    position: relative;
    max-width: 36rem;
    font-size: var(--text-lg);
    line-height: 1.5;
    opacity: 0.92;
}

.contact__actions
{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    margin-top: 2.25rem;
}

.contact__button
{
    font-size: var(--text-base);
}

.contact__mail
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    color: inherit;
}

.contact__mail svg
{
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px)
{
    /* Zeitleiste senkrecht statt waagerecht */
    .process__steps
    {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        max-width: 40rem;
    }

    .step
    {
        display: grid;
        grid-template-columns: var(--step-dot) minmax(0, 1fr);
        column-gap: 1.25rem;
        padding-bottom: 2rem;
    }

    .step:last-child
    {
        padding-bottom: 0;
    }

    .step:not(:last-child)::after
    {
        top: var(--step-dot);
        bottom: 0;
        left: calc(var(--step-dot) / 2 - 1px);
        right: auto;
        width: 2px;
        height: auto;
        background-position: top;
        background-size: 100% 0%, auto;
    }

    .step.is-reached:not(:last-child)::after
    {
        background-size: 100% 100%, auto;
    }

    /* Untereinander kommt die Verzögerung schon vom Scrollen */
    .step.is-reached:not(:last-child)::after,
    .step.is-reached .step__number
    {
        transition-delay: 0s;
        animation-delay: 0s;
    }

    .step__number
    {
        margin-bottom: 0;
    }

    .step__body
    {
        padding-top: 0.6rem;
    }
}

@media (max-width: 960px)
{
    .hero__grid
    {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .hero__visual
    {
        height: clamp(28rem, 110vw, 40rem);
        margin-top: 1rem;
    }

    .region__chapter
    {
        display: none;
    }

    .about__grid,
    .region__grid,
    .services__grid
    {
        grid-template-columns: minmax(0, 1fr);
    }

    .region__content
    {
        padding-left: 0;
    }

    .services__title
    {
        position: static;
    }

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

    .work__item:first-child
    {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .work__item:nth-child(3)
    {
        margin-left: 0;
    }
}

@media (max-width: 640px)
{
    .hero__badge
    {
        top: auto;
        bottom: 6%;
        right: 0;
    }

    .work__list,
    .service
    {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact__actions .button
    {
        justify-content: center;
        width: 100%;
    }
}
