/* Shared component overrides. Base typography, colors and layout live in styles.css. */
.hero-dots{z-index:3;bottom:24px;gap:12px}
.hero-dot{display:block;width:12px;height:12px;border:2px solid #fff;background:rgba(255,255,255,.55);box-shadow:0 1px 5px #0005}
.hero-dot.active{border-color:var(--red);background:var(--red)}

.site-header{position:sticky;top:0;z-index:100}
.page-hero{min-height:400px}
.page-hero-about{background-image:linear-gradient(rgba(0,0,0,.32),rgba(0,0,0,.32)),url('images/reference/hero-about-company.jpg')}
.page-hero-products{background-image:linear-gradient(rgba(0,0,0,.32),rgba(0,0,0,.32)),url('images/reference/hero-products-factory.jpg')}
.page-hero-news{background-image:linear-gradient(rgba(0,0,0,.32),rgba(0,0,0,.32)),url('images/reference/hero-news-products.jpg')}
.page-hero-contact{background-image:linear-gradient(rgba(0,0,0,.32),rgba(0,0,0,.32)),url('images/reference/hero-contact-team.jpg')}

.news-slider-wrap .news-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:44px;height:44px;border:1px solid rgba(39,179,173,.4);border-radius:50%;background:#fff;color:var(--red);display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.news-slider-wrap .news-arrow:hover{background:var(--red);color:#fff}
.news-slider-wrap .news-prev{left:-22px}.news-slider-wrap .news-next{right:-22px}

.products-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:44px;align-items:start}
.products-sidebar{display:grid;gap:28px;align-content:start;padding:24px;background:var(--soft);border:0}
.products-sidebar h2{margin:0 0 16px;font-size:20px}
.products-sidebar .sidebar-section + .sidebar-section{padding-top:24px;border-top:1px solid #ddd}
.products-sidebar .sidebar-latest a{display:block;padding:11px 0;border-bottom:1px solid #ddd}
.products-sidebar .sidebar-cta{margin:0 -24px -24px}
.products-sidebar .sidebar-category{min-width:0}
.product-cat-link{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #ddd;color:var(--muted);font-size:14px}
.product-cat-link span{font-size:12px;color:#999}
.product-cat-link:hover,.product-cat-link.active{color:var(--red)}
.products-sidebar .sidebar-category a::after{content:none}
.products-results .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.products-results .news-grid{grid-template-columns:1fr}
.products-results .news-card{display:grid;grid-template-columns:220px minmax(0,1fr)}

.footer-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(28px,6vw,90px)}
.footer-col p,.footer-col a{font-size:15px}.footer-col h3{font-size:18px}
.news-date{color:#666}.text-link{color:#333}
.footer-col,.footer-col:nth-child(2),.footer-col:nth-child(3),.footer-col:nth-child(4){text-align:left}
.footer-col:first-child{justify-self:start}.footer-col:last-child{justify-self:end}
.site-footer a:hover,.site-footer a:focus-visible{color:var(--red);}
.language-switcher{display:flex;align-items:center;gap:10px;font-size:12px}
.language-switcher a{color:#555;text-decoration:none}
.language-switcher a:hover,.language-switcher a.active{color:var(--red)}

.news-detail-meta{text-align:center;margin:0 0 34px;color:#777;font-size:14px}
.news-detail-meta span{display:inline-block;margin:0 9px}

.gallery-lightbox{z-index:1000;opacity:0;visibility:hidden;transform:scale(.96);transition:opacity .28s ease,transform .28s ease,visibility .28s ease}
.gallery-lightbox.open{opacity:1;visibility:visible;transform:scale(1)}
.gallery-lightbox img{transform:scale(.94);opacity:0;transition:transform .3s ease,opacity .3s ease}
.gallery-lightbox.open img{transform:scale(1);opacity:1}
.detail-main-image:hover{transform:none!important;box-shadow:none!important}
.detail-main-image:hover::after{background:rgba(25,25,25,.56)!important;transform:none!important}
.detail-main-image::after{transition:none!important}
.detail-thumb:hover{transform:none!important}
.detail-thumb.active{transform:scale(1.04)}

.contact-photo-slider,.company-photo-slider{position:relative;overflow:hidden;background:#e9eeee}
.contact-photo-track,.company-photo-slider .contact-photo-track{position:absolute;inset:0}
.contact-photo-slide{position:absolute;inset:0;background-position:center;background-size:cover;opacity:0;animation:contactPhotoFade 12s infinite}
.contact-photo-slide:nth-child(1){animation-delay:0s}.contact-photo-slide:nth-child(2){animation-delay:4s}.contact-photo-slide:nth-child(3){animation-delay:8s}
.company-photo-slider .contact-photo-slide{animation-duration:20s}
.company-photo-slider .contact-photo-slide:nth-child(1){animation-delay:0s}.company-photo-slider .contact-photo-slide:nth-child(2){animation-delay:4s}.company-photo-slider .contact-photo-slide:nth-child(3){animation-delay:8s}.company-photo-slider .contact-photo-slide:nth-child(4){animation-delay:12s}.company-photo-slider .contact-photo-slide:nth-child(5){animation-delay:16s}
.contact-photo-dots{position:absolute;z-index:2;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
.contact-photo-dots span{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.75);box-shadow:0 1px 4px #0005;cursor:pointer}
.contact-photo-dots span.active{background:var(--red);transform:scale(1.2)}
@keyframes contactPhotoFade{0%,28%{opacity:1}33%,95%{opacity:0}100%{opacity:1}}
.js-slider .contact-photo-slide{animation:none!important}

.about-block{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;margin-bottom:72px}
.about-block-reverse .about-block-image{order:2}.about-block-reverse .about-block-copy{order:1}
.about-block-image{min-height:330px;background:center/cover no-repeat}.about-block-copy p{color:var(--muted);line-height:1.8}
.about-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.about-list span{padding:12px 14px;background:var(--soft);border-left:3px solid var(--red)}

.pagination,.nav-links{display:flex;justify-content:center;gap:8px;margin:42px 0 0}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--line);color:var(--muted);background:#fff;text-decoration:none}
.page-numbers.current,.page-numbers:hover{border-color:var(--red);background:var(--red);color:#fff}
.products-results .page-numbers{margin-top:38px}

@media(max-width:980px){.products-layout{grid-template-columns:200px minmax(0,1fr);gap:24px}.products-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.page-hero{min-height:320px}.products-layout{grid-template-columns:1fr}.products-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.products-results .news-card{grid-template-columns:1fr}.news-slider-wrap .news-prev{left:4px}.news-slider-wrap .news-next{right:4px}.footer-grid{grid-template-columns:1fr;gap:28px}.footer-col:last-child{justify-self:start}.about-block{grid-template-columns:1fr;gap:24px;margin-bottom:48px}.about-block-reverse .about-block-image,.about-block-reverse .about-block-copy{order:initial}.about-list{grid-template-columns:1fr}}
