/*
Theme Name: DS-GO.PRO
Theme URI: https://dsgo.pro/
Author: DS-GO
Description: Лёгкая тема лендинга DS-GO.PRO (RU / EN / UA, Polylang). Контент редактируется блоками Gutenberg.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: dsgo
*/

/* ---------- Fonts ---------- */
@font-face { font-family: "Bebas Neue"; src: url("assets/fonts/BebasNeueRegular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("assets/fonts/BebasNeueBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--dsgo-teal: #10b9a7;
	--dsgo-teal-dark: #0e766c;
	--dsgo-teal-deep: #08463f;
	--dsgo-red: #d41016;
	--dsgo-blue: #36a3dc;
	--dsgo-ink: #1f2328;
	--dsgo-text: #3b4148;
	--dsgo-muted: #6b7280;
	--dsgo-line: #e5e7eb;
	--dsgo-grey: #f4f5f5;
	--dsgo-footer: #2b3138;
	--dsgo-radius: 14px;
	--dsgo-shadow: 0 10px 30px rgba(16, 24, 40, .08);
	--dsgo-max: 1140px;
	--dsgo-header-h: 72px;
	--dsgo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--dsgo-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--dsgo-header-h) + 12px); }
body { margin: 0; font-family: var(--dsgo-font); font-size: 17px; line-height: 1.6; color: var(--dsgo-text); background: #fff; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--dsgo-teal-dark); }
a:hover { color: var(--dsgo-teal); }
h1, h2, h3, h4 { color: var(--dsgo-ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 8px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 3px solid var(--dsgo-blue); outline-offset: 2px; }

.dsgo-wrap { max-width: var(--dsgo-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--dsgo-line); box-shadow: 0 4px 18px rgba(0, 0, 0, .05); }
.site-header__inner { height: var(--dsgo-header-h); display: flex; align-items: center; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.site-logo { font-family: var(--dsgo-display); font-size: 32px; letter-spacing: 1px; color: var(--dsgo-ink); text-decoration: none; line-height: 1; white-space: nowrap; }
.site-logo span { color: var(--dsgo-teal); }
.site-logo:hover { color: var(--dsgo-ink); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav a { color: var(--dsgo-ink); text-decoration: none; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.site-nav a:hover { color: var(--dsgo-teal); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-pro { display: inline-block; background: var(--dsgo-teal); color: #fff !important; text-decoration: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s; }
.btn-pro:hover { background: var(--dsgo-teal-dark); }
.lang-switch { list-style: none; display: flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--dsgo-line); border-radius: 999px; }
.lang-switch a, .lang-switch span { display: block; padding: 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--dsgo-muted); text-transform: uppercase; }
.lang-switch .is-current span { background: var(--dsgo-ink); color: #fff; }
.lang-switch a:hover { color: var(--dsgo-teal-dark); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--dsgo-ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.burger { display: block; order: 3; }
	.site-nav { position: fixed; inset: var(--dsgo-header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--dsgo-line); padding: 12px 24px 24px; display: none; margin: 0; }
	.nav-open .site-nav { display: block; }
	.site-nav ul { flex-direction: column; gap: 4px; }
	.site-nav a { display: block; padding: 10px 0; font-size: 17px; }
	.header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
	.site-header__inner { gap: 12px; padding: 0 16px; }
	.site-logo { font-size: 26px; }
	.btn-pro { padding: 8px 14px; font-size: 14px; }
	.lang-switch a, .lang-switch span { padding: 3px 7px; }
}

/* ---------- Content layout ---------- */
.site-main { min-height: 50vh; }
.entry-content > * { max-width: var(--dsgo-max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry-content .alignfull > * { max-width: var(--dsgo-max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.entry-content .alignfull > .alignfull { max-width: none; }

/* Sections */
.dsgo-section { padding: 88px 0; }
.dsgo-section.is-grey { background: var(--dsgo-grey); }
.dsgo-section.is-dark { background: var(--dsgo-teal-deep); color: #d9f3ef; }
.dsgo-section.is-dark h2, .dsgo-section.is-dark h3 { color: #fff; }
.dsgo-section + .dsgo-section.is-grey, .dsgo-section.is-grey + .dsgo-section { border-top: 0; }
@media (max-width: 760px) { .dsgo-section { padding: 60px 0; } }

.dsgo-title { font-size: clamp(28px, 4vw, 42px); text-align: center; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px; }
.dsgo-title::after { content: ""; display: block; width: 44px; height: 3px; background: var(--dsgo-red); margin: 20px auto 0; border-radius: 2px; }
.dsgo-lead { text-align: center; font-size: 19px; color: var(--dsgo-muted); max-width: 760px !important; margin: 0 auto 48px !important; }
.dsgo-title + .dsgo-grid, .dsgo-title + .dsgo-showcase, .dsgo-title + .wp-block-media-text { margin-top: 48px; }

/* ---------- Hero ---------- */
.dsgo-hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 130px 0 120px; background: linear-gradient(120deg, #0a544d 0%, #0e8a7d 35%, #10b9a7 60%, #0b6a61 100%); background-size: 220% 220%; animation: dsgo-gradient 18s ease-in-out infinite alternate; }
.dsgo-hero > :not(.dsgo-hero__fx) { position: relative; z-index: 1; }
@keyframes dsgo-gradient { 0% { background-position: 0% 30%; } 100% { background-position: 100% 70%; } }

/* Плавающие «пузыри» и кольцо — анимированный фон шапки */
.dsgo-hero__fx { position: absolute !important; inset: 0; max-width: none !important; margin: 0 !important; padding: 0 !important; pointer-events: none; overflow: hidden; transform: translateY(calc(var(--sy, 0) * .25px)); }
.dsgo-hero__fx i { position: absolute; display: block; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 60%, transparent 70%); animation: dsgo-float var(--d, 14s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.dsgo-hero__fx i:nth-child(1) { width: 460px; height: 460px; left: -140px; bottom: -200px; --d: 20s; }
.dsgo-hero__fx i:nth-child(2) { width: 180px; height: 180px; left: 12%; top: 14%; --d: 16s; --delay: -4s; }
.dsgo-hero__fx i:nth-child(3) { width: 90px; height: 90px; left: 30%; bottom: 12%; --d: 12s; --delay: -2s; }
.dsgo-hero__fx i:nth-child(4) { width: 260px; height: 260px; right: 18%; bottom: -90px; --d: 18s; --delay: -8s; }
.dsgo-hero__fx i:nth-child(5) { width: 120px; height: 120px; right: 6%; top: 52%; --d: 13s; --delay: -6s; }
.dsgo-hero__fx i:nth-child(6) { width: 14px; height: 14px; left: 22%; top: 30%; background: #fff; opacity: .7; --d: 9s; }
.dsgo-hero__fx i:nth-child(7) { width: 10px; height: 10px; right: 26%; top: 22%; background: #fff; opacity: .6; --d: 11s; --delay: -3s; }
.dsgo-hero__fx i:nth-child(8) { width: 16px; height: 16px; right: 12%; bottom: 26%; background: #ffd54a; opacity: .9; --d: 10s; --delay: -5s; }
.dsgo-hero__fx i:nth-child(9) { width: 8px; height: 8px; left: 8%; bottom: 30%; background: #fff; opacity: .6; --d: 8s; }
.dsgo-hero__fx b { position: absolute; right: 8%; top: 14%; width: 280px; height: 280px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .28); animation: dsgo-ring 9s ease-in-out infinite; }
.dsgo-hero__fx b::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .35), rgba(16, 185, 167, .15)); box-shadow: 0 0 40px rgba(159, 240, 230, .35); }
@keyframes dsgo-float { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(24px, -36px, 0) scale(1.06); } }
@keyframes dsgo-ring { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
@media (max-width: 760px) { .dsgo-hero__fx b { width: 160px; height: 160px; right: -40px; top: 6%; } .dsgo-hero__fx i:nth-child(1) { width: 300px; height: 300px; } }
@media (prefers-reduced-motion: reduce) { .dsgo-hero, .dsgo-hero__fx i, .dsgo-hero__fx b { animation: none; } .dsgo-hero__fx { transform: none; } }
.dsgo-hero h1 { font-family: var(--dsgo-display); font-weight: 400; font-size: clamp(54px, 9vw, 112px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; margin: 0 auto 26px; max-width: 1000px; text-wrap: balance; background: linear-gradient(45deg, #fff 35%, #9ff0e6 70%, #cfdcff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dsgo-hero p { font-size: clamp(17px, 2vw, 21px); color: rgba(255, 255, 255, .9); max-width: 760px !important; margin: 0 auto 36px; }
.dsgo-hero .wp-block-buttons { justify-content: center; position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.dsgo-cta { justify-content: center; margin-top: 44px; }
.entry-content .wp-block-button__link { display: inline-block; background: var(--dsgo-red); color: #fff; border: 2px solid var(--dsgo-red); border-radius: 999px; padding: 14px 30px; font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: .02em; transition: transform .15s, background .2s, color .2s; }
.entry-content .wp-block-button__link:hover { transform: translateY(-1px); background: #b30d12; border-color: #b30d12; color: #fff; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--dsgo-red); }
.entry-content .is-style-outline .wp-block-button__link:hover { background: var(--dsgo-red); color: #fff; }
.dsgo-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .85); }
.dsgo-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--dsgo-teal-dark); border-color: #fff; }
.entry-content .is-style-teal .wp-block-button__link { background: var(--dsgo-teal); border-color: var(--dsgo-teal); }
.entry-content .is-style-teal .wp-block-button__link:hover { background: var(--dsgo-teal-dark); border-color: var(--dsgo-teal-dark); }

/* ---------- Stats ---------- */
.dsgo-stats { list-style: none; padding: 0; max-width: 820px !important; display: grid; gap: 22px; }
.dsgo-stat__label { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--dsgo-ink); margin-bottom: 8px; }
.dsgo-stat__value { color: var(--dsgo-teal-dark); font-variant-numeric: tabular-nums; }
.dsgo-stat__bar { height: 8px; border-radius: 999px; background: #dfe7e6; overflow: hidden; }
.dsgo-stat__bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--dsgo-teal-dark), var(--dsgo-teal)); transform-origin: left; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.js .dsgo-stats:not(.is-visible) .dsgo-stat__bar i { transform: scaleX(0); }

/* ---------- Grids & cards ---------- */
.entry-content .dsgo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.entry-content .dsgo-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.entry-content .dsgo-showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.entry-content .dsgo-contacts { grid-template-columns: 1fr 1.2fr; gap: 48px; }
.entry-content #content-production .dsgo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.entry-content .dsgo-grid > *, .entry-content .dsgo-features > *, .entry-content .dsgo-showcase > *, .entry-content .dsgo-contacts > * { margin: 0; }
@media (max-width: 900px) {
	.entry-content .dsgo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.entry-content .dsgo-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.entry-content .dsgo-contacts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.entry-content .dsgo-grid, .entry-content .dsgo-features, .entry-content #content-production .dsgo-grid { grid-template-columns: 1fr; }
}
.dsgo-card { background: #fff; border: 1px solid var(--dsgo-line); border-radius: var(--dsgo-radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.dsgo-card:hover { box-shadow: var(--dsgo-shadow); transform: translateY(-2px); }
.is-grey .dsgo-card { border-color: transparent; }
.dsgo-card h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; }
.dsgo-card h3::after { content: ""; display: block; width: 28px; height: 3px; background: var(--dsgo-red); margin-top: 12px; border-radius: 2px; }
.dsgo-card p { margin: 0; color: var(--dsgo-muted); }
.dsgo-card .wp-block-image { margin: 0 0 18px; }
.dsgo-card .wp-block-image img { width: 52px; height: 52px; object-fit: contain; }
.dsgo-card.is-device .wp-block-image { margin: 18px 0 0; }
.dsgo-card.is-device .wp-block-image img { width: 100%; height: 200px; object-fit: contain; }
.dsgo-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--dsgo-muted); }
.dsgo-card li { margin-bottom: 4px; }

/* ---------- Showcase ---------- */
.dsgo-showcase .wp-block-image { margin: 0; position: relative; border-radius: var(--dsgo-radius); overflow: hidden; }
.dsgo-showcase .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.dsgo-showcase .wp-block-image:hover img { transform: scale(1.04); }
.dsgo-showcase figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 12px; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: left; }

/* ---------- Media & text (tasks) ---------- */
.entry-content .wp-block-media-text { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; margin-top: 28px; margin-bottom: 28px; }
.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.wp-block-media-text__media { margin: 0; }
.wp-block-media-text__media img, .wp-block-media-text__media video { width: 100%; border-radius: var(--dsgo-radius); box-shadow: var(--dsgo-shadow); background: #fff; }
.dsgo-task .wp-block-media-text__media img, .dsgo-task .wp-block-media-text__media video { box-shadow: none; background: transparent; }
.dsgo-task .wp-block-media-text__media img { box-shadow: var(--dsgo-shadow); }
.wp-block-media-text__content h3 { font-size: 26px; color: var(--dsgo-teal-dark); text-transform: uppercase; letter-spacing: .02em; }
.wp-block-media-text__content h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--dsgo-red); margin-top: 14px; border-radius: 2px; }
.wp-block-media-text__content p { font-size: 18px; }
@media (max-width: 760px) {
	.entry-content .wp-block-media-text { grid-template-columns: 1fr; gap: 20px; }
	.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; }
}

/* ---------- Features & FAQ (details) ---------- */
.dsgo-features { align-items: start; }
.entry-content .wp-block-details { background: #fff; border: 1px solid var(--dsgo-line); border-radius: 12px; padding: 0; }
.entry-content .wp-block-details > summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; color: var(--dsgo-ink); position: relative; }
.entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--dsgo-teal); transition: transform .2s; }
.entry-content .wp-block-details[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.entry-content .wp-block-details > :not(summary) { padding: 0 20px; color: var(--dsgo-muted); }
.entry-content .wp-block-details > :last-child:not(summary) { padding-bottom: 18px; margin-bottom: 0; }
.entry-content .dsgo-feature { background: #fff; border: 1px solid var(--dsgo-line); border-radius: 12px; padding: 16px 20px; font-weight: 600; color: var(--dsgo-ink); margin: 0; }
.dsgo-card.is-compact { padding: 20px 24px; }
.dsgo-card.is-compact p { color: var(--dsgo-text); }
.dsgo-faq { display: grid; gap: 12px; max-width: 860px !important; }
.dsgo-centered-img img { margin: 0 auto; }
.dsgo-centered-img { margin-top: 40px; }

/* ---------- Player block ---------- */
.entry-content .dsgo-player-intro { margin-top: 48px !important; margin-bottom: 32px !important; }
.dsgo-player { background: #fff; border-radius: var(--dsgo-radius); padding: 32px; box-shadow: var(--dsgo-shadow); }
.dsgo-player .wp-block-media-text__media img { box-shadow: none; }
.dsgo-player ul { columns: 2; column-gap: 28px; padding-left: 18px; }
@media (max-width: 600px) { .dsgo-player ul { columns: 1; } }
.dsgo-price { font-size: 18px; color: var(--dsgo-ink); }
.dsgo-price strong:last-child { color: var(--dsgo-red); font-size: 22px; }

/* ---------- Contacts ---------- */
.dsgo-contacts { align-items: start; }
.dsgo-contacts > .wp-block-group h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--dsgo-muted); margin: 26px 0 6px; }
.dsgo-contacts > .wp-block-group h3:first-child { margin-top: 0; }
.dsgo-contacts > .wp-block-group p a { font-size: 22px; font-weight: 600; text-decoration: none; }

/* ---------- Forms ---------- */
.dsgo-form { background: #fff; border-radius: var(--dsgo-radius); padding: 30px; box-shadow: var(--dsgo-shadow); }
.is-grey .dsgo-form { box-shadow: none; }
.dsgo-form h3 { font-size: 21px; line-height: 1.3; margin: 0 0 18px; padding-right: 30px; text-transform: none; letter-spacing: 0; color: var(--dsgo-ink); }
.dsgo-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .dsgo-form__row { grid-template-columns: 1fr; } }
.dsgo-field { margin-bottom: 14px; }
.dsgo-field label { display: block; font-size: 14px; font-weight: 600; color: var(--dsgo-ink); margin-bottom: 6px; }
.dsgo-field input, .dsgo-field select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: var(--dsgo-ink); }
.dsgo-field input:focus, .dsgo-field select:focus { outline: 0; border-color: var(--dsgo-teal); box-shadow: 0 0 0 3px rgba(16, 185, 167, .2); }
.dsgo-hp { position: absolute !important; left: -9999px !important; }
.dsgo-form button { width: 100%; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--dsgo-red); border: 0; border-radius: 999px; padding: 15px 20px; cursor: pointer; margin-top: 6px; }
.dsgo-form button:hover { background: #b30d12; }
.dsgo-form button[disabled] { opacity: .6; cursor: wait; }
.dsgo-form__help { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--dsgo-muted); }
.dsgo-form__help li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.dsgo-form__help li::before { content: "✓"; position: absolute; left: 0; color: var(--dsgo-teal); font-weight: 700; }
.dsgo-form__consent { font-size: 13px; color: var(--dsgo-muted); margin: 14px 0 0; }
.dsgo-form__msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 600; display: none; }
.dsgo-form__msg.is-ok { display: block; background: #e6f7f4; color: var(--dsgo-teal-dark); }
.dsgo-form__msg.is-err { display: block; background: #fdecec; color: #a30d12; }

/* Modal */
.dsgo-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 32, .6); }
.dsgo-modal.is-open { display: flex; }
.dsgo-modal__box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; }
.dsgo-modal__close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; background: var(--dsgo-grey); border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; color: var(--dsgo-ink); z-index: 1; }
body.modal-open { overflow: hidden; }

/* ---------- Legal / inner pages ---------- */
.page-header { background: var(--dsgo-grey); padding: 56px 0 40px; }
.page-header h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 auto; max-width: var(--dsgo-max); padding: 0 24px; }
.is-legal .page-header h1 { max-width: 860px; }
.is-legal .entry-content { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.is-legal .entry-content > * { padding-left: 0; padding-right: 0; }
.is-legal .entry-content h2, .is-legal .entry-content h3 { margin-top: 1.6em; }
.is-legal .entry-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.is-legal .entry-content td, .is-legal .entry-content th { border: 1px solid var(--dsgo-line); padding: 8px 10px; vertical-align: top; }
.dsgo-delete-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.dsgo-delete-form input[type=email] { flex: 1 1 260px; font: inherit; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; }
.dsgo-delete-form button { font: inherit; font-weight: 700; color: #fff; background: var(--dsgo-red); border: 0; border-radius: 999px; padding: 12px 28px; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dsgo-footer); color: #c5cbd3; font-size: 15px; padding: 56px 0 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--dsgo-teal); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .site-logo { color: #fff; font-size: 30px; }
.site-footer__about { margin-top: 12px; max-width: 320px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #8b939d; }

/* Cookie bar */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 760px; margin: 0 auto; background: #fff; color: var(--dsgo-text); border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding: 16px 20px; display: none; align-items: center; gap: 18px; font-size: 14px; }
.cookie-bar.is-visible { display: flex; }
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar button { font: inherit; font-weight: 700; background: var(--dsgo-teal); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; white-space: nowrap; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .dsgo-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
	.js .dsgo-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dsgo-stat__bar i { transition: none; } }

/* 404 */
.dsgo-404 { text-align: center; padding: 120px 24px; }
.dsgo-404 h1 { font-family: var(--dsgo-display); font-size: 120px; color: var(--dsgo-teal); margin: 0; }

/* Ровная сетка возможностей: у всех строк одинаковая высота (до 2 строк текста), текст по центру */
.dsgo-features > .wp-block-details > summary,
.entry-content .dsgo-features > .dsgo-feature { min-height: 86px; display: flex; align-items: center; }
.entry-content .dsgo-features > .dsgo-feature { padding-right: 48px; }

/* Выделенная карточка: уведомления о состоянии */
.entry-content .dsgo-card.is-featured { position: relative; margin-top: 48px !important; margin-bottom: 24px !important; padding: 32px 36px 32px 108px; border: 0; background: linear-gradient(135deg, var(--dsgo-teal-deep), var(--dsgo-teal-dark)); color: #d9f3ef; }
.dsgo-card.is-featured::before { content: ""; position: absolute; left: 36px; top: 34px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / 24px no-repeat; }
.dsgo-card.is-featured h3 { color: #fff; font-size: 22px; }
.dsgo-card.is-featured p, .dsgo-card.is-featured ul { color: #d9f3ef; }
.dsgo-card.is-featured:hover { transform: none; }
.dsgo-card ul li::marker { color: var(--dsgo-teal); }
@media (max-width: 640px) { .entry-content .dsgo-card.is-featured { padding: 96px 24px 28px; } .dsgo-card.is-featured::before { left: 24px; top: 28px; } }
.entry-content .alignfull > .dsgo-card.is-featured { max-width: calc(var(--dsgo-max) - 48px); }

/* Акцент на тёмной карточке: светло-бирюзовая полоска + красная «точка уведомления» на колокольчике */
.dsgo-card.is-featured h3::after { background: #7ff3e3; width: 36px; }
.dsgo-card.is-featured::after { content: ""; position: absolute; left: 70px; top: 34px; width: 12px; height: 12px; border-radius: 50%; background: var(--dsgo-red); box-shadow: 0 0 0 3px var(--dsgo-teal-deep); }
@media (prefers-reduced-motion: no-preference) {
	.dsgo-card.is-featured::after { animation: dsgo-ping 2.4s ease-out infinite; }
	@keyframes dsgo-ping { 0%, 70%, 100% { box-shadow: 0 0 0 3px var(--dsgo-teal-deep), 0 0 0 3px rgba(212, 16, 22, .5); } 35% { box-shadow: 0 0 0 3px var(--dsgo-teal-deep), 0 0 0 10px rgba(212, 16, 22, 0); } }
}
@media (max-width: 640px) { .dsgo-card.is-featured::after { left: 58px; top: 28px; } }


/* ---------- Фон секций ---------- */
.dsgo-section { background: #fff; }
.dsgo-section.is-grey { background: var(--dsgo-grey); }

/* ---------- Наезд выбранных разделов (класс dsgo-overlap) ----------
   Предыдущий раздел дочитывается до конца, затем останавливается (sticky, нижним краем у низа экрана),
   а раздел dsgo-overlap выезжает поверх «листом». Прокрутка обычная, без автодоводки. */
.dsgo-overlap-on .entry-content > .dsgo-section, .dsgo-overlap-on .entry-content > .dsgo-hero, .dsgo-pair > .dsgo-section { position: relative; }
.entry-content > .dsgo-pair { max-width: none; padding: 0; margin: 0; }
.dsgo-pair > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.dsgo-overlap-on .dsgo-pair > .is-pinned { position: sticky; top: var(--stick, 0px); }
.dsgo-overlap-on .dsgo-pair > .is-pinned::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0b1f1d; opacity: calc(var(--cover, 0) * .22); pointer-events: none; z-index: 5; }
.dsgo-overlap-on .dsgo-pair > .dsgo-overlap { border-radius: 32px 32px 0 0; box-shadow: 0 -18px 40px rgba(16, 24, 40, .10); margin-top: -32px !important; border-top: 0 !important; }
.dsgo-overlap-on .site-footer { position: relative; z-index: 60; }
@media (max-width: 760px) { .dsgo-overlap-on .dsgo-pair > .dsgo-overlap { border-radius: 22px 22px 0 0; margin-top: -22px !important; } }

/* Два белых раздела подряд — тонкая линия между ними, чтобы не сливались */
.entry-content > .dsgo-section:not(.is-grey):not(.is-dark) + .dsgo-section:not(.is-grey):not(.is-dark),
.dsgo-pair > .dsgo-section:not(.is-grey):not(.is-dark) + .dsgo-section:not(.is-grey):not(.is-dark) { border-top: 1px solid var(--dsgo-line); }

/* Выделенная карточка: уведомления о состоянии */
.entry-content .dsgo-card.is-featured { position: relative; margin-top: 48px !important; margin-bottom: 24px !important; padding: 32px 36px 32px 108px; border: 0; background: linear-gradient(135deg, var(--dsgo-teal-deep), var(--dsgo-teal-dark)); color: #d9f3ef; }
.dsgo-card.is-featured::before { content: ""; position: absolute; left: 36px; top: 34px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / 24px no-repeat; }
.dsgo-card.is-featured h3 { color: #fff; font-size: 22px; }
.dsgo-card.is-featured p, .dsgo-card.is-featured ul { color: #d9f3ef; }
.dsgo-card.is-featured:hover { transform: none; }
.dsgo-card ul li::marker { color: var(--dsgo-teal); }
@media (max-width: 640px) { .entry-content .dsgo-card.is-featured { padding: 96px 24px 28px; } .dsgo-card.is-featured::before { left: 24px; top: 28px; } }
.entry-content .alignfull > .dsgo-card.is-featured { max-width: calc(var(--dsgo-max) - 48px); }

/* Акцент на тёмной карточке: светло-бирюзовая полоска + красная «точка уведомления» на колокольчике */
.dsgo-card.is-featured h3::after { background: #7ff3e3; width: 36px; }
.dsgo-card.is-featured::after { content: ""; position: absolute; left: 70px; top: 34px; width: 12px; height: 12px; border-radius: 50%; background: var(--dsgo-red); box-shadow: 0 0 0 3px var(--dsgo-teal-deep); }
@media (prefers-reduced-motion: no-preference) {
	.dsgo-card.is-featured::after { animation: dsgo-ping 2.4s ease-out infinite; }
	@keyframes dsgo-ping { 0%, 70%, 100% { box-shadow: 0 0 0 3px var(--dsgo-teal-deep), 0 0 0 3px rgba(212, 16, 22, .5); } 35% { box-shadow: 0 0 0 3px var(--dsgo-teal-deep), 0 0 0 10px rgba(212, 16, 22, 0); } }
}
@media (max-width: 640px) { .dsgo-card.is-featured::after { left: 58px; top: 28px; } }


/* ---------- Фон секций ---------- */
.dsgo-section { background: #fff; }
.dsgo-section.is-grey { background: var(--dsgo-grey); }


/* Выделенная карточка: уведомления о состоянии */
.entry-content .dsgo-card.is-featured { position: relative; margin-top: 48px !important; margin-bottom: 24px !important; padding: 32px 36px 32px 108px; border: 0; background: linear-gradient(135deg, var(--dsgo-teal-deep), var(--dsgo-teal-dark)); color: #d9f3ef; }
.dsgo-card.is-featured::before { content: ""; position: absolute; left: 36px; top: 34px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / 24px no-repeat; }
.dsgo-card.is-featured h3 { color: #fff; font-size: 22px; }
.dsgo-card.is-featured p, .dsgo-card.is-featured ul { color: #d9f3ef; }
.dsgo-card.is-featured:hover { transform: none; }
.dsgo-card ul li::marker { color: var(--dsgo-teal); }
@media (max-width: 640px) { .entry-content .dsgo-card.is-featured { padding: 96px 24px 28px; } .dsgo-card.is-featured::before { left: 24px; top: 28px; } }
.entry-content .alignfull > .dsgo-card.is-featured { max-width: calc(var(--dsgo-max) - 48px); }

/* Акцент на тёмной карточке: светло-бирюзовая полоска + красная «точка уведомления» на колокольчике */
.dsgo-card.is-featured h3::after { background: #7ff3e3; width: 36px; }
.dsgo-card.is-featured::after { content: ""; position: absolute; left: 70px; top: 34px; width: 12px; height: 12px; border-radius: 50%; background: var(--dsgo-red); box-shadow: 0 0 0 3px var(--dsgo-teal-deep); }
@media (prefers-reduced-motion: no-preference) {
	.dsgo-card.is-featured::after { animation: dsgo-ping 2.4s ease-out infinite; }
	@keyframes dsgo-ping { 0%, 70%, 100% { box-shadow: 0 0 0 3px var(--dsgo-teal-deep), 0 0 0 3px rgba(212, 16, 22, .5); } 35% { box-shadow: 0 0 0 3px var(--dsgo-teal-deep), 0 0 0 10px rgba(212, 16, 22, 0); } }
}
@media (max-width: 640px) { .dsgo-card.is-featured::after { left: 58px; top: 28px; } }



/* Отступ снизу у разделов, на которые наезжает следующий */
.dsgo-overlap-on .dsgo-pair > .is-pinned { padding-bottom: 150px; }
@media (max-width: 760px) { .dsgo-overlap-on .dsgo-pair > .is-pinned { padding-bottom: 110px; } }

/* Полоса с кнопкой YouTube в конце раздела — разрыв перед следующим разделом */
.entry-content .dsgo-band { background: linear-gradient(120deg, #0a544d, #10b9a7); padding: 44px 24px !important; margin-top: 88px !important; }
@media (max-width: 760px) { .entry-content .dsgo-band { margin-top: 60px !important; } }
.entry-content .dsgo-band .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .9); }
.entry-content .dsgo-band .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--dsgo-teal-dark); border-color: #fff; }
/* Подраздел внутри раздела (Автоматизация в разделе Устройств) */
.entry-content .dsgo-subsection { margin-top: 96px !important; }
.entry-content .dsgo-band .wp-block-buttons { justify-content: center; }
.dsgo-section:has(> .dsgo-band:last-child) { padding-bottom: 0; }
.entry-content .is-style-white .wp-block-button__link { background: #fff; color: var(--dsgo-teal-dark); border-color: #fff; }
.entry-content .is-style-white .wp-block-button__link:hover { background: transparent; color: #fff; border-color: #fff; }
.entry-content .alignfull > .dsgo-band { max-width: none; margin-left: 0; margin-right: 0; }

/* Список-«галочки» внутри блока задачи (Цифровое меню) */
.entry-content .dsgo-checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.entry-content .dsgo-checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: 16px; color: var(--dsgo-text); }
.entry-content .dsgo-checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--dsgo-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.entry-content .dsgo-lead.dsgo-player-intro { max-width: 1060px !important; }

/* ---------- Схема DS-GO.PRO (вместо картинки) ---------- */
.entry-content .dsgo-scheme { max-width: 1000px !important; margin: 48px auto 0 !important; text-align: center; }
.dsgo-scheme__kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dsgo-muted); margin: 0 0 18px; }
.dsgo-scheme__kicker:last-child { margin: 18px 0 0; }
.dsgo-scheme__row { display: grid; gap: 12px; }
.dsgo-scheme__row.is-top { grid-template-columns: repeat(6, 1fr); }
.dsgo-scheme__row.is-bottom { grid-template-columns: repeat(5, 1fr); }
.dsgo-node { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dsgo-node__ic { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: var(--dsgo-teal-dark); box-shadow: 0 12px 30px rgba(16, 24, 40, .10), 0 2px 6px rgba(16, 24, 40, .05); border: 1px solid #eef0f2; transition: transform .2s, box-shadow .2s, color .2s; }
.dsgo-node__ic svg { width: 36px; height: 36px; }
.dsgo-node:hover .dsgo-node__ic { transform: translateY(-3px); color: var(--dsgo-teal); box-shadow: 0 12px 28px rgba(16, 185, 167, .2); }
.dsgo-node__lb { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--dsgo-ink); max-width: 140px; }
.dsgo-scheme__lines { display: block; width: 100%; height: 72px; overflow: visible; margin: 10px 0; }
.dsgo-scheme__lines path { fill: none; stroke: var(--dsgo-teal); stroke-width: 1.5; stroke-dasharray: 4 6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .75; }
.dsgo-scheme__lines.is-down path { animation: dsgo-flow-up 1.6s linear infinite; }
.dsgo-scheme__lines.is-up path { animation: dsgo-flow-down 1.6s linear infinite; }
@keyframes dsgo-flow-up { to { stroke-dashoffset: 20; } }
@keyframes dsgo-flow-down { to { stroke-dashoffset: -20; } }
.dsgo-scheme__hub { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 999px; color: #fff; background: linear-gradient(120deg, #0a544d, #10b9a7); box-shadow: 0 0 0 8px rgba(16, 185, 167, .12), 0 14px 34px rgba(14, 118, 108, .35); }
.dsgo-scheme__cloud svg { width: 34px; height: 34px; display: block; }
.dsgo-scheme__hub strong { font-family: var(--dsgo-display); font-weight: 400; font-size: 32px; letter-spacing: .04em; line-height: 1; }
.dsgo-scheme__hub small { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
@media (prefers-reduced-motion: no-preference) { .dsgo-scheme__hub { animation: dsgo-hub 3s ease-in-out infinite; } @keyframes dsgo-hub { 50% { box-shadow: 0 0 0 14px rgba(16, 185, 167, .08), 0 14px 34px rgba(14, 118, 108, .35); } } }
@media (prefers-reduced-motion: reduce) { .dsgo-scheme__lines path { animation: none; } }
@media (max-width: 760px) {
	.dsgo-scheme__lines { display: none; }
	.dsgo-scheme__row.is-top, .dsgo-scheme__row.is-bottom { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
	.dsgo-scheme__hub { margin: 28px 0; position: relative; }
	.dsgo-scheme__hub::before, .dsgo-scheme__hub::after { content: ""; position: absolute; left: 50%; width: 2px; height: 22px; background: repeating-linear-gradient(var(--dsgo-teal) 0 4px, transparent 4px 8px); }
	.dsgo-scheme__hub::before { bottom: 100%; margin-bottom: 4px; }
	.dsgo-scheme__hub::after { top: 100%; margin-top: 4px; }
	.dsgo-node__ic { width: 54px; height: 54px; border-radius: 15px; }
	.dsgo-node__lb { font-size: 12px; }
}

/* Карточки «Производство контента» с иконками */
.entry-content .dsgo-card.has-icon { display: flex; align-items: center; gap: 18px; }
.entry-content .dsgo-card.has-icon > * { margin: 0; }
.dsgo-card__ic { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--dsgo-teal-dark); background: linear-gradient(135deg, rgba(16, 185, 167, .14), rgba(16, 185, 167, .04)); }
.dsgo-card__ic svg { width: 30px; height: 30px; }
.dsgo-card.has-icon:hover .dsgo-card__ic { color: var(--dsgo-teal); }
.dsgo-scheme__row.is-top, .dsgo-scheme__row.is-bottom { column-gap: 0; } @media (max-width: 760px) { .dsgo-scheme__row.is-top, .dsgo-scheme__row.is-bottom { column-gap: 8px; } }

/* Задачи: медиа в светлой панели на всю высоту текстового блока — без пустоты рядом с длинным списком */
.entry-content .wp-block-media-text.dsgo-task { align-items: stretch; margin-top: 40px; margin-bottom: 40px; }
.dsgo-task .wp-block-media-text__content { align-self: center; }
.dsgo-task .wp-block-media-text__media { display: flex; align-items: center; justify-content: center; background: var(--dsgo-grey); border-radius: 22px; padding: 28px; min-height: 100%; }
.dsgo-task .wp-block-media-text__media img, .dsgo-task .wp-block-media-text__media video { box-shadow: 0 12px 30px rgba(16, 24, 40, .12) !important; border-radius: 12px; max-height: 520px; width: auto; max-width: 100%; }
@media (max-width: 760px) { .dsgo-task .wp-block-media-text__media { padding: 16px; } }

/* ---------- Task with mockup slideshow ---------- */
.entry-content .wp-block-columns.dsgo-task--slides { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; margin: 40px 0; }
.dsgo-task--slides > .wp-block-column { margin: 0; min-width: 0; }
.dsgo-task--slides .dsgo-task__text { align-self: center; }
.dsgo-task--slides .dsgo-task__text h3 { font-size: 26px; color: var(--dsgo-teal-dark); text-transform: uppercase; letter-spacing: .02em; }
.dsgo-task--slides .dsgo-task__text h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--dsgo-red); margin-top: 14px; border-radius: 2px; }
.dsgo-task--slides .dsgo-task__text > p { font-size: 18px; }
.dsgo-task--slides .dsgo-task__media { display: flex; flex-direction: column; justify-content: center; gap: 18px; background: var(--dsgo-grey); border-radius: 22px; padding: 28px; }
.entry-content .wp-block-gallery.dsgo-slides { display: block !important; position: relative; aspect-ratio: 16 / 9; margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(16, 24, 40, .12); }
.entry-content .wp-block-gallery.dsgo-slides > figure.wp-block-image { position: absolute !important; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; opacity: 0; transition: opacity .8s ease; }
.entry-content .wp-block-gallery.dsgo-slides:not(.is-ready) > figure.wp-block-image:first-child, .entry-content .wp-block-gallery.dsgo-slides.is-ready > figure.wp-block-image.is-active { opacity: 1; }
.entry-content .wp-block-gallery.dsgo-slides img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; box-shadow: none; }
.dsgo-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 10px; }
.dsgo-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 16 / 9; opacity: .55; transition: opacity .25s, border-color .25s, transform .25s; }
.dsgo-thumbs button:hover { opacity: .9; transform: translateY(-2px); }
.dsgo-thumbs button.is-active { opacity: 1; border-color: var(--dsgo-teal); }
.dsgo-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
	.entry-content .wp-block-columns.dsgo-task--slides { grid-template-columns: 1fr; gap: 20px; }
	.dsgo-task--slides .dsgo-task__media { order: -1; padding: 14px; gap: 12px; }
	.dsgo-thumbs { grid-template-columns: repeat(7, 1fr); gap: 6px; }
}

/* ---------- Mobile: no horizontal scroll, compact layout ---------- */
html, body { overflow-x: clip; }
.site-nav__pro { display: none; }
@media (max-width: 520px) {
	.header-actions .btn-pro { display: none; }
	.site-nav .site-nav__pro { display: block; text-align: center; margin-top: 12px; padding: 12px 20px; font-size: 16px; }
	.site-header__inner { gap: 10px; }
	.burger { margin-right: -8px; }
	.cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; gap: 12px; font-size: 13px; }
	.cookie-bar button { padding: 9px 16px; }
}
@media (max-width: 600px) {
	.dsgo-section { padding: 48px 0; }
	.dsgo-title { font-size: 26px; margin-bottom: 10px; }
	.dsgo-title::after { margin-top: 14px; }
	.dsgo-title + .dsgo-grid, .dsgo-title + .dsgo-showcase, .dsgo-title + .wp-block-media-text { margin-top: 28px; }
	.dsgo-lead { font-size: 16px; margin-bottom: 28px !important; }
	.entry-content .dsgo-grid { gap: 12px !important; }
	.dsgo-card { padding: 18px 18px; }
	.dsgo-card h3 { font-size: 16px; margin-bottom: 8px; }
	.dsgo-card h3::after { margin-top: 8px; width: 22px; }
	.dsgo-card p, .dsgo-card li { font-size: 15px; line-height: 1.5; }
	/* Иконка слева от заголовка — карточка в 2–3 раза ниже */
	.dsgo-card:not(.is-device):has(> .wp-block-image:first-child) { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
	.dsgo-card:not(.is-device):has(> .wp-block-image:first-child) > * { grid-column: 2; }
	.dsgo-card:not(.is-device):has(> .wp-block-image:first-child) > .wp-block-image:first-child { grid-column: 1; grid-row: 1 / span 4; margin: 2px 0 0; }
	.dsgo-card:not(.is-device) > .wp-block-image:first-child img { width: 44px; height: 44px; }
	.dsgo-card.is-device .wp-block-image img { height: 150px; }
	.wp-block-media-text__content h3, .dsgo-task--slides .dsgo-task__text h3 { font-size: 21px; }
	.wp-block-media-text__content p, .dsgo-task--slides .dsgo-task__text > p { font-size: 16px; }
	.entry-content .wp-block-media-text.dsgo-task, .entry-content .wp-block-columns.dsgo-task--slides { margin: 28px 0; }
	.dsgo-hero { padding: 72px 0 64px; }
	.dsgo-hero h1 { font-size: 46px; margin-bottom: 18px; }
	.dsgo-hero p { font-size: 16px; margin-bottom: 26px; }
}
@media (max-width: 600px) {
	.entry-content .dsgo-showcase, .entry-content .dsgo-grid:has(> .is-device) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	.dsgo-showcase figcaption { font-size: 11px; padding: 22px 8px 8px; }
	.dsgo-card.is-device { padding: 14px; }
	.dsgo-card.is-device h3 { font-size: 13px; }
	.dsgo-card.is-device p { font-size: 13px; }
	.dsgo-card.is-device .wp-block-image { margin-top: 10px; }
	.dsgo-card.is-device .wp-block-image img { height: 90px; }
}
@media (max-width: 600px) {
	.entry-content .dsgo-grid:has(> .is-device) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.dsgo-band .wp-block-button__link, .dsgo-cta .wp-block-button__link { padding: 12px 24px; font-size: 15px; }
	.dsgo-band { padding-top: 32px !important; padding-bottom: 32px !important; }
}

/* ---------- Mobile scheme: two cards + hub between them ---------- */
@media (max-width: 760px) {
	.entry-content .dsgo-scheme { display: flex; flex-direction: column; align-items: stretch; }
	.dsgo-scheme > .dsgo-scheme__kicker { order: 1; margin: 0 !important; padding: 16px 12px 6px; background: #fff; border: 1px solid #e6eaee; border-bottom: 0; border-radius: 18px 18px 0 0; color: var(--dsgo-teal-dark); }
	.dsgo-scheme > .dsgo-scheme__row { order: 2; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 14px; column-gap: 0; padding: 10px 6px 18px; background: #fff; border: 1px solid #e6eaee; border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 12px 30px rgba(16, 24, 40, .06); }
	.dsgo-scheme > .dsgo-scheme__row > .dsgo-node { flex: 0 0 33.333%; }
	.dsgo-scheme > .dsgo-scheme__hub { order: 3; align-self: center; margin: 34px 0; }
	.dsgo-scheme > .dsgo-scheme__kicker:last-child { order: 4; }
	.dsgo-scheme > .dsgo-scheme__row.is-bottom { order: 5; }
	.dsgo-scheme__hub::before, .dsgo-scheme__hub::after { height: 26px; margin: 0 !important; transform: translateX(-1px); }
	.dsgo-scheme__hub::before { bottom: calc(100% + 8px); }
	.dsgo-scheme__hub::after { top: calc(100% + 8px); }
	.dsgo-scheme__hub { padding: 12px 22px; gap: 10px; }
	.dsgo-scheme__hub strong { font-size: 26px; }
	.dsgo-node { gap: 6px; }
	.dsgo-node__ic { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 6px 16px rgba(16, 24, 40, .08); }
	.dsgo-node__ic svg { width: 24px; height: 24px; }
	.dsgo-node__lb { font-size: 11.5px; padding: 0 2px; }
}
@media (max-width: 600px) {
	.entry-content .dsgo-grid:has(> .is-device) > :last-child:nth-child(odd) .wp-block-image img { height: 170px; }
}

.dsgo-measure .is-pinned { position: static !important; }

/* ---------- Language: one button + dropdown ---------- */
.lang-switch.js-lang { position: relative; padding: 0; border: 0; display: block; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--dsgo-ink); background: #fff; border: 1px solid var(--dsgo-line); border-radius: 999px; padding: 7px 12px 7px 10px; cursor: pointer; transition: border-color .2s, color .2s; }
.lang-switch__btn:hover, .lang-switch.is-open .lang-switch__btn { border-color: var(--dsgo-teal); color: var(--dsgo-teal-dark); }
.lang-switch__btn svg { width: 17px; height: 17px; }
.lang-switch__btn i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; transition: transform .2s; }
.lang-switch.is-open .lang-switch__btn i { transform: translateY(1px) rotate(-135deg); }
.lang-switch__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--dsgo-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(16, 24, 40, .14); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 120; }
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: none; }
.lang-switch__menu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--dsgo-ink); text-decoration: none; font-size: 15px; font-weight: 500; text-transform: none; }
.lang-switch__menu a b { font-size: 12px; color: var(--dsgo-muted); width: 22px; }
.lang-switch__menu a:hover { background: var(--dsgo-grey); color: var(--dsgo-teal-dark); }
.lang-switch__menu:empty, .lang-switch__menu:empty + * { display: none; }
.lang-switch .lang-switch__btn span { display: inline; padding: 0; color: inherit; font-size: inherit; text-transform: none; border-radius: 0; background: none; }
