
/* =========================================================
   CATEGORY PAGES
   ========================================================= */

.category-page {
    padding-bottom: 80px;
}

.category-hero {
    padding: 58px 0 40px;
    background: linear-gradient(180deg, rgba(15, 29, 73, 0.92) 0%, rgba(19, 38, 95, 0.9) 100%);
}

.category-hero .topcat {
    display: none;
}

.category-hero__content {
    max-width: 760px;
}

.category-hero__eyebrow,
.product-detail__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.category-hero__eyebrow {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(180, 202, 247, 0.42);
    padding: 8px 14px;
    border-radius: 0;
}

.product-detail__eyebrow {
    color: var(--blue-glow);
    background: var(--bg-3);
    border: 1px solid var(--b-blue);
    padding: 8px 14px;
    border-radius: 0;
}

.category-hero h1 {
    margin: 0 0 20px;
    font-size: 48px;
    line-height: 1.1;
    color: #fff;
}

.category-hero p {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.category-hero__actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.category-anchor-nav {
    position: sticky;
    top: 88px;
    z-index: 920;
    padding: 8px 0 2px;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.anchor-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(166, 194, 252, 0.5);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.98);
    background: linear-gradient(180deg, rgba(22, 39, 91, 0.62) 0%, rgba(19, 34, 81, 0.52) 100%);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 16px rgba(8, 17, 45, 0.2);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.anchor-nav a:hover {
    border-color: rgba(180, 205, 255, 0.9);
    background: linear-gradient(180deg, rgba(30, 52, 118, 0.74) 0%, rgba(24, 45, 107, 0.64) 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(8, 18, 46, 0.28);
}

.category-intro {
    padding: 40px 0 30px;
}

.category-intro__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.category-intro__text,
.category-intro__box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-soft);
}

.category-intro__box {
    background: var(--surface-dark);
    color: #fff;
    border: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.category-intro__box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 38%);
    pointer-events: none;
}

.category-intro__box > * {
    position: relative;
    z-index: 1;
}

.category-intro__box h3 {
    color: #fff;
}

.category-intro__box p {
    color: rgba(255, 255, 255, 0.82);
}

.category-intro__box .btn {
    background: var(--bg-2);
    color: var(--primary-dark);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 30px rgba(8, 17, 45, 0.28);
}

.category-intro__box .btn:hover {
    background: #eef4ff;
    color: #0c2460;
    border-color: #d9e6ff;
    box-shadow: 0 18px 34px rgba(8, 17, 45, 0.35);
}

.products-vertical {
    padding: 30px 0 20px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
    padding: 52px 0;
    border-bottom: 1px solid rgba(172, 191, 232, 0.42);
    scroll-margin-top: 170px;
}

.product-detail.image-right .product-detail__media {
    order: 2;
}

.product-detail.image-right .product-detail__content {
    order: 1;
}

.product-detail__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(47, 102, 243, 0.08) 0%, rgba(47, 102, 243, 0) 45%),
        linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 420px;
    height: auto;
    border: 1px solid var(--b-blue);
    box-shadow: 0 18px 42px rgba(16, 38, 95, 0.16);
    isolation: isolate;
    overflow: hidden;
}

.product-detail__media img {
    display: block;
    max-width: 78%;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 16px 24px rgba(17, 37, 91, 0.18));
    transition: transform 0.3s ease;
}

.product-detail__media img[src*="secotec-4-300-pronajem"],
.product-detail__media img[src*="reco2ver-8s"],
.product-detail__media img[src*="recover-k500"] {
    max-width: 86%;
}

.product-detail__media:hover img {
    transform: scale(1.03);
}

.product-detail__content h2 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.product-detail__subtitle {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.product-detail__content p {
    line-height: 1.7;
    color: var(--text-muted);
}

.product-detail__specs,
.product-detail__options {
    margin-top: 30px;
}

.product-detail__specs h3,
.product-detail__options h3 {
    margin-bottom: 14px;
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 800;
}

.specs-table {
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(28, 57, 124, 0.06);
    background: var(--bg-2);
    isolation: isolate;
}

.spec-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-bottom: 1px solid var(--b-dark);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row__label,
.spec-row__value {
    padding: 14px 16px;
    background: var(--bg-2);
}

.spec-row__label {
    font-weight: 600;
    background: var(--surface-soft);
}

.spec-row__value {
    color: var(--t1);
}

.product-detail__options ul {
    margin: 0;
    padding-left: 20px;
}

.product-detail__options li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--t2);
}

.product-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.category-usage {
    padding: 70px 0 30px;
}

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

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.usage-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    color: var(--text-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.usage-card:hover {
    transform: translateY(-3px);
    border-color: #c8d8f4;
    box-shadow: 0 18px 38px rgba(28, 57, 124, 0.14);
}

.category-cta {
    padding: 50px 0 0;
}

.category-cta__box {
    padding: 40px;
    border-radius: var(--radius-xl);
    background: var(--surface-dark);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.category-cta__box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 40%);
    pointer-events: none;
}

.category-cta__box > * {
    position: relative;
    z-index: 1;
}

.category-cta__box h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #fff;
}

.category-cta__box p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.85);
}

.category-cta__box .btn {
    background: var(--bg-2);
    color: #14265f;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 30px rgba(8, 17, 45, 0.3);
}

.category-cta__box .btn:hover {
    background: #eef4ff;
    color: #0f1d49;
    border-color: #d9e6ff;
}
/* =========================================================
   GENERATORS LANDING PAGE / SEO CONTENT
   ========================================================= */

.content-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.content-narrow h2 {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 2.4vw, 2.65rem);
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--text-dark);
}

.content-narrow > p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.page-content--muted {
    background:
        radial-gradient(circle at top right, rgba(47, 102, 243, 0.08) 0%, rgba(47, 102, 243, 0) 38%),
        linear-gradient(180deg, rgba(244, 248, 255, 0.76) 0%, rgba(234, 242, 255, 0.72) 100%);
    border-top: 1px solid rgba(199, 214, 242, 0.45);
    border-bottom: 1px solid rgba(199, 214, 242, 0.45);
}

.section-heading__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 0;
    background: var(--bg-3);
    border: 1px solid var(--b-blue);
    color: var(--blue-glow);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading--left {
    max-width: 760px;
    margin-left: 0;
    margin-right: auto;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-list__item {
    padding: 28px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(47, 102, 243, 0.10) 0%, rgba(47, 102, 243, 0) 42%),
        rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.feature-list__item h3 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    line-height: 1.25;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.feature-list__item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.72;
}

.faq-section {
    padding-bottom: 64px;
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(28, 57, 124, 0.08);
    overflow: hidden;
}

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    color: var(--text-dark);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 800;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";
    background: #dce9ff;
}

.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--text-muted);
    line-height: 1.75;
}

.cta-section {
    padding: 16px 0 72px;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 40px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 42%),
        var(--surface-dark);
    color: #ffffff;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.cta-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cta-card h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(1.7rem, 2.2vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.cta-card p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

.cta-card .btn {
    white-space: nowrap;
    background: var(--bg-2);
    color: #14265f;
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 14px 30px rgba(8, 17, 45, 0.28);
}

.cta-card .btn:hover {
    background: #eef4ff;
    color: #0f1d49;
    border-color: #d9e6ff;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about-page {
    padding-bottom: 80px;
}

.about-intro {
    padding: 40px 0 24px;
}

.about-intro__grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 30px;
    align-items: start;
}

.about-intro__text,
.about-intro__box,
.about-history__wrap {
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 32px;
}

.about-intro__box {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
}

.about-intro__text p,
.about-intro__box p,
.about-history__wrap p,
.about-segments__content p,
.about-card p {
    color: #4b5563;
    line-height: 1.75;
}

.about-focus {
    padding: 24px 0;
}

.about-focus__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.about-card {
    padding: 28px;
    border-radius: 0;
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.about-segments {
    padding: 24px 0;
}

.about-segments__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.about-segments__content,
.about-segments__cards {
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 32px;
}

.about-segments__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.segment-card {
    padding: 22px;
    border-radius: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.segment-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #111827;
}

.segment-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

.about-history {
    padding: 24px 0 0;
}

.about-timeline {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.timeline-item strong {
    font-size: 18px;
    color: #111827;
}

.timeline-item span {
    color: #4b5563;
    line-height: 1.6;
}

.timeline-item a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.timeline-item a:hover {
    color: var(--primary-hover);
}

/* =========================================================
   NEWS – SECTION, CARDS, LISTING, DETAIL
   ========================================================= */

.news-page,
.news-detail-page {
    padding-bottom: 80px;
}

/* Section header (homepage + shared) */
.news-section__header,
.homepage-news .news-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.news-section__intro {
    flex: 1;
    min-width: 220px;
}

.news-section__intro h2 {
    margin: 0 0 10px;
}

.news-section__intro p {
    margin: 0;
    max-width: 640px;
    color: #4b5f82;
    line-height: 1.75;
}

.news-section__cta {
    flex-shrink: 0;
}

/* Listing page hero */
.news-page-hero {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, rgba(237, 243, 251, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.news-page-hero--compact {
    padding: 40px 0 28px;
}

.news-page-hero__content {
    max-width: 760px;
}

.news-page-hero__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2f66f3;
}

.news-page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    color: var(--t0);
    max-width: 18ch;
}

.news-page-hero__lead {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5f82;
    max-width: 52ch;
}

.news-list {
    padding: 16px 0 48px;
}

.news-list__featured {
    margin-bottom: 28px;
}

.news-empty {
    padding: 48px 32px;
    text-align: center;
    background: var(--bg-2);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(15, 35, 80, 0.06);
}

.news-empty p {
    margin: 0;
    font-size: 1.125rem;
    color: #4b5f82;
}

/* Grids */
.news-grid {
    display: grid;
    gap: 22px;
}

.news-grid--listing,
.news-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid--home,
.news-grid--listing {
    align-items: stretch;
}

.news-grid--home[data-count="1"],
.news-grid--listing[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
}

.news-grid--home[data-count="2"],
.news-grid--listing[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-grid--home[data-count="3"],
.news-grid--listing[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card component */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: var(--bg-2);
    border: 1px solid #dbe4f2;
    box-shadow: 0 10px 28px rgba(15, 35, 80, 0.07);
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-card:focus-visible {
    outline: 2px solid #2f66f3;
    outline-offset: 3px;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: #b8cceb;
    box-shadow: 0 18px 40px rgba(15, 35, 80, 0.12);
}

.news-card--featured-horizontal {
    flex-direction: row;
    align-items: stretch;
}

.news-card--featured-horizontal .news-card__media {
    flex: 0 0 42%;
    max-width: 42%;
    aspect-ratio: auto;
    min-height: 280px;
}

.news-card--featured-horizontal .news-card__body {
    flex: 1;
    justify-content: center;
}

.news-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eef8;
    flex-shrink: 0;
}

.news-card__media--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    background: linear-gradient(135deg, #e8eef8 0%, #d4dff5 100%);
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.02);
}

.news-card__media--video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 80, 0.22);
    pointer-events: none;
}

.news-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(15, 35, 80, 0.2);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f234f'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 56% center;
    background-size: 22px 22px;
}

.news-card__badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.news-card__badge--video {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 0;
    background: rgba(15, 35, 80, 0.88);
    color: #fff;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}


.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.news-card__badge--category {
    padding: 5px 10px;
    border-radius: 0;
    background: #edf3fb;
    color: #1e3a6e;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.news-card__date {
    font-size: 13px;
    font-weight: 600;
    color: #6b7c9a;
}

.news-card__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--t0);
}


.news-card__excerpt {
    margin: 0 0 16px;
    color: #4b5f82;
    line-height: 1.7;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: calc(1.7em * 3);
}

.news-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2f66f3;
    transition: transform 0.2s ease, color 0.2s ease;
}

.news-card__cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.news-card:hover .news-card__cta {
    color: #1a4fd4;
}

.news-card:hover .news-card__cta::after {
    transform: translateX(3px);
}

/* =========================================================
   NEWS DETAIL
   ========================================================= */

.news-detail {
    padding: 40px 0 0;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 30px;
    align-items: start;
}

.news-detail-article {
    background: var(--bg-2);
    border: 1px solid #dbe4f2;
    border-radius: 0;
    padding: 36px 40px 40px;
    box-shadow: 0 14px 36px rgba(15, 35, 80, 0.07);
}

.news-detail__header {
    margin-bottom: 28px;
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 18px;
}

.news-detail__badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 0;
    background: #edf3fb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e3a6e;
}

.news-detail__date {
    font-size: 14px;
    font-weight: 600;
    color: #6b7c9a;
}

.news-detail__source {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.news-detail__source::before {
    content: '·';
    margin-right: 10px;
    color: #cbd5e1;
}

.news-detail__title {
    margin: 0;
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--t0);
    max-width: 22ch;
}

.news-detail__excerpt {
    margin: 20px 0 0;
    padding: 18px 0 18px 20px;
    border-left: 3px solid #b8cceb;
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--t1);
    max-width: 52ch;
}

.news-detail__media {
    margin-bottom: 32px;
}

.news-detail__media--image {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #dbe4f2;
    box-shadow: 0 12px 32px rgba(15, 35, 80, 0.08);
}

.news-detail__media--image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.news-detail__media--video .news-video {
    margin-bottom: 0;
}

.news-video {
    max-width: 100%;
}

.news-video__frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0;
    border: 1px solid #dbe4f2;
    background: #0f234f;
    box-shadow: 0 12px 32px rgba(15, 35, 80, 0.1);
}

.news-video__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
}

.news-video__player {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: 1px solid #dbe4f2;
    background: #0f234f;
}

.news-detail__content {
    max-width: 820px;
    color: var(--t2);
    line-height: 1.82;
    font-size: 1.05rem;
}

.news-detail-body p {
    margin-top: 0;
    margin-bottom: 1.15em;
}

.news-detail-body h2,
.news-detail-body h3 {
    color: var(--t0);
    margin-top: 2em;
    margin-bottom: 0.65em;
    line-height: 1.3;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 0 0 1.15em;
    padding-left: 1.35em;
}

.news-detail-body li {
    margin-bottom: 0.45em;
}

.news-detail-body a {
    color: #2f66f3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-detail-body a:hover {
    color: #1a4fd4;
}

.news-detail-external {
    margin-top: 32px;
}

.news-detail__back {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.news-detail__back-link {
    font-weight: 700;
    color: #2f66f3;
    text-decoration: none;
}

.news-detail__back-link:hover {
    color: #1a4fd4;
    text-decoration: underline;
}

.news-detail__aside {
    position: sticky;
    top: 24px;
}

.news-detail-sidebar__box {
    background: var(--bg-2);
    border: 1px solid #dbe4f2;
    border-radius: 0;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(15, 35, 80, 0.06);
}

.news-detail-sidebar__title {
    margin: 8px 0 12px;
    font-size: 1.25rem;
    color: var(--t0);
}

.news-detail-sidebar__box p {
    color: #4b5f82;
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-detail-related {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.news-detail-related__head h2 {
    margin: 0 0 24px;
    font-size: 1.5rem;
    color: var(--t0);
}

/* =========================================================
   REFERENCES PAGE
   ========================================================= */

.references-page {
    padding-bottom: 80px;
}

.references-intro {
    padding: 40px 0 20px;
}

.references-intro__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: start;
}

.references-intro__text,
.references-intro__stats {
    background-color: rgba(237, 243, 251, 0.70);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 32px;
}

.references-intro__stats {
    display: grid;
    gap: 16px;
}

.reference-stat {
    padding: 18px 20px;
    border-radius: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.reference-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.reference-stat span {
    color: #4b5563;
}

.references-list {
    padding: 30px 0;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.reference-card {
    padding: 24px;
    border-radius: 0;
    border: 1px solid #e5e7eb;
    background: var(--bg-2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.reference-card:hover {
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.reference-card__category {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 0;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.reference-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.reference-card__location {
    margin: 0 0 18px;
    color: #6b7280;
    font-weight: 500;
}

.reference-card__meta {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.reference-card__meta span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reference-card__meta strong {
    font-size: 16px;
    color: #111827;
}

.reference-card__meta--link {
    display: block;
    color: inherit;
    transition: all 0.2s ease;
}

.reference-card__meta--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.reference-card__meta--link strong::after {
    content: " →";
    opacity: 0;
    transition: 0.2s;
}

.reference-card__meta--link:hover strong::after {
    opacity: 1;
}

.reference-card__description {
    margin: 0;
    line-height: 1.7;
    color: #4b5563;
}

.reference-card__title-link {
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.reference-card__title-link:hover {
    color: var(--primary);
}

.reference-card__title-link::after {
    content: " ↗";
    font-size: 0.9em;
    opacity: 0.7;
}

/* Nový seznam referencí ponechán vedle starších card stylů */
.references-list--table {
    padding: 22px 0 8px;
}

.references-table {
    display: grid;
    gap: 10px;
}

.reference-row {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 18px;
    box-shadow: 0 8px 18px rgba(28, 57, 124, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reference-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(28, 57, 124, 0.12);
    border-color: #c6d7f3;
}

.reference-row__main {
    display: grid;
    grid-template-columns: 150px minmax(220px, 1.5fr) 150px minmax(190px, 1fr);
    gap: 12px;
    align-items: center;
}

.reference-row__main > * {
    min-width: 0;
}

.reference-row__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 0;
    background: #eaf2ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
}

.reference-row__name,
.reference-row__location,
.reference-row__model {
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reference-row__name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.reference-row__location {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
}

.reference-row__model {
    font-size: 0.92rem;
    color: #4a5f84;
}

.reference-row__name a,
.reference-row__model a {
    color: inherit;
}

.reference-row__name a:hover,
.reference-row__model a:hover {
    color: var(--primary);
}

.reference-row__description {
    display: none;
}
.references-anchor-nav {
    top: 94px;
}

/* ============================================================
   Reference page — product filter bar
   ============================================================ */

.ref-filter-bar {
    background: #ffffff;
    border-bottom: 2px solid #1e3a8a;
    padding: 20px 0 18px;
}

.ref-filter-label {
    margin: 0 0 10px;
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #64748b;
}

/* Category chips */
.ref-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ref-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    background: #ffffff;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.ref-cat-chip:hover {
    border-color: #1e3a8a;
    background: #f0f4ff;
    color: #1e3a8a;
}

.ref-cat-chip--active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
}

.ref-cat-chip--active:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

/* Model form row */
.ref-model-form {
    margin-bottom: 12px;
}

.ref-model-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ref-model-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.ref-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 36px 8px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: #1e293b;
    font-size: 0.88rem;
    cursor: pointer;
    min-width: 220px;
    max-width: 400px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ref-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.ref-filter-select:hover {
    border-color: #93c5fd;
}

.ref-model-empty {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Reset link */
.ref-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.ref-filter-reset:hover {
    color: #1e293b;
}

/* Filter sections */
.ref-filter-section {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ref-filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ref-filter-section--model {
    padding-bottom: 14px;
}

.ref-filter-label--secondary {
    color: #64748b;
}

/* Industry chips — slightly smaller, different accent */
.ref-industry-chip {
    font-size: 0.82rem;
    padding: 5px 13px;
}

.ref-industry-chip.ref-cat-chip--active {
    background: #0f4c81;
    border-color: #0f4c81;
}

.ref-industry-chip.ref-cat-chip--active:hover {
    background: #1565c0;
    border-color: #1565c0;
}

/* Reset row */
.ref-filter-reset-row {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: 2px;
}

/* Results area */
.ref-results-heading {
    margin-bottom: 8px;
}

.ref-results-title {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
}

.ref-results-model {
    font-weight: 400;
    color: #64748b;
}

.ref-results-industry {
    font-weight: 400;
    font-size: 0.9em;
    color: #94a3b8;
}

.ref-results-description {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.ref-results-count {
    margin: 0 0 20px;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Empty state */
.ref-empty-state {
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}

.ref-empty-state__text {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .ref-cat-chips {
        gap: 6px;
    }
    .ref-cat-chip {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .ref-filter-select {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .ref-model-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.references-group {
    scroll-margin-top: 210px;
}

.references-group + .references-group {
    padding-top: 54px;
}

/* =========================================================
   REFERENCE – PŘEPÍNAČ ODVĚTVÍ / KATEGORIE (čistě CSS)
   ========================================================= */

/* Skrytá rádia ovládající mód zobrazení */
.ref-mode-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Sticky pruh s přepínačem i kotevní navigací – drží se pod headerem */
.ref-sticky-bar {
    position: sticky;
    top: 88px;
    z-index: 920;
    padding: 10px 0;
    background: transparent;
    backdrop-filter: blur(10px);
}

.ref-sticky-bar > .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ref-mode-switch {
    display: inline-flex;
    align-self: flex-start;
    gap: 0;
    border: 1px solid rgba(166, 194, 252, 0.5);
    border-radius: 0;
    overflow: hidden;
    background: rgba(19, 34, 81, 0.35);
}

.ref-mode-switch__opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 22px;
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.ref-mode-switch__opt + .ref-mode-switch__opt {
    border-left: 1px solid rgba(166, 194, 252, 0.5);
}

.ref-mode-switch__opt:hover {
    background: rgba(30, 52, 118, 0.55);
}

/* Aktivní volba přepínače podle zaškrtnutého rádia */
#ref-mode-industry:checked ~ .ref-sticky-bar .ref-mode-switch__opt--industry,
#ref-mode-category:checked ~ .ref-sticky-bar .ref-mode-switch__opt--category {
    background: #ffffff;
    color: #13234f;
}

/* Přepínání kotevní navigace ve sticky pruhu (výchozí = odvětví) */
.ref-nav--category {
    display: none;
}

#ref-mode-category:checked ~ .ref-sticky-bar .ref-nav--industry {
    display: none;
}

#ref-mode-category:checked ~ .ref-sticky-bar .ref-nav--category {
    display: flex;
}

/* Přepínání sekcí s referencemi (výchozí = odvětví, kategorie skryté) */
.ref-mode-block--category {
    display: none;
}

#ref-mode-category:checked ~ .ref-mode-block--industry {
    display: none;
}

#ref-mode-category:checked ~ .ref-mode-block--category {
    display: block;
}

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

.contact-page {
    padding-bottom: 80px;
}

.contact-info-section {
    padding: 40px 0 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 30px;
    align-items: start;
}

.contact-main-card,
.contact-side-card,
.contact-form-wrap {
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 32px;
}

.contact-main-card {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
}

.contact-side-column {
    display: grid;
    gap: 24px;
}

.contact-card__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.contact-main-card h2,
.contact-side-card h3,
.contact-form-intro h2 {
    margin-top: 0;
}

.contact-info-list {
    display: grid;
    gap: 24px;
}

.contact-info-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #111827;
}

.contact-info-item p {
    margin: 0;
    line-height: 1.7;
    color: #4b5563;
}

.contact-info-item a {
    color: inherit;
}

.contact-info-item a:hover {
    text-decoration: underline;
}
.form-message {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 0;
    font-weight: 600;
}

.form-message--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.company-data-list {
    display: grid;
    gap: 14px;
}

.company-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 16px;
    border-radius: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.company-data-row span {
    color: #6b7280;
}

.company-data-row strong {
    color: #111827;
}

.contact-side-card p,
.contact-form-intro p {
    color: #4b5563;
    line-height: 1.7;
}

.contact-form-section {
    padding: 24px 0 0;
}

.contact-form-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5563;
    line-height: 1.5;
}

.form-checkbox input {
    margin-top: 3px;
}

/* =========================================================
   ADMINISTRACE
   ========================================================= */

.page-admin {
    background: #f8fafc;
}

.page-admin .page-hero {
    padding: 56px 0 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
}

.page-admin .page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.08;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.page-admin .page-intro {
    margin: 0;
    max-width: 760px;
    color: var(--t2);
    font-size: 1.05rem;
}
.admin-public-warning {
    padding: 14px 0;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-public-warning .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-dashboard {
    padding: 32px 0 56px;
}

.admin-page__topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-page__heading {
    flex: 1 1 700px;
    min-width: 280px;
}

.admin-page__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
}

.admin-page__actions .btn {
    white-space: nowrap;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.admin-tabs__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 0;
    background: var(--bg-2);
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.admin-tabs__link:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.admin-tabs__link--active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.admin-tabs__link--active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    transform: none;
}

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

.admin-section-card {
    display: block;
    padding: 24px;
    border-radius: 0;
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-section-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.admin-section-card__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2563eb;
}

.admin-section-card h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #0f172a;
}

.admin-section-card p {
    margin: 0;
    color: var(--t2);
    line-height: 1.7;
}

.admin-alert {
    border-radius: 0;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid transparent;
}

.admin-alert--success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.admin-alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.admin-form {
    display: grid;
    gap: 28px;
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.admin-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin-bottom: 20px;
    align-items: start;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    align-self: start;
}

.form-field label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: var(--bg-2);
    color: #0f172a;
    font: inherit;
    padding: 13px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94a3b8;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-field--checkbox {
    justify-content: flex-end;
}

.form-field--checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    font-weight: 600;
}

.form-field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.page-admin input[type="file"] {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 0;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    box-sizing: border-box;
    cursor: pointer;
}

.page-admin input[type="file"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-block {
    margin-top: 28px;
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.admin-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-block__head h2,
.admin-block__head h3 {
    margin: 0;
    color: #0f172a;
}

.admin-block__head span {
    color: #64748b;
    font-size: 0.95rem;
}

.admin-repeat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-repeat-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

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

.admin-repeat-row input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: var(--bg-2);
    color: #0f172a;
    font: inherit;
    padding: 13px 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-repeat-row input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-remove-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    border-radius: 0;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-remove-btn:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    transform: translateY(-1px);
}

.admin-form__actions {
    margin-top: 26px;
}

.admin-form__actions--row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-block--list {
    margin-bottom: 28px;
}

.admin-products-list {
    display: flex;
    flex-direction: column;
}

.admin-product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.admin-product-row:first-child {
    border-top: 0;
    padding-top: 4px;
}

.admin-product-row strong {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: #0f172a;
}

.admin-product-row small {
    color: #64748b;
    font-size: 0.88rem;
}

.admin-product-row__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-product-row__actions .btn {
    min-width: 46px;
}

.admin-product-row__actions .btn[title="Posunout nahoru"],
.admin-product-row__actions .btn[title="Posunout dolů"] {
    padding: 0 14px;
    font-size: 1.1rem;
}

.admin-product-row__actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Admin products workspace */
.admin-dashboard--products .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Category picker (landing) */
.admin-category-picker__head {
    margin-bottom: 20px;
}

.admin-category-picker__head h2 {
    margin: 0 0 8px;
    color: #0f172a;
}

.admin-category-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.admin-category-picker__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.admin-category-picker__title {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.admin-category-picker__count {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

/* Single-category workspace */
.admin-category-workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-category-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
}

.admin-category-toolbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-category-toolbar__title {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.admin-category-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-product-rail {
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 12px;
}

.admin-product-rail__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.admin-product-rail__empty {
    margin: 0;
    padding: 8px 4px;
    color: #64748b;
    font-size: 0.92rem;
}

.admin-product-chip {
    flex: 0 0 auto;
    width: min(220px, 72vw);
    scroll-snap-align: start;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: #f8fafc;
}

.admin-product-chip--active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-product-chip__main {
    display: block;
    padding: 10px 12px 8px;
    padding-right: 72px;
    color: inherit;
    text-decoration: none;
}

.admin-product-chip__name {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-product-chip__slug {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-product-chip__actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.admin-product-chip:hover .admin-product-chip__actions,
.admin-product-chip:focus-within .admin-product-chip__actions,
.admin-product-chip--active .admin-product-chip__actions {
    opacity: 1;
    pointer-events: auto;
}

.admin-product-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: var(--bg-2);
    color: var(--t2);
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.admin-product-chip__icon--danger {
    color: #b91c1c;
    border-color: #fecaca;
}

.admin-list-preview-panel {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
}

.admin-list-preview-panel__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-list-preview-panel__label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.admin-list-preview-panel__hint {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Draggable product grid */
.admin-product-grid-sortable {
    cursor: default;
}

.admin-grid-card {
    position: relative;
    cursor: grab;
    transition: box-shadow 0.15s, opacity 0.15s;
}

.admin-grid-card:active {
    cursor: grabbing;
}

.admin-grid-card--ghost {
    opacity: 0.35;
    box-shadow: 0 0 0 2px #3b82f6;
}

.admin-grid-card__drag-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: rgba(255,255,255,0.85);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.admin-grid-card__drag-icon {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1;
}

.admin-grid-card__edit-btn {
    pointer-events: all;
}

.admin-list-preview-panel .admin-preview-card--compact {
    max-width: 280px;
}

.admin-editor-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-technical-panel--inline {
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
}

.admin-technical-panel--inline summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 700;
    color: #0f172a;
}

.admin-technical-panel__body--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 0 16px 16px;
}

.admin-technical-category-info {
    grid-column: 1 / -1;
    margin: 0;
}

.admin-technical-category-info__key {
    color: #94a3b8;
    font-size: 0.85em;
}

.admin-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-category-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 0;
    background: var(--bg-2);
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.admin-category-tabs__link:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.admin-category-tabs__link--active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.admin-category-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-category-tabs__link--active .admin-category-tabs__count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.admin-products-layout {
    display: grid;
    grid-template-columns: minmax(168px, 200px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-products-sidebar {
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.admin-products-sidebar--compact .admin-products-sidebar__head {
    margin-bottom: 10px;
}

.page-admin .btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.admin-products-sidebar__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-products-sidebar__title {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.admin-products-sidebar__meta {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.admin-product-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-product-compact {
    position: relative;
    border-radius: 0;
    border: 1px solid transparent;
}

.admin-product-compact--active {
    background: #eff6ff;
    border-color: #93c5fd;
}

.admin-product-compact__link {
    display: block;
    padding: 7px 8px;
    color: inherit;
    text-decoration: none;
    padding-right: 52px;
}

.admin-product-compact__name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-product-compact__slug {
    display: block;
    margin-top: 1px;
    font-size: 0.68rem;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-product-compact__menu {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.admin-product-compact:hover .admin-product-compact__menu,
.admin-product-compact:focus-within .admin-product-compact__menu,
.admin-product-compact--active .admin-product-compact__menu {
    opacity: 1;
    pointer-events: auto;
}

.admin-product-compact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: var(--bg-2);
    color: var(--t2);
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.admin-product-compact__icon:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.admin-product-compact__icon--danger {
    color: #b91c1c;
    border-color: #fecaca;
}

.admin-products-sidebar__mini-preview {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.admin-products-sidebar__mini-label {
    margin: 0 0 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.admin-preview-card--compact {
    font-size: 0.72rem;
    pointer-events: none;
}

.admin-preview-card--compact .mex-product-card__media {
    min-height: 72px;
}

.admin-preview-card--compact .mex-product-card__image {
    max-height: 64px;
}

.admin-preview-card--compact .mex-product-card__title {
    font-size: 0.78rem;
}

.admin-preview-card--compact .mex-product-card__actions .btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.7rem;
}

.admin-products-sidebar__empty {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.admin-products-panel {
    min-width: 0;
}

.admin-products-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 16px;
    align-items: start;
}

.admin-form--visual {
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0;
}

.admin-visual-detail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px 18px 24px;
    min-width: 0;
}

.admin-visual-detail__article {
    max-width: 100%;
}

.admin-visual-detail__breadcrumb {
    opacity: 0.65;
    pointer-events: none;
    margin-bottom: 16px;
}

.admin-visual-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-visual-section__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.admin-section-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px dashed #94a3b8;
    border-radius: 0;
    background: var(--bg-2);
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.admin-editor-category-context {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--t2);
}

.admin-editor-category-context strong {
    color: #0f172a;
}

.admin-category-save-notice {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 0;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-visual-section__help {
    margin: 0 0 10px;
    font-size: 0.82rem;
}

.page-admin .admin-visual-section--editor {
    display: block !important;
}

.admin-section-add:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.page-admin .admin-visual-detail .admin-inline-input {
    width: 100%;
    border: 1px dashed transparent;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.35);
    color: inherit;
    font: inherit;
    padding: 6px 8px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.page-admin .admin-visual-detail .admin-inline-input:hover,
.page-admin .admin-visual-detail .admin-inline-input:focus {
    outline: none;
    border-color: #93c5fd;
    background: var(--bg-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.page-admin .admin-visual-detail .admin-inline-input--title {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
    padding: 4px 6px;
}

.page-admin .admin-visual-detail .admin-inline-input--subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--t1);
}

.page-admin .admin-visual-detail .admin-inline-input--description {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--t2);
    resize: vertical;
    min-height: 100px;
}

.page-admin .admin-visual-detail .admin-inline-input--tag {
    display: inline-block;
    width: auto;
    min-width: 120px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #2563eb;
}

.page-admin .admin-visual-detail .admin-inline-input--chip {
    background: transparent;
    border-color: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 4px;
    min-width: 120px;
}

.page-admin .admin-visual-detail .admin-inline-input--cta {
    width: auto;
    min-width: 140px;
    color: #fff;
    background: transparent;
    border-color: transparent;
    font-weight: 600;
    text-align: center;
}

.page-admin .admin-visual-detail .admin-inline-input--cta:focus {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.admin-visual-field {
    display: block;
    margin-bottom: 12px;
}

.admin-visual-field__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.admin-visual-field--tag {
    margin-bottom: 10px;
}

.admin-visual-detail__media-frame {
    position: relative;
}

.admin-visual-detail__media-tools {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: center;
}

.admin-visual-detail__media-upload {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-visual-detail__media-upload input[type="file"] {
    display: none;
}

.admin-visual-repeat {
    position: relative;
    list-style: none;
}

.admin-visual-detail .product-detail-page__highlights .admin-visual-repeat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 4px;
}

.admin-visual-spec-row dd {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-visual-spec-row .admin-inline-input {
    font-size: 0.88rem;
}

.page-admin .admin-visual-detail .product-detail-page__options ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-admin .admin-visual-detail .product-detail-page__options li.admin-visual-repeat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.admin-row-remove {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 1px solid #fecaca;
    background: var(--bg-2);
    color: #b91c1c;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.admin-row-remove:hover {
    background: #fff1f2;
}

.admin-visual-cta-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-visual-benefits-strip-items {
    display: contents;
}

.admin-visual-benefits-strip-items .product-detail-page__benefit-item {
    font-style: italic;
    opacity: 0.85;
}

.admin-visual-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-visual-related-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.admin-visual-related-row select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    padding: 10px 12px;
    font: inherit;
}

.admin-technical-stack {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-technical-panel {
    background: var(--bg-2);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    overflow: hidden;
}

.admin-technical-panel summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
    color: #0f172a;
    list-style-position: inside;
}

.admin-technical-panel__body {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-technical-panel__body .form-field {
    margin-bottom: 0;
}

.admin-form__actions--stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-visual-detail .related-products {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.admin-visual-detail .related-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-visual-detail .related-products__header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.page-admin .admin-visual-detail .product-detail-page__hero {
    gap: 28px;
}

.page-admin .admin-visual-detail .product-detail-page__media-frame {
    min-height: 320px;
}

.page-admin .admin-visual-detail .product-detail-page__benefits-strip .product-detail-page__benefits-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-products-empty {
    background: var(--bg-2);
    border: 1px dashed #cbd5e1;
    border-radius: 0;
    padding: 48px 28px;
    text-align: center;
}

.admin-products-empty h2 {
    margin: 0 0 10px;
    color: #0f172a;
}

.admin-products-empty p {
    margin: 0 0 20px;
    color: #64748b;
}

.admin-products-preview {
    position: sticky;
    top: 20px;
}

.admin-products-preview__head h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #0f172a;
}

.admin-products-preview__frame {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px;
}

.admin-preview-card {
    max-width: 100%;
    margin: 0 auto;
    pointer-events: none;
}

.admin-preview-card .mex-product-card__actions .btn {
    cursor: default;
}

.admin-preview-card__brochure {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 600;
}

.is-hidden {
    display: none !important;
}

.page-admin .btn-sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.88rem;
}

.page-admin .btn-icon {
    min-width: 40px;
    padding: 0 10px;
}

.page-admin .btn-danger-outline {
    border-color: #fecaca;
    color: #b91c1c;
}

.page-admin .btn-danger-outline:hover {
    background: #fff1f2;
    border-color: #fda4af;
}

.admin-file-preview {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: #f8fafc;
}

.admin-file-preview__label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t1);
}

.admin-image-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: var(--bg-2);
}

.admin-image-preview img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    display: block;
}

.admin-file-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 0;
    background: var(--bg-2);
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 500;
}

.admin-file-link:hover {
    background: #f1f5f9;
}

.page-admin .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.page-admin .btn:hover {
    transform: translateY(-1px);
}

.page-admin .btn-outline {
    background: var(--bg-2);
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.page-admin .btn-outline:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.page-admin .btn:not(.btn-outline) {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

.page-admin .btn:not(.btn-outline):hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.page-admin-login .admin-form {
    padding: 30px;
}

.page-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.page-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.page-breadcrumbs a:hover {
    text-decoration: underline;
}

/* =========================================================
   MEX PRODUCT LIST & PRODUCT DETAIL (scoped)
   Clean technical catalog style — no glow, no blue shadows,
   sharp edges, white/blue only.
   ========================================================= */

/* ---- Catalog wrapper ---- */
.mex-products-catalog {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 20px 68px;
  box-sizing: border-box;
}

.mex-products-catalog .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---- Grid ---- */
.mex-products-catalog .mex-products-grid,
.mex-products-grid,
.product-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

@media (min-width: 1060px) {
  .mex-products-catalog .mex-products-grid,
  .mex-products-grid,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.mex-products-grid > .mex-product-card,
.mex-products-grid > .product-card {
  min-width: 0;
  height: 100%;
}

/* ---- Product card ---- */
.mex-product-card,
.product-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-2);
  border: 1px solid #d0d8e8;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  scroll-margin-top: 120px;
  transition: border-color 0.15s ease;
}

.mex-product-card:hover,
.product-card:hover {
  border-color: #2563eb;
}

/* ---- Badge ---- */
.mex-product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.mex-product-card__badge--bestseller { background: #dcfce7; color: #166534; }
.mex-product-card__badge--novinka    { background: #dbeafe; color: #1e40af; }
.mex-product-card__badge--performance{ background: #fef3c7; color: #92400e; }
.mex-product-card__badge--complete   { background: #ede9fe; color: #5b21b6; }
.mex-product-card__badge--default    { background: #f1f5f9; color: var(--t1); }

/* ---- Image area ---- */
.mex-product-card__media,
.product-card__media {
  flex: 0 0 auto;
  height: 240px;
  margin: 0;
  padding: 20px 24px;
  background: var(--bg-2);
  border-bottom: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mex-product-card__media-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mex-product-card__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ---- Card body ---- */
.mex-product-card__body,
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 22px 22px;
}

.mex-product-card__title {
  margin: 0 0 5px;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.mex-product-card__title-link {
  color: inherit;
  text-decoration: none;
}

.mex-product-card__title-link:hover {
  color: #2563eb;
}

.mex-product-card__subtitle {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
  font-weight: 400;
}

/* ---- Specs ---- */
.mex-product-card__specs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mex-product-card__spec {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8rem;
  line-height: 1.4;
}

.mex-product-card__spec:first-child {
  border-top: 1px solid #f1f5f9;
}

.mex-product-card__spec:last-child {
  border-bottom: 1px solid #f1f5f9;
}

.mex-product-card__spec::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  align-self: center;
  justify-self: center;
}

.mex-product-card__spec-label {
  min-width: 0;
  color: #64748b;
  font-weight: 400;
}

.mex-product-card__spec-value {
  text-align: right;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

/* ---- Description ---- */
.mex-product-card__description {
  margin: 0 0 16px;
  font-size: 0.835rem;
  line-height: 1.55;
  color: var(--t2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 1 auto;
}

/* ---- CTA ---- */
.mex-product-card__actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e8edf5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

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

.mex-product-card .btn.mex-product-card__detail,
.mex-product-card .btn.mex-product-card__request,
.product-card .btn.mex-product-card__detail,
.product-card .btn.mex-product-card__request {
  width: 100%;
  min-height: 42px;
  height: auto;
  padding: 9px 12px;
  margin: 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mex-product-card .btn.mex-product-card__detail,
.product-card .btn.mex-product-card__detail {
  background: var(--bg-2);
  color: #1e293b;
  border: 1px solid #c8d4e8;
}

.mex-product-card .btn.mex-product-card__detail:hover,
.product-card .btn.mex-product-card__detail:hover {
  background: #f0f6ff;
  border-color: #2563eb;
  color: #1e3a8a;
  transform: none;
}

.mex-product-card .btn.mex-product-card__request,
.product-card .btn.mex-product-card__request {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: none;
}

.mex-product-card .btn.mex-product-card__request:hover,
.product-card .btn.mex-product-card__request:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: none;
  box-shadow: none;
}

.mex-product-card__btn-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mex-product-card__arrow {
  flex-shrink: 0;
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.mex-product-card__detail:hover .mex-product-card__arrow,
.mex-product-card__request:hover .mex-product-card__arrow {
  transform: translateX(3px);
}

/* ==========================================================
   PRODUCT DETAIL PAGE
   ========================================================== */

.page-product-detail .product-detail-page__body {
  padding: 20px 0 80px;
  background: #f8fafc;
}

.product-detail-page__inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---- Breadcrumb ---- */
.product-detail-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.845rem;
  color: #64748b;
}

.product-detail-page__breadcrumb a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.product-detail-page__breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail-page__breadcrumb span:last-child {
  color: #1e293b;
  font-weight: 600;
}

/* ---- Hero 2-col layout ---- */
.product-detail-page__hero,
.product-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 40px;
  align-items: start;
}

.product-detail-page__gallery {
  min-width: 0;
}

/* ---- Image panel ---- */
.product-detail-page__media-frame,
.product-detail__media {
  background: var(--bg-2);
  border: 1px solid #d0d8e8;
  border-radius: 0;
  box-shadow: none;
  min-height: 460px;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-page__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 380px;
  object-fit: contain;
}

/* ---- Right summary ---- */
.product-detail-page__summary {
  min-width: 0;
}

/* ---- Category pill ---- */
.product-detail-page__category-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

/* ---- Title / subtitle ---- */
.product-detail-page__title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #0f172a;
}

.product-detail-page__subtitle {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--t1);
}

.product-detail-page__description {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--t2);
}

/* ---- Highlight chips ---- */
.product-detail-page__highlights,
.product-detail__chips {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-page__highlight {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border-radius: 0;
  background: #f8fafc;
  border: 1px solid #d0d8e8;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
  color: #1e293b;
}

.product-detail-page__highlight::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eff6ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7.2l2.5 2.5 5.5-5.7' stroke='%232563eb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ---- Specs card ---- */
.product-detail-page__specs,
.product-detail__specs {
  margin-bottom: 22px;
}

.product-detail-page__specs-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.product-detail-page__specs-list {
  margin: 0;
  padding: 0;
  background: var(--bg-2);
  border: 1px solid #d0d8e8;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.product-detail-page__spec-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.product-detail-page__spec-row:last-child {
  border-bottom: none;
}

.product-detail-page__spec-row::before {
  content: "";
  width: 5px;
  height: 5px;
  justify-self: center;
  border-radius: 50%;
  background: #2563eb;
}

.product-detail-page__spec-row dt {
  margin: 0;
  font-size: 0.855rem;
  font-weight: 400;
  color: #64748b;
}

.product-detail-page__spec-row dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

/* single-spec highlight */
.product-detail-page__specs--single .product-detail-page__spec-row {
  padding: 16px 18px;
}

.product-detail-page__specs--single .product-detail-page__spec-row dt {
  font-size: 0.88rem;
}

.product-detail-page__specs--single .product-detail-page__spec-row dd {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2563eb;
}

/* ---- Options ---- */
.product-detail-page__options {
  margin-bottom: 18px;
}

.product-detail-page__options-title {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.product-detail-page__options ul {
  margin: 0;
  padding-left: 18px;
  color: var(--t2);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---- CTA area ---- */
.product-detail-page__cta {
  margin-top: 4px;
}

.product-detail-page__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.page-product-detail .product-detail-page__cta-primary.btn,
.page-product-detail .product-detail-page__cta-brochure.btn {
  min-height: 46px;
  height: auto;
  padding: 0 22px;
  margin: 0;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  overflow: visible;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.page-product-detail .product-detail-page__cta-primary.btn {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: none;
}

.page-product-detail .product-detail-page__cta-primary.btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: none;
  box-shadow: none;
}

.page-product-detail .product-detail-page__cta-brochure.btn {
  background: var(--bg-2);
  color: #1e293b;
  border: 1px solid #c8d4e8;
  box-shadow: none;
}

.page-product-detail .product-detail-page__cta-brochure.btn:hover {
  background: #f0f6ff;
  border-color: #2563eb;
  color: #1e3a8a;
  transform: none;
}

.product-detail-page__cta-download {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12m0 0l4-4m-4 4l-4-4M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12m0 0l4-4m-4 4l-4-4M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

.product-detail-page__cta-arrow {
  transition: transform 0.15s ease;
}

.product-detail-page__cta-primary:hover .product-detail-page__cta-arrow {
  transform: translateX(3px);
}

.product-detail-page__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.845rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-detail-page__back:hover {
  color: #2563eb;
}

/* ---- Benefit strip ---- */
.product-detail-page__benefits-strip,
.product-benefit-strip {
  margin-top: 32px;
}

.product-detail-page__benefits-strip-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  background: var(--bg-2);
  border: 1px solid #d0d8e8;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.product-detail-page__benefits-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 170px;
  max-width: 200px;
  padding: 16px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1e293b;
  background: #f8fafc;
  border-right: 1px solid #d0d8e8;
}

.product-detail-page__benefits-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 0;
  background-color: #2563eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 12.5l2.5 2.5 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}

.product-detail-page__benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  padding: 16px 16px;
  font-size: 0.835rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--t1);
  border-right: 1px solid #e8edf5;
}

.product-detail-page__benefit-item::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #93c5fd;
}

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

/* ---- Related products ---- */
.page-product-detail .related-products {
  margin-top: 48px;
}

.related-products__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf5;
}

.related-products__header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.related-products__category-link {
  font-size: 0.855rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.related-products__category-link:hover {
  text-decoration: underline;
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ---- Related card ---- */
.related-product-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid #d0d8e8;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.related-product-card:hover {
  border-color: #2563eb;
}

.related-product-card__media {
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-right: 1px solid #e8edf5;
}

.related-product-card__media-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.related-product-card__image {
  display: block;
  max-width: 90%;
  max-height: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.related-product-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
}

.related-product-card__title {
  margin: 0 0 3px;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}

.related-product-card__title-link {
  color: #0f172a;
  text-decoration: none;
}

.related-product-card__title-link:hover {
  color: #2563eb;
}

.related-product-card__description {
  margin: 0 0 6px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-product-card__specs {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.related-product-card__spec {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.related-product-card__spec-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
}

.related-product-card__spec-label {
  font-size: 0.7rem;
  color: #94a3b8;
}

.related-product-card__detail-link {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.related-product-card__detail-link:hover {
  text-decoration: underline;
}

/* Legacy layout hook */
.page-product-detail .product-detail.product-detail-page__layout {
  display: none;
}
.admin-repeat-row--related {
  grid-template-columns: 1fr auto;
}

.admin-repeat-row--related select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  background: var(--bg-2);
  font: inherit;
}
/* =========================================================
   DARK THEME OVERRIDES – applied on top of legacy styles
   ========================================================= */

/* Category hero */
.category-hero {
    background: var(--bg-2);
    border-bottom: 1px solid var(--b-blue);
}

.category-hero__eyebrow {
    color: var(--blue-glow);
    background: rgba(34, 104, 255, 0.12);
    border-color: var(--b-blue);
}

.product-detail__eyebrow {
    color: var(--blue-glow);
    background: rgba(34, 104, 255, 0.12);
    border-color: var(--b-blue);
}

/* Product detail media */
.product-detail__media {
    background: var(--bg-1);
    border-color: var(--b-blue);
}

/* Spec table */
.specs-table {
    background: var(--bg-2);
    border-color: var(--b-blue);
    box-shadow: none;
}

.spec-row { border-bottom-color: var(--b-dark); }

.spec-row__label,
.spec-row__value { background: var(--bg-2); color: var(--t1); }

.spec-row__label { background: var(--bg-3); color: var(--t0); font-weight: 700; }

/* Anchor nav */
.anchor-nav a {
    background: rgba(34, 104, 255, 0.1);
    border-color: var(--b-blue);
    color: var(--t0);
    box-shadow: none;
}

.anchor-nav a:hover {
    background: rgba(34, 104, 255, 0.2);
    border-color: var(--blue-glow);
    transform: translateY(-1px);
}

/* Intro boxes */
.category-intro__text,
.category-intro__box {
    background: var(--bg-2);
    border-color: var(--b-blue);
    box-shadow: none;
}

.category-intro__box {
    background: var(--bg-3);
    border: 1px solid var(--b-blue);
}

/* Usage cards */
.usage-card {
    background: var(--bg-2);
    border-color: var(--b-blue);
    color: var(--t0);
    box-shadow: none;
}

.usage-card:hover {
    border-color: var(--blue-glow);
    box-shadow: 0 0 16px rgba(34, 104, 255, 0.2);
    transform: translateY(-3px);
}

/* Feature list */
.feature-list__item {
    background: var(--bg-2);
    border-color: var(--b-blue);
    box-shadow: none;
    backdrop-filter: none;
}

.feature-list__item h3 { color: var(--t0); }
.feature-list__item p  { color: var(--t2); }

/* Section heading eyebrow */
.section-heading__eyebrow {
    background: rgba(34, 104, 255, 0.12);
    border-color: var(--b-blue);
    color: var(--blue-glow);
}

/* FAQ */
.faq-item {
    background: var(--bg-2);
    border-color: var(--b-blue);
    box-shadow: none;
}

.faq-item summary { color: var(--t0); }

.faq-item summary::after {
    background: rgba(34, 104, 255, 0.18);
    color: var(--blue-glow);
}

.faq-item[open] summary::after { background: rgba(34, 104, 255, 0.28); }
.faq-item p { color: var(--t2); }

/* CTA card */
.cta-card {
    background: var(--bg-3);
    border: 1px solid var(--b-blue);
    box-shadow: none;
}

/* Muted section */
.page-content--muted {
    background: var(--bg-2);
    border-top-color: var(--b-subtle);
    border-bottom-color: var(--b-subtle);
}

/* News cards */
.news-card {
    background: var(--bg-2);
    border: 1px solid var(--b-blue);
    box-shadow: none;
    text-decoration: none;
    color: var(--t0);
}

.news-card:hover {
    background: var(--bg-3);
    border-color: var(--blue-glow);
    transform: translateY(-3px);
}

.news-card__body { padding: 20px; }

.news-card__title {
    color: var(--t0);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.news-card__excerpt { color: var(--t2); font-size: 0.9rem; }

.news-card__badge--category {
    background: rgba(34, 104, 255, 0.14);
    border: 1px solid var(--b-blue);
    color: var(--blue-glow);
}

.news-card__date { font-family: 'Space Mono', monospace; color: var(--t2); font-size: 11px; }

.news-card__cta {
    color: var(--blue-glow);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* About */
.about-intro__text,
.about-intro__box,
.about-segments__content,
.about-segments__cards,
.about-history__wrap {
    background: var(--bg-2);
    border-color: var(--b-blue);
    color: var(--t0);
    box-shadow: none;
}

.about-card {
    background: var(--bg-2);
    border: 1px solid var(--b-blue);
    box-shadow: none;
    color: var(--t0);
}

.about-card:hover { border-color: var(--blue-glow); }

/* Contact */
.contact-main-card,
.contact-side-card,
.contact-form-wrap {
    background: var(--bg-2);
    border: 1px solid var(--b-blue);
    box-shadow: none;
    color: var(--t0);
}

/* References */
.reference-card {
    background: var(--bg-2);
    border: 1px solid var(--b-blue);
    box-shadow: none;
}

.reference-card:hover { background: var(--bg-3); border-color: var(--blue-glow); }

/* News intro / detail */
.news-intro__text,
.news-intro__box,
.news-detail-article,
.news-detail-sidebar__box {
    background: var(--bg-2);
    border: 1px solid var(--b-blue);
    box-shadow: none;
    color: var(--t0);
}

/* References intro */
.references-intro__text,
.references-intro__stats {
    background: var(--bg-2);
    border: 1px solid var(--b-blue);
    box-shadow: none;
    color: var(--t0);
}

/* Page hero (inner pages) */
.page-hero {
    background: var(--bg-2);
    border-bottom: 1px solid var(--b-blue);
}

.page-hero h1 { color: var(--t0); }

/* General text in inner pages */
.content-narrow h2 { color: var(--t0); }
.content-narrow > p { color: var(--t1); }

/* Category CTA box */
.category-cta__box {
    background: var(--bg-3);
    border: 1px solid var(--b-blue);
}

/* Product options */
.product-detail__options li { color: var(--t1); }
.product-detail__subtitle { color: var(--t1); }
.product-detail__content p { color: var(--t1); }

/* Related product cards */
.related-product-card__detail-link { color: var(--blue-glow); }


/* ── News grid and card (homepage + listing) ─────────────── */
.news-grid--home {
    gap: 1px;
    background: var(--b-blue);
    border: 1px solid var(--b-blue);
}

.news-card {
    background: var(--bg-2);
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--t0);
}

.news-card:hover {
    background: var(--bg-3);
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.news-card:focus-visible { outline-color: var(--blue-glow); }

.news-card__media {
    background: var(--bg-1);
}

.news-card__image {
    filter: brightness(0.88) saturate(1.1);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.news-card:hover .news-card__image {
    filter: brightness(1) saturate(1.2);
}

.news-card__body { background: transparent; }

.news-card__title { color: var(--t0); }
.news-card__excerpt { color: var(--t2); }

.news-card__badge--category {
    background: rgba(34, 104, 255, 0.14);
    border: 1px solid var(--b-blue);
    color: var(--blue-glow);
}

.news-card__badge--video {
    background: rgba(34, 104, 255, 0.7);
    color: var(--white);
}

.news-card__date {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--t2);
}

.news-card__cta {
    color: var(--blue-glow);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-card:hover .news-card__cta { color: var(--cyan); }

/* ── Listing/related news grids ──────────────────────────── */
.news-grid--listing,
.news-grid--related {
    gap: 1px;
    background: var(--b-blue);
    border: 1px solid var(--b-blue);
}

/* ── News detail ─────────────────────────────────────────── */
.news-detail-body { color: var(--t1); }
.news-detail-body h2, .news-detail-body h3 { color: var(--t0); }
.news-detail__title { color: var(--t0); }
.news-detail__meta { color: var(--t2); }

/* =========================================================
   CUSTOMER ZONE & SERVICE MODULE
   ========================================================= */

.customer-page {
    background: var(--mex-bg, var(--bg-0));
}

.customer-hero {
    padding: 62px 0 42px;
    background: linear-gradient(180deg, rgba(15, 29, 73, 0.94) 0%, rgba(19, 38, 95, 0.9) 100%);
    color: #ffffff;
}

.customer-hero__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.customer-hero__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border: 1px solid rgba(180, 202, 247, 0.42);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.customer-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 44px;
    line-height: 1.12;
}

.customer-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.7;
}

.customer-hero .btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.customer-section {
    padding: 44px 0 70px;
}

.customer-layout {
    display: grid;
    gap: 22px;
}

.customer-layout--narrow {
    max-width: 760px;
}

.customer-layout--wide {
    max-width: 980px;
}

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

.customer-hub-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    padding: 28px;
    background: var(--mex-white, var(--surface));
    border: 1px solid var(--mex-border, var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.customer-hub-card:hover {
    border-color: rgba(34, 104, 255, 0.45);
    box-shadow: 0 10px 28px rgba(15, 29, 73, 0.08);
}

.customer-hub-card h2 {
    margin: 0;
    color: var(--mex-text, var(--t0));
    font-size: 1.45rem;
    line-height: 1.25;
}

.customer-hub-card p {
    flex: 1;
    margin: 0;
    color: var(--mex-muted, var(--t2));
    line-height: 1.7;
}

.customer-hub-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.customer-panel {
    padding: 28px;
    background: var(--mex-white, var(--surface));
    border: 1px solid var(--mex-border, var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.customer-panel--muted {
    background: var(--mex-bg-soft, #f8fbff);
}

.customer-panel h2 {
    margin: 0 0 14px;
    color: var(--mex-text, var(--t0));
    font-size: 1.45rem;
}

.customer-panel p {
    color: var(--mex-muted, var(--t2));
    line-height: 1.7;
}

.customer-form {
    display: grid;
    gap: 18px;
}

.customer-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.customer-machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.customer-machine-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    min-height: 280px;
    padding: 24px;
    background: var(--mex-white, var(--surface));
    border: 1px solid var(--mex-border, var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.customer-machine-card__serial {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 11px;
    border: 1px solid var(--b-blue);
    color: var(--mex-blue, var(--primary));
    font-weight: 700;
    font-size: 0.9rem;
}

.customer-machine-card h2 {
    margin: 0 0 16px;
    color: var(--mex-text, var(--t0));
    font-size: 1.35rem;
}

.customer-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.customer-detail-list {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.customer-detail-list div {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(172, 191, 232, 0.35);
}

.customer-detail-list dt {
    color: var(--mex-muted, var(--t2));
    font-weight: 700;
}

.customer-detail-list dd {
    margin: 0;
    color: var(--mex-text, var(--t0));
}

.customer-request-list {
    display: grid;
    gap: 14px;
}

.customer-request-row {
    padding: 14px;
    border: 1px solid var(--mex-border, var(--border));
    background: var(--mex-white, #ffffff);
}

.customer-request-row span {
    display: block;
    margin-top: 4px;
    color: var(--mex-muted, var(--t2));
    font-size: 0.9rem;
}

.customer-request-row p {
    margin: 10px 0 0;
}

.admin-inline-form {
    margin: 0 0 22px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}

.admin-filter-form--three {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
}

.admin-detail-list {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
}

.admin-detail-list div {
    display: grid;
    grid-template-columns: minmax(150px, 0.26fr) 1fr;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-detail-list dt {
    color: #64748b;
    font-weight: 700;
}

.admin-detail-list dd {
    margin: 0;
    color: #0f172a;
}

@media (max-width: 820px) {
    .customer-hero h1 {
        font-size: 34px;
    }

    .customer-form .form-grid,
    .customer-detail-layout,
    .customer-detail-list div,
    .admin-filter-form,
    .admin-filter-form--three,
    .admin-detail-list div {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   NEWS LISTING REDESIGN (novinky.php)
   ========================================================= */

/* Hero meta line */
.news-page-hero__meta {
    margin: 18px 0 0;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #6b7c9a;
}

/* Filter bar */
.news-filterbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #dbe4f2;
    box-shadow: 0 14px 36px rgba(15, 35, 80, 0.08);
}

.news-filterbar__label {
    margin-right: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7c9a;
    white-space: nowrap;
}

.news-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #dbe4f2;
    border-radius: 0;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1e3a6e;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.news-filter-chip:hover {
    border-color: var(--mex-blue, #2268ff);
    color: var(--mex-blue, #2268ff);
}

.news-filter-chip.is-active {
    background: var(--mex-blue, #2268ff);
    border-color: var(--mex-blue, #2268ff);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(34, 104, 255, 0.35);
}

.news-filter-chip__count {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    opacity: 0.55;
}

.news-filter-chip--video::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 7px solid currentColor;
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}

.news-filterbar__result {
    margin-left: auto;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #6b7c9a;
}

/* Featured article */
.news-list__featured {
    margin-bottom: 28px;
}

.news-list__featured--flagged .news-card__media::before {
    content: '\2605  Nejnov\11B j\161 \ED ';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    padding: 8px 16px;
    background: linear-gradient(90deg, var(--mex-blue, #2268ff), #0099ff);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-list__featured .news-card__badge--video {
    left: auto;
    right: 14px;
}

.news-card--featured-horizontal .news-card__body {
    padding: 34px 42px;
}

.news-list__featured .news-card__title {
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    line-height: 1.2;
}

.news-list__featured .news-card__excerpt {
    -webkit-line-clamp: 4;
    font-size: 1.02rem;
}

/* Card hover accent strip */
.news-card {
    position: relative;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mex-blue, #2268ff), var(--mex-cyan, #00d8ff));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.news-card:hover::after {
    transform: scaleX(1);
}

/* Filtering */
.news-card.is-filtered-out {
    display: none !important;
}

/* Entry animation */
@media (prefers-reduced-motion: no-preference) {
    .news-list .news-card {
        animation: mexNewsRise 0.5s ease both;
    }

    .news-grid--listing .news-card:nth-child(2) { animation-delay: 0.06s; }
    .news-grid--listing .news-card:nth-child(3) { animation-delay: 0.12s; }
    .news-grid--listing .news-card:nth-child(4) { animation-delay: 0.18s; }
}

@keyframes mexNewsRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
    .news-filterbar__result {
        flex-basis: 100%;
        margin-left: 0;
    }

    .news-card--featured-horizontal .news-card__body {
        padding: 26px;
    }
}

/* News hero unified with dark category-hero */
.category-hero--news .news-page-hero__lead {
    margin: 0;
    max-width: 52ch;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

/* Toolbar above the listing (white background) */
.news-toolbar {
    margin: 16px 0 30px;
}

.news-toolbar__meta {
    margin: 0 0 14px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #6b7c9a;
}
