@font-face {
    font-family: "Abhaya Libre";
    src: url("../fonts/abhaya-libre-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("../fonts/abhaya-libre-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("../fonts/abhaya-libre-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("../fonts/abhaya-libre-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("../fonts/abhaya-libre-800.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Stick No Bills";
    src: url("../fonts/stick-no-bills-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Stick No Bills";
    src: url("../fonts/stick-no-bills-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Stick No Bills";
    src: url("../fonts/stick-no-bills-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Stick No Bills";
    src: url("../fonts/stick-no-bills-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Stick No Bills";
    src: url("../fonts/stick-no-bills-800.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --ink: #111111;
    --paper: #ffffff;
    --border: #111111;
    --border-soft: rgba(17, 17, 17, 0.5);
    --muted: #6b6b6b;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-pill: 999px;
    --font-serif: "Abhaya Libre", Georgia, "Times New Roman", serif;
    --font-sans: "Stick No Bills", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .logo {
    font-family: var(--font-sans);
    font-weight: 700;
    margin: 0 0 0.5em;
    line-height: 1;
    letter-spacing: 0;
}

h1 {
    font-weight: 500;
    font-size: 28px;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

main.container {
    flex: 1 0 auto;
}

/* Navigation */

.site-header {
    width: 100vw;
    border-bottom: 1px solid #000000;
}

.site-nav {
    max-width: 1440px;
    margin: 0 auto;
    height: 120px;
    padding: 0 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: block;
    flex-shrink: 0;
}

.logo img {
    display: block;
    height: 62px;
    width: auto;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 630px;
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    text-align: center;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-links a.is-active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 68px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    border-radius: 169px;
    padding: 20px 39px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    font-family: var(--font-sans);
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.85;
}

.btn-outline {
    background: var(--paper);
    color: var(--ink);
}

.btn-compact {
    height: 35px;
    padding: 0 20px;
    font-size: 14px;
}

/* Chips (filters) */

.chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-pill);
    padding: 0 20px;
    font-size: 14px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    user-select: none;
}

.chip.is-selected {
    background: var(--ink);
    color: var(--paper);
}

.chip-group {
    margin-bottom: 22px;
}

.chip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.chip-row .chip {
    width: 100%;
    justify-content: center;
}

.chip-group-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

/* Cards / panels */

.panel {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.card {
    border: 2.4px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.card-bar {
    background: var(--ink);
    color: var(--paper);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body img {
    max-width: 100%;
    height: auto;
}

/* Forms */

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    height: 39px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 0 20px;
    font-size: 15px;
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
}

.field textarea {
    height: auto;
    padding: 12px 20px;
    border-radius: var(--radius-md);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

/* Footer */

.site-footer {
    width: 100vw;
    margin-top: 64px;
    background: black;
    color: var(--paper);
    height: 200px;
    padding: 0;
    line-height: 1.2;
    flex: 0 0 200px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.footer-train {
    position: relative;
    z-index: 1;
    width: 100vw;
    max-width: 1440px;
    height: 70px;
    margin: 0 auto -10px;
    overflow: hidden;
    flex: 0 0 auto;
}

.footer-train img {
    display: block;
    width: 100%;
    height: 70px;
    object-fit: fill;
}

.footer-train + .site-footer,
.tariffs-footer-train + .site-footer {
    margin-top: 0;
}

.footer-inner {
    height: 200px;
    position: relative;
}

.footer-brand {
    position: static;
}

.logo-footer {
    position: absolute;
    top: 62px;
    left: 120px;
    display: block;
}

.logo-footer img {
    display: block;
    width: 82px;
    height: auto;
    margin: 0;
}

.footer-tagline {
    position: absolute;
    top: 56px;
    left: 289px;
    width: 264px;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.footer-nav {
    position: absolute;
    top: 16px;
    left: 631px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 79px;
}

.footer-nav a {
    color: var(--paper);
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-contact,
.footer-legal {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.footer-contact {
    top: 45px;
    left: 788px;
    width: 190px;
}

.footer-legal {
    top: 58px;
    left: 1027px;
    width: 293px;
    gap: 13px;
}

.footer-socials img {
    display: block;
    width: 60px;
    height: 22px;
    object-fit: contain;
    filter: invert(1);
}

.footer-row-placeholder,
.footer-legal span,
.footer-socials-placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.footer-socials-placeholder {
    display: block;
}

.footer-copyright {
    position: absolute;
    top: 172px;
    left: 120px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    font-size: 16px;
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.footer-row-top {
    align-items: flex-start;
}

.footer-row img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-icon-text {
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1;
}

.footer-row p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-row p:last-child {
    margin-bottom: 0;
}

.footer-legal-row {
    min-height: 20px;
    white-space: nowrap;
}

.footer-row a {
    color: var(--paper);
    text-decoration: none;
}

.footer-row a:hover {
    text-decoration: underline;
}

/* Legal documents */

.legal-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 0 0;
    font-size: 16px;
    line-height: 1.2;
    font-family: Arial, Helvetica, sans-serif;
}

.legal-page h1 {
    margin: 0 0 30px;
    font-size: 30px;
    font-weight: 600;
}

.legal-page section {
    margin: 0 0 31px;
}

.legal-page h2 {
    margin: 0 0 15px;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.15;
}

.legal-page p,
.legal-page ul {
    max-width: 1080px;
    margin: 0 0 18px 68px;
}

.legal-page ul {
    padding-left: 21px;
}

.legal-page li {
    margin: 2px 0;
}

.legal-page a {
    text-underline-offset: 3px;
}

.tariffs-offer-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
}

/* 404 */

.not-found {
    position: relative;
    min-height: 700px;
    margin: 0 -120px -64px;
    overflow: hidden;
}

.not-found-copy {
    position: relative;
    z-index: 1;
    width: min(58%, 760px);
    padding: 76px 0 100px 120px;
    font-family: var(--font-sans);
}

.not-found-code {
    width: 200px;
    height: 100px;
    margin: 0 0 49px;
    overflow: hidden;
    color: transparent;
    background: url("../images/design/error-404-source.svg") no-repeat -115px -195px / 1440px 1024px;
    user-select: none;
}

.not-found h1 {
    margin: 0 0 16px;
    font-size: 30px;
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.05;
}

.not-found-copy > p:not(.not-found-code) {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
    font-family: var(--font-sans);
}

.not-found-action {
    margin-top: 35px;
    padding-right: 42px;
}

.not-found-action span {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
}

.not-found-station {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(55vw, 720px);
    height: 590px;
    background-image: url("../images/design/error-404-source.svg");
    background-repeat: no-repeat;
    background-size: 1440px 1024px;
    background-position: right -234px;
    pointer-events: none;
}

@media (min-width: 901px) and (max-width: 1100px) {
    .not-found {
        min-height: 610px;
        margin: 0 -24px -40px;
    }

    .not-found-copy {
        width: min(100%, 560px);
        padding: 54px 24px 240px;
    }

    .not-found h1 {
        font-size: 27px;
    }

    .not-found-copy > p:not(.not-found-code) {
        font-size: 16px;
    }

    .not-found-station {
        width: 100%;
        height: 300px;
        background-size: 850px auto;
        background-position: right -78px;
    }
}

@media (max-width: 900px) {
    .legal-page {
        padding-top: 42px;
        font-size: 15px;
    }

    .legal-page h1 {
        font-size: 26px;
    }

    .legal-page h2 {
        font-size: 20px;
    }

    .legal-page p,
    .legal-page ul {
        margin-left: 0;
    }

    .not-found {
        min-height: 610px;
        margin: 0 -24px -40px;
    }

    .not-found-copy {
        width: min(100%, 560px);
        padding: 54px 24px 240px;
    }

    .not-found-code {
        font-size: 104px;
    }

    .not-found h1 {
        font-size: 27px;
    }

    .not-found-copy > p:not(.not-found-code) {
        font-size: 16px;
    }

    .not-found-station {
        width: 100%;
        height: 300px;
        background-size: 850px auto;
        background-position: right -78px;
    }
}

@media (max-width: 900px) {
    .site-footer {
        height: auto;
        min-height: 0;
        padding: 40px 0;
        flex: 0 0 auto;
        overflow: visible;
    }

    .footer-inner {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .logo-footer,
    .footer-tagline,
    .footer-nav,
    .footer-contact,
    .footer-legal,
    .footer-copyright {
        position: static;
    }

    .footer-tagline {
        width: 264px;
    }

    .footer-copyright {
        width: 100%;
        margin-top: 8px;
    }
}

.cabinet-badge {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 250px;
    height: 51px;
    overflow: hidden;
}

.cabinet-badge img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Utility layout */

.hero {
    display: grid;
    grid-template-columns: 462px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
    min-height: 589px;
    padding: 71px 0 36px;
}

.hero-art {
    width: 462px;
    height: 482px;
    overflow: hidden;
}

.hero-main {
    display: block;
    width: 462px;
    height: 482px;
    object-fit: cover;
}

.hero-text {
    padding-top: 0;
}

.hero-text h1 {
    max-width: 692px;
    margin: 0 0 24px;
    line-height: 1.05;
    font-weight: 600;
}

.hero-text .lead {
    margin: 0 0 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 30px;
    max-width: 597px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 46px;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.12;
}

.feature-icon {
    display: block;
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.hero-summary {
    max-width: 586px;
    margin: 14px 0 25px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
    line-height: 1.05;
}

.hero-action {
    width: 277px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .container {
        width: 100%;
        min-width: 0;
        padding-right: 24px;
        padding-left: 24px;
    }

    .site-nav {
        height: auto;
        min-height: 136px;
        padding: 16px 24px 12px;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .site-nav .logo img {
        height: 54px;
    }

    .cabinet-badge {
        width: 180px;
        height: 37px;
        margin-left: auto;
    }

    .nav-links {
        order: 3;
        width: 100%;
        min-width: 0;
        gap: 28px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .hero,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        gap: 32px;
        padding: 48px 0;
    }

    .hero-art,
    .hero-main {
        width: min(100%, 462px);
        height: auto;
        aspect-ratio: 462 / 482;
    }

    .feature-list {
        margin-left: 0;
    }

    .feature-list br {
        display: none;
    }

    .footer-train,
    .footer-train img {
        height: 46px;
    }

    .footer-train img {
        width: auto;
        min-width: 100%;
        object-fit: cover;
        object-position: right center;
    }

    .site-footer {
        min-height: 0;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand,
    .footer-nav,
    .footer-contact,
    .footer-legal {
        width: 100%;
        max-width: none;
        flex: none;
    }

    .footer-brand {
        padding: 0;
    }
}

.text-muted {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.lead {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.section {
    padding: 40px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 32px 0;
}

.pagination button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--paper);
    cursor: pointer;
}

.pagination button.is-active {
    background: var(--ink);
    color: var(--paper);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    color: var(--muted);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    margin: 0;
}

.auth-card {
    position: relative;
    z-index: 0;
    background: var(--paper);
    width: 602px;
    margin: 32px;
    border: 1.5px solid var(--border);
    border-radius: 29px;
    padding: 33px 71px 40px;
    overflow: hidden;
}

.auth-banner {
    position: relative;
    width: calc(100% + 142px);
    margin-left: -71px;
    margin-right: -71px;
    height: 122px;
    overflow: hidden;
}

.auth-banner img.bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.auth-banner img.text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 25px 0 0;
    font-size: 18px;
}

.auth-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
}

.auth-tabs a.is-active {
    text-decoration: underline;
}

.auth-tabs img {
    width: 18px;
    height: 18px;
}

.auth-tabs .sep {
    color: var(--muted);
}

.auth-card .field {
    margin: 0;
}

.auth-card .field + .field {
    margin-top: 13px;
}

.auth-card .field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px 18px;
}

.auth-card .field-input {
    position: relative;
}

.auth-card .field-input img {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.auth-card .field-input input {
    padding-left: 48px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 17px;
    font-size: 14px;
    color: var(--muted);
    text-align: right;
}

.auth-row.consent span {
    text-align: center;
}

.auth-row a {
    color: var(--muted);
    text-decoration: underline;
}

.auth-row input[type="checkbox"] {
    width: 19px;
    height: 19px;
    border-radius: 3.5px;
    accent-color: var(--ink);
}

.auth-card .btn {
    display: flex;
    margin: 32px auto 0;
}

.auth-links {
    text-align: center;
    margin-top: 21px;
}

.auth-links a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}

.auth-tool {
    position: absolute;
    left: -25px;
    bottom: -14px;
    width: 177px;
    height: 140px;
    z-index: 5;
}

.catalog-page h1 {
    margin-top: 23px;
}

.catalog-intro {
    max-width: 350px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 32px 0 28px;
}

.filters-toggle {
    position: relative;
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    padding: 0 44px 0 18px;
    background: var(--paper);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
}

.filters-toggle img:first-child {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.filters-toggle span {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filters-toggle .arrow-circle {
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.search-row {
    flex: 1;
    display: flex;
    gap: 12px;
}

.input-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 35px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 0 20px;
}

.input-search img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.input-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
}

/* Number search */

.search-page {
    width: 1200px;
    max-width: 100%;
    min-height: 626px;
    padding-top: 69px;
}

.search-page h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.search-page-lead {
    max-width: 708px;
    margin: 12px 0 0;
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
    line-height: 1.15;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 102px;
    gap: 10px;
    margin-top: 16px;
}

.search-page-field {
    min-width: 0;
    height: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-pill);
    padding: 0 10px;
}

.search-page-field img {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    opacity: 0.5;
}

.search-page-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.search-page-field input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.search-page-submit {
    height: 35px;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 0 20px;
    background: #000000;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.search-page-submit:hover {
    opacity: 0.85;
}

.search-results {
    width: min(920px, 100%);
    margin: 34px auto 0;
    text-align: left;
}

.search-results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.search-results-heading h2 {
    margin: 0;
    font-size: 22px;
}

.search-results-heading > span,
.search-result-category,
.search-result em {
    color: rgba(0, 0, 0, 0.55);
    font-size: 13px;
    font-style: normal;
}

.search-results-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.search-result {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 110px;
    padding: 16px 18px;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
}

.search-result strong {
    font-size: 20px;
}

.search-result > span:last-of-type {
    font-size: 14px;
    line-height: 1.25;
}

.search-result em {
    position: absolute;
    top: 14px;
    right: 14px;
}

.search-result:hover {
    background: #111;
    color: #fff;
}

.search-result:hover .search-result-category,
.search-result:hover em {
    color: rgba(255, 255, 255, 0.68);
}

.search-results-empty {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
}

.search-results-catalog-link {
    display: inline-block;
    margin-top: 10px;
    color: #111;
    font-weight: 600;
}

.search-footer-train {
    width: 100vw;
    max-width: 1440px;
    height: 76px;
    margin: 0 auto -2px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.search-footer-train img {
    display: block;
    width: 1083px;
    height: 76px;
    margin-left: 284px;
}

.search-footer-train + .site-footer {
    margin-top: 0;
}

/* Contacts */

.contacts-page {
    width: 1200px;
    max-width: 100%;
    min-height: 749px;
    display: grid;
    grid-template-columns: 544px 528px;
    gap: 128px;
    padding-top: 55px;
}

.contacts-copy {
    height: 541px;
    display: flex;
    flex-direction: column;
}

.contacts-copy h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.contacts-intro {
    margin: 26px 0 0;
    font-size: 20px;
    line-height: 1.15;
}

.contacts-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
}

.contacts-row {
    display: grid;
    grid-template-columns: 18px max-content 1fr;
    gap: 16px;
    align-items: center;
    min-height: 22px;
    font-size: 18px;
    line-height: 1.15;
}

.contacts-row > img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.contacts-row a {
    text-decoration: none;
}

.contacts-strong {
    font-weight: 700;
    font-size: 20px;
}

.contacts-requisites {
    align-items: start;
}

.contacts-requisites > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts-requisites p {
    margin: 0;
}

.contacts-social-row {
    margin-top: 0;
}

.contacts-social-row > img {
    width: 21px;
}

.contacts-social-links,
.contacts-social-links a,
.contacts-social-links img {
    display: block;
    width: 104px;
    height: 44px;
}

.contacts-advertising {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: auto;
    font-size: 16px;
    line-height: 1.05;
}

.contacts-advertising img {
    width: 18px;
    height: 20px;
    flex-shrink: 0;
}

.contacts-advertising p {
    margin: 0;
}

.contacts-form {
    width: 528px;
    min-height: 541px;
    height: auto;
    margin-top: 0;
    border: 1px solid #000000;
    border-radius: 29px;
    padding: 20px 32px 22px;
    display: flex;
    flex-direction: column;
}

.contacts-form h2 {
    margin: 0 0 17px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.contacts-field {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-pill);
    padding: 0 10px;
}

.contacts-field + .contacts-field {
    margin-top: 16px;
}

.contacts-field img {
    width: 18px;
    height: 19px;
    flex-shrink: 0;
}

.contacts-field input,
.contacts-message textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.contacts-field input::placeholder,
.contacts-message textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.contacts-field-email input {
    font-size: 16px;
}

.contacts-message {
    width: 100%;
    height: 212px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    padding: 10px;
}

.contacts-message img {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.contacts-message textarea {
    height: 100%;
    resize: none;
}

.contacts-submit {
    min-width: 177px;
    height: 44px;
    align-self: center;
    margin-top: 16px;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 0 32px;
    background: #000000;
    color: #ffffff;
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}

.contacts-submit:hover {
    opacity: 0.85;
}

.contacts-form .errorlist {
    margin: 4px 10px 0;
    padding: 0;
    color: #b42318;
    font-size: 14px;
    list-style: none;
}

.contacts-form-message {
    margin: 10px 0 0;
    color: #18794e;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1280px) {
    .contacts-page {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 528px);
        gap: 48px;
    }

    .contacts-form {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .contacts-page {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .contacts-form {
        max-width: 528px;
        margin: 0;
    }
}

@media (max-width: 560px) {
    .contacts-copy {
        height: auto;
    }

    .contacts-intro br,
    .contacts-advertising br {
        display: none;
    }

    .contacts-row {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .contacts-row > :nth-child(3) {
        grid-column: 2;
    }

    .contacts-form {
        height: auto;
        min-height: 541px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .contacts-advertising {
        margin-top: 31px;
    }
}

@media (max-width: 900px) {
    .search-page {
        min-height: 590px;
        padding-top: 48px;
    }

    .search-page-lead br {
        display: none;
    }

    .search-footer-train img {
        margin-left: max(80px, calc(100% - 1083px));
    }
}

@media (max-width: 520px) {
    .search-results-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-page-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-page-submit {
        width: 102px;
        justify-self: end;
    }
}

/* Catalog */

.catalog-page {
    width: 1240px;
    max-width: 100%;
    padding: 48px 0 55px;
}

.passenger-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(170px, 1fr)) auto auto;
    align-items: end;
    gap: 14px;
    margin: 28px 0;
    padding: 20px;
    border: 1px solid #111;
    border-radius: 22px;
}

.passenger-filters label {
    display: grid;
    gap: 7px;
}

.passenger-filters input,
.passenger-filters select {
    min-height: 42px;
    padding: 7px 14px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
}

.passenger-filters button,
.passenger-filters > a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.passenger-filters > a {
    background: #fff;
    color: #111;
}

.passenger-detail {
    width: min(1200px, calc(100% - 40px));
    margin: 42px auto 80px;
}

.passenger-detail-kicker {
    margin: 34px 0 8px;
    color: rgba(17, 17, 17, 0.58);
    text-transform: uppercase;
}

.passenger-detail h1 {
    margin: 0 0 18px;
}

.passenger-drawing {
    margin: 28px 0 0;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.7);
    border-radius: 22px;
    background: #fff;
}

.passenger-drawing img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.passenger-drawing figcaption {
    padding: 10px 18px;
    border-top: 1px solid rgba(17, 17, 17, 0.16);
    color: rgba(17, 17, 17, 0.58);
    font-size: 12px;
}

.passenger-spec-card {
    margin-top: 30px;
    padding: 26px;
    border: 1px solid #111;
    border-radius: 22px;
}

.passenger-spec-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.passenger-spec-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

.passenger-spec-card dt {
    color: rgba(17, 17, 17, 0.58);
}

@media (max-width: 800px) {
    .passenger-filters,
    .passenger-spec-card dl {
        grid-template-columns: minmax(0, 1fr);
    }
}

.catalog-heading h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.catalog-heading p {
    margin: 10px 0 0;
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
    line-height: 1.15;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin: 20px 0 0;
}

.filters-toggle {
    position: relative;
    width: 300px;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #000000;
    border-radius: var(--radius-pill);
    padding: 0 44px 0 12px;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    z-index: 3;
}

.filters-toggle > img:first-child {
    width: 19px;
    height: 18px;
    flex-shrink: 0;
}

.filters-toggle span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filters-toggle .arrow-circle {
    position: absolute;
    top: 50%;
    right: -1px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
}

.catalog-search {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 10px;
}

.catalog-search-control {
    position: relative;
    min-width: 0;
}

.catalog-search-field {
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-pill);
    padding: 0 10px;
}

.catalog-search-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 390px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    padding: 6px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.catalog-search-suggestion {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 9px;
    padding: 8px 11px;
    color: var(--ink);
    text-decoration: none;
}

.catalog-search-suggestion:hover,
.catalog-search-suggestion.is-active {
    background: #f1f1ef;
    text-decoration: none;
}

.catalog-search-suggestion strong {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-search-suggestion span {
    flex: 0 0 auto;
    color: rgba(0, 0, 0, 0.52);
    font-size: 12px;
}

.catalog-search-field img {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    opacity: 0.5;
}

.catalog-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.catalog-search-field input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.catalog-search-submit {
    height: 40px;
    border: 0;
    border-radius: var(--radius-pill);
    background: #000000;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.catalog-toolbar :disabled {
    opacity: 1;
    cursor: default;
}

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

.catalog-results {
    min-width: 0;
    grid-column: 1 / -1;
}

.catalog-layout.is-expanded .catalog-results {
    grid-column: 2;
}

.catalog-layout.is-expanded {
    grid-template-columns: 300px minmax(0, 1fr);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.catalog-layout.is-expanded .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
    width: 100%;
    height: 284px;
    min-width: 0;
    display: grid;
    grid-template-rows: 42px minmax(0, 1fr) 42px;
    overflow: hidden;
    border: 2px solid #111111;
    border-radius: 35px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.catalog-card-bar {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 16px;
    background: #111111;
    color: #ffffff;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    overflow-wrap: anywhere;
}

.catalog-card-bar:last-child {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 17px;
    font-weight: 400;
}

.catalog-card-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-card-image {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

.catalog-card.is-locked .catalog-card-image {
    background: #e1e1e1;
}

.catalog-card.is-locked .catalog-card-image::before,
.catalog-card.is-locked .catalog-card-image::after,
.catalog-card.is-locked .catalog-card-image img {
    display: none;
    content: none;
}

.catalog-card.is-locked .catalog-card-image > :not(.catalog-card-lock) {
    display: none;
}

.catalog-card-lock {
    position: absolute;
    z-index: 3;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: url("../images/design/catalog-access-lock.svg") center / contain no-repeat;
}

.catalog-verification-flag {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.12);
}

.catalog-verification-flag::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 11px;
    width: 2px;
    height: 19px;
    border-radius: 2px;
    background: #777777;
}

.catalog-verification-flag::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 13px;
    width: 12px;
    height: 9px;
    border-radius: 1px;
    background: #a7a7a7;
    clip-path: polygon(0 0, 100% 0, 76% 50%, 100% 100%, 0 100%);
}

.catalog-verification-flag.is-active::before,
.catalog-verification-flag.is-active::after {
    background: #148437;
}

.catalog-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -28deg,
        transparent 0 84px,
        rgba(17, 17, 17, 0.028) 85px 86px,
        transparent 87px 170px
    );
}

.catalog-card-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: transparent;
}

.passenger-grid .catalog-card-image img {
    object-fit: contain;
}

.catalog-card-image.is-empty::before {
    content: "Чертёж пока не загружен";
    align-self: center;
    justify-self: center;
    margin: auto;
    color: rgba(17, 17, 17, 0.38);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.locomotive-card-body {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
}

.locomotive-card-body > * {
    position: relative;
    z-index: 1;
}

.locomotive-card-body > .catalog-card-lock {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
}

.locomotive-card-body strong { font-size: 20px; }
.locomotive-card-body span { color: var(--muted); }
.locomotive-card-body small { font-size: 12px; }
.locomotive-card-body.has-drawing { padding: 0; }
.locomotive-card-body.has-drawing img { width: 100%; height: 100%; object-fit: contain; }
.locomotive-drawing { margin: 24px 0; overflow: hidden; border: 1px solid #bdbdbd; border-radius: 24px; background: #fff; }
.locomotive-drawing img { display: block; width: 100%; max-height: 680px; object-fit: contain; }
.locomotive-drawing figcaption { padding: 10px 18px; border-top: 1px solid #ddd; }
.locomotive-inheritance-note { margin-top: 24px; }
.locomotive-family-chips { max-height: 260px; overflow-y: auto; align-content: flex-start; }
.locomotive-family { margin-top: 24px; }
.locomotive-family-list { display: flex; flex-wrap: wrap; gap: 10px; }
.locomotive-family-list a { border: 1px solid #111; border-radius: 999px; padding: 8px 14px; color: inherit; text-decoration: none; }
.locomotive-family-list a[aria-current="page"] { background: #111; color: #fff; }

.catalog-status {
    grid-column: 1 / -1;
    min-height: 285px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.catalog-fallback {
    display: contents;
}

.catalog-status-noscript,
.catalog-status-fallback {
    min-height: auto;
    grid-column: 1 / -1;
    padding: 12px 0 4px;
    text-align: center;
}

.catalog-status-retry {
    display: block;
    margin: 10px auto 0;
    border: 1px solid var(--ink);
    border-radius: 4px;
    padding: 7px 14px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.catalog-status-retry:hover,
.catalog-status-retry:focus-visible {
    background: var(--ink);
    color: #ffffff;
}

.catalog-filters {
    grid-column: 1;
    margin-top: -63px;
    display: flex;
    flex-direction: column;
    border: 1px solid #000000;
    border-radius: 21px;
    padding: 76px 20px 24px;
    background: #ffffff;
}

.catalog-filters[hidden] {
    display: none;
}

.catalog-filters .chip-group {
    margin: 0 0 12px;
}

.catalog-filters .chip-group-label {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1;
}

.catalog-filters .chip-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

.catalog-filters .chip-row-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.catalog-filters .chip {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    height: auto;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #000000;
    padding: 3px 9px;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: break-word;
    text-align: center;
    white-space: normal;
}

.filters-reset {
    margin-top: 12px;
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.5);
    font: inherit;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

.catalog-results .pagination {
    min-height: 32px;
    margin: 24px 0 0;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-results .pagination button {
    width: auto;
    min-width: 32px;
    height: 32px;
    border: 1px solid #000000;
    border-radius: 16px;
    padding: 0 8px;
    font: inherit;
    font-size: 14px;
    line-height: 30px;
}

.catalog-results .pagination-ellipsis {
    color: #000000;
    font-size: 16px;
}

@media (max-width: 1050px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-layout.is-expanded {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .catalog-layout.is-expanded .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .catalog-page {
        padding-top: 48px;
    }

    .catalog-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .filters-toggle {
        width: 300px;
        max-width: 100%;
    }

    .catalog-layout,
    .catalog-layout.is-expanded {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 24px;
    }

    .catalog-filters {
        grid-column: 1;
        width: 300px;
        max-width: 100%;
        min-height: 0;
        margin-top: -40px;
        margin-bottom: 24px;
    }

    .catalog-results,
    .catalog-layout.is-expanded .catalog-results {
        grid-column: 1;
    }

    .catalog-grid,
    .catalog-layout.is-expanded .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .catalog-search {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .catalog-grid,
    .catalog-layout.is-expanded .catalog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-card {
        max-width: 340px;
        margin: 0 auto;
    }

}

/* Model detail page */

.model-page {
    width: 1138px;
    max-width: 100%;
    padding: 22px 0 150px;
}

.model-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    text-decoration: none;
}

.model-back:hover {
    text-decoration: underline;
}

.model-back-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
    border-radius: 50%;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.model-heading {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 36px;
    align-items: start;
}

.model-heading-main {
    min-width: 0;
}

.model-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05;
}

.model-official-name {
    margin: 8px 0 0;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
}

.model-description {
    margin: 18px 0 0;
    color: rgba(0, 0, 0, 0.68);
    font-size: 17px;
    line-height: 1.45;
}

.model-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.model-tags span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    padding: 7px 17px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.model-tags img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.model-key-specs {
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    padding: 9px 16px;
    background: #ffffff;
}

.model-key-specs div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(94px, auto);
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.model-key-specs div:last-child {
    border-bottom: 0;
}

.model-key-specs dt,
.model-key-specs dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.25;
}

.model-key-specs dt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.model-key-specs dt img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.model-key-specs dd {
    font-family: var(--font-serif);
    font-weight: 700;
    text-align: right;
}

.model-drawing {
    position: relative;
    width: 100%;
    min-height: 448px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    padding: 22px 34px 18px;
    background: #ffffff;
}

.model-drawing > img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: contain;
}

.model-drawing > .model-drawing-sheet {
    object-fit: contain;
    object-position: center;
}

.model-empty-image {
    margin: 0;
    color: var(--muted);
}

.model-thumbnails {
    width: 100%;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 34px;
}

.model-thumbnail {
    width: 136px;
    min-height: 86px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 10px;
}

.model-thumbnail.is-pending {
    color: rgba(0, 0, 0, 0.48);
}

.model-thumbnail-preview {
    width: 64px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    background: linear-gradient(0deg, #f7f7f7, #ffffff);
}

.model-thumbnail-preview::before,
.model-construction-placeholder::before {
    content: "";
    display: block;
    width: 22px;
    height: 28px;
    margin: 4px auto 0;
    border: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 2px;
    background:
        linear-gradient(135deg, transparent 0 72%, rgba(0, 0, 0, 0.24) 73% 78%, transparent 79%),
        linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)) 6px 10px / 10px 1px no-repeat,
        linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)) 6px 15px / 10px 1px no-repeat,
        #ffffff;
}

.model-thumbnail-preview-general_view {
    background:
        radial-gradient(circle at 16px 25px, transparent 0 7px, rgba(0, 0, 0, 0.3) 8px 9px, transparent 10px),
        radial-gradient(circle at 48px 25px, transparent 0 7px, rgba(0, 0, 0, 0.3) 8px 9px, transparent 10px),
        linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.26)) 8px 23px / 48px 1px no-repeat,
        #ffffff;
}

.model-thumbnail strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.model-summary-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid #000000;
    border-radius: 8px;
    overflow: hidden;
}

.model-summary-item {
    min-width: 0;
    min-height: 88px;
    padding: 15px 18px;
    border-left: 1px solid rgba(0, 0, 0, 0.24);
}

.model-summary-item:first-child {
    border-left: 0;
}

.model-summary-item span,
.model-equipment-label,
.model-pair-list dt {
    display: block;
    color: rgba(0, 0, 0, 0.58);
    font-size: 14px;
    line-height: 1.25;
}

.model-summary-item strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.15;
}

.model-tabs {
    margin-top: 17px;
}

.model-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.model-tab-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
}

.model-tab-list label {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 6px 0 9px;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.model-tab-list label + label {
    margin-left: 0;
}

.model-tab-panels {
    padding-top: 11px;
}

.model-tab-panel {
    display: none;
}

#model-tab-general:checked ~ .model-tab-list label[for="model-tab-general"],
#model-tab-tech:checked ~ .model-tab-list label[for="model-tab-tech"],
#model-tab-production:checked ~ .model-tab-list label[for="model-tab-production"],
#model-tab-construction:checked ~ .model-tab-list label[for="model-tab-construction"],
#model-tab-dimensions:checked ~ .model-tab-list label[for="model-tab-dimensions"],
#model-tab-equipment:checked ~ .model-tab-list label[for="model-tab-equipment"],
#model-tab-documents:checked ~ .model-tab-list label[for="model-tab-documents"] {
    border-bottom-color: #000000;
}

#model-tab-general:checked ~ .model-tab-panels .model-tab-panel-general,
#model-tab-tech:checked ~ .model-tab-panels .model-tab-panel-tech,
#model-tab-production:checked ~ .model-tab-panels .model-tab-panel-production,
#model-tab-construction:checked ~ .model-tab-panels .model-tab-panel-construction,
#model-tab-dimensions:checked ~ .model-tab-panels .model-tab-panel-dimensions,
#model-tab-equipment:checked ~ .model-tab-panels .model-tab-panel-equipment,
#model-tab-documents:checked ~ .model-tab-panels .model-tab-panel-documents {
    display: block;
}

.model-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.model-info-card,
.model-spec-section {
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 20px 22px;
    background: #ffffff;
}

.model-general-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 0.95fr);
    gap: 12px;
}

.model-documents-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 12px;
}

.model-tech-card,
.model-construction-card,
.model-dimensions-card,
.model-equipment-card,
.model-timeline-card,
.model-production-features {
    margin-top: 0;
}

.model-tech-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.model-tech-columns .model-spec-table {
    padding: 10px 18px 0;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.model-tech-columns .model-spec-table:first-child {
    padding-left: 0;
    border-left: 0;
}

.model-tech-columns .model-spec-table:last-child {
    padding-right: 0;
}

.model-construction-layout,
.model-dimensions-layout {
    display: grid;
    gap: 20px;
    align-items: start;
}

.model-construction-layout {
    grid-template-columns: minmax(0, 1fr);
}

.model-construction-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    align-items: start;
}

.model-construction-groups-coveredcar .model-construction-group:nth-child(1),
.model-construction-groups-gondolacar .model-construction-group:nth-child(1),
.model-construction-groups-flatcar .model-construction-group:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.model-construction-groups-coveredcar .model-construction-group:nth-child(2),
.model-construction-groups-gondolacar .model-construction-group:nth-child(2),
.model-construction-groups-flatcar .model-construction-group:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.model-construction-groups-coveredcar .model-construction-group:nth-child(3),
.model-construction-groups-gondolacar .model-construction-group:nth-child(3),
.model-construction-groups-flatcar .model-construction-group:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
}

.model-construction-groups-gondolacar .model-construction-group:nth-child(3),
.model-construction-groups-flatcar .model-construction-group:nth-child(3) {
    grid-row: 1 / span 2;
}

.model-construction-groups-coveredcar .model-construction-group:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.model-dimensions-layout {
    grid-template-columns: 370px minmax(0, 1fr);
}

.model-construction-figure,
.model-dimensions-figure {
    min-height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: #ffffff;
}

.model-construction-figure {
    flex-direction: column;
    gap: 14px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
}

.model-construction-figure p {
    margin: 0;
}

.model-construction-placeholder {
    width: 190px;
    height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0, 0, 0, 0.24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 54px 70px, transparent 0 21px, rgba(0, 0, 0, 0.22) 22px 23px, transparent 24px),
        radial-gradient(circle at 136px 70px, transparent 0 21px, rgba(0, 0, 0, 0.22) 22px 23px, transparent 24px),
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)) 30px 70px / 130px 1px no-repeat,
        #ffffff;
}

.model-dimensions-figure {
    min-height: 430px;
}

.model-construction-figure img,
.model-dimensions-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.model-construction-legend {
    margin: 0;
    padding: 0 0 0 26px;
    font-size: 14px;
    line-height: 1.35;
}

.model-construction-legend li + li {
    margin-top: 8px;
}

.model-subcard-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.model-subcard {
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    padding: 16px 18px;
}

.model-subcard h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.2;
}

.model-documents-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.model-info-card h2,
.model-spec-section h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.model-pair-list {
    margin: 0;
    display: grid;
    gap: 14px;
}

.model-pair-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 14px;
}

.model-pair-list dd {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.model-check-list,
.model-document-list,
.model-note-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.model-check-list {
    display: grid;
    gap: 10px;
}

.model-check-list li {
    min-width: 0;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
}

.model-check-list li > span {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.model-check-list strong {
    min-width: 0;
    font-size: 15px;
    line-height: 1.25;
}

.model-check-list em {
    grid-column: 2;
    margin-top: 2px;
    color: rgba(0, 0, 0, 0.62);
    font-size: 14px;
    font-style: normal;
    line-height: 1.25;
}

.model-document-list {
    display: grid;
    gap: 12px;
}

.model-document-list li {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.model-document-list li.is-pending {
    color: rgba(0, 0, 0, 0.48);
}

.model-document-icon {
    width: 42px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.28);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.model-document-icon img {
    width: 24px;
    height: 24px;
}

.model-document-list strong,
.model-document-list span,
.model-document-list small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.model-document-list strong {
    font-size: 15px;
    line-height: 1.2;
}

.model-document-list span,
.model-document-list small {
    margin-top: 2px;
    color: rgba(0, 0, 0, 0.58);
    font-size: 13px;
    line-height: 1.2;
}

.model-card-button {
    width: 100%;
    min-height: 34px;
    margin-top: 16px;
    border: 1px solid #000000;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: default;
}

.model-download-button {
    min-width: 92px;
    min-height: 32px;
    border: 1px solid #000000;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.model-download-button:disabled {
    border-color: rgba(0, 0, 0, 0.22);
    color: rgba(0, 0, 0, 0.38);
}

.model-equipment-card {
    margin-top: 8px;
}

.model-equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.model-equipment-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    padding: 16px 18px;
}

.model-equipment-label {
    grid-column: 1 / -1;
    color: #000000;
    font-size: 16px;
}

.model-equipment-visual {
    width: 150px;
    height: 76px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    background:
        radial-gradient(circle at 24px 34px, #ffffff 0 8px, #000000 9px 12px, transparent 13px),
        radial-gradient(circle at 72px 34px, #ffffff 0 8px, #000000 9px 12px, transparent 13px),
        linear-gradient(160deg, transparent 0 22%, #8b8b8b 23% 37%, transparent 38%),
        linear-gradient(20deg, transparent 0 26%, #b5b5b5 27% 42%, transparent 43%),
        #d8d8d8;
}

.model-equipment-copy strong,
.model-equipment-copy span {
    display: block;
}

.model-equipment-copy strong {
    font-size: 18px;
    line-height: 1.2;
}

.model-equipment-copy span {
    margin-top: 3px;
    color: rgba(0, 0, 0, 0.64);
    font-size: 14px;
    line-height: 1.25;
}

.model-equipment-copy dl {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.model-equipment-copy dl div {
    display: inline-flex;
    gap: 4px;
    color: rgba(0, 0, 0, 0.62);
    font-size: 12px;
}

.model-equipment-copy dt,
.model-equipment-copy dd {
    margin: 0;
}

.model-spec-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.model-spec-section {
    padding-bottom: 24px;
}

.model-spec-table {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.model-spec-table > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.95fr);
    align-items: start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.model-spec-table dt,
.model-spec-table dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
}

.model-spec-table dd {
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-serif);
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.model-general-table dd {
    text-align: left;
}

.model-general-table > div:last-child {
    align-items: start;
}

.model-quick-list {
    margin: 0;
    display: grid;
    gap: 0;
}

.model-quick-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
    gap: 14px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.model-quick-list div:last-child {
    border-bottom: 0;
}

.model-quick-list dt,
.model-quick-list dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
}

.model-quick-list dt {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.model-quick-list dd {
    font-family: var(--font-serif);
    font-weight: 700;
    text-align: right;
}

.model-quick-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid #000000;
    border-radius: 4px;
}

img.model-quick-icon {
    border: 0;
    border-radius: 0;
}

.model-wide-card {
    margin-top: 8px;
}

.model-production-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.model-production-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.model-timeline-card,
.model-production-features {
    margin-top: 12px;
}

.model-timeline {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    counter-reset: production-step;
}

.model-timeline li {
    position: relative;
    min-width: 0;
    padding: 34px 10px 0;
    text-align: center;
}

.model-timeline li::before {
    counter-increment: production-step;
    content: counter(production-step);
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    border: 1px solid #000000;
    border-radius: 50%;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.model-timeline li::after {
    content: "";
    position: absolute;
    top: 12px;
    left: calc(50% + 12px);
    width: calc(100% - 24px);
    height: 1px;
    background: rgba(0, 0, 0, 0.28);
}

.model-timeline li:last-child::after {
    display: none;
}

.model-timeline strong,
.model-timeline span,
.model-feature-grid strong,
.model-feature-grid span {
    display: block;
}

.model-timeline strong {
    font-size: 14px;
    line-height: 1.2;
}

.model-timeline span {
    margin-top: 6px;
    color: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    line-height: 1.25;
}

.model-feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.model-feature-grid div {
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 14px;
}

.model-feature-grid strong {
    font-size: 14px;
    line-height: 1.2;
}

.model-feature-grid span {
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.62);
    font-size: 13px;
    line-height: 1.25;
}

.model-production-list article {
    min-width: 0;
}

.model-production-list h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.2;
}

.model-note-list {
    display: grid;
    gap: 12px;
}

.model-note-list li {
    display: grid;
    gap: 4px;
}

.model-note-list strong {
    font-size: 16px;
}

.model-note-list span,
.model-muted {
    color: rgba(0, 0, 0, 0.62);
    line-height: 1.35;
}

@media (max-width: 900px) {
    .model-page {
        padding-bottom: 100px;
    }

    .model-heading,
    .model-general-layout,
    .model-card-grid,
    .model-spec-grid,
    .model-production-list,
    .model-production-layout,
    .model-tech-columns,
    .model-construction-layout,
    .model-dimensions-layout,
    .model-equipment-grid,
    .model-feature-grid,
    .model-documents-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .model-tech-columns .model-spec-table {
        padding: 10px 0 0;
        border-left: 0;
    }

    .model-tech-columns .model-spec-table + .model-spec-table {
        margin-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }

    .model-subcard-grid,
    .model-timeline {
        grid-template-columns: minmax(0, 1fr);
    }

    .model-construction-groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .model-construction-groups .model-construction-group:nth-child(-n + 4) {
        grid-column: auto;
        grid-row: auto;
    }

    .model-timeline li {
        padding: 0 0 0 38px;
        text-align: left;
    }

    .model-timeline li::before {
        left: 0;
        transform: none;
    }

    .model-timeline li::after {
        top: 24px;
        left: 12px;
        width: 1px;
        height: calc(100% + 10px);
    }

    .model-tab-list label {
        flex: 0 1 auto;
        border-bottom: 3px solid transparent;
        border-radius: 0;
    }

    .model-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .model-summary-item {
        border-top: 1px solid rgba(0, 0, 0, 0.24);
    }

    .model-summary-item:nth-child(-n + 2) {
        border-top: 0;
    }

    .model-summary-item:nth-child(odd) {
        border-left: 0;
    }

    .model-drawing {
        min-height: 260px;
        padding: 24px;
    }

    .model-thumbnails {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 540px) {
    .model-page {
        padding-top: 30px;
    }

    .model-title {
        font-size: 32px;
    }

    .model-official-name {
        font-size: 20px;
    }

    .model-key-specs div,
    .model-quick-list div,
    .model-document-list li,
    .model-equipment-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .model-equipment-visual {
        width: 100%;
        max-width: 160px;
    }

    .model-key-specs dd,
    .model-quick-list dd {
        text-align: left;
    }

    .model-tab-list {
        gap: 0 18px;
        justify-content: flex-start;
    }

    .model-tab-list label {
        min-height: 38px;
        font-size: 14px;
    }

    .model-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .model-summary-item,
    .model-summary-item:nth-child(-n + 2) {
        border-top: 1px solid rgba(0, 0, 0, 0.24);
        border-left: 0;
    }

    .model-summary-item:first-child {
        border-top: 0;
    }

    .model-drawing {
        min-height: 220px;
        padding: 16px;
    }

    .model-info-card,
    .model-spec-section {
        padding: 18px;
    }

    .model-pair-list > div,
    .model-spec-table > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .model-spec-table dd {
        text-align: left;
    }

    .model-spec-table dt,
    .model-spec-table dd {
        font-size: 14px;
    }
}

/* Tariffs */

.tariffs-intro {
    padding: 47px 0 29px;
}

.tariffs-intro h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.tariffs-lead {
    max-width: 760px;
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.25;
}

.tariffs-group {
    padding: 0;
}

.tariffs-group + .tariffs-group {
    margin-top: 28px;
}

.tariffs-group-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
    margin: 0 0 16px;
}

.tariffs-group-title strong {
    font-weight: 700;
}

.tariffs-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.tariff-card {
    min-width: 0;
    height: 471px;
    border: 1px solid #000000;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
}

.tariff-card-bar {
    height: 80px;
    flex: 0 0 80px;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.tariff-card-body {
    padding: 16px 39px 31px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tariff-card-summary {
    text-align: left;
}

.tariff-card-summary p {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
}

.tariff-card-summary p + p {
    margin-top: 8px;
}

.tariff-card-summary strong,
.tariff-card-details strong {
    font-family: var(--font-sans);
    font-weight: 800;
}

.tariff-card-details {
    margin-top: 27px;
    flex: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
    line-height: 1.2;
}

.tariff-card-details p {
    margin: 0;
}

.tariff-card-details p + p {
    margin-top: 16px;
}

.tariff-card-btn {
    width: 207px;
    height: 68px;
    margin: 36px auto 0;
}

.tariff-card form {
    display: contents;
}

.tariffs-footer-train {
    width: 100vw;
    max-width: 1440px;
    height: 68px;
    margin: 49px auto -3px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.tariffs-footer-train img {
    display: block;
    width: 100%;
    height: 68px;
    object-fit: fill;
}

@media (max-width: 1050px) {
    .tariffs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tariffs-page,
    .tariffs-group,
    .tariffs-row,
    .tariff-card {
        min-width: 0;
        max-width: 100%;
    }

    .tariffs-intro {
        padding-top: 36px;
    }

    .tariffs-group-title {
        overflow-wrap: anywhere;
    }

    .tariffs-lead br {
        display: none;
    }

    .tariffs-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tariff-card {
        height: 471px;
    }

    .tariffs-footer-train {
        height: 48px;
        margin-top: 36px;
    }

    .tariffs-footer-train img {
        width: auto;
        min-width: 900px;
        height: 48px;
        object-fit: fill;
        object-position: right bottom;
    }
}

/* Personal cabinet */

.cabinet-page {
    padding: 59px 0 60px;
}

.cabinet-page h1 {
    margin-bottom: 34px;
}

.cab-saved-models {
    margin-top: 22px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 18px;
}

.cab-saved-models h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.cab-saved-models ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cab-saved-models li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cab-saved-model-remove {
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.58);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.cab-saved-model-remove:hover,
.cab-saved-model-remove:focus-visible {
    color: var(--ink);
}

.cab-saved-models a {
    display: grid;
    gap: 2px;
    color: #111;
    text-decoration: none;
}

.cab-saved-models a:hover strong {
    text-decoration: underline;
}

.cab-saved-models span,
.cab-saved-models p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: 527px 639px;
    gap: 33px;
    align-items: start;
}

.cab-panel {
    border: 1.5px solid var(--border);
    border-radius: 28.5px;
    padding: 33px 32px 32px;
}

.cab-panel h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 17px;
}

.cab-avatar {
    display: block;
    position: relative;
    width: 151px;
    height: 151px;
    margin: 0 auto 32px;
    cursor: pointer;
}

.cab-avatar img.frame {
    display: block;
    width: 100%;
    height: 100%;
}

.cab-avatar img.frame.photo {
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cab-avatar img.upload-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: auto;
}

.cab-avatar input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.cab-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 39px;
    width: 100%;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 0 18px;
    font-size: 15px;
}

.cab-field + .cab-field {
    margin-top: 17px;
}

.cab-field img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.cab-field .sep {
    color: var(--muted);
}

.cab-field .value {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cab-field .cab-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0;
    background: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--muted);
}

.cab-save {
    display: flex;
    margin: 24px auto 0;
}

.cab-message {
    color: #1a7a1a;
    font-size: 14px;
    text-align: center;
    margin: 0 0 12px;
}

.cab-error {
    color: #b00020;
    font-size: 13px;
    margin: 8px 0 0;
    padding-left: 18px;
}

.cab-avatar-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 20px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.cab-avatar-status[hidden] {
    display: none;
}

.cab-avatar-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #d4d4d4;
    border-top-color: #151515;
    border-radius: 50%;
    animation: cab-avatar-spin 0.75s linear infinite;
}

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

.cab-tariff-panel {
    border: 1.5px solid var(--border);
    border-radius: 28.5px;
    padding: 33px 39px 32px;
}

.cab-tariff-row {
    display: flex;
    gap: 22px;
    margin-top: 17px;
}

.cab-tariff-row .cab-field {
    margin-top: 0;
}

.cab-purchases {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.cab-purchases h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.cab-return-link {
    display: inline-flex;
    margin: -2px 0 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.cab-purchases ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cab-purchases li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.cab-purchase > div {
    display: grid;
    gap: 4px;
}

.cab-purchase-meta {
    font-size: 13px;
}

.cab-purchase-next-step {
    max-width: 520px;
    font-size: 13px;
    line-height: 1.35;
}

.cab-purchase-status {
    flex: 0 0 auto;
    text-align: right;
}

.cab-purchase-pending .cab-purchase-status {
    color: #875d00;
}

.cab-purchase-paid .cab-purchase-status {
    color: #167838;
}

.cab-purchases span,
.cab-purchases p {
    color: rgba(0, 0, 0, 0.6);
}

.cab-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    margin-top: 32px;
}

.cab-action-card {
    height: 188px;
    border: 1.5px solid var(--border);
    border-radius: 28.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

a.cab-action-card {
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.cab-action-card:hover,
a.cab-action-card:focus-visible {
    border-color: var(--ink);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cab-action-card img {
    width: 40px;
    height: 40px;
}

.cab-logout {
    display: flex;
    width: 178px;
    margin: 63px auto 0;
}

@media (max-width: 900px) {
    .site-nav .cabinet-badge {
        width: 180px;
        height: 37px;
        flex: 0 0 180px;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .hero-art,
    .hero-main,
    .hero-text {
        min-width: 0;
        max-width: 100%;
    }

    .hero-art {
        width: auto;
    }

    .hero-main {
        width: 100%;
        max-width: 100%;
    }

    .hero-text h1 br {
        display: none;
    }

    .cab-purchases li {
        align-items: flex-start;
        flex-direction: column;
    }

    .cab-purchase-status {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .site-nav {
        gap: 12px;
    }

    .site-nav .cabinet-badge {
        width: 166px;
        height: 34px;
        flex-basis: 166px;
    }

    .hero-text h1 {
        font-size: 25px;
        line-height: 1.12;
    }

    .feature-list li {
        align-items: flex-start;
        gap: 14px;
        padding: 7px 0;
        font-size: 16px;
    }

    .hero-action {
        width: 100%;
        max-width: 277px;
    }
}


/* Keep the document width stable when tabs change the page height. */
@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}
