/* =========================
   EWADC Colocation Page
========================= */

.ew-colocation-page {
    background: #fff;
}

/* Section headings */

.ew-pricing-section {
    padding-top: 100px;
    padding-bottom: 90px;
}

.ew-section-head {
    max-width: 820px;
    margin: 0 auto 58px;
    text-align: center;
}

.ew-section-head h2 {
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
}

.ew-section-head p:last-child {
    margin: 20px 0 0;
    font-size: 21px;
    line-height: 1.45;
    color: #333;
}

/* Pricing cards */

.ew-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.ew-plan-card {
    height: 720px;
    padding: 38px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    display: grid;
    grid-template-rows: auto 1fr auto;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ew-plan-card:hover {
    border-color: #000;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.ew-plan-top {
    min-height: 350px;
}

.ew-plan-card h3 {
    margin: 0;
    font-size: clamp(34px, 3.5vw, 50px);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.ew-plan-price {
    margin: 22px 0 28px;
    font-size: 22px;
    font-weight: 900;
}

.ew-plan-card ul {
    margin: 0;
    padding-left: 22px;
}

.ew-plan-card li {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.45;
}

.ew-plan-bottom {
    display: grid;
    grid-template-rows: 220px auto;
    align-items: end;
    justify-items: center;
    gap: 28px;
}

.ew-plan-bottom img {
    display: block;
    width: auto;
    max-width: 88%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
}

.ew-plan-card:nth-child(1) .ew-plan-bottom img {
    max-height: 90px;
}

.ew-plan-card:nth-child(2) .ew-plan-bottom img {
    max-height: 175px;
}

.ew-plan-card:nth-child(3) .ew-plan-bottom img {
    max-height: 210px;
}

.ew-plan-bottom .ew-page-btn {
    width: 220px;
    margin: 0;
}

/* Options section */

.ew-options-section {
    padding-top: 100px;
    padding-bottom: 130px;
}

.ew-options-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
}

.ew-option-card {
    min-height: 245px;
    padding: 36px 28px;
    border-right: 1px solid rgba(0,0,0,.12);
}

.ew-option-card:last-child {
    border-right: 0;
}

.ew-option-card span {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 1px solid #000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.ew-option-card h3 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 900;
}

.ew-option-card p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.45;
    color: #111;
}

.ew-option-value {
    font-size: 27px !important;
    font-weight: 900;
}

/* More air before bottom blocks */

.ew-colocation-page .ew-page-grid {
    padding-top: 100px;
    padding-bottom: 130px;
}

.ew-colocation-page .ew-contact-strip {
    margin-top: 110px;
}

/* Mobile */

@media (max-width: 900px) {
    .ew-pricing-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .ew-pricing-grid,
    .ew-options-grid {
        grid-template-columns: 1fr;
    }

    .ew-plan-card {
        height: auto;
        min-height: 0;
        padding: 34px;
    }

    .ew-plan-top {
        min-height: 0;
    }

    .ew-plan-bottom {
        grid-template-rows: 190px auto;
        margin-top: 34px;
    }

    .ew-plan-card:nth-child(1) .ew-plan-bottom img {
        max-height: 80px;
    }

    .ew-plan-card:nth-child(2) .ew-plan-bottom img {
        max-height: 155px;
    }

    .ew-plan-card:nth-child(3) .ew-plan-bottom img {
        max-height: 185px;
    }

    .ew-options-section {
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .ew-option-card {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,.12);
    }

    .ew-option-card:last-child {
        border-bottom: 0;
    }

    .ew-colocation-page .ew-page-grid {
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .ew-colocation-page .ew-contact-strip {
        margin-top: 70px;
    }
}

/* =========================
   Peering / Network block
========================= */

.ew-peering-section {
    padding-top: 40px;
    padding-bottom: 130px;
}

.ew-peering-card {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    display: grid;
    grid-template-columns: 420px 1fr;
    grid-template-rows: 1fr auto;
}

.ew-peering-left {
    position: relative;
    z-index: 2;
    padding: 64px 0 48px 56px;
}

.ew-peering-left h2 {
    margin: 0;
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -2px;
}

.ew-peering-lead {
    margin: 26px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: #222;
}

.ew-peering-points {
    margin-top: 38px;
}

.ew-peering-points div {
    padding: 17px 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.ew-peering-points strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 900;
}

.ew-peering-points span {
    display: block;
    font-size: 14px;
    color: #555;
}

.ew-peering-map {
    grid-column: 2;
    grid-row: 1;
    min-height: 500px;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 18%, rgba(255,255,255,.06) 45%),
        url("../images/maps.webp");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
}

.ew-peering-carriers {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(0,0,0,.1);
    padding: 26px 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-items: center;
}

.ew-peering-carriers span {
    font-size: 15px;
    font-weight: 850;
    color: #111;
    white-space: nowrap;
}

.ew-peering-carriers span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin-left: 22px;
    background: rgba(0,0,0,.18);
    vertical-align: -2px;
}

@media (max-width: 900px) {
    .ew-peering-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .ew-peering-left {
        padding: 44px 28px 24px;
    }

    .ew-peering-map {
        grid-column: 1;
        grid-row: 2;
        min-height: 320px;
        background-image: url("../images/maps.webp");
        background-size: contain;
        background-position: center;
    }

    .ew-peering-carriers {
        grid-column: 1;
        padding: 24px 28px 34px;
        gap: 10px 16px;
    }

    .ew-peering-carriers span {
        font-size: 14px;
    }
}