@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;800&display=swap");

:root {
    --bg: #0b0d12;
    --surface: #1f222a;
    --surface-2: #323640;
    --line: #4b5360;
    --text: #eef0f4;
    --muted: #bec4cf;
    --accent: #ff4f33;
    --accent-2: #35b2ea;
    --warm-page-top: rgba(122, 115, 106, 0.7);
    --warm-page-bottom: rgba(86, 81, 76, 0.72);
    --warm-panel-top: rgba(124, 119, 112, 0.34);
    --warm-panel-bottom: rgba(74, 69, 65, 0.54);
    --warm-panel-dark-top: rgba(94, 89, 83, 0.8);
    --warm-panel-dark-bottom: rgba(57, 53, 50, 0.9);
    --warm-line: rgba(247, 242, 231, 0.16);
    --warm-line-strong: rgba(247, 242, 231, 0.24);
    --warm-text: #f5f1e7;
    --warm-muted: rgba(239, 234, 223, 0.72);
    --warm-cyan: #bdf3ef;
    --warm-gold: #f8c41c;
}

* {
    box-sizing: border-box;
}

input:not([type=checkbox],[type=radio]),
select,
textarea {
    margin-bottom: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -12%, rgba(214, 206, 191, 0.16) 0%, transparent 34%),
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.06) 0%, transparent 22%),
        linear-gradient(180deg, #4e4a46 0%, #2d2a28 100%);
    font-family: "Exo 2", "Trebuchet MS", sans-serif;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #21252e 0%, #2e3138 60%, #2a2f3a 100%);
    border-bottom: 1px solid #414755;
}

.brand {
    color: #f2f5f8;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.brand span {
    color: var(--accent);
}

.topbar-nav {
    display: flex;
    gap: 0.75rem;
}

.topbar-nav a {
    color: #d6dbe5;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border: 1px solid #4e5564;
    border-radius: 999px;
    font-size: 0.92rem;
}

.topbar-nav a:hover {
    border-color: var(--accent-2);
    color: #ffffff;
}

.page {
    width: min(1200px, 94vw);
    margin: 0 auto;
}

.landing-page {
    min-height: calc(100vh - 4rem);
    position: relative;
    padding: 1rem 0 2rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 34%),
        radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.04), transparent 42%),
        linear-gradient(180deg, rgba(118, 111, 103, 0.72) 0%, rgba(84, 80, 75, 0.72) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 24px 60px rgba(6, 8, 12, 0.18);
}

.landing-topline {
    display: flex;
    justify-content: center;
    margin-bottom: 2.6rem;
}

.landing-toplink {
    color: rgba(249, 248, 243, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(249, 248, 243, 0.45);
    padding-bottom: 0.12rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.landing-toplink:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.92);
}

.landing-hero {
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3.5rem;
}

.landing-hero-inner {
    width: min(700px, 100%);
    display: grid;
    justify-items: center;
    gap: 1.15rem;
}

.landing-search-form {
    width: min(620px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    position: relative;
    padding: 0.55rem 4.1rem 0.55rem 1.45rem;
    border-radius: 999px;
    border: 1px solid rgba(246, 245, 238, 0.2);
    background: linear-gradient(180deg, rgba(121, 117, 110, 0.55), rgba(97, 93, 88, 0.48));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 10px 24px rgba(7, 9, 13, 0.16),
        0 1px 4px rgba(7, 9, 13, 0.18);
}

.landing-search-form input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #f5f4ef;
    padding: 0;
    font-size: clamp(0.98rem, 1.8vw, 1.22rem);
    height: auto;
    box-shadow: none;
    font-weight: 600;
}

.landing-search-form input::placeholder {
    color: rgba(255, 252, 243, 0.9);
}

.landing-search-form input:focus {
    outline: none;
    box-shadow: none;
}

.landing-search-form button {
    width: 2.45rem;
    height: 2.45rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #ffd732 0%, #f4b703 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 7px 16px rgba(64, 49, 0, 0.22);
    cursor: pointer;
}

.landing-search-form button:hover {
    transform: translateY(calc(-50% - 1px));
}

.landing-search-hint {
    margin: 0;
    max-width: 560px;
    color: rgba(245, 242, 233, 0.68);
    font-size: 0.84rem;
    text-align: center;
    line-height: 1.35;
}

.landing-photo-link {
    margin: 0;
    color: #bdf3ef;
    font-size: clamp(1rem, 1.8vw, 1.26rem);
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 10px rgba(73, 181, 190, 0.16);
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.landing-photo-link:hover {
    color: #d7fffc;
}

.landing-photo-link.is-loading {
    opacity: 0.9;
    pointer-events: none;
}
.landing-photo-link.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(189, 243, 239, 0.45);
    border-top-color: #bdf3ef;
    border-radius: 50%;
    animation: ui-spin 0.8s linear infinite;
    vertical-align: -2px;
}

@keyframes ui-spin {
    to { transform: rotate(360deg); }
}

.home-search-output {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.home-result-grid {
    margin-top: 0;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
}

.home-search-output .search-state {
    width: min(520px, 100%);
    margin: 0 auto;
    text-align: center;
}

.catalog-layout-shell {
    margin-top: 1rem;
}

.catalog-layout-shell[hidden] {
    display: none !important;
}

.catalog-page {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 34%),
        linear-gradient(180deg, var(--warm-page-top) 0%, var(--warm-page-bottom) 100%);
    border: 1px solid var(--warm-line);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 22px 48px rgba(7, 8, 10, 0.16);
}

.detail-page {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 34%),
        linear-gradient(180deg, var(--warm-page-top) 0%, var(--warm-page-bottom) 100%);
    border: 1px solid var(--warm-line);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 22px 48px rgba(7, 8, 10, 0.16);
}

.catalog-page-head {
    display: grid;
    gap: 0.45rem;
}

.catalog-page-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--warm-text);
}

.catalog-page-head p {
    margin: 0;
    color: var(--warm-muted);
}

.page-backlink {
    width: fit-content;
    color: rgba(249, 248, 243, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(249, 248, 243, 0.42);
    padding-bottom: 0.12rem;
    font-size: 0.94rem;
    letter-spacing: 0.01em;
}

.page-backlink:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.92);
}

.search-panel {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, var(--warm-panel-top) 0%, var(--warm-panel-bottom) 100%);
    border: 1px solid var(--warm-line);
    border-radius: 24px;
    padding: 0.75rem 0.8rem;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-panel h1 {
    margin: 0 0 0.25rem;
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    color: var(--warm-text);
}

.search-panel h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1rem, 1.9vw, 1.28rem);
    color: var(--warm-text);
}

.search-panel p {
    margin: 0 0 0.25rem;
    color: var(--warm-muted);
    font-size: 0.82rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    min-width: 0;
    background: rgba(49, 46, 44, 0.72);
    border: 1px solid rgba(247, 242, 231, 0.14);
    color: var(--warm-text);
    border-radius: 14px;
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
    height: 42px;
    line-height: 1.1;
}

.search-form button {
    border: 0;
    border-radius: 14px;
    padding: 0.45rem 0.9rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(180deg, #ffd732 0%, #f4b703 100%);
    cursor: pointer;
    height: 42px;
    line-height: 1.1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 8px 18px rgba(64, 49, 0, 0.16);
}

.filter-panel {
    border: 1px solid var(--warm-line);
    border-radius: 26px;
    padding: 1rem;
    background: linear-gradient(180deg, var(--warm-panel-top) 0%, var(--warm-panel-bottom) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.catalog-sidebar {
    min-width: 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-items: start;
}

.filter-field {
    display: grid;
    gap: 0.2rem;
    color: var(--warm-muted);
    font-size: 0.75rem;
}

.filter-field span {
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    color: var(--warm-text);
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-width: 0;
    background: rgba(49, 46, 44, 0.74);
    border: 1px solid rgba(247, 242, 231, 0.14);
    color: var(--warm-text);
    border-radius: 14px;
    padding: 0.35rem 0.5rem;
    font-size: 0.84rem;
    height: 40px;
    line-height: 1.1;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.filter-field input::placeholder {
    color: rgba(239, 234, 223, 0.46);
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: rgba(189, 243, 239, 0.52);
    box-shadow: 0 0 0 3px rgba(189, 243, 239, 0.14);
}

.filter-field select[multiple] {
    min-height: 70px;
    padding: 0.25rem;
    line-height: 1.35;
    scrollbar-width: thin;
    scrollbar-color: #6a7793 #111523;
}

.filter-field select[multiple] option {
    padding: 0.4rem 0.48rem;
    border-radius: 8px;
}

.filter-field select:not([multiple]) option {
    color: #111827;
    background: #ffffff;
}

.filter-hint {
    color: #9ba7c0;
    font-size: 0.76rem;
    line-height: 1.2;
}

.filter-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-actions .secondary-btn {
    width: 100%;
}

.secondary-btn {
    border: 1px solid rgba(247, 242, 231, 0.18);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: linear-gradient(180deg, rgba(74, 69, 65, 0.72) 0%, rgba(54, 50, 47, 0.92) 100%);
    color: var(--warm-text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.secondary-btn:hover {
    border-color: rgba(247, 242, 231, 0.32);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(8, 13, 24, 0.18);
}

.secondary-btn:active {
    transform: translateY(0);
}

.results-panel {
    min-width: 0;
    border: 1px solid var(--warm-line);
    border-radius: 26px;
    background: linear-gradient(180deg, var(--warm-panel-top) 0%, var(--warm-panel-bottom) 100%);
    padding: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.results-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.results-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--warm-text);
}

.results-head p {
    margin: 0;
    color: var(--warm-muted);
    font-size: 0.9rem;
}

.search-state {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(66, 61, 57, 0.54);
    color: var(--warm-text);
    border: 1px solid rgba(247, 242, 231, 0.1);
}

.search-state.error {
    background: rgba(139, 69, 39, 0.24);
    color: #fff1e5;
}

.result-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.result-card {
    border: 1px solid rgba(247, 242, 231, 0.12);
    border-radius: 22px;
    padding: 1rem;
    background: linear-gradient(170deg, rgba(112, 107, 100, 0.28), rgba(54, 50, 47, 0.84));
    display: grid;
    gap: 0.55rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    border-color: rgba(247, 242, 231, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 28px rgba(11, 12, 15, 0.16);
}
.result-card.is-clickable {
    cursor: pointer;
}

.result-media {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(247, 242, 231, 0.12);
    background: linear-gradient(160deg, rgba(92, 88, 82, 0.56), rgba(55, 51, 48, 0.88));
}

.result-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #f1efe8;
}

.result-media.is-empty::after {
    content: "No photo";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(239, 234, 223, 0.54);
    font-size: 0.85rem;
}

.result-title {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--warm-text);
}

.result-line {
    margin: 0;
    font-size: 0.9rem;
    color: var(--warm-muted);
}

.result-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    width: fit-content;
    color: #103332;
    background: rgba(189, 243, 239, 0.74);
    border: 1px solid rgba(189, 243, 239, 0.54);
    font-weight: 700;
}

.result-link {
    margin-top: 0.3rem;
    width: fit-content;
    color: #fff1cb;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 241, 203, 0.5);
}

.result-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.82);
}

.result-card .result-link {
    margin-top: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 241, 203, 0.22);
    background: linear-gradient(180deg, rgba(87, 82, 76, 0.82) 0%, rgba(57, 53, 50, 0.96) 100%);
    color: var(--warm-text);
    text-decoration: none;
    border-bottom: 0;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.result-card .result-link:hover {
    border-color: rgba(255, 241, 203, 0.42);
    color: #ffffff;
    transform: translateY(-1px);
}

.device-page-head {
    margin-bottom: 1rem;
    display: grid;
    gap: 0.55rem;
}

.device-page-head h1 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--warm-text);
}

.device-page-head p {
    margin: 0;
    color: var(--warm-muted);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(66, 61, 57, 0.42);
    border: 1px solid rgba(247, 242, 231, 0.12);
    color: var(--warm-text);
    font-size: 0.88rem;
    line-height: 1.2;
}

.detail-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.76rem;
    border-radius: 999px;
    background: rgba(189, 243, 239, 0.12);
    border: 1px solid rgba(189, 243, 239, 0.24);
    color: #edf7f6;
    font-size: 0.84rem;
    line-height: 1.2;
}

.device-detail-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.4fr);
    border: 1px solid var(--warm-line);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(108, 103, 97, 0.24), rgba(55, 51, 48, 0.44));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detail-photo-wrap {
    padding: 1.5rem;
    background: linear-gradient(180deg, #f3ede0 0%, #ebe2d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-photo-wrap img {
    display: block;
    border-radius: 0;
    object-fit: contain;
}

.device-swiper {
    width: min(100%, 420px);
    aspect-ratio: 3 / 4;
    max-width: 100%;
    height: auto;
}

.device-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #f3ede0 0%, #ebe2d4 100%);
}

.device-swiper img {
    width: 100%;
    height: 100%;
    background: #f1efe8;
    object-fit: contain;
}

.device-swiper .swiper-button-next,
.device-swiper .swiper-button-prev {
    width: auto;
    height: auto;
    padding: 0.35rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #f4f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 2;
}

.device-swiper .swiper-button-next::after,
.device-swiper .swiper-button-prev::after {
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(8, 12, 22, 0.6);
}

.device-swiper .swiper-button-next:hover,
.device-swiper .swiper-button-prev:hover {
    color: #f2953d;
}

.device-swiper .swiper-pagination {
    display: none;
}

.device-swiper.is-single .swiper-button-next,
.device-swiper.is-single .swiper-button-prev,
.device-swiper.is-single .swiper-pagination {
    display: none;
}

.detail-info-wrap {
    background: linear-gradient(180deg, var(--warm-panel-dark-top) 0%, var(--warm-panel-dark-bottom) 100%);
    padding: 1.5rem;
}

.detail-info-wrap h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.2rem, 2vw, 1.9rem);
    color: var(--warm-text);
}

.detail-info-wrap .subtitle {
    margin: 0 0 1rem;
    color: var(--warm-muted);
}

.detail-info-wrap table {
    margin: 0;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(247, 242, 231, 0.12);
}

.detail-info-wrap th {
    color: rgba(245, 241, 231, 0.78);
    border-bottom-color: rgba(247, 242, 231, 0.14);
    background: rgba(255, 255, 255, 0.04);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.detail-info-wrap td {
    color: var(--warm-text);
    border-bottom-color: rgba(247, 242, 231, 0.08);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    vertical-align: middle;
}

.detail-info-wrap tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: background-color 0.18s ease;
}

.detail-info-wrap tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.detail-info-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.detail-info-wrap td .result-link {
    margin-top: 0;
}

.failure-detail-card {
    grid-template-columns: minmax(0, 100%);
    justify-content: start;
}

@media (max-width: 900px) {
    .landing-hero {
        min-height: 52vh;
        padding-bottom: 2rem;
    }

    .catalog-page,
    .detail-page {
        padding: 1rem;
        border-radius: 24px;
    }

    .landing-search-form {
        width: min(100%, 560px);
        padding-left: 1.15rem;
        padding-right: 3.95rem;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .results-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .detail-meta,
    .detail-chip-list {
        gap: 0.45rem;
    }
}

@media (max-width: 600px) {
    .page {
        width: min(94vw, 100%);
        margin: 0 auto;
    }

    .landing-page {
        min-height: calc(100vh - 2rem);
        padding: 0.85rem 0 1.5rem;
        border-radius: 24px;
    }

    .catalog-page,
    .detail-page {
        padding: 0.9rem;
        border-radius: 22px;
    }

    .landing-topline {
        margin-bottom: 1.85rem;
    }

    .landing-search-form {
        gap: 0.55rem;
        padding: 0.5rem 3.55rem 0.5rem 1rem;
    }

    .landing-search-form button {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.08rem;
        right: 0.6rem;
    }

    .detail-meta-item,
    .detail-chip {
        font-size: 0.82rem;
        padding: 0.42rem 0.66rem;
    }

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

    .filter-field select[multiple] {
        min-height: 96px;
    }
}

.search-panel input,
.search-panel select,
.search-panel button,
.filter-panel input,
.filter-panel select,
.filter-panel button {
    font-family: inherit;
    line-height: 1.2;
    box-shadow: none;
}

.search-form input {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.search-form button {
    width: auto;
    white-space: nowrap;
}

.filter-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
}
