
@media (max-width: 1200px) and (min-width: 768px) {
    .projects-showcase {
        padding: 72px 0;
        background: var(--bg-3);
    }

    .projects-showcase__shape {
        width: 260px;
        height: 260px;
        top: 36px;
        left: -30px;
        opacity: 0.92;
    }

    .projects-showcase__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .projects-showcase__content {
        padding-top: 120px;
        max-width: 760px;
    }

    .projects-showcase__content h2 {
        max-width: 700px;
        font-size: 2.6rem;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .projects-showcase__content p {
        max-width: 760px;
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .projects-showcase__logos {
        min-height: auto;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 28px;
    }

    .project-badge,
    .project-badge:first-child,
    .project-badge--middle,
    .project-badge--bottom {
        position: static;
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 1100px) {
    .news-grid--listing,
    .news-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .slide-inner {
        grid-template-columns: 1fr 1fr;
    }

    .slide-text {
        padding: 36px;
    }

    .slide-text h3 {
        font-size: 1.9rem;
    }

    .simple-slider {
        min-height: 420px;
    }

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

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

@media (max-width: 1000px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-side {
        max-width: 100%;
    }

    .hero-product-slider {
        min-height: 420px;
    }

    .hero-product-image {
        min-height: 210px;
        padding: 12px;
    }

    .hero-product-image img {
        max-height: 240px;
    }

    .hero-product-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .product-tiles {
        padding-top: 44px;
        padding-bottom: 56px;
    }

    .projects-showcase,
    .homepage-news,
    .homepage-references,
    .about-preview {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .homepage-news__head,
    .homepage-references__head,
    .news-section__header {
        margin-bottom: 24px;
    }

    .news-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-section__cta {
        width: 100%;
        text-align: center;
    }

    .homepage-news__grid,
    .homepage-references__grid,
    .category-intro__grid,
    .product-detail,
    .usage-grid,
    .about-intro__grid,
    .about-focus__grid,
    .about-segments__grid,
    .about-segments__cards,
    .timeline-item,
    .news-intro__grid,
    .news-grid,
    .news-grid--home,
    .news-grid--home[data-count="2"],
    .news-grid--home[data-count="3"],
    .news-grid--listing[data-count="2"],
    .news-grid--listing[data-count="3"],
    .news-detail-layout,
    .references-intro__grid,
    .references-grid,
    .contact-grid,
    .contact-form-wrap,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .product-detail.image-right .product-detail__media,
    .product-detail.image-right .product-detail__content {
        order: unset;
    }

    .category-hero h1 {
        font-size: 38px;
    }

    .product-detail__content h2 {
        font-size: 28px;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .category-anchor-nav {
        display: none;
    }

    .product-detail {
        scroll-margin-top: 100px;
        gap: 26px;
    }

    .admin-sections-grid,
    .admin-form__grid,
    .admin-repeat-row {
        grid-template-columns: 1fr;
    }

    .admin-repeat-row--single {
        grid-template-columns: 1fr;
    }

    .admin-remove-btn {
        width: 100%;
    }

    .reference-row__main {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 1100px) {
    .customer-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-hub-grid .customer-hub-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 720px) {
    .customer-hub-grid {
        grid-template-columns: 1fr;
    }

    .customer-hub-grid .customer-hub-card:last-child {
        grid-column: auto;
        max-width: none;
    }
}

@media (min-width: 1101px) {
    .main-nav .menu-item-customer {
        display: none;
    }
}

/* Header: hamburger dříve — plné menu se nevejde cca pod 1100px */
@media (max-width: 1100px) {
    .header-customer {
        display: none;
    }

    .header-lang-switch {
        margin-left: auto;
        margin-right: 4px;
    }

    .main-nav .menu-item-customer {
        width: 100%;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(34, 104, 255, 0.28);
    }

    .main-nav .menu-item-customer__link {
        display: block;
        width: 100%;
        padding: 12px 16px !important;
        text-align: center;
        color: #ffffff !important;
        background: var(--blue-primary);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: none !important;
        text-transform: none;
        letter-spacing: 0.02em;
        font-size: 0.9rem;
    }

    .main-nav .menu-item-customer__link:hover {
        background: #1a56e8;
        color: #ffffff !important;
    }

    .header-admin {
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
        color: #334d6e;
    }

    .main-nav {
        display: none;
        order: 10;
        flex: 1 1 100%;
        width: 100%;
        background: rgba(6, 9, 18, 0.98);
        border: 1px solid rgba(34, 104, 255, 0.3);
        border-radius: 0;
        padding: 14px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    }

    .main-nav.open {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 12px;
        padding: 12px 0;
        min-height: auto;
    }

    .main-nav .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-nav .menu > li,
    .main-nav a {
        width: 100%;
    }

    .main-nav a {
        padding: 12px 14px;
        color: rgba(255, 255, 255, 0.92);
    }

    .dropdown,
    .subdropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: 1px solid rgba(34, 104, 255, 0.25);
        padding: 8px;
        margin-top: 6px;
        margin-left: 10px;
        background: rgba(34, 104, 255, 0.06);
        border-radius: 0;
        min-width: 100%;
    }

    .has-dropdown.open > .dropdown,
    .has-subdropdown.open > .subdropdown {
        display: block;
    }

    .dropdown li a,
    .subdropdown li a {
        white-space: normal;
        padding: 10px 12px;
    }

    .logo img {
        height: 36px;
    }
}

@media (max-width: 800px) {
    .tiles-grid,
    .product-category-grid {
        grid-template-columns: 1fr;
    }

    .tile {
        min-height: auto;
    }

    .simple-slider {
        min-height: 520px;
    }

    .slider-controls {
        left: 10px;
        right: 10px;
    }

    .slide-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .slide img {
        height: 260px;
        padding: 20px;
    }

    .slide-text {
        padding: 28px;
    }

    .slide-text h3 {
        font-size: 1.7rem;
    }

    .slide-text p {
        font-size: 1rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .category-hero__eyebrow,
    .product-detail__eyebrow {
        font-size: 12px;
        letter-spacing: 0.06em;
        padding: 6px 10px;
        margin-bottom: 10px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
    }

    .back-to-top {
        left: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .tile,
    .homepage-news__card,
    .homepage-reference-card {
        border-radius: 0;
    }

    .product-tiles {
        padding-top: 36px;
        padding-bottom: 46px;
    }

    .projects-showcase,
    .homepage-news,
    .homepage-references,
    .about-preview {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .product-tiles h2,
    .homepage-news__head h2,
    .homepage-references__head h2,
    .about-preview h2,
    .projects-showcase__content h2 {
        margin-bottom: 12px;
    }

    .homepage-news__head,
    .homepage-references__head {
        margin-bottom: 20px;
    }

    .about-preview p,
    .projects-showcase__content p {
        margin-bottom: 18px;
    }

    .projects-showcase {
        background: var(--bg-3);
    }

    .projects-showcase__shape {
        width: 165px;
        height: 165px;
        top: 10px;
        left: -22px;
        opacity: 0.9;
        clip-path: polygon(0 0, 48% 0, 100% 70%, 0 100%);
    }

    .projects-showcase__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .projects-showcase__content {
        padding-top: 92px;
        max-width: 100%;
    }

    .projects-showcase__content h2 {
        font-size: 2rem;
        line-height: 1.08;
        max-width: 260px;
    }

    .projects-showcase__content p {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 22px;
        max-width: 100%;
    }

    .projects-showcase__logos {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
        justify-items: center;
        align-items: start;
    }

    .project-badge,
    .project-badge:first-child,
    .project-badge--middle,
    .project-badge--bottom {
        position: static;
        width: 126px;
        height: 126px;
    }

    .project-badge--bottom {
        grid-column: 1 / -1;
    }

    .hero {
        padding: 34px 0 24px;
    }

    .hero-inner {
        gap: 20px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.1;
        margin-bottom: 14px;
        max-width: none;
        letter-spacing: -0.025em;
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .hero-actions {
        margin-top: 22px;
        gap: 10px;
    }

    .hero-product-slider {
        min-height: 330px;
        border-radius: 0;
    }

    .hero-product-slide {
        padding: 16px 16px 64px;
    }

    .hero-product-image {
        min-height: 130px;
        margin-top: 0;
        border-radius: 0;
        padding: 10px;
    }

    .hero-product-image img {
        max-height: 118px;
    }

    .hero-product-text h3 {
        margin-top: 6px;
        margin-bottom: 8px;
        font-size: 1.15rem;
    }

    .hero-product-text p {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .hero-product-controls {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .hero-product-controls button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero-bg-shape-1,
    .hero-bg-shape-2 {
        opacity: 0.45;
        transform: scale(0.7);
    }

    .homepage-news__card,
    .homepage-reference-card,
    .news-card,
    .news-detail-article,
    .news-detail-sidebar__box,
    .news-intro__text,
    .news-intro__box,
    .about-intro__text,
    .about-intro__box,
    .about-segments__content,
    .about-segments__cards,
    .about-history__wrap,
    .about-card,
    .contact-main-card,
    .contact-side-card,
    .contact-form-wrap,
    .category-intro__text,
    .category-intro__box,
    .category-cta__box {
        padding: 26px;
    }

    .news-card--featured-horizontal {
        flex-direction: column;
    }

    .news-card--featured-horizontal .news-card__media {
        flex: none;
        max-width: none;
        min-height: 0;
    }

    .news-detail-article {
        padding: 26px;
    }

    .news-detail__title {
        max-width: none;
    }

    .news-detail__aside {
        position: static;
    }

    .homepage-news__head h2,
    .homepage-references__head h2,
    .news-section__intro h2 {
        font-size: 1.9rem;
    }

    .category-hero {
        padding: 44px 0 30px;
    }

    .category-hero h1 {
        font-size: 32px;
    }

    .product-detail {
        padding: 32px 0;
    }

    .product-detail__media {
        min-height: 300px;
        padding: 24px;
    }

    .product-detail__media img {
        max-width: 90%;
        max-height: 260px;
    }

    .product-detail__content h2 {
        font-size: 30px;
    }

    .product-detail__actions .btn {
        width: 100%;
    }

    .product-detail__subtitle {
        font-size: 16px;
    }

    .site-footer {
        padding-top: 44px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 28px;
    }

    .footer-column--products,
    .footer-column--projects {
        display: none;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-company__details p {
        margin: 0 0 6px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-bottom {
        padding: 16px 0 20px;
    }

    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 640px) {
    .category-hero__eyebrow,
    .product-detail__eyebrow {
        font-size: 11px;
        letter-spacing: 0.05em;
        padding: 6px 9px;
    }

    .product-detail__media {
        min-height: 280px;
        padding: 24px;
    }

    .product-detail__media img {
        max-width: 90%;
        max-height: 250px;
    }

    .hero {
        padding: 32px 0 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .category-hero__actions .btn,
    .product-detail__actions .btn {
        width: 100%;
    }

    .page-admin .page-hero {
        padding: 40px 0 18px;
    }

    .admin-dashboard {
        padding: 24px 0 40px;
    }

    .admin-form,
    .admin-block {
        padding: 18px;
        border-radius: 16px;
    }

    .admin-product-row {
        align-items: flex-start;
    }

    .admin-category-picker__grid {
        grid-template-columns: 1fr;
    }

    .admin-category-toolbar {
        align-items: flex-start;
    }

    .admin-product-chip {
        width: min(200px, 85vw);
    }

    .page-admin .admin-visual-detail .product-detail-page__hero {
        grid-template-columns: 1fr;
    }

    .reference-row {
        padding: 14px;
    }

    .reference-row__main {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .reference-row__category {
        width: fit-content;
    }

    .reference-row__description {
        display: none;
    }
}
/* =========================================================
   GENERATORS LANDING PAGE RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
    .feature-list,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .cta-card {
        align-items: flex-start;
    }

    .cta-card .btn {
        width: fit-content;
    }
}

@media (max-width: 767px) {
    .content-narrow h2 {
        font-size: 1.75rem;
    }

    .content-narrow > p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .page-content--intro {
        padding-top: 42px;
        padding-bottom: 30px;
    }

    .feature-list__item,
    .cta-card {
        padding: 26px;
    }

    .faq-item summary {
        padding: 16px 18px;
        font-size: 0.98rem;
    }

    .faq-item p {
        padding: 0 18px 18px;
    }
}

@media (max-width: 640px) {
    .cta-card .btn {
        width: 100%;
    }

    .section-heading__eyebrow {
        font-size: 11px;
        letter-spacing: 0.06em;
        padding: 6px 10px;
    }
}

/* =========================================================
   MEX PRODUCT LIST & DETAIL RESPONSIVE
   ========================================================= */

/* Tablet: 2 columns */
@media (max-width: 1059px) {
  .mex-products-catalog .mex-products-grid,
  .mex-products-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

/* Narrow tablet / wide mobile */
@media (max-width: 991px) {
  .product-detail-page__hero,
  .product-detail__hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail-page__media-frame,
  .product-detail__media {
    min-height: 320px;
    padding: 24px 20px;
  }

  .product-detail-page__benefits-strip-inner {
    flex-wrap: wrap;
  }

  .product-detail-page__benefits-label {
    flex: 0 0 100%;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #d0d8e8;
  }

  .product-detail-page__benefit-item {
    flex: 1 1 40%;
    border-bottom: 1px solid #e8edf5;
  }

  .product-detail-page__benefit-item:last-child {
    border-bottom: none;
  }

  .related-products__grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .mex-products-catalog {
    padding: 24px 16px 52px;
  }

  .mex-products-catalog .mex-products-grid,
  .mex-products-grid,
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .mex-product-card__media,
  .product-card__media {
    height: 210px;
    padding: 16px 20px;
  }

  .mex-product-card__body,
  .product-card__body {
    padding: 18px 18px 20px;
  }

  .mex-product-card__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mex-product-card__request {
    order: 1;
  }

  .mex-product-card__detail {
    order: 2;
  }

  .product-detail-page__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-detail-page__media-frame,
  .product-detail__media {
    min-height: 260px;
    padding: 18px 16px;
  }

  .product-detail-page__image {
    max-height: 220px;
  }

  .product-detail-page__cta-buttons {
    flex-direction: column;
  }

  .page-product-detail .product-detail-page__cta-primary.btn,
  .page-product-detail .product-detail-page__cta-brochure.btn {
    width: 100%;
    justify-content: center;
  }

  .product-detail-page__benefits-strip-inner {
    flex-direction: column;
  }

  .product-detail-page__benefit-item {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid #e8edf5;
  }

  .product-detail-page__benefit-item:last-child {
    border-bottom: none;
  }

  .related-product-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
