:root {
    --bg0: #f7f9fd;
    --bg1: #eef4fb;
    --bg2: #fffaf4;
    --text: #16324b;
    --muted: #6a7f94;
    --line: rgba(0, 40, 69, 0.1);
    --line-strong: rgba(0, 40, 69, 0.16);
    --accent: #ee8b24;
    --accent-strong: #e6582f;
    --brand: #002845;
    --brand-strong: #002443;
    --ok: #29b376;
    --danger: #b64a2b;
    --shadow: 0 24px 70px rgba(40, 67, 97, 0.12);
    --shadow-soft: 0 14px 32px rgba(40, 67, 97, 0.08);
    --radius: 28px;
    --radius-sm: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Outfit", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1000px 700px at 10% 8%, rgba(238, 139, 36, 0.16), transparent 55%),
        radial-gradient(900px 640px at 88% 12%, rgba(91, 156, 255, 0.12), transparent 58%),
        radial-gradient(880px 600px at 50% 100%, rgba(41, 179, 118, 0.07), transparent 65%),
        linear-gradient(180deg, var(--bg0), var(--bg1) 42%, var(--bg2));
    overflow-x: hidden;
}

body.admin-body {
    overflow-x: clip;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent 72%);
}

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

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

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.page-aura {
    position: fixed;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.45;
    pointer-events: none;
    z-index: -1;
}

.page-aura-left {
    top: 4rem;
    left: -8rem;
    background: radial-gradient(circle, rgba(238, 139, 36, 0.42), transparent 66%);
}

.page-aura-right {
    top: 0;
    right: -6rem;
    background: radial-gradient(circle, rgba(91, 156, 255, 0.24), transparent 68%);
}

.nav-shell {
    position: fixed;
    inset: 18px 0 auto 0;
    z-index: 50;
    pointer-events: none;
}

.nav-bar {
    pointer-events: auto;
    width: min(var(--max), calc(100% - 24px));
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.32));
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    box-shadow: 0 14px 40px rgba(48, 78, 112, 0.12);
    position: relative;
    overflow: hidden;
}

.nav-bar::before,
.track-light::before,
.glass-panel::before,
.service-glass::before,
.step-card::before,
.feature-card::before,
.split-glass::before,
.request-sidebar::before,
.request-form-shell::before,
.address-card::before,
.uploads-card::before,
.table-card::before,
.detail-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(720px 220px at var(--mx, 24%) 0%, rgba(255, 255, 255, 0.86), transparent 58%);
    pointer-events: none;
    opacity: 0.94;
}

.brand {
    display: flex;
    align-items: center;
    min-width: fit-content;
}

.brand-logo {
    width: 152px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(62, 92, 126, 0.08);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.main-nav,
.nav-actions,
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions {
    margin-left: auto;
}

.main-nav a,
.lang-switch a,
.text-link {
    color: rgba(22, 50, 75, 0.84);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.main-nav a,
.lang-switch a {
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid transparent;
}

.lang-switch a {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: 0 10px 24px rgba(62, 92, 126, 0.08);
}

.lang-flag-img {
    width: 22px;
    height: 22px;
    display: block;
    border-radius: 50%;
    border: 1px solid rgba(0, 40, 69, 0.08);
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(48, 78, 112, 0.12);
}

.lang-flag-emoji {
    display: none;
}

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

.mobile-menu {
    display: none;
    pointer-events: auto;
    width: min(var(--max), calc(100% - 24px));
    margin: 10px auto 0;
    padding: 16px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52));
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    box-shadow: 0 18px 42px rgba(48, 78, 112, 0.14);
}

.mobile-menu-links,
.mobile-menu-lang {
    display: grid;
    gap: 10px;
}

.mobile-menu-links a {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.4);
    color: var(--brand);
    font-weight: 600;
}

.mobile-menu-links a.active {
    background: rgba(238, 139, 36, 0.12);
    border-color: rgba(238, 139, 36, 0.24);
}

.mobile-menu-lang {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.mobile-menu-lang a {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 10px 24px rgba(62, 92, 126, 0.08);
}

.mobile-menu-lang a.active {
    background: rgba(238, 139, 36, 0.16);
    border-color: rgba(238, 139, 36, 0.28);
}

.main-nav a:hover,
.lang-switch a:hover,
.text-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.6);
}

.main-nav a.active {
    background: rgba(238, 139, 36, 0.12);
    border-color: rgba(238, 139, 36, 0.24);
    color: var(--brand);
}

.lang-switch a.active {
    background: rgba(238, 139, 36, 0.16);
    border-color: rgba(238, 139, 36, 0.28);
    box-shadow: 0 12px 28px rgba(238, 139, 36, 0.12);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.36);
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
    will-change: transform;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.btn::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -40%;
    width: 50%;
    height: 260%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.78), transparent);
    transform: rotate(18deg) translateX(-120%);
    transition: transform 0.55s ease;
}

.btn:hover::before {
    transform: rotate(18deg) translateX(260%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(48, 78, 112, 0.14);
}

.btn-gold {
    color: #fff;
    border-color: rgba(230, 88, 47, 0.2);
    background: linear-gradient(135deg, rgba(0, 40, 69, 0.92), rgba(0, 36, 67, 0.88) 42%, rgba(230, 88, 47, 0.92) 120%);
}

.btn-submit-request {
    color: #fff;
    border-color: rgba(49, 145, 105, 0.22);
    background: linear-gradient(135deg, rgba(24, 87, 73, 0.96), rgba(33, 123, 92, 0.94) 48%, rgba(108, 190, 137, 0.92) 120%);
    box-shadow: 0 18px 42px rgba(42, 118, 90, 0.18);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.54);
    border-color: rgba(0, 40, 69, 0.08);
}

.btn-danger {
    color: #fff;
    border-color: rgba(182, 74, 43, 0.22);
    background: linear-gradient(135deg, rgba(182, 74, 43, 0.95), rgba(132, 34, 19, 0.92));
}

.btn-small {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
}

.hero,
.section {
    position: relative;
    padding: 84px 0;
}

.hero-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 118px;
    padding-bottom: 60px;
}

.page-offset {
    padding-top: 138px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: -80px;
    background-size: cover;
    background-position: center;
    transform: translate3d(0, 0, 0) scale(1.07);
    will-change: transform;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(860px 520px at 18% 24%, rgba(255, 255, 255, 0.34), transparent 62%),
        radial-gradient(760px 420px at 84% 20%, rgba(238, 139, 36, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(247, 250, 255, 0.08), rgba(244, 248, 252, 0.72));
}

.glass-panel,
.service-glass,
.feature-card,
.step-card,
.split-glass,
.request-sidebar,
.request-form-shell,
.address-card,
.uploads-card,
.table-card,
.detail-card,
.auth-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    box-shadow: var(--shadow);
}

.hero-carousel {
    padding: 28px;
}

.hero-carousel-viewport {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    gap: 24px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    transform: translateX(24px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
}

.hero-slide-copy,
.hero-slide-visual {
    position: relative;
    z-index: 1;
}

.hero-frame img {
    height: 420px;
}

.hero-carousel-controls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-dot,
.carousel-arrow {
    border: 0;
    cursor: pointer;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 40, 69, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.is-active {
    background: var(--accent-strong);
    transform: scale(1.1);
}

.carousel-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.66);
    color: var(--brand);
    font-size: 24px;
    box-shadow: var(--shadow-soft);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.36);
    font-size: 12px;
    color: rgba(21, 50, 75, 0.92);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(238, 139, 36, 1), rgba(230, 88, 47, 0.92));
    box-shadow: 0 0 20px rgba(238, 139, 36, 0.42);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    color: var(--brand);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.about-intro-heading {
    margin-bottom: 18px;
}

h3 {
    font-size: 1.14rem;
    color: var(--brand);
}

.sub,
.lead,
.service-body p,
.feature-card p,
.step-card p,
.mini-v,
.request-sidebar p,
.request-form-shell p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.actions,
.meta,
.main-nav,
.lang-switch {
    display: flex;
    flex-wrap: wrap;
}

.actions {
    gap: 12px;
    margin-top: 22px;
}

.meta {
    gap: 10px;
    margin-top: 20px;
}

.pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.32);
    font-size: 12px;
    color: var(--brand);
}

.pill b {
    color: var(--accent-strong);
}

.section-head,
.admin-head,
.uploads-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.service-grid,
.feature-grid,
.steps-grid,
.request-grid,
.address-panels,
.form-grid,
.mini-grid {
    display: grid;
    gap: 16px;
}

.service-grid,
.feature-grid,
.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-glass,
.feature-card,
.step-card {
    padding: 16px;
}

.service-glass {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-photo,
.feature-image,
.image-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.32);
}

.service-photo img,
.feature-image img,
.image-frame img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.hero-frame img,
.image-frame.tall img {
    height: 420px;
}

.service-body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
    margin-top: 14px;
    flex: 1 1 auto;
}

.service-body .btn {
    margin-top: 6px;
    align-self: start;
}

.service-kicker {
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(0, 40, 69, 0.92), rgba(230, 88, 47, 0.92));
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.request-layout,
.split-glass {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 22px;
}

.request-sidebar,
.request-form-shell,
.split-glass,
.table-card,
.detail-card,
.auth-card {
    padding: 26px;
}

.address-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
}

.address-card,
.uploads-card {
    padding: 18px;
}

.compact-uploads-card {
    margin-top: 20px;
    padding: 16px 18px;
}

.address-card h3,
.uploads-card h3 {
    margin-bottom: 14px;
}

.compact-uploads-card h3 {
    margin-bottom: 10px;
}

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

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

#otherDocumentsWrap {
    display: grid;
    gap: 12px;
}

#otherDocumentsWrap .form-group {
    margin-bottom: 0;
}

label {
    font-size: 13px;
    color: var(--brand);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.52);
    color: var(--brand);
    padding: 12px 14px;
    font: inherit;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.62);
    overflow: hidden;
}

.file-upload-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 40, 69, 0.94), rgba(230, 88, 47, 0.92));
    box-shadow: var(--shadow-soft);
}

.file-upload-name {
    min-width: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

textarea {
    min-height: 124px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(230, 88, 47, 0.24);
    box-shadow: 0 0 0 4px rgba(230, 88, 47, 0.08);
}

.conditional-section,
.service-detail-group,
.trip-return-group {
    display: block;
}

.request-form > .btn,
.request-form > .btn-submit-request {
    margin-top: 0;
}

.form-submit-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    padding-top: 4px;
}

.form-submit-stack {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.form-submit-bar .btn-submit-request {
    min-width: 220px;
}

.turnstile-block {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.turnstile-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
}

.turnstile-help {
    max-width: 360px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
}

.is-hidden {
    display: none !important;
}

.alert {
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 18px;
}

.alert-success {
    background: rgba(41, 179, 118, 0.12);
    border: 1px solid rgba(41, 179, 118, 0.18);
    color: #1f7b56;
}

.alert-error {
    background: rgba(230, 88, 47, 0.12);
    border: 1px solid rgba(230, 88, 47, 0.18);
    color: var(--danger);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--brand);
}

th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(41, 179, 118, 0.12);
    color: #1f7b56;
}

.badge-warn {
    background: rgba(238, 139, 36, 0.14);
    color: #a35f11;
}

.badge-info {
    background: rgba(0, 40, 69, 0.08);
    color: var(--brand);
}

.badge-payment {
    background: rgba(0, 40, 69, 0.12);
    color: #0d4f7e;
}

.badge-missing {
    background: rgba(230, 88, 47, 0.14);
    color: #b64a2b;
}

.badge-review {
    background: rgba(238, 139, 36, 0.14);
    color: #a35f11;
}

.badge-progress {
    background: rgba(91, 156, 255, 0.14);
    color: #315f9a;
}

.badge-cancel {
    background: rgba(119, 127, 138, 0.16);
    color: #58616b;
}

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

.request-item {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.36);
}

.request-item span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.request-item strong,
.request-item a {
    word-break: break-word;
}

.request-item-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.inline-edit-panel {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.inline-edit-panel summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
}

.inline-edit-panel summary::-webkit-details-marker {
    display: none;
}

.inline-edit-form {
    width: min(100%, 360px);
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 40, 69, 0.08);
    background: rgba(255, 255, 255, 0.58);
}

.missing {
    border-color: rgba(230, 88, 47, 0.24);
    background: rgba(230, 88, 47, 0.12);
}

.missing strong,
.missing span {
    color: var(--danger);
}

.blink {
    animation: pulseAlert 1.2s ease-in-out infinite;
}

.auth-shell {
    display: grid;
    justify-items: center;
}

.auth-card {
    width: min(100%, 480px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    padding: 34px 0 54px;
    border-top: 1px solid rgba(0, 40, 69, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(241, 246, 252, 0.92));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr 0.95fr 1.1fr;
    gap: 18px;
    align-items: start;
}

.footer-brand,
.footer-column {
    height: 100%;
    padding: 20px 18px;
    border: 1px solid rgba(0, 40, 69, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 18px 36px rgba(62, 92, 126, 0.08);
}

.footer-logo {
    width: min(220px, 100%);
    display: block;
}

.footer-column h2 {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-whatsapp-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-whatsapp-title-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1fa463;
}

.footer-whatsapp-title-icon svg {
    width: 22px;
    height: 22px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a,
.footer-links span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-whatsapp {
    display: flex;
    justify-content: center;
}

.footer-qr-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(37, 145, 90, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(234, 252, 243, 0.92));
    box-shadow: 0 18px 36px rgba(46, 110, 82, 0.08);
}

.footer-qr-frame img {
    width: 118px;
    height: 118px;
    display: block;
    border-radius: 16px;
    background: #fff;
}

.footer-copy {
    margin-top: 12px;
    font-weight: 600;
}

.footer-copy-soft {
    font-weight: 400;
    color: var(--muted);
    line-height: 1.7;
}

.section-inner {
    margin-top: 24px;
}

.legal-stack {
    display: grid;
    gap: 18px;
}

.content-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.content-list li + li {
    margin-top: 10px;
}

.info-table {
    display: grid;
}

.info-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 14px;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 40, 69, 0.08);
}

.info-row:first-child {
    border-top: none;
    padding-top: 0;
}

.info-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

.info-value {
    color: var(--muted);
    line-height: 1.8;
}

.placeholder-text {
    font-weight: 700;
    color: var(--accent-strong);
}

.mini-info-block + .mini-info-block {
    margin-top: 18px;
}

.mini-info-block h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.mini-info-block p {
    color: var(--muted);
    line-height: 1.75;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-main {
    padding-top: 34px;
    padding-bottom: 72px;
}

.admin-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-status-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
}

.status-inline {
    margin-top: 8px;
}

.status-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.admin-preview-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-preview-head h2 {
    font-size: 1.4rem;
    line-height: 1.15;
}

.admin-document-preview {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 40, 69, 0.08);
}

.admin-preview-body {
    min-height: 620px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 40, 69, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.admin-preview-empty {
    display: grid;
    place-items: center;
    min-height: 620px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    line-height: 1.8;
}

.admin-preview-body img,
.admin-preview-body iframe {
    display: block;
    width: 100%;
    min-height: 620px;
    max-height: 78vh;
    object-fit: contain;
    border: 0;
    background: #fff;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.admin-table {
    min-width: 860px;
}

.file-preview-link {
    display: inline-block;
    margin-bottom: 8px;
}

.admin-form-actions {
    margin-top: 20px;
}

.admin-login-actions {
    margin-top: 18px;
}

.admin-login-actions .btn {
    min-width: 160px;
}

.confirm-dialog {
    width: min(100% - 24px, 520px);
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
}

.confirm-dialog::backdrop {
    background: rgba(8, 17, 28, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.confirm-dialog-card {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 253, 0.94));
    box-shadow: 0 28px 60px rgba(30, 48, 71, 0.16);
}

.confirm-dialog-card h2 {
    margin-bottom: 10px;
}

.confirm-dialog-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.preview-dialog {
    width: min(100% - 24px, 980px);
}

.preview-dialog-card {
    padding: 18px;
}

.preview-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.preview-dialog-body {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 40, 69, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.preview-dialog-body img,
.preview-dialog-body iframe {
    display: block;
    width: 100%;
    min-height: 72vh;
    max-height: 72vh;
    object-fit: contain;
    border: 0;
    background: #fff;
}

.map-card {
    display: grid;
    gap: 18px;
}

.map-copy {
    display: grid;
    gap: 8px;
}

.map-embed {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(0, 40, 69, 0.08);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 16px 32px rgba(62, 92, 126, 0.08);
}

.map-embed iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

@keyframes pulseAlert {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(0.99);
    }
}

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

    .admin-status-bar {
        grid-template-columns: 1fr;
    }

    .hero-slide,
    .request-layout,
    .split-glass,
    .service-grid,
    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .admin-preview-body,
    .admin-preview-empty,
    .admin-preview-body img,
    .admin-preview-body iframe {
        min-height: 420px;
    }
}

@media (min-width: 981px) {
    .mobile-menu {
        display: none !important;
    }

    .nav-toggle {
        display: none !important;
    }

    .lang-switch a {
        overflow: hidden;
        font-size: 0;
        line-height: 0;
        white-space: nowrap;
    }

    .lang-switch .lang-flag-img {
        display: block !important;
    }

    .lang-switch .lang-flag-emoji,
    .lang-switch .sr-only {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .nav-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
        flex-wrap: nowrap;
        min-height: 56px;
    }

    .main-nav {
        display: none;
    }

    .nav-shell.menu-open .mobile-menu {
        display: block;
    }

    .nav-actions {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        margin-left: 0;
        justify-content: center;
        min-width: 0;
        z-index: 1;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        flex: 0 0 auto;
        position: relative;
        z-index: 2;
    }

    .brand {
        min-width: 0;
        flex: 0 0 auto;
        position: relative;
        z-index: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-bar,
    .section-head,
    .admin-head,
    .uploads-head {
        flex-wrap: wrap;
    }

    .table-actions,
    .status-form,
    .dialog-actions {
        width: 100%;
    }

    .form-grid,
    .mini-grid,
    .address-panels,
    .request-grid {
        grid-template-columns: 1fr;
    }

    .compact-uploads-card {
        margin-top: 16px;
        padding: 14px 14px;
    }

    .compact-uploads-card h3 {
        margin-bottom: 8px;
    }

    #otherDocumentsWrap {
        gap: 10px;
    }

    .form-submit-bar {
        justify-content: center;
        margin-top: 18px;
        padding-top: 0;
    }

    .form-submit-stack {
        justify-items: center;
    }

    .form-submit-bar .btn-submit-request {
        width: min(100%, 320px);
        min-width: 0;
    }

    .footer-qr-frame {
        width: 100%;
    }

    .footer-qr-frame img {
        width: min(124px, 100%);
        height: auto;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--max), calc(100% - 20px));
    }

    .hero-home {
        padding-top: 108px;
    }

    .hero-carousel,
    .request-sidebar,
    .request-form-shell,
    .split-glass,
    .table-card,
    .detail-card,
    .auth-card {
        padding: 20px;
    }

    .admin-main {
        padding-top: 22px;
        padding-bottom: 54px;
    }

    h1 {
        font-size: 32px;
    }

    .brand-logo {
        width: 104px;
    }

    .nav-actions {
        justify-content: center;
    }

    .lang-switch {
        width: auto;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .lang-switch a {
        width: 34px;
        height: 34px;
        padding: 0;
    }

    .lang-flag-img {
        display: none;
    }

    .lang-flag-emoji {
        display: inline-block;
        font-size: 18px;
        line-height: 1;
        font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    }

    .lang-flag-img {
        width: 24px;
        height: 24px;
    }

    .compact-uploads-card {
        margin-top: 14px;
        padding: 12px;
    }

    .uploads-head {
        gap: 10px;
    }

    .uploads-head .btn {
        width: 100%;
        justify-content: center;
    }

    .file-upload {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .file-upload-button {
        width: 100%;
    }

    .form-submit-bar {
        margin-top: 16px;
    }

    .turnstile-block {
        justify-items: center;
    }

    .turnstile-help {
        text-align: center;
    }

    .form-submit-bar .btn-submit-request {
        width: min(100%, 280px);
    }

    .footer-whatsapp-title-icon,
    .footer-whatsapp-title-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer-qr-frame {
        padding: 6px;
    }

    .footer-qr-frame img {
        width: 112px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .dialog-actions {
        flex-direction: column-reverse;
    }

    .admin-detail-stack {
        gap: 18px;
    }

    .admin-head {
        align-items: start;
    }

    .admin-head .table-actions {
        justify-content: flex-start;
    }

    .admin-preview-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-document-preview {
        margin-top: 18px;
        padding-top: 18px;
    }

    .admin-preview-body,
    .admin-preview-empty,
    .admin-preview-body img,
    .admin-preview-body iframe {
        min-height: 320px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
