:root {
    --navy: #082c5c;
    --blue: #0b70bd;
    --orange: #ff6900;
    --orange-dark: #ce4e00;
    --text: #18324d;
    --muted: #61768d;
    --line: #dbe7ef;
    --soft: #eef7fc;
    --white: #fff;
    --shadow: 0 18px 50px rgba(8, 44, 92, .09);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

body,
input,
select,
textarea,
button {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--blue);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-size: 1rem;
}

button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled,
fieldset:disabled button {
    cursor: wait;
    opacity: .65;
}

:focus-visible {
    outline: 3px solid #059add;
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.15;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 5.5vw, 5.3rem);
    letter-spacing: -.055em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 3.7vw, 3.2rem);
    letter-spacing: -.04em;
}

h3 {
    font-size: 1.25rem;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: .87rem;
}

.lead {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.1rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #a94200;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 21px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    background: var(--orange-dark);
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.3;
    transition: transform .2s, background .2s, box-shadow .2s;
}

.button:hover {
    transform: translateY(-2px);
    background: #ad4200;
    box-shadow: 0 8px 20px rgba(206, 78, 0, .16);
}

.button-small {
    padding: 10px 14px;
    font-size: .86rem;
}

.button-light {
    border-color: var(--line);
    color: var(--navy);
    background: #fff;
}

.button-light:hover {
    background: #f1f8fc;
}

.button-dark {
    color: #fff;
    background: var(--navy);
}

.button-dark:hover {
    background: #0d467e;
}

.button-danger {
    background: #b42338;
}

.button-danger:hover {
    background: #8f1c2c;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 15px;
    z-index: 12000;
    padding: 12px;
    color: #fff;
    background: var(--navy);
}

.skip-link:focus {
    top: 12px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(219, 231, 239, .8);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 15px;
    object-fit: cover;
    background: #fff;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: .94rem;
    letter-spacing: .03em;
}

.brand small {
    color: var(--muted);
    font-size: .73rem;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}

/* Hero */

.hero {
    overflow: hidden;
    padding: 75px 0 85px;
    background:
        radial-gradient(circle at 92% 20%, #d6f1ff, transparent 35%),
        linear-gradient(180deg, #f7fcff, #fff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 35px;
}

.hero h1 span {
    color: var(--blue);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 17px;
    margin-top: 26px;
    color: var(--muted);
    font-size: .83rem;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 480px;
    place-items: center;
}

.hero-orbit {
    position: absolute;
    width: 94%;
    aspect-ratio: 1;
    border: 1px solid #cee7f6;
    border-radius: 50%;
    background: linear-gradient(145deg, #e3f4ff, #fff);
    box-shadow: inset 0 0 0 28px rgba(255, 255, 255, .6);
}

.hero-fox {
    position: relative;
    z-index: 1;
    width: 76%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 34%;
    object-fit: contain;
    filter: drop-shadow(0 20px 22px rgba(8, 44, 92, .1));
    animation: fox-float 6s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 18px;
    border: 1px solid #e1edf5;
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow);
}

.floating-card > span {
    font-size: 1.6rem;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: .83rem;
}

.floating-card small {
    color: var(--muted);
    font-size: .73rem;
}

.float-top {
    top: 28px;
    right: 0;
}

.float-bottom {
    bottom: 28px;
    left: 0;
}

@keyframes fox-float {
    50% {
        transform: translateY(-12px);
    }
}

/* Sections */

.section {
    padding: 85px 0;
}

.section-soft {
    background: var(--soft);
}

.section-heading {
    max-width: 690px;
    margin-bottom: 35px;
}

.section-heading p {
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card,
.step-card,
.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.service-card {
    display: flex;
    flex-direction: column;
    transition: transform .2s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    display: grid;
    width: 57px;
    height: 57px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 17px;
    background: var(--soft);
    font-size: 1.6rem;
}

.service-card p,
.step-card p {
    color: var(--muted);
    font-size: .94rem;
}

.text-link {
    margin-top: auto;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-number {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--orange-dark);
    font-size: 2.2rem;
    font-weight: 900;
}

.faq-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
}

.faq-list details {
    margin-bottom: 13px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.faq-list summary {
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
}

.faq-list p {
    margin: 15px 0 0;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: start;
    gap: 60px;
}

.contact-card {
    display: grid;
    gap: 4px;
    margin: 30px 0;
}

.contact-card strong:not(:first-child) {
    margin-top: 17px;
}

.contact-card a {
    width: fit-content;
    text-decoration: none;
    overflow-wrap: anywhere;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: .87rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #c6d9e5;
    border-radius: 10px;
    color: var(--text);
    background: #fff;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
}

.full {
    grid-column: 1 / -1;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: .82rem;
    font-weight: 400;
}

.checkbox-row input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--blue);
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.feedback {
    margin: 15px 0 0;
    font-size: .9rem;
}

.feedback:empty {
    display: none;
}

.feedback.error,
.notice.error {
    color: #a22033;
}

.feedback.success,
.notice.success {
    color: #126846;
}

.notice {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.site-footer {
    padding: 40px 0 105px;
    color: #d2e1ef;
    background: #071d38;
}

.site-footer strong {
    color: #fff;
}

.site-footer p {
    margin: 6px 0;
}

.footer-inner,
.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.footer-links {
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d2e1ef;
    font-size: .9rem;
    text-decoration: none;
}

/* Chat */

#pf-chat-button {
    position: fixed;
    right: 24px;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 17px 9px 9px;
    border: 0;
    border-radius: 100px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    box-shadow: 0 13px 35px rgba(8, 44, 92, .3);
    font-size: .9rem;
    font-weight: 800;
}

#pf-chat-button img {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

#pf-chat-window {
    position: fixed;
    right: 24px;
    bottom: 94px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 30px));
    height: min(660px, calc(100dvh - 115px));
    overflow: hidden;
    border: 1px solid #d6e5ef;
    border-radius: 23px;
    background: #f8fcff;
    box-shadow: 0 24px 65px rgba(5, 29, 63, .3);
}

.pf-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--blue));
}

.pf-head img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.pf-head strong,
.pf-head small {
    display: block;
}

.pf-head strong {
    font-size: .95rem;
}

.pf-head small {
    color: #d1eaff;
    font-size: .72rem;
}

.pf-icon-button {
    display: grid;
    flex: 0 0 auto;
    width: 33px;
    height: 33px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-size: 1.1rem;
}

#pf-reset {
    margin-left: auto;
}

#pf-progress {
    padding: 7px 14px;
    color: var(--navy);
    background: #dff1fc;
    font-size: .76rem;
    font-weight: 700;
}

#pf-messages {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    gap: 11px;
    padding: 15px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #eef7fc;
}

.pf-message {
    align-self: flex-start;
    max-width: 90%;
    padding: 11px 13px;
    border: 1px solid #e2edf5;
    border-radius: 5px 15px 15px 15px;
    color: var(--text);
    background: #fff;
    font-size: .88rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pf-user {
    align-self: flex-end;
    border-color: transparent;
    border-radius: 15px 5px 15px 15px;
    color: #fff;
    background: var(--blue);
}

.pf-typing {
    color: var(--muted);
    font-style: italic;
}

#pf-controls,
.pf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 13px;
    background: #eef7fc;
}

#pf-controls:empty {
    display: none;
}

.pf-action {
    padding: 8px 10px;
    border: 1px solid #bad7e8;
    border-radius: 9px;
    color: var(--navy);
    background: #fff;
    font-size: .76rem;
    font-weight: 800;
}

.pf-action.primary {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.pf-privacy {
    width: 100%;
    margin: 0 0 4px;
}

.pf-input-area {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 11px;
    border-top: 1px solid var(--line);
    background: #fff;
}

#pf-input {
    flex: 1;
    font-size: 16px;
}

#pf-send {
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--orange-dark);
    font-weight: 900;
}

.pf-footnote {
    padding: 0 12px 9px;
    color: var(--muted);
    background: #fff;
    font-size: .65rem;
    text-align: center;
}

/* Administration */

.admin-body {
    min-height: 100vh;
    background: var(--soft);
}

.admin-main {
    padding: 35px 0 70px;
}

.login-wrap {
    display: grid;
    min-height: 100dvh;
    padding: 25px;
    place-items: center;
    background:
        radial-gradient(circle at 10% 10%, #174c75, transparent 40%),
        #071d38;
}

.login-panel {
    width: min(440px, 100%);
}

.login-panel .brand {
    margin-bottom: 25px;
}

.login-panel h1 {
    font-size: 2rem;
    letter-spacing: -.03em;
}

.login-panel button {
    width: 100%;
    margin-top: 17px;
}

.admin-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-intro h1 {
    margin-bottom: 8px;
    font-size: 2.3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.stat strong {
    display: block;
    color: var(--navy);
    font-size: 2rem;
}

.stat span {
    color: var(--muted);
    font-size: .84rem;
}

.admin-filters {
    display: grid;
    grid-template-columns: 1fr 230px auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 25px;
}

.inquiry-list {
    display: grid;
    gap: 20px;
}

.inquiry-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--shadow);
}

.inquiry-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.inquiry-card-top h2 {
    margin-bottom: 7px;
    font-size: 1.3rem;
    letter-spacing: 0;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 100px;
    color: #08558a;
    background: #e3f2ff;
    font-size: .78rem;
    font-weight: 800;
}

.inquiry-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
}

.inquiry-details > div {
    min-width: 0;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.inquiry-details dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .73rem;
    font-weight: 700;
}

.inquiry-details dd {
    margin: 0;
    font-size: .94rem;
    overflow-wrap: anywhere;
}

.inquiry-message {
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.admin-edit {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: start;
    gap: 15px;
    padding: 20px;
}

.admin-edit .button-row {
    grid-column: 1 / -1;
}

.empty-state {
    padding: 45px 20px;
    border: 1px dashed #b7d0e0;
    border-radius: 18px;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

@media (max-width: 1000px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-phone {
        display: none;
    }

    .hero-visual {
        min-height: 390px;
    }

    .floating-card {
        padding: 11px;
    }

    .contact-grid {
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .hero {
        padding: 45px 0;
    }

    .hero-grid,
    .contact-grid,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-visual {
        width: min(470px, 100%);
        min-height: 410px;
        margin-inline: auto;
    }

    .section {
        padding: 60px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        min-height: 76px;
    }

    nav {
        gap: 13px;
    }

    nav a {
        font-size: .82rem;
    }

    .brand small {
        display: none;
    }

    .brand strong {
        font-size: .8rem;
    }

    .footer-inner {
        flex-direction: column;
    }

    .admin-filters {
        grid-template-columns: 1fr 1fr;
    }

    .admin-filters > label:first-child {
        grid-column: 1 / -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inquiry-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 30px);
    }

    .brand img {
        width: 39px;
        height: 39px;
    }

    .header-inner {
        gap: 10px;
    }

    nav {
        gap: 10px;
    }

    nav a:first-child {
        display: none;
    }

    .service-grid,
    .form-grid,
    .admin-edit,
    .inquiry-details {
        grid-template-columns: 1fr;
    }

    .panel,
    .service-card,
    .step-card {
        padding: 23px;
    }

    .hero-visual {
        min-height: 355px;
    }

    .floating-card strong {
        font-size: .75rem;
    }

    .floating-card small {
        font-size: .65rem;
    }

    #pf-chat-button {
        right: 15px;
        bottom: max(15px, env(safe-area-inset-bottom));
    }

    #pf-chat-window {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100vw - 20px);
        height: calc(100dvh - 20px);
        max-height: 700px;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-edit .button-row {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}