:root {
    --navy-950: #041426;
    --navy-900: #08223f;
    --navy-800: #0b3158;
    --blue-700: #0568bf;
    --blue-600: #0879d9;
    --blue-500: #1597ee;
    --cyan-400: #35d6d2;
    --cyan-300: #72ece7;
    --ink-950: #071321;
    --ink-900: #101828;
    --ink-700: #344054;
    --ink-600: #475467;
    --ink-500: #667085;
    --line: #d8e3ed;
    --surface: #ffffff;
    --surface-soft: #f4f8fc;
    --green: #16855b;
    --green-soft: #eaf8f2;
    --red: #c43d4b;
    --red-soft: #fff0f1;
    --amber: #a96600;
    --amber-soft: #fff7e6;
    --violet: #6653c7;
    --violet-soft: #f1efff;
    --shadow: 0 28px 70px rgba(6, 31, 56, 0.14);
    --shadow-soft: 0 16px 38px rgba(6, 31, 56, 0.09);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(21, 151, 238, .055), transparent 23rem),
        radial-gradient(circle at 88% 48%, rgba(53, 214, 210, .05), transparent 25rem),
        var(--surface-soft);
    color: var(--ink-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
svg { display: block; }
code {
    padding: .1rem .35rem;
    border-radius: 6px;
    background: rgba(8, 121, 217, .08);
    color: #075c9f;
    font-size: .88em;
}

.container {
    width: min(1160px, calc(100% - 36px));
    margin-inline: auto;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 24px 0 112px;
    color: white;
    background:
        radial-gradient(circle at 77% 8%, rgba(53, 214, 210, .22), transparent 27%),
        radial-gradient(circle at 9% 88%, rgba(21, 151, 238, .28), transparent 34%),
        linear-gradient(135deg, var(--navy-950), var(--navy-800) 64%, #0a486b);
    isolation: isolate;
}

.hero__mesh {
    position: absolute;
    inset: -12%;
    z-index: -3;
    opacity: .17;
    background-image:
        linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 96%);
    animation: meshDrift 28s linear infinite;
}

.hero__glow {
    position: absolute;
    z-index: -2;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(16px);
    opacity: .16;
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.hero__glow--one { top: -160px; right: 10%; background: var(--cyan-400); }
.hero__glow--two { bottom: -220px; left: 6%; background: var(--blue-500); animation-delay: -5s; }

.hero__signal {
    position: absolute;
    z-index: -1;
    top: 122px;
    right: 6%;
    width: 130px;
    height: 130px;
    opacity: .25;
}
.hero__signal span {
    position: absolute;
    inset: 50%;
    border: 1px solid rgba(114,236,231,.65);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: signalPulse 5.6s ease-out infinite;
}
.hero__signal span:nth-child(2) { animation-delay: 1.8s; }
.hero__signal span:nth-child(3) { animation-delay: 3.6s; }

.hero__content { position: relative; z-index: 1; }

.hero__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: white;
    text-decoration: none;
}

.brand__mark {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 32px;
    height: 31px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 10px;
    background: rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.brand__mark span { width: 4px; border-radius: 4px; background: var(--cyan-400); box-shadow: 0 0 10px rgba(53,214,210,.38); }
.brand__mark span:nth-child(1) { height: 8px; }
.brand__mark span:nth-child(2) { height: 16px; }
.brand__mark span:nth-child(3) { height: 11px; }

.brand__copy { display: grid; gap: 1px; }
.brand__copy strong {
    font-size: .79rem;
    font-weight: 850;
    letter-spacing: .16em;
}
.brand__copy small {
    color: rgba(255,255,255,.63);
    font-size: .72rem;
    letter-spacing: .025em;
}

.hero-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clock-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 178px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: rgba(255,255,255,.075);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.clock-card__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(53,214,210,.12);
    color: var(--cyan-300);
}
.clock-card__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clock-card__copy { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 8px; line-height: 1.15; }
.clock-card__copy small { grid-column: 1 / -1; color: rgba(255,255,255,.55); font-size: .64rem; text-transform: uppercase; letter-spacing: .11em; }
.clock-card__copy strong { color: white; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: .03em; }
.clock-card__copy span { color: rgba(255,255,255,.58); font-size: .7rem; }

.language-switcher {
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: rgba(255,255,255,.075);
    backdrop-filter: blur(14px);
}
.language-button {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(255,255,255,.68);
    background: transparent;
    font-size: .64rem;
    font-weight: 800;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.language-button img { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; box-shadow: 0 1px 5px rgba(0,0,0,.22); }
.language-button:hover { background: rgba(255,255,255,.08); color: white; transform: translateY(-1px); }
.language-button.is-active { border-color: rgba(114,236,231,.42); background: rgba(53,214,210,.15); color: white; }

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(290px, .72fr);
    gap: 58px;
    align-items: end;
    margin-top: 52px;
}

.eyebrow, .section-kicker {
    margin: 0 0 10px;
    color: var(--cyan-400);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.hero__lead {
    max-width: 730px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.74);
    font-size: 1.04rem;
}

.ip-panel {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 18px 42px rgba(0,0,0,.12);
    backdrop-filter: blur(15px);
    animation: panelFloat 7s ease-in-out infinite;
}
.ip-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.065), transparent 65%);
    transform: translateX(-100%);
    animation: panelSheen 8s ease-in-out infinite;
}
.ip-panel__top { display: flex; align-items: center; gap: 8px; }
.ip-panel__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 0 rgba(53,214,210,.42); animation: pulseRing 2.6s ease-out infinite; }
.ip-panel__label { display: block; color: rgba(255,255,255,.65); font-size: .78rem; }
.ip-panel__value {
    display: block;
    overflow-wrap: anywhere;
    margin: 8px 0 9px;
    color: white;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.ip-panel__location { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: rgba(255,255,255,.72); font-size: .8rem; }
.ip-panel__location img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 2px 7px rgba(0,0,0,.22); }
.ip-panel__type { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.76); font-size: .82rem; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.06); }
.status-dot--ok { background: #51e6a7; }
.status-dot--warn { background: #ffcb6b; }

.main-content { position: relative; margin-top: -76px; padding-bottom: 70px; }

.checker-card, .content-card {
    border: 1px solid rgba(216,227,237,.95);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.checker-card { padding: clamp(24px, 4vw, 46px); }
.checker-card + .checker-card { margin-top: 30px; }
.checker-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.checker-card__head h2, .content-card h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.protocol-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #0066b8;
    background: #eaf5ff;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
}
.protocol-badge--icmp { color: #0a746f; background: #e9fbfa; }

.notice { display: flex; gap: 14px; margin-top: 24px; padding: 17px 19px; border-radius: var(--radius-md); font-size: .92rem; }
.notice strong { display: block; margin-bottom: 2px; }
.notice--warning { border: 1px solid #f1d697; color: #704400; background: var(--amber-soft); }
.notice--info { align-items: flex-start; margin-top: 30px; border: 1px solid #c8deef; color: #244764; background: #edf7ff; }
.notice--info h2 { margin: 0 0 5px; color: #0b3456; font-size: 1.1rem; }
.notice--info p { margin: 0; }
.notice__icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; color: #0879d9; background: white; box-shadow: 0 8px 18px rgba(8,121,217,.11); }
.notice__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.target-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 32px 0 25px;
    padding: 0;
    border: 0;
}
.target-choice legend { grid-column: 1 / -1; margin-bottom: 4px; font-size: .9rem; font-weight: 750; }
.radio-card {
    display: flex;
    gap: 12px;
    min-height: 92px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.radio-card:hover { border-color: #a7cbe8; transform: translateY(-1px); }
.radio-card:has(input:checked) { border-color: var(--blue-500); background: #eff8ff; box-shadow: 0 0 0 3px rgba(21,151,238,.09); }
.radio-card input { width: 21px; height: 21px; margin: 2px 0 0; accent-color: var(--blue-600); }
.radio-card strong { display: block; margin-bottom: 2px; }
.radio-card small { display: block; color: var(--ink-500); font-size: .8rem; }

.field { margin-bottom: 25px; }
.field--hidden { display: none; }
.field--no-margin { margin-bottom: 0; }
.field label { display: block; margin-bottom: 7px; color: var(--ink-900); font-size: .9rem; font-weight: 750; }
.field input, .field select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #cbd8e4;
    border-radius: 12px;
    outline: none;
    color: var(--ink-900);
    background: white;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(21,151,238,.11); }
.field__help { margin: 7px 0 0; color: var(--ink-500); font-size: .78rem; }

.form-grid { display: grid; grid-template-columns: 1fr 210px; gap: 16px; align-items: start; }
.form-grid .field { margin-bottom: 0; }
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    margin-top: 31px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    box-shadow: 0 12px 26px rgba(8,121,217,.25);
    font-weight: 780;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(8,121,217,.31); filter: saturate(1.08); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }
.button-icon { font-size: 1rem; }
.is-loading .button-icon { animation: buttonPulse 1s ease-in-out infinite; }

.quick-ports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; color: var(--ink-500); font-size: .78rem; }
.port-chip {
    padding: 8px 11px;
    border: 1px solid #d6e1ea;
    border-radius: 999px;
    color: #193751;
    background: #f7fafc;
    font-size: .74rem;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.port-chip:hover { border-color: #8fc4ea; color: #0568bf; background: #eff8ff; transform: translateY(-1px); }
.port-chip small { color: var(--ink-500); }

.tool-intro { max-width: 850px; margin: 20px 0 28px; color: var(--ink-600); }
.ping-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px 210px; gap: 16px; align-items: start; }
.primary-button--ping { margin-top: 31px; }
.secondary-button {
    margin-top: 16px;
    padding: 10px 16px;
    border: 1px solid #cbd8e4;
    border-radius: 10px;
    color: #17436a;
    background: white;
    font-weight: 700;
}
.secondary-button:hover { border-color: #8fc4ea; background: #f2f8fd; }
.secondary-button--hidden { display: none; }

.result { margin-top: 28px; }
.result-loading, .result-error { padding: 18px 20px; border-radius: 13px; }
.result-loading { border: 1px solid #c9def0; color: #225177; background: #eff8ff; }
.result-error { border: 1px solid #f0b5bc; color: #a22534; background: var(--red-soft); }
.result-error strong { display: inline-block; margin-bottom: 3px; }

.result-card {
    overflow: hidden;
    position: relative;
    padding: 25px;
    border: 1px solid;
    border-radius: 17px;
}
.result-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; }
.result-card--open { border-color: #a9e2cb; background: var(--green-soft); }
.result-card--open::before { background: #1c9a69; }
.result-card--closed { border-color: #f0b5bc; background: var(--red-soft); }
.result-card--closed::before { background: var(--red); }
.result-card--filtered { border-color: #efd28a; background: var(--amber-soft); }
.result-card--filtered::before { background: var(--amber); }
.result-card--unreachable, .result-card--unavailable { border-color: #c7c0f2; background: var(--violet-soft); }
.result-card--unreachable::before, .result-card--unavailable::before { background: var(--violet); }
.result-card__top { display: flex; justify-content: space-between; gap: 22px; }
.result-card__status { display: flex; align-items: center; gap: 10px; }
.result-card__status > span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: rgba(255,255,255,.76); font-size: 1.12rem; font-weight: 900; }
.result-card__status h3 { margin: 0; font-size: 1.18rem; }
.result-card__summary { margin: 12px 0 0; color: var(--ink-700); }
.result-card__time { color: var(--ink-500); font-size: .7rem; white-space: nowrap; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: stretch; margin-top: 22px; }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-metrics--ping { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { min-height: 73px; padding: 13px 14px; border: 1px solid rgba(113,139,160,.2); border-radius: 11px; background: rgba(255,255,255,.58); }
.metric span { display: block; margin-bottom: 5px; color: var(--ink-500); font-size: .68rem; text-transform: uppercase; letter-spacing: .055em; }
.metric strong { display: block; overflow-wrap: anywhere; color: var(--ink-950); font-size: .9rem; }
.country-value, .target-with-flag { display: flex !important; align-items: center; gap: 8px; }
.country-value span, .target-with-flag span { display: inline; margin: 0; color: inherit; font-size: inherit; text-transform: none; letter-spacing: normal; }
.country-flag { width: 24px; height: 18px; flex: 0 0 auto; border-radius: 3px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.location-line { margin-top: 3px; color: var(--ink-500); font-size: .75rem; }
.result-service { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid rgba(113,139,160,.2); color: var(--ink-700); font-size: .86rem; }
.technical-details { margin-top: 13px; }
.technical-details summary { cursor: pointer; color: #315b7d; font-size: .79rem; font-weight: 720; }
.technical-details code { display: inline-block; margin-top: 8px; }
.technical-details--raw { margin-top: 17px; }
.ping-raw { overflow: auto; max-height: 280px; margin: 10px 0 0; padding: 15px; border-radius: 11px; color: #d9edff; background: #061728; font-size: .76rem; white-space: pre-wrap; }

.map-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(113,139,160,.22);
    border-radius: 13px;
    background: #dfeaf2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 210px; border: 0; filter: saturate(.88) contrast(.96); }
.map-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    color: white;
    text-decoration: none;
    background: linear-gradient(to bottom, rgba(4,20,38,.46), transparent 43%, rgba(4,20,38,.58));
    transition: background .2s ease;
}
.map-card__overlay:hover { background: linear-gradient(to bottom, rgba(4,20,38,.56), transparent 40%, rgba(4,20,38,.7)); }
.map-card__label { align-self: flex-start; padding: 6px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(4,20,38,.58); backdrop-filter: blur(8px); font-size: .68rem; font-weight: 760; }
.map-card__open { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; background: rgba(4,20,38,.72); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 760; }
.map-card__attribution { position: absolute; left: 7px; bottom: 6px; z-index: 2; padding: 2px 5px; border-radius: 4px; color: #163c5e; background: rgba(255,255,255,.86); font-size: .56rem; }
.map-card__attribution a { color: inherit; }

.explanation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.info-card {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    padding: 26px;
    border: 1px solid #d8e3ed;
    border-radius: 20px;
    background: linear-gradient(155deg, #fff, #f9fbfd);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(6,31,56,.13); }
.info-card__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.info-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; }
.info-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.info-card__number { color: #0a70c8; font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.info-card h2 { margin: 0 0 9px; font-size: 1.15rem; letter-spacing: -.02em; }
.info-card p { margin: 0; color: var(--ink-600); font-size: .91rem; }
.info-card__accent { position: absolute; inset: auto 0 0; height: 4px; }
.info-card--service .info-card__icon { color: #0879d9; background: #eaf5ff; }
.info-card--service .info-card__accent { background: linear-gradient(90deg, #0879d9, #44b7ff); }
.info-card--routing .info-card__icon { color: #087c78; background: #e8fbfa; }
.info-card--routing .info-card__accent { background: linear-gradient(90deg, #0b9791, #35d6d2); }
.info-card--firewall .info-card__icon { color: #715cc2; background: #f1efff; }
.info-card--firewall .info-card__accent { background: linear-gradient(90deg, #715cc2, #aa8df1); }
.info-card--service:hover { border-color: #b9d9f1; }
.info-card--routing:hover { border-color: #b7e4e1; }
.info-card--firewall:hover { border-color: #d3cbed; }

.content-card { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.4fr); gap: 42px; margin-top: 30px; padding: clamp(24px, 4vw, 42px); }
.content-card__intro p:last-child { color: var(--ink-500); }
.status-list { display: grid; gap: 10px; }
.status-item { display: flex; gap: 13px; padding: 15px; border: 1px solid #e0e7ee; border-radius: 13px; background: #fbfcfd; }
.status-item__icon { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 50%; font-weight: 900; }
.status-item strong { display: block; margin-bottom: 2px; }
.status-item p { margin: 0; color: var(--ink-500); font-size: .83rem; }
.status-item--open .status-item__icon { color: var(--green); background: var(--green-soft); }
.status-item--closed .status-item__icon { color: var(--red); background: var(--red-soft); }
.status-item--filtered .status-item__icon { color: var(--amber); background: var(--amber-soft); }
.status-item--unreachable .status-item__icon { color: var(--violet); background: var(--violet-soft); }

.ports-table-wrap { overflow-x: auto; }
.ports-table { width: 100%; border-collapse: collapse; }
.ports-table th, .ports-table td { padding: 12px 13px; border-bottom: 1px solid #e5ebf0; text-align: left; font-size: .82rem; }
.ports-table th { color: var(--ink-500); font-size: .69rem; text-transform: uppercase; letter-spacing: .06em; }
.table-port { padding: 5px 8px; border: 1px solid #cfe0ee; border-radius: 7px; color: #0568bf; background: #f2f8fd; font-weight: 800; }
.table-port:hover { border-color: #78b9e8; background: #e7f4fd; }

.site-footer { padding: 26px 0 34px; border-top: 1px solid #dce5ed; color: var(--ink-500); background: white; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.footer-grid strong { color: var(--ink-900); }
.footer-grid p { margin: 4px 0 0; font-size: .79rem; }
.visitor-counter { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.visitor-counter span { padding: 7px 10px; border: 1px solid #dbe5ed; border-radius: 999px; background: #f7fafc; font-size: .7rem; }
.visitor-counter strong { margin-left: 4px; }

@keyframes meshDrift { to { transform: translate3d(46px, 46px, 0); } }
@keyframes orbFloat { from { transform: translate3d(-15px, -8px, 0) scale(.96); } to { transform: translate3d(26px, 18px, 0) scale(1.08); } }
@keyframes signalPulse { 0% { width: 0; height: 0; opacity: .9; } 75%, 100% { width: 130px; height: 130px; opacity: 0; } }
@keyframes panelFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes panelSheen { 0%, 65% { transform: translateX(-110%); } 82%, 100% { transform: translateX(110%); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(53,214,210,.42); } 72%, 100% { box-shadow: 0 0 0 9px rgba(53,214,210,0); } }
@keyframes buttonPulse { 50% { opacity: .45; transform: scale(.82); } }

@media (max-width: 980px) {
    .hero__topbar { align-items: flex-start; }
    .hero-tools { align-items: flex-end; flex-direction: column-reverse; }
    .hero__grid { grid-template-columns: 1fr; gap: 30px; margin-top: 42px; }
    .ip-panel { max-width: 520px; }
    .ping-form-grid { grid-template-columns: minmax(0, 1fr) 170px; }
    .primary-button--ping { grid-column: 1 / -1; margin-top: 0; }
    .result-layout { grid-template-columns: 1fr; }
    .map-card iframe { min-height: 245px; }
    .content-card { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
    .hero { min-height: auto; padding-top: 18px; padding-bottom: 105px; }
    .hero__topbar { display: grid; gap: 18px; }
    .hero-tools { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
    .clock-card { min-width: 0; flex: 1; }
    .language-switcher { flex: 0 0 auto; }
    .language-button span { display: none; }
    .hero__grid { margin-top: 38px; }
    .hero h1 { font-size: clamp(2.15rem, 11vw, 3.45rem); }
    .hero__lead { font-size: .96rem; }
    .main-content { margin-top: -66px; }
    .target-choice { grid-template-columns: 1fr; }
    .target-choice legend { grid-column: 1; }
    .form-grid, .ping-form-grid { grid-template-columns: 1fr; }
    .primary-button, .primary-button--ping { margin-top: 0; }
    .explanation-grid { grid-template-columns: 1fr; }
    .info-card { min-height: auto; }
    .result-card__top { flex-direction: column; gap: 8px; }
    .result-card__time { white-space: normal; }
    .result-metrics, .result-metrics--ping { grid-template-columns: 1fr; }
    .footer-grid { align-items: flex-start; flex-direction: column; }
    .visitor-counter { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .container { width: min(100% - 24px, 1160px); }
    .brand__copy small { max-width: 180px; }
    .clock-card__copy { grid-template-columns: 1fr; }
    .clock-card__copy small { grid-column: auto; }
    .clock-card__copy span { display: none; }
    .language-switcher { gap: 2px; padding: 4px; }
    .language-button { padding: 4px; }
    .language-button img { width: 26px; height: 18px; }
    .checker-card { border-radius: 20px; }
    .checker-card__head h2, .content-card h2 { font-size: 1.75rem; }
    .quick-ports { gap: 6px; }
    .port-chip { padding: 7px 9px; }
    .content-card { padding: 22px; }
    .ports-table thead { display: none; }
    .ports-table, .ports-table tbody, .ports-table tr, .ports-table td { display: block; width: 100%; }
    .ports-table tr { padding: 10px 0; border-bottom: 1px solid #e5ebf0; }
    .ports-table td { display: grid; grid-template-columns: 105px 1fr; gap: 10px; padding: 5px 0; border: 0; }
    .ports-table td::before { content: attr(data-label); color: var(--ink-500); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
    .notice--info { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.result-layout--single { grid-template-columns: 1fr; }
