.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://arfa-zavod.ru/wp-content/uploads/2026/03/acoustic-solutions.jpeg') center top / cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #f9fafb;
    padding: 0 0 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: brightness(0.9);
    animation: slowZoom 25s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-content {
    width: 100%;
    padding-top: calc(64px + 70px);
    padding-bottom: 40px;
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: left;
}

.hero h1 span {
    color: #ffc400;
    display: inline-block;
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 196, 0, 0.2);
    z-index: -1;
}

.min-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffc400;
    color: #000000;
    padding: 12px 32px;
    border-radius: 40px;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.min-order-badge strong {
    font-weight: 800;
    color: #000000;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 48px;
    max-width: 800px;
    text-align: left;
    color: #f9fafb;
    opacity: 0.95;
}

.hero-subtitle strong {
    color: #ffc400;
    font-weight: 700;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 48px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.feature-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffc400;
}

.feature-item i {
    font-size: 2.2rem;
    color: #ffc400;
}

.feature-item strong {
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background-color: #ffc400;
    color: #1e1e2f;
    box-shadow: 0 8px 20px rgba(255, 196, 0, 0.2);
}

.btn-primary:hover {
    background-color: #e6b300;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 196, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #f9fafb;
    border: 2px solid #e5e7eb;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffc400;
    transform: translateY(-2px);
}

.partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    opacity: 0.9;
}

.partners span {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tender-highlight {
    color: #a5b8d0;
    font-weight: 700;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-logo {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.partner-logo:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffc400;
}

.partner-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.partner-logo:hover img {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 700px) {
    .hero-content {
        padding-top: 180px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .min-order-badge {
        padding: 10px 24px;
        font-size: 0.9rem;
        gap: 8px;
        margin-bottom: 20px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }
    .hero-features {
        grid-template-columns: 1fr 1fr;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .partners {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .partner-logos {
        width: 100%;
        justify-content: flex-start;
    }
    .partner-logo {
        padding: 12px;
    }
    .partner-logo img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-features {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-content {
        padding-top: 200px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .min-order-badge {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

.catalog {
    padding: 100px 0;
    background: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1e1e2f;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.2rem;
    color: #9ca3af;
    max-width: 600px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catalog-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.02);
}

.catalog-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.catalog-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f2f5;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.catalog-item:hover .catalog-image img {
    transform: scale(1.05);
}

.catalog-content {
    padding: 28px 24px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e1e2f;
    line-height: 1.2;
}

.catalog-content p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.spec {
    display: inline-block;
    background: #f3f4f6;
    color: #1e1e2f;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.catalog-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background-color: #ffc400;
    color: #1e1e2f;
    box-shadow: 0 8px 20px rgba(255, 196, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e6b300;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 196, 0, 0.3);
}

/* Адаптивность */
@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .catalog-content h3 {
        font-size: 1.5rem;
    }
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .catalog-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary {
        justify-content: center;
    }
}

.solution-matrix {
    padding: 80px 0;
    background: #f8fafc;
}

.solution-matrix .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.solution-matrix .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.solution-matrix .section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1e1e2f;
}

.solution-matrix .section-header p {
    font-size: 1.1rem;
    color: #5a6e8a;
}

.solution-matrix .matrix-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 40px;
}

.solution-matrix .matrix-row {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.5fr 1.2fr;
    border-bottom: 1px solid #e2e8f0;
}

.solution-matrix .matrix-row:last-child {
    border-bottom: none;
}

.solution-matrix .matrix-header {
    background: #1e1e2f;
    color: white;
    font-weight: 700;
}

.solution-matrix .matrix-cell {
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    border-right: 1px solid #e2e8f0;
}

.solution-matrix .matrix-header .matrix-cell {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.solution-matrix .matrix-cell:last-child {
    border-right: none;
}

.solution-matrix .matrix-footer {
    text-align: center;
    margin-top: 20px;
}

.solution-matrix .matrix-note {
    font-size: 0.95rem;
    color: #4a5a7a;
    margin-bottom: 24px;
}

.solution-matrix .matrix-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Основная кнопка (жёлтая) */
.solution-matrix .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background-color: #ffc400;
    color: #1e1e2f;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.solution-matrix .btn-primary:hover {
    background-color: #e6b300;
    transform: translateY(-2px);
}

/* Вторичная кнопка (тёмная, контрастная) – лучшее решение для светло-серого фона */
.solution-matrix .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background-color: #1e1e2f;
    color: #ffffff;
    border: 1px solid #334155;
    transition: 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.solution-matrix .btn-secondary:hover {
    background-color: #2d2d44;
    border-color: #ffc400;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Адаптивность */
@media (max-width: 1000px) {
    .solution-matrix .matrix-row {
        grid-template-columns: 1fr;
        border-bottom: 2px solid #e2e8f0;
    }
    .solution-matrix .matrix-header {
        display: none;
    }
    .solution-matrix .matrix-cell {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 16px;
        position: relative;
        padding-left: 40%;
    }
    .solution-matrix .matrix-cell:before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        width: 35%;
        font-weight: 700;
        color: #1e1e2f;
    }
    .solution-matrix .matrix-row .matrix-cell:first-child {
        padding-top: 16px;
    }
    .solution-matrix .matrix-row .matrix-cell:last-child {
        border-bottom: none;
        padding-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .solution-matrix {
        padding: 50px 0;
    }
    .solution-matrix .section-header h2 {
        font-size: 1.8rem;
    }
    .solution-matrix .container {
        padding: 0 20px;
    }
    .solution-matrix .matrix-buttons {
        flex-direction: column;
        align-items: center;
    }
    .solution-matrix .btn-primary,
    .solution-matrix .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* Секция сертификатов (полные стили) */
.about-certificates {
    padding: 80px 0;
    background: #ffffff;
}

.about-certificates .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
}

.about-certificates .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.about-certificates .production-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #2d2d3a;
    line-height: 1.6;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.certificate-item {
    background: #ffffff;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--accent);
    padding: 5px;
}

.certificate-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.certificate-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.certificate-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--border-radius-card) / 2);
}

/* Попап для документов */
.doc-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.doc-popup.active {
    display: flex;
}

.doc-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1001;
}

.doc-popup-content {
    position: relative;
    z-index: 1002;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

#doc-popup-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-hover);
}

.doc-popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1003;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.doc-popup-close:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.doc-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 1003;
}

.doc-popup-nav:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.doc-popup-prev {
    left: -80px;
}

.doc-popup-next {
    right: -80px;
}

@media (max-width: 1100px) {
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-certificates .section-title {
        font-size: 2rem;
    }
    .about-certificates .production-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .doc-popup-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    .doc-popup-prev {
        left: -50px;
    }
    .doc-popup-next {
        right: -50px;
    }
    .doc-popup-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Секция контактов */
.contacts-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contacts-section .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
    color: var(--primary-dark);
    text-align: center;
}

.contacts-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts-info h3,
.contacts-map h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.contacts-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contacts-info .contact-item i {
    color: var(--accent);
    font-size: 1.3rem;
    width: 24px;
    margin-top: 3px;
}

.contacts-info .contact-item strong {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.contacts-info .contact-item a,
.contacts-info .contact-item span {
    color: var(--text-dark);
    text-decoration: none;
}

.contacts-info .contact-item a:hover {
    color: var(--accent);
}

.contacts-info .messengers .messengers-links {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.contacts-info .messengers .messengers-links a {
    font-size: 1.5rem;
    color: var(--gray-mid);
    transition: color 0.2s;
}

.contacts-info .messengers .messengers-links a:hover {
    color: var(--accent);
}

.contact-action {
    margin-top: 30px;
}

.contact-action .btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.map-container {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 500px;
}

/* Адаптивность */
@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .map-container {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .contacts-section .section-title {
        font-size: 2rem;
    }
    .contacts-info h3,
    .contacts-map h3 {
        font-size: 1.5rem;
    }
}