:root {
    --company-blue: #0a326c;
    --company-blue-deep: #041f47;
    --company-blue-soft: #edf4fb;
    --company-text: #1b2430;
    --company-muted: #687485;
    --company-border: #d7e1ed;
    --company-white: #ffffff;
    --company-container: 1190px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.company-page {
    position: relative;
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--company-text);
    background: var(--company-white);
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.company-page a {
    color: inherit;
    text-decoration: none;
}

.company-page img {
    display: block;
    max-width: 100%;
}

.company-page button,
.company-page input,
.company-page select,
.company-page textarea {
    font: inherit;
}

.company-page button,
.company-page select {
    cursor: pointer;
}

.company-page :focus-visible {
    outline: 3px solid rgba(30, 104, 185, 0.42);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Shared header */
.site-header {
    height: 82px;
    border-bottom: 1px solid #edf1f5;
    background: #ffffff;
}

.site-header__inner {
    width: min(var(--company-container), calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand__mark {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand__text strong {
    color: #101722;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.brand__text small {
    color: #727b88;
    font-size: 13px;
    font-weight: 500;
}

.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(38px, 5vw, 72px);
}

.main-nav__link {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: #202a37;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.main-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 15px;
    width: 0;
    height: 3px;
    background: var(--company-blue);
    transform: translateX(-50%);
    transition: width 180ms ease;
}

.main-nav__link:hover,
.main-nav__link--active {
    color: var(--company-blue);
}

.main-nav__link:hover::after,
.main-nav__link--active::after {
    width: 38px;
}

/* Shared subpage hero */
.page-hero {
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.page-hero--products {
    background-image: url("../img/company-home/pages/hero-products.webp");
}

.page-hero--about {
    background-image: url("../img/company-home/pages/hero-about.webp");
}

.page-hero--contact {
    background-image: url("../img/company-home/pages/hero-contact.webp");
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 31, 60, 0.78) 0%, rgba(6, 31, 60, 0.54) 35%, rgba(6, 31, 60, 0.08) 66%, transparent 100%);
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    width: min(var(--company-container), calc(100% - 48px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 3vw, 43px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-hero p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Product center */
.catalog-section {
    padding: 34px 0 64px;
    background: #ffffff;
}

.catalog-layout {
    width: min(var(--company-container), calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.catalog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.catalog-categories {
    border: 1px solid var(--company-border);
    background: #ffffff;
}

.catalog-categories h3 {
    margin: -1px -1px 0;
    padding: 15px 18px;
    color: #ffffff;
    background: linear-gradient(125deg, #0a3c7f, #052755);
    font-size: 18px;
    font-weight: 750;
    text-align: center;
}

.catalog-category-list {
    padding: 4px 18px 8px;
}

.catalog-category {
    width: 100%;
    min-height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #e7edf4;
    color: #263342;
    background: transparent;
    font-size: 15px;
    text-align: left;
    transition: color 160ms ease, padding 160ms ease;
}

.catalog-category:last-child {
    border-bottom: 0;
}

.catalog-category svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalog-category:hover,
.catalog-category.is-active {
    padding-left: 4px;
    color: var(--company-blue);
    font-weight: 700;
}

.catalog-help {
    min-height: 176px;
    padding: 22px 14px 20px;
    border: 1px solid #dbe8f5;
    text-align: center;
    background: linear-gradient(145deg, #f7fbff 0%, #edf5fc 100%);
}

.catalog-help img {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.catalog-help h3 {
    margin: 0;
    color: var(--company-blue);
    font-size: 17px;
}

.catalog-help p {
    margin: 7px 0 4px;
    color: #627185;
    font-size: 12px;
    line-height: 1.6;
}

.catalog-help a {
    color: var(--company-blue);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

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

.catalog-filters {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(235px, 1.2fr);
    gap: 14px;
    align-items: end;
}

.filter-field {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(82px, 1fr);
    gap: 7px;
    align-items: center;
}

.filter-field label {
    color: #3e4958;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.filter-select {
    position: relative;
    min-width: 0;
}

.filter-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 11px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #6b7a8e;
    border-bottom: 1.5px solid #6b7a8e;
    pointer-events: none;
    transform: translateY(-68%) rotate(45deg);
}

.filter-select select,
.filter-search input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--company-border);
    border-radius: 2px;
    color: #344154;
    background: #ffffff;
    font-size: 12px;
}

.filter-select select {
    padding: 0 30px 0 10px;
    appearance: none;
}

.filter-search {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
}

.filter-search input {
    padding: 0 12px;
    border-right: 0;
}

.filter-search input::placeholder {
    color: #9da7b4;
}

.filter-search button {
    border: 1px solid var(--company-blue);
    border-radius: 0 2px 2px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0a3c7e, #052958);
    font-size: 13px;
    font-weight: 700;
}

.catalog-summary {
    min-height: 36px;
    padding-top: 11px;
    color: #7a8797;
    font-size: 12px;
    text-align: right;
}

.catalog-summary strong {
    color: var(--company-blue);
    font-size: 14px;
}

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

.catalog-card {
    min-width: 0;
    border: 1px solid var(--company-border);
    background: #ffffff;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.catalog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(10, 50, 108, 0.36);
    box-shadow: 0 14px 30px rgba(16, 47, 86, 0.09);
}

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

.catalog-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid #e7edf4;
    background: #f3f6f9;
}

.catalog-card__preview {
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: zoom-in;
}

.catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.catalog-card__preview-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 2px;
    color: #ffffff;
    background: rgba(4, 37, 79, 0.8);
    font-size: 11px;
    line-height: 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.catalog-card__preview:hover .catalog-card__preview-hint,
.catalog-card__preview:focus .catalog-card__preview-hint {
    opacity: 1;
    transform: translateY(0);
}

.catalog-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #8492a3;
    background: #f3f6f9;
    font-size: 13px;
}

.catalog-card:hover .catalog-card__media img {
    transform: scale(1.02);
}

.catalog-card__body {
    padding: 18px 18px 20px;
}

.catalog-card__body h3 {
    margin: 0 0 9px;
    color: #151e2b;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.35;
}

.catalog-card__body dl {
    min-height: 48px;
    margin: 0;
    color: #647184;
    font-size: 11px;
    line-height: 1.8;
}

.catalog-card__body dl div {
    display: flex;
    min-width: 0;
}

.catalog-card__body dt,
.catalog-card__body dd {
    margin: 0;
}

.catalog-card__body dt {
    flex: 0 0 auto;
}

.catalog-card__body dd {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-card__link {
    min-width: 92px;
    height: 31px;
    margin-top: 13px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 3px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0a3c7e, #052958);
    box-shadow: 0 5px 12px rgba(6, 45, 94, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.catalog-card__link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalog-empty {
    min-height: 380px;
    padding: 70px 24px;
    border: 1px dashed #cbd8e7;
    text-align: center;
    background: #f8fbfe;
}

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

.catalog-empty svg {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    fill: none;
    stroke: #7793b5;
    stroke-width: 2;
    stroke-linecap: round;
}

.catalog-empty h3 {
    margin: 0;
    color: var(--company-blue);
    font-size: 20px;
}

.catalog-empty p {
    margin: 8px 0 20px;
    color: var(--company-muted);
    font-size: 14px;
}

.catalog-empty a {
    min-width: 112px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--company-blue);
    color: var(--company-blue);
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

body.has-image-preview {
    overflow: hidden;
}

.image-preview-modal[hidden] {
    display: none;
}

.image-preview-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    padding: 28px;
    display: grid;
    place-items: center;
}

.image-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 15, 33, 0.84);
    backdrop-filter: blur(3px);
}

.image-preview-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1080px);
    max-height: min(840px, calc(100vh - 56px));
    display: grid;
    grid-template-rows: auto minmax(260px, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    outline: none;
}

.image-preview-modal__header,
.image-preview-modal__controls {
    min-height: 56px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
}

.image-preview-modal__header {
    border-bottom: 1px solid #e6edf5;
}

.image-preview-modal__header p {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #1d2c40;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-preview-modal__header button,
.image-preview-modal__controls button {
    border: 1px solid #d4dfeb;
    color: #294662;
    background: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.image-preview-modal__header button {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.image-preview-modal__canvas {
    min-height: 0;
    padding: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #152232;
}

.image-preview-modal__canvas img {
    max-width: 100%;
    max-height: calc(min(840px, 100vh - 56px) - 136px);
    object-fit: contain;
    transform-origin: center;
    transition: transform 180ms ease;
    user-select: none;
}

.image-preview-modal__controls {
    justify-content: center;
    border-top: 1px solid #e6edf5;
}

.image-preview-modal__controls button,
.image-preview-modal__controls output {
    min-width: 38px;
    height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 14px;
}

.image-preview-modal__controls output {
    min-width: 58px;
    border: 1px solid #e1e8f0;
    color: #647386;
    background: #f7f9fb;
}

.image-preview-modal__controls button:last-child {
    min-width: 54px;
}

.image-preview-modal__header button:hover,
.image-preview-modal__header button:focus,
.image-preview-modal__controls button:hover,
.image-preview-modal__controls button:focus {
    border-color: var(--company-blue);
    color: #ffffff;
    background: var(--company-blue);
}

.catalog-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.catalog-pagination .pagination {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    list-style: none;
}

.catalog-pagination li,
.catalog-pagination a,
.catalog-pagination span {
    min-width: 34px;
    height: 34px;
}

.catalog-pagination a,
.catalog-pagination span {
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--company-border);
    border-radius: 2px;
    color: #526174;
    background: #ffffff;
    font-size: 13px;
    line-height: 1;
}

.catalog-pagination a:hover,
.catalog-pagination a:focus {
    border-color: var(--company-blue);
    color: var(--company-blue);
}

.catalog-pagination .active span {
    border-color: var(--company-blue);
    color: #ffffff;
    background: var(--company-blue);
}

.catalog-pagination .disabled span {
    color: #aeb9c5;
    background: #f5f7f9;
}

/* About us */
.about-container {
    width: min(var(--company-container), calc(100% - 48px));
    margin: 0 auto;
}

.about-intro {
    padding: 48px 0 50px;
    background: #ffffff;
}

.about-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 46px;
    align-items: center;
}

.about-intro__media {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #edf2f6;
}

.about-intro__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.about-intro__media figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(180deg, transparent, rgba(3, 24, 51, 0.78));
    font-size: 11px;
    line-height: 1.55;
    text-align: right;
}

.about-intro__content {
    min-width: 0;
}

.about-intro__heading h2,
.about-section-heading h2 {
    margin: 0;
    color: var(--company-blue);
    font-size: clamp(25px, 2.25vw, 31px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.about-intro__heading h2::after,
.about-section-heading h2::after {
    content: "";
    width: 42px;
    height: 3px;
    margin-top: 13px;
    display: block;
    background: var(--company-blue);
}

.about-intro__description {
    margin-top: 24px;
    color: #3f4a58;
    font-size: 14px;
    line-height: 2.05;
}

.about-intro__description p {
    margin: 0 0 20px;
}

.about-intro__description p:last-child {
    margin-bottom: 0;
}

.about-advantages {
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 18px;
    list-style: none;
}

.about-advantage {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.about-advantage > img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: contain;
}

.about-advantage h3 {
    margin: 0 0 5px;
    color: var(--company-blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.about-advantage p {
    margin: 0;
    color: #687486;
    font-size: 11px;
    line-height: 1.75;
}

.about-production {
    padding: 8px 0 58px;
    background: #ffffff;
}

.about-section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.about-section-heading h2::after {
    margin-right: auto;
    margin-left: auto;
}

.about-production__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-production__item {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.about-production__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 7;
    object-fit: cover;
    background: #edf2f6;
}

.about-production__item figcaption {
    padding-top: 15px;
    color: #263140;
    font-size: 15px;
    font-weight: 650;
}

.about-production__note {
    margin: 14px 0 0;
    color: #7a8695;
    font-size: 11px;
    line-height: 1.7;
    text-align: right;
}

.process-flow {
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--company-border);
    list-style: none;
    background: #ffffff;
}

.process-flow__item {
    position: relative;
    min-width: 0;
    min-height: 102px;
    padding: 19px 31px 19px 20px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.process-flow__item + .process-flow__item {
    border-left: 1px solid #e4ebf3;
}

.process-flow__item > img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.process-flow__item h3 {
    margin: 0 0 5px;
    color: var(--company-blue);
    font-size: 15px;
    font-weight: 800;
}

.process-flow__item p {
    margin: 0;
    color: #768191;
    font-size: 10px;
    line-height: 1.55;
}

.process-flow__arrow {
    position: absolute;
    top: 50%;
    right: -11px;
    z-index: 1;
    width: 22px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--company-blue);
    background: #ffffff;
    font-size: 22px;
    line-height: 1;
    transform: translateY(-50%);
}

/* Contact us */
.contact-section {
    padding: 16px 0 18px;
    background: #ffffff;
}

.contact-section__inner,
.contact-services__inner {
    width: min(var(--company-container), calc(100% - 48px));
    margin: 0 auto;
}

.contact-section__inner {
    display: grid;
    grid-template-columns: minmax(0, 31fr) minmax(0, 39fr) minmax(0, 30fr);
    gap: 16px;
    align-items: stretch;
}

.contact-card,
.contact-form-card,
.contact-map-card {
    min-width: 0;
    min-height: 374px;
}

.contact-card {
    padding: 24px 25px;
    color: #ffffff;
    background: radial-gradient(circle at 12% 0%, rgba(32, 92, 160, 0.48), transparent 44%), linear-gradient(145deg, #0a3a79 0%, #032654 100%);
}

.contact-card h2,
.contact-form-card h2 {
    margin: 0 0 17px;
    color: inherit;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

.contact-card__details {
    margin: 0;
    font-style: normal;
}

.contact-card__item {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.contact-card__item > img {
    width: 43px;
    height: 43px;
    padding: 3px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.contact-card__item span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    line-height: 1.5;
}

.contact-card__item a {
    display: block;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.contact-card__qr {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-card__qr img {
    width: 102px;
    height: 102px;
    padding: 7px;
    object-fit: contain;
    background: #ffffff;
}

.contact-card__qr p {
    margin: 0;
    color: rgba(255, 255, 255, 0.91);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.8;
}

.contact-form-card {
    padding: 19px 25px 16px;
    border: 1px solid var(--company-border);
    background: #ffffff;
}

.contact-form-card h2 {
    color: var(--company-blue);
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form__field {
    min-width: 0;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.contact-form__field--message {
    align-items: start;
}

.contact-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__field label {
    color: var(--company-blue);
    font-size: 12px;
    font-weight: 750;
}

.contact-form__required {
    margin-left: 3px;
    color: #d93737;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid #d4dfeb;
    border-radius: 2px;
    color: #2d3948;
    background: #ffffff;
    font-size: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form__field input,
.contact-form__field select {
    height: 38px;
    padding: 0 12px;
}

.contact-form__field textarea {
    min-height: 88px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.65;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: #9aa5b3;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    border-color: #7195bf;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(43, 102, 170, 0.11);
}

.contact-form__submit {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 2px;
    color: #ffffff;
    background: linear-gradient(135deg, #0b3f84, #052958);
    font-size: 13px;
    font-weight: 750;
    transition: filter 160ms ease, opacity 160ms ease;
}

.contact-form__submit:hover:not(:disabled) {
    filter: brightness(1.08);
}

.contact-form__submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.contact-form__status {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #bfd3e8;
    color: #214b7b;
    background: #eff6fc;
    font-size: 11px;
    line-height: 1.55;
}

.contact-form__status--error {
    color: #a82323;
}

.contact-form__noscript {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #d8c692;
    color: #664f13;
    background: #fff9e8;
    font-size: 11px;
    line-height: 1.55;
}

.contact-form__status[hidden] {
    display: none;
}

.contact-map-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--company-border);
    background: #f5f8fb;
}

.contact-map-card__visual {
    position: relative;
    min-height: 326px;
    flex: 1 1 auto;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbfd 0%, #edf3f8 100%);
}

.contact-map-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.contact-map-card__link:focus-visible {
    outline: 3px solid #2f69b2;
    outline-offset: 3px;
}

.contact-map-card__link:hover .contact-map-card__marker {
    transform: translateY(-2px);
}

.contact-map-card__visual::before,
.contact-map-card__visual::after,
.contact-map-card__road {
    content: "";
    position: absolute;
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(193, 211, 229, 0.58);
}

.contact-map-card__visual::before {
    top: -18%;
    left: 14%;
    width: 24px;
    height: 142%;
    transform: rotate(38deg);
}

.contact-map-card__visual::after {
    top: 42%;
    left: -12%;
    width: 132%;
    height: 20px;
    transform: rotate(-18deg);
}

.contact-map-card__road--one {
    top: -20%;
    right: 8%;
    width: 18px;
    height: 150%;
    transform: rotate(-28deg);
}

.contact-map-card__road--two {
    top: 16%;
    left: -8%;
    width: 124%;
    height: 13px;
    transform: rotate(9deg);
}

.contact-map-card__road--three {
    bottom: 7%;
    left: -12%;
    width: 128%;
    height: 16px;
    transform: rotate(22deg);
}

.contact-map-card__marker {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(88%, 284px);
    display: grid;
    justify-items: center;
    transform: translate(-50%, -50%);
}

.contact-map-card__marker img {
    width: 62px;
    height: 62px;
    margin-bottom: 7px;
    object-fit: contain;
    filter: drop-shadow(0 8px 8px rgba(7, 43, 85, 0.16));
}

.contact-map-card__marker strong {
    width: 100%;
    padding: 12px 14px;
    border-radius: 4px;
    color: #ffffff;
    background: linear-gradient(135deg, #0a3b7d, #042654);
    box-shadow: 0 9px 20px rgba(5, 38, 79, 0.17);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.contact-map-card__actions {
    min-height: 46px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--company-border);
    color: #7a8796;
    background: #ffffff;
    font-size: 11px;
}

.contact-map-card__actions strong {
    color: var(--company-blue);
    font-weight: 750;
    white-space: nowrap;
}

.contact-services {
    padding: 0 0 28px;
    background: #ffffff;
}

.contact-services__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--company-border);
    background: #ffffff;
}

.contact-service {
    min-width: 0;
    min-height: 96px;
    padding: 17px 24px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.contact-service + .contact-service {
    border-left: 1px solid var(--company-border);
}

.contact-service__icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
}

.contact-service__icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.contact-service h2 {
    margin: 0 0 5px;
    color: var(--company-blue);
    font-size: 16px;
    font-weight: 800;
}

.contact-service p {
    margin: 1px 0;
    color: #687485;
    font-size: 10px;
    line-height: 1.6;
}

/* Shared footer */
.site-footer {
    color: rgba(255, 255, 255, 0.86);
    background: radial-gradient(circle at 12% 20%, rgba(26, 83, 145, 0.44), transparent 34%), linear-gradient(115deg, #082f63 0%, #031d3f 100%);
}

.site-footer__inner {
    width: min(var(--company-container), calc(100% - 48px));
    min-height: 320px;
    margin: 0 auto;
    padding: 48px 0 38px;
    display: grid;
    grid-template-columns: minmax(250px, 1.75fr) minmax(90px, 0.65fr) minmax(90px, 0.65fr) minmax(90px, 0.65fr) minmax(260px, 1.55fr);
    gap: 34px;
    align-items: start;
}

.footer-brand {
    padding-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-brand__head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand__head img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand__head strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.footer-brand__head span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
}

.footer-brand p {
    margin: 28px 0 23px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.95;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    color: #ffffff;
    font-size: 12px;
}

.footer-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-links h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.footer-links a,
.footer-links__text {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.45;
}

.footer-links__text {
    color: rgba(255, 255, 255, 0.48);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact {
    margin: 0;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    font-style: normal;
}

.footer-contact p {
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.65;
}

.footer-contact p img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-contact__qr {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    line-height: 1.7;
}

.footer-contact__qr img {
    width: 72px;
    height: 72px;
    padding: 5px;
    object-fit: contain;
    background: #ffffff;
    filter: none;
}

.site-footer__record {
    width: min(var(--company-container), calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px 24px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
}

.site-footer__record a:hover {
    color: #ffffff;
}

.back-to-top {
    position: absolute;
    right: 28px;
    bottom: 22px;
    z-index: 20;
    width: 82px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4deea;
    color: #39475a !important;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(10, 34, 68, 0.12);
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .site-header {
        height: auto;
    }

    .site-header__inner {
        width: 100%;
        min-height: 108px;
        padding: 13px 18px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .brand {
        width: 100%;
        gap: 11px;
    }

    .brand__mark {
        width: 44px;
        height: 44px;
    }

    .brand__text strong {
        font-size: 18px;
        white-space: normal;
    }

    .brand__text small {
        font-size: 12px;
    }

    .main-nav {
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        border-top: 1px solid #edf2f7;
    }

    .main-nav__link {
        height: 34px;
        justify-content: center;
        font-size: 13px;
    }

    .main-nav__link::after {
        bottom: -1px;
        height: 2px;
    }

    .main-nav__link:hover::after,
    .main-nav__link--active::after {
        width: 28px;
    }

    .page-hero {
        min-height: 190px;
    }

    .page-hero__inner,
    .catalog-layout,
    .about-container,
    .contact-section__inner,
    .contact-services__inner {
        width: calc(100% - 40px);
    }

    .page-hero h1 {
        font-size: 34px;
    }

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

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

    .filter-field {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

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

    .about-intro {
        padding: 40px 0 44px;
    }

    .about-intro__layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-intro__media {
        width: min(100%, 720px);
        margin: 0 auto;
    }

    .about-intro__media img {
        aspect-ratio: 4 / 3;
    }

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

    .contact-section__inner {
        grid-template-columns: 1fr;
    }

    .contact-card,
    .contact-form-card,
    .contact-map-card {
        min-height: 0;
    }

    .contact-map-card__visual {
        min-height: 360px;
    }

    .contact-services__inner {
        grid-template-columns: 1fr;
    }

    .contact-service + .contact-service {
        border-top: 1px solid var(--company-border);
        border-left: 0;
    }

    .site-footer__inner {
        width: calc(100% - 40px);
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(84px, 0.6fr)) minmax(230px, 1.4fr);
        gap: 22px;
    }

    .footer-brand {
        padding-right: 20px;
    }

    .footer-contact {
        padding-left: 20px;
    }

    .site-footer__record {
        width: calc(100% - 40px);
    }
}

@media (max-width: 820px) {
    .catalog-section {
        padding-top: 24px;
    }

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

    .catalog-sidebar {
        min-width: 0;
        gap: 16px;
    }

    .catalog-main {
        width: 100%;
    }

    .catalog-categories {
        min-width: 0;
        border: 0;
    }

    .catalog-categories h3 {
        margin: 0;
        padding: 12px 14px;
        text-align: left;
    }

    .catalog-category-list {
        padding: 10px 0 4px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .catalog-category {
        width: auto;
        min-width: max-content;
        min-height: 36px;
        padding: 0 13px;
        justify-content: center;
        border: 1px solid #d9e3ef;
        border-radius: 2px;
        background: #ffffff;
        font-size: 13px;
    }

    .catalog-category svg {
        display: none;
    }

    .catalog-category:hover,
    .catalog-category.is-active {
        padding: 0 13px;
        border-color: var(--company-blue);
        color: #ffffff;
        background: var(--company-blue);
    }

    .catalog-help {
        display: none;
    }

    .site-footer__inner {
        min-height: 0;
        padding: 38px 0 30px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding: 0 0 25px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-brand p {
        max-width: 520px;
        margin: 18px 0;
    }

    .footer-contact {
        grid-column: 1 / -1;
        padding: 25px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .brand__mark {
        width: 40px;
        height: 40px;
    }

    .brand__text strong {
        font-size: 16px;
    }

    .brand__text small {
        font-size: 11px;
    }

    .main-nav__link {
        font-size: 12px;
    }

    .page-hero {
        min-height: 164px;
        background-position: 58% center;
    }

    .page-hero::before {
        background: linear-gradient(90deg, rgba(6, 31, 60, 0.82), rgba(6, 31, 60, 0.42) 72%, rgba(6, 31, 60, 0.12));
    }

    .page-hero__inner,
    .catalog-layout,
    .about-container,
    .contact-section__inner,
    .contact-services__inner {
        width: calc(100% - 32px);
    }

    .page-hero h1 {
        font-size: 29px;
    }

    .page-hero p {
        max-width: 310px;
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.7;
    }

    .catalog-section {
        padding-bottom: 46px;
    }

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

    .filter-search {
        grid-column: 1 / -1;
    }

    .catalog-summary {
        min-height: 34px;
        padding-top: 9px;
    }

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

    .catalog-card__body {
        padding: 14px 12px 15px;
    }

    .catalog-card__body h3 {
        margin-bottom: 7px;
        font-size: 16px;
    }

    .catalog-card__body dl {
        min-height: 0;
        font-size: 11px;
        line-height: 1.65;
    }

    .catalog-card__body dd {
        white-space: normal;
    }

    .catalog-card__link {
        width: 100%;
        min-width: 0;
        height: 30px;
        margin-top: 11px;
        padding: 0 6px;
        font-size: 12px;
    }

    .catalog-empty {
        min-height: 320px;
        padding: 58px 20px;
    }

    .image-preview-modal {
        padding: 12px;
    }

    .image-preview-modal__panel {
        max-height: calc(100vh - 24px);
    }

    .image-preview-modal__header,
    .image-preview-modal__controls {
        min-height: 50px;
        padding: 8px 10px;
    }

    .image-preview-modal__canvas {
        padding: 10px;
    }

    .image-preview-modal__canvas img {
        max-height: calc(100vh - 126px);
    }

    .about-intro {
        padding: 32px 0 38px;
    }

    .about-intro__layout {
        gap: 28px;
    }

    .about-intro__heading h2,
    .about-section-heading h2 {
        font-size: 23px;
    }

    .about-intro__description {
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.9;
    }

    .about-advantages {
        margin-top: 28px;
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .about-advantage > img {
        width: 46px;
        height: 46px;
    }

    .about-advantage h3 {
        font-size: 15px;
    }

    .about-advantage p {
        font-size: 12px;
    }

    .about-production {
        padding-bottom: 44px;
    }

    .about-production__gallery {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .about-production__note {
        text-align: left;
    }

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

    .process-flow__item {
        padding: 17px 22px 17px 15px;
        grid-template-columns: 45px minmax(0, 1fr);
    }

    .process-flow__item > img {
        width: 45px;
        height: 45px;
    }

    .process-flow__item:nth-child(3) {
        border-left: 0;
    }

    .process-flow__item:nth-child(n + 3) {
        border-top: 1px solid #e4ebf3;
    }

    .process-flow__item:nth-child(2) .process-flow__arrow {
        display: none;
    }

    .contact-section {
        padding-top: 12px;
    }

    .contact-card,
    .contact-form-card {
        padding: 22px 19px;
    }

    .contact-card__item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .contact-card__item > img {
        width: 40px;
        height: 40px;
    }

    .contact-form__field {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .contact-form__field textarea {
        min-height: 112px;
    }

    .contact-map-card__visual {
        min-height: 300px;
    }

    .contact-map-card__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .contact-service {
        padding: 17px 18px;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
    }

    .contact-service__icon {
        width: 56px;
        height: 56px;
    }

    .contact-service__icon img {
        width: 52px;
        height: 52px;
    }

    .contact-service h2 {
        font-size: 15px;
    }

    .contact-service p {
        font-size: 11px;
    }

    .site-footer__inner,
    .site-footer__record {
        width: calc(100% - 32px);
    }

    .site-footer__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px 14px;
    }

    .footer-brand__head strong {
        font-size: 14px;
    }

    .footer-links h3 {
        font-size: 14px;
    }

    .footer-links a,
    .footer-links__text {
        font-size: 11px;
    }

    .footer-contact p {
        overflow-wrap: anywhere;
    }

    .site-footer__record {
        padding-bottom: 68px;
        flex-direction: column;
        gap: 7px;
    }

    .back-to-top {
        right: 16px;
        bottom: 19px;
    }
}

@media (max-width: 380px) {
    .site-header__inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .brand__text strong {
        font-size: 15px;
    }

    .brand__text small {
        font-size: 10px;
    }

    .main-nav__link {
        font-size: 11px;
    }

    .page-hero__inner,
    .catalog-layout,
    .about-container,
    .contact-section__inner,
    .contact-services__inner,
    .site-footer__inner,
    .site-footer__record {
        width: calc(100% - 24px);
    }

    .page-hero h1 {
        font-size: 27px;
    }

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

    .filter-search {
        grid-column: auto;
    }

    .process-flow {
        grid-template-columns: 1fr;
    }

    .process-flow__item,
    .process-flow__item:nth-child(3) {
        border-left: 0;
    }

    .process-flow__item + .process-flow__item {
        border-top: 1px solid #e4ebf3;
    }

    .process-flow__arrow {
        display: none;
    }

    .contact-card__qr {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .contact-map-card__marker {
        width: calc(100% - 28px);
    }

    .contact-service {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 11px;
    }

    .contact-service__icon,
    .contact-service__icon img {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .catalog-card,
    .catalog-card__media img,
    .main-nav__link::after,
    .contact-form__field input,
    .contact-form__field select,
    .contact-form__field textarea,
    .contact-form__submit {
        transition: none;
    }
}
