:root {
    color-scheme: light;
    --navy: #102a43;
    --deep: #0b2137;
    --blue: #294e71;
    --ink: #152c43;
    --muted: #52677b;
    --line: #d9e3ec;
    --background: #f4f7fb;
    --ice: #eaf1f8;
    --orange: #ff915b;
    --orange-hover: #ffab80;
    --white: #fff;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--background);
    font-size: 16px;
    line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { line-height: 1.17; font-weight: 750; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 4.1vw, 3rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.14rem; }
:focus-visible { outline: 3px solid #3c77b0; outline-offset: 3px; }
.icon { width: 1.18em; height: 1.18em; flex: 0 0 auto; vertical-align: middle; }
.wrap { width: min(1180px, 100% - 64px); margin-inline: auto; }
.main { flex: 1; padding-top: 28px; padding-bottom: 60px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 4; background: white; padding: 10px; }
.site-header { background: var(--deep); color: white; }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.15; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 39px; background: #1d3c58; border: 1px solid #3b5770; border-radius: 9px; color: #fff; font-size: 21px; }
.brand strong { display: block; font-size: 1.06rem; font-weight: 780; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: #b4c8db; font-size: .78rem; }
.header-inner nav { display: flex; align-items: center; gap: 27px; }
.header-inner nav > a:not(.button) { color: #c2d2e2; font-weight: 660; text-decoration: none; font-size: .92rem; }
.header-inner nav > a.current, .header-inner nav > a:not(.button):hover { color: var(--white); }
.market-nav { min-height: 76px; display: grid; place-items: center; position: relative; }
.market-nav.current::after { content: ""; position: absolute; height: 3px; border-radius: 3px 3px 0 0; bottom: 0; inset-inline: 3px; background: var(--orange); }
.nav-account { display: inline-flex; gap: 7px; align-items: center; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 8px 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; font-size: .9rem; line-height: 1.25; text-decoration: none; white-space: normal; text-align: center; }
.primary { background: var(--orange); color: #13263a; }
.primary:hover { background: var(--orange-hover); }
.dark { background: var(--navy); color: white; }
.dark:hover { background: #204766; }
.light { background: white; border-color: var(--line); color: var(--navy); }
.light:hover { background: var(--ice); }
.whatsapp { background: #16623d; color: white; }
.whatsapp:hover { background: #104b2e; }

.hero { background: linear-gradient(90deg, #0a2036aa 0%, #0a203631 56%, transparent 80%), #122c46 url("alpen.webp") center center/cover no-repeat; border-radius: 16px; color: white; min-height: 354px; display: flex; align-items: center; overflow: hidden; padding: 38px clamp(24px, 5vw, 66px); }
.hero-copy { max-width: 520px; }
.hero h1 { font-size: clamp(2.5rem, 6.1vw, 4.55rem); line-height: 1.04; font-weight: 830; letter-spacing: -.065em; margin-block: 10px 12px; }
.mobile-break { display: none; }
.hero .eyebrow { color: #f3d1bd; font-size: .8rem; font-weight: 760; letter-spacing: .13em; }
.eyebrow span { width: 18px; height: 2px; background: var(--orange); display: inline-block; vertical-align: middle; margin-right: 7px; }
.hero p:not(.eyebrow) { max-width: 380px; color: #e5eef7; line-height: 1.55; font-size: 1.05rem; }
.hero .button { margin-top: 22px; }
.market { margin-top: 31px; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
.section-head p { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.filters { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(150px, 1fr) auto; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 15px; box-shadow: 0 2px 5px #18375306; }
.search-field, .select-field { min-width: 0; display: flex; align-items: center; gap: 8px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 7px; padding-left: 11px; color: var(--blue); }
.search-field:focus-within, .select-field:focus-within { outline: 2px solid #3c77b0; }
.search-field input, .select-field select { width: 100%; background: transparent; border: 0; outline: none; color: var(--ink); min-width: 0; min-height: 42px; }
.search-field input { padding: 7px 9px 7px 0; }
.select-field select { padding: 7px 28px 7px 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%) !important; background-repeat: no-repeat !important; background-size: 5px 5px, 5px 5px !important; background-position: calc(100% - 16px) 53%, calc(100% - 11px) 53% !important; }
.category-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-block: 13px 17px; }
.category-tabs a { display: inline-flex; align-items: center; min-height: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .88rem; font-weight: 680; padding: 5px 14px; text-decoration: none; }
.category-tabs a:hover { border-color: #9bb3ca; }
.category-tabs a.selected { background: var(--navy); color: white; border-color: var(--navy); }
.sub-tabs { margin-top: -7px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card, .panel { background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 4px 13px #1a3a5508; }
.card { overflow: hidden; min-width: 0; }
.card:hover, .card:focus-within { border-color: #8da9c1; box-shadow: 0 6px 15px #123c6112; }
.card-link { display: block; text-decoration: none; }
.card-link:focus-visible { outline-offset: -3px; }
.card-photo { height: clamp(165px, 20vw, 230px); position: relative; display: grid; place-items: center; background: var(--ice); }
.card-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.demo-photo img { object-position: 50% 52%; }
.card-photo > .icon, .blank-photo .icon { font-size: 2.6rem; color: #7797b7; }
.pill { display: inline-flex; align-items: center; background: var(--ice); color: var(--navy); padding: 4px 9px; border-radius: 5px; font-size: .82rem; font-weight: 740; }
.photo-label, .demo-label { position: absolute; top: 12px; }
.photo-label { left: 12px; background: white; }
.demo-label { right: 12px; background: #142c45; color: white; font-size: .76rem; border-radius: 5px; padding: 4px 8px; }
.card-content { padding: 15px 16px; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-title h3 { overflow-wrap: anywhere; }
.price { color: #143d5b; font-weight: 830; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-content p { margin-block: 4px 9px; font-size: .89rem; color: var(--muted); overflow-wrap: anywhere; }
.details-link { color: var(--blue); font-size: .88rem; font-weight: 730; }
.card:hover .details-link { text-decoration: underline; }
.empty { padding: 34px 24px; text-align: center; }
.empty .icon { font-size: 25px; color: var(--blue); margin-bottom: 10px; }
.empty p { color: var(--muted); margin-block: 8px 16px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; color: var(--muted); }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 10px; color: var(--blue); font-weight: 720; }
.listing-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 23px; align-items: start; }
.gallery { padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; background: white; }
.gallery a, .gallery img { border-radius: 7px; }
.main-photo { width: 100%; display: block; max-height: 540px; object-fit: contain; background: var(--ice); }
.main-photo img { width: 100%; height: auto; max-height: 540px; min-height: 210px; object-fit: contain; }
.more-photo img { width: 72px; height: 60px; object-fit: cover; }
.blank-photo { width: 100%; min-height: 230px; display: grid; place-items: center; background: var(--ice); border-radius: 8px; }
.listing-info { padding: clamp(17px, 3.2vw, 35px); overflow-wrap: anywhere; }
.listing-info h1 { margin-top: 12px; }
.detail-price { margin-top: 8px; font-size: 1.8rem; }
.listing-info h2 { font-size: 1.17rem; }
.specs { display: flex; gap: 32px; border-block: 1px solid var(--line); padding: 13px 0; margin-block: 15px 20px; }
.specs dt { color: var(--muted); font-size: .86rem; }
.specs dd { margin: 2px 0 0; font-weight: 710; }
.card-place { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.card-place .icon { width: 14px; height: 14px; }
.description { white-space: pre-wrap; margin-top: 8px; }
.contact-box { margin-top: 19px; background: var(--background); border: 1px solid var(--line); border-radius: 9px; padding: 16px; }
.contact-box p { color: var(--muted); margin-block: 6px 11px; }
.contact-box .button + .button { margin-left: 3px; }
.contact-box .request-confirmed { color: #16623d; font-weight: 720; margin-bottom: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.form-panel { width: min(100%, 700px); padding: clamp(18px, 4vw, 34px); margin-inline: auto; }
.form-panel.auth { max-width: 510px; }
.form-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 11px; background: var(--ice); color: var(--blue); border-radius: 8px; font-size: 21px; }
.form-panel h1 { font-size: clamp(1.9rem, 4vw, 2.45rem); }
.stack { display: grid; gap: 15px; margin-top: 17px; }
.stack p { color: var(--muted); }
.stack label { display: flex; flex-direction: column; gap: 5px; font-size: .94rem; font-weight: 700; min-width: 0; }
.stack input, .stack select, .stack textarea { width: 100%; min-width: 0; border: 1px solid #c5d3e0; border-radius: 7px; background: #fbfcfe; padding: 9px 11px; color: var(--ink); font-size: 1rem; font-weight: 460; min-height: 44px; }
.stack select { padding-right: 28px; }
.stack textarea { resize: vertical; }
.stack small { color: var(--muted); font-weight: 450; line-height: 1.4; font-size: .84rem; }
.stack a { color: var(--blue); font-weight: 720; }
.stack .button { justify-self: start; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.contact-note { display: flex; gap: 8px; align-items: flex-start; background: var(--ice); border-radius: 8px; padding: 10px; overflow-wrap: anywhere; }
.contact-note .icon { margin-top: 3px; }
.upload-label input::file-selector-button { min-height: 33px; border: 0; border-radius: 5px; padding-inline: 9px; margin-inline-end: 8px; background: var(--ice); color: var(--navy); font: inherit; font-weight: 710; cursor: pointer; }
.account-heading, .account-section-head, .item-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-heading { margin-bottom: 18px; flex-wrap: wrap; }
.account-heading p, .account-item p, .quiet { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.account-panel { margin-bottom: 14px; padding: clamp(15px, 3vw, 23px); }
.account-section-head { flex-wrap: wrap; }
.account-item { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 13px; overflow-wrap: anywhere; }
.account-item a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.item-header { align-items: flex-start; }
.item-header .pill { flex: 0 0 auto; }
.status-active { color: #1d6440; background: #e5f3e9; }
.status-sold { color: #3c4c5c; background: #e7edf4; }
.request-list { background: var(--background); padding: 10px 12px; margin-top: 9px; border-radius: 7px; }
.request-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.alert { border: 1px solid; border-radius: 8px; padding: 10px 13px; margin-bottom: 14px; }
.alert.success { color: #145537; background: #e8f5ed; border-color: #bbddc8; }
.alert.error { color: #862c2b; background: #fff1ef; border-color: #eec8c5; }
.site-footer { background: white; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 17px; }
.footer-inner .icon { margin-right: 3px; }
.footer-inner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-inner a:hover { color: var(--blue); }
.legal { width: min(100%, 760px); padding: clamp(18px, 4vw, 34px); margin-inline: auto; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { font-size: 1.15rem; margin-block: 30px 10px; }
.legal p { margin-block: 0 12px; line-height: 1.6; }
.legal p:last-child { margin-bottom: 0; }
.legal a { color: var(--blue); overflow-wrap: anywhere; }

@media (max-width: 790px) {
    .wrap { width: calc(100% - 36px); }
    .hero { min-height: 320px; }
    .filters { grid-template-columns: 1fr 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .filters button { grid-column: 1 / -1; }
    .cards { gap: 12px; }
    .card-content { padding: 13px; }
    .card-title { flex-wrap: wrap; gap: 2px 7px; }
    .listing-layout { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 570px) {
    .wrap { width: calc(100% - 28px); }
    .main { padding-top: 16px; padding-bottom: 35px; }
    .header-inner { min-height: 65px; gap: 9px; }
    .header-inner nav { gap: 9px; }
    .header-inner .market-nav { display: none; }
    .brand { gap: 6px; }
    .brand-icon { width: 34px; height: 34px; font-size: 17px; }
    .brand strong { font-size: .91rem; }
    .brand small { font-size: .7rem; }
    .nav-account { min-width: 44px; min-height: 44px; justify-content: center; font-size: 1.05rem !important; }
    .nav-account span { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; white-space: nowrap; }
    .nav-create { font-size: .75rem; padding: 6px 8px; gap: 4px; }
    .hero { min-height: 315px; padding: 22px; background-position: 57% center; background-image: linear-gradient(90deg, #0a2036d9 0%, #0a203663 75%, #0a203649 100%), url("alpen.webp"); }
    .hero h1 { font-size: clamp(2.55rem, 11vw, 3.65rem); margin-block: 9px; }
    .mobile-break { display: initial; }
    .hero .eyebrow { font-size: .7rem; letter-spacing: .085em; }
    .hero p:not(.eyebrow) { max-width: 275px; font-size: .97rem; }
    .hero .button { margin-top: 14px; }
    .market { margin-top: 23px; }
    .filters { gap: 7px; padding: 8px; }
    .select-field { gap: 4px; padding-left: 6px; }
    .select-field .icon { width: 15px; }
    .category-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; }
    .category-tabs a { white-space: nowrap; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card-photo { height: clamp(120px, 36vw, 175px); }
    .card-title { flex-direction: column; align-items: flex-start; }
    .card-content { padding: 11px; }
    .photo-label, .demo-label { top: 6px; }
    .photo-label { left: 6px; padding: 3px 5px; font-size: .7rem; }
    .demo-label { right: 6px; padding: 3px 5px; font-size: .64rem; }
    .field-row { grid-template-columns: 1fr; }
    .request-row { flex-wrap: wrap; }
    .footer-inner { gap: 6px; }
}

@media (max-width: 540px) {
    .filters { grid-template-columns: 1fr; }
    .select-field { gap: 8px; padding-left: 10px; }
}
