.blog-container {
    width: min(var(--blog-container), calc(100% - 2em));
    margin: 0 auto;
}

/* =========================
   HERO
========================= */

.hero {
    padding: 2em 0 2em;
}

.hero .container,
.product-page .container {
    display: grid;
    grid-template-columns: 1fr;
}

.product-page .container {
    overflow: visible;
    grid-auto-flow: revert;
}

.hero-copy,
.panel-card,
.subsidy-card,
.card,
.info-box,
.cta-box {
    border-radius: var(--radius);
}

.panel-card {
    margin-top: 2rem;
}

.hero h1,
.product-page h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.product-page h1 {
    margin: 0 0 3rem;
}

.hero h1 {
    max-width: 10ch;
}

.hero-text {
    margin: .4em 0;
    color: var(--muted);
    font-size: 1rem;
    max-width: 60ch;
}

.hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 1.6em;
}

.hero-stats {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.stat {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 18px;
}

a.stat {
    color: var(--text);
}

a.stat:hover {
    box-shadow: var(--shadow);
}

.stat strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

@media(min-width: 700px) {
    .hero-actions {
        grid-template-columns: repeat(2, auto);
        justify-content: start;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media(min-width: 1000px) {

    .hero {
        padding: 2em 0 1em;
    }

    .product-page {
        padding: 3rem 0 3rem;
    }

    .hero .container,
    .product-page .container {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 1rem;
    }

    .product-page .container {
        gap: clamp(1rem, 5vw, 4rem);
    }

    .hero .container {
        align-items: center;
    }

    .hero h1 {
        margin: .4em 0;
    }

}

/* =========================
   BRANDS
========================= */
.brands {
    padding: 10px 0 0;
}

.brands-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.brands-row::-webkit-scrollbar {
    display: none;
}

.brands-row span {
    white-space: nowrap;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
}

/* =========================
   PANEL
========================= */

.panel-card h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

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

.panel-card ul {
    margin: 0;
    padding-left: 18px;
}

.panel-card li+li {
    margin-top: 8px;
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 0.8rem;
    font-weight: 700;
}

/* =========================
   SECTION
========================= */

.section {
    padding: 1rem 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42));
}

.section-heading {
    max-width: 720px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 7vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading h3 {
    margin: 0 0 10px;
    font-size: clamp(1.0rem, 7vw, 2.0rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section .brands {
    margin-bottom: 1rem;
}

@media(min-width: 1000px) {
    .section {
        padding: 2.4rem 0;
    }
}

/* =========================
   ABOUT
========================= */
.about-grid {
    display: grid;
    gap: 18px;
}

.about-grid h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 7vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.about-grid p {
    margin: 0;
    color: var(--muted);
}

.info-box {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 8px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row span {
    color: var(--muted);
    font-size: 0.92rem;
}

.info-row strong {
    font-size: 1rem;
}

@media(min-width: 1000px) {
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }

    .info-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
}

/* =========================
   CTA-BOX
========================= */
.cta-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 22px 18px;
    display: grid;
    gap: 18px;
}

.cta-box h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 7vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.cta-box p {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 700px) {
    .cta-box {
        grid-template-columns: 1fr auto;
        gap: 3rem;
        align-items: center;
        padding: 28px;
    }
}

/* =========================
    CONTACT-FORM
========================= */
.contact-form {
    padding: 2rem;
    margin: 5rem auto 0 auto;
}

.contact-form form {
    margin: 1rem 0;
}

@media (min-width: 700px) {}

/* =========================
   PRODUCT LIST PAGE BRANDS
========================= */
section.product-brands {
    margin: 2em 0;
}

.product-brands-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

div.brand-img-card-wrapper {
    display: flex;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 600;
}

.brand-img-card-wrapper img {
    width: 100%;
    height: auto;
}

/* =========================
   PRODUCT PAGE
========================= */
.product-page {
    padding: 1em 0 2em;
}

.product-page .container>* {
    min-width: 0;
    max-width: 100%;
}

.product-details {
    min-width: 0;
    margin-top: 4rem;
}

.product-details .description {
    overflow-wrap: break-word;
}

.product-details .description img {
    max-width: 100%;
    height: auto;
}

.product-details .description table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
}

.product-details .product-price {
    display: inline-block;
    padding: 1em 2em;
    background-color: var(--accent);
    color: var(--surface);
    font-weight: 700;
}

.product-details .product-price-original {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 0.6em;
    font-weight: 500;
}

.product-details .product-price-sale {
    font-weight: 700;
}

#image-thumb-viewport {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 1rem;
    scrollbar-color: #0000 #0000;
}

#image-thumb-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

#image-thumb-container>div {
    flex: 0 0 auto;
}

#image-thumb-container img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

@media(min-width: 1000px) {
    .product-details {
        margin-top: 0;
    }
}

/* =========================
   CONTACT PAGE
========================= */

table.contact-sites th:first-child {
    text-align: left;
}

.department-container {
    margin-top: 3rem;
}

.contacts-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* =========================
   SUBSIDIES PAGE
========================= */

.article-cards {
    grid-template-columns: initial;
}

.subsidy-card {
    padding: 0.5rem;
}

.subsidy-card a {
    text-decoration: none;
}

.subsidy-card h3 {
    margin: 1em;
}

/* =========================
   PRODUCT CARD
   PRODUCT LIST
   CATEGORY CARD
========================= */
.category-container,
.products-container {
    margin-bottom: 2rem;
}

.category-card,
.brand-card,
.contact-card,
.product-card {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card img,
.brand-card img,
.product-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
    object-fit: fill;
}

.contact-card img {
    width: 100px;
    height: 100px;
    border-radius: 999px;
    margin-top: 1.6rem;
}


.category-card .card-body,
.brand-card .card-body,
.contact-card .card-body,
.product-card .card-body {
    padding: 1rem;
}

.category-card .card-body,
.brand-card .card-body,
.product-card .card-body {
    border-top: 1px solid var(--line);
}

.category-card .card-body .card-title,
.brand-card .card-body .card-title,
.contact-card .card-body .card-title,
.product-card .card-body .card-title {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: var(--card-title-font-weight);
}

.product-card .card-body .card-price {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: var(--card-title-font-weight);
}

.products-shortcut-tiles {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.products-shortcut-tile {
    position: relative;
    flex: 1 1 0;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-shortcut-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: opacity .2s ease;
}

.products-shortcut-tile:hover img,
.products-shortcut-tile:focus-visible img {
    opacity: 0.6;
}

.products-shortcut-label {
    position: relative;
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.product-card .card-body .card-price-original,
.product-card .card-body .card-price-sale {
    display: block;
    line-height: 1.2;
}

.product-card .card-body .card-price-original {
    text-decoration: line-through;
    opacity: 0.6;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--muted, var(--text));
}

.product-card .card-body .card-price-sale {
    color: var(--accent);
    font-weight: var(--card-title-font-weight);
}

.tag.tag-sale {
    background-color: var(--accent);
    color: var(--surface);
    border-color: var(--accent);
}

.tag.tag-stock-in_stock {
    background-color: #588157;
    color: var(--surface);
    border-color: #588157;
}

.tag.tag-stock-out_of_stock {
    background-color: #b94a4a;
    color: var(--surface);
    border-color: #b94a4a;
}

.tag.tag-stock-in_procurement {
    background-color: #c98a2b;
    color: var(--surface);
    border-color: #c98a2b;
}

.brand-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-top: 2rem;
}

.brand-cta-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-cta-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-cta-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

.brand-cta-body {
    min-width: 0;
}

.brand-cta-name {
    margin: 0 0 .5rem 0;
    font-size: 1.4rem;
}

.brand-cta-description {
    margin: 0;
    color: var(--text-muted, var(--text));
}

a.btn-cta {
    display: inline-block;
    padding: .8em 2em;
    background: var(--accent);
    color: var(--surface);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.btn-cta:hover,
.btn-cta:focus-visible {
    filter: brightness(0.9);
}

@media (min-width: 700px) {
    .brand-cta {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }
}

.related-products {
    margin-top: 3rem;
}

.related-products-header {
    margin-bottom: 1.5rem;
}

.related-products-header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 5vw, 2rem);
    letter-spacing: -0.03em;
}

.related-products-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.machine-contacts {
    margin-top: 3rem;
}

.machine-contacts-header {
    margin-bottom: 1.5rem;
}

.machine-contacts-header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 5vw, 2rem);
    letter-spacing: -0.03em;
}

.brand-card .card-body {
    text-align: left;
}

.brand-card .card-body .card-description {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted, var(--text));
}

.brand-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
}

.brand-tile {
    background: var(--surface, #fff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-tile img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

.featured-brands {
    margin-bottom: 2rem;
}

.brand-featured-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--surface, #fff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

a.brand-featured-row:hover,
a.brand-featured-row:focus-visible {
    box-shadow: var(--shadow);
}

.brand-featured-row-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem;
}

.brand-featured-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-featured-row-header .brand-featured-row-logo {
    margin-left: auto;
}

.brand-featured-row-title {
    font-size: 1.5rem;
    font-weight: var(--card-title-font-weight);
    color: var(--text);
    text-decoration: none;
}

.brand-featured-row-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

.brand-featured-row-description {
    font-size: 0.95rem;
    color: var(--text-muted, var(--text));
}

.brand-featured-row-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--line);
    border-radius: var(--radius);
}

@media (max-width: 640px) {
    .brand-featured-row {
        grid-template-columns: 1fr;
    }
}

.card .muted {
    opacity: .3;
}

/* =========================
   ARTICLE CARD
========================= */

.article-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.article-card {
    padding: 0;
}

.article-card .card-body {
    padding: 1rem;
}

.card .muted {
    opacity: .3;
}

/* =========================
   PRODUCT FAMILY PAGE
========================= */
.product-family-products {
    margin: 3rem auto;
}

.bordered-container form {
    max-width: (100% - 1.6rem - 2px);
}


/* =========================
   SLIDER
========================= */
.slide-viewer {
    position: relative;
    overflow: hidden;
    height: calc(100vw * 0.5);
}

.slide-group {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    z-index: 50;
}

.slide:first-child {
    display: block;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 1rem 2rem;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%);
}

.slide-overlay-inner {
    max-width: 100%;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.slide-overlay-title {
    font-size: clamp(1.5rem, 1rem + 2vw, 3.5rem);
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.slide-overlay-text {
    font-size: clamp(1rem, 0.75rem + 0.6vw, 1.5rem);
    margin: 0 0 1.25rem;
}

.slide-overlay-btn {
    text-shadow: none;
}

@media (min-width: 700px) {
    .slide-viewer {
        height: calc(100vw * 0.3);
        min-height: 0;
    }

    .slide-overlay {
        align-items: center;
        padding: 0 6vw;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 60%);
    }

    .slide-overlay-inner {
        max-width: 40rem;
    }
}

.slide-buttons {
    position: absolute;
    z-index: 80;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: center;
    background-color: var(--surface-soft);
    opacity: .6;
}

.slide-buttons .slide-btn {
    background-color: transparent;
    border: none;
    color: var(--muted);
    font-size: clamp(1rem, 0.75rem + 0.6vw, 2.5rem);
    line-height: 1.5;
    cursor: pointer;
}

.slide-buttons .slide-btn.active {
    color: var(--text);
    opacity: 1;
}

/* =========================
   MEGYE MAP
========================= */
.megye-employee-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

.megye-employee-section>* {
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 700px) {
    .megye-employee-section {
        grid-template-columns: 1fr 1fr;
    }
}

.megye-map {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1020 / 680;
}

.megye-map svg {
    width: 100%;
    height: 100%;
    display: block;
}

.megye-map svg path {
    fill: var(--accent) !important;
    fill-opacity: 0.25;
    stroke: var(--text) !important;
    stroke-width: 0.6 !important;
    transition: fill-opacity 0.15s ease;
}

.megye-map svg path.active {
    fill-opacity: 1;
}

.megye-map svg path.active:hover {
    fill: var(--accent-hover, #3d5c3c) !important;
    stroke-width: 1.2 !important;
}

.megye-map svg path.selected {
    fill: var(--accent-hover, #c44) !important;
    stroke-width: 1.2 !important;
}

.megye-map svg path#mo,
.megye-map svg path#magyarorszag {
    fill: none !important;
    stroke: none !important;
    pointer-events: none !important;
}

.megye-employees-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.megye-employees-table th,
.megye-employees-table td {
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.megye-employees-table tr.hidden,
.contact-card.hidden,
.department-container.hidden {
    display: none;
}

.megye-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.megye-filter-select {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
}

.megye-filter-clear {
    flex: 0 0 auto;
    margin: 0 !important;
}

.megye-filter-status {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================
   PRODUCT CAROUSEL
========================= */

.product-carousel {
    position: relative;
}

.product-carousel .carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 1rem 0 2rem;
}

.product-carousel .carousel-track.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.product-carousel .carousel-track::-webkit-scrollbar {
    display: none;
}

.product-carousel .carousel-item {
    /* mobil: 1 kártya + a következő széle belóg, jelezve hogy húzható */
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: start;
    /* swipe mindig pontosan egy kártyát ugrik, lendülettel sem ugrik át többet */
    scroll-snap-stop: always;
}

.product-carousel .carousel-item .card {
    height: 100%;
}

.product-carousel .carousel-arrow {
    display: none;
}

@media (min-width: 480px) {
    .product-carousel .carousel-item {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (min-width: 700px) {
    .product-carousel .carousel-item {
        flex-basis: calc((100% - 2rem) / 3);
    }

    .product-carousel .carousel-arrow {
        display: none;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 2.4rem;
        height: 2.4rem;
        border: 1px solid var(--line);
        border-radius: 50%;
        background-color: var(--surface);
        box-shadow: var(--shadow);
        color: var(--muted);
        cursor: pointer;
    }

    .product-carousel .carousel-prev {
        left: -1.2rem;
    }

    .product-carousel .carousel-next {
        right: -1.2rem;
    }
}

@media (min-width: 1000px) {
    .product-carousel .carousel-item {
        flex-basis: calc((100% - 3rem) / 4);
    }
}

/* =========================
   FILTER RECOMMENDATIONS
========================= */
.filter-recommendations {
    display: block;
    margin-bottom: 2rem;
    background-color: var(--muted);
}

.filter-recommendations h4 {
    margin: .5rem 0;
}

.filter-recommendations ul {
    padding-left: 0;
    display: flex;
    gap: 1rem;
    list-style: none;
}

.filter-recommendations ul {
    padding-left: 0;
    display: flex;
    gap: 1rem;
    list-style: none;
}

.filter-recommendations ul a {
    font-size: 0.85rem;
}

.filter-recommendations ul a.active {
    background-color: var(--light-green);
    color: var(--text);
    font-weight: bold;
    box-shadow: var(--strong-shadow);
}
