:root {
    --bg: #f5f6f7;
    --surface: #ffffff;
    --text: #1b2025;
    --muted: #66717c;
    --border: #dde2e6;
    --dark: #161b20;
    --dark2: #232a31;
    --accent: #d86f18;
    --accent-dark: #b9580d;
    --radius: 12px;
    --shadow: 0 12px 30px rgba(0,0,0,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: rgba(22,27,32,.97);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 15px rgba(0,0,0,.18);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .04em;
    font-size: 22px;
}

.brand-mark {
    background: var(--accent);
    padding: 4px 9px;
    margin-right: 4px;
}

.brand-name {
    padding-left: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    color: #dce2e7;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--dark2);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
}

.hero {
    background:
        linear-gradient(110deg, #161b20 0%, #252d35 100%);
    color: #fff;
    padding: 96px 0 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    color: #f0a15e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: 13px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.02;
    margin: 0 0 24px;
    letter-spacing: -.04em;
}

.hero p {
    color: #c9d0d6;
    font-size: 19px;
    max-width: 680px;
    margin: 0 0 34px;
}

.hero-panel {
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.05);
    padding: 32px;
    border-radius: 16px;
}

.hero-stat {
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 18px 0;
}

.hero-stat:last-child {
    border-bottom: 0;
}

.hero-stat strong {
    display: block;
    font-size: 22px;
}

.hero-stat span {
    color: #aeb7bf;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    border-color: #55616c;
    color: #fff;
    margin-left: 8px;
}

.section {
    padding: 76px 0;
}

.section-white {
    background: #fff;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 32px;
}

.section-head h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.text-link {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-image {
    display: block;
    position: relative;
    aspect-ratio: 3/2;
    background: #e8ebee;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, #27313a, #171c21);
    color: rgba(255,255,255,.45);
    font-weight: 800;
    letter-spacing: .12em;
}

.product-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    background: var(--accent);
    color: #fff;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.product-card-body {
    padding: 22px;
}

.product-maker {
    color: var(--accent-dark);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 800;
}

.product-card h3 {
    font-size: 21px;
    line-height: 1.25;
    margin: 7px 0 10px;
}

.product-card h3 a {
    text-decoration: none;
}

.product-card p {
    color: var(--muted);
    margin: 0 0 15px;
}

.page-hero {
    background: var(--dark);
    color: #fff;
    padding: 58px 0;
}

.page-hero h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0;
}

.page-hero p {
    color: #bec7cf;
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 18px;
}

.content {
    max-width: 900px;
    font-size: 17px;
}

.content h2,
.content h3 {
    line-height: 1.2;
}

.product-detail {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 55px;
    align-items: start;
}

.product-main-image {
    overflow: hidden;
    border-radius: 12px;
    background: #e8ebee;
}

.product-main-image img {
    width: 100%;
    height: auto;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-chip {
    display: inline-flex;
    background: #edf0f2;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 13px;
    color: #4d5963;
}

.product-detail h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    margin: 0 0 18px;
}

.product-summary {
    color: var(--muted);
    font-size: 18px;
}

.specs {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.specs th,
.specs td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.specs th {
    width: 48%;
    font-weight: 600;
    color: #56616b;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 7px;
}

.empty-state {
    border: 1px dashed #c8cfd5;
    border-radius: 12px;
    padding: 36px;
    background: #fff;
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.site-footer {
    background: var(--dark);
    color: #c3cbd1;
    margin-top: 60px;
    padding-top: 54px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 45px;
}

.footer-grid strong {
    color: #fff;
    display: block;
    margin-bottom: 10px;
}

.footer-grid a {
    display: block;
    text-decoration: none;
    margin: 7px 0;
}

.footer-brand {
    color: #fff;
    font-size: 23px;
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid #323940;
    margin-top: 42px;
    padding: 20px 0;
    font-size: 13px;
}

@media (max-width: 900px) {
    .hero-grid,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .hero {
        padding: 65px 0;
    }

    .hero-panel {
        display: none;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: var(--dark);
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .menu-open .main-nav {
        display: flex;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Originalni logo AZM-METAL */
.brand {
    display: flex;
    align-items: center;
    height: 58px;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 52px;
    object-fit: contain;
}

/* =========================================================
   AZM FINAL V6
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    height: 56px;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 50px;
    object-fit: contain;
}

.hero-photo {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background:
        url('/site/templates/assets/img/home-hero.jpg')
        center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(13,18,22,.95) 0%,
            rgba(13,18,22,.72) 52%,
            rgba(13,18,22,.22) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-content h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(42px,6vw,68px);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 32px;
    color: #e1e6e9;
    font-size: 20px;
}

.service-cards {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    display: block;
    min-height: 390px;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    text-decoration: none;
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    transition:
        transform .3s ease,
        opacity .3s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            transparent 30%,
            rgba(0,0,0,.9)
        );
}

.service-card > div {
    position: absolute;
    z-index: 2;
    left: 25px;
    right: 25px;
    bottom: 25px;
    color: #fff;
}

.service-card h2 {
    margin: 0 0 6px;
    font-size: 27px;
    line-height: 1.15;
}

.service-card span {
    font-weight: 700;
}

.service-card:hover img {
    transform: scale(1.04);
    opacity: .82;
}

.contact-band {
    padding: 65px 0;
    background: #20272d;
    color: #fff;
}

.contact-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.contact-band h2 {
    margin: 3px 0 13px;
    font-size: 34px;
}

.contact-band p {
    max-width: 800px;
    margin: 0;
    color: #d3d9de;
    font-size: 18px;
}

.manufacturer-grid {
    display: grid;
    grid-template-columns:
        repeat(5,minmax(0,1fr));
    gap: 15px;
}

.manufacturer-card {
    min-height: 150px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.manufacturer-card img {
    width: 100%;
    height: 70px;
    object-fit: contain;
}

.catalog-filter {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr))
        auto;
    align-items: end;
    gap: 15px;
    margin: 0 0 40px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.catalog-filter label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.catalog-filter select {
    height: 46px;
    padding: 0 11px;
    font: inherit;
    background: #fff;
    border: 1px solid #ccd3d9;
    border-radius: 7px;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 11px;
}

.filter-reset {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.contact-layout {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 24px;
}

.contact-box {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.contact-box h2 {
    margin: 3px 0 18px;
}

.contact-box a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.contact-product {
    margin-top: 24px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.maker-info-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 24px;
}

.maker-info-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.maker-info-logo {
    height: 100px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.maker-info-logo img {
    max-width: 100%;
    max-height: 85px;
    object-fit: contain;
}

.maker-info-card h2 {
    margin: 0 0 13px;
}

.maker-info-card p {
    color: var(--muted);
}

.category-cta {
    margin-bottom: 32px;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.category-cta a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {

    .service-cards,
    .maker-info-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 280px;
    }

    .manufacturer-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .catalog-filter {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 680px) {

    .brand-logo {
        max-width: 170px;
        max-height: 42px;
    }

    .hero-photo {
        min-height: 470px;
    }

    .manufacturer-grid,
    .catalog-filter,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }
}


/* =========================================================
   AZM V7 - BILA HLAVICKA + ROTATOR VYROBCU
   ========================================================= */


/* ---------------------------------------------------------
   HLAVICKA
   --------------------------------------------------------- */

.site-header {
    background: #ffffff;
    color: #1b2025;

    box-shadow:
        0 2px 16px rgba(0,0,0,.08);
}

.header-inner {
    min-height: 94px;
}


/*
 * Logo je zamerne podstatne vetsi nez driv.
 */
.brand {
    height: 78px;
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 330px;
    max-height: 72px;

    object-fit: contain;
}


/*
 * Tmave menu na bilem podkladu.
 */
.main-nav a {
    color: #20262c;

    font-size: 16px;
    font-weight: 700;

    padding:
        11px 16px;

    border-radius: 7px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #151a1f;
    background: #f0f2f3;
}

.main-nav a:hover {
    color: var(--accent-dark);
}


/*
 * Mobilni hamburger musi byt nyni tmavy.
 */
.menu-toggle {
    color: #20262c;
}


/* ---------------------------------------------------------
   ROTATOR VYROBCU
   --------------------------------------------------------- */

.manufacturer-section {
    overflow: hidden;
}

.manufacturer-rotator {
    width: 100%;

    overflow: hidden;

    padding:
        5px 0 15px;

    /*
     * Lehke ztraceni karet u kraju.
     */
    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0,
            #000 5%,
            #000 95%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent 0,
            #000 5%,
            #000 95%,
            transparent 100%
        );
}

.manufacturer-track {
    display: flex;

    width: max-content;

    gap: 18px;

    animation:
        azmManufacturerScroll
        34s
        linear
        infinite;
}


/*
 * Kdyz si chce nekdo logo prohlednout,
 * rotator se zastavi.
 */
.manufacturer-rotator:hover
.manufacturer-track {
    animation-play-state: paused;
}

.manufacturer-set {
    display: flex;

    gap: 18px;
}

.manufacturer-slide {
    width: 245px;
    height: 150px;

    flex:
        0 0 245px;

    padding:
        20px 24px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 13px;

    text-align: center;

    background: #fff;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    box-shadow:
        0 4px 16px
        rgba(0,0,0,.035);

    /*
     * Zadne klikani.
     */
    cursor: default;

    user-select: none;
}

.manufacturer-slide img {
    width: 100%;
    height: 78px;

    object-fit: contain;
}

.manufacturer-slide strong {
    color: #303840;

    font-size: 14px;
    line-height: 1.2;
}


/*
 * Dve identicke sady.
 * Posuneme presne o sirku prvni
 * + polovinu mezery mezi sadami.
 */
@keyframes azmManufacturerScroll {

    from {
        transform:
            translateX(0);
    }

    to {
        transform:
            translateX(
                calc(-50% - 9px)
            );
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .header-inner {
        min-height: 84px;
    }

    .brand {
        height: 68px;
    }

    .brand-logo {
        max-width: 270px;
        max-height: 62px;
    }

    .manufacturer-slide {
        width: 220px;
        flex-basis: 220px;
    }
}


/* ---------------------------------------------------------
   MOBIL
   --------------------------------------------------------- */

@media (max-width: 680px) {

    .header-inner {
        min-height: 76px;
    }

    .brand {
        height: 60px;
    }

    .brand-logo {
        max-width: 220px;
        max-height: 54px;
    }

    /*
     * Puvodni mobilni menu bylo tmave,
     * ted musi byt bile jako hlavicka.
     */
    .main-nav {
        top: 76px;

        background: #ffffff;

        border-top:
            1px solid #e5e8ea;

        box-shadow:
            0 10px 20px
            rgba(0,0,0,.08);
    }

    .main-nav a {
        color: #20262c;
    }

    .manufacturer-rotator {
        -webkit-mask-image:
            linear-gradient(
                90deg,
                transparent 0,
                #000 3%,
                #000 97%,
                transparent 100%
            );

        mask-image:
            linear-gradient(
                90deg,
                transparent 0,
                #000 3%,
                #000 97%,
                transparent 100%
            );
    }

    .manufacturer-slide {
        width: 190px;
        height: 135px;

        flex-basis: 190px;

        padding: 17px;
    }

    .manufacturer-slide img {
        height: 68px;
    }
}


/*
 * Kdo ma v systemu vypnute animace,
 * nebude mit automaticky posun.
 */
@media (
    prefers-reduced-motion:
    reduce
) {

    .manufacturer-track {
        animation: none;
    }

    .manufacturer-rotator {
        overflow-x: auto;
    }
}
