.models-page { --bg: #161d21; --panel: #222c32; --line: #46545d; --ink: #f7f3e9; --muted: #c2cbd0; min-height: 100vh; background: var(--bg); }
.models-page [aria-current="page"] { color: var(--accent); }
.catalog-hero { background: #263b46; border-block: 1px solid #49606c; padding-block: clamp(2.7rem, 7vw, 5.2rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem; }
.section-head h1 { max-width: none; font-size: clamp(3.5rem, 8vw, 6rem); }
.section-head p { margin-top: .8rem; font-size: 1.12rem; color: #e1e9eb; }
.section-head button { flex: none; }
.catalog { padding-block: 1.75rem clamp(3.5rem, 8vw, 6rem); }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, .28fr) minmax(9rem, .28fr); gap: .75rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
input, textarea, select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: .6rem .75rem; background: var(--panel); color: var(--ink); font: inherit; }
input::placeholder { color: var(--muted); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.result-count { margin: 1.35rem 0 .75rem; font-size: .95rem; }
.model-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.model { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.amp-face { min-height: 92px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; gap: .6rem; padding: 1rem clamp(.8rem, 3vw, 2.4rem); background: #304752; border-bottom: 1px solid #58717c; }
.amp-face i { position: relative; width: 37px; height: 37px; border: 1px solid #80949b; border-radius: 50%; background: #26363e; box-shadow: 0 3px 5px #101c2250; }
.amp-face i::after { content: ""; position: absolute; inset: 6px 16px 16px; transform: rotate(var(--pointer, 0deg)); transform-origin: bottom; background: #ffd077; }
.amp-face i:nth-child(1) { --pointer: -40deg; }
.amp-face i:nth-child(3) { --pointer: 45deg; }
.amp-face i:nth-child(4) { --pointer: -18deg; }
.model-copy { padding: 1rem; }
.model h2 { font-size: 1.8rem; overflow-wrap: anywhere; }
.model p { font-size: .95rem; margin-top: .35rem; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem 1rem; }
.tag { max-width: 100%; overflow-wrap: anywhere; border-radius: 4px; background: #32434d; color: var(--ink); padding: .15rem .45rem; font-size: .88rem; }
.model-actions { margin-top: auto; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.model-actions a { width: 100%; }
.upload { margin-bottom: 1.5rem; padding: clamp(1rem, 3vw, 2rem); background: var(--panel); border-radius: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1rem; }
.wide { grid-column: 1 / -1; }
.agreement { display: flex; gap: .65rem; align-items: start; margin-block: 1rem; }
.agreement input { width: 1rem; min-height: 1rem; margin-top: .28rem; flex: none; }
.upload-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.upload h2 { font-size: 2rem; }
@media (max-width: 570px) {
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: start; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
