:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-strong: #0f172a;
    --surface-muted: #eef2f7;
    --text: #101828;
    --text-soft: #475467;
    --line: #d7dfeb;
    --primary: #11233f;
    --primary-soft: #1d365e;
    --accent: #ff9f1c;
    --accent-soft: #ffd79a;
    --success: #159947;
    --warning: #f97316;
    --danger: #dc2626;
    --shadow: 0 22px 60px rgba(17, 35, 63, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shell: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    background: linear-gradient(180deg, #f7fafc 0%, #f1f5f9 100%);
    color: var(--text);
    padding-bottom: 82px;
    overflow-x: clip;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(calc(100% - 32px), var(--shell));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.section {
    padding: 28px 0 44px;
}

.section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-head.narrow {
    max-width: 700px;
}

.section-head h1,
.section-head h2,
.hero-copy h1 {
    margin: 0 0 14px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.section-head p,
.hero-lead,
.hero-subtext {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 159, 28, 0.12);
    color: #8b4c00;
    font-weight: 700;
    font-size: 0.9rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(22px);
    background: rgba(247, 250, 252, 0.92);
    border-bottom: 1px solid rgba(17, 35, 63, 0.08);
}

.topbar,
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffbf69 100%);
    color: var(--surface-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Manrope", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(255, 159, 28, 0.35);
}

.brand-logo {
    display: block;
    width: clamp(10.5rem, 18vw, 15rem);
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(255, 159, 28, 0.18));
}

.brand strong {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
}

.brand small,
.header-hours {
    color: var(--text-soft);
}

.brand strong,
.brand small {
    display: none;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-phone-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.main-nav,
.header-actions,
.hero-actions,
.form-actions,
.consult-actions,
.filter-actions,
.cta-stack,
.chip-row,
.product-meta,
.mobile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: rgba(17, 35, 63, 0.08);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(17, 35, 63, 0.94);
    padding: 0;
    box-shadow: 0 12px 24px rgba(17, 35, 63, 0.12);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f8fafc;
    margin: 0;
    transition: transform 0.24s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.messenger-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.messenger-inline-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ffbf69);
    color: #1f2937;
    box-shadow: 0 16px 34px rgba(255, 159, 28, 0.3);
}

.btn-dark {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #fff;
}

.btn-ghost {
    background: rgba(17, 35, 63, 0.06);
    color: var(--primary);
}

.hero-section {
    padding: 42px 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 26px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.form-panel,
.filter-panel,
.content-card,
.review-card,
.product-card,
.category-card,
.benefit-card,
.step-card,
.consult-strip,
.contact-card,
.link-card,
.empty-state {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 35, 63, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 36px;
    background:
        radial-gradient(circle at top left, rgba(255, 159, 28, 0.18), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
}

.hero-panel {
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(83, 215, 105, 0.16), transparent 30%),
        linear-gradient(180deg, #11233f 0%, #0f172a 100%);
    color: #fff;
}

.hero-subtext {
    margin-top: 14px;
}

.hero-stats {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.stat-card strong {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.trust-panel h2 {
    margin: 0 0 14px;
    font-family: "Manrope", sans-serif;
}

.ticks,
.check-list,
.footer-list,
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ticks li,
.check-list li,
.contact-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.ticks li::before,
.check-list li::before,
.contact-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.quick-search {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 24px;
    padding: 14px;
    border-radius: 22px;
    background: #edf2f8;
}

.quick-search input,
.quick-search button,
.lead-form input,
.lead-form select,
.lead-form textarea,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 14px 16px;
    color: var(--text);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.quick-search button {
    border: 0;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    min-width: 124px;
}

.search-suggest {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% - 4px);
    z-index: 5;
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.search-suggest.is-visible {
    display: block;
}

.search-suggest a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
}

.search-suggest a:last-child {
    border-bottom: 0;
}

.benefit-grid,
.product-grid,
.review-grid,
.step-grid,
.content-grid,
.link-grid {
    display: grid;
    gap: 18px;
}

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

.benefit-card,
.step-card,
.review-card,
.content-card,
.link-card,
.contact-card {
    padding: 24px;
}

.benefit-card h3,
.step-card h3,
.review-card strong,
.content-card h2,
.product-card h3,
.category-card strong,
.link-card strong {
    margin: 0 0 10px;
    font-family: "Manrope", sans-serif;
}

.benefit-card p,
.category-card p,
.review-card p,
.link-card span,
.product-copy,
.product-models,
.compat-note p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.product-card h3,
.product-copy,
.product-models,
.product-compatibility {
    overflow-wrap: anywhere;
    word-break: normal;
}

.product-card h3 a {
    overflow-wrap: anywhere;
    word-break: normal;
}

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

.category-card {
    padding: 24px;
    display: block;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.product-card:hover,
.link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 159, 28, 0.45);
}

.category-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 16px;
    color: var(--primary);
    background: #eaf1fb;
}

.category-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-steps,
.consult-strip {
    padding: 30px;
}

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

.step-index {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.consult-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #11233f 0%, #1a2e4f 55%, #214d3a 100%);
    color: #fff;
}

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

.product-card {
    overflow: hidden;
}

.product-image-wrap {
    display: block;
    background: linear-gradient(180deg, #f3f7fb, #dce7f6);
}

.product-image,
.product-page-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-body {
    padding: 20px;
}

.product-meta {
    margin-bottom: 14px;
}

.status-badge,
.origin-badge,
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.status-in_stock {
    background: rgba(21, 153, 71, 0.12);
    color: #0f7b39;
}

.status-preorder {
    background: rgba(249, 115, 22, 0.12);
    color: #bf5a10;
}

.status-out_of_stock {
    background: rgba(220, 38, 38, 0.12);
    color: #b61f1f;
}

.origin-badge {
    background: rgba(17, 35, 63, 0.08);
    color: var(--primary);
}

.origin-badge-muted {
    background: rgba(255, 159, 28, 0.15);
    color: #8b4c00;
}

.product-compatibility {
    margin: 14px 0 8px;
    font-size: 0.95rem;
}

.product-models {
    font-size: 0.9rem;
    min-height: 46px;
}

.product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.product-price,
.product-price-block strong {
    font-family: "Manrope", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.product-old-price,
.product-price-block span {
    color: #98a2b3;
    text-decoration: line-through;
}

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

.review-rating {
    margin-bottom: 12px;
    color: var(--accent);
    letter-spacing: 0.16em;
}

.form-panel {
    padding: 32px;
    overflow: hidden;
}

.lead-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.lead-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.lead-form label span,
.filter-panel label span {
    font-weight: 600;
    font-size: 0.95rem;
}

.lead-form .wide {
    grid-column: 1 / -1;
}

.form-consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
    min-width: 0;
}

.form-consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.form-consent span {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.form-consent a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.file-drop {
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed rgba(17, 35, 63, 0.22);
    background: #f8fafc;
    min-width: 0;
}

.file-drop.is-dragover,
.upload-drop.is-dragover {
    border-color: rgba(255, 159, 28, 0.8);
    background: rgba(255, 159, 28, 0.08);
}

.file-drop small {
    color: var(--text-soft);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.catalog-layout,
.contact-layout,
.product-page-grid {
    display: grid;
    gap: 20px;
}

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

.filter-panel {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 118px;
}

.filter-panel form {
    display: grid;
    gap: 14px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-width: 0;
}

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

.results-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.inline-link {
    color: var(--primary);
    font-weight: 600;
}

.chip {
    background: rgba(17, 35, 63, 0.06);
    color: var(--primary);
}

.chip.is-active {
    background: var(--primary);
    color: #fff;
}

.empty-state {
    padding: 30px;
    text-align: center;
}

.empty-state h1,
.empty-state h3 {
    margin-top: 0;
    font-family: "Manrope", sans-serif;
}

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

.product-page-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.product-gallery {
    padding: 22px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, #e7eef8 100%);
    border: 1px solid rgba(17, 35, 63, 0.08);
    box-shadow: var(--shadow);
}

.product-info h1 {
    margin: 12px 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.product-page-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.large {
    font-size: 1.05rem;
}

.product-price-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.spec-grid div {
    padding: 16px 18px;
    background: #f4f8fd;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
}

.spec-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.compat-note {
    padding: 18px;
    margin-top: 16px;
    border-radius: 18px;
    background: rgba(255, 159, 28, 0.1);
}

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

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    padding: 20px 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17, 35, 63, 0.08);
    box-shadow: 0 16px 36px rgba(17, 35, 63, 0.08);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.breadcrumbs {
    padding: 14px 0 2px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs-sep {
    padding: 0 8px;
}

.flash-success {
    margin: 16px 0 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(21, 153, 71, 0.1);
    color: #0f7b39;
    border: 1px solid rgba(21, 153, 71, 0.18);
}

.flash-error {
    margin: 16px 0 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(190, 24, 93, 0.1);
    color: #9f1239;
    border: 1px solid rgba(190, 24, 93, 0.18);
}

.contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
}

.map-embed {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(17, 35, 63, 0.08);
    box-shadow: var(--shadow);
}

.page-hero {
    padding-top: 36px;
}

.site-footer {
    padding: 24px 0 110px;
    color: #dbe6f2;
    background: linear-gradient(180deg, #11233f 0%, #0f172a 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-grid > div {
    min-width: 0;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    color: #fff;
    font-family: "Manrope", sans-serif;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: #dbe6f2;
}

.footer-developer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-developer-copy {
    margin-right: auto;
    color: rgba(219, 230, 242, 0.62);
    font-size: 0.82rem;
}

.footer-developer-label {
    color: rgba(219, 230, 242, 0.62);
    font-size: 0.82rem;
}

.footer-developer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(235, 241, 250, 0.86);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-developer-link::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(79, 209, 255, 0.55);
    flex: 0 0 auto;
}

.footer-developer-link:hover,
.footer-developer-link:focus-visible {
    color: #fff;
}

.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 98px;
    z-index: 18;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 18px 36px rgba(17, 35, 63, 0.28);
    font-weight: 700;
}

.mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 19;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100vw;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(17, 35, 63, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}

.mobile-actions > * {
    min-width: 0;
}

.mobile-action {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    border-radius: 14px;
    background: rgba(17, 35, 63, 0.07);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.mobile-action-primary {
    background: linear-gradient(135deg, var(--accent), #ffbf69);
    color: #1f2937;
}

@media (max-width: 1120px) {
    .hero-grid,
    .catalog-layout,
    .product-page-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-developer {
        gap: 6px 10px;
    }

    .footer-developer-copy {
        width: 100%;
        margin-right: 0;
    }

    .benefit-grid,
    .product-grid,
    .review-grid,
    .category-grid,
    .step-grid,
    .content-grid,
    .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        position: static;
    }

    .footer-grid {
        gap: 18px;
    }
}

@media (min-width: 861px) and (max-width: 1120px) {
    .shell {
        width: min(calc(100% - 40px), var(--shell));
    }

    .topbar {
        align-items: start;
        gap: 16px;
    }

    .header-contacts {
        align-items: flex-end;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
        align-items: start;
    }

    .catalog-layout,
    .contact-layout {
        grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    }

    .product-page-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

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

@media (max-width: 860px) {
    body {
        padding-bottom: 88px;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .header-contacts {
        display: flex;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        min-width: 0;
    }

    .header-phone-group {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
        min-width: 0;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .header-phone-group::-webkit-scrollbar {
        display: none;
    }

    .header-phone {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(17, 35, 63, 0.08);
        font-size: 0.92rem;
        box-shadow: 0 10px 24px rgba(17, 35, 63, 0.06);
    }

    .header-hours {
        display: none;
    }

    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px 0 10px;
    }

    .brand-logo {
        width: clamp(8.25rem, 34vw, 10rem);
    }

    .nav-row {
        display: none;
        margin-top: 6px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 14px 28px rgba(17, 35, 63, 0.08);
        backdrop-filter: blur(14px);
    }

    .nav-row.is-open {
        display: flex;
    }

    .main-nav,
    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .main-nav a,
    .header-actions .btn {
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        justify-content: center;
        text-align: center;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    .hero-copy,
    .hero-panel,
    .form-panel,
    .filter-panel,
    .consult-strip,
    .contact-card {
        padding: 22px;
    }

    .site-footer {
        padding: 20px 0 104px;
        overflow: hidden;
    }

    .footer-grid {
        width: 100%;
        padding: 0 8px;
        gap: 16px;
    }

    .site-footer h3,
    .site-footer h4 {
        margin-bottom: 10px;
    }

    .footer-list li {
        margin-bottom: 8px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .benefit-grid,
    .product-grid,
    .review-grid,
    .category-grid,
    .step-grid,
    .content-grid,
    .link-grid,
    .lead-form .form-grid,
    .spec-grid {
        grid-template-columns: 1fr;
    }

    .quick-search {
        grid-template-columns: 1fr;
    }

    .results-toolbar,
    .product-bottom,
    .consult-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions > * {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .floating-cta {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 860px) {
    body {
        padding-bottom: 0;
    }

    .shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    .mobile-actions {
        display: none;
    }

    .site-footer {
        padding-bottom: 28px;
    }

    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px 16px;
        padding: 14px 0 10px;
    }

    .brand-logo {
        width: clamp(9.5rem, 21vw, 12rem);
    }

    .header-contacts {
        align-items: flex-end;
        gap: 8px;
    }

    .header-phone-group {
        justify-content: flex-end;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .header-phone {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.96rem;
        white-space: nowrap;
    }

    .header-hours {
        display: inline-flex;
    }

    .nav-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding-top: 10px;
        padding-bottom: 14px;
    }

    .main-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .header-actions {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 10px;
    }

    .header-actions .btn {
        min-height: 42px;
        padding: 0 16px;
        white-space: nowrap;
    }

    .benefit-grid,
    .product-grid,
    .review-grid,
    .category-grid,
    .step-grid,
    .content-grid,
    .link-grid,
    .lead-form .form-grid,
    .spec-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        padding: 0;
        gap: 18px;
    }

    .hero-copy,
    .hero-panel,
    .form-panel,
    .filter-panel,
    .consult-strip,
    .contact-card {
        padding: 24px;
    }
}

@media (min-width: 641px) and (max-width: 1120px) {
    .topbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px 16px;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .header-contacts {
        align-items: flex-end;
    }

    .header-phone-group {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-row {
        display: none;
        margin-top: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 14px 28px rgba(17, 35, 63, 0.08);
        backdrop-filter: blur(14px);
    }

    .nav-row.is-open {
        display: flex;
    }

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

    .main-nav a {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        text-align: center;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .header-actions .btn {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .shell {
        width: min(calc(100% - 20px), var(--shell));
    }

    .mobile-actions {
        gap: 6px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-action {
        min-height: 46px;
        padding: 0 6px;
        border-radius: 12px;
        font-size: 0.82rem;
        line-height: 1.05;
    }

    .mobile-action .btn-icon {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }

    .footer-grid {
        padding: 0 4px;
    }

    .site-footer h3,
    .site-footer h4 {
        font-size: 1rem;
    }

    .footer-list li,
    .footer-list a {
        font-size: 0.98rem;
    }
}

@media (max-width: 360px) {
    .mobile-actions {
        gap: 5px;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    }

    .mobile-action {
        min-height: 44px;
        padding: 0 4px;
        font-size: 0.76rem;
    }

    .mobile-action .btn-icon {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }
}
