*, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
}

.hero-slides-track {
    transition: none;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    font-size: 80%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

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

/* ─── Header ─────────────────────────────────────────── */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    overflow: visible;
    position: relative;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1100;
    gap: 10px;
    margin-top: 45px;
}

/*
 * logo.png is a full vertical lockup (icon + text below, ~1259×1338).
 * Show it whole at its natural aspect ratio: fix the height, let width
 * follow with object-fit:contain so the bottom text stays visible.
 */
.logo-icon-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

.logo-text small {
    font-size: inherit;
    font-weight: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin-left: auto;
    gap: 32px;
}

.nav-menu li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    font-size: 1.17rem; /* ≈15px */
    white-space: nowrap;
    text-transform: uppercase;
}


.nav-menu li a.active {
    background-color: #dc2626;
    color: #ffffff;
    border: 2px solid #dc2626;
}

.nav-menu li a:hover {
    border: 2px solid #dc2626;
    color: #dc2626;
    background: transparent;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

/* Hamburger → × when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero (home page) ────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 94px 3rem 13px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
}

.hero-content {
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* ─── Hero slider ─────────────────────────────────────── */
.hero-slider {
    position: relative;
    width: 70%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.hero-slides-track {
    display: flex;
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 210px);
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    user-select: none;
}

.slider-arrow:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.slider-arrow-prev { left: 12px; }
.slider-arrow-next { right: 12px; }

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.35);
}

.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: #fff;
    color: #dc2626;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Social links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    color: #dc2626;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-icon-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    background: #dc2626;
    color: #fff;
}

.social-icon-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ─── Products catalog (home page image grid) ─────────── */
.products {
    padding: 64px 3rem;
    background: #fff;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.products img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0;
    transition: transform 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: #dc2626;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220,38,38,0.2);
    border-color: #dc2626;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #dc2626, #991b1b);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image::before {
    content: '🥓';
    font-size: 4rem;
    opacity: 0.8;
}

.product-info {
    padding: 2rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-code {
    font-size: 1.2rem;
    font-weight: 600;
    color: #dc2626;
}

/* Category banners — full width, no inner constraint */
.category-banner {
    background: #dc2626;
    color: white;
    padding: 24px 3rem;
    margin: 2rem 0 0 0;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    text-align: left;
}

.category-banner-black {
    background: black;
    color: white;
    padding: 24px 3rem;
    margin: 2rem 0 0 0;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    text-align: left;
}

/* ─── About section (home page) ──────────────────────── */
.about {
    background: #f8f8f8;
    padding: 64px 3rem;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dc2626;
    display: block;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
}

/* ─── Contact section (home page) ────────────────────── */
.contact {
    background: #333;
    color: white;
    padding: 64px 3rem;
}

.contact-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-item h4 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* ─── Footer ──────────────────────────────────────────── */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ─── Fade-in (animations disabled) ──────────────────── */
.fade-in        { opacity: 1; transform: none; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── Inner page hero ─────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 72px 3rem 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
}

.page-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ─── Product category page hero — adds navbar clearance ── */
.product-page-hero { padding-top: 128px; } /* 72px navbar + 56px visual space */

@media (max-width: 1024px) {
    .product-page-hero { padding-top: 128px; } /* 72px navbar + 56px visual space */
}

@media (max-width: 768px) {
    .product-page-hero { padding-top: 110px; } /* 66px navbar + 44px visual space */
}

@media (max-width: 480px) {
    .product-page-hero { padding-top: 92px; }  /* 60px navbar + 32px visual space */
}

/* Inner page content wrapper */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px 3rem;
}

/* ─── About page ──────────────────────────────────────── */
.about-page {
    background: #f8f8f8;
    padding: 64px 0;
}

.about-page-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.about-section {
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.about-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dc2626;
}

.about-section p {
    font-size: 1.2rem; /* ≈15px */
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.certificate-item {
    background: #f8f8f8;
    border-radius: 21px;
    padding: 1rem;
    text-align: center;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-item img {
    max-height: 160px;
    width: auto;
    object-fit: contain;
    border-radius: 21px;
    display: block;
    margin: 0 auto 0.75rem;
}

.certificate-item:hover {
    border-color: #dc2626;
    transform: translateY(-3px);
}

.certificate-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certificate-item h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 0.5rem;
}

.certificate-item p {
    color: #888;
    font-size: 0.9rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.achievement-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 21px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    border-color: #dc2626;
    transform: translateY(-3px);
}

.achievement-number {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #dc2626;
    display: block;
}

.achievement-label {
    color: #666;
    margin-top: 0.5rem;
    font-size: 1.1rem; /* ≈14px */
}

/* ─── Awards section ──────────────────────────────────── */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.award-card {
    background: #f8f8f8;
    border-radius: 21px;
    padding: 1rem;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.award-card:hover {
    border-color: #dc2626;
    transform: translateY(-3px);
}

.award-card img {
    width: 55%;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 21px;
    display: block;
}

.award-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.award-year {
    font-size: 1rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
}

.award-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 1024px) {
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .awards-grid { grid-template-columns: 1fr; }
}

/* ─── News page ───────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220,38,38,0.15);
}

.news-card-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    height: 6px;
}

.news-card-body {
    padding: 2rem;
}

.news-card-date {
    color: #dc2626;
    font-size: 1rem; /* ≈13px */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.news-card-text {
    color: #666;
    font-size: 1.2rem; /* ≈15px */
    line-height: 1.6;
}

/* ─── Contacts page (old card layout, kept for contacts.html) ── */
.contact-page {
    padding: 64px 0;
    background: #f8f8f8;
}

.contact-page-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-page-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 3px solid #dc2626;
}

.contact-page-card h4 {
    color: #dc2626;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-page-card p,
.contact-page-card a {
    color: #555;
    line-height: 1.8;
    text-decoration: none;
    font-size: 1.2rem; /* ≈15px */
}

.contact-page-card a:hover {
    color: #dc2626;
}

/* ─── Contacts — two-column layout ───────────────────── */
section[id] {
    scroll-margin-top: 72px;
}


.contacts-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    max-width: 1400px;
    margin: 0 auto;
}

.contacts-left {
    padding: 2.5rem 3rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #efefef;
}

.contacts-right {
    position: relative;
    min-height: 600px;
}

.contacts-right iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contacts-row {
    padding: 1.1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contacts-row-label {
    font-size: 0.88rem; /* ≈11px — intentionally small metadata label */
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.55rem;
}

.contacts-row-value {
    font-size: 1.2rem; /* ≈15px */
    color: #333;
    line-height: 1.65;
}

.contacts-row-value a {
    color: #333;
    text-decoration: none;
}

.contacts-row-value a:hover {
    color: #dc2626;
}

.contacts-socials {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.2rem;
}

.contacts-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #dc2626;
    color: #dc2626;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.22s ease, color 0.22s ease;
}

.contacts-social-btn:hover {
    background: #dc2626;
    color: #fff;
}

.contacts-social-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.contacts-row-form {
    border-bottom: none;
    flex: 1;
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.6rem;
}

.contacts-input {
    padding: 0.7rem 1.2rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    font-size: 1.1rem; /* ≈14px */
    font-family: inherit;
    color: #333;
    background: #f7f7f7;
    outline: none;
    width: 100%;
    transition: box-shadow 0.2s ease;
}

.contacts-input::placeholder {
    color: #bbb;
}

.contacts-input:focus {
    border-color: #ccc;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.contacts-textarea {
    border-radius: 18px;
    resize: vertical;
    min-height: 80px;
}

.contacts-submit {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 2.25rem;
    font-size: 1.1rem; /* ≈14px */
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.22s ease, transform 0.18s ease;
}

.contacts-submit:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* ─── Vacancy page ────────────────────────────────────── */
.vacancy-apply {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 3rem;
}

.vacancy-apply-title {
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #333;
    margin-bottom: 0.6rem;
    position: relative;
}

.vacancy-apply-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #dc2626;
    border-radius: 2px;
    margin: 8px auto 0;
}

.vacancy-apply-desc {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

.vacancy-apply .contacts-form {
    max-width: 640px;
    margin: 0 auto;
}

.vacancy-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vacancy-form-label {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}


.vacancy-msg {
    padding: 0.75rem 1.2rem;
    border-radius: 10px;
    font-size: 1.05rem;
    display: none;
}

.vacancy-msg.success {
    color: #15803d;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}

.vacancy-msg.error {
    color: #dc2626;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
}

.vacancy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.vacancy-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid #dc2626;
}

.vacancy-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(220,38,38,0.15);
}

.vacancy-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.vacancy-info p {
    color: #888;
    font-size: 1.1rem; /* ≈14px */
}

.vacancy-badge {
    background: #dc2626;
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem; /* ≈13px */
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* ─── Product category placeholder ───────────────────── */
.product-placeholder {
    text-align: center;
    padding: 64px 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.product-placeholder h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.product-placeholder p {
    color: #888;
    font-size: 1.2rem; /* ≈15px */
    max-width: 600px;
    margin: 0 auto 2rem;
}

.back-link {
    display: inline-block;
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem; /* ≈15px */
    padding: 0.6rem 1.5rem;
    border: 2px solid #dc2626;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #dc2626;
    color: white;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — mobile-first breakpoints
   1280px · 1024px · 768px · 480px · 320px
   ═══════════════════════════════════════════════════════ */

/* ─── ≤ 1280px: large desktops ───────────────────────── */
@media (max-width: 1280px) {
    nav { padding: 0 2rem; }

    .catalog-section,
    .products-section { padding-left: 2rem; padding-right: 2rem; }

    .about-page-inner,
    .contact-page-inner { padding-left: 2rem; padding-right: 2rem; }

    .page-content { padding-left: 2rem; padding-right: 2rem; }
}

/* ─── ≤ 1024px: tablet landscape / small laptops ─────── */
@media (max-width: 1024px) {
    nav { padding: 0 1.5rem; height: 72px; }

    .nav-menu { top: 72px; }

    .nav-menu li a {
        padding: 8px 14px;
        font-size: 1.05rem;
    }

    .hero { padding-top: 72px; }

    /* Catalog: 4 → 3 columns */
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .catalog-section { padding: 2rem 1.5rem 3rem; }

    /* Category products grid: 3 → 2 columns */
    .products-grid { grid-template-columns: repeat(2, 1fr); }

    .products-section { padding: 2rem 1.5rem 3.5rem; }

    .about-page { padding: 48px 0; }
    .about-page-inner, .contact-page-inner { padding-left: 2rem; padding-right: 2rem; }

    .page-content { padding: 48px 2rem; }
}

/* ─── ≤ 768px: tablet portrait / large phones ────────── */
@media (max-width: 768px) {
    /* — Nav — */
    .hamburger { display: flex; }

    nav { height: 66px; padding: 0 1.25rem; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 66px;
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.08);
        padding: 0.5rem 0 1rem;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active { left: 0; }

    .nav-menu li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 32px;
        border-radius: 50px;
    }

    section[id] { scroll-margin-top: 66px; }

    /* — Hero — */
    .hero { padding: 66px 1.5rem 12px; }
    .hero-slider { width: 92%; }

    /* — Slider arrows — */
    .slider-arrow {
        width: 44px;
        height: 44px;
    }

    /* — Grids — */
    .stats { grid-template-columns: repeat(2, 1fr); }

    /* Catalog: → 2 columns on mobile for portrait cards */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* Square image on mobile so card stays portrait (~3:4) */
    .catalog-card-img {
        aspect-ratio: 1 / 1;
    }

    .catalog-section { padding: 1.75rem 1rem 3rem; }

    /* Category products → 1 column */
    .products-grid { grid-template-columns: 1fr; }

    .products-section { padding: 1.5rem 1rem 2.5rem; }

    /* — Banners — */
    .category-banner,
    .category-banner-black {
        font-size: 1.5rem;
        letter-spacing: 1px;
        padding: 16px 1.5rem;
    }

    /* — Page hero — */
    .page-hero { padding: 66px 1.5rem 44px; }

    /* — About — */
    .about-section { padding: 2rem; }
    .about-page { padding: 32px 0; }
    .about-page-inner, .contact-page-inner { padding-left: 1.25rem; padding-right: 1.25rem; }

    /* — Logo — */
    .logo-icon-img { height: 90px; width: auto; }
    .logo { margin-top: 38px; }

    /* — Contacts — */
    .contacts-body { grid-template-columns: 1fr; }

    .contacts-left {
        border-right: none;
        border-bottom: 1px solid #efefef;
        padding: 2rem 1.5rem;
    }

    .contacts-right { min-height: 360px; }

    /* Touch targets for social buttons */
    .contacts-social-btn {
        width: 44px;
        height: 44px;
    }

    .contacts-social-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Submit button: full width on mobile */
    .contacts-submit {
        width: 100%;
        align-self: stretch;
        min-height: 44px;
    }

    /* — Vacancy — */
    .vacancy-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .vacancy-badge { margin-left: 0; }

    /* — Page content — */
    .page-content { padding: 40px 1.5rem; }

    /* — Back links — */
    .back-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ─── ≤ 480px: small phones ──────────────────────────── */
@media (max-width: 480px) {
    /* — Nav — */
    nav { height: 60px; padding: 0 1rem; }

    .nav-menu { top: 60px; }

    .logo-icon-img { height: 74px; width: auto; }
    .logo { margin-top: 32px; }

    section[id] { scroll-margin-top: 60px; }

    /* — Hero — */
    .hero { padding: 60px 1rem 12px; }
    .hero-slider { width: 100%; }
    .hero-slide { max-height: calc(100vh - 200px); }

    /* — Main sections — */
    .products, .about, .contact { padding: 40px 1rem; }
    .about-page, .contact-page { padding: 24px 0; }
    .about-page-inner, .contact-page-inner { padding-left: 1rem; padding-right: 1rem; }
    .page-hero { padding: 60px 1rem 32px; }
    .page-content { padding: 28px 1rem; }

    /* — Stats — */
    .stats { grid-template-columns: 1fr; }

    /* — Catalog — */
    .catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    .catalog-section { padding: 1.25rem 0.75rem 2.5rem; }

    .catalog-card-label {
        padding: 0.6rem 0.5rem;
        letter-spacing: 0.3px;
    }

    /* — Banners — */
    .category-banner,
    .category-banner-black {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        padding: 12px 1rem;
    }

    /* — About — */
    .about-section { padding: 1.5rem; }

    /* — Contacts — */
.contacts-left { padding: 1.5rem 1rem; }

    /* — Products section — */
    .products-section { padding: 1.25rem 0.75rem 2rem; }

    /* — Back links: full-width on very small — */
    .back-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* ─── ≤ 320px: very small devices ───────────────────── */
@media (max-width: 320px) {
    nav { height: 54px; padding: 0 0.75rem; }

    .nav-menu { top: 54px; }

    .logo-icon-img { height: 62px; width: auto; }
    .logo { margin-top: 28px; }

    section[id] { scroll-margin-top: 54px; }

    .category-banner,
    .category-banner-black {
        font-size: 1rem;
        letter-spacing: 0;
        padding: 8px 0.75rem;
    }

    .catalog-card-label {
        padding: 0.5rem 0.4rem;
        letter-spacing: 0;
    }

}

/* ─── Products catalog page ───────────────────────────── */

.catalog-section {
    background: #fff;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 3rem 4rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(220,38,38,0.18);
}

.catalog-card-img {
    flex: 1 1 auto;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f4f4f4;
    min-height: 0;
}

.catalog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.catalog-card-label {
    flex: 0 0 auto;
    padding: 0.85rem 0.75rem;
    text-align: center;
    font-size: clamp(12px, 3vw, 16px);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    background: #111;
}

.catalog-card-label::before {
    content: '';
    position: absolute;
    inset: -20%;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    filter: blur(14px);
    transform: scale(1.3);
    opacity: 0.4;
    z-index: 0;
}

.card-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 1;
}

.card-info-content {
    position: relative;
    z-index: 2;
}

/* ─── Product detail page ─────────────────────────────── */
.product-detail-wrap {
    max-width: 433px;
    margin: 0 auto;
    text-align: center;
}

.product-detail-img {
    display: block;
    width: min(100%, 433px);
    max-width: 433px;
    aspect-ratio: 433 / 330;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    margin: 0 auto 2rem;
}

.product-detail-name {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.product-detail-desc {
    font-size: 1.2rem; /* ≈15px */
    color: #666;
    line-height: 1.85;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* ─── Варёные колбасы: галерея продукции ───────────────── */
.vareniy-page .product-detail-wrap {
    max-width: 700px;
}

.vareniy-gallery {
    list-style: none;
    padding: 0;
    margin: 0 auto 3rem;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1.5rem;
}

.vareniy-item {
    width: calc((100% - 3rem) / 3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #ececec;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.vareniy-item-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}

.vareniy-item-desc {
    flex: 1;
    min-height: 3rem;
    margin: 0;
    padding: 1rem 1.1rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #555;
    text-align: left;
    background: #ececec;
    border-top: 1px solid #dedede;
}

.vareniy-item-desc:empty {
    min-height: 2.5rem;
    padding: 0.75rem 1.1rem;
}

.vareniy-desc-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.vareniy-desc-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.vareniy-desc-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d32f2f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    margin-bottom: 0.2rem;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.vareniy-desc-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.35rem;
    color: #666;
}

@media (max-width: 992px) {
    .vareniy-item {
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 600px) {
    .vareniy-gallery {
        gap: 1.5rem;
    }

    .vareniy-item {
        width: 100%;
    }
}

/* ─── Vareniy: tablet — horizontal card (image 40% | desc 60%) ── */
@media (min-width: 768px) and (max-width: 1023px) {
    /* One full-width card per row, laid out horizontally */
    .vareniy-item {
        width: 100%;
        flex-direction: row;
        align-items: stretch;
    }

    /* Image fills the left 40% at whatever height the desc dictates */
    .vareniy-item-img {
        width: 40%;
        flex-shrink: 0;
        height: 100%;
        object-fit: cover;
    }

    /* Description takes the remaining 60%; vertical separator replaces top border */
    .vareniy-item-desc {
        flex: 1;
        border-top: none;
        border-left: 1px solid #dedede;
        padding: 1.25rem 1.5rem;
    }
}

.vareniy-back {
    text-align: center;
    margin-bottom: 1rem;
}

/* ─── Vareniy page — additional mobile enhancements ────────
   Complements the 992px / 600px column-collapse rules above  */

@media (max-width: 768px) {
    /* Release the intro-block width constraint on tablet/mobile */
    .vareniy-page .product-detail-wrap {
        max-width: 100%;
    }

    /* Back-to-catalogue button: full-width touch target on mobile */
    .vareniy-back .back-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    /* Tighter gallery gap on small phones */
    .vareniy-gallery {
        gap: 1rem;
    }

    /* Compact card description padding */
    .vareniy-item-desc {
        padding: 0.8rem 0.9rem 1rem;
    }
}

@media (max-width: 320px) {
    /* Tight gap on very small devices */
    .vareniy-gallery {
        gap: 0.75rem;
    }

    /* Soften card corners slightly on tiny screens */
    .vareniy-item {
        border-radius: 8px;
    }

    /* More compact description area */
    .vareniy-item-desc {
        padding: 0.6rem 0.7rem 0.75rem;
        font-size: 0.82rem;
    }

    .vareniy-desc-title {
        font-size: 1.15rem;
    }
}

/* Catalog responsive rules are consolidated in the breakpoints above */

/* ─── Category product item grid ─────────────────────────── */
.products-section {
    background: #161616;
    padding: 2.5rem 3rem 4rem;
}

.products-section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.product-item-img-wrap {
    position: relative;
    overflow: hidden;
}

.product-item-img {
    width: 100%;
    height: clamp(180px, 28vw, 250px);
    object-fit: cover;
    display: block;
}

.product-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.product-item-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 0.9rem;
    z-index: 1;
}

.product-item-code {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.25rem;
    letter-spacing: 0.8px;
}

.product-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-item-divider {
    height: 3px;
    background: #dc2626;
    width: 48px;
    margin: 0 auto;
    flex-shrink: 0;
}

.product-info-rows {
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.product-info-row {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.pir-icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.pir-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pir-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.pir-text {
    font-size: 0.82rem;
    color: #333;
    line-height: 1.45;
}

/* products-grid and products-section responsive rules are consolidated in the breakpoints above */