:root {
    --bg-main: #f1ece6;
    --surface: #f8f6f0;
    --text-main: #6f7480;
    --text-soft: #727783;
    --line: #a8a8a8;
    --title-red: #c53638;
    --turquoise: #109bb8;
    --shadow-soft: 0 6px 14px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 10px 22px rgba(0, 0, 0, 0.14);
    --radius-button: 16px;
    --max-page: 1140px;
    --max-content: 980px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.08em;
}

img {
    display: block;
    max-width: 100%;
}

.page {
    width: min(100%, var(--max-page));
    min-height: 100vh;
    margin: 0 auto;
    background: transparent;
}

.topbar {
    display: grid;
    grid-template-columns: 58px 1fr 58px;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 12px;
}

.menu-button {
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    justify-self: start;
}

.menu-button span {
    display: block;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: #9ca3ab;
    margin-left: 4px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.brand img {
    width: min(100%, 345px);
    height: auto;
}

.topbar-spacer {
    width: 50px;
    height: 50px;
    justify-self: end;
}

.header-divider {
    width: min(calc(100% - 36px), 100%);
    margin: 0 auto;
    border-top: 2px solid var(--line);
    opacity: 0.72;
}

.intro,
.visual-block {
    width: min(calc(100% - 40px), var(--max-content));
    margin: 0 auto;
}

.intro {
    padding-top: 18px;
    text-align: center;
}

.intro h1 {
    margin: 0;
    color: var(--title-red);
    font-size: clamp(1.24rem, 0.96rem + 1.16vw, 2.24rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: 0.18em;
}

.intro-subtitle {
    width: min(88%, 860px);
    margin: 16px auto 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 0.82rem + 0.5vw, 1.34rem);
    line-height: 1.24;
    letter-spacing: 0.106em;
    text-align: center;
    white-space: nowrap;
}

.services-nav {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.service-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 20px;
    background: var(--surface);
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-button);
    border: 1px solid rgba(120, 120, 120, 0.05);
    box-shadow: var(--shadow-soft);
    font-size: clamp(0.96rem, 0.86rem + 0.38vw, 1.2rem);
    letter-spacing: 0.16em;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-strong);
}

.visual-block {
    display: grid;
    gap: 22px;
    margin-top: 28px;
    padding-bottom: 16px;
}

.hero-card {
    margin: 0;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 8.4;
    object-fit: cover;
    object-position: center;
}

.corridor-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--turquoise);
    color: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-soft);
    font-size: clamp(0.9rem, 0.82rem + 0.38vw, 1.08rem);
    letter-spacing: 0.12em;
}

.punita-card {
    position: relative;
    margin: 0;
}

.punita-map {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
}

.punita-cta {
    position: absolute;
    right: 3.6%;
    bottom: 11.2%;
    width: clamp(210px, 29%, 330px);
    z-index: 4;
    display: block;
    text-decoration: none;
    background: transparent;
}

.punita-figure {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.14));
}

.punita-cta:focus-visible {
    outline: 3px solid rgba(197, 54, 56, 0.45);
    outline-offset: 4px;
    border-radius: 20px;
}

.site-footer {
    width: 100%;
    margin-top: 20px;
    padding-bottom: 64px;
}

.site-footer-line {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    opacity: 0.9;
}

.site-footer-space {
    min-height: 120px;
}

.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;
}

@media (min-width: 768px) {
    body {
        padding: 0 18px 26px;
    }

    .topbar {
        grid-template-columns: 64px 1fr 64px;
        padding: 24px 20px 14px;
    }

    .menu-button,
    .topbar-spacer {
        width: 56px;
        height: 56px;
    }

    .menu-button span {
        width: 36px;
    }

    .brand img {
        width: min(100%, 380px);
    }

    .header-divider {
        width: min(calc(100% - 40px), 100%);
    }

    .intro,
    .visual-block {
        width: min(calc(100% - 68px), 1020px);
    }

    .intro {
        padding-top: 26px;
    }

    .intro h1 {
        font-size: clamp(1.72rem, 1.48rem + 0.88vw, 2.4rem);
    }

    .intro-subtitle {
        width: min(84%, 920px);
        margin-top: 18px;
        font-size: clamp(1.14rem, 0.98rem + 0.34vw, 1.42rem);
        letter-spacing: 0.106em;
    }

    .services-nav {
        gap: 24px;
        margin-top: 28px;
    }

    .service-button {
        min-height: 82px;
        font-size: 1.12rem;
    }

    .visual-block {
        gap: 24px;
        margin-top: 30px;
    }

    .hero-card img {
        aspect-ratio: 16 / 8.2;
    }

    .corridor-pill {
        min-height: 66px;
        font-size: 1rem;
    }

    .punita-cta {
        right: 4%;
        bottom: 12.6%;
        width: clamp(235px, 28%, 330px);
    }

    .site-footer {
        margin-top: 28px;
        padding-bottom: 84px;
    }

    .site-footer-space {
        min-height: 150px;
    }
}

@media (max-width: 640px) {
    .topbar {
        grid-template-columns: 48px 1fr 48px;
        padding: 14px 10px 10px;
    }

    .menu-button,
    .topbar-spacer {
        width: 44px;
        height: 44px;
    }

    .menu-button span {
        width: 28px;
        margin-left: 2px;
    }

    .brand img {
        width: min(100%, 255px);
    }

    .header-divider {
        width: 100%;
    }

    .intro,
    .visual-block {
        width: calc(100% - 30px);
    }

    .intro {
        padding-top: 14px;
    }

    .intro h1 {
        font-size: 1rem;
        letter-spacing: 0.13em;
    }

    .intro-subtitle {
        width: 98%;
        margin-top: 12px;
        font-size: 0.78rem;
        letter-spacing: 0.046em;
        white-space: nowrap;
    }

    .services-nav {
        gap: 14px;
        margin-top: 18px;
    }

    .service-button {
        min-height: 54px;
        font-size: 0.98rem;
        letter-spacing: 0.12em;
    }

    .hero-card {
        border-radius: 24px;
    }

    .corridor-pill {
        min-height: 52px;
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        line-height: 1.25;
        padding: 10px 14px;
    }

    .punita-map {
        border-radius: 24px;
    }

    .punita-cta {
        right: 4.2%;
        bottom: 10.6%;
        width: clamp(150px, 35%, 210px);
    }

    .site-footer {
        margin-top: 18px;
        padding-bottom: 54px;
    }

    .site-footer-space {
        min-height: 96px;
    }
}

@media (max-width: 430px) {
    .intro-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.04em;
    }

    .corridor-pill {
        font-size: 0.82rem;
    }

    .punita-cta {
        width: clamp(138px, 40%, 190px);
        bottom: 10.2%;
    }

    .site-footer-space {
        min-height: 84px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}