/* ============ RESET / BASE ============ */
* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #fff;
    color: #111;
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ============ CSS VARIABLES (CLEAN) ============ */
:root {
    --maxw: 1440px;
    --topbar-h: 64px;
    --nav-h: 56px;
    --gap: 10px;

    /* ===== Brand colors ===== */
    --brand: #ffd22e;
    --brand-2: #115aa8;
    --brand-2-dark: #0e4b8e;

    /* ===== Base colors ===== */
    --bg: #f7f9fc;
    --ink: #ffffff;
    --text: #111111;
    --muted: #5c6a7f;
    --muted2: #6b7a90;
    --muted4: #5f6f84;

    /* ===== Navigation ===== */
    --nav: #0b3a7a;
    --link: #eaf2ff;

    /* ===== UI colors ===== */
    --blue: #155fae;
    --blue-dark: #0f4f93;

    --hover-bg: #e8f1ff;
    --hover-text: #0c4aad;

    /* ===== Borders & radius ===== */
    --border: #dde7f6;
    --radius: 18px;
    --radius-nav: 14px;
    --radius-news: 16px;
    --radius-price: 16px;
    --radius-service: 14px;

    /* ===== Shadows ===== */
    --shadow: 0 14px 34px rgba(0, 0, 0, .18);
    --shadow-lg: 0 10px 26px rgba(0, 0, 0, .12);
    --shadow-service: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow-price: 0 10px 30px rgba(0, 0, 0, .08);
    --news-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    --cols: 3;
}


.page {
    padding-top: calc(var(--topbar-h) + var(--nav-h));
}

/* ============ HEADER / TOPBAR ============ */
.burger {
    display: none !important;
}



.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    width: 100%;
    font-weight: 600;
    background: #fff;
}

.topbar {
    background: #fff;
    color: #0d1727;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.topbar .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top-logo {
    display: flex;
    align-items: center;
    gap: 12px
}

.top-logo img {
    width: 180px;
    height: 44px;
    object-fit: contain
}

.u-right {
    display: flex;
    align-items: center;
    gap: 18px
}

.u-right.bubble {
    padding: 8px 14px;
    gap: 25px
}

.u-line img {
    height: 14px;
    width: 13px
}

.u-value {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.u-label {
    color: #6b7a90;
    font-weight: 700
}

/* Socials */
.socials {
    display: flex;
    align-items: center;
    gap: 10px
}

.socials a {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    text-decoration: none;
}

/* ============ NAVBAR ============ */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav);
    color: #fff;
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}


.menu>li {
    position: relative
}

.menu>li>a {
    color: var(--link);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}


.menu>li>a:hover,
.menu>li>a:focus-visible {
    background: rgba(255, 255, 255, .10);
    outline: none;
}

.menu>li.has-sub>a::after {
    content: "▾";
    font-size: .8rem;
    opacity: .85;
    transform: translateY(-1px)
}

.rightbar {
    display: flex;
    align-items: center;
    gap: 16px
}

.search-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: none;
    cursor: pointer;
}

.lang-badge {
    color: #fff;
    opacity: .95;
    font-weight: 700
}

.cta-primary {
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-primary .icon {
    background: #fff;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: inline-block;
}

/* ============ SUBMENU ============ */
.submenu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: var(--gap);
    min-width: 320px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .16s ease;
    pointer-events: none;
}

.submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1*var(--gap));
    height: var(--gap);
}

.menu>li:hover>.submenu,
.menu>li:focus-within>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.submenu li {
    position: relative
}

.submenu li.open>.flyout {
    display: block;
}

.submenu a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: #1d2b3a;
    padding: 10px 12px;
    border-radius: 10px;
    line-height: 1.25;
}

.submenu a:hover,
.submenu a:focus-visible {
    background: var(--hover-bg);
    color: var(--hover-text);
    outline: none
}

.has-flyout>a::after {
    content: "▸";
    margin-left: auto;
    opacity: .7
}

.flyout {
    position: absolute;
    left: 100%;
    top: -8px;
    margin-left: 10px;
    min-width: 360px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .16s ease;
    pointer-events: none;
}

.submenu li:hover>.flyout,
.submenu li:focus-within>.flyout {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============ BANNER (статик фон+оверлей) ============ */
.banner {
    position: relative;
    height: 64vh;
    min-height: 560px;
    overflow: hidden;
    color: var(--text);
    display: grid;
    place-items: center;
    text-align: center;
    isolation: isolate;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/slide1.jpg") center/cover no-repeat;
    transform: scale(1.02);
    z-index: -3;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .55) 5%, rgba(0, 0, 0, .35) 30%, rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, .55) 100%),
        radial-gradient(1200px 200px at 50% 95%, rgba(242, 194, 0, .25), transparent 60%);
    z-index: -2;
}

.banner-inner {
    max-width: var(--maxw);
    padding: 0 20px
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text);
    background: rgba(0, 0, 0, .35);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.title {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: clamp(32px, 5.2vw, 64px);
    line-height: 1.1;
    margin: 6px 0 10px;
    text-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.subtitle {
    font-size: clamp(16px, 2.3vw, 22px);
    color: #e9e9e9;
    opacity: .95;
    margin: 0 0 14px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-2);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(30, 136, 229, .45);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 36px rgba(30, 136, 229, .60)
}

.cta:active {
    transform: translateY(0);
    opacity: .9
}

/* Banner arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    color: #222;
    border: none;
    box-shadow: var(--news-shadow);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.arrow:hover {
    background: #f7f9ff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
    transform: translateY(-50%) scale(1.03)
}

.arrow:focus-visible {
    outline: 3px solid #9ec5ff;
    outline-offset: 2px
}

.arrow.left {
    left: 18px
}

.arrow.right {
    right: 18px
}

/* ============ SERVICES GRID ============ */
.services {
    position: relative;
    margin-top: -84px;
    padding: 0 20px 56px;
}

.grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width:1100px) {
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .services {
        margin-top: -64px
    }
}

@media (max-width:640px) {
    .grid {
        grid-template-columns: 1fr
    }

    .services {
        margin-top: -48px
    }
}

.service {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    min-height: 300px;
    box-shadow: var(--news-shadow);
    background: #000;
    transition: transform .15s ease, box-shadow .15s ease;
}

.service img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9) contrast(1.05);
    transform: scale(1.02);
}

.service::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .72) 8%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .15) 100%),
        linear-gradient(to bottom, rgba(242, 194, 0, .18), transparent 40%);
}

.service .label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 50px;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

@media (max-width:1100px) {
    .service .label {
        padding: 32px
    }
}

@media (max-width:640px) {
    .service .label {
        padding: 22px
    }
}

.service h3 {
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: .4px;
    line-height: 1.2;
    font-size: 18px;
    text-transform: uppercase;
}

.service p {
    margin: 0;
    color: #e8e8e8;
    font-size: 14px;
    opacity: .95
}

.service:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(8, 87, 139, .6)
}

.service:active {
    transform: translateY(0);
    opacity: .95
}

.service .arrow-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .5);
    border: 2px solid rgba(255, 255, 255, .6);
    backdrop-filter: blur(4px);
    text-decoration: none;
    color: #fff;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    z-index: 2;
}

.service .arrow-btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, .6);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3)
}

.service .arrow-btn:focus-visible {
    outline: 3px solid #9ec5ff;
    outline-offset: 3px
}

.service .arrow-btn .pill {
    all: unset;
    display: contents
}

.cta,
.menu>li>a,
.submenu a,
.cta-primary {
    outline: none
}

.cta:focus-visible,
.menu>li>a:focus-visible,
.submenu a:focus-visible,
.cta-primary:focus-visible {
    outline: 3px solid #9ec5ff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .arrow,
    .service:hover,
    .cta {
        transition: none !important
    }
}

.stats {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    background: url("../img/bg_1.jpg");

}

.stats__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: contrast(1.05) saturate(1.05);

}

.stats__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(15, 52, 96, .85), rgba(27, 79, 138, .75));
}

.stats__wrap {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 68px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat {
    display: grid;
    place-items: center;
    gap: 10px;
}

.stat__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
}

.stat__icon svg {
    width: 28px;
    height: 28px;
    color: var(--muted-bg);
}

.stat__num {
    font-weight: 800;
    font-size: 42px;
    letter-spacing: .5px;
    text-shadow: 0 6px 26px rgba(0, 0, 0, .35);
}

.stat__label {
    font-weight: 700;
    font-size: 14px;
    color: var(--muted-bg);
    opacity: .95;
}

/* =========================== 
   NEWS SECTION (FINAL CLEAN)
=========================== */
.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    opacity: 0.8;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.news-text {
    padding: 16px 18px 22px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #333;
}

.news-text a {
    color: #222;
    text-decoration: none;
}

.news-text a:hover {
    color: #0f4f93;
}

.news-text a:visited {
    color: #222;
}

.news-section {
    max-width: 1440px;
    margin: 60px auto;
    padding: 0 20px;
}

.news-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #f6c200;
    margin-bottom: 32px;
}

.pricing {
    background: var(--bg);
    padding: 56px 0 72px;
}

.price-wrap {
    width: min(1200px, 92%);
    margin: 0 auto
}

.price-eyebrow {
    text-align: center;
    color: var(--muted4);
    font-weight: 700;
    letter-spacing: .08em;
}

.price-title {
    text-align: center;
    color: #f0b800;
    font-size: 32px;
    font-weight: 900;
    margin: .35rem 0 2.2rem;
}

.brand-col {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.brand-logo {
    width: 310px;
    height: 410px;
    justify-items: center;
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .06));
}

.cards {
    display: grid;
    gap: 18px;
}

.card {
    background: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-price);
    padding: 18px 18px 18px 114px;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 42px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f3f7ff;
    box-shadow: inset 0 0 0 1px #dbe6ff;
}

.card .icon {
    position: absolute;
    left: 18px;
    top: 42px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: var(--blue-dark);
}

.card h3 {
    margin: 4px 0 10px;
    font-size: 18px;
    color: var(--blue-dark)
}

.card p {
    margin: 0;
    color: #2a3444
}

.card .muted {
    color: var(--muted4)
}

.bullets {
    margin: 0;
    padding-left: 1.1em
}

.bullets li {
    margin: .2em 0
}

.wrap-service {
    width: min(1100px, 92%);
    margin: 32px auto
}

h1 {
    margin: 0 0 14px;
    font-size: 24px;
    text-align: center;
}

p.lead {
    margin: 0 0 22px;
    color: #64748b
}

.service-links {
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: 16px;
}

/* Линк карт */
.service-links .link {
    display: grid;
    place-items: center;
    min-height: 110px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--brand);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    font-weight: 700;
}

.service-links .link span {
    display: block;
    margin-top: 6px;
    font-weight: 700
}

.service-links .link .icon {
    font-size: 28px;
    line-height: 1
}

.service-links .link:hover,
.service-links .link:focus-visible {
    background: var(--hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    outline: none;
}

/* ============ FOOTER ============ */
.footer {
    background: #f8f9fc;
    color: #0d1727;
    padding: 60px 20px 0;
    border-top: 4px solid var(--brand-2);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.footer-logo {
    width: 160px;
    margin-bottom: 16px;
}

.footer h3 {
    color: var(--brand-2-dark);
    margin-bottom: 16px;
    font-size: 18px;
}

.footer p {
    color: var();
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.footer ul li a {
    color: var(--blue);
    text-decoration: none;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer .socials a img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.footer .socials a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    background: var(--brand-2);
    color: #fff;
    text-align: center;
    padding: 14px 10px;
    margin-top: 40px;
    font-size: 14px;
}

/* ============================
   TOPBAR ALIGN FIX (REQUIRED)
   ============================ */


.u-mail.two-line {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.u-right.two-line {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.u-head {
    font-weight: 700;
    color: #6b7a90;
    font-size: 13px;
}

.u-line {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.u-line img {
    width: 16px;
    height: 16px;
}

.u-value {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   WEB LINKS (FINAL)
========================= */
.websites {
    background: linear-gradient(rgba(10, 50, 100, .75), rgba(10, 50, 100, .75)),
        url("../img/bg_3.jpg") center/cover no-repeat;
    padding: 70px 20px;
}

.weblink-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #ffd22e;
    margin-bottom: 40px;
}


.weblink-viewport.dragging {
    cursor: grabbing;
}

.weblink-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.weblink-card {
    cursor: inherit;
    flex: 0 0 300px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    text-decoration: none;
}

.weblink-card * {
    pointer-events: none;
}

.weblink-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.weblink-info {
    display: flex;
    flex-direction: column;
}

.weblink-name {
    font-weight: 800;
    font-size: 15px;
    color: #0b2e5a;
}

.weblink-url {
    font-size: 13px;
    color: #7a889a;
    margin-top: 4px;
}

.weblink-viewport {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    padding: 0 40px;
    scrollbar-width: none;
}

.weblink-viewport::-webkit-scrollbar {
    display: none;
}

.weblink-viewport.dragging {
    cursor: grabbing;
}

.weblink-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.weblink-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
}

.weblink-dots span.active {
    background: #ffd22e;
}

/* ========== DESKTOP DEFAULT ========== */
.menu {
    list-style: none;
    display: flex;
    gap: 6px;
    flex: 1;
}

.menu>li {
    position: relative;
    margin: 0;
    padding: 0;
}

.menu>li>a {
    color: var(--link);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.menu>li.has-sub>a::after {
    content: "▾";
    font-size: .8rem;
    opacity: .85;
}

/* ---------- DESKTOP SUBMENU ---------- */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: var(--gap);
    min-width: 320px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    list-style: none;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .16s ease;
    pointer-events: none;
}

.menu>li:hover>.submenu,
.menu>li:focus-within>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.submenu li {
    position: relative;
}

.submenu a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1d2b3a;
    text-decoration: none;
}

.submenu a:hover {
    background: var(--hover-bg);
    color: var(--hover-text);
}

/* ---------- DESKTOP FLYOUT ---------- */
.has-flyout>a::after {
    content: "▸";
    margin-left: auto;
    opacity: .7;
}

.flyout {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 10px;
    min-width: 360px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .16s ease;
    pointer-events: none;
}

.submenu li:hover>.flyout,
.submenu li:focus-within>.flyout {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* =========================
   DESKTOP NAV ONLY
========================= */
@media (min-width: 981px) {

    .menu {
        list-style: none;
        display: flex;
        gap: 6px;
        flex: 1;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: var(--gap);
        min-width: 320px;
        background: #fff;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 8px;
        list-style: none;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: .16s ease;
        pointer-events: none;
    }

    .menu>li:hover>.submenu,
    .menu>li:focus-within>.submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .flyout {
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 10px;
        min-width: 360px;
        background: #fff;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 8px;

        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: .16s ease;
        pointer-events: none;
    }

    .submenu li:hover>.flyout,
    .submenu li:focus-within>.flyout {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}