/* =====================================================
   NetRegis.com — 2026 redesign
   Loaded after app.css / domain.css / hosting.css / pages.css on public pages.
   1. Tokens & base   2. Header (.nrh)   3. Footer (.nrf)   4. Buttons
   5. Home (.hm-*)    6. Inner pages (shared components restyled)
   ===================================================== */

/* ---------- 1. Tokens & base ---------- */
:root {
    --nr-navy: #0b2a6b;
    --nr-navy-deep: #081d4d;
    --nr-ink: #14203f;
    --nr-blue: #0d4fb3;
    --nr-blue-2: #1d63d8;
    --nr-red: #e3101e;
    --nr-red-2: #c40c19;
    --nr-text: #46536f;
    --nr-muted: #74819c;
    --nr-line: #e2e9f4;
    --nr-bg: #f4f7fc;
    --nr-shadow: 0 14px 34px -20px rgba(16, 42, 96, .30), 0 2px 6px rgba(16, 42, 96, .04);
    --nr-shadow-hover: 0 22px 44px -20px rgba(16, 42, 96, .38), 0 3px 8px rgba(16, 42, 96, .06);
    --nrh-h: 98px;

    --primary: #0d4fb3;
    --primary-light: #2f74e0;
    --primary-dark: #0b3f91;
    --danger: #e3101e;
    --text: #14203f;
    --text-dim: #46536f;
    --border: #e2e9f4;
    --surface2: #f5f8fd;
    --surface3: #eef3fa;
    --font-thai: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
    --font-en: 'Prompt', system-ui, sans-serif;
}

html[lang="en"] {
    --font-thai: 'Prompt', system-ui, sans-serif;
}

html[lang="ja"] {
    --font-thai: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, 'Prompt', sans-serif;
    --font-en: 'Noto Sans JP', 'Prompt', sans-serif;
}

body {
    font-family: var(--font-thai);
    color: var(--nr-ink);
    background: #fff;
}

.container {
    max-width: 1248px;
}

/* ---------- 2. Header ---------- */
.nrh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nrh-top {
    height: 34px;
    background: linear-gradient(90deg, #072061 0%, #0b2f7c 50%, #072061 100%);
    color: #e3ebff;
    font-size: 13px;
}

.nrh-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

.nrh-contact {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: 0;
}

.nrh-ci {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e3ebff;
    white-space: nowrap;
}

.nrh-ci svg {
    flex-shrink: 0;
}

a.nrh-ci:hover {
    color: #fff;
}

.nrh-lang {
    display: flex;
    align-items: center;
}

.nrh-lang a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    color: #c9d6f6;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    transition: color .15s;
}

.nrh-lang a + a {
    border-left: 1px solid rgba(255, 255, 255, .28);
}

.nrh-lang a:last-child {
    padding-right: 0;
}

.nrh-lang a:hover,
.nrh-lang a.is-active {
    color: #fff;
}

.nrh-lang a.is-active span {
    font-weight: 600;
}

.nrh-flag {
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .28);
}

.nrh-nav {
    position: relative;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e6ecf5;
    transition: box-shadow .25s ease;
}

.nrh-nav.scrolled {
    box-shadow: 0 8px 26px -10px rgba(12, 38, 92, .22);
}

.nrh-nav-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
}

.nrh-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nrh-logo img {
    display: block;
    width: auto;
    height: 24.5px;
    max-width: none;
}

.nrh-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 auto;
    list-style: none;
}

.nrh-item {
    position: relative;
}

.nrh-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 9px 7px;
    border-radius: 8px;
    color: #13214b;
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .15s, background-color .15s;
}

/* Top-level links with a tag: "ขายดี" floats above the label (as in the old menu), "NEW" sits after it */
.nrh-link .nrh-badge-hot {
    position: absolute;
    top: -9px;
    left: 50%;
    translate: -50% 0;
    padding: 0 7px;
    font-size: 9.5px;
    line-height: 1.6;
    white-space: nowrap;
    pointer-events: none;
}

.nrh-link .nrh-badge-new {
    padding: 0 6px;
    font-size: 9.5px;
    line-height: 1.7;
}

.nrh-chev {
    width: 12px;
    height: 12px;
    margin-top: 1px;
    opacity: .75;
    transition: transform .2s ease;
}

.nrh-item:hover > .nrh-link,
.nrh-item:focus-within > .nrh-link {
    color: var(--nr-red);
}

.nrh-item.is-current > .nrh-link {
    color: var(--nr-blue);
}

.nrh-item.is-current > .nrh-link span {
    box-shadow: inset 0 -2px 0 var(--nr-red);
    padding-bottom: 2px;
}

.nrh-item:hover > .nrh-link .nrh-chev,
.nrh-item:focus-within > .nrh-link .nrh-chev {
    transform: rotate(180deg);
}

.nrh-dd {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 10;
    width: 340px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--nr-line);
    border-radius: 16px;
    box-shadow: 0 26px 50px -18px rgba(12, 38, 92, .32), 0 4px 12px rgba(12, 38, 92, .06);
    opacity: 0;
    visibility: hidden;
    translate: -50% 8px;
    transition: opacity .18s ease, translate .18s ease, visibility .18s;
}

.nrh-dd::before {
    /* hover bridge across the gap under the link */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.nrh-item:hover > .nrh-dd,
.nrh-item:focus-within > .nrh-dd,
.nrh-item.is-open > .nrh-dd {
    opacity: 1;
    visibility: visible;
    translate: -50% 0;
}

.nrh-dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 11px;
    color: var(--nr-ink);
    transition: background-color .15s;
}

.nrh-dd-item:hover,
.nrh-dd-item:focus-visible,
.nrh-dd-item.is-current {
    background: #f1f5fd;
}

.nrh-dd-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #edf3ff, #dde8fb);
    color: var(--nr-blue);
    transition: background .15s, color .15s;
}

.nrh-dd-item:hover .nrh-dd-ico {
    background: linear-gradient(180deg, #ee2433, #d10f1d);
    color: #fff;
}

.nrh-dd-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nrh-dd-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.nrh-dd-sub {
    color: #6b7894;
    font-size: 12.5px;
    line-height: 1.45;
}

.nrh-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--nr-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .03em;
}

.nrh-badge-hot {
    background: #f59e0b;
    letter-spacing: 0;
}

.nrh-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nrh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .18s, color .18s, box-shadow .18s, filter .18s, transform .18s;
}

.nrh-btn-outline {
    border: 1.5px solid #0f3f93;
    background: #fff;
    color: #0f3f93;
}

.nrh-btn-outline:hover {
    background: #0f3f93;
    color: #fff;
}

.nrh-btn-red {
    border: 0;
    background: linear-gradient(180deg, #ef2534 0%, #d20f1d 100%);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(210, 15, 29, .7);
}

.nrh-btn-red:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.nrh .nrh-cart {
    width: 40px;
    height: 40px;
    color: #13214b;
}

.nrh .nrh-cart:hover {
    background: #f1f5fd;
    color: var(--nr-red);
}

.nrh-cart-mobile {
    display: none;
}

.nrh-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

.nrh-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #13214b;
    transition: transform .25s, opacity .2s;
}

.nrh-toggle:hover {
    background: #f1f5fd;
}

.nrh-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nrh-toggle.active span:nth-child(2) { opacity: 0; }
.nrh-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nrh-m-lang,
.nrh-m-auth,
.nrh-m-contact {
    display: none;
}

/* Japanese labels are wider */
html[lang="ja"] .nrh-link {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 14px;
}

.nrh-btn svg {
    width: 16px;
    height: 16px;
}

/* Hamburger menu (the 7-item bar needs about 1240px) */
@media (max-width: 1260px) {
    .nrh-actions {
        display: none;
    }

    .nrh-toggle {
        display: inline-flex;
    }

    .nrh-cart-mobile {
        display: inline-flex;
        margin-left: auto;
    }

    .nrh-cart-mobile[hidden] {
        display: none !important;
    }

    .nrh-cart-mobile[hidden] + .nrh-toggle {
        margin-left: auto;
    }

    .nrh-menu {
        position: fixed;
        top: var(--nrh-h);
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 14px 20px 32px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border-top: 1px solid #e6ecf5;
    }

    .nrh-menu.open {
        display: flex;
        animation: nrh-menu-in .22s ease both;
    }

    .nrh-item {
        border-bottom: 1px solid #edf1f7;
    }

    .nrh-link {
        justify-content: space-between;
        width: 100%;
        padding: 15px 4px;
        border-radius: 0;
        font-size: 16.5px;
    }

    .nrh-item:hover > .nrh-link,
    .nrh-item:focus-within > .nrh-link {
        color: #13214b;
    }

    .nrh-item.is-current > .nrh-link span {
        box-shadow: none;
    }

    .nrh-item:hover > .nrh-link .nrh-chev,
    .nrh-item:focus-within > .nrh-link .nrh-chev {
        transform: none;
    }

    .nrh-item.dropdown-open > .nrh-link {
        color: var(--nr-red);
    }

    .nrh-item.dropdown-open > .nrh-link .nrh-chev {
        transform: rotate(180deg);
    }

    .nrh-dd,
    .nrh-item:hover > .nrh-dd,
    .nrh-item:focus-within > .nrh-dd {
        position: static;
        display: none;
        width: auto;
        padding: 0 0 12px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        translate: none;
    }

    .nrh-item.dropdown-open > .nrh-dd {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
    }

    .nrh-dd::before {
        display: none;
    }

    /* plain links: label + tag side by side */
    .nrh-link-plain {
        justify-content: flex-start;
        gap: 8px;
    }

    .nrh-link .nrh-badge-hot {
        position: static;
        translate: none;
        font-size: 10.5px;
    }

    .nrh-link .nrh-badge-new {
        font-size: 10.5px;
    }

    .nrh-m-lang {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 4px;
        margin-bottom: 6px;
        border-radius: 12px;
        background: #f1f5fb;
    }

    .nrh-m-lang a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 9px 6px;
        border-radius: 9px;
        color: #4b5875;
        font-size: 14px;
        font-weight: 500;
    }

    .nrh-m-lang a.is-active {
        background: #fff;
        color: var(--nr-blue);
        font-weight: 600;
        box-shadow: 0 1px 4px rgba(15, 35, 80, .1);
    }

    .nrh-m-lang .nrh-flag {
        box-shadow: 0 0 0 1px rgba(15, 35, 80, .12);
    }

    .nrh-m-auth {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 18px 0 4px;
    }

    .nrh-m-auth .nrh-btn {
        height: 46px;
        font-size: 15.5px;
    }

    .nrh-m-auth .nrh-btn:only-child {
        grid-column: 1 / -1;
    }

    .nrh-m-contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-top: 10px;
    }

    .nrh-m-cbtn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 46px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 15px;
    }

    .nrh-m-line {
        background: #06c755;
        color: #fff;
    }

    .nrh-m-call {
        background: #eef3fb;
        color: var(--nr-navy);
    }

    .nrh-m-hours {
        grid-column: 1 / -1;
        color: var(--nr-muted);
        font-size: 13px;
        text-align: center;
    }

    /* the floating LINE button would sit on top of the open menu */
    body.nrh-menu-open .line-float {
        display: none;
    }
}

@keyframes nrh-menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    :root {
        --nrh-h: 64px;
    }

    .nrh-top {
        display: none;
    }
}

@media (max-width: 560px) {
    .nrh-logo img {
        height: 23px;
    }

    .nrh-item.dropdown-open > .nrh-dd {
        grid-template-columns: 1fr;
    }
}

/* ---------- 3. Footer ---------- */
.site-footer.nrf {
    padding: 48px 0 0;
    border-top: 0;
    background: linear-gradient(180deg, #0b2459 0%, #081b45 100%);
    color: #b8c5e3;
}

.nrf-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr .9fr 1.15fr 1fr 1.6fr;
    gap: 24px;
    margin-bottom: 30px;
}

.nrf-logo img {
    display: block;
    width: 184px;
    height: auto;
}

.nrf-company {
    margin: 16px 0 6px;
    color: #dbe4f8;
    font-size: 14px;
}

.nrf-company strong {
    color: #fff;
    font-weight: 600;
}

.nrf-desc {
    color: #a9b8db;
    font-size: 13.5px;
    line-height: 1.7;
}

.nrf-heading {
    margin-bottom: 14px;
    color: #fff;
    font-size: 16.5px;
    font-weight: 600;
}

.nrf-links li {
    position: relative;
    margin-bottom: 7px;
    padding-left: 14px;
}

.nrf-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c9d5f0;
}

.nrf-links a {
    color: #c6d2ee;
    font-size: 13.5px;
    transition: color .15s;
}

.nrf-links a:hover {
    color: #fff;
}

.nrf-contact {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.nrf-ci {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4ebfb;
    font-size: 14px;
    white-space: nowrap;
}

a.nrf-ci:hover {
    color: #fff;
}

.nrf-ci-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.nrf-ci-line {
    background: #06c755;
}

.site-footer.nrf .footer-partners {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer.nrf .footer-text-link li a,
.site-footer.nrf .footer-text-link li::after {
    color: #5d6f99;
}

.site-footer.nrf .footer-text-link li a:hover {
    color: #b8c5e3;
}

.nrf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 16px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #9eaed3;
    font-size: 13px;
}

.nrf-bottom-links {
    display: flex;
    gap: 18px;
    margin-right: auto;
}

.nrf-bottom-links a,
.nrf-lang a {
    color: #9eaed3;
}

.nrf-bottom-links a:hover,
.nrf-lang a:hover,
.nrf-lang a.is-active {
    color: #fff;
}

.nrf-lang {
    display: flex;
}

.nrf-lang a {
    padding: 0 12px;
    font-weight: 600;
    line-height: 1;
}

.nrf-lang a + a {
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.nrf-lang a:last-child {
    padding-right: 0;
}

@media (max-width: 1100px) {
    .nrf-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nrf-brand {
        grid-column: 1 / 3;
    }

    .nrf-contact {
        grid-column: 3 / -1;
        grid-row: 1;
    }
}

@media (max-width: 767px) {
    .site-footer.nrf {
        padding-top: 36px;
    }

    .nrf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px 18px;
    }

    .nrf-brand,
    .nrf-contact {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .nrf-contact {
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .14);
        order: 9;
    }

    .nrf-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 88px; /* room for the floating LINE button */
    }

    .nrf-bottom-links {
        margin-right: 0;
    }
}

/* ---------- 4. Buttons ---------- */
.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s, color .18s;
}

.hm-btn-red {
    background: linear-gradient(180deg, #f02736 0%, #cf0e1c 100%);
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(207, 14, 28, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.hm-btn-red:hover {
    color: #fff;
    filter: brightness(1.07);
    transform: translateY(-2px);
}

.hm-btn-ghost {
    background: rgba(255, 255, 255, .04);
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85);
}

.hm-btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    transform: translateY(-2px);
}

.hm-btn-sm {
    height: 42px;
    padding: 0 20px;
    font-size: 15px;
}

.hm-btn-lg {
    height: 54px;
    padding: 0 30px;
    font-size: 17px;
    border-radius: 12px;
}

.hm-red {
    color: var(--nr-red);
}

/* ---------- 5. Home ---------- */

/* Hero */
.hm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--nrh-h) + 30px) 0 112px;
    background: #0a2a78;
    color: #fff;
}

.hm-hero-photo img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    animation: nr-hero-drift 24s ease-in-out infinite alternate;
    will-change: transform;
}

.hm-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(38% 46% at 100% 78%, rgba(255, 36, 64, .42), transparent 70%),
        radial-gradient(48% 70% at 76% 42%, rgba(46, 120, 255, .45), transparent 72%),
        linear-gradient(90deg, rgba(5, 26, 88, .97) 0%, rgba(8, 42, 124, .92) 36%, rgba(11, 56, 156, .72) 66%, rgba(12, 58, 160, .6) 100%),
        linear-gradient(180deg, rgba(4, 18, 64, .35) 0%, transparent 35%, transparent 70%, rgba(6, 30, 96, .45) 100%);
}

.hm-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 20px;
}

.hm-hero-content > * {
    animation: nr-fade-up .7s cubic-bezier(.2, .7, .2, 1) both;
}

.hm-hero-content > :nth-child(1) { animation-delay: .05s; }
.hm-hero-content > :nth-child(2) { animation-delay: .15s; }
.hm-hero-content > :nth-child(3) { animation-delay: .25s; }
.hm-hero-content > :nth-child(4) { animation-delay: .35s; }
.hm-hero-content > :nth-child(5) { animation-delay: .45s; }

/* "Web Hosting for 22+ years, since 2547" badge above the headline */
.hm-hero-since {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin-bottom: 16px;
    padding: 6px 16px 6px 6px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: #e6eeff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hm-hero-since b {
    color: #ffd25a;
    font-weight: 700;
}

.hm-hero-since-ico {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd25a, #f0a51c);
    color: #6b3d00;
    box-shadow: 0 6px 14px -6px rgba(240, 165, 28, .9);
}

.hm-hero-since-year {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .3);
    color: #c8d6f6;
}

.hm-hero-title {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(34px, 3.75vw, 54px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-shadow: 0 3px 24px rgba(0, 12, 48, .35);
}

.hm-hero-line {
    display: block;
}

.hm-hero-logo {
    display: inline-block;
    width: auto;
    height: .9em;
    margin-left: .1em;
    vertical-align: -.08em;
    filter: drop-shadow(0 3px 14px rgba(0, 10, 40, .35));
}

.hm-hero-sub {
    max-width: 540px;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--nr-red);
    color: #e2eaff;
    font-size: clamp(17px, 1.45vw, 20.5px);
    font-weight: 400;
    line-height: 1.55;
}

.hm-hero-price {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 6px 28px 6px 24px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    background: linear-gradient(180deg, #f3323f 0%, #c70d1b 100%);
    box-shadow: 0 14px 34px -10px rgba(235, 25, 45, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
    line-height: 1.1;
}

.hm-hero-price-label,
.hm-hero-price-unit {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 600;
}

.hm-hero-price strong {
    font-size: clamp(38px, 3.6vw, 52px);
    font-style: italic;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}

.hm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hm-hero-art {
    position: relative;
    animation: nr-fade-up .9s .2s cubic-bezier(.2, .7, .2, 1) both;
}

.hm-hero-art img {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: -10px 0 -24px auto;
    filter: drop-shadow(0 28px 36px rgba(0, 12, 48, .35));
    animation: hm-float 7s ease-in-out 1s infinite alternate;
}

@keyframes hm-float {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.hm-hero .hero-waves {
    z-index: 0;
    height: 64px;
}

.hm-hero .hero-wave-4 use {
    fill: var(--nr-bg);
}

/* Domain search card (overlaps the hero) */
.hm-search {
    position: relative;
    z-index: 2;
    margin-top: -78px;
    background: linear-gradient(180deg, transparent 0, transparent 78px, var(--nr-bg) 78px);
}

.hm-search-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 22px 32px 24px;
    border: 1px solid #e6edf8;
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 34px 70px -30px rgba(9, 36, 100, .45), 0 3px 10px rgba(9, 36, 100, .06);
    animation: nr-fade-up .7s .45s cubic-bezier(.2, .7, .2, 1) both;
}

.hm-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.hm-search-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--nr-navy);
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.3;
}

.hm-search-globe {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--nr-red);
}

.hm-search-title-text {
    min-width: 0;
}

.hm-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff0f1;
    color: var(--nr-red);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.hm-search-box {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 54px;
    margin-top: 16px;
    border: 1.5px solid #d3ddef;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.hm-search-box:focus-within {
    border-color: var(--nr-blue-2);
    box-shadow: 0 0 0 4px rgba(29, 99, 216, .12);
}

.hm-search-input-ico {
    position: absolute;
    left: 16px;
    top: 50%;
    translate: 0 -50%;
    color: #7a87a2;
    pointer-events: none;
}

.hm-search-box input {
    flex: 1;
    min-width: 0;
    padding: 0 16px 0 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nr-ink);
    font-family: inherit;
    font-size: 16px;
}

.hm-search-box input::placeholder {
    color: #8592ab;
}

.hm-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px;
    border: 0;
    background: linear-gradient(180deg, #ef2534 0%, #cf0e1c 100%);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: filter .15s;
}

.hm-search-btn:hover {
    filter: brightness(1.08);
}

.hm-search-btn:disabled {
    cursor: progress;
    filter: saturate(.7);
}

.hm-search-btn.is-loading svg {
    animation: hm-spin 1s linear infinite;
}

@keyframes hm-spin {
    to { transform: rotate(360deg); }
}

.hm-exts {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.hm-ext {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 4px 8px;
    border: 1px solid #dfe6f2;
    border-radius: 12px;
    background: #f8faff;
    font-family: inherit;
    line-height: 1.25;
    transition: border-color .15s, transform .15s, box-shadow .15s, background-color .15s;
}

.hm-ext:hover {
    border-color: #f3a1a8;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -14px rgba(16, 42, 96, .45);
}

.hm-ext-name {
    color: var(--nr-navy);
    font-size: 18px;
    font-weight: 700;
}

.hm-ext-price {
    color: #55627d;
    font-size: 12.5px;
    white-space: nowrap;
}

.hm-ext-price b {
    color: var(--nr-red);
    font-weight: 700;
}

.hm-search-card .search-results {
    max-width: none;
    margin-top: 16px;
}

/* Service cards */
.hm-services {
    padding: 26px 0 40px;
    background: var(--nr-bg);
}

.hm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hm-svc {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 14px;
    min-height: 124px;
    padding: 14px 18px 14px 12px;
    border: 1px solid var(--nr-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--nr-shadow);
    color: var(--nr-ink);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}

.hm-svc:hover {
    border-color: #cad7ee;
    box-shadow: var(--nr-shadow-hover);
    transform: translateY(-3px);
}

.hm-svc-art {
    display: grid;
    place-items: center;
    width: 112px;
    height: 92px;
}

.hm-svc-art img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 92px;
    transition: transform .3s ease;
}

.hm-svc:hover .hm-svc-art img {
    transform: scale(1.06) rotate(-2deg);
}

.hm-svc-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hm-svc-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--nr-navy);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.hm-badge-new {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--nr-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.6;
}

.hm-svc-desc {
    color: var(--nr-text);
    font-size: 14px;
    line-height: 1.5;
}

.hm-svc-price {
    margin-top: 2px;
    color: var(--nr-red);
    font-size: 15.5px;
    font-weight: 700;
}

.hm-svc-go {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ef2534, #cf0e1c);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(207, 14, 28, .8);
    transition: transform .2s ease;
}

.hm-svc:hover .hm-svc-go {
    transform: translateX(3px);
}

/* Section title with red rules on both sides */
.hm-title {
    color: var(--nr-navy);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.hm-title-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.hm-title-lines::before,
.hm-title-lines::after {
    content: '';
    flex: 0 0 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(227, 16, 30, 0), var(--nr-red));
}

.hm-title-lines::after {
    background: linear-gradient(90deg, var(--nr-red), rgba(227, 16, 30, 0));
}

/* Hosting plans */
.hm-plans {
    position: relative;
    padding: 50px 0 34px;
    background:
        radial-gradient(60% 50% at 0% 100%, rgba(227, 16, 30, .05), transparent 70%),
        linear-gradient(180deg, var(--nr-bg) 0%, #fff 28%);
    scroll-margin-top: calc(var(--nrh-h) + 8px);
}

.hm-plans-os {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
}

.hm-os-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 22px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ef2534, #cf0e1c);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 20px -12px rgba(207, 14, 28, .8);
}

.hm-os-note {
    color: var(--nr-text);
    font-size: 14.5px;
}

.hm-plans-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.hm-plan {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe7f3;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--nr-shadow);
    text-align: center;
    scroll-margin-top: calc(var(--nrh-h) + 20px);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}

.hm-plan:hover {
    box-shadow: var(--nr-shadow-hover);
    transform: translateY(-4px);
}

.hm-plan-head {
    padding: 16px 10px 12px;
    border-bottom: 1px solid #edf1f8;
}

.hm-plan-name {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--nr-navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.hm-plan-badge {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
}

.hm-plan-badge.is-blue { background: #1d5fd6; }
.hm-plan-badge.is-red { background: var(--nr-red); }
.hm-plan-badge.is-green { background: #0f9d6b; }

.hm-plan-price {
    margin-top: 4px;
    color: #3a4767;
    font-size: 13.5px;
    white-space: nowrap;
}

.hm-plan-price strong {
    color: var(--nr-red);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.hm-plan-min {
    color: var(--nr-muted);
    font-size: 12px;
}

.hm-plan-specs {
    display: grid;
    gap: 9px;
    padding: 14px 14px 16px;
    text-align: left;
}

.hm-plan-specs li {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: #45526e;
    font-size: 13.5px;
}

.hm-plan-specs svg {
    color: #5e6f92;
}

.hm-plan-specs b {
    color: var(--nr-ink);
    font-weight: 600;
    white-space: nowrap;
}

.hm-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin: auto 16px 16px;
    border: 1.5px solid #0f3f93;
    border-radius: 999px;
    color: #0f3f93;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s, color .15s, border-color .15s;
}

.hm-plan-btn:hover {
    background: #0f3f93;
    color: #fff;
}

.hm-plan.is-featured {
    border: 2px solid #f0414d;
    box-shadow: 0 20px 40px -20px rgba(227, 16, 30, .45);
}

.hm-plan.is-featured .hm-plan-head {
    background: linear-gradient(180deg, #fff1f2, #fff);
}

.hm-plan.is-featured .hm-plan-btn {
    border-color: var(--nr-red);
    color: var(--nr-red);
}

.hm-plan.is-featured .hm-plan-btn:hover {
    background: var(--nr-red);
    color: #fff;
}

.hm-plans-note {
    margin-top: 14px;
    color: var(--nr-muted);
    font-size: 13px;
}

.hm-plans-feats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    padding: 6px 0;
}

.hm-plans-feats li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 12px;
}

.hm-plans-feats li + li {
    border-left: 1px solid #dfe6f2;
}

.hm-feat-ico {
    display: inline-flex;
    color: #0f3f93;
}

.hm-feat-ico.is-red {
    color: var(--nr-red);
}

.hm-plans-feats b {
    display: block;
    color: var(--nr-navy);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.hm-plans-feats small {
    display: block;
    color: var(--nr-text);
    font-size: 13px;
}

/* Business Email band */
.hm-email {
    position: relative;
    isolation: isolate;
    padding: 10px 0;
    background: #eaf1fd;
    overflow: hidden;
}

.hm-email::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(240, 246, 255, .82) 40%, rgba(255, 255, 255, .9) 100%),
        url('../images/home/bg-waves-1672.webp') center / cover no-repeat;
}

.hm-email-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
    align-items: center;
    gap: 24px;
}

.hm-email-art img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
}

.hm-email-title {
    color: var(--nr-navy);
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
}

.hm-email-desc {
    margin: 10px 0 18px;
    color: #34405c;
    font-size: 17px;
    line-height: 1.6;
}

.hm-email-price {
    display: flex;
    flex-direction: column;
    padding: 16px 30px 18px;
    border-radius: 16px;
    background: linear-gradient(160deg, #f6404c 0%, #cd0e1c 70%, #b40a17 100%);
    color: #fff;
    box-shadow: 0 22px 40px -18px rgba(200, 12, 25, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
    transform: rotate(-3deg);
    line-height: 1.15;
}

.hm-email-price-label {
    font-size: 18px;
    font-weight: 600;
}

.hm-email-price-num {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.hm-email-price-num strong {
    font-size: 52px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -.02em;
}

/* Web design + website care */
.hm-duo {
    padding: 28px 0;
    background: #fff;
}

.hm-duo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.hm-duo-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    align-items: center;
    gap: 10px;
    min-height: 236px;
    padding: 24px 14px 24px 30px;
    border: 1px solid var(--nr-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f6f9fe 100%);
    box-shadow: var(--nr-shadow);
    overflow: hidden;
}

.hm-duo-title {
    margin-bottom: 12px;
    color: var(--nr-navy);
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.3;
}

.hm-checks {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.hm-checks li {
    position: relative;
    padding-left: 30px;
    color: #2c3854;
    font-size: 15.5px;
    line-height: 1.45;
}

.hm-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .16em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat,
        linear-gradient(180deg, #ef2534, #cf0e1c);
}

.hm-duo-art {
    position: relative;
}

.hm-duo-art img {
    display: block;
    width: 100%;
    max-width: 330px;
    height: auto;
    margin-left: auto;
    transition: transform .35s ease;
}

.hm-duo-card:hover .hm-duo-art img {
    transform: translateY(-4px) scale(1.02);
}

.hm-duo-price {
    position: absolute;
    right: 4px;
    bottom: -6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px 9px;
    border-radius: 12px;
    background: linear-gradient(160deg, #f6404c, #c90d1b);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 14px 26px -12px rgba(200, 12, 25, .8);
    transform: rotate(-4deg);
}

.hm-duo-price small {
    font-size: 15px;
    font-weight: 600;
}

/* Why NetRegis */
.hm-why {
    position: relative;
    isolation: isolate;
    padding: 34px 0;
    background: #0a2b72 url('../images/home/bg-servers-1672.webp') left center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hm-why::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(30% 60% at 100% 0%, rgba(255, 40, 60, .25), transparent 70%),
        linear-gradient(90deg, rgba(6, 26, 84, .28) 0%, rgba(8, 36, 104, .72) 16%, rgba(9, 41, 116, .95) 30%, rgba(10, 46, 128, .96) 100%);
}

.hm-why-inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.hm-why-head {
    padding-left: 34px;
}

.hm-why-title {
    margin-bottom: 14px;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.hm-why-brand {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: 6px;
    white-space: nowrap;
}

.hm-why-logo {
    display: block;
    width: auto;
    height: 31px;
}

.hm-why-q {
    font-size: 40px;
    font-style: italic;
    font-weight: 700;
    line-height: .9;
}

.hm-why-since {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ef2534, #cf0e1c);
    font-size: 15.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 24px -12px rgba(207, 14, 28, .9);
}

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

.hm-why-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--nr-ink);
    box-shadow: 0 16px 30px -18px rgba(0, 8, 40, .6);
    transition: transform .2s ease;
}

.hm-why-card:hover {
    transform: translateY(-3px);
}

.hm-why-ico {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--nr-red);
}

.hm-why-text h3 {
    color: var(--nr-navy);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.hm-why-text span {
    display: block;
    margin-top: 2px;
    color: #56637f;
    font-size: 12.5px;
    line-height: 1.45;
}

/* Clients */
.hm-clients {
    padding: 20px 0;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
}

.hm-clients-inner {
    display: flex;
    align-items: center;
    gap: 26px;
}

.hm-clients-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--nr-navy);
    font-size: 19px;
    font-weight: 600;
    white-space: nowrap;
}

.hm-clients-title::before {
    content: '';
    width: 5px;
    height: 26px;
    border-radius: 2px;
    background: var(--nr-red);
    transform: skewX(-16deg);
}

.hm-clients-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hm-clients-track {
    display: flex;
    width: max-content;
    animation: hm-marquee 38s linear infinite;
}

.hm-clients-marquee:hover .hm-clients-track {
    animation-play-state: paused;
}

@keyframes hm-marquee {
    to { transform: translateX(-50%); }
}

.hm-client {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 2px 26px;
    border-left: 1px solid #e3e9f3;
    color: #2d3a58;
    text-align: center;
    line-height: 1.2;
    transition: color .2s;
}

.hm-client:hover {
    color: var(--nr-blue);
}

.hm-client-mark {
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.hm-client-sub {
    color: #6c7893;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.hm-client-long .hm-client-mark {
    max-width: 190px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}

.hm-client-0 .hm-client-mark { letter-spacing: .06em; }
.hm-client-1 .hm-client-mark { font-style: italic; letter-spacing: .02em; }
.hm-client-3 .hm-client-mark,
.hm-client-4 .hm-client-mark { font-style: italic; }

/* FAQ */
.hm-faq {
    padding: 36px 0 44px;
    background: linear-gradient(180deg, #fff 0%, var(--nr-bg) 100%);
}

.hm-faq-inner {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    align-items: start;
    gap: 36px;
}

.hm-faq-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 34px;
}

.hm-faq-bubble {
    flex-shrink: 0;
    width: 82px;
    height: auto;
    filter: drop-shadow(0 12px 16px rgba(200, 12, 25, .28));
}

.hm-faq-title {
    color: var(--nr-navy);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.hm-faq-sub {
    margin-top: 6px;
    color: var(--nr-text);
    font-size: 15px;
    line-height: 1.55;
}

.hm-faq-list {
    display: grid;
    gap: 10px;
}

.hm-faq-item {
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px -12px rgba(16, 42, 96, .35);
    transition: border-color .15s, box-shadow .15s;
}

.hm-faq-item[open] {
    border-color: #c5d3ea;
    box-shadow: 0 14px 28px -18px rgba(16, 42, 96, .45);
}

.hm-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px 12px 22px;
    color: var(--nr-ink);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.hm-faq-item summary::-webkit-details-marker {
    display: none;
}

.hm-faq-item summary:hover {
    color: var(--nr-blue);
}

.hm-faq-plus {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.hm-faq-plus::before,
.hm-faq-plus::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease;
}

.hm-faq-plus::after {
    transform: rotate(90deg);
}

.hm-faq-item[open] .hm-faq-plus::after {
    transform: rotate(0deg);
}

.hm-faq-a {
    padding: 0 22px 16px;
    color: var(--nr-text);
    font-size: 14.5px;
    line-height: 1.75;
}

.hm-faq-more {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 6px;
    margin-top: 2px;
    color: var(--nr-blue);
    font-size: 14.5px;
    font-weight: 600;
}

.hm-faq-more:hover {
    color: var(--nr-red);
}

/* CTA band */
.hm-cta {
    position: relative;
    isolation: isolate;
    padding: 34px 0;
    background: #0a2b72 url('../images/home/bg-globe-1672.webp') left center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hm-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(26% 90% at 100% 0%, rgba(255, 30, 50, .55), transparent 70%),
        linear-gradient(90deg, rgba(6, 26, 84, .05) 0%, rgba(8, 36, 104, .55) 20%, rgba(9, 41, 116, .93) 34%, rgba(10, 46, 128, .95) 80%, rgba(12, 46, 126, .9) 100%);
}

.hm-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-left: 21%;
}

.hm-cta-title {
    color: #fff;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.3;
}

.hm-cta-sub {
    margin-top: 6px;
    color: #dde6fb;
    font-size: 16px;
}

.hm-cta-sub b {
    color: #fff;
    font-style: italic;
    font-weight: 700;
}

.hm-cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

/* Scroll reveal for the new cards (app.js adds .reveal): keep the reveal fade and the hover moves */
.hm-svc.reveal,
.hm-plan.reveal,
.hm-why-card.reveal,
.hm-duo-card.reveal {
    transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1), transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

@media (prefers-reduced-motion: reduce) {
    .hm-hero-content > *,
    .hm-hero-art,
    .hm-hero-art img,
    .hm-hero-photo img,
    .hm-search-card,
    .hm-clients-track {
        animation: none !important;
    }

    .hm-clients-marquee {
        overflow-x: auto;
    }
}

/* Home — responsive */
@media (max-width: 1240px) {
    .hm-svc {
        grid-template-columns: 90px minmax(0, 1fr) 28px;
        gap: 12px;
    }

    .hm-svc-art {
        width: 90px;
        height: 80px;
    }

    .hm-svc-art img {
        max-height: 80px;
    }

    .hm-plans-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .hm-why-inner {
        grid-template-columns: 1fr;
    }

    .hm-why-head {
        padding-left: 0;
        text-align: center;
    }

    .hm-why-title br {
        display: none;
    }

    .hm-why-logo {
        margin: 0 0 0 8px;
    }

    .hm-faq-head {
        padding-left: 0;
    }

    .hm-faq-inner {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .hm-cta-inner {
        padding-left: 18%;
    }
}

@media (max-width: 1100px) {
    .hm-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    }

    .hm-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-email-inner {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        padding: 20px 0;
    }

    .hm-email-price {
        position: absolute;
        right: 24px;
        top: 18px;
        padding: 10px 20px 12px;
    }

    .hm-email-price-num strong {
        font-size: 40px;
    }

    .hm-duo-grid {
        grid-template-columns: 1fr;
    }

    .hm-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-clients-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hm-clients-title {
        justify-content: center;
    }

    .hm-faq-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hm-faq-head {
        justify-content: center;
    }

    .hm-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30%;
    }
}

@media (max-width: 1024px) {
    .hm-hero {
        padding-bottom: 104px;
    }
}

@media (max-width: 860px) {
    .hm-br {
        display: none;
    }

    .hm-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hm-hero-sub {
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        border-left: 0;
    }

    .hm-hero-sub::before {
        content: '';
        display: block;
        width: 56px;
        height: 4px;
        margin: 0 auto 12px;
        border-radius: 4px;
        background: var(--nr-red);
    }

    .hm-hero-actions {
        justify-content: center;
    }

    .hm-hero-art {
        order: -1;
    }

    .hm-hero-art img {
        max-width: 460px;
        margin: -6px auto 6px;
    }

    .hm-exts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hm-plans-feats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 0;
    }

    .hm-plans-feats li:nth-child(3) {
        border-left: 0;
    }

    .hm-email-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
    }

    .hm-email-art img {
        max-width: 340px;
    }

    .hm-email-price {
        position: static;
        flex-direction: row;
        align-items: baseline;
        justify-self: center;
        gap: 8px;
        margin-top: 8px;
        transform: rotate(-2deg);
    }

    .hm-cta-inner {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }

    .hm-cta::before {
        background: linear-gradient(180deg, rgba(8, 36, 104, .82), rgba(10, 46, 128, .95));
    }
}

@media (max-width: 767px) {
    .hm-hero {
        padding-top: calc(var(--nrh-h) + 18px);
    }

    .hm-hero-photo img {
        object-position: center;
    }

    .hm-hero-price {
        padding: 5px 20px;
        gap: 8px;
    }

    .hm-search {
        margin-top: -64px;
        background: linear-gradient(180deg, transparent 0, transparent 64px, var(--nr-bg) 64px);
    }

    .hm-search-card {
        padding: 18px 16px 18px;
        border-radius: 18px;
    }

    .hm-search-title {
        font-size: 19px;
        gap: 8px;
    }

    .hm-search-title svg {
        width: 22px;
        height: 22px;
    }

    .hm-ai-badge {
        font-size: 12px;
        padding: 4px 11px;
    }

    .hm-search-box {
        height: auto;
        flex-wrap: wrap;
        border: 0;
        overflow: visible;
        gap: 10px;
    }

    .hm-search-box:focus-within {
        box-shadow: none;
    }

    .hm-search-box input {
        flex-basis: 100%;
        height: 50px;
        border: 1.5px solid #d3ddef;
        border-radius: 12px;
    }

    .hm-search-box input:focus {
        border-color: var(--nr-blue-2);
        box-shadow: 0 0 0 4px rgba(29, 99, 216, .12);
    }

    .hm-search-input-ico {
        top: 25px;
    }

    .hm-search-btn {
        flex: 1;
        justify-content: center;
        height: 48px;
        border-radius: 12px;
    }

    .hm-exts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .hm-ext-name {
        font-size: 16px;
    }

    .hm-ext-price {
        font-size: 11px;
    }

    .hm-services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hm-svc {
        grid-template-columns: 84px minmax(0, 1fr) 28px;
        min-height: 0;
        padding: 12px 14px 12px 8px;
    }

    .hm-svc-art {
        width: 84px;
        height: 72px;
    }

    .hm-svc-art img {
        max-height: 72px;
    }

    .hm-svc-title {
        font-size: 17px;
    }

    .hm-svc-desc {
        font-size: 13.5px;
    }

    .hm-title {
        font-size: 25px;
    }

    .hm-title-lines {
        gap: 12px;
    }

    .hm-title-lines::before,
    .hm-title-lines::after {
        flex-basis: 24px;
    }

    .hm-plans-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hm-plan-name {
        font-size: 16px;
    }

    .hm-plan-price strong {
        font-size: 26px;
    }

    .hm-plan-specs {
        padding: 12px 10px 14px;
    }

    .hm-plan-specs li {
        grid-template-columns: minmax(0, 1fr) auto;
        font-size: 12.5px;
    }

    .hm-plan-specs svg {
        display: none;
    }

    .hm-plan-btn {
        margin: auto 10px 12px;
        font-size: 13px;
    }

    .hm-plans-feats {
        grid-template-columns: 1fr 1fr;
    }

    .hm-plans-feats li {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .hm-duo-card {
        grid-template-columns: 1fr;
        padding: 22px 20px;
        text-align: left;
    }

    .hm-duo-art img {
        max-width: 300px;
        margin: 0 auto;
    }

    .hm-why-grid {
        grid-template-columns: 1fr;
    }

    .hm-why::before {
        background: linear-gradient(180deg, rgba(8, 36, 104, .85), rgba(10, 46, 128, .96) 40%);
    }

    .hm-faq-head {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hm-faq-item summary {
        padding: 12px 14px 12px 16px;
    }

    .hm-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .hm-cta-actions .hm-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .hm-hero-title {
        font-size: 30px;
    }

    .hm-hero-since {
        padding-right: 12px;
        border-radius: 18px;
        font-size: 14px;
    }

    .hm-hero-since-year {
        padding-left: 0;
        border-left: 0;
    }

    .hm-hero-price-label,
    .hm-hero-price-unit {
        font-size: 15px;
    }

    .hm-hero-price strong {
        font-size: 34px;
    }

    .hm-hero-actions .hm-btn {
        flex: 1 1 100%;
    }

    .hm-exts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hm-plan-specs li {
        font-size: 12px;
        gap: 4px;
    }
}

@media (max-width: 350px) {
    .hm-plans-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 6. Inner pages: shared components in the new look ---------- */

/* Buttons: red primary (as on the home page), navy outline */
.btn {
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(180deg, #f02736 0%, #cf0e1c 100%);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(207, 14, 28, .85);
}

.btn-primary:hover {
    color: #fff;
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -12px rgba(207, 14, 28, .9);
}

.btn-outline {
    border: 1.5px solid #0f3f93;
    background: #fff;
    color: #0f3f93;
}

.btn-outline:hover {
    border-color: #0f3f93;
    background: #0f3f93;
    color: #fff;
}

.btn.btn-outline.btn-cart-add {
    border-color: #0f3f93;
    color: #0f3f93;
}

.btn.btn-outline.btn-cart-add:hover {
    background: #eef3fc;
    color: #0b3478;
}

/* Section headings */
.section-title {
    color: var(--nr-navy);
    font-weight: 700;
}

.section-subtitle {
    color: var(--nr-text);
}

.section-alt {
    background: var(--nr-bg);
}

.gradient-text {
    background: linear-gradient(90deg, #0d4fb3, #2f74e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Inner page banners: the same blue treatment as the home hero (photo = the existing banner) */
.page-hero::before,
.domain-hero::before,
.hosting-hero::before {
    background:
        radial-gradient(42% 80% at 100% 100%, rgba(255, 36, 64, .36), transparent 70%),
        radial-gradient(45% 80% at 0% 0%, rgba(40, 110, 255, .32), transparent 70%),
        linear-gradient(180deg, rgba(5, 24, 82, .9) 0%, rgba(8, 40, 118, .84) 55%, rgba(9, 46, 132, .9) 100%);
}

.page-hero .hero-title,
.domain-hero .hero-title,
.hosting-hero .hero-title {
    font-weight: 700;
    letter-spacing: -.005em;
}

.page-hero .gradient-text,
.domain-hero .gradient-text,
.hosting-hero .gradient-text {
    background: linear-gradient(90deg, #8cc8ff, #e3f1ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero .hero-badge,
.domain-hero .hero-badge,
.hosting-hero .hero-badge {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .26);
    color: #e6eeff;
}

.page-hero .text-green,
.hosting-hero .text-green {
    color: #ff8f97;
}

/* Cards */
.feature-card,
.service-card,
.plan-card,
.plan-detail-card,
.advice-card,
.server-spec-card,
.doc-card {
    border: 1px solid var(--nr-line);
    border-radius: 16px;
    box-shadow: var(--nr-shadow);
}

.feature-card:hover,
.service-card:hover {
    border-color: #c9d7ee;
    box-shadow: var(--nr-shadow-hover);
}

.feature-card .feature-icon,
.service-card .service-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef4ff, #dfe9fb);
    font-size: 26px;
    line-height: 1;
}

.feature-card h3,
.service-card h3 {
    color: var(--nr-navy);
    font-weight: 600;
}

.service-link {
    color: var(--nr-red);
}

/* Hosting / mail plan cards (same look as the home page plans) */
.plan-card::before,
.plan-detail-card::before {
    background: linear-gradient(90deg, #ef2534, #ff6a74);
}

.plan-card:hover,
.plan-detail-card:hover {
    border-color: #c9d7ee;
    box-shadow: var(--nr-shadow-hover);
}

.plan-featured,
.plan-detail-featured {
    border: 2px solid #f0414d;
    background: linear-gradient(180deg, #fff3f4 0%, #fff 140px);
}

.plan-name {
    color: var(--nr-navy);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.price-amount {
    color: var(--nr-red);
    font-weight: 700;
}

.badge-blue {
    background: #1d5fd6;
}

.badge-yellow {
    background: var(--nr-red);
}

.badge-green {
    background: #0f9d6b;
}

.badge-new {
    background: var(--nr-red);
}

.tab-btn.tab-active {
    background: linear-gradient(180deg, #ef2534, #cf0e1c);
    box-shadow: 0 10px 20px -12px rgba(207, 14, 28, .8);
}

.tab-btn:hover:not(.tab-active) {
    border-color: #0f3f93;
}

/* Stats strip */
.stats-bar {
    background: #fff;
    border-color: var(--nr-line);
}

.stat-number {
    background: linear-gradient(90deg, #0b2a6b, #1d63d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* CTA boxes: navy card with the globe photo, like the home page CTA band */
.cta-box {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 980px;
    border: 0;
    border-radius: 22px;
    background: #0a2b72 url('../images/home/bg-globe-960.webp') left center / cover no-repeat;
    color: #fff;
    box-shadow: 0 30px 60px -32px rgba(9, 36, 100, .65);
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(40% 90% at 100% 0%, rgba(255, 30, 50, .42), transparent 70%),
        linear-gradient(90deg, rgba(8, 36, 104, .6) 0%, rgba(9, 41, 116, .9) 32%, rgba(10, 46, 128, .95) 100%);
}

.cta-box h2 {
    color: #fff;
    font-weight: 700;
}

.cta-box p {
    color: #dbe5fb;
}

.cta-box .btn-outline {
    border-color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.cta-box .btn-outline:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.cta-contact {
    flex-wrap: wrap;
    color: #c8d5f2;
}

.cta-contact a {
    color: #fff;
    font-weight: 600;
}

/* Tables */
.compare-table th,
.price-table th {
    color: var(--nr-navy);
}

/* Breadcrumb */
.breadcrumb a {
    color: var(--nr-blue);
}

/* /hosting: the six Linux plans in one row (3 + 3 / 2 + 2 + 2 on smaller screens) */
@media (min-width: 1100px) {
    #linuxPlansGrid.plans-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }

    #linuxPlansGrid .plan-card {
        padding: 22px 14px;
    }
}

@media (min-width: 640px) and (max-width: 1099px) {
    #linuxPlansGrid.plans-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* /hosting: plan comparison table (took over from the old /hosting/linux detail page).
   Scrolls sideways on small screens with the row labels pinned. */
.hc-wrap {
    overflow-x: auto;
    border: 1px solid var(--nr-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--nr-shadow);
}

.hc-wrap:focus-visible {
    outline: 3px solid rgba(29, 99, 216, .35);
    outline-offset: 3px;
}

.hc-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--nr-text);
    font-size: 14.5px;
}

.hc-table th,
.hc-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--nr-line);
    text-align: center;
    vertical-align: middle;
}

.hc-table thead th {
    padding: 18px 10px 14px;
    border-bottom: 2px solid var(--nr-line);
    vertical-align: bottom;
}

.hc-table .hc-label {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 170px;
    background: #fff;
    box-shadow: 1px 0 0 var(--nr-line);
    color: var(--nr-navy);
    font-weight: 600;
    text-align: left;
}

.hc-table .is-featured {
    background: #fff5f6;
}

.hc-table tbody tr:hover td,
.hc-table tbody tr:hover .hc-label {
    background: #f6f9ff;
}

.hc-table tbody tr:hover td.is-featured {
    background: #ffedef;
}

.hc-table tfoot th,
.hc-table tfoot td {
    padding: 16px 8px 18px;
    border-bottom: 0;
}

.hc-table tfoot .btn {
    min-width: 92px;
}

.hc-plan {
    display: block;
    color: var(--nr-navy);
    font-size: 16px;
    font-weight: 600;
}

.hc-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
}

.hc-price {
    color: var(--nr-red);
    font-size: 20px;
    font-weight: 700;
}

.hc-unit {
    color: var(--nr-muted);
    font-size: 13px;
}

.hc-sub {
    display: block;
    margin-top: 2px;
    color: var(--nr-muted);
    font-size: 12.5px;
}

.hc-save {
    color: #0f9d6b;
    font-weight: 600;
}

.hc-yes {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5f6ee;
    color: #0f9d6b;
}

.hc-no {
    color: #b4bfd3;
    font-size: 18px;
}

.hc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* /hosting: CMS list — six in a row on desktop, 3 + 3 on tablets, two per row on phones */
.cms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cms-item {
    padding: 18px 12px;
    border-color: var(--nr-line);
    border-radius: 14px;
    box-shadow: var(--nr-shadow);
}

.cms-name {
    color: var(--nr-navy);
    font-weight: 600;
}

@media (min-width: 640px) {
    .cms-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1100px) {
    .cms-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    /* six narrow plan cards: price unit on its own line so 1,088 / 1,398 don't break "บาท/เดือน" */
    #linuxPlansGrid .price-unit {
        display: block;
        margin: 2px 0 0;
    }
}

@media (max-width: 640px) {
    .hc-table {
        min-width: 700px;
        font-size: 13.5px;
    }

    .hc-table .hc-label {
        width: 118px;
    }

    .hc-table th,
    .hc-table td {
        padding: 10px 7px;
    }
}

/* Domain search buttons (domain pages, help search) in the brand red */
.search-btn,
.search-btn-domain {
    background: linear-gradient(180deg, #ef2534 0%, #cf0e1c 100%);
    color: #fff;
}

.search-btn:hover,
.search-btn-domain:hover:not(:disabled) {
    background: linear-gradient(180deg, #f43644 0%, #d81323 100%);
    color: #fff;
}

/* Translated home page: longer English / Japanese headings */
html[lang="ja"] .hm-hero-title {
    font-size: clamp(30px, 3vw, 42px);
}

html[lang="en"] .hm-faq-title,
html[lang="ja"] .hm-faq-title {
    white-space: normal;
}

html[lang="en"] .hm-hero-sub,
html[lang="ja"] .hm-hero-sub {
    max-width: 560px;
}

/* Cart icon visible: the log-in button shrinks to its icon so the 7-item bar still fits */
.nrh-actions:has(.nrh-cart:not([hidden])) .nrh-btn-login {
    width: 38px;
    padding: 0;
}

.nrh-actions:has(.nrh-cart:not([hidden])) .nrh-btn-login .nrh-btn-label {
    display: none;
}

/* ---------- Home: Business Email band led by Email Pro (2026-12-01, owner: more Email Pro on the home page) ---------- */
.hm-ep {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
    gap: 44px;
    padding-top: 34px;      /* top/bottom only: the side padding comes from .container */
    padding-bottom: 40px;
}

.hm-ep-desc,
.hm-ep-points small {
    text-wrap: pretty;
}

.hm-ep-nw {
    white-space: nowrap;
}

.hm-ep-art {
    position: relative;
}

.hm-ep-shot {
    display: block;
    overflow: hidden;
    border: 1px solid #d9e3f4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 60px -32px rgba(16, 42, 96, .55), 0 4px 12px rgba(16, 42, 96, .08);
    transform: perspective(1400px) rotateY(6deg);
    transition: transform .3s ease, box-shadow .3s ease;
}

.hm-ep-shot:hover {
    box-shadow: 0 36px 64px -32px rgba(16, 42, 96, .65), 0 6px 16px rgba(16, 42, 96, .1);
    transform: perspective(1400px) rotateY(0deg) translateY(-3px);
}

.hm-ep-bar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid #dde5f3;
    background: #eef2f9;
}

.hm-ep-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f87171;
}

.hm-ep-bar i:nth-child(2) {
    background: #fbbf24;
}

.hm-ep-bar i:nth-child(3) {
    background: #34d399;
}

.hm-ep-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.hm-ep-price {
    position: absolute;
    right: -14px;
    bottom: -22px;
    display: flex;
    flex-direction: column;
    padding: 12px 22px 12px;
    border-radius: 16px;
    background: linear-gradient(160deg, #f6404c 0%, #cd0e1c 70%, #b40a17 100%);
    color: #fff;
    box-shadow: 0 22px 40px -18px rgba(200, 12, 25, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
    transform: rotate(-3deg);
    line-height: 1.15;
}

.hm-ep-price-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hm-ep-price-num {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.hm-ep-price-num strong {
    font-size: 44px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -.02em;
}

.hm-ep-price small {
    margin-top: 2px;
    font-size: 12.5px;
    opacity: .92;
}

.hm-ep-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef2534, #cf0e1c);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 16px -10px rgba(207, 14, 28, .9);
}

.hm-ep-text .hm-email-title {
    margin-top: 10px;
}

.hm-ep-desc {
    margin-top: 8px;
    color: #34405c;
    font-size: 16.5px;
    line-height: 1.6;
}

.hm-ep-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.hm-ep-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hm-ep-ico {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e6ecf7;
    border-radius: 11px;
    background: #fff;
    color: var(--nr-red);
    box-shadow: 0 8px 16px -10px rgba(16, 42, 96, .45);
}

.hm-ep-points b {
    display: block;
    color: var(--nr-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.hm-ep-points small {
    display: block;
    margin-top: 2px;
    color: #4a5672;
    font-size: 13px;
    line-height: 1.5;
}

.hm-ep-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hm-ep-outline {
    background: #fff;
    color: var(--nr-navy);
    box-shadow: inset 0 0 0 1.5px var(--nr-navy);
}

.hm-ep-outline:hover {
    background: var(--nr-navy);
    color: #fff;
    transform: translateY(-2px);
}

.hm-ep-note {
    margin-top: 12px;
    color: #5a6786;
    font-size: 13.5px;
}

.hm-ep-note a {
    color: var(--nr-blue);
    font-weight: 600;
}

@media (max-width: 1100px) {
    .hm-ep {
        gap: 30px;
    }

    .hm-ep-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hm-ep {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .hm-ep-art {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .hm-ep-shot {
        transform: none;
    }

    .hm-ep-price {
        right: 8px;
        bottom: -20px;
        padding: 10px 18px;
    }

    .hm-ep-price-num strong {
        font-size: 36px;
    }

    .hm-ep-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hm-ep-points {
        grid-template-columns: 1fr;
    }

    .hm-ep-actions .hm-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-ep-shot,
    .hm-ep-shot:hover {
        transform: none;
    }
}

/* Home Email Pro band: heading shared with the Smart Email Workspace band on /mail-server (same .em-ws-grad span,
   so the same translation key), coloured for this light background */
.hm-ep .em-ws-grad {
    padding-right: .08em;
    background: linear-gradient(90deg, #e3101e 0%, #c0245c 45%, #1d4fc4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    white-space: nowrap;
}
