:root {
    --green: #3cb54a;
    --green-dark: #2e9a3b;
    --orange: #ff8a00;
    --orange-dark: #e67a00;
    --ink: #1f2933;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f7f8fa;
    --white: #fff;
    --admin: #1e293b;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar-bar { background: #0b1220; color: #94a3b8; }
.topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 8px 0; font-size: 13px; border-bottom: 0;
}
.topbar a:hover { color: #fff; }
.topbar .btn-login {
    padding: 6px 16px; font-size: 13px; box-shadow: 0 6px 16px rgba(46,154,59,.28);
    background: linear-gradient(180deg, #3cb54a, #2e9a3b); color: #fff; border-radius: 999px; font-weight: 800;
}
.topbar form { margin: 0; }
.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-help {
    display: inline-flex; align-items: center; gap: 6px; color: #cbd5e1; font-weight: 700;
    padding: 4px 8px; border-radius: 8px; white-space: nowrap;
}
.topbar-help:hover, .topbar-help.is-active { color: #fff; background: rgba(255,255,255,.08); }
.topbar-help .ui-icon { width: 14px; height: 14px; }
.topbar-social a {
    width: 28px; height: 28px; border-radius: 8px; color: #cbd5e1;
    display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12);
}
.topbar-social a:hover { color: #fff; background: #16a34a; border-color: #16a34a; }
.topbar-social .ui-icon { width: 14px; height: 14px; }
.btn-auth-signup {
    color: #fff; font-weight: 800; padding: 6px 4px; letter-spacing: .01em;
}
.btn-auth-signup:hover { color: #86efac; }
.header {
    display: flex; align-items: center; gap: 16px; padding: 10px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo-mark {
    width: 56px; height: 56px; border-radius: 14px; background: var(--green);
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px;
}
.search {
    flex: 1; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff;
}
.search input { border: 0; padding: 12px 16px; flex: 1; outline: none; font: inherit; }
.search button, .btn {
    border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 18px; border-radius: 10px; gap: 8px;
}
.btn-dark { background: #111827; color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-outline-green {
    background: #fff; color: #166534; border: 1.5px solid #22c55e; font-weight: 800;
    box-shadow: 0 6px 16px rgba(34,197,94,.12);
}
.btn-outline-green:hover { background: #f0fdf4; }
.btn-login-head {
    background: linear-gradient(180deg, #3cb54a, #2e9a3b); color: #fff;
    box-shadow: 0 6px 16px rgba(46,154,59,.25); font-weight: 800;
}
.btn-account {
    background: #0b1220; color: #fff; font-weight: 800;
    box-shadow: 0 8px 20px rgba(15,23,42,.18);
}
.btn-account .ui-icon { width: 16px; height: 16px; }
.btn:hover { filter: brightness(0.96); }
.nav { background: var(--green); position: relative; z-index: 40; overflow: visible; }
.nav .wrap { display: flex; gap: 4px; flex-wrap: wrap; overflow: visible; align-items: stretch; }
.nav a, .nav .nav-drop-btn {
    color: #fff; padding: 13px 11px; font-weight: 600; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 7px;
    border: 0; background: transparent; cursor: pointer; font: inherit; border-radius: 0;
}
.nav a:hover, .nav a.active,
.nav .nav-drop-btn:hover, .nav .nav-drop-btn.active,
.nav-drop.is-open .nav-drop-btn { background: var(--green-dark); }
.nav svg, .nav .ui-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }
.nav-drop { position: relative; display: flex; align-items: stretch; flex-shrink: 0; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-btn .ui-icon:last-child { width: 12px; height: 12px; opacity: .85; }
.nav-drop-menu {
    display: none; position: absolute; top: calc(100% - 1px); left: 0; min-width: 260px; z-index: 60;
    background: #fff; border: 1px solid #dbe7dd; border-radius: 14px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .18); padding: 8px;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.is-open .nav-drop-menu { display: grid; gap: 2px; }
.nav-drop-menu--cols {
    left: auto; right: 0; min-width: min(720px, calc(100vw - 24px));
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 4px 8px; padding: 12px;
}
.nav-drop:hover .nav-drop-menu--cols,
.nav-drop:focus-within .nav-drop-menu--cols,
.nav-drop.is-open .nav-drop-menu--cols { display: grid; }
.nav-drop-menu--cols .nav-drop-all {
    grid-column: 1 / -1; margin-bottom: 4px; padding-bottom: 10px;
    border-bottom: 1px solid #e8edf3; border-radius: 8px;
}
.nav-drop-menu a {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
    color: #0f172a !important; background: transparent !important; font-weight: 700; white-space: nowrap;
}
.nav-drop-menu a:hover,
.nav-drop-menu a.active { background: #ecf8ee !important; color: #166534 !important; }
.nav-drop-menu .ui-icon { color: #166534; }
.elevator-type-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 18px;
}
.elevator-type-grid.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.elevator-type-card {
    display: flex; flex-direction: column; gap: 8px; padding: 16px;
    border: 1px solid var(--line); border-radius: 16px; background: #fff; color: inherit; text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.elevator-type-card:hover { border-color: #86efac; box-shadow: 0 10px 24px rgba(22, 101, 52, .08); transform: translateY(-1px); }
.elevator-type-card strong { font-size: 15px; }
.elevator-type-card p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.elevator-type-icon {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: #ecf8ee; color: #166534;
}
.elevator-type-icon .ui-icon { width: 20px; height: 20px; }
.elevator-type-icon.lg { width: 56px; height: 56px; border-radius: 16px; }
.elevator-type-icon.lg .ui-icon { width: 26px; height: 26px; }
.elevator-type-hero { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0 18px; }
.elevator-type-hero .lead { margin: 6px 0 0; color: #475569; font-size: 16px; line-height: 1.5; }
.seo-hero { display: flex; gap: 18px; align-items: flex-start; margin: 8px 0 28px; }
.seo-hero .lead { margin: 8px 0 16px; color: #475569; font-size: 17px; line-height: 1.55; max-width: 720px; }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.seo-main { max-width: none; }
.seo-side .card { position: sticky; top: 16px; }
.seo-side-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.seo-side-list a { color: #166534; font-weight: 700; text-decoration: none; }
.seo-side-list a:hover { text-decoration: underline; }
.seo-bottom-cta { margin-top: 28px; }
.search-results-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; }
.search-inline { min-width: min(100%, 420px); flex: 1; }
.search-results-head p a { color: var(--green-dark); font-weight: 700; }
.btn-all-companies {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), #ff6a00); color: #fff; font-weight: 800; letter-spacing: .2px;
    box-shadow: 0 10px 22px rgba(255, 122, 0, .28); text-decoration: none; white-space: nowrap;
}
.btn-all-companies:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.btn-all-companies svg { width: 18px; height: 18px; }
.company-filter {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end;
    margin-top: 20px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.company-filter label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.company-filter select {
    width: 100%; min-height: 46px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none; -webkit-appearance: none; font: inherit; font-weight: 600; color: var(--ink);
}
.company-filter select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(60, 181, 74, .15); }
.company-filter select:disabled { background-color: #f8fafc; color: var(--muted); }
.company-filter-actions { display: flex; gap: 8px; }
@media (max-width: 640px) {
    .company-filter { grid-template-columns: 1fr 1fr; }
    .company-filter-actions { grid-column: 1 / -1; }
    .company-filter-actions .btn { flex: 1; justify-content: center; }
}
.contact-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.contact-card-head h2 { margin: 0; }
.profile-views {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.profile-views svg { width: 15px; height: 15px; }
.profile-views b { font-weight: 800; }
.search-results-grid { display: block; }
.search-results-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    overflow: visible !important;
    scroll-behavior: auto;
}
.search-results-grid .logo-carousel-btn { display: none; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.plan-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
    text-decoration: none; transition: border-color .15s, background .15s, color .15s;
}
.plan-chip span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: var(--muted); font-size: 12px; text-align: center; }
.plan-chip:hover { border-color: var(--green); }
.plan-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-chip.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.plan-group { margin-top: 28px; }
.plan-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; }
.plan-group-title .badge { margin: 0; font-size: 13px; }
.plan-group-title small { color: var(--muted); font-size: 14px; font-weight: 600; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head-row h2 { margin-bottom: 4px; }
.section-head-row .muted { margin: 0; }
@media (max-width: 720px) {
    .nav-drop-menu { min-width: 220px; left: 0; right: auto; }
    .nav-drop-menu--cols {
        left: 0; right: auto; min-width: min(100vw - 24px, 340px);
        grid-template-columns: 1fr;
    }
    .elevator-type-hero { flex-direction: column; }
    .seo-hero { flex-direction: column; }
    .seo-grid { grid-template-columns: 1fr; }
    .seo-side .card { position: static; }
}
.icon svg, .icon .ui-icon { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.prose { max-width: 760px; }
.prose h1 { margin: 0 0 12px; }
.prose h2 { margin: 28px 0 8px; font-size: 20px; }
.prose p, .prose .rich-content, .prose .rich-content p, .prose .rich-content li { color: var(--muted); }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; }
.hero {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .62), rgba(15, 23, 42, .55)),
        #123;
    color: #fff; padding: 64px 0 56px; text-align: center;
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; line-height: 1.15; }
.hero h1 span { color: var(--orange); }
.hero p, .hero .rich-content { margin: 0 0 24px; color: #e5e7eb; }
.hero .rich-content p { margin: 0 0 8px; color: inherit; }
.hero .rich-content a { color: #86efac; }
.hero-card {
    background: #fff; color: var(--ink); border-radius: 16px; padding: 12px;
    display: flex; gap: 8px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.hero-card input, .hero-card select {
    flex: 1; min-width: 160px; border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; font: inherit;
}
.section { padding: 48px 0; }
.section h2 { margin: 0 0 8px; font-size: 28px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.cards-5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow);
}
.card.selected, .choice.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(60,181,74,.15); }
.choice { cursor: pointer; text-align: center; }
.choice input { display: none; }
.choice:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(60,181,74,.15); }
.stack { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.quote-price { font-size: 28px; color: var(--green); font-weight: 800; }
.table-wrap { overflow: auto; }
.pager { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
.pager a { color: var(--green); font-weight: 700; }
.side .muted { color: #94a3b8; padding: 0 20px 12px; font-size: 13px; }
.icon { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px; background: #ecf8ee; color: var(--green); display: grid; place-items: center; font-weight: 800; }
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.req-card h3 { margin: 0 0 8px; font-size: 16px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-orange { background: #fff4e5; color: var(--orange-dark); }
.badge-green { background: #ecf8ee; color: var(--green-dark); }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.plan-features { margin: 12px 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { padding-left: 18px; position: relative; font-size: 14px; color: #334155; line-height: 1.4; }
.plan-features li:before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 99px; background: var(--green); }
.footer { background: #111827; color: #d1d5db; padding: 36px 0; }
.footer a:hover { color: #fff; }
.footer-grid {
    display: grid; grid-template-columns: 1.1fr .85fr 1fr .95fr .9fr; gap: 24px 28px;
}
.footer-col strong { display: block; color: #fff; margin: 0 0 12px; }
.footer-col p { margin: 0; color: #94a3b8; }
.footer-col a { display: block; margin: 0 0 8px; color: #cbd5e1; }
.footer-contact { margin-top: 12px; color: #94a3b8; line-height: 1.6; }
.form-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
    width: 100%; min-width: 0; max-width: 100%;
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 10px;
    cursor: pointer; background: #fff;
}
.pills input {
    appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0;
    flex: 0 0 18px; border: 2px solid #cbd5e1; border-radius: 5px; background: #fff;
    display: grid; place-content: center;
}
.pills input:checked { background: var(--green); border-color: var(--green); }
.pills input:checked::after {
    content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0;
    transform: rotate(-45deg) translate(1px, -1px);
}
.pills label:has(input:checked) { background: #ecf8ee; border-color: var(--green); color: var(--green-dark); font-weight: 700; }
.steps { display: flex; gap: 8px; justify-content: center; margin: 0 0 28px; flex-wrap: wrap; }
.steps span { font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: #f3f4f6; }
.steps span.on { background: var(--green); color: #fff; }
.alert { background: #ecf8ee; color: var(--green-dark); padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.errors { color: #b91c1c; font-size: 13px; }
.page { background: var(--bg); min-height: 70vh; padding: 32px 0 56px; }
.pipeline { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.pipeline li { list-style: none; font-size: 13px; padding: 8px 10px; border-radius: 999px; background: #f3f4f6; color: var(--muted); }
.pipeline li.done { background: #ecf8ee; color: var(--green-dark); }
.pipeline li.current { background: var(--green); color: #fff; }
.admin-shell, .panel-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--admin); color: #cbd5e1; padding: 20px 0; }
.side a { display: block; padding: 10px 20px; }
.side a:hover, .side a.active { background: #334155; color: #fff; border-left: 3px solid var(--green); }
.side .brand { color: #fff; font-weight: 800; padding: 0 20px 20px; font-size: 18px; }
.side .brand span { color: var(--green); }
.admin-body { display: flex; flex-direction: column; min-width: 0; }
.admin-top {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background: #fff; padding: 12px 24px; border-bottom: 1px solid var(--line);
}
.admin-search { display: flex; flex: 1; max-width: 520px; gap: 8px; }
.admin-search input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.admin-user { text-align: right; }
.admin-user strong { display: block; }
.main { background: var(--bg); padding: 24px; flex: 1; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; padding: 16px; border-radius: 12px; border: 1px solid var(--line); }
.kpi b { display: block; font-size: 22px; margin-top: 4px; }
.admin-grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.filter-bar input, .filter-bar select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.bar-chart { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 36px; gap: 8px; align-items: center; font-size: 13px; }
.bar-row .bar { display: block; height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.match-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-body h1 { margin: 0 0 8px; }
.stack select, .stack input, .credits-form input, .credits-form select {
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit;
}
.site-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text span { font-size: 11px; font-weight: 600; color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar-links { display: flex; align-items: center; gap: 12px; }
.company-logo-card {
    display: flex; flex-direction: column; gap: 10px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow); min-height: 220px;
}
.company-logo-card img {
    width: 112px; height: 112px; object-fit: contain; background: #f8fafc;
    border: 1px solid var(--line); border-radius: 18px; padding: 10px;
}
.company-logo-card strong { font-size: 16px; }
.logo-carousel { position: relative; margin-top: 20px; }
.logo-carousel-track {
    display: flex; gap: 16px; overflow: hidden; scroll-behavior: smooth;
}
.logo-carousel-track .company-logo-card {
    flex: 0 0 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
}
.logo-carousel-btn {
    position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px;
    transform: translateY(-50%); border: 0; border-radius: 999px;
    background: #334155; color: #fff; cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 8px 20px rgba(15, 23, 42, .2);
}
.logo-carousel-btn.prev { left: -16px; }
.logo-carousel-btn.next { right: -16px; }
.logo-carousel-btn[hidden] { display: none; }
.logo-carousel-btn .ui-icon { width: 18px; height: 18px; }
.auth-hero {
    background: linear-gradient(180deg, #f4fbf6 0%, #fff 48%, #fff);
    padding: 48px 0 72px; min-height: 70vh;
}
.auth-layout {
    display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 36px; align-items: center;
}
.auth-layout.wide { grid-template-columns: .9fr minmax(360px, 640px); align-items: start; }
.auth-kicker {
    display: inline-block; background: #ecfdf3; color: #166534; font-weight: 800;
    font-size: 12px; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.auth-copy h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; }
.auth-copy p { color: var(--muted); font-size: 16px; }
.auth-card {
    background: #fff; border: 1px solid #e8edf3; border-radius: 22px; padding: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}
.auth-card h2 { margin: 0 0 6px; }
.auth-card a { color: var(--green); font-weight: 700; }
.auth-submit { width: 100%; border-radius: 12px; padding: 13px 18px; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.firm-join { padding: 28px 0 72px; background: linear-gradient(180deg, #f4fbf6 0%, #eef2f7 42%, #eef2f7 100%); }
.firm-join-hero {
    display: grid; grid-template-columns: 1.15fr auto; gap: 28px; align-items: center;
    background: linear-gradient(135deg, #f7fff9 0%, #fff 46%, #f5f7fb 100%);
    border: 1px solid #e8edf3; border-radius: 22px; padding: 28px 30px 28px 32px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06); position: relative; overflow: hidden;
}
.firm-join-hero:before {
    content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px;
    border-radius: 99px; background: linear-gradient(#4ade80, #16a34a);
}
.firm-join-kicker {
    margin: 0 0 8px; color: #16a34a; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}
.firm-join-hero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; }
.firm-join-hero p { margin: 8px 0 0; color: #64748b; max-width: 560px; }
.firm-join-steps { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 10px; }
.firm-join-steps div {
    background: rgba(255,255,255,.9); border: 1px solid #e8edf3; border-radius: 16px;
    padding: 12px 14px; min-width: 140px;
}
.firm-join-steps span {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
    background: #ecfdf3; color: #166534; font-weight: 800; font-size: 13px; margin-bottom: 8px;
}
.firm-join-steps strong { display: block; font-size: 14px; }
.firm-join-steps small { display: block; color: #64748b; margin-top: 2px; font-size: 12px; }
.firm-join-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.firm-join-card {
    background: linear-gradient(180deg, #fff, #fbfcfe); border: 1px solid #e8edf3;
    border-radius: 18px; padding: 0 18px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.firm-join-card h2 {
    margin: 0 -18px 8px; padding: 13px 18px;
    background: linear-gradient(180deg, #1e293b, #0f172a); color: #fff;
    border-radius: 18px 18px 0 0; font-size: 15px;
}
.firm-join-card > .muted { margin: 0 0 16px; }
.firm-join-card .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.firm-join-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e8edf3; border-radius: 18px; padding: 14px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.firm-join-foot p { margin: 0; color: #64748b; }
.firm-join-foot a { color: var(--green); font-weight: 700; }
.firm-join-foot .btn { min-width: 220px; }
.vitrin-band { background: #0b1220; color: #fff; }
.vitrin-band .muted { color: #94a3b8; }
.vitrin-band h2 { color: #fff; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.req-visual {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.req-visual:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.1); }
.req-visual-photo {
    height: 150px; background: #dbe7e0 center/cover no-repeat; position: relative;
}
.req-visual-photo .badge { position: absolute; left: 10px; top: 10px; }
.req-visual-body { padding: 14px 16px 16px; }
.req-visual-body h3 { margin: 0 0 4px; font-size: 16px; }
.req-visual-body p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.req-visual-meta { color: var(--green); font-size: 13px; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) 340px; gap: 20px; }
.listing-hero {
    min-height: 280px; border-radius: 18px; background: #123 center/cover no-repeat;
    position: relative; overflow: hidden;
}
.listing-hero-inner {
    position: absolute; inset: auto 0 0; padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff;
}
.listing-hero-inner h1 { margin: 8px 0 4px; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-row img { height: 100px; width: 100%; object-fit: cover; border-radius: 10px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.meta-grid span { display: block; color: var(--muted); font-size: 12px; }
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-list span { color: var(--muted); }
.contact-map {
    width: 100%; max-width: 100%;
    margin: 16px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e8eef4;
    aspect-ratio: 16 / 9;
    min-height: 280px;
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}
.contact-map.firm-map { min-height: 200px; aspect-ratio: 4 / 3; margin-top: 14px; }
.contact-map.firm-map iframe { min-height: 200px; }
.meta-grid strong.is-empty { color: #94a3b8; font-weight: 600; }
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.region-chips span {
    background: #f3f4f6; color: #334155; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px;
}
.region-chips .is-empty { background: transparent; color: #94a3b8; }
.region-chips .is-city { background: #ecf8ee; color: #166534; }
.region-grid {
    max-height: 240px; overflow: auto;
    border: 1px solid var(--line); border-radius: 12px; padding: 10px;
    background: #f8fafc;
}
.district-city-group { margin-top: 10px; }
.district-city-group:first-child { margin-top: 0; }
.district-city-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 8px;
}
.district-city-head strong { font-size: 14px; color: #0f172a; }
.district-select-all {
    border: 0; background: none; padding: 0; cursor: pointer;
    color: #047857; font: inherit; font-weight: 700; font-size: 13px;
}
.district-grid { max-height: 280px; }
.field input.is-editable, .field textarea.is-editable { background: #f3f4f6; }
.work-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px;
}
.work-gallery button {
    position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
    background: none; cursor: zoom-in;
}
.work-gallery button::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .45)); opacity: 0; transition: opacity .2s;
}
.work-gallery button:hover::after, .work-gallery button:focus-visible::after { opacity: 1; }
.work-gallery button img { transition: transform .35s ease; }
.work-gallery button:hover img { transform: scale(1.05); }
body.lightbox-open { overflow: hidden; }
.lightbox {
    position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-rows: auto 1fr auto;
    background: rgba(8, 12, 22, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-count { font-style: normal; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: #fff; }
.lightbox-title { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.lightbox-title img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; }
.lightbox-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-count { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lightbox-close, .lightbox-nav {
    display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
    background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .15s, transform .15s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px; touch-action: pan-y; }
.lightbox-stage img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    transform: scale(.96); opacity: 0; transition: transform .3s ease, opacity .3s ease; user-select: none; -webkit-user-drag: none;
}
.lightbox.is-open .lightbox-stage img.is-ready { transform: none; opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.lightbox-thumbs { display: flex; gap: 8px; justify-content: center; padding: 14px 16px 18px; overflow-x: auto; scrollbar-width: none; }
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumbs button {
    flex: 0 0 auto; width: 58px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden;
    background: none; opacity: .5; cursor: pointer; transition: opacity .15s, border-color .15s;
}
.lightbox-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumbs button.is-active { opacity: 1; border-color: var(--orange); }
@media (max-width: 640px) {
    .lightbox-stage { padding: 0 10px; }
    .lightbox-nav { width: 38px; height: 38px; background: rgba(0, 0, 0, .45); }
    .lightbox-nav.prev { left: 16px; }
    .lightbox-nav.next { right: 16px; }
}
.work-gallery img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 12px; background: #e2e8f0; }
.work-photo-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.work-photo-edit-item { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #475569; }
.work-photo-edit-item img { width: 100%; height: 88px; object-fit: cover; border-radius: 10px; }
.premium-box {
    border: 1px solid #a7f3d0; background: #f0fdf4; border-radius: 16px; padding: 16px;
}
.premium-box-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.premium-box-head strong { color: #047857; }
.premium-box-head span { color: #64748b; font-size: 13px; }
.premium-box.is-locked { background: #f8fafc; border-color: #e2e8f0; }
.blink-cta {
    animation: blink-cta 1.15s ease-in-out infinite;
    background: #fff4e5; color: #c2410c; font-weight: 800; font-size: 14px;
    padding: 12px 14px; border-radius: 10px; border: 2px solid #ff8a00; margin-bottom: 12px;
}
@keyframes blink-cta {
    0%, 100% { opacity: 1; }
    50% { opacity: .28; }
}
.vitrin-cover {
    min-height: 240px; border-radius: 18px; background: #1f3d32 center/cover no-repeat;
    position: relative;
}
.vitrin-logo {
    position: absolute; left: 20px; bottom: -28px; width: 88px; height: 88px;
    border-radius: 16px; background: #fff; object-fit: contain; padding: 8px;
    box-shadow: var(--shadow);
}
.vitrin-verified {
    position: absolute; right: 16px; bottom: 16px; background: #ecf8ee; color: var(--green-dark);
    font-weight: 800; font-size: 13px; padding: 8px 12px; border-radius: 10px;
}
.account-overlay {
    position: fixed; inset: 0; background: rgba(11,18,32,.55); z-index: 80;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.account-overlay.is-open, body.account-open .account-overlay { display: flex; }
body.account-open { overflow: hidden; }
.account-modal {
    width: min(980px, 100%); max-height: min(86vh, 760px); background: #fff;
    border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 250px 1fr;
    box-shadow: 0 30px 80px rgba(15,23,42,.28);
}
.account-side {
    background: #0b1220; color: #cbd5e1; padding: 22px 16px; display: flex; flex-direction: column; gap: 16px;
}
.account-side-brand { display: flex; gap: 10px; align-items: center; color: #fff; }
.account-avatar {
    width: 42px; height: 42px; border-radius: 12px; background: #22c55e; color: #fff;
    display: grid; place-items: center; font-weight: 800;
}
.account-side-brand small { display: block; color: #86efac; font-size: 12px; }
.account-tabs { display: flex; flex-direction: column; gap: 4px; }
.account-tabs button {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
    background: transparent; border: 0; color: #cbd5e1; font: inherit; font-weight: 700;
    padding: 10px 12px; border-radius: 12px; cursor: pointer;
}
.account-tabs button.on, .account-tabs button:hover { background: #22c55e; color: #fff; }
.account-tabs .ui-icon { width: 16px; height: 16px; }
.account-side-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.account-side-actions .btn { width: 100%; }
.account-main { padding: 22px 24px 24px; overflow: auto; background: linear-gradient(#f8fafc, #fff 40%); }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.account-kicker {
    margin: 0 0 4px; font-size: 12px; font-weight: 800; color: #16a34a; letter-spacing: .04em; text-transform: uppercase;
}
.account-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.account-close {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
    display: grid; place-items: center;
}
.account-pane { display: none; }
.account-pane.on { display: block; }
.account-pane-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.account-pane-title h3 { margin: 0; }
.account-pane-title a { color: var(--green); font-weight: 700; font-size: 13px; }
.account-list { display: flex; flex-direction: column; gap: 8px; }
.account-item {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.account-item small, .account-item em { display: block; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.account-item:hover { border-color: #86efac; }
.auth-overlay {
    position: fixed; inset: 0; background: rgba(11,18,32,.58); z-index: 90;
    display: none; align-items: center; justify-content: center; padding: 18px;
}
.auth-overlay.is-open, body.auth-open .auth-overlay { display: flex; }
body.auth-open { overflow: hidden; }
.auth-popup {
    position: relative; width: min(440px, 100%); max-width: 100%; max-height: min(92vh, 860px);
    background: #fff; border-radius: 24px; overflow-x: hidden; overflow-y: auto;
    box-shadow: 0 32px 80px rgba(15,23,42,.32);
}
.auth-overlay[data-tab="company"] .auth-popup { width: min(640px, 100%); }
.auth-overlay[data-tab="company"] .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-popup-pane .form-grid .field { margin-top: 0; }
.auth-popup-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; display: grid; place-items: center;
}
.auth-popup-pane { display: none; padding: 28px 26px 26px; }
.auth-popup-pane.on { display: block; }
.auth-popup-pane h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.auth-popup-pane .field { margin-top: 12px; }
.auth-popup-pane .auth-submit { margin-top: 16px; width: 100%; }
.auth-popup-pane .muted { margin: 0 0 4px; }
.auth-check { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.auth-popup-note { margin-top: 14px; }
.auth-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.auth-alt .btn { width: 100%; }
.quote-auth-overlay {
    position: fixed; inset: 0; background: rgba(11,18,32,.62); z-index: 95;
    display: none; align-items: center; justify-content: center; padding: 18px;
}
.quote-auth-overlay.is-open, body.quote-auth-open .quote-auth-overlay { display: flex; }
body.quote-auth-open { overflow: hidden; }
.quote-auth-popup {
    position: relative; width: min(440px, 100%); max-width: 100%;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 42%);
    border: 1px solid #bbf7d0; border-radius: 24px; padding: 32px 26px 26px;
    box-shadow: 0 32px 80px rgba(15,23,42,.32); text-align: center;
}
.quote-auth-mark {
    width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px;
    background: linear-gradient(180deg, #22c55e, #15803d); color: #fff;
    display: grid; place-items: center; box-shadow: 0 12px 24px rgba(22,163,74,.28);
}
.quote-auth-mark .ui-icon { width: 28px; height: 28px; }
.quote-auth-popup h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.03em; }
.quote-auth-popup .muted { margin: 0 auto 4px; max-width: 34ch; }
.quote-auth-submit { width: 100%; margin-top: 18px; padding: 14px 18px; font-size: 16px; }
.text-link {
    border: 0; background: none; color: var(--green); font: inherit; font-weight: 800; cursor: pointer; padding: 0;
}
.menu-toggle { display: none; }
.errors { color: #b91c1c; font-size: 13px; margin: 8px 0 0; }
ul.errors { padding-left: 18px; }
@media (max-width: 900px) {
    .wrap { width: min(1160px, calc(100% - 20px)); }
    .topbar { flex-wrap: wrap; gap: 8px; }
    .header { flex-wrap: wrap; gap: 10px; }
    .search { order: 3; width: 100%; flex: 1 1 100%; }
    .header-actions { margin-left: auto; flex-wrap: nowrap; }
    .header-actions .btn-outline-green,
    .header-actions .btn-orange { display: none; }
    .menu-toggle {
        display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink);
        border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
    }
    .menu-toggle .ui-icon { width: 20px; height: 20px; }
    .hero { padding: 36px 0 32px; }
    .hero-card { flex-direction: column; }
    .hero-card input, .hero-card select, .hero-card .btn { width: 100%; min-width: 0; }
    .section { padding: 32px 0; }
    .form-grid, .admin-grid-2, .listing-layout, .auth-layout, .auth-layout.wide, .account-modal, .firm-join-hero, .firm-join-card .form-grid { grid-template-columns: 1fr; }
    .firm-join-steps { grid-template-columns: 1fr; }
    .cards-5, .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logo-carousel-track .company-logo-card { flex-basis: calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
    .auth-overlay { align-items: flex-end; padding: 0; }
    .auth-popup, .auth-overlay[data-tab="company"] .auth-popup {
        width: 100%; border-radius: 20px 20px 0 0; max-height: 94vh;
    }
    .quote-auth-overlay { align-items: flex-end; padding: 0; }
    .quote-auth-popup { width: 100%; border-radius: 20px 20px 0 0; }
    .auth-overlay[data-tab="company"] .form-grid { grid-template-columns: 1fr; }
    .account-overlay { align-items: flex-end; padding: 0; }
    .account-modal {
        width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0;
        grid-template-columns: 1fr;
    }
    .account-side { flex-direction: row; overflow: auto; gap: 10px; padding: 14px; }
    .account-tabs { flex-direction: row; overflow: auto; }
    .account-tabs button { white-space: nowrap; }
    .account-side-actions { margin: 0; min-width: 180px; }
    .auth-alt { grid-template-columns: 1fr; }
    input, select, textarea, .btn { font-size: 16px; }
}
@media (max-width: 560px) {
    .cards-5, .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }
    .topbar-social { display: none; }
    .topbar-right { gap: 8px; }
    .topbar-help { font-size: 12px; padding: 4px 6px; }
    .header-actions .btn { font-size: 13px; padding: 10px 12px; }
    .header .logo .brand-logo-img { height: 56px; max-width: 220px; }
    .footer-grid { grid-template-columns: 1fr; }
    .logo-carousel-track .company-logo-card { flex-basis: 100%; max-width: 100%; }
    .logo-carousel-btn.prev { left: 6px; }
    .logo-carousel-btn.next { right: 6px; }
}
.brand-logo-img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.header .logo .brand-logo-img { height: 72px; max-width: 320px; }
.footer a { color: #cbd5e1; }
.wide-form, .settings-form, .req-form { width: 100%; max-width: none; }
.wide-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.file-drop {
    position: relative; min-height: 132px; border: 1.5px dashed #cbd5e1;
    border-radius: 16px; background: #f8fafc; overflow: hidden;
    display: flex; flex-direction: column;
}
.file-drop.is-drag { border-color: #16a34a; background: #f0fdf4; }
.file-drop-input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 2;
}
.field input.file-drop-input {
    border: 0; padding: 0; border-radius: 0; background: transparent; min-height: 100%;
}
.file-drop-preview { display: none; }
.file-drop.has-file .file-drop-preview {
    display: grid; grid-template-columns: 1fr; flex: 1; min-height: 148px;
    background: #0f172a;
}
.file-drop.is-multi.has-file .file-drop-preview {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 10px;
    background: #f8fafc;
}
.file-drop-preview img, .file-drop-preview video {
    width: 100%; height: 148px; object-fit: cover; display: block; background: #0f172a;
}
.file-drop.is-multi.has-file .file-drop-preview img,
.file-drop.is-multi.has-file .file-drop-preview video { height: 110px; border-radius: 10px; }
.file-drop[data-fit="contain"].has-file .file-drop-preview img {
    object-fit: contain; background: #fff; padding: 10px;
}
.file-drop-logo { min-height: 200px; }
.file-drop-logo.has-file .file-drop-preview img { height: 200px; }
.file-drop-banner { min-height: 200px; }
.file-drop-banner.has-file .file-drop-preview img { height: 200px; }
.file-drop-file {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; min-height: 148px; padding: 16px; background: #fff; color: #0f172a; text-align: center;
}
.file-drop-file b {
    background: #dc2626; color: #fff; border-radius: 8px; padding: 4px 8px; font-size: 11px; letter-spacing: .04em;
}
.file-drop-file span { font-weight: 700; font-size: 13px; word-break: break-all; }
.file-drop-ui {
    padding: 18px 16px; display: flex; flex-direction: column; gap: 4px;
    pointer-events: none; min-height: 132px; justify-content: center; z-index: 1;
}
.file-drop.has-file .file-drop-ui {
    position: absolute; left: 0; right: 0; bottom: 0; min-height: 0;
    padding: 36px 14px 12px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .82));
}
.file-drop-ui strong { font-size: 14px; }
.file-drop-ui span, .file-drop-names { color: #64748b; font-size: 13px; }
.file-drop.has-file .file-drop-ui strong { color: #fff; }
.file-drop.has-file .file-drop-ui span,
.file-drop.has-file .file-drop-names { color: #e2e8f0; }
.media-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.media-row img, .media-row video {
    width: 100%; height: 110px; object-fit: cover; border-radius: 10px; background: #0f172a;
}
.media-file {
    display: flex; align-items: center; justify-content: center; min-height: 110px;
    padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff;
    font-weight: 700; text-align: center; font-size: 13px;
}
@media (max-width: 1200px) {
    .wide-form .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .wide-form .form-grid { grid-template-columns: 1fr; }
}
.pwa-overlay {
    position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
    padding: 18px; background: rgba(9, 14, 26, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pwa-overlay.is-open { display: flex; animation: pwaFade .25s ease both; }
.pwa-overlay.is-closing { animation: pwaFadeOut .26s ease both; }
.pwa-overlay.is-open .pwa-sheet { animation: pwaPop .42s cubic-bezier(.2, .9, .25, 1.15) both; }
.pwa-overlay.is-closing .pwa-sheet { animation: pwaDrop .26s ease both; }
body.pwa-open { overflow: hidden; }
.pwa-sheet {
    position: relative; width: min(400px, 100%); overflow-x: hidden; overflow-y: auto; background: #fff; border-radius: 28px;
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain;
    box-shadow: 0 40px 100px rgba(9, 14, 26, .38), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}
.pwa-hero {
    position: relative; overflow: hidden; padding: 34px 24px 22px; text-align: center;
    background: linear-gradient(145deg, #1f2933 0%, #111827 55%, #0b1220 100%);
}
.pwa-orb { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .55; pointer-events: none; }
.pwa-orb-a { width: 190px; height: 190px; left: -50px; top: -70px; background: var(--orange); }
.pwa-orb-b { width: 170px; height: 170px; right: -50px; bottom: -80px; background: var(--green); }
.pwa-app-icon {
    position: relative; width: 96px; height: 96px; margin: 0 auto; border-radius: 26px; padding: 3px;
    background: linear-gradient(135deg, #ffb347, var(--orange) 45%, var(--green));
    box-shadow: 0 18px 40px rgba(255, 138, 0, .35), 0 0 0 6px rgba(255, 255, 255, .06);
    animation: pwaFloat 3.2s ease-in-out infinite;
}
.pwa-app-icon img { display: block; width: 100%; height: 100%; border-radius: 23px; background: #fff; }
.pwa-app-icon::after {
    content: ""; position: absolute; inset: 3px; border-radius: 23px; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    background-size: 250% 100%; animation: pwaShine 3.6s ease-in-out infinite;
}
.pwa-badge {
    position: relative; display: inline-flex; margin-top: 16px; padding: 6px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.pwa-body { padding: 22px 24px 24px; }
.pwa-body h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.03em; text-align: center; color: var(--ink); }
.pwa-lead { margin: 0 auto; max-width: 34ch; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pwa-features, .pwa-steps { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pwa-features li {
    display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink);
    padding: 10px 12px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef2f7;
}
.pwa-features li span {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, #4ade80, var(--green-dark));
}
.pwa-features li .ui-icon { width: 14px; height: 14px; stroke-width: 3; }
.pwa-steps { display: none; counter-reset: pwa-step; }
.pwa-steps li {
    position: relative; padding: 11px 12px 11px 48px; border-radius: 14px; font-size: 14px; line-height: 1.5;
    color: var(--ink); background: #fff7ed; border: 1px solid #fed7aa; counter-increment: pwa-step;
}
.pwa-steps li::before {
    content: counter(pwa-step); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ffad42, var(--orange-dark));
}
.pwa-share-ico {
    width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: #0a84ff; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.pwa-overlay[data-guide="1"] .pwa-features { display: none; }
.pwa-overlay[data-guide="1"][data-mode="ios"] .pwa-steps[data-pwa-steps="ios"],
.pwa-overlay[data-guide="1"][data-mode="android"] .pwa-steps[data-pwa-steps="android"] { display: grid; }
.pwa-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 20px; }
.pwa-btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 12px 16px; border-radius: 16px; cursor: pointer;
    font: inherit; font-size: 16px; font-weight: 800; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pwa-btn:active { transform: scale(.97); }
.pwa-btn .ui-icon { width: 20px; height: 20px; }
.pwa-btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--muted); }
.pwa-btn-ghost:hover { background: #f8fafc; color: var(--ink); }
.pwa-btn-primary {
    border: 0; color: #fff; background: linear-gradient(135deg, #ffa733 0%, var(--orange) 50%, #ff6a00 100%);
    box-shadow: 0 16px 30px rgba(255, 122, 0, .35);
}
.pwa-btn-primary:hover { box-shadow: 0 18px 36px rgba(255, 122, 0, .45); }
.pwa-btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    animation: pwaSweep 2.8s ease-in-out infinite;
}
@keyframes pwaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pwaFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes pwaPop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pwaDrop { to { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes pwaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pwaShine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
@keyframes pwaSweep { 0%, 50% { left: -60%; } 100% { left: 130%; } }
@media (max-width: 560px) {
    .pwa-overlay { align-items: flex-end; padding: 0; }
    .pwa-sheet {
        width: 100%; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom);
        max-height: 94vh; max-height: 94dvh;
    }
    .pwa-overlay.is-open .pwa-sheet { animation: pwaSlideUp .42s cubic-bezier(.2, .9, .25, 1) both; }
    .pwa-overlay.is-closing .pwa-sheet { animation: pwaSlideDown .26s ease both; }
    .pwa-sheet::before {
        content: ""; position: absolute; top: 8px; left: 50%; z-index: 2; width: 42px; height: 5px;
        border-radius: 999px; transform: translateX(-50%); background: rgba(255, 255, 255, .35);
    }
}
@media (max-height: 720px) {
    .pwa-hero { padding: 22px 20px 16px; }
    .pwa-app-icon { width: 76px; height: 76px; border-radius: 22px; }
    .pwa-app-icon img, .pwa-app-icon::after { border-radius: 19px; }
    .pwa-badge { margin-top: 12px; }
    .pwa-body { padding: 16px 20px 18px; }
    .pwa-body h2 { font-size: 21px; }
    .pwa-features, .pwa-steps { margin-top: 12px; gap: 8px; }
    .pwa-features li { padding: 8px 10px; }
    .pwa-actions { margin-top: 14px; }
    .pwa-btn { min-height: 48px; }
}
@keyframes pwaSlideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pwaSlideDown { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
    .pwa-overlay, .pwa-sheet, .pwa-app-icon, .pwa-app-icon::after, .pwa-btn-primary::after { animation: none !important; }
}
.nav-backdrop, .nav-mobile-head, .nav-mobile-cta, .nav-mobile-foot, .tabbar { display: none; }
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 900px) {
    body { overflow-x: clip; }
    body { -webkit-tap-highlight-color: transparent; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .topbar-bar { display: none; }
    .site-head { padding-top: env(safe-area-inset-top); box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
    .header { padding: 8px 0 10px; gap: 8px; }
    .header .logo .brand-logo-img { height: 46px; max-width: 190px; }
    .header-actions .btn-login-head, .header-actions .btn-account { display: none; }
    .search input { padding: 11px 14px; min-width: 0; }
    .search .btn { padding: 10px 16px; border-radius: 0 999px 999px 0; }

    .nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 105; background: rgba(9, 14, 26, .5);
        opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
        backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    }
    body.menu-open { overflow: hidden; }
    body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }
    .nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(86vw, 340px);
        background: #fff; overflow-y: auto; overscroll-behavior: contain;
        transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
        box-shadow: -24px 0 60px rgba(9, 14, 26, .25); border-radius: 22px 0 0 22px;
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    }
    body.menu-open .nav { transform: none; }
    .nav .wrap { width: 100%; flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 0 12px 18px; }
    .nav-mobile-head {
        display: flex; align-items: center; justify-content: space-between;
        position: sticky; top: 0; z-index: 2; margin: 0 -12px 6px; padding: 14px 16px 12px 18px;
        background: #fff; border-bottom: 1px solid var(--line);
    }
    .nav-mobile-head strong { font-size: 18px; letter-spacing: -.02em; }
    .nav .nav-close {
        width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px;
        border: 1px solid var(--line); background: #fff; color: var(--ink);
    }
    .nav .nav-close .ui-icon { width: 18px; height: 18px; }
    .nav-mobile-cta { display: grid; gap: 8px; margin: 6px 0 10px; }
    .nav .nav-mobile-cta .btn { justify-content: center; width: 100%; padding: 13px 16px; border-radius: 14px; }
    .nav .nav-mobile-cta .btn-orange { color: #fff; background: linear-gradient(135deg, #ffa733, var(--orange) 55%, #ff6a00); box-shadow: 0 10px 22px rgba(255, 122, 0, .28); }
    .nav .nav-mobile-cta .btn-outline-green { color: #166534; background: #fff; border: 1.5px solid #22c55e; }
    .nav a, .nav .nav-drop-btn {
        width: 100%; color: var(--ink); padding: 13px 14px; border-radius: 12px; font-weight: 700; white-space: normal;
    }
    .nav a:hover, .nav a.active,
    .nav .nav-drop-btn:hover, .nav .nav-drop-btn.active,
    .nav-drop.is-open .nav-drop-btn { background: #ecf8ee; color: #166534; }
    .nav a .ui-icon, .nav .nav-drop-btn .ui-icon { color: var(--green-dark); width: 18px; height: 18px; }
    .nav .nav-mobile-cta .btn .ui-icon { color: currentColor; }
    .nav-drop { flex-direction: column; width: 100%; }
    .nav-drop-btn .ui-icon:last-child { margin-left: auto; transition: transform .2s ease; }
    .nav-drop.is-open .nav-drop-btn .ui-icon:last-child { transform: rotate(180deg); }
    .nav-drop:hover .nav-drop-menu,
    .nav-drop:focus-within .nav-drop-menu,
    .nav-drop:hover .nav-drop-menu--cols,
    .nav-drop:focus-within .nav-drop-menu--cols { display: none; }
    .nav-drop-menu, .nav-drop-menu--cols {
        position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; border-radius: 0;
        padding: 4px 0 6px 14px; margin: 0; grid-template-columns: 1fr; background: transparent;
    }
    .nav-drop.is-open .nav-drop-menu, .nav-drop.is-open .nav-drop-menu--cols { display: grid; gap: 2px; }
    .nav-drop-menu a { white-space: normal; font-weight: 600; padding: 11px 12px; border-left: 2px solid #dcfce7; border-radius: 0 10px 10px 0; }
    .nav-drop-menu--cols .nav-drop-all { margin: 0; padding-bottom: 11px; border-bottom: 0; }
    .nav-mobile-foot { display: grid; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
    .nav-mobile-contact { padding: 10px 14px 0; color: var(--muted); font-size: 13px; line-height: 1.7; word-break: break-word; }
    .nav .nav-mobile-contact a { display: inline; width: auto; padding: 0; color: var(--green-dark); background: none; font-weight: 700; }

    .tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, .08);
        backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    }
    .tabbar a, .tabbar button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 52px; padding: 4px 2px; border: 0; background: none; cursor: pointer;
        font: inherit; font-size: 11px; font-weight: 700; color: #64748b; border-radius: 12px;
    }
    .tabbar .ui-icon { width: 22px; height: 22px; }
    .tabbar a.active, .tabbar button:active, .tabbar a:active { color: var(--green-dark); }
    .tabbar a.active:not(.tabbar-cta) .ui-icon { stroke-width: 2.4; }
    .tabbar .tabbar-cta { color: var(--ink); }
    .tabbar-cta-ico {
        display: grid; place-items: center; width: 50px; height: 50px; margin-top: -24px; border-radius: 18px;
        color: #fff; background: linear-gradient(135deg, #ffa733, var(--orange) 55%, #ff6a00);
        box-shadow: 0 10px 22px rgba(255, 122, 0, .38), 0 0 0 5px #fff;
    }
    .tabbar-cta-ico .ui-icon { width: 24px; height: 24px; stroke-width: 2.6; }
    .tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    body.menu-open .tabbar, body.auth-open .tabbar, body.quote-auth-open .tabbar, body.account-open .tabbar, body.pwa-open .tabbar, body.lightbox-open .tabbar { visibility: hidden; }

    .footer { padding-bottom: 12px; }
    .contact-map, .contact-map.firm-map { aspect-ratio: auto; height: 260px; min-height: 0; }
    .contact-map iframe, .contact-map.firm-map iframe { min-height: 0; }
    table { max-width: 100%; }
    .table-wrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    iframe, video { max-width: 100%; }
}
@media (max-width: 380px) {
    .header .logo .brand-logo-img { height: 40px; max-width: 160px; }
    .tabbar a, .tabbar button { font-size: 10px; }
}
@media (display-mode: standalone) {
    .topbar-bar { display: none; }
    body { overscroll-behavior-y: none; }
}

