: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: -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 {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

/* Navigation */

.site-header {
    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 {
    margin-top: 64px;
    background: black;
    color: var(--paper);
    padding: 40px 0;
    line-height: 1.2;
    min-height: 240px;
    flex: 1 0 auto;
    position: relative;
    z-index: 2;
}

.footer-train {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    height: 70px;
    margin: 0 auto -3px;
    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 {
    display: flex;
    gap: 40px;
}

.footer-brand {
    flex: 0 0 306px;
    padding-top: 4px;
}

.logo-footer {
    display: block;
}

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

.footer-tagline {
    width: 237px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    line-height: 24px;
    margin: 0 auto;
}

.footer-nav {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 0 0 140px;
}

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

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

.footer-contact,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 6px;
}

.footer-contact {
    flex: 0 0 340px;
}

.footer-legal {
    flex: 1;
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    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-row a {
    color: var(--paper);
    text-decoration: none;
}

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

@media (max-width: 900px) {
    .footer-inner {
        flex-wrap: wrap;
    }
}

.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: 48px;
    align-items: start;
    min-height: 597px;
    padding: 82px 0 33px;
}

.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;
}

.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-footer-train {
    width: 100%;
    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 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: 26px;
    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: 16px;
}

.contacts-requisites p {
    margin: 0;
}

.contacts-social-row {
    margin-top: -2px;
}

.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: 31px;
    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;
    height: 541px;
    margin-top: 66px;
    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: 20px;
}

.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;
}

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

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

@media (max-width: 850px) {
    .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-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;
    }
}

@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-page-form {
        grid-template-columns: minmax(0, 1fr);
    }

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

/* Catalog */

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

.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: 282px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin: 20px 0 0;
}

.filters-toggle {
    position: relative;
    width: 282px;
    height: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #000000;
    border-radius: var(--radius-pill);
    padding: 0 39px 0 10px;
    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: 35px;
    height: 35px;
    transform: translateY(-50%);
}

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

.catalog-search-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;
}

.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: 35px;
    border: 0;
    border-radius: var(--radius-pill);
    background: #000000;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

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

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

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

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

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

.catalog-card {
    width: 100%;
    height: 285px;
    min-width: 0;
    display: grid;
    grid-template-rows: 37px minmax(0, 1fr) 37px;
    overflow: hidden;
    border: 2px solid #000000;
    border-radius: 35px;
    color: inherit;
    text-decoration: none;
}

.catalog-card-bar {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 14px;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-card-bar:last-child {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
}

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

.catalog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.catalog-filters {
    grid-column: 1;
    height: 647px;
    margin-top: -63px;
    display: flex;
    flex-direction: column;
    border: 1px solid #000000;
    border-top: 0;
    border-radius: 0 0 29px 29px;
    padding: 71px 31px 28px;
    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: repeat(2, minmax(0, 1fr));
    gap: 8px 6px;
}

.catalog-filters .chip {
    width: 100%;
    min-width: 0;
    height: 36px;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #000000;
    padding: 0 8px;
    font: inherit;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filters-reset {
    margin-top: auto;
    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: 22px;
    margin: 22px 0 0;
    gap: 8px;
}

.catalog-results .pagination button {
    width: 22px;
    height: 22px;
    border: 1.5px solid #000000;
    padding: 0;
    font: inherit;
    font-size: 14px;
    line-height: 19px;
}

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

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

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

    .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: 282px;
        max-width: 100%;
    }

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

    .catalog-filters {
        grid-column: 1;
        width: 282px;
        max-width: 100%;
        height: auto;
        min-height: 560px;
        margin-top: -36px;
        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: 282px;
        margin: 0 auto;
    }
}

/* Model detail page */

.model-page {
    width: 1118px;
    max-width: 100%;
    padding: 42px 0 170px;
}

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

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

.model-back-icon {
    width: 18px;
    height: 18px;
    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-title {
    margin: 37px 0 39px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
}

.model-drawing {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #000000;
    border-radius: 25px;
    padding: 34px 40px;
    background: #ffffff;
}

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

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

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

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

.model-spec-section {
    min-width: 0;
    padding: 14px 20px 29px 0;
    border-top: 1px solid #000000;
}

.model-spec-section:nth-child(even) {
    padding-right: 0;
    padding-left: 20px;
    border-left: 1px solid #000000;
}

.model-spec-section:nth-child(-n + 2) {
    border-top: 0;
    padding-top: 0;
}

.model-spec-section h2 {
    margin: 0 0 13px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

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

.model-spec-table > div {
    min-width: 0;
    min-height: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: start;
    gap: 12px;
}

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

.model-spec-table dd {
    min-width: 0;
    min-height: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 11px;
    padding: 1px 9px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-spec-table .model-spec-parent dd {
    visibility: hidden;
}

.model-spec-child dt {
    position: relative;
    padding-left: 18px;
}

.model-spec-child dt::before {
    content: "•";
    position: absolute;
    left: 4px;
}

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

    .model-drawing {
        height: min(450px, 52vw);
        min-height: 260px;
        padding: 24px;
    }

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

    .model-spec-section,
    .model-spec-section:nth-child(even),
    .model-spec-section:nth-child(-n + 2) {
        padding: 24px 0;
        border-top: 1px solid #000000;
        border-left: 0;
    }

    .model-spec-section:first-child {
        padding-top: 0;
        border-top: 0;
    }
}

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

    .model-title {
        margin: 28px 0;
        font-size: 24px;
    }

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

    .model-spec-section h2 {
        font-size: 17px;
    }

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

    .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: center;
}

.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-serif);
    font-weight: 800;
}

.tariff-card-details {
    margin-top: 27px;
    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: auto auto 0;
}

.tariffs-footer-train {
    width: 100%;
    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;
}

.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-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-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;
}

.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;
    }
}

@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;
    }
}
