/* Agency index and local agency pages */
.agency-page {
    --agency-ink: #101828;
    --agency-navy: #111b38;
    --agency-blue: #2265bb;
    --agency-accent: #918aea;
    --agency-paper: #f6f7fb;
    --agency-muted: #667085;
    --agency-line: #e5e9f1;
    overflow: hidden;
    color: var(--agency-ink);
}

.agency-hero {
    position: relative;
    overflow: hidden;
    padding: 190px 0 105px;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 76% 18%, rgba(75,99,255,.31), transparent 31%),
        linear-gradient(135deg, #0c142d 0%, #131f43 58%, #172650 100%);
    background-size: 54px 54px, 54px 54px, auto, auto;
    color: #fff;
}

.agency-hero::after {
    position: absolute;
    right: -160px;
    bottom: -360px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    content: "";
}

.agency-hero__orb {
    position: absolute;
    top: 115px;
    left: -75px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(145,138,234,.12);
}

.agency-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 52px;
    color: rgba(255,255,255,.62);
    font-size: 13px;
}

.agency-breadcrumb a {
    color: rgba(255,255,255,.7);
}

.agency-breadcrumb a:hover {
    color: var(--agency-accent);
}

.agency-breadcrumb i {
    font-size: 9px;
    opacity: .5;
}

.agency-breadcrumb span {
    color: #fff;
}

.agency-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--agency-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.agency-kicker::before {
    width: 24px;
    height: 3px;
    border-radius: 20px;
    background: var(--agency-accent);
    content: "";
}

.agency-kicker--light {
    color: var(--agency-accent);
}

.agency-hero h1 {
    max-width: 850px;
    margin: 0 0 25px;
    color: #fff;
    font-size: clamp(49px, 5.5vw, 76px);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.05em;
}

.agency-hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, var(--agency-accent), #c595f3);
    -webkit-background-clip: text;
    background-clip: text;
}

.agency-hero .col-lg-7 > p {
    max-width: 740px;
    margin-bottom: 34px;
    color: rgba(255,255,255,.73);
    font-size: 18px;
    line-height: 1.75;
}

.agency-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.agency-btn {
    display: inline-flex;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 23px;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 850;
}

.agency-btn i {
    font-size: 12px;
}

.agency-btn--primary {
    background: var(--agency-accent);
    color: var(--agency-ink);
}

.agency-btn--primary:hover {
    background: #fff;
    color: var(--agency-ink);
    transform: translateY(-2px);
}

.agency-btn--ghost {
    border: 1px solid rgba(255,255,255,.22);
    background: transparent;
    color: #fff;
}

.agency-btn--ghost:hover {
    border-color: rgba(255,255,255,.5);
    color: var(--agency-accent);
    transform: translateY(-2px);
}

.agency-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 23px;
    margin-top: 35px;
    color: rgba(255,255,255,.65);
    font-size: 12px;
}

.agency-hero__proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.agency-hero__proof i {
    display: inline-flex;
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(145,138,234,.14);
    color: var(--agency-accent);
    font-size: 8px;
}

/* Index hero card */
.agency-index-card {
    position: relative;
    z-index: 2;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 30px 80px rgba(0,0,0,.21);
    backdrop-filter: blur(12px);
}

.agency-index-card__label {
    display: block;
    margin-bottom: 22px;
    color: var(--agency-accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.agency-index-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 25px;
}

.agency-index-card__stats div {
    padding: 5px 22px 5px 0;
    border-right: 1px solid rgba(255,255,255,.12);
}

.agency-index-card__stats div + div {
    padding-left: 25px;
    border-right: 0;
}

.agency-index-card__stats strong,
.agency-index-card__stats span {
    display: block;
}

.agency-index-card__stats strong {
    margin-bottom: 7px;
    color: #fff;
    font-size: 39px;
    line-height: 1;
}

.agency-index-card__stats span {
    color: rgba(255,255,255,.5);
    font-size: 11px;
}

.agency-index-card > p {
    margin-bottom: 22px;
    color: rgba(255,255,255,.67);
    font-size: 14px;
    line-height: 1.7;
}

.agency-index-card ul {
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255,255,255,.1);
    list-style: none;
}

.agency-index-card li {
    margin: 11px 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

.agency-index-card li i {
    margin-right: 9px;
    color: var(--agency-accent);
}

/* Shared headings */
.agency-heading {
    max-width: 780px;
    margin-bottom: 48px;
}

.agency-heading--split {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
    align-items: end;
    gap: 70px;
}

.agency-heading.text-center {
    margin-right: auto;
    margin-left: auto;
}

.agency-heading h2 {
    margin: 0;
    color: var(--agency-ink);
    font-size: clamp(37px, 4vw, 53px);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.agency-heading > p,
.agency-heading > div + p {
    margin: 0;
    color: var(--agency-muted);
    font-size: 16px;
    line-height: 1.75;
}

/* Featured agency index cards */
.agency-featured,
.agency-intro,
.agency-process {
    padding: 110px 0;
    background: #fff;
}

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

.agency-city-card {
    overflow: hidden;
    border: 1px solid var(--agency-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 13px 42px rgba(16,24,40,.055);
}

.agency-city-card:hover {
    border-color: rgba(52,72,197,.24);
    box-shadow: 0 25px 60px rgba(16,24,40,.11);
    transform: translateY(-7px);
}

.agency-city-card__image {
    position: relative;
    overflow: hidden;
    height: 235px;
    background: #e8ebf2;
}

.agency-city-card__image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,16,35,.5), transparent 55%);
    content: "";
}

.agency-city-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.agency-city-card:hover .agency-city-card__image img {
    transform: scale(1.045);
}

.agency-city-card__image > span {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 15px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(17,27,56,.78);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.agency-city-card__content {
    padding: 27px;
}

.agency-city-card__content > small {
    display: block;
    margin-bottom: 9px;
    color: var(--agency-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.agency-city-card h3 {
    margin-bottom: 11px;
    color: var(--agency-ink);
    font-size: 22px;
    line-height: 1.25;
}

.agency-city-card p {
    min-height: 67px;
    margin-bottom: 18px;
    color: var(--agency-muted);
    font-size: 13px;
    line-height: 1.7;
}

.agency-city-card__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--agency-ink);
    font-size: 12px;
    font-weight: 850;
}

.agency-city-card:hover .agency-city-card__link {
    color: var(--agency-blue);
}

/* All regions */
.agency-network {
    padding: 110px 0;
    background: var(--agency-paper);
}

.agency-region-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    align-items: start;
    gap: 22px;
}

.agency-region-card {
    padding: 28px;
    border: 1px solid var(--agency-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(16,24,40,.045);
}

.agency-region-card__header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--agency-line);
}

.agency-region-card__header > span {
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--agency-navy);
    color: var(--agency-accent);
}

.agency-region-card h3 {
    margin: 0 0 3px;
    color: var(--agency-ink);
    font-size: 18px;
}

.agency-region-card__header small {
    color: var(--agency-muted);
    font-size: 10px;
}

.agency-region-card__cities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
}

.agency-region-card__cities a {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: space-between;
    padding: 7px 9px;
    border-radius: 7px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.agency-region-card__cities a:hover {
    background: #f2f4fb;
    color: var(--agency-blue);
}

.agency-region-card__cities i {
    font-size: 9px;
    opacity: 0;
    transform: translateX(-4px);
}

.agency-region-card__cities a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.agency-region-card__landing {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #eef2ff;
    color: var(--agency-blue);
    font-size: 11px;
    font-weight: 850;
}

.agency-region-card__landing:hover {
    background: var(--agency-navy);
    color: #fff;
    transform: translateY(-2px);
}

.agency-remote {
    padding: 0 0 110px;
    background: var(--agency-paper);
}

.agency-remote__inner {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 42px 45px;
    border-radius: 21px;
    background: var(--agency-navy);
    color: #fff;
}

.agency-remote__icon {
    display: flex;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: rgba(145,138,234,.13);
    color: var(--agency-accent);
    font-size: 23px;
}

.agency-remote__inner > div:nth-child(2) {
    flex: 1;
}

.agency-remote__inner span {
    display: block;
    margin-bottom: 5px;
    color: var(--agency-accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.agency-remote__inner h2 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 26px;
}

.agency-remote__inner p {
    margin: 0;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

.agency-remote__inner > a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    padding: 0 19px;
    border-radius: 8px;
    background: var(--agency-accent);
    color: var(--agency-ink);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

/* Local agency visual */
.agency-detail-visual {
    position: relative;
    z-index: 2;
    height: 500px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    background: rgba(255,255,255,.075);
    box-shadow: 0 30px 80px rgba(0,0,0,.23);
    transform: rotate(1deg);
}

.agency-detail-visual > img {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    object-fit: cover;
}

.agency-detail-visual::after {
    position: absolute;
    inset: 9px;
    border-radius: 17px;
    background: linear-gradient(to top, rgba(8,15,33,.5), transparent 55%);
    content: "";
}

.agency-detail-visual__location {
    position: absolute;
    z-index: 3;
    bottom: 28px;
    left: -34px;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 235px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 13px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    transform: rotate(-1deg);
}

.agency-detail-visual__location > i {
    display: flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--agency-navy);
    color: var(--agency-accent);
}

.agency-detail-visual__location small,
.agency-detail-visual__location strong {
    display: block;
}

.agency-detail-visual__location small {
    margin-bottom: 2px;
    color: var(--agency-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.agency-detail-visual__location strong {
    color: var(--agency-ink);
    font-size: 14px;
}

.agency-detail-visual__badge {
    position: absolute;
    z-index: 3;
    top: 30px;
    right: -25px;
    padding: 11px 14px;
    border-radius: 9px;
    background: var(--agency-accent);
    color: var(--agency-ink);
    box-shadow: 0 14px 35px rgba(0,0,0,.16);
    font-size: 11px;
    font-weight: 850;
    transform: rotate(-1deg);
}

.agency-detail-visual__badge i {
    margin-right: 7px;
}

/* Facts */
.agency-facts {
    border-bottom: 1px solid var(--agency-line);
    background: #fff;
}

.agency-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.agency-facts__grid > div {
    display: flex;
    min-height: 125px;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    border-right: 1px solid var(--agency-line);
}

.agency-facts__grid > div:last-child {
    border-right: 0;
}

.agency-facts__grid i {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f2ff;
    color: var(--agency-blue);
}

.agency-facts__grid span,
.agency-facts__grid strong {
    display: block;
}

.agency-facts__grid span {
    color: var(--agency-muted);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.agency-facts__grid strong {
    margin-top: 4px;
    color: var(--agency-ink);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

/* Local agency benefits */
.agency-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 21px;
}

.agency-benefits article {
    padding: 29px 25px;
    border: 1px solid var(--agency-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(16,24,40,.05);
}

.agency-benefits article > span {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 14px;
    background: var(--agency-navy);
    color: var(--agency-accent);
    font-size: 19px;
}

.agency-benefits h3 {
    margin-bottom: 10px;
    color: var(--agency-ink);
    font-size: 19px;
}

.agency-benefits p {
    margin: 0;
    color: var(--agency-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Local services */
.agency-services {
    padding: 110px 0;
    background: var(--agency-paper);
}

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

.agency-service-card {
    position: relative;
    min-height: 310px;
    padding: 29px;
    border: 1px solid var(--agency-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(16,24,40,.045);
}

.agency-service-card:hover {
    border-color: rgba(52,72,197,.25);
    box-shadow: 0 24px 55px rgba(16,24,40,.1);
    transform: translateY(-6px);
}

.agency-service-card__number {
    position: absolute;
    top: 26px;
    right: 27px;
    color: #e0e4ec;
    font-size: 12px;
    font-weight: 850;
}

.agency-service-card__icon {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 15px;
    background: var(--agency-navy);
    color: var(--agency-accent);
    font-size: 20px;
}

.agency-service-card > strong {
    display: block;
    margin-bottom: 11px;
    color: var(--agency-ink);
    font-size: 20px;
    line-height: 1.3;
}

.agency-service-card > small {
    display: block;
    color: var(--agency-muted);
    font-size: 13px;
    line-height: 1.7;
}

.agency-service-card__link {
    position: absolute;
    bottom: 27px;
    left: 29px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--agency-blue);
    font-size: 12px;
    font-weight: 850;
}

.agency-centered-link {
    margin-top: 43px;
    text-align: center;
}

.agency-centered-link a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--agency-ink);
    font-size: 13px;
    font-weight: 850;
}

.agency-centered-link a:hover {
    color: var(--agency-blue);
}

/* Process */
.agency-process__intro {
    margin: 0;
    color: var(--agency-muted);
    font-size: 16px;
    line-height: 1.75;
}

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

.agency-process__grid article {
    position: relative;
    padding: 32px 27px;
    border-top: 3px solid var(--agency-accent);
    border-radius: 0 0 15px 15px;
    background: var(--agency-paper);
}

.agency-process__grid article > span {
    display: block;
    margin-bottom: 32px;
    color: #d9dde7;
    font-size: 34px;
    font-weight: 850;
    line-height: 1;
}

.agency-process__grid h3 {
    margin-bottom: 10px;
    color: var(--agency-ink);
    font-size: 20px;
}

.agency-process__grid p {
    margin: 0;
    color: var(--agency-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Local territory */
.agency-local {
    padding: 0 0 110px;
    background: #fff;
}

.agency-local__panel {
    display: grid;
    overflow: hidden;
    grid-template-columns: 1.05fr .95fr;
    border: 1px solid var(--agency-line);
    border-radius: 24px;
    background: var(--agency-paper);
}

.agency-local__content {
    padding: 55px;
}

.agency-local__content h2 {
    margin-bottom: 20px;
    color: var(--agency-ink);
    font-size: 39px;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.agency-local__content p {
    margin-bottom: 15px;
    color: var(--agency-muted);
    font-size: 14px;
    line-height: 1.78;
}

.agency-local__content > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    color: var(--agency-blue);
    font-size: 13px;
    font-weight: 850;
}

.agency-local__visual {
    min-height: 460px;
}

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

/* Nearby */
.agency-nearby {
    padding: 85px 0;
    background: var(--agency-paper);
}

.agency-nearby__inner {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 70px;
}

.agency-nearby h2 {
    margin: 0;
    color: var(--agency-ink);
    font-size: 34px;
    line-height: 1.2;
}

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

.agency-nearby__links a {
    display: flex;
    min-height: 55px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--agency-line);
    border-radius: 11px;
    background: #fff;
    color: var(--agency-ink);
    font-size: 13px;
    font-weight: 800;
}

.agency-nearby__links a:hover {
    border-color: var(--agency-blue);
    color: var(--agency-blue);
    transform: translateY(-2px);
}

.agency-nearby__links i {
    color: #2265bb;
}

.agency-nearby__links span {
    margin-left: auto;
    color: var(--agency-muted);
    font-size: 9px;
    font-weight: 600;
}

/* Contact */
.agency-contact {
    padding: 110px 0;
    background: #fff;
}

.agency-contact__intro {
    height: 100%;
    padding: 43px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 8%, rgba(145,138,234,.17), transparent 25%),
        var(--agency-navy);
    color: #fff;
}

.agency-contact__intro h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
}

.agency-contact__intro > p {
    color: rgba(255,255,255,.64);
    line-height: 1.75;
}

.agency-contact__intro ul {
    margin: 28px 0;
    padding: 23px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    list-style: none;
}

.agency-contact__intro li {
    margin: 11px 0;
    color: rgba(255,255,255,.8);
    font-size: 13px;
}

.agency-contact__intro li i {
    margin-right: 9px;
    color: var(--agency-accent);
}

.agency-contact__intro > a {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
}

.agency-contact__intro > a > i {
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(145,138,234,.12);
    color: var(--agency-accent);
}

.agency-contact__intro > a small,
.agency-contact__intro > a strong {
    display: block;
}

.agency-contact__intro > a small {
    margin-bottom: 2px;
    color: rgba(255,255,255,.45);
    font-size: 9px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.agency-contact__intro > a strong {
    color: #fff;
    font-size: 15px;
}

.agency-contact__form {
    height: 100%;
    padding: 43px;
    border: 1px solid var(--agency-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(16,24,40,.08);
}

.agency-contact__form > h2 {
    margin-bottom: 7px;
    color: var(--agency-ink);
    font-size: 30px;
}

.agency-contact__form > p {
    margin-bottom: 27px;
    color: var(--agency-muted);
    font-size: 13px;
}

.agency-contact__form .agency-btn--primary:hover {
    background: var(--agency-navy);
    color: #fff;
}

.agency-contact__form .col-12 > small {
    color: var(--agency-muted);
    font-size: 10px;
}

.agency-contact__form .col-12 > small i {
    margin-right: 4px;
    color: var(--agency-blue);
}

@media (max-width: 1199px) {
    .agency-featured__grid,
    .agency-region-grid,
    .agency-services__grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .agency-detail-visual {
        height: 450px;
    }

    .agency-heading--split {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .agency-hero {
        padding: 160px 0 85px;
    }

    .agency-detail-visual {
        max-width: 680px;
    }

    .agency-facts__grid,
    .agency-benefits,
    .agency-process__grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .agency-facts__grid > div:nth-child(2) {
        border-right: 0;
    }

    .agency-facts__grid > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--agency-line);
    }

    .agency-featured,
    .agency-network,
    .agency-intro,
    .agency-services,
    .agency-process,
    .agency-contact {
        padding: 85px 0;
    }

    .agency-remote,
    .agency-local {
        padding-bottom: 85px;
    }

    .agency-heading--split,
    .agency-nearby__inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .agency-local__panel {
        grid-template-columns: 1fr;
    }

    .agency-local__visual {
        min-height: 360px;
        grid-row: 1;
    }
}

@media (max-width: 767px) {
    .agency-hero {
        padding: 140px 0 70px;
    }

    .agency-breadcrumb {
        margin-bottom: 38px;
    }

    .agency-hero h1 {
        font-size: 42px;
    }

    .agency-hero .col-lg-7 > p {
        font-size: 16px;
    }

    .agency-index-card {
        padding: 28px 24px;
    }

    .agency-detail-visual {
        height: 370px;
        transform: none;
    }

    .agency-detail-visual__location {
        right: 20px;
        bottom: 20px;
        left: 20px;
        min-width: 0;
        transform: none;
    }

    .agency-detail-visual__badge {
        display: none;
    }

    .agency-featured,
    .agency-network,
    .agency-intro,
    .agency-services,
    .agency-process,
    .agency-contact {
        padding: 70px 0;
    }

    .agency-remote,
    .agency-local {
        padding-bottom: 70px;
    }

    .agency-heading h2 {
        font-size: 35px;
    }

    .agency-featured__grid,
    .agency-region-grid,
    .agency-services__grid {
        grid-template-columns: 1fr;
    }

    .agency-remote__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 34px 25px;
    }

    .agency-remote__inner > a {
        width: 100%;
        justify-content: center;
    }

    .agency-local__content,
    .agency-contact__intro,
    .agency-contact__form {
        padding: 32px 25px;
    }

    .agency-local__content h2 {
        font-size: 33px;
    }

    .agency-nearby {
        padding: 70px 0;
    }
}

@media (max-width: 520px) {
    .agency-hero h1 {
        font-size: 37px;
    }

    .agency-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .agency-facts__grid,
    .agency-benefits,
    .agency-process__grid,
    .agency-nearby__links {
        grid-template-columns: 1fr;
    }

    .agency-facts__grid > div {
        min-height: 95px;
        border-right: 0;
        border-bottom: 1px solid var(--agency-line);
    }

    .agency-region-card__cities {
        grid-template-columns: 1fr;
    }

    .agency-city-card__image {
        height: 215px;
    }

    .agency-service-card {
        min-height: 300px;
        padding: 27px 23px;
    }

    .agency-service-card__link {
        left: 23px;
    }
}
