.btrm {
    --btrm-navy: #1d1d1b;
    --btrm-blue: #2174b7;
    --btrm-red: #ac1f53;
    --btrm-gold: #ebb15b;
    --btrm-lilac: #eef6fb;
    --btrm-white: #fff;
    --btrm-shadow: 0 18px 48px rgba(12, 39, 65, .2);
    --btrm-content-width: 1320px;
    --btrm-side-padding: 52px;
    --btrm-title-size: 54px;
    --btrm-title-color: var(--btrm-navy);
    --btrm-gap: 22px;
    --btrm-radius: 18px;
    --btrm-columns: 3;
    --btrm-header-align: center;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: var(--btrm-content-width);
    padding: var(--btrm-top-padding, 72px) var(--btrm-side-padding) var(--btrm-bottom-padding, 84px);
}

.btrm *, .btrm *::before, .btrm *::after { box-sizing: border-box; }

.btrm__header { margin: 0 auto 40px; max-width: 760px; text-align: var(--btrm-header-align); }
.btrm__eyebrow, .btrm-modal__eyebrow {
    color: var(--btrm-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    margin: 0 0 9px;
    text-transform: uppercase;
}
.btrm__title { color: var(--btrm-title-color); font-family: "Roboto Condensed", sans-serif; font-size: clamp(34px, 4vw, var(--btrm-title-size)); font-weight: 500; letter-spacing: -.045em; line-height: 1.03; margin: 0; }
.btrm__intro { color: #516579; font-size: 18px; line-height: 1.6; margin: 18px auto 0; max-width: 680px; }
.btrm__grid { display: grid; gap: var(--btrm-gap); grid-template-columns: repeat(var(--btrm-columns), minmax(0, 1fr)); }

.btrm-card {
    aspect-ratio: 1 / 1;
    background: var(--btrm-lilac);
    border-radius: var(--btrm-radius);
    box-shadow: 0 8px 30px rgba(15, 48, 78, .13);
    isolation: isolate;
    margin: 0;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
}
.btrm-card__image { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform .55s ease; width: 100%; z-index: -2; }
.btrm-card__image--contain { background: #d9dcec; object-fit: contain; padding: 10px; }
.btrm-card::after {
    background: linear-gradient(180deg, rgba(8, 31, 53, .06) 20%, rgba(8, 31, 53, .88) 100%);
    content: "";
    inset: 0;
    position: absolute;
    transition: background .35s ease;
    z-index: -1;
}
.btrm-card__overlay { bottom: 0; color: var(--btrm-white); display: flex; flex-direction: column; inset-inline: 0; justify-content: flex-end; min-height: 100%; padding: 28px; }
.btrm-card__title { color: inherit; font-family: "Roboto Condensed", sans-serif; font-size: clamp(24px, 2.2vw, 31px); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
.btrm-card__summary { font-size: 15px; line-height: 1.48; margin: 14px 0 17px; max-width: 34em; opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.btrm-card__button {
    align-self: flex-start;
    background: var(--btrm-white);
    border: 0;
    border-radius: 999px;
    color: var(--btrm-navy);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    padding: 11px 18px;
    transform: translateY(10px);
    transition: background .2s ease, color .2s ease, opacity .3s ease, transform .3s ease;
}
.btrm-card:hover::after, .btrm-card:focus-within::after { background: linear-gradient(145deg, rgba(33, 116, 183, .94), rgba(172, 31, 83, .97)); }
.btrm-card:hover .btrm-card__image, .btrm-card:focus-within .btrm-card__image { transform: scale(1.045); }
.btrm-card:hover .btrm-card__summary, .btrm-card:hover .btrm-card__button,
.btrm-card:focus-within .btrm-card__summary, .btrm-card:focus-within .btrm-card__button { opacity: 1; transform: none; }
.btrm-card__button:hover, .btrm-card__button:focus { background: var(--btrm-gold); color: var(--btrm-navy); outline: none; }
.btrm-card__button:focus-visible, .btrm-modal__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.btrm-modal[hidden] { display: none; }
.btrm-modal { align-items: center; display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 999999; }
.btrm-modal__backdrop { background: rgba(5, 24, 42, .78); inset: 0; position: absolute; }
.btrm-modal__panel {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--btrm-shadow);
    max-height: min(84vh, 760px);
    max-width: 720px;
    overflow: auto;
    padding: clamp(30px, 5vw, 52px);
    position: relative;
    width: 100%;
}
.btrm-modal__close { background: #edf3f7; border: 0; border-radius: 50%; color: var(--btrm-navy); cursor: pointer; font-size: 29px; height: 42px; line-height: 1; position: absolute; right: 18px; top: 18px; width: 42px; }
.btrm-modal__title { color: var(--btrm-navy); font-family: "Roboto Condensed", sans-serif; font-size: clamp(29px, 3.2vw, 42px); font-weight: 500; line-height: 1.08; margin: 0 50px 22px 0; }
.btrm-modal__description { color: #40576d; font-size: 17px; line-height: 1.65; margin: 0; }
.btrm-modal__examples { background: #eef6fb; border-left: 4px solid var(--btrm-red); border-radius: 0 14px 14px 0; margin-top: 28px; padding: 24px 26px; }
.btrm-modal__examples h4 { color: var(--btrm-navy); font-size: 14px; letter-spacing: .08em; margin: 0 0 12px; text-transform: uppercase; }
.btrm-modal__examples p { color: #2c4c67; font-size: 16px; line-height: 1.58; margin: 0; }
.btrm-modal__examples p + p { margin-top: 12px; }
body.btrm-modal-open { overflow: hidden; }

@media (max-width: 980px) {
    .btrm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .btrm { padding: 54px 18px 64px; }
    .btrm__header { margin-bottom: 30px; text-align: left; }
    .btrm__intro { font-size: 16px; }
    .btrm__grid { grid-template-columns: 1fr; }
    .btrm-card { aspect-ratio: auto; min-height: 390px; }
    .btrm-card::after { background: linear-gradient(180deg, rgba(8, 31, 53, .05) 15%, rgba(8, 31, 53, .94) 100%); }
    .btrm-card__summary, .btrm-card__button { opacity: 1; transform: none; }
    .btrm-card__overlay { padding: 24px; }
    .btrm-modal { align-items: flex-end; padding: 12px; }
    .btrm-modal__panel { border-radius: 18px; max-height: 90vh; padding: 34px 24px 28px; }
    .btrm-modal__close { right: 12px; top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .btrm-card__image, .btrm-card__summary, .btrm-card__button { transition: none; }
}
