:root {
    --green: #2f9227;
    --green-dark: #057d35;
    --green-soft: #79c46f;
    --green-ready: #078f31;
    --ink: #111318;
    --muted: #747980;
    --line: #c9d6e0;
    --cream: #fff3df;
    --panel: #f4f7f8;
    --dark: #242528;
    --danger: #c73636;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
}

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

button,
input,
textarea {
    font: inherit;
}

.desktop-topbar {
    height: 42px;
    background: var(--dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 86px 0 8px;
}

.desktop-topbar nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-topbar a {
    font-size: 18px;
}

.desktop-topbar .topbar-right a {
    font-size: 13px;
    font-weight: 700;
}

.home-header {
    min-height: 150px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(560px, 1fr);
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 24px 8px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 800;
    font-size: 24px;
    color: #090909;
}

.logo-pc {
    justify-self: center;
}

div.logo-pc {
    width: 210px;
    height: 72px;
}

img.logo-pc {
    display: block;
    width: auto;
    height: auto;
    max-width: 210px;
    max-height: 72px;
    object-fit: contain;
}

.logo-mobile,
.hamburger,
.search-circle,
.my-fact,
.mobile-alert,
.mobile-form-wrap {
    display: none;
}

.quote-form-desktop {
    display: grid;
    grid-template-columns: 120px 200px 200px 52px;
    gap: 12px;
    align-items: center;
    justify-content: end;
    position: relative;
}

.quote-form-desktop input {
    height: 53px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 24px;
}

.quote-form-desktop input:first-of-type {
    border-color: #b3c400;
}

.search-pill {
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    color: #1f2933;
    cursor: pointer;
}

.search-pill span {
    color: var(--green);
    font-size: 24px;
    font-weight: 800;
}

.go-button {
    height: 52px;
    border: 0;
    border-radius: 5px;
    background: var(--green-soft);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.go-button:disabled,
.quote-form-mobile button:disabled,
.invoice-card button:disabled {
    cursor: default;
    opacity: 0.82;
}

.go-button.is-ready,
.quote-form-mobile button.is-ready,
.invoice-card button.is-ready {
    background: var(--green-ready);
    cursor: pointer;
    opacity: 1;
}

.quote-form-desktop a {
    grid-column: 3 / 5;
    color: #08760d;
    font-size: 13px;
    text-decoration: underline;
    justify-self: center;
    margin-top: -4px;
}

.category-nav {
    max-width: 1260px;
    margin: 26px auto 28px;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.category-nav a {
    font-size: 16px;
    padding: 0 12px;
    border-right: 2px solid #c8d5df;
}

.category-nav a:last-child {
    border-right: 0;
}

.desktop-alert {
    border-top: 1px solid #d6e0e8;
    background: var(--cream);
    min-height: 76px;
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    gap: 8px;
    padding: 0 max(18px, calc((100vw - 1330px) / 2));
}

.desktop-alert::before {
    content: "i";
    width: 22px;
    height: 22px;
    border: 2px solid #8a9aaa;
    color: #748494;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.desktop-alert strong {
    display: block;
    font-size: 12px;
    color: #384450;
}

.desktop-alert p {
    grid-column: 2;
    margin: -22px 0 0;
    font-size: 16px;
}

.desktop-alert span {
    color: #9aa5ad;
    justify-self: end;
}

.hero-banner {
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 0 28px;
    text-align: center;
}

.banner {
    display: grid;
    place-items: center;
    background: #070b05;
    color: #fff;
    font-weight: 800;
    font-size: 24px;
}

.banner-pc {
    width: min(1400px, calc(100vw - 64px));
    height: 502px;
    margin: 0 auto;
}

.banner-mobile {
    display: none;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
}

.slider-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dfe5b8;
}

.slider-dots .active {
    width: 23px;
    border-radius: 12px;
    background: #b4d100;
}

.contact-float {
    position: fixed;
    right: 0;
    bottom: 22px;
    background: #656d73;
    color: #fff;
    padding: 16px 22px;
    font-weight: 700;
    border-radius: 25px 0 0 25px;
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 19, 24, 0.28);
}

.notice-box {
    width: min(360px, 100%);
    background: #fff;
    border: 1px solid #d8e1e8;
    border-radius: 8px;
    padding: 26px 24px 22px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(22, 32, 42, 0.18);
}

.notice-box h2 {
    margin: 0 0 6px;
    color: var(--danger);
    font-size: 20px;
}

.notice-box p {
    margin: 0 0 20px;
    color: #4b555f;
    font-size: 17px;
}

.notice-box a {
    display: inline-grid;
    place-items: center;
    min-width: 132px;
    height: 42px;
    border-radius: 5px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
}

.wait-screen,
.final-message {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #fff;
}

.wait-box,
.final-message {
    text-align: center;
}

.wait-box {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.wait-logo {
    animation: fadePulse 1.35s ease-in-out infinite;
}

div.wait-logo {
    width: 120px;
    min-height: 52px;
}

img.wait-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 52px;
    object-fit: contain;
}

.wait-box p {
    margin: 0;
    color: #4e555b;
    font-size: 17px;
    font-weight: 700;
}

@keyframes fadePulse {
    0%,
    100% {
        opacity: 0.18;
    }

    50% {
        opacity: 1;
    }
}

.final-message h1 {
    margin: 0 0 10px;
    font-size: 30px;
}

.final-message p {
    color: var(--muted);
    font-size: 18px;
}

.second-top-strip {
    height: 35px;
    background: #454a4f;
}

.second-header {
    max-width: 1280px;
    min-height: 126px;
    margin: 0 auto;
    padding: 30px 12px 12px;
    display: grid;
    grid-template-columns: 240px 1fr 340px;
    align-items: start;
    gap: 24px;
}

.second-header p {
    text-align: center;
    margin: 18px 0 0;
    font-size: 25px;
}

.second-header nav {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.second-header button {
    height: 48px;
    border: 0;
    border-radius: 5px;
    padding: 0 16px;
    background: #565b62;
    color: #fff;
    font-weight: 700;
}

.second-header button:first-child {
    background: #f1f4f7;
    color: #7d8790;
    font-size: 22px;
}

.second-header button:last-child {
    background: #ec0033;
    font-size: 20px;
}

.second-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 12px 80px;
}

.wide-banner {
    width: 100%;
    height: 54px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    background: var(--green-dark);
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 134px;
}

.invoice-card {
    display: grid;
    grid-template-columns: 1.15fr 260px 1.45fr 265px;
    align-items: center;
    min-height: 200px;
    background: var(--panel);
    border-bottom: 3px solid var(--green-dark);
}

.invoice-copy {
    padding: 34px 32px;
}

.invoice-copy h1 {
    margin: 0 0 4px;
    color: var(--green-dark);
    font-size: 21px;
}

.invoice-copy p,
.invoice-hint {
    margin: 0;
    color: #7a7a7a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.32;
}

.invoice-card form {
    display: grid;
    gap: 6px;
}

.invoice-card input {
    height: 50px;
    border: 1px solid #b9c6d3;
    border-radius: 5px;
    padding: 0 12px;
    font-size: 20px;
}

.invoice-card button {
    height: 50px;
    border: 0;
    border-radius: 3px;
    background: #80bd93;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.invoice-hint {
    padding: 32px 38px;
}

.right-logo {
    height: 200px;
    display: grid;
    place-items: center;
    background: var(--green-dark);
    color: #050505;
    font-size: 20px;
    font-weight: 800;
}

.second-error {
    max-width: 640px;
    margin: -92px auto 28px;
    color: var(--danger);
    font-weight: 800;
    text-align: center;
}

.help-tab {
    position: fixed;
    right: 0;
    top: 72%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    background: #00a812;
    color: #fff;
    padding: 14px 9px;
    border-radius: 7px 0 0 7px;
    font-size: 14px;
    font-weight: 800;
}

.admin-login,
.admin-page {
    min-height: 100vh;
    background: #eef3f5;
}

.login-card {
    width: min(420px, calc(100vw - 32px));
    margin: 10vh auto;
    background: #fff;
    border: 1px solid #d6e0e8;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(25, 35, 45, 0.08);
}

.login-card h1 {
    margin: 0 0 8px;
}

.login-card p {
    color: var(--muted);
}

.login-card form {
    display: grid;
    gap: 12px;
}

.login-card input,
.login-card button {
    height: 46px;
    border-radius: 5px;
}

.login-card input {
    border: 1px solid var(--line);
    padding: 0 12px;
}

.login-card button,
.admin-actions button {
    border: 0;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.admin-error {
    color: var(--danger);
    font-weight: 800;
}

.admin-header {
    background: #fff;
    border-bottom: 1px solid #d6e0e8;
    padding: 20px max(18px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header p {
    margin: 0 0 3px;
    color: var(--muted);
}

.admin-header h1 {
    margin: 0;
}

.admin-header a {
    background: #e7edf1;
    border-radius: 5px;
    padding: 10px 14px;
    font-weight: 800;
}

.admin-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px 60px;
}

.admin-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #d6e0e8;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.admin-notice strong {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dce6ec;
}

.admin-notice.has-pending {
    border-color: #ffb13b;
    background: #fff8ed;
}

.admin-notice.has-pending strong {
    background: #ffb13b;
    color: #fff;
}

.empty-state,
.admin-item {
    background: #fff;
    border: 1px solid #d6e0e8;
    border-radius: 8px;
    padding: 22px;
}

.admin-list {
    display: grid;
    gap: 16px;
}

.admin-item.is-pending {
    border-left: 5px solid var(--green);
}

.admin-item header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-item h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.admin-item header p,
.admin-item header span,
.admin-muted {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.admin-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.admin-details div {
    background: #f4f7f8;
    border-radius: 6px;
    padding: 12px;
}

.admin-details dt {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.admin-details dd {
    margin: 0;
    font-weight: 800;
    word-break: break-word;
}

.admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 120px;
    gap: 10px;
}

.admin-actions textarea {
    grid-column: 1 / -1;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    resize: vertical;
}

.admin-actions button {
    min-height: 44px;
    border-radius: 5px;
    padding: 0 12px;
}

.admin-actions .danger {
    background: var(--danger);
}

.admin-actions.compact {
    grid-template-columns: 1fr 120px 120px;
    align-items: center;
}

.admin-actions.compact p {
    margin: 0;
    color: #55606a;
}

.admin-actions.cleanup {
    grid-template-columns: 180px;
    margin-top: 14px;
}

@media (max-width: 820px) {
    .desktop-topbar,
    .category-nav,
    .desktop-alert,
    .quote-form-desktop,
    .page-home .logo-pc,
    .contact-float {
        display: none;
    }

    .page-home {
        background: #fff;
    }

    .mobile-alert {
        display: grid;
        grid-template-columns: 30px 1fr 20px;
        gap: 8px;
        align-items: start;
        background: var(--cream);
        min-height: 100px;
        padding: 22px 18px 12px;
    }

    .mobile-alert::before {
        content: "i";
        width: 23px;
        height: 23px;
        border: 2px solid #8a9aaa;
        color: #748494;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-weight: 700;
    }

    .mobile-alert strong {
        font-size: 12px;
        color: #41484f;
    }

    .mobile-alert p {
        grid-column: 2;
        margin: -10px 0 0;
        font-size: 18px;
        line-height: 1.25;
    }

    .mobile-alert span {
        grid-column: 3;
        grid-row: 1;
        color: #8e9aa3;
        font-size: 20px;
    }

    .home-header {
        min-height: 105px;
        grid-template-columns: 48px 1fr 70px 96px;
        gap: 10px;
        border-bottom: 1px solid #cad6df;
        box-shadow: 0 2px 8px rgba(30, 40, 50, 0.12);
        padding: 18px;
    }

    .hamburger {
        display: grid;
        gap: 5px;
        border: 0;
        background: transparent;
        padding: 0;
    }

    .hamburger span {
        display: block;
        width: 28px;
        height: 4px;
        border-radius: 2px;
        background: #7d8790;
    }

    .logo-mobile {
        justify-content: flex-start;
        font-size: 20px;
    }

    div.logo-mobile {
        display: flex;
        width: 132px;
        height: 48px;
        min-height: 0;
    }

    img.logo-mobile {
        display: block;
        width: auto;
        height: auto;
        max-width: 132px;
        max-height: 48px;
        object-fit: contain;
        justify-self: start;
    }

    .search-circle {
        display: grid;
        place-items: center;
        width: 58px;
        height: 58px;
        border: 1px solid #c8d5df;
        border-radius: 50%;
        background: #fff;
        color: #89969f;
        font-size: 28px;
    }

    .my-fact {
        display: block;
        width: 96px;
        height: 56px;
        border: 0;
        border-radius: 28px;
        background: var(--green);
        color: #fff;
        font-weight: 800;
        font-size: 18px;
    }

    .mobile-form-wrap {
        display: block;
        padding: 26px 18px 16px;
    }

    .mobile-close {
        color: #313c45;
        text-align: right;
        letter-spacing: 5px;
        font-size: 13px;
        margin-bottom: 24px;
    }

    .mobile-close span {
        letter-spacing: 0;
        color: #87949d;
    }

    .quote-form-mobile {
        display: grid;
        gap: 16px;
    }

    .quote-form-mobile input {
        height: 54px;
        border: 1px solid var(--line);
        border-radius: 6px;
        padding: 0 14px;
        font-size: 20px;
    }

    .quote-form-mobile button {
        height: 42px;
        border: 0;
        border-radius: 5px;
        background: var(--green-soft);
        color: #fff;
        letter-spacing: 5px;
        font-weight: 800;
        transition: background 0.18s ease, opacity 0.18s ease;
    }

    .quote-form-mobile a {
        color: #08760d;
        font-size: 14px;
        margin-top: 18px;
    }

    .form-error {
        color: var(--danger);
        font-weight: 800;
        margin: 0 0 14px;
    }

    .hero-banner {
        margin: 0;
        padding: 0;
    }

    .banner-pc,
    .slider-dots {
        display: none;
    }

    .banner-mobile {
        display: grid;
        width: 100%;
        min-height: 360px;
        background: #070b05;
        font-size: 24px;
    }

    .second-top-strip {
        height: 20px;
    }

    .second-header {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: auto;
        padding: 22px 18px;
        text-align: center;
    }

    .second-header .logo-pc {
        display: block;
        justify-self: start;
    }

    .second-header div.logo-pc {
        display: flex;
        width: 150px;
        height: 52px;
    }

    .second-header img.logo-pc {
        max-width: 150px;
        max-height: 52px;
    }

    .second-header p {
        margin: 4px 0;
        font-size: 22px;
    }

    .second-header nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .second-main {
        padding: 0 18px 64px;
    }

    .wide-banner {
        height: 50px;
        margin-bottom: 40px;
    }

    .invoice-card {
        grid-template-columns: 1fr;
    }

    .invoice-copy,
    .invoice-hint {
        padding: 22px;
        text-align: center;
    }

    .invoice-card form {
        padding: 0 22px 22px;
    }

    .right-logo {
        height: 150px;
    }

    .second-error {
        margin: -22px auto 18px;
    }

    .admin-header,
    .admin-item header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-details,
    .admin-actions,
    .admin-actions.compact {
        grid-template-columns: 1fr;
    }
}
