@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Roboto+Condensed:300,400,700&subset=cyrillic');

:root {
    --ferro-yellow: #ffd200;
    --ferro-black: #000;
    --ferro-link: #003cff;
    --ferro-text: #333;
    --ferro-muted: #777;
    --ferro-line: #d9d9d9;
    --ferro-top-bg: #f7f7f7;
    --ferro-ok: #1f7a4d;
    --ferro-err: #b42318;
    --ferro-container: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html { font-size: 14px; }

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: var(--ferro-text);
    background: #fff;
    line-height: 1.42857143;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--ferro-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    color: #111;
    margin: 0 0 15px;
}

h1, .h1 { font-size: 30px; }
h2, .h2 { font-size: 27px; }
h3, .h3 { font-size: 21px; }

p { margin: 0 0 10px; }

.ferro-container {
    width: min(var(--ferro-container), calc(100% - 20px));
    margin: 0 auto;
    padding: 0 10px;
}

.ferro-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.ferro-col { padding: 0 10px; }

/* Utility top bar */
.ferro-topbar {
    min-height: 41px;
    background: var(--ferro-top-bg);
    border-bottom: 1px solid var(--ferro-line);
    font-size: 13px;
    color: #888;
}

.ferro-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 41px;
    gap: 12px;
    flex-wrap: wrap;
}

.ferro-topbar-left,
.ferro-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ferro-topbar a {
    color: #888;
    text-decoration: none;
}

.ferro-topbar a:hover { color: #444; text-decoration: none; }

.ferro-topbar .ferro-count { font-weight: 600; color: #333; }

.ferro-dropdown { position: relative; }

.ferro-dropdown-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.ferro-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--ferro-line);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.ferro-dropdown.is-open .ferro-dropdown-menu { display: block; }

.ferro-dropdown-menu a {
    display: block;
    padding: 7px 16px;
    color: #333;
}

.ferro-dropdown-menu a:hover {
    background: #f5f5f5;
    text-decoration: none;
}

/* Header */
.ferro-header {
    border-bottom: 1px solid var(--ferro-line);
}

.ferro-header-main {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 121px;
    padding: 10px 0;
}

.ferro-logo img { width: 250px; height: auto; display: block; }

.ferro-phones {
    text-align: center;
}

.ferro-phone-line {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
    line-height: 1.2;
    color: #111;
}

.ferro-schedule {
    margin-top: 4px;
    font-size: 13px;
    color: var(--ferro-muted);
}

.ferro-header-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 430px;
}

.ferro-search {
    display: flex;
    align-items: stretch;
}

.ferro-search input[type="search"],
.ferro-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid var(--ferro-line);
    border-right: 0;
    padding: 0 12px;
    font: inherit;
    font-style: italic;
}

.ferro-search button {
    width: 46px;
    border: 1px solid var(--ferro-yellow);
    background: var(--ferro-yellow);
    color: var(--ferro-black);
    cursor: pointer;
    font-size: 16px;
}

.ferro-search button:hover {
    background: var(--ferro-black);
    border-color: var(--ferro-black);
    color: #fff;
}

.ferro-search-hint {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ferro-muted);
}

.ferro-search-hint a { color: var(--ferro-link); }

.ferro-cart-box {
    min-width: 150px;
}

.ferro-cart-link {
    display: block;
    background: var(--ferro-yellow);
    border: 2px solid var(--ferro-yellow);
    color: var(--ferro-black);
    padding: 8px 12px;
    text-decoration: none;
    line-height: 1.3;
}

.ferro-cart-link:hover {
    background: var(--ferro-black);
    border-color: var(--ferro-black);
    color: #fff;
    text-decoration: none;
}

.ferro-cart-link strong { display: block; font-size: 13px; }

.ferro-cart-link span { font-size: 12px; }

/* Nav row */
.ferro-nav-row {
    background: #ececec;
    border-top: 1px solid var(--ferro-yellow);
    border-bottom: 1px solid var(--ferro-yellow);
    min-height: 54px;
}

.ferro-nav-row-inner {
    display: flex;
    align-items: stretch;
    min-height: 54px;
}

.ferro-catalog-btn-wrap {
    position: relative;
    width: 273px;
    flex-shrink: 0;
    align-self: stretch;
}

.ferro-catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 54px;
    background: var(--ferro-yellow);
    border: 0;
    color: var(--ferro-black);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.ferro-catalog-btn-wrap:hover > .ferro-catalog-btn,
.ferro-catalog-btn-wrap:focus-within > .ferro-catalog-btn,
.ferro-catalog-btn.is-open {
    background: var(--ferro-black);
    color: #fff;
    text-decoration: none;
}

.ferro-main-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ferro-main-nav > li { position: relative; }

.ferro-main-nav > li > a,
.ferro-main-nav > li > button {
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--ferro-black);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.ferro-main-nav > li > a:hover,
.ferro-main-nav > li > button:hover,
.ferro-main-nav > li.is-open > button {
    background: var(--ferro-black);
    color: #fff;
    text-decoration: none;
}

.ferro-main-nav .ferro-submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--ferro-line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 900;
}

.ferro-main-nav > li.is-open .ferro-submenu { display: block; }

@media (min-width: 992px) {
    .ferro-main-nav > li:hover > .ferro-submenu,
    .ferro-main-nav > li:focus-within > .ferro-submenu {
        display: block;
    }
}

.ferro-main-nav .ferro-submenu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    font-size: 13px;
    text-transform: none;
    font-weight: 400;
}

.ferro-main-nav .ferro-submenu a:hover {
    background: #f5f5f5;
    text-decoration: none;
}

/* Catalog dropdown — hover on desktop like original #menu:hover */
.ferro-mobile-catalog {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    width: 273px;
    background: #fff;
    border: 1px solid var(--ferro-line);
    border-top: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ferro-mobile-catalog .ferro-sidebar-box {
    margin-bottom: 0;
    border: 0;
}

.ferro-mobile-catalog .ferro-sidebar-heading {
    display: none;
}

@media (min-width: 992px) {
    .ferro-catalog-btn-wrap:hover > .ferro-mobile-catalog,
    .ferro-catalog-btn-wrap:focus-within > .ferro-mobile-catalog,
    .ferro-catalog-btn-wrap.is-open > .ferro-mobile-catalog,
    .ferro-mobile-catalog.is-open {
        display: block;
    }
}

/* Main content */
.ferro-main { padding: 20px 0 30px; }

.ferro-layout-with-sidebar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ferro-sidebar {
    width: 273px;
    flex-shrink: 0;
}

.ferro-main-content { flex: 1; min-width: 0; }

.ferro-sidebar-box {
    border: 1px solid var(--ferro-line);
    margin-bottom: 20px;
}

.ferro-sidebar-heading {
    background: var(--ferro-yellow);
    color: var(--ferro-black);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 15px;
    border-bottom: 1px solid var(--ferro-yellow);
}

.ferro-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ferro-sidebar-list > li { border-bottom: 1px solid var(--ferro-line); }

.ferro-sidebar-list > li:last-child { border-bottom: 0; }

.ferro-sidebar-list > li > a,
.ferro-sidebar-toggle {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.ferro-sidebar-list > li > a:hover,
.ferro-sidebar-toggle:hover { background: #f5f5f5; text-decoration: none; }

.ferro-sidebar-children {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    background: #fafafa;
}

.ferro-sidebar-item.is-open .ferro-sidebar-children { display: block; }

.ferro-sidebar-children a {
    display: block;
    padding: 6px 15px 6px 28px;
    color: #444;
    font-size: 13px;
    text-transform: none;
    font-weight: 400;
}

.ferro-sidebar-children a:hover { background: #f0f0f0; text-decoration: none; }

/* Breadcrumbs */
.ferro-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    list-style: none;
    margin: 0 0 15px;
    padding: 0;
    font-size: 13px;
    color: var(--ferro-muted);
}

.ferro-breadcrumbs li::after { content: '/'; margin-left: 6px; color: #bbb; }
.ferro-breadcrumbs li:last-child::after { content: none; }
.ferro-breadcrumbs a { color: var(--ferro-link); }

/* Alerts */
.ferro-alert {
    padding: 10px 14px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}

.ferro-alert-success {
    background: #e8f7ef;
    border-color: #b7e4c7;
    color: var(--ferro-ok);
}

.ferro-alert-error {
    background: #fdeceb;
    border-color: #f5c2c0;
    color: var(--ferro-err);
}

.ferro-alert ul { margin: 0; padding-left: 18px; }

/* Buttons & forms */
.ferro-btn,
button.ferro-btn,
input[type="submit"].ferro-btn {
    display: inline-block;
    border: 1px solid var(--ferro-yellow);
    background: var(--ferro-yellow);
    color: var(--ferro-black);
    padding: 9px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.ferro-btn:hover {
    background: var(--ferro-black);
    border-color: var(--ferro-black);
    color: #fff;
    text-decoration: none;
}

.ferro-btn-black {
    background: var(--ferro-black);
    border-color: var(--ferro-black);
    color: #fff;
}

.ferro-btn-black:hover {
    background: var(--ferro-yellow);
    border-color: var(--ferro-yellow);
    color: var(--ferro-black);
}

.ferro-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--ferro-muted);
}

.ferro-form input,
.ferro-form textarea,
.ferro-form select {
    display: block;
    width: 100%;
    margin-top: 4px;
    border: 1px solid var(--ferro-line);
    padding: 8px 10px;
    font: inherit;
    color: var(--ferro-text);
    background: #fff;
}

.ferro-form textarea { min-height: 100px; resize: vertical; }

.ferro-panel {
    border: 1px solid var(--ferro-line);
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.ferro-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.ferro-contact-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.ferro-contact-details address {
    font-style: normal;
    margin: 8px 0 12px;
}

.ferro-btn-map {
    background: var(--ferro-yellow);
    border-color: var(--ferro-yellow);
    color: var(--ferro-black);
}

.ferro-btn-map:hover {
    background: var(--ferro-black);
    border-color: var(--ferro-black);
    color: #fff;
}

.ferro-contact-feedback {
    margin-top: 20px;
}

.ferro-contact-feedback-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ferro-line);
}

.ferro-contact-feedback-header h4 {
    margin: 0;
    font-size: 18px;
}

.ferro-contact-form {
    max-width: 920px;
}

.ferro-form-row {
    margin-bottom: 14px;
}

.ferro-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.ferro-form-row.required > label::after {
    content: " *";
    color: #b00020;
}

.ferro-form-row-horizontal {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: start;
}

.ferro-form-row-horizontal > label {
    margin: 8px 0 0;
    text-align: right;
}

.ferro-form-control {
    min-width: 0;
}

.ferro-form-row input,
.ferro-form-row textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ferro-line);
    padding: 10px 12px;
    font: inherit;
}

.ferro-contact-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ferro-btn-file {
    background: #f5f5f5;
    border-color: var(--ferro-line);
    color: var(--ferro-text);
    font-weight: 500;
}

.ferro-btn-file:hover {
    background: #eee;
    border-color: #bbb;
    color: var(--ferro-text);
}

.ferro-contact-file-name {
    display: inline-block;
    margin-left: 10px;
    color: var(--ferro-muted);
    vertical-align: middle;
}

.ferro-contact-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.map,
.ferro-contact-map {
    margin-top: 40px;
    margin-bottom: -30px;
    width: 100%;
    min-height: 350px;
}

.ferro-status {
    margin: 0 0 15px;
    padding: 10px 12px;
    background: #f6f6f6;
    border-left: 4px solid var(--ferro-yellow);
}

.ferro-error {
    display: block;
    margin-top: 4px;
    color: #b00020;
    font-size: 13px;
}

@media (max-width: 900px) {
    .ferro-contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .ferro-form-row-horizontal {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ferro-form-row-horizontal > label {
        margin: 0;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .ferro-contact-grid { grid-template-columns: 1fr; }
}

.ferro-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.ferro-table th,
.ferro-table td {
    border: 1px solid var(--ferro-line);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.ferro-table th {
    background: #f7f7f7;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--ferro-muted);
}

/* Home slider — Nivo/megasliderpro-compatible caption layout */
.ferro-home-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: var(--ferro-container);
    margin: 0 auto;
    height: 322px;
    background: #eee;
}

.ferro-home-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.ferro-home-slider[data-ferro-slider-mode="fade"] .ferro-home-slider-track {
    display: block;
    position: relative;
    height: 100%;
    transition: none;
}

.ferro-home-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
}

.ferro-home-slider[data-ferro-slider-mode="fade"] .ferro-home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 0;
}

.ferro-home-slider[data-ferro-slider-mode="fade"] .ferro-home-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.ferro-home-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ferro-home-slide-caption {
    position: absolute;
    top: 7%;
    right: 100px;
    width: 400px;
    max-width: calc(100% - 140px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    pointer-events: none;
    z-index: 2;
}

.ferro-msp-title {
    position: static;
    width: auto;
    max-width: 100%;
    text-align: left;
    z-index: 9;
}

.ferro-msp-title h3 {
    display: inline-block;
    margin: 0;
    padding: 8px 20px;
    background: rgba(249, 249, 251, 1);
    color: #000;
    font: 400 30px/1.2 'Roboto Condensed', sans-serif;
}

.ferro-msp-des {
    position: static;
    width: auto;
    max-width: 100%;
    text-align: left;
    z-index: 9;
    /* Align logo with h3 text glyphs (not the padded title box) */
    padding-left: 20px;
}

.ferro-msp-des img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    /* ferro.png/jpg: ~5px empty gutter before F (5/250) */
    transform: translateX(-2%);
}

.ferro-home-slide.is-active .ferro-msp-title {
    animation: ferroBounceInRight 1500ms ease-in-out;
}

.ferro-home-slide.is-active .ferro-msp-des {
    animation: ferroBounceInRight 2000ms ease-in-out;
}

@keyframes ferroBounceInRight {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }
    60% {
        opacity: 1;
        transform: translateX(-12px);
    }
    80% {
        transform: translateX(6px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.ferro-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    font-size: 22px;
    line-height: 1;
}

.ferro-slider-arrow:hover { background: rgba(0, 0, 0, 0.75); }
.ferro-slider-prev { left: 10px; }
.ferro-slider-next { right: 10px; }

.ferro-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.ferro-slider-dot {
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
}

.ferro-slider-dot.is-active { background: var(--ferro-yellow); border-color: var(--ferro-yellow); }

.ferro-service-slider {
    width: 100%;
    max-width: 1000px;
    height: auto;
    aspect-ratio: 20 / 7;
    margin: 0 0 20px;
}

.ferro-service-slider .ferro-home-slide-caption {
    top: 10%;
    right: 6%;
    width: min(340px, 42%);
    gap: 18px;
}

.ferro-service-slider .ferro-msp-title h3 {
    font-size: 22px;
    padding: 6px 14px;
}

.ferro-service-slider .ferro-msp-des {
    padding-left: 14px;
}

.ferro-service-slider .ferro-msp-des img {
    width: 180px;
}

.ferro-side-banner {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-top: 2px solid #fab500;
}

.ferro-about-strip {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid var(--ferro-line);
    min-height: 180px;
}

.ferro-about-strip-inner {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.ferro-about-strip img {
    width: 250px;
    flex-shrink: 0;
}

.ferro-about-strip p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.ferro-wide-banner {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
}

.ferro-wide-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Category */
.ferro-category-desc {
    overflow: hidden;
    margin-bottom: 20px;
}

.ferro-category-desc img {
    float: left;
    margin: 0 15px 10px 0;
    max-width: 180px;
    border: 1px solid var(--ferro-line);
}

.ferro-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ferro-subcategory-item {
    border: 1px solid var(--ferro-line);
    text-align: center;
    background: #fff;
}

.ferro-subcategory-item a { color: #333; text-decoration: none; display: block; }

.ferro-subcategory-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 10px;
    background: #fafafa;
}

.ferro-subcategory-item h5 {
    margin: 0;
    padding: 10px;
    font-size: 14px;
    font-weight: 400;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ferro-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.ferro-product-list .ferro-product-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 15px;
    align-items: center;
}

/* Product card */
.ferro-product-card {
    border: 1px solid var(--ferro-line);
    background: #fff;
    padding: 10px;
}

.ferro-product-card-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fafafa;
}

.ferro-product-card-name {
    display: block;
    margin: 10px 0 6px;
    min-height: 40px;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.ferro-product-card-name:hover { color: var(--ferro-link); text-decoration: none; }

.ferro-price {
    color: #000;
    font-size: 16px;
    margin-bottom: 8px;
}

.ferro-product-card-actions form { margin: 0; }

/* Product page */
.ferro-product-meta {
    background: #f5f5f5;
    border: 1px solid var(--ferro-line);
    padding: 10px 12px;
    margin-bottom: 20px;
    font-size: 13px;
}

.ferro-product-meta span { margin-right: 18px; }

.ferro-product-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 25px;
}

.ferro-product-image {
    border: 1px solid var(--ferro-line);
    padding: 10px;
    background: #fff;
}

.ferro-product-image img { width: 100%; }

.ferro-buy-box {
    border: 1px solid var(--ferro-line);
    padding: 15px;
    background: #fff;
}

.ferro-buy-box .ferro-price {
    font-size: 32px;
    margin-bottom: 10px;
}

.ferro-stock-in { color: var(--ferro-ok); margin-bottom: 12px; }
.ferro-stock-out { color: var(--ferro-err); margin-bottom: 12px; }

.ferro-qty {
    display: flex;
    align-items: stretch;
    margin-bottom: 12px;
    max-width: 140px;
}

.ferro-qty button {
    width: 34px;
    border: 1px solid var(--ferro-line);
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.ferro-qty input {
    width: 52px;
    border-top: 1px solid var(--ferro-line);
    border-bottom: 1px solid var(--ferro-line);
    border-left: 0;
    border-right: 0;
    text-align: center;
    padding: 6px 0;
}

.ferro-buy-actions {
    display: grid;
    gap: 8px;
}

.ferro-buy-actions .ferro-btn { width: 100%; }

.ferro-product-description {
    border-top: 1px solid var(--ferro-line);
    padding-top: 20px;
}

.ferro-article-body {
    font-size: 14px;
    line-height: 1.6;
}

.ferro-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.ferro-article-body table td,
.ferro-article-body table th {
    border: 1px solid var(--ferro-line);
    padding: 6px 8px;
}

/* Newsletter */
.ferro-newsletter {
    background: #141414;
    color: #ccc;
    padding: 24px 0;
}

.ferro-newsletter-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ferro-newsletter-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    flex: 1 1 220px;
}

.ferro-newsletter-form {
    display: flex;
    flex: 2 1 320px;
    gap: 0;
}

.ferro-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 43px;
    border: 1px solid #ccc;
    padding: 0 12px;
    font: inherit;
}

.ferro-newsletter-form button {
    height: 43px;
    border: 1px solid var(--ferro-yellow);
    background: var(--ferro-yellow);
    color: var(--ferro-black);
    padding: 0 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.ferro-newsletter-form button:hover {
    background: var(--ferro-black);
    border-color: var(--ferro-black);
    color: #fff;
}

/* Footer */
.ferro-footer {
    margin-top: 30px;
    border-top: 3px solid var(--ferro-yellow);
    background: #000;
    color: #b3b3b3;
    font-size: 13px;
}

.ferro-footer-top { padding: 30px 0 10px; }

.ferro-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ferro-footer h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ferro-yellow);
    margin: 5px 0 20px;
}

.ferro-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ferro-footer li { margin-bottom: 6px; }

.ferro-footer a { color: #b3b3b3; text-decoration: none; }
.ferro-footer a:hover { color: #fff; text-decoration: none; }

.ferro-footer-about { color: #777; line-height: 1.5; }

.ferro-footer-bottom {
    border-top: 1px solid #222;
    padding: 12px 0 18px;
    text-align: center;
    color: #777;
    font-size: 12px;
}

.ferro-view-toggle { margin-bottom: 15px; }

.ferro-view-toggle button {
    border: 1px solid var(--ferro-line);
    background: #fff;
    padding: 6px 10px;
    cursor: pointer;
}

.ferro-view-toggle button.is-active {
    background: var(--ferro-yellow);
    border-color: var(--ferro-yellow);
}

.ferro-pagination { margin-top: 20px; }
.ferro-pagination nav { display: flex; gap: 6px; flex-wrap: wrap; }
.ferro-pagination a,
.ferro-pagination span {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid var(--ferro-line);
    color: #333;
    text-decoration: none;
}
.ferro-pagination span[aria-current="page"] {
    background: var(--ferro-yellow);
    border-color: var(--ferro-yellow);
}

/* Responsive */
@media (max-width: 991px) {
    .ferro-header-main {
        grid-template-columns: 1fr;
        min-height: auto;
        text-align: center;
    }

    .ferro-logo img { margin: 0 auto; }

    .ferro-header-tools {
        max-width: none;
        grid-template-columns: 1fr;
    }

    .ferro-nav-row-inner { flex-wrap: wrap; }

    .ferro-catalog-btn-wrap { width: 100%; }

    .ferro-mobile-catalog {
        position: static;
        width: 100%;
        border: 0;
        border-bottom: 1px solid var(--ferro-line);
        box-shadow: none;
    }

    .ferro-mobile-catalog .ferro-sidebar-heading {
        display: block;
    }

    .ferro-catalog-btn-wrap.is-open > .ferro-mobile-catalog,
    .ferro-mobile-catalog.is-open {
        display: block;
    }

    .ferro-main-nav {
        flex-wrap: wrap;
        width: 100%;
    }

    .ferro-main-nav > li > a,
    .ferro-main-nav > li > button {
        height: auto;
        min-height: 44px;
    }

    .ferro-layout-with-sidebar { flex-direction: column; }

    .ferro-sidebar { width: 100%; }

    .ferro-subcategory-grid,
    .ferro-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ferro-product-layout { grid-template-columns: 1fr; }

    .ferro-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ferro-about-strip-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 767px) {
    .ferro-topbar,
    .ferro-topbar-inner { min-height: 32px; }

    .ferro-topbar-inner {
        flex-wrap: nowrap;
        padding: 0 8px;
    }

    .ferro-topbar-left,
    .ferro-topbar-right {
        width: auto;
        flex-wrap: nowrap;
        gap: 14px;
    }

    .ferro-topbar-left > a,
    .ferro-topbar-right > a,
    .ferro-topbar-right > span,
    .ferro-dropdown-toggle {
        overflow: hidden;
        width: 18px;
        white-space: nowrap;
        font-size: 0;
    }

    .ferro-topbar-left a:first-child::before { content: '●'; }
    .ferro-topbar-left a:last-child::before { content: '▤'; }
    .ferro-topbar-right > a:first-child::before { content: '⚖'; }
    .ferro-topbar-right > a:nth-child(2)::before { content: '♥'; }
    .ferro-topbar-right > span::before { content: '₽'; }
    .ferro-dropdown-toggle::before { content: '●'; }

    .ferro-topbar-left > a::before,
    .ferro-topbar-right > a::before,
    .ferro-topbar-right > span::before,
    .ferro-dropdown-toggle::before {
        font-size: 13px;
        color: #888;
    }

    .ferro-header-main {
        gap: 8px;
        padding: 16px 0 8px;
    }

    .ferro-logo img { width: 205px; }

    .ferro-phone-line { font-size: 18px; }

    .ferro-header-tools {
        display: flex;
        flex-direction: column;
    }

    .ferro-cart-box {
        order: -1;
        width: 100%;
    }

    .ferro-cart-link { text-align: left; }

    .ferro-main-nav { display: none; }

    .ferro-subcategory-grid,
    .ferro-product-grid { grid-template-columns: 1fr; }

    .ferro-product-list .ferro-product-card {
        grid-template-columns: 1fr;
    }

    .ferro-footer-grid { grid-template-columns: 1fr; }

    .ferro-newsletter-form { flex-direction: column; }

    .ferro-home-slider {
        height: calc((100vw - 20px) * 0.2604167);
        min-height: 82px;
    }

    .ferro-home-slide-caption {
        top: 8%;
        right: 40px;
        width: min(400px, calc(100% - 80px));
        gap: 16px;
    }

    .ferro-msp-title h3 {
        font-size: 14px;
        padding: 4px 10px;
    }

    .ferro-msp-des {
        padding-left: 10px;
    }

    .ferro-msp-des img { width: 140px; }
}
