/* --- CELKOVÝ LAYOUT --- */
.service-node-page {
    padding: 60px 0;
    background: #1b1b1b;
    color: #fff;
}

/* --- BREADCRUMBS --- */
.service-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
}
.service-breadcrumbs a { color: #fff; text-decoration: none; }
.service-breadcrumbs .sep { color: #035695; }

/* --- HERO SEKCIÁ --- */
.node-hero-wrapper {
    display: flex;
    justify-content: space-between;
    
    gap: 60px;
}

.node-text-side {
    flex: 1;
}

.node-image-side {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Riadok obrazok + text (na mobile); na desktop len blok s textom */
.node-main-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.node-image-side--inline {
    flex: 0 0 auto;
}

/* Desktop: len jeden obrázok vpravo, žiadne „Pokračovať“, celý text */
@media (min-width: 993px) {
    .node-image-side--inline {
        display: none !important;
    }
    .node-main-row {
        display: block;
    }
    .node-description-toggle {
        display: none !important;
    }
    /* odsadenie pod hero sekciou na desktope, aby obrazok „dýchal“ od ďalšieho obsahu */
    .node-hero {
        margin-bottom: 40px;
    }
}

.hero-img-styled {
    max-width: 100%;
    height: auto;
    max-height: 380px;  /* menšia výška hero obrázka na desktope */
    object-fit: contain;
    /* ODSTRÁNENÁ ŽIARA/TIEŇ */
    filter: none; 
}

/* Krátky úvodný text pod nadpisom – len v mobilnej verzii */
.node-intro {
    display: none;
    font-size: 14px;
    opacity: 0.8;
    margin: 8px 0 18px;
    text-align: center;
}

/* Blok popisu s tlačidlom Pokračovať / Skryť */
.node-description {
    position: relative;
}
.node-description-inner {
    transition: max-height 0.3s ease;
}
.node-description-toggle {
    display: none; /* na desktop skryté, zobrazí sa len na mobile */
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #4da3ff;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

/* --- DYNAMICKÉ PODČIARKNUTIE --- */
/* Riadok šípka + nadpis (na desktop bez vplyvu, na mobile v jednom riadku) */
.node-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}
.node-title-row .node-title-container {
    margin-bottom: 0;
}
.node-back-link {
    display: none; /* zobrazené len na mobile */
}

.node-title-container, .section-header-styled {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.node-title {
    font-size: 34px;  /* menší hlavný nadpis na desktope */
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 2;
}

.section-sub-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
}

.node-title-line, .selection-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 12px;
    background: #035695;
    border-radius: 6px;
    z-index: 1;
}

/* --- GRID ZNAČIEK / MODELOV (Ikona hore, text dole) --- */
.section-header-with-search {
    display: flex;
    align-items: center; /* nadpis+čiara a vyhľadávanie sú vertikálne vycentrované voči sebe */
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}
.section-header-with-search .section-header-main {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;   /* miesto pre modrú čiaru pod nadpisom */
    flex: 0 0 auto;        /* šírka podľa nadpisu „Modely“ */
}
.section-header-with-search .selection-divider {
    margin-top: 0px;
    top: auto;             /* čiara bude sedieť tesne pod nadpisom */
    bottom: -4px;          /* optické posunutie o 4px nižšie */
}
.node-selection-search {
    position: relative;
    flex: 1;              /* zaberie zvyšok riadku a odtlačí input doprava */
    min-width: 0;
    display: flex;
    justify-content: flex-end;  /* input vždy začína úplne vpravo (desktop aj mobil) */
}
.node-selection-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    pointer-events: none;
}
.node-selection-search-input {
    width: 100%;
    max-width: 200px;
    padding: 8px 32px 8px 14px; /* vpravo priestor na ikonu */
    border-radius: 999px; /* pilulka – zaoblené z oboch strán */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 13px;
    outline: none;
}
.node-selection-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.selection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px 20px !important;
    text-decoration: none;
    color: #fff;
    
    /* DIZAJN PODĽA TVOJICH BLOKOV (GLASS BEZ ŽIARY) */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px) saturate(140%);
    -webkit-backdrop-filter: blur(15px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* LEN VNÚTORNÉ ODLESKY */
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 4px 15px rgba(255, 255, 255, 0.05),
        inset 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.card-icon-box {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* ODSTRÁNENÝ TIEŇ OKOLO IKONIEK */
    filter: none; 
}

.card-label {
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;          /* jednoradové názvy uzlov */
    overflow: visible;
    text-overflow: clip;
}

.selection-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- CENNÍK (GLASS ŠTÝL) --- */
.node-pricing {
    margin: 40px 0; /* jemné odsadenie celej sekcie zhora aj zospodu */
}
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
}

.price-item-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.price-item-card-link:hover .price-item-card {
    transform: translateY(-4px);
}

.price-item-card {
    display: flex;
    align-items: stretch;           /* modrý blok aj text majú plnú výšku karty */
    gap: 0;                         /* žiadna medzera medzi modrým blokom a textovým blokom */
    padding: 0 !important;          /* žiadna vnútorná medzera – rieši sa vnútri podblokov */
    background: #151617;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    overflow: hidden; /* modrý blok plynule prechádza do karty */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    min-height: 92px;               /* nižšia karta – bližšie k dizajnu */
}

.price-item-img-container {
    flex: 0 0 118px;
    background: #035695;
    /* Modrý blok je o kúsok väčší a má zaoblené rohy aj zprava,
       karta ho oreže cez overflow: hidden, takže sedí ako v designe */
    border-radius: 32px;
    margin-left: -4px;
    margin-top: -4px;
    margin-bottom: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0px;
}

.price-item-img-container img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: none; /* BEZ ŽIARY */
}

.price-item-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}
.price-item-title-row h4 {
    margin: 0;
    flex: 1;
    min-width: 0;
}
.price-item-desc {
    display: none;
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.8;
}
.price-item-desc.is-open {
    display: block;
}
.price-desc-btn {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
    font-family: Georgia, serif;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.price-desc-btn:hover,
.price-desc-btn.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.price-amount {
    color: #4da3ff;
    font-weight: 700;
    font-size: 15px;
    display: block;
}

.price-item-info {
    padding: 14px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertikálne centrovanie textu v rámci karty */
}

@media (max-width: 768px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MOBILNÁ VERZIA --- */
@media (max-width: 992px) {
    /* Breadcrumbs skryté na mobile, namiesto toho šípka späť */
    .service-node-page .service-breadcrumbs--desktop {
        display: none !important;
    }
    /* Šípka späť vľavo od nadpisu */
    .node-back-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        height: 40px;
        flex-shrink: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff;
        text-decoration: none;
        transition: background 0.2s, border-color 0.2s;
    }
    .node-back-link:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        color: #fff;
    }
    .node-title-row {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 24px;
        padding-left: 64px;  /* rezerva pre tlačidlo späť */
        padding-right: 16px; /* jemné optické vycentrovanie */
    }
    .node-title-row .node-title-container {
        text-align: center;
        margin-bottom: 0;
        margin-right: 50px;
    }
    .node-title-row .node-back-link {
        position: absolute;
        left: 0;
    }
    /* Dlhé nadpisy na mobile: môžu sa zalomiť (max 2 riadky), nesmú pretekať cez šípku */
    .node-title {
        white-space: normal;
        line-height: 1.1;
        font-size: clamp(20px, 6vw, 30px);
        overflow-wrap: anywhere;
        /* bez 3 bodiek – zobraz celý nadpis */
    }
    /* Úvodný text „Poskytujeme rýchlu pomoc…“ len na mobile, menšie písmo */
    .node-intro {
        display: block;
        font-size: 12px;
    }
    /* Hero: obrazok vlavo (orezany), text vpravo – podľa mobilného dizajnu */
    .node-hero-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: left;
    }
    .node-main-row {
        display: flex;
        align-items: stretch; /* stĺpce majú rovnakú výšku podľa obrázka */
        gap: 16px;
    }
    .node-image-side--inline {
        display: flex;
        flex: 0 0 35%;
        max-width: 35%;
        overflow: hidden;
        margin-left: -24px; /* o trochu viac doľava, ako v designe iPhone */
    }
    .node-image-side--desktop {
        display: none;
    }
    .node-text-side {
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    .node-content-text {
        text-align: left;
    }
    .node-title-container,
    .section-header-styled {
        text-align: left;
    }
    /* odstránenie modrého podčiarknutia pod hlavným nadpisom služby na mobile */
    .node-title-container .node-title-line {
        display: none;
    }
    .hero-img-styled {
        width: 100%;
        height: auto;              /* výška podľa pomeru strán – celý obrázok */
        max-height: 340px;         /* bezpečný strop, aby nebol príliš veľký */
        object-fit: contain;
        object-position: right center;
        margin-left: 0;
    }
    /* kolaps dlhého textu na mobile */
    .node-description {
        display: flex;
        flex-direction: column;
        font-size: 12px;
        line-height: 1.4;
    }
    .node-description-inner {
        max-height: 180px;
        overflow: hidden;
    }
    /* pôvodný sivý prechod (::after) nad textom odstraňujem, aby nezostával sivý pás */
    .node-description-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: auto;          /* tlačidlo sa posunie k spodnému okraju – zarovno spodku obrázka */
        padding: 0;
        border-radius: 0;
        border: none;
        background: transparent;
        color: #4da3ff;
        font-size: 13px;
        cursor: pointer;
        text-decoration: underline;
    }
    .node-description.is-expanded .node-description-inner {
        max-height: none;
    }
    .node-description.is-expanded::after {
        display: none;
    }
    /* Po kliknutí na „Pokračovať“ na mobile – skryť obrázok a dať text na celú šírku */
    .node-main-row.is-expanded {
        display: block;
    }
    .node-main-row.is-expanded .node-image-side--inline {
        display: none;
    }
    .node-title { font-size: 32px; }
    .selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        margin-bottom: 60px;
    }
    .selection-card {
        padding: 28px 16px !important;
        border-radius: 26px;
    }
    .card-icon-box {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }
    .card-label {
        font-size: 15px;
    }
}
@media (max-width: 768px) {
    .service-node-page { padding: 0px 0; }
    .node-selection { padding-top: 16px; }
    .node-title { font-size: 26px; }
    .node-title-line, .selection-divider { height: 10px; }
    .section-sub-title { font-size: 24px; }
    .selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 48px;
    }
    .selection-card {
        padding: 24px 14px !important;
        border-radius: 24px;
    }
    .card-icon-box {
        width: 76px;
        height: 76px;
    }
}
@media (max-width: 480px) {
    .selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .service-breadcrumbs { font-size: 12px; flex-wrap: wrap; }
    .node-title { font-size: 22px; }
    .section-sub-title { font-size: 20px; }
}