/**
 * Robnety Pakalpojumi — single service templates.
 * Informational service layouts; all service fields are optional.
 */

:root {
    --robnety-primary: #006da8;
    --robnety-primary-dark: #07547d;
    --robnety-text: #24334b;
    --robnety-muted: #667085;
    --robnety-page-bg: #f3f6f9;
    --robnety-surface: #ffffff;
    --robnety-soft: #f8fafc;
    --robnety-media-bg: #ffffff;
    --robnety-border: #d9e2ea;
    --robnety-content-width: 1480px;
    --robnety-readable-width: 920px;
    --robnety-shadow: 0 12px 32px rgba(24, 44, 68, .055);
}

body.single-services {
    background: var(--robnety-page-bg);
}

.single-services .robnety-classic-wrap,
.single-services .robnety-modern-wrap,
.single-services .robnety-minimal-layout,
.single-services .robnety-card-outer,
.single-services .robnety-blank-wrap {
    font-family: "Roboto", Arial, sans-serif !important;
    font-synthesis: none;
}

.single-services .robnety-classic-wrap *,
.single-services .robnety-modern-wrap *,
.single-services .robnety-minimal-layout *,
.single-services .robnety-card-outer *,
.single-services .robnety-blank-wrap * {
    box-sizing: border-box;
    border-radius: 0 !important;
    font-family: "Roboto", Arial, sans-serif !important;
    font-synthesis: none;
}

.single-services .robnety-classic-wrap button,
.single-services .robnety-classic-wrap input,
.single-services .robnety-classic-wrap select,
.single-services .robnety-classic-wrap textarea,
.single-services .robnety-modern-wrap button,
.single-services .robnety-modern-wrap input,
.single-services .robnety-modern-wrap select,
.single-services .robnety-modern-wrap textarea,
.single-services .robnety-minimal-layout button,
.single-services .robnety-minimal-layout input,
.single-services .robnety-minimal-layout select,
.single-services .robnety-minimal-layout textarea,
.single-services .robnety-card-outer button,
.single-services .robnety-card-outer input,
.single-services .robnety-card-outer select,
.single-services .robnety-card-outer textarea,
.single-services .robnety-blank-wrap button,
.single-services .robnety-blank-wrap input,
.single-services .robnety-blank-wrap select,
.single-services .robnety-blank-wrap textarea {
    font-family: "Roboto", Arial, sans-serif !important;
}

/* Shared layout */
.robnety-classic-wrap,
.robnety-minimal-layout {
    width: min(var(--robnety-content-width), calc(100% - 56px));
    margin: 36px auto 72px;
}

/* Shared typography */
.robnety-service-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.robnety-cat-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-left: 3px solid var(--robnety-primary);
    background: #eef6fa;
    color: var(--robnety-primary-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.robnety-classic-title,
.robnety-modern-title,
.robnety-minimal-title,
.robnety-card-title {
    color: var(--robnety-text);
    font-weight: 700;
    letter-spacing: -.015em;
}

.robnety-service-lead,
.robnety-modern-lead,
.robnety-minimal-lead,
.robnety-card-lead {
    color: var(--robnety-muted);
    line-height: 1.65;
}

.robnety-description-title {
    margin: 0 0 18px;
    color: var(--robnety-text);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
}

.robnety-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--robnety-primary);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.robnety-entry-content {
    color: #4f5b70;
    font-size: 1rem;
    line-height: 1.78;
}

.robnety-entry-content > :first-child { margin-top: 0; }
.robnety-entry-content > :last-child { margin-bottom: 0; }

/* CTA — secondary service action, not a buy button */
.robnety-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--robnety-primary-dark);
    background: var(--robnety-primary-dark);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.robnety-cta-button:hover,
.robnety-cta-button:focus-visible {
    border-color: var(--robnety-primary);
    background: var(--robnety-primary);
    color: #fff !important;
}

.robnety-cta-button:focus-visible,
.robnety-share-btn:focus-visible,
.robnety-gallery-item:focus-visible,
.robnety-service-nav-card:focus-visible {
    outline: 3px solid rgba(0, 109, 168, .18);
    outline-offset: 3px;
}


.robnety-cta-textual {
    min-height: auto;
    min-width: 0;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid var(--robnety-primary);
    background: transparent !important;
    color: var(--robnety-primary) !important;
}

.robnety-cta-textual::after {
    content: '→';
    margin-left: 8px;
}

.robnety-cta-textual:hover,
.robnety-cta-textual:focus-visible {
    color: var(--robnety-primary-dark) !important;
    border-bottom-color: var(--robnety-primary-dark);
}

.robnety-service-action,
.robnety-minimal-primary-action,
.robnety-card-cta {
    margin-top: 24px;
}

.robnety-cta-service {
    min-width: 170px;
    letter-spacing: .01em;
}

/* Classic — split layout when media exists, clean text layout when it does not */
.robnety-classic-content { min-width: 0; }

.robnety-service-hero {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
    box-shadow: var(--robnety-shadow);
}

.robnety-service-hero.has-media {
    grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr);
}

.robnety-service-hero.no-media {
    grid-template-columns: 1fr;
}

.robnety-service-hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 5vw, 64px);
}

.robnety-service-hero.no-media .robnety-service-hero-copy {
    max-width: 850px;
}

.robnety-classic-title {
    max-width: 900px;
    margin: 18px 0;
    font-size: clamp(2.6rem, 4.6vw, 4.25rem);
    line-height: 1.02;
}

.robnety-service-lead {
    max-width: 650px;
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.robnety-service-hero-visual {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-left: 1px solid var(--robnety-border);
    background: var(--robnety-media-bg);
}

.robnety-service-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    overflow: hidden;
    background: var(--robnety-media-bg);
}

.robnety-service-hero-media img,
.robnety-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
}

/* Shared information strip */
.robnety-service-info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 18px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-service-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 92px;
    padding: 20px 22px;
    border-right: 1px solid var(--robnety-border);
}

.robnety-service-info-item:last-child { border-right: 0; }

.robnety-service-info-icon {
    flex: 0 0 auto;
    width: 20px !important;
    height: 20px !important;
    color: var(--robnety-primary);
    font-size: 20px !important;
    line-height: 20px !important;
}

.robnety-service-info-label {
    display: block;
    margin-bottom: 3px;
    color: var(--robnety-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.robnety-service-info-value {
    display: block;
    color: var(--robnety-text);
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.robnety-service-description {
    margin-top: 20px;
    padding: clamp(32px, 4vw, 52px);
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

/* Modern — editorial presentation */
.robnety-modern-wrap {
    width: min(var(--robnety-content-width), calc(100% - 56px));
    margin: 36px auto 72px;
}

.robnety-modern-intro {
    padding: clamp(34px, 4vw, 54px);
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-modern-cats {
    margin-bottom: 14px;
}

.robnety-modern-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.robnety-modern-title {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 1000px;
    margin: 0;
    font-size: clamp(2.5rem, 4.2vw, 4.2rem);
    line-height: 1.02;
}

.robnety-modern-intro-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.robnety-modern-lead {
    max-width: 780px;
    margin: 18px 0 0;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.robnety-modern-visual {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--robnety-border);
    border-top: 0;
    background: var(--robnety-media-bg);
}

.robnety-modern-hero-img {
    display: block;
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    object-position: center;
}

.robnety-modern-body {
    margin-top: 32px;
}

.robnety-modern-body.robnety-has-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.robnety-modern-body.robnety-sidebar-pos-left.robnety-has-sidebar {
    grid-template-columns: 300px minmax(0, 1fr);
}

.robnety-modern-content { min-width: 0; }

.robnety-modern-editorial {
    display: grid;
    gap: 48px;
    padding: clamp(34px, 4vw, 54px);
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-modern-editorial.has-facts {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
}

.robnety-modern-story {
    max-width: 760px;
}

.robnety-modern-facts {
    padding-left: 28px;
    border-left: 1px solid var(--robnety-border);
}

.robnety-modern-facts h2 {
    margin: 0 0 14px;
    color: var(--robnety-text);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.robnety-modern-facts dl { margin: 0; }

.robnety-modern-fact {
    display: grid;
    grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr);
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--robnety-border);
}

.robnety-modern-fact:last-child {
    border-bottom: 1px solid var(--robnety-border);
}

.robnety-modern-fact dt,
.robnety-modern-fact dd { margin: 0; }

.robnety-modern-fact dt {
    color: var(--robnety-muted);
    font-size: 12px;
    font-weight: 700;
}

.robnety-modern-fact dd {
    color: var(--robnety-text);
    font-size: 14px;
    font-weight: 700;
}

.robnety-modern-gallery .robnety-service-gallery {
    margin-top: 28px;
}

.robnety-modern-gallery .robnety-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Minimal — text first, compact media row */
.robnety-minimal-wrap {
    width: min(1180px, 100%);
    min-width: 0;
}

.robnety-minimal-header {
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-minimal-cats .robnety-cat-badge {
    padding-left: 0;
    border-left: 0;
    background: transparent;
}

.robnety-minimal-title {
    max-width: 820px;
    margin: 18px 0 16px;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 1.02;
}

.robnety-minimal-lead {
    max-width: 720px;
    margin: 0;
    font-size: 1.08rem;
}

.robnety-minimal-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 18px 0 0;
    padding: 22px 28px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-minimal-fact {
    min-width: 0;
    padding: 6px 18px 6px 0;
}

.robnety-minimal-fact dt,
.robnety-minimal-fact dd { margin: 0; }

.robnety-minimal-fact dt {
    margin-bottom: 5px;
    color: var(--robnety-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.robnety-minimal-fact dd {
    color: var(--robnety-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.robnety-minimal-content {
    margin-top: 18px;
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-service-gallery--minimal-row {
    width: 100%;
    margin: 18px 0 0;
    padding: 0;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-service-gallery--minimal-row .robnety-gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 0;
}

.robnety-service-gallery--minimal-row .robnety-gallery-item {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 4 / 3;
    background: var(--robnety-surface);
}

.robnety-service-gallery--minimal-row .robnety-gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    background: var(--robnety-surface);
}

.robnety-minimal-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px 20px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

/* Card — one contained service card */
.robnety-card-outer {
    width: min(var(--robnety-content-width), calc(100% - 56px));
    margin: 36px auto 72px;
}

.robnety-card-shell {
    overflow: hidden;
    background: var(--robnety-surface);
    box-shadow: var(--robnety-shadow);
}

.robnety-card-main {
    display: grid;
    grid-template-columns: minmax(420px, .92fr) minmax(0, 1.08fr);
    min-height: 520px;
}

.robnety-card-shell.no-featured .robnety-card-main {
    grid-template-columns: 1fr;
    min-height: 0;
}

.robnety-card-media-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background: var(--robnety-soft);
}

.robnety-card-featured {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.robnety-card-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.robnety-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 5vw, 64px);
}

.robnety-card-cats {
    margin-bottom: 14px;
}

.robnety-card-title {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(2.45rem, 4vw, 3.8rem);
    line-height: 1.03;
}

.robnety-card-lead {
    max-width: 700px;
    margin: 0;
    font-size: 1.06rem;
}

.robnety-card-meta {
    display: grid;
    gap: 0;
    margin: 26px 0 0;
}

.robnety-card-meta-row {
    display: grid;
    grid-template-columns: minmax(150px, .85fr) minmax(0, 1.15fr);
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--robnety-border);
}

.robnety-card-meta-row:first-child {
    border-top: 1px solid var(--robnety-border);
}

.robnety-card-meta-row dt,
.robnety-card-meta-row dd {
    margin: 0;
}

.robnety-card-meta-row dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--robnety-muted);
    font-size: 12px;
    font-weight: 700;
}

.robnety-card-meta-row dt .dashicons {
    width: 16px;
    height: 16px;
    color: var(--robnety-primary);
    font-size: 16px;
    line-height: 16px;
}

.robnety-card-meta-row dd {
    color: var(--robnety-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.robnety-card-cta {
    margin-top: 26px;
}

.robnety-card-cta .robnety-cta-button {
    width: 100%;
}

.robnety-service-gallery--card-thumbs {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.robnety-service-gallery--card-thumbs .robnety-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.robnety-service-gallery--card-thumbs .robnety-gallery-item {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    border: 0;
    background: var(--robnety-surface);
}

.robnety-service-gallery--card-thumbs .robnety-gallery-item::after {
    display: none;
}

.robnety-service-gallery--card-thumbs .robnety-gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.robnety-card-description {
    padding: clamp(32px, 4vw, 48px) clamp(38px, 5vw, 64px);
    border-top: 1px solid var(--robnety-border);
}

.robnety-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px clamp(38px, 5vw, 64px);
    border-top: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-card-footer.share-only {
    justify-content: flex-end;
}

/* Blank — truly blank builder canvas */
.robnety-blank-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Service tools / share */
.robnety-service-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 16px 20px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}


.robnety-service-tools.share-only {
    justify-content: flex-end;
}

.robnety-share {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.robnety-share-label { display: none; }

.robnety-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
    color: var(--robnety-muted);
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.robnety-share-btn:hover {
    border-color: var(--robnety-primary);
    background: var(--robnety-primary);
    color: #fff;
}

.robnety-share-btn svg {
    width: 13px;
    height: 13px;
}

/* Gallery */
.robnety-service-gallery {
    position: relative;
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.robnety-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-media-bg);
    cursor: zoom-in;
}

.robnety-gallery-item::after {
    content: '+';
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .72);
    background: rgba(18, 43, 67, .82);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: opacity .18s ease;
}

.robnety-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    padding: 0;
    object-fit: cover;
    object-position: center;
    background: var(--robnety-media-bg);
    transition: opacity .18s ease;
}

.robnety-gallery-item:hover img { opacity: .94; }
.robnety-gallery-item:hover::after,
.robnety-gallery-item:focus-visible::after { opacity: 1; }

.robnety-service-gallery--hero {
    margin: 0;
    padding: 18px 20px 20px;
    border: 0;
    border-top: 1px solid var(--robnety-border);
}

.robnety-service-gallery--hero .robnety-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.robnety-service-gallery--hero .robnety-gallery-item {
    aspect-ratio: 4 / 3;
}

.robnety-service-gallery--hero .robnety-gallery-item img {
    width: 100%;
    height: 100%;
}

/* Previous / next — simple service navigation */
.robnety-service-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.robnety-service-nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
    color: var(--robnety-text);
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease;
}

.robnety-service-nav-card:hover {
    border-color: var(--robnety-primary);
}

.robnety-service-nav.is-single { grid-template-columns: 1fr; }
.robnety-service-nav.is-single .robnety-service-nav-card {
    width: 100%;
    max-width: none;
}
.robnety-service-nav.is-single .robnety-service-nav-card-next { margin-left: 0; }
.robnety-service-nav-card-next { text-align: right; }

.robnety-service-nav-topline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--robnety-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.robnety-service-nav-card-next .robnety-service-nav-topline { justify-content: flex-end; }
.robnety-service-nav-arrow { color: var(--robnety-primary); font-size: 14px; }
.robnety-service-nav-category { color: var(--robnety-primary); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.robnety-service-nav-title { color: var(--robnety-text); font-size: 17px; line-height: 1.3; }

/* Related services — informative list, no price emphasis */
.robnety-related-services {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-related-services-heading { margin-bottom: 14px; }

.robnety-related-services-heading h2 {
    margin: 0;
    color: var(--robnety-text);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    line-height: 1.15;
}

.robnety-related-services-heading p {
    margin: 7px 0 0;
    color: var(--robnety-muted);
    font-size: 14px;
}

.robnety-related-services-list {
    border-top: 1px solid var(--robnety-border);
}

.robnety-related-service-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--robnety-border);
}

.robnety-related-service-item.no-media {
    grid-template-columns: 1fr;
}

.robnety-related-service-media {
    display: block;
    width: 140px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--robnety-soft);
    text-decoration: none;
}

.robnety-related-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: var(--robnety-media-bg);
}

.robnety-related-service-body { min-width: 0; }
.robnety-related-service-category { color: var(--robnety-primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.robnety-related-service-body h3 { margin: 5px 0 7px; font-size: 20px; line-height: 1.25; }
.robnety-related-service-body h3 a { color: var(--robnety-text); text-decoration: none; }
.robnety-related-service-body p { margin: 0 0 10px; color: var(--robnety-muted); font-size: 14px; line-height: 1.55; }
.robnety-related-service-link { color: var(--robnety-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.robnety-related-service-link:hover { color: var(--robnety-primary-dark); }

/* Lightbox */
html.robnety-lightbox-open,
body.robnety-lightbox-open { overflow: hidden; }

.robnety-lightbox[hidden] { display: none !important; }

.robnety-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 70px 86px 58px;
    background: rgba(5, 15, 25, .94);
}

.robnety-lightbox-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(1180px, 100%);
    height: min(82vh, 820px);
}

.robnety-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 44px);
    object-fit: contain;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .34);
}

.robnety-lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: min(100%, 900px);
    min-height: 38px;
    padding-top: 12px;
    color: #fff;
    font-size: 13px;
}

.robnety-lightbox-counter { font-weight: 700; }

.robnety-lightbox-close,
.robnety-lightbox-nav {
    position: fixed;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.robnety-lightbox-close:hover,
.robnety-lightbox-nav:hover {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .16);
}

.robnety-lightbox-close:focus-visible,
.robnety-lightbox-nav:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .25);
    outline-offset: 3px;
}

.robnety-lightbox-close {
    top: 22px;
    right: 24px;
    width: 46px;
    height: 46px;
    font-size: 34px;
    font-weight: 300;
}

.robnety-lightbox-nav {
    top: 50%;
    width: 54px;
    height: 54px;
    margin-top: -27px;
    font-size: 28px;
}

.robnety-lightbox-prev { left: 24px; }
.robnety-lightbox-next { right: 24px; }

/* Responsive */
@media (max-width: 980px) {
    .robnety-service-hero.has-media,
    .robnety-modern-editorial.has-facts {
        grid-template-columns: 1fr;
    }

    .robnety-service-hero-visual {
        order: -1;
        border-left: 0;
        border-bottom: 1px solid var(--robnety-border);
    }

    .robnety-modern-heading-row {
        gap: 24px;
    }

    .robnety-card-main {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .robnety-card-media-column {
        min-height: 0;
    }

    .robnety-modern-facts {
        padding-left: 0;
        padding-top: 24px;
        border-left: 0;
        border-top: 1px solid var(--robnety-border);
    }
}

@media (max-width: 640px) {
    .robnety-classic-wrap,
    .robnety-modern-wrap,
    .robnety-minimal-layout,
    .robnety-card-outer {
        width: min(100% - 24px, var(--robnety-content-width));
        margin-top: 24px;
        margin-bottom: 40px;
    }

    .robnety-service-hero-copy,
    .robnety-service-description,
    .robnety-modern-intro,
    .robnety-modern-editorial,
    .robnety-card-copy,
    .robnety-card-media-column,
    .robnety-card-description {
        padding: 22px;
    }

    .robnety-classic-title,
    .robnety-modern-title,
    .robnety-minimal-title,
    .robnety-card-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .robnety-service-hero-media,
    .robnety-service-hero-media img,
    .robnety-hero-img {
        min-height: 280px;
    }


    .robnety-service-info-strip,
    .robnety-minimal-facts {
        grid-template-columns: 1fr;
    }

    .robnety-card-featured {
        min-height: 280px;
    }

    .robnety-service-info-item {
        border-right: 0;
        border-bottom: 1px solid var(--robnety-border);
    }

    .robnety-service-info-item:last-child { border-bottom: 0; }

    .robnety-modern-fact {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .robnety-card-meta-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .robnety-modern-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .robnety-modern-intro-action {
        width: 100%;
        justify-content: flex-start;
    }

    .robnety-service-gallery--minimal-row .robnety-gallery-grid {
        display: flex;
        gap: 10px;
    }

    .robnety-service-gallery--minimal-row .robnety-gallery-item {
        flex: 0 0 230px;
        min-width: 230px;
        aspect-ratio: 4 / 3;
    }

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

    .robnety-gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .robnety-service-gallery--hero .robnety-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .robnety-service-tools,
    .robnety-minimal-tools,
    .robnety-card-footer {
        align-items: stretch;
    }

    .robnety-footer-cta,
    .robnety-footer-cta .robnety-cta-button {
        width: 100%;
    }

    .robnety-share { margin-left: 0; }

    .robnety-service-nav {
        grid-template-columns: 1fr;
    }

    .robnety-service-nav-card-next { text-align: left; }
    .robnety-service-nav-card-next .robnety-service-nav-topline { justify-content: flex-start; }

    .robnety-related-services { padding: 22px; }

    .robnety-related-service-item,
    .robnety-related-service-item.no-media {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
    }

    .robnety-related-service-item.no-media {
        grid-template-columns: 1fr;
    }

    .robnety-related-service-media { width: 92px; }

    .robnety-lightbox { padding: 70px 14px 54px; }

    .robnety-lightbox-nav {
        top: auto;
        bottom: 20px;
        width: 48px;
        height: 44px;
        margin-top: 0;
    }

    .robnety-lightbox-prev { left: calc(50% - 56px); }
    .robnety-lightbox-next { right: calc(50% - 56px); }
    .robnety-lightbox-close { top: 14px; right: 14px; }
    .robnety-lightbox-stage { height: calc(100vh - 150px); }
    .robnety-lightbox-meta { padding-bottom: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .robnety-cta-button,
    .robnety-share-btn,
    .robnety-gallery-item img,
    .robnety-service-nav-card {
        transition: none;
    }
}

/* Modern: featured image first, full-width, then heading */
.robnety-modern-visual-first {
    margin: 0;
    padding: 0;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-media-bg);
}

.robnety-modern-visual-first .robnety-modern-hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.robnety-modern-intro.has-featured {
    border-top: 0;
}

/* Blank — restored original content/share/navigation layout */
.robnety-blank-wrap {
    width: min(var(--robnety-content-width), calc(100% - 56px));
    margin: 36px auto 72px;
    padding: 0;
    background: transparent;
}

.robnety-blank-content {
    width: 100%;
    min-width: 0;
}

.robnety-blank-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 24px;
    padding: 16px 20px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-blank-footer .robnety-share {
    margin-left: auto;
}

.robnety-post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid var(--robnety-border);
    background: var(--robnety-surface);
}

.robnety-nav-prev,
.robnety-nav-next {
    min-width: 0;
}

.robnety-nav-next {
    text-align: right;
}

.robnety-nav-prev a,
.robnety-nav-next a {
    display: inline-flex;
    max-width: 100%;
    flex-direction: column;
    gap: 3px;
    color: var(--robnety-text);
    text-decoration: none;
}

.robnety-nav-prev a:hover,
.robnety-nav-next a:hover,
.robnety-nav-archive:hover {
    color: var(--robnety-primary);
}

.robnety-nav-label {
    color: var(--robnety-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.robnety-nav-title {
    display: block;
    max-width: 360px;
    overflow: hidden;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.robnety-nav-arrow {
    color: var(--robnety-primary);
    font-size: 15px;
    line-height: 1;
}

.robnety-nav-archive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--robnety-muted);
    text-decoration: none;
}

body.robnety-template-blank .entry-title,
body.robnety-template-blank h1.page-title,
body.robnety-template-blank .post-title {
    display: none !important;
}

@media (max-width: 640px) {
    .robnety-blank-wrap {
        width: min(100% - 24px, var(--robnety-content-width));
        margin-top: 24px;
        margin-bottom: 40px;
    }

    .robnety-post-nav {
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
        padding: 16px;
    }

    .robnety-nav-title {
        max-width: 120px;
    }
}

/* Roboto text + native Dashicons: do not replace icon glyph font. */
.single-services .dashicons,
.single-services .dashicons::before {
    font-family: dashicons !important;
    font-weight: 400 !important;
    font-style: normal !important;
    speak: never;
}

/* Keep service actions comfortably readable. */
.robnety-cta-button {
    font-size: 15px;
}
