:root {
    --blue: #058ed0;
    --deep: #123f5a;
    --cyan: #00aeef;
    --green: #8cc63f;
    --yellow: #ffd500;
    --ink: #263744;
    --muted: #6d7c86;
    --line: #d8e6ed;
    --paper: #f2f7fa;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
}

body[data-font="1"] {
    font-size: 18px;
}

body[data-font="2"] {
    font-size: 20px;
}

body[data-font="3"] {
    font-size: 22px;
}

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

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
}

.utility {
    background: var(--white);
    color: #24333d;
    font-size: 16px;
    border-bottom: 6px solid var(--cyan);
}

.utility__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.accessibility-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.accessibility-toolbar span {
    margin-right: 4px;
}

.a11y-btn {
    width: 31px;
    height: 31px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d7dfe4;
    background: var(--white);
    color: #0097d7;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.a11y-btn:hover,
.a11y-btn.is-active {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

.a11y-btn--dark {
    background: #000;
    color: #fff;
}

.a11y-btn--yellow {
    background: #000;
    color: #f4ff00;
}

.a11y-btn--blue {
    background: #f4ff00;
    color: #000;
}

.a11y-btn--text {
    font-size: 24px;
}

.search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search input {
    width: 170px;
    min-height: 28px;
    border: 1px solid var(--line);
    padding: 6px 8px;
}

.search button,
button {
    border: 0;
    background: var(--cyan);
    color: var(--white);
    font-weight: 700;
    padding: 9px 14px;
    cursor: pointer;
}

body.a11y-layout-compact .wrap {
    width: min(980px, calc(100% - 32px));
}

body.a11y-layout-wide .wrap {
    width: min(1360px, calc(100% - 32px));
}

body.a11y-contrast-night {
    --blue: #18658c;
    --deep: #081d2b;
    --cyan: #156f85;
    --green: #6c922e;
    --yellow: #e2c04c;
    --ink: #e8f2f7;
    --muted: #c7d6df;
    --line: #375367;
    --paper: #102b3d;
    --white: #0a1721;
}

body.a11y-contrast-dark {
    --blue: #fff;
    --deep: #000;
    --cyan: #fff;
    --green: #fff;
    --yellow: #fff;
    --ink: #fff;
    --muted: #fff;
    --line: #fff;
    --paper: #000;
    --white: #000;
    background: #000;
    color: #fff;
}

body.a11y-contrast-yellow {
    --blue: #ffff00;
    --deep: #000;
    --cyan: #ffff00;
    --green: #ffff00;
    --yellow: #ffff00;
    --ink: #ffff00;
    --muted: #ffff00;
    --line: #ffff00;
    --paper: #000;
    --white: #000;
    background: #000;
    color: #ffff00;
}

body.a11y-contrast-blue {
    --blue: #000;
    --deep: #000;
    --cyan: #000;
    --green: #000;
    --yellow: #000;
    --ink: #000;
    --muted: #000;
    --line: #000;
    --paper: #ffff00;
    --white: #ffff00;
    background: #ffff00;
    color: #000;
}

body.a11y-contrast-dark img,
body.a11y-contrast-yellow img,
body.a11y-contrast-blue img {
    filter: grayscale(1) contrast(1.15);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0 12px;
}

.brand img {
    width: 220px;
    max-height: 116px;
    object-fit: contain;
    height: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.main-nav a {
    padding: 10px 13px;
    color: var(--deep);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
    border-color: var(--green);
}

.main-nav .nav-bip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.main-nav .nav-bip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.quick-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: 100%;
    max-width: none;
    background: var(--deep);
    margin-bottom: 0;
}

.quick-nav a {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #087eb8;
    color: var(--white);
    padding: 17px 22px;
    border-right: 1px solid rgba(255, 255, 255, .2);
}

.quick-nav a:nth-child(even) {
    background: #0797d0;
}

.quick-nav a:first-child {
    background: var(--green);
}

.quick-nav strong {
    font-size: 21px;
    line-height: 1.1;
    text-transform: uppercase;
}

.quick-nav span {
    color: rgba(255, 255, 255, .85);
}

.hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: var(--deep);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity .6s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 44, 68, .72), rgba(4, 44, 68, .08));
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.hero-content p {
    margin: 0 0 8px;
    color: var(--yellow);
    font-weight: 700;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    text-transform: uppercase;
    font-weight: 900;
}

.hero-content span {
    max-width: 520px;
    margin-top: 18px;
    font-size: 20px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 13px;
    height: 13px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
}

.hero-dots button.is-active {
    background: var(--yellow);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 0;
}

.feature {
    min-height: 86px;
    display: grid;
    place-items: center;
    background: #0a8fc8;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .22);
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.feature--price {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.content-band {
    background: #eef5f8;
    padding: 44px 0;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

.section-head {
    display: flex;
    align-items: end;
    gap: 18px;
    margin-bottom: 20px;
}

.section-head p {
    margin: 0;
    color: var(--green);
    font-weight: 700;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 0;
    font-size: 34px;
    color: var(--deep);
    text-transform: uppercase;
}

.section-head a {
    margin-left: auto;
    color: var(--blue);
    font-weight: 700;
}

.news-list,
.news-grid {
    display: grid;
    gap: 18px;
}

.news-item,
.news-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    background: var(--white);
    border: 0;
    border-top: 4px solid var(--cyan);
    padding: 14px;
    box-shadow: 0 1px 0 rgba(18, 63, 90, .08);
}

.news-item img,
.news-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

time {
    color: var(--muted);
    font-size: 14px;
}

.news-item h3,
.news-card h2 {
    margin: 5px 0 6px;
    color: var(--deep);
}

.news-item p,
.news-card p {
    margin: 0;
    color: var(--muted);
}

.side-panel {
    background: var(--white);
    border: 0;
    border-top: 4px solid var(--green);
    padding: 20px;
    box-shadow: 0 1px 0 rgba(18, 63, 90, .08);
}

.side-panel h2 {
    margin: 0 0 12px;
    color: var(--deep);
}

.video-placeholder {
    display: grid;
    min-height: 170px;
    place-items: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--deep), var(--blue));
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
}

.promo-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
    background: var(--deep);
}

.media-section {
    padding: 42px 0 8px;
}

.media-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 18px;
    align-items: stretch;
}

.youtube-box {
    background: var(--deep);
}

.youtube-box iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
    aspect-ratio: 16 / 9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-grid--compact {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .25s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.04);
}

.promos {
    padding: 46px 0;
}

.promo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: stretch;
}

.promo-slider {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    background: var(--deep);
}

.promo-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity .45s ease;
}

.promo-slide.is-active {
    opacity: 1;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
}

.promo-slide span {
    position: absolute;
    left: 28px;
    bottom: 24px;
    z-index: 1;
    max-width: calc(100% - 110px);
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
}

.promo-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .45);
    color: var(--white);
    font-size: 42px;
    line-height: 1;
}

.promo-arrow--prev {
    left: 12px;
}

.promo-arrow--next {
    right: 12px;
}

.promo-dots {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.promo-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .58);
}

.promo-dots button.is-active {
    background: var(--yellow);
}

.promo-list-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 360px;
    padding: 24px;
    border: 0;
    border-top: 6px solid var(--green);
    background: #eef7fb;
    color: var(--deep);
}

.promo-list-card > strong {
    margin-bottom: 4px;
    font-size: 28px;
    line-height: 1.15;
    text-transform: uppercase;
}

.promo-list-card a {
    display: block;
    padding: 12px 13px;
    border-left: 4px solid var(--cyan);
    background: var(--white);
}

.promo-list-card a:hover {
    border-left-color: var(--green);
}

.promo-list-card span {
    display: block;
    color: var(--deep);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
}

.promo-list-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.plan-showcase {
    padding: 0;
    background: #173f56;
    color: var(--white);
}

.plan-showcase__inner {
    width: 100%;
    max-width: none;
}

.plan-showcase .section-head {
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
    padding: 38px 0 0;
}

.plan-head {
    align-items: center;
}

.section-head--light h2,
.section-head--light a {
    color: var(--white);
}

.plan-frame {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 520px;
    background: transparent;
    border: 0;
}

.plan-frame::before,
.plan-frame::after {
    position: absolute;
    top: 50%;
    z-index: 1;
    color: rgba(255, 255, 255, .7);
    font-size: 98px;
    line-height: 1;
    transform: translateY(-50%);
}

.plan-frame::before {
    content: "‹";
    left: 7%;
}

.plan-frame::after {
    content: "›";
    right: 7%;
}

.plan-frame img {
    position: relative;
    z-index: 2;
    width: min(980px, 78vw);
    margin: 12px auto 58px;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .35));
}

.site-footer {
    padding: 36px 0;
    background: #18384f;
    color: var(--white);
}

.footer-content {
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
    gap: 42px;
    align-items: center;
}

.footer-contact h2 {
    margin-top: 0;
}

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

.footer-hours section {
    padding: 22px;
    border-top: 5px solid var(--green);
    background: rgba(255, 255, 255, .08);
}

.footer-hours section:nth-child(2) {
    border-top-color: var(--cyan);
}

.footer-hours h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 22px;
    text-transform: uppercase;
}

.footer-hours p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 0;
    color: #d5e6ef;
}

.footer-hours strong {
    color: var(--white);
    white-space: nowrap;
}

.muted,
.muted a {
    color: #bfd6e5;
}

.news-page,
.article-page {
    padding: 36px 0 56px;
}

.news-page h1,
.article h1 {
    color: var(--deep);
}

.article {
    max-width: 820px;
}

.article img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin-bottom: 18px;
}

.lead {
    color: var(--muted);
    font-size: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blue);
    font-weight: 700;
}

.admin-body {
    min-height: 100vh;
    background: var(--paper);
}

.admin-box,
.admin-panel {
    width: min(1020px, calc(100% - 32px));
    margin: 40px auto;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 24px;
}

.admin-box {
    max-width: 440px;
}

.admin-box label,
.editor label {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 700;
}

.admin-box input,
.editor input,
.editor textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 10px;
    font: inherit;
}

.alert {
    padding: 10px 12px;
    background: #ffe7e1;
    color: #8b1d0e;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.admin-thumb {
    width: 220px;
    height: 110px;
    object-fit: cover;
    margin-bottom: 14px;
}

.check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px !important;
}

.check input {
    width: auto;
}

.admin-list article {
    border: 1px solid var(--line);
    padding: 12px;
    margin-bottom: 10px;
    background: var(--paper);
}

.admin-list span,
.admin-list a {
    display: inline-block;
    margin-right: 10px;
    color: var(--muted);
}

.inline-form {
    display: inline;
}

.inline-form button {
    display: inline;
    padding: 0;
    background: transparent;
    color: #a93621;
    font: inherit;
    font-weight: 700;
}

.new-link {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-weight: 700;
}

@media (max-width: 860px) {
    .brand-row,
    .utility__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .search {
        margin-left: 0;
    }

    .quick-nav,
    .feature-row,
    .two-col,
    .promo-layout,
    .media-layout,
    .gallery-grid,
    .footer-content,
    .footer-hours,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .youtube-box iframe {
        min-height: 260px;
    }

    .promo-slider,
    .promo-list-card {
        min-height: 280px;
    }

    .plan-frame {
        min-height: 260px;
    }

    .plan-frame::before,
    .plan-frame::after {
        display: none;
    }

    .news-item,
    .news-card {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero-content {
        min-height: 360px;
    }
}
