/* Pakalpojumu lapu bloki esošās Diamond Group tēmas stilā. */
:root { --dgs-ink: #101F34; --dgs-blue: #449BE2; --dgs-link: #1C67AB; --dgs-sky: #63E1E3; --dgs-line: #E2E8F0; --dgs-soft: #F1F5F9; --dgs-muted: #556477; --dgs-ease: cubic-bezier(.22,.8,.24,1); }

/* Sadaļas konteiners: tāds pats platums kā esošajām pakalpojumu sadaļām */
:is(.wp-block-post-content, .entry-content, body) > .wp-block-group:is(.is-style-dgx-section, .is-style-dgx-section-muted, .is-style-dgx-answer, .is-style-dgx-price, .is-style-dgx-cta),
:is(.wp-block-post-content, .entry-content, body) > .dgx-tool { box-sizing: border-box; width: 100%; margin: 0 !important; padding: 3.5rem max(1rem, calc((100% - 56rem) / 2)); }
@media (min-width: 640px) { :is(.wp-block-post-content, .entry-content, body) > .wp-block-group:is(.is-style-dgx-section, .is-style-dgx-section-muted, .is-style-dgx-answer, .is-style-dgx-price, .is-style-dgx-cta), :is(.wp-block-post-content, .entry-content, body) > .dgx-tool { padding-left: max(1.5rem, calc((100% - 56rem) / 2)); padding-right: max(1.5rem, calc((100% - 56rem) / 2)); } }
.is-style-dgx-section-muted { background: var(--dgs-soft); }
[class*="is-style-dgx-"] > * + *, .dgx-tool-in > * + * { margin-top: 1rem; }
[class*="is-style-dgx-"] h2, .dgx-tool-title { color: var(--dgs-ink); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: .25rem; }
[class*="is-style-dgx-"] h3 { color: var(--dgs-ink); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
[class*="is-style-dgx-"] p, [class*="is-style-dgx-"] li { color: #334155; line-height: 1.7; }
[class*="is-style-dgx-"] a:not(.btn-primary):not(.btn-ghost):not(.wp-block-button__link) { color: var(--dgs-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Atbilde īsumā: pirmais, ko klients un Google redz */
.wp-block-group.is-style-dgx-answer { padding-top: 2.5rem; padding-bottom: 1rem; }
.is-style-dgx-answer > .wp-block-list, .is-style-dgx-answer > ul { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 1.4rem 1.5rem; list-style: none; border: 1px solid var(--dgs-line); border-left: 4px solid var(--dgs-blue); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px -24px rgba(16,31,52,.35); }
.is-style-dgx-answer li { margin: 0; padding-left: 0; }
.is-style-dgx-answer li strong { color: var(--dgs-ink); }
.is-style-dgx-answer h2 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--dgs-link); }
@media (min-width: 768px) { .is-style-dgx-answer > .wp-block-list, .is-style-dgx-answer > ul { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

/* Kartītes (Kam piemērots, ieguvumi) */
.wp-block-columns.is-style-dgx-cards { gap: 1rem; margin-top: 1.25rem; }
.is-style-dgx-cards > .wp-block-column { padding: 1.4rem; border: 1px solid var(--dgs-line); border-radius: 14px; background: #fff; transition: border-color .3s var(--dgs-ease), transform .3s var(--dgs-ease), box-shadow .3s var(--dgs-ease); }
.is-style-dgx-cards > .wp-block-column:hover { border-color: var(--dgs-blue); transform: translateY(-2px); box-shadow: 0 16px 34px -24px rgba(16,31,52,.45); }
.is-style-dgx-section-muted .is-style-dgx-cards > .wp-block-column { border-color: transparent; }
.is-style-dgx-cards > .wp-block-column > * + * { margin-top: .5rem; }
.is-style-dgx-cards h3::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: .8rem; border-radius: 4px; background: var(--dgs-sky); }

/* Process soļos */
ol.is-style-dgx-steps { counter-reset: dgs; list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0; }
ol.is-style-dgx-steps > li { counter-increment: dgs; position: relative; margin: 0; padding: 0 0 1.4rem 3.4rem; min-height: 2.6rem; }
ol.is-style-dgx-steps > li::before { content: counter(dgs); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--dgs-ink); color: #fff; font-weight: 700; font-size: .95rem; }
ol.is-style-dgx-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.2rem; top: 2.6rem; bottom: .3rem; width: 2px; background: linear-gradient(var(--dgs-blue), var(--dgs-line)); }
ol.is-style-dgx-steps > li strong { display: block; color: var(--dgs-ink); font-size: 1.05rem; }
@media (min-width: 960px) {
  ol.is-style-dgx-steps:not(:has(> li:nth-child(5))) { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.25rem; }
  ol.is-style-dgx-steps:not(:has(> li:nth-child(5))) > li { padding: 3.4rem 0 0 0; }
  ol.is-style-dgx-steps:not(:has(> li:nth-child(5))) > li:not(:last-child)::after { left: 2.9rem; right: -1rem; top: 1.2rem; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--dgs-blue), var(--dgs-line)); }
}

/* Saraksts ar atzīmēm */
ul.is-style-dgx-checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
ul.is-style-dgx-checks > li { position: relative; margin: 0; padding: .85rem 1rem .85rem 2.9rem; border: 1px solid var(--dgs-line); border-radius: 12px; background: #fff; }
ul.is-style-dgx-checks > li::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(68,155,226,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C67AB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat; }
@media (min-width: 768px) { ul.is-style-dgx-checks { grid-template-columns: 1fr 1fr; } }

/* Cena */
.wp-block-group.is-style-dgx-price { background: var(--dgs-soft); }
.is-style-dgx-price .dgx-price-box, .is-style-dgx-price > .wp-block-columns { margin-top: 1.25rem; }
.is-style-dgx-price .wp-block-column { padding: 1.5rem; border-radius: 16px; background: #fff; border: 1px solid var(--dgs-line); }
.is-style-dgx-price .wp-block-column.is-featured { background: var(--dgs-ink); border-color: var(--dgs-ink); }
.is-style-dgx-price .wp-block-column.is-featured :is(p, li, h3) { color: rgba(255,255,255,.86); }
.is-style-dgx-price .dgx-price-num { margin-top: .4rem; color: var(--dgs-ink); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.is-style-dgx-price .is-featured .dgx-price-num { color: var(--dgs-sky); }
.is-style-dgx-price .dgx-price-note { font-size: .9rem; color: var(--dgs-muted); }
.is-style-dgx-price .is-featured .dgx-price-note { color: rgba(255,255,255,.7); }

/* BUJ */
.wp-block-details.is-style-dgx-faq { margin: 0 !important; border-bottom: 1px solid var(--dgs-line); }
.is-style-dgx-section > .wp-block-details.is-style-dgx-faq:first-of-type, h2 + .wp-block-details.is-style-dgx-faq { border-top: 1px solid var(--dgs-line); margin-top: 1rem !important; }
.is-style-dgx-faq summary { position: relative; list-style: none; cursor: pointer; padding: 1.1rem 2.75rem 1.1rem 0; font-weight: 700; color: var(--dgs-ink); font-size: 1.05rem; line-height: 1.4; }
.is-style-dgx-faq summary::-webkit-details-marker { display: none; }
.is-style-dgx-faq summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; border-radius: 50%; background: var(--dgs-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101F34' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 55% no-repeat; transition: transform .35s var(--dgs-ease), background-color .35s; }
.is-style-dgx-faq[open] summary::after { transform: rotate(45deg); background-color: rgba(99,225,227,.35); }
.is-style-dgx-faq summary:hover { color: var(--dgs-link); }
.is-style-dgx-faq summary:focus-visible { outline: 2px solid var(--dgs-link); outline-offset: 2px; border-radius: 6px; }
.is-style-dgx-faq > :not(summary) { margin: 0; padding: 0 2.75rem 1.2rem 0; }

/* Saistītās saites */
ul.is-style-dgx-links { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
ul.is-style-dgx-links > li { position: relative; margin: 0; padding: 1.1rem 3rem 1.1rem 1.25rem; border: 1px solid var(--dgs-line); border-radius: 14px; background: #fff; color: var(--dgs-muted); font-size: .95rem; transition: border-color .3s var(--dgs-ease), box-shadow .3s var(--dgs-ease); }
ul.is-style-dgx-links > li:hover { border-color: var(--dgs-blue); box-shadow: 0 14px 30px -22px rgba(16,31,52,.45); }
ul.is-style-dgx-links > li > a { display: block; margin-bottom: .2rem; color: var(--dgs-ink) !important; text-decoration: none !important; font-size: 1.05rem; }
ul.is-style-dgx-links > li > a::after { content: ""; position: absolute; inset: 0; }
ul.is-style-dgx-links > li::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.3rem; border-top: 2px solid var(--dgs-link); border-right: 2px solid var(--dgs-link); transform: rotate(45deg); transition: right .3s var(--dgs-ease); }
ul.is-style-dgx-links > li:hover::after { right: .95rem; }
@media (min-width: 768px) { ul.is-style-dgx-links { grid-template-columns: repeat(3, 1fr); } }

/* Darbu galerija */
.wp-block-gallery.is-style-dgx-work { gap: 1rem !important; margin-top: 1.25rem; }
.is-style-dgx-work .wp-block-image { overflow: hidden; border-radius: 14px; border: 1px solid var(--dgs-line); background: #fff; }
.is-style-dgx-work .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 55%; transition: transform .6s var(--dgs-ease); }
.is-style-dgx-work .wp-block-image:hover img { transform: scale(1.03); }
.is-style-dgx-work figcaption { position: static !important; background: #fff !important; color: var(--dgs-ink) !important; font-weight: 600; text-align: left !important; padding: .7rem .9rem !important; font-size: .9rem !important; }
.is-style-dgx-work figcaption a { color: var(--dgs-link) !important; }

/* Aicinājums */
.wp-block-group.is-style-dgx-cta { background: var(--dgs-ink); }
.is-style-dgx-cta :is(h2, p) { color: #fff; }
.is-style-dgx-cta p { color: rgba(255,255,255,.8); }

/* ---------- Rīki ---------- */
.dgx-tool { background: var(--dgs-ink); color: #fff; }
.dgx-tool .dgx-tool-title { color: #fff; }
.dgx-tool-text { color: rgba(255,255,255,.78); max-width: 42rem; line-height: 1.7; }
.dgx-speed-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.dgx-speed-form input, .dgx-serp input, .dgx-serp textarea { flex: 1 1 260px; min-height: 52px; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 1rem; }
.dgx-speed-form input::placeholder { color: rgba(255,255,255,.55); }
.dgx-speed-form input:focus, .dgx-serp input:focus, .dgx-serp textarea:focus { outline: none; border-color: var(--dgs-sky); box-shadow: 0 0 0 3px rgba(99,225,227,.25); }
.dgx-speed-form .btn-primary, .dgx-tool .btn-primary { min-height: 52px; background: var(--dgs-sky) !important; color: var(--dgs-ink) !important; }
.dgx-speed-status { min-height: 1.5rem; margin-top: .8rem; color: var(--dgs-sky); font-size: .95rem; }
.dgx-speed.is-loading .dgx-speed-status::before { content: ""; display: inline-block; width: .9rem; height: .9rem; margin-right: .5rem; vertical-align: -.1rem; border: 2px solid var(--dgs-sky); border-right-color: transparent; border-radius: 50%; animation: dgs-spin .8s linear infinite; }
@keyframes dgs-spin { to { transform: rotate(360deg); } }
.dgx-speed-res { margin-top: 1.4rem; padding: 1.5rem; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); animation: dgs-in .6s var(--dgs-ease) both; }
@keyframes dgs-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dgx-gauges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .dgx-gauges { grid-template-columns: repeat(4, 1fr); } }
.dgx-gauge { position: relative; display: grid; justify-items: center; gap: .4rem; text-align: center; }
.dgx-gauge svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.dgx-g-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 3.2; }
.dgx-g-fg { fill: none; stroke: var(--g, #63E1E3); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--dgs-ease); }
.dgx-gauge b { position: absolute; top: 31px; left: 0; right: 0; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.dgx-gauge span { font-size: .875rem; color: rgba(255,255,255,.75); }
.dgx-metrics { display: grid; gap: .6rem; margin: 1.4rem 0 0; }
.dgx-metrics div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-radius: 10px; background: rgba(255,255,255,.05); }
.dgx-metrics dt { color: rgba(255,255,255,.75); }
.dgx-metrics dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .dgx-metrics { grid-template-columns: 1fr 1fr; } }
.dgx-tool-note { margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.dgx-speed-cta { margin-top: 1.2rem; display: inline-flex; }

.dgx-serp-grid { display: grid; gap: 1.5rem; margin-top: 1.4rem; }
@media (min-width: 900px) { .dgx-serp-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.dgx-serp-fields { display: grid; gap: .35rem; }
.dgx-serp-fields label { margin-top: .6rem; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.85); }
.dgx-serp textarea { resize: vertical; min-height: 96px; }
.dgx-meter { margin: 0; font-size: .8rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: .6rem; }
.dgx-meter i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.dgx-meter i::before { content: ""; display: block; height: 100%; width: var(--w, 0%); background: var(--c, #63E1E3); transition: width .35s var(--dgs-ease), background-color .35s; }
.dgx-serp-card { margin: 0; padding: 1.25rem 1.4rem; border-radius: 16px; background: #fff; color: #202124; font-family: Arial, Helvetica, sans-serif; box-shadow: 0 24px 50px -28px rgba(0,0,0,.6); }
.dgx-serp-card figcaption { margin-bottom: .9rem; font-family: Inter, system-ui, sans-serif; font-size: .75rem; font-weight: 600; color: #5f6368; }
.dgx-g-site { display: flex; align-items: center; gap: .65rem; }
.dgx-g-fav { width: 28px; height: 28px; border-radius: 50%; background: #F1F3F4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E") center / 60% no-repeat; }
.dgx-g-site b { display: block; font-size: 14px; font-weight: 400; color: #202124; }
.dgx-g-site small { display: block; font-size: 12px; color: #4d5156; }
.dgx-g-title { margin: .5rem 0 .2rem !important; color: #1a0dab !important; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.dgx-g-desc { margin: 0 !important; color: #4d5156 !important; font-size: 14px; line-height: 1.58; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { .dgx-tool *, [class*="is-style-dgx-"] * { transition: none !important; animation: none !important; } }

.wp-block-gallery.is-style-dgx-work { display: grid !important; grid-template-columns: 1fr; }
.wp-block-gallery.is-style-dgx-work > .wp-block-image { width: auto !important; margin: 0 !important; }
@media (min-width: 640px) { .wp-block-gallery.is-style-dgx-work { grid-template-columns: 1fr 1fr; } }
.is-style-dgx-section > .wp-block-group { margin-top: 0; }

/* Kalkulatori */
.dgx-calc-grid { display: grid; gap: 1.5rem; margin-top: 1.4rem; }
@media (min-width: 900px) { .dgx-calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.dgx-calc-fields { display: grid; gap: .35rem; }
.dgx-calc-fields label { margin-top: .6rem; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.85); }
.dgx-calc-fields input { min-height: 52px; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 1.05rem; }
.dgx-calc-fields input::placeholder { color: rgba(255,255,255,.5); }
.dgx-calc-fields input:focus { outline: none; border-color: var(--dgs-sky); box-shadow: 0 0 0 3px rgba(99,225,227,.25); }
.dgx-calc-out { display: grid; gap: .75rem; margin: 0; }
.dgx-calc-out div { padding: 1.1rem 1.25rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.dgx-calc-out div:last-child { background: rgba(99,225,227,.12); border-color: rgba(99,225,227,.45); }
.dgx-calc-out dt { color: rgba(255,255,255,.75); font-size: .9rem; }
.dgx-calc-out dd { margin: .2rem 0 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.dgx-calc-out div:last-child dd { color: var(--dgs-sky); }
.dgx-calc-out dd.is-pop { animation: dgs-pop .45s var(--dgs-ease); }
@keyframes dgs-pop { 0% { transform: translateY(4px); opacity: .5; } 100% { transform: none; opacity: 1; } }

/* Raksti: bildes un saraksti raksta tekstā */
.is-style-dgx-section figure.dgx-article-img { margin: 2rem 0 !important; }
.is-style-dgx-section figure.dgx-article-img img { width: 100%; height: auto; max-height: 30rem; object-fit: cover; border-radius: 14px; border: 1px solid var(--dgs-line); }
.is-style-dgx-section figure.dgx-article-img figcaption { color: var(--dgs-muted); font-size: .9rem; margin-top: .6rem; text-align: left; }
.is-style-dgx-section > ul.wp-block-list { padding-left: 1.25rem; list-style: disc; }
.is-style-dgx-section > ul.wp-block-list li + li { margin-top: .4rem; }
.is-style-dgx-section > h2 { margin-top: 2.25rem; }

/* Raksta galvene: atpakaļ saite atsevišķā rindā no kategorijas */
section.bg-maastricht > .max-w-3xl > a.inline-flex:first-child { display: flex; width: max-content; }
