.agency {
    min-height: 100vh;
    background: linear-gradient(180deg, #fbfcfa 0%, #f2f6f1 46%, #eef5f7 100%);
    color: #142033;
}

.agency a {
    color: inherit;
}

.agency__header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 16px max(22px, calc((100vw - 1180px) / 2));
    background: rgba(251, 252, 250, 0.78);
    border-bottom: 1px solid rgba(20, 32, 51, 0.1);
    backdrop-filter: blur(16px);
}

.agency__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #142033;
    text-decoration: none;
    font-weight: 900;
}

.agency__brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(29, 79, 115, 0.16);
}

.agency__brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agency__nav {
    --mobile-nav-border: rgba(20, 32, 51, 0.12);
    --mobile-nav-toggle-bg: rgba(255, 255, 255, 0.84);
    --mobile-nav-panel-bg: rgba(255, 255, 255, 0.96);
    --mobile-nav-shadow: rgba(20, 32, 51, 0.14);
    --mobile-nav-toggle-shadow: rgba(20, 32, 51, 0.08);
    --mobile-nav-hover-bg: rgba(29, 79, 115, 0.08);
    --mobile-nav-toggle-color: #142033;
    display: flex;
    justify-content: center;
    position: relative;
    color: #526275;
    font-size: 0.96rem;
    font-weight: 800;
}

.agency__nav-links {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.agency__nav-links a {
    text-decoration: none;
}

.agency__nav-toggle {
    display: none;
}

.agency__nav a:focus-visible,
.agency__nav-toggle:focus-visible,
.agency__brand:focus-visible,
.agency__store:focus-visible,
.agency__download-qr:focus-visible,
.agency__footer a:focus-visible {
    outline: 3px solid rgba(29, 79, 115, 0.28);
    outline-offset: 4px;
    border-radius: 10px;
}

.agency__inner {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    display: grid;
    gap: clamp(42px, 7vw, 86px);
}

.agency__hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(34px, 5vw, 56px);
    align-items: center;
    min-height: calc(100vh - 75px);
    padding: clamp(56px, 8vw, 92px) 0 clamp(60px, 8vw, 96px);
    text-align: center;
}

.agency__eyebrow,
.agency__section-eyebrow,
.agency__card-category {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #53718c;
}

.agency__hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agency__title {
    margin: 0;
    max-width: 760px;
    font-size: clamp(3.15rem, 7vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    color: #111827;
}

.agency__lead {
    margin: 22px 0 0;
    max-width: 720px;
    font-size: clamp(1.08rem, 1.8vw, 1.24rem);
    line-height: 1.7;
    color: #435268;
}

.agency__store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.agency__store--secondary {
    border: 1px solid #d8e2ea;
    background: rgba(255, 255, 255, 0.72);
    color: #203249;
}

.agency__store:hover,
.agency__title-link:hover {
    transform: translateY(-2px);
}

.agency__store--secondary:hover {
    border-color: #b7cad8;
    background: #fff;
}

.agency__hero-image {
    display: block;
    width: min(920px, 100%);
    height: auto;
    filter: drop-shadow(0 28px 48px rgba(43, 63, 86, 0.16));
}

.agency__card-icon {
    object-fit: cover;
    background: #e7f1f8;
}

.agency__section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    text-align: center;
}

.agency__section-head h2,
.agency__team-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
    color: #121c2d;
}

.agency__section-copy,
.agency__team-copy p {
    margin: 14px 0 0;
    max-width: 680px;
    color: #526275;
    line-height: 1.7;
}

.agency__section-head > div {
    width: 100%;
    display: grid;
    justify-items: center;
}

.agency__product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.agency__card,
.agency__team-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dce6ed;
    box-shadow: 0 18px 44px rgba(43, 63, 86, 0.08);
}

.agency__card {
    display: grid;
    gap: 18px;
    min-height: 100%;
    padding: 22px;
    border-radius: 28px;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.agency__card:hover {
    transform: translateY(-3px);
    border-color: #c2d3df;
    box-shadow: 0 24px 54px rgba(43, 63, 86, 0.12);
}

.agency__card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.agency__card-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    box-shadow: 0 12px 22px rgba(43, 63, 86, 0.12);
}

.agency__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #255d43;
    background: #dcf6e8;
    white-space: nowrap;
}

.agency__badge--coming {
    color: #5b527c;
    background: #ece7ff;
}

.agency__card-copy {
    display: grid;
    gap: 9px;
}

.agency__card-copy h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #111827;
}

.agency__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
}

.agency__title-link:hover {
    color: #1d4f73;
}

.agency__card-copy p {
    margin: 0;
    color: #526275;
    line-height: 1.6;
}

.agency__stores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.agency__store {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.82rem;
}

.agency__store--badge {
    width: 38px;
    min-height: 38px;
    padding: 7px;
}

.agency__store--badge:hover {
    background: #fff;
}

.agency__store-badge {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.agency__download-qr {
    width: 54px;
    height: 54px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #d8e2ea;
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.agency__download-qr:hover {
    transform: translateY(-2px);
    border-color: #b7cad8;
    box-shadow: 0 12px 24px rgba(20, 32, 51, 0.1);
}

.agency__download-qr svg {
    display: block;
    width: 44px;
    height: 44px;
}

.agency__store:not(.agency__store--secondary) {
    background: #142033;
    color: #fff;
}

.agency__team {
    display: grid;
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
    padding: clamp(26px, 5vw, 52px);
    border-radius: 34px;
    background: linear-gradient(135deg, #17382f 0%, #244d43 58%, #4d6d57 100%);
    box-shadow: 0 28px 64px rgba(23, 56, 47, 0.22);
}

.agency__team-copy {
    display: grid;
    justify-items: center;
    text-align: center;
}

.agency__team-copy h2 {
    color: #f6fbf8;
}

.agency__team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.agency__team-card {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    align-content: start;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: #fff;
}

.agency__team-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(11, 32, 27, 0.22);
}

.agency__team-card h3 {
    margin: 4px 0 0;
    font-size: 1.34rem;
    line-height: 1.1;
}

.agency__team-card p {
    margin: 10px 0 0;
    color: rgba(246, 251, 248, 0.8);
    line-height: 1.6;
}

.agency__team-role {
    margin: 0;
    color: #f6fbf8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.agency__team-card .agency__team-summary {
    color: #fff;
    font-weight: 800;
}

.agency__empty {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #dce6ed;
    color: #526275;
}

.agency__footer {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(54px, 7vw, 82px) 0 34px;
}

.agency__footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.55fr) minmax(170px, 0.7fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    padding-top: 34px;
    border-top: 1px solid rgba(20, 32, 51, 0.12);
}

.agency__footer-brand {
    display: grid;
    gap: 14px;
}

.agency__footer-logo {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    color: #142033;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 900;
}

.agency__footer-logo img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(29, 79, 115, 0.14);
}

.agency__footer-brand p {
    margin: 0;
    max-width: 520px;
    color: #526275;
    line-height: 1.7;
}

.agency__footer-brand .agency__footer-copyright {
    color: #6f7d8f;
    font-size: 0.92rem;
}

.agency__footer-column {
    display: grid;
    gap: 12px;
}

.agency__footer-column h2 {
    margin: 0 0 4px;
    color: #142033;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.agency__footer-column a {
    color: #526275;
    font-weight: 800;
}

@media (max-width: 839px) {
    .agency__hero {
        min-height: auto;
    }

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

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

    .agency__footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 599px) {
    .agency__header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
        padding: 14px 18px;
    }

    .agency__nav {
        justify-content: flex-end;
        justify-self: end;
    }

    .agency__nav-toggle {
        display: inline-flex;
    }

    .agency__nav-links {
        display: none;
    }

    .agency__nav.is-open .agency__nav-links {
        display: flex;
    }

    .agency__nav-links a:hover {
        background: var(--mobile-nav-hover-bg);
    }

    .agency__inner {
        width: min(100% - 36px, 1180px);
        gap: 46px;
    }

    .agency__title {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }

    .agency__section-head {
        flex-direction: column;
    }

    .agency__product-grid,
    .agency__team-grid {
        grid-template-columns: 1fr;
    }

    .agency__card-top {
        align-items: flex-start;
    }

    .agency__team-card {
        grid-template-columns: 1fr;
    }

}
