/* Баннер «Технологии производства» (tech_banner.php) */
.tech-banner-section { padding: 30px 0; background: #fff; }
.tech-banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 1240 / 420;
    background: #10231c;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.tech-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.tech-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 30, 22, .92) 0%, rgba(5, 30, 22, .7) 38%, rgba(5, 30, 22, 0) 68%);
}
.tech-banner:hover img { transform: scale(1.03); }
.tech-banner-text {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 5%;
    max-width: 46%;
    transform: translateY(-50%);
    color: #fff;
}
.tech-banner-kicker {
    display: block;
    color: var(--lime);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tech-banner-title {
    display: block;
    margin: 8px 0 10px;
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}
.tech-banner-sub { display: block; font-size: 16px; line-height: 1.5; opacity: .9; }
.tech-banner-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--primary);
    font-weight: 800;
    font-size: 15px;
    transition: var(--transition);
}
.tech-banner:hover .tech-banner-btn { background: var(--secondary); color: var(--dark); }

@media (max-width: 900px) {
    .tech-banner { aspect-ratio: auto; min-height: 320px; }
    .tech-banner::after { background: linear-gradient(0deg, rgba(5, 30, 22, .95) 0%, rgba(5, 30, 22, .7) 55%, rgba(5, 30, 22, .2) 100%); }
    .tech-banner-text { top: auto; bottom: 22px; left: 20px; right: 20px; max-width: none; transform: none; }
    .tech-banner-title { font-size: 26px; }
    .tech-banner-sub { font-size: 14px; }
}

/* Баннер «Закон о рекламе» на телефоне: фото сверху видно полностью, текст — под ним */
@media (max-width: 900px) {
    .zakon-banner-section .tech-banner { min-height: 0; display: flex; flex-direction: column; }
    .zakon-banner-section .tech-banner img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 40% center; }
    .zakon-banner-section .tech-banner::after { display: none; }
    .zakon-banner-section .tech-banner-text { position: static; transform: none; max-width: none; padding: 18px 20px 22px; background: #10231c; }
}
