/* SpaGalaxy — стиль статьи блога. Всё внутри <article class="sga">, чтобы тема Amely не задевалась.
   Тона сайта: Montserrat, чёрный/#333, беж #F9F6F4, ночные секции, акцент aqua, прямые углы, кнопки капсом
   (те же токены, что в spagalaxy-pdp-story/engine/story.css). Эффекты включает engine/article.js.
   Шрифт Montserrat подключает страница (в прототипе — engine/fonts/fonts.css, на сайте его уже отдаёт тема). */

.sga {
  --ink: #111; --text: #333; --muted: #6b6b6b; --line: #e6e1dc;
  --sand: #f9f6f4; --sand-2: #efe8e1; --night: #0c0f14; --night-2: #151a22;
  --aqua: #36c2cf; --aqua-ink: #0b7f8b; --glow: rgba(54, 194, 207, .45);
  --hdr: 0px; /* высота липкой шапки сайта: подогнать при встраивании в тему */
  --wrap: 1200px; --col: 760px; --gut: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  position: relative; overflow-x: hidden; overflow-x: clip;
  font-family: Montserrat, "Montserrat Fallback", Arial, sans-serif;
  font-size: clamp(16.5px, 1.25vw, 18px); line-height: 1.75; color: var(--text);
  background: #fff; -webkit-font-smoothing: antialiased;
}
.sga *, .sga *::before, .sga *::after { box-sizing: border-box; }
.sga :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.sga :where(ul, ol) { list-style: none; }
.sga img, .sga svg, .sga canvas { display: block; max-width: 100%; }
.sga img { height: auto; }
.sga a { color: inherit; }
.sga :where(strong, b) { font-weight: 600; color: var(--ink); }
.sga [id] { scroll-margin-top: calc(var(--hdr) + 24px); }

/* ---------- сетка ---------- */
.sga-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sga-sec { position: relative; padding: clamp(56px, 8vw, 112px) 0; }
.sga-sec--sand { background: var(--sand); }
.sga-sec--dark { background: var(--night); color: #c9d0d9; }
/* поток текста: узкая колонка, широкие блоки выходят за неё */
.sga-flow { display: grid; grid-template-columns: 1fr min(var(--col), 100% - 2 * var(--gut)) 1fr; row-gap: 1.15em; }
.sga-flow > * { grid-column: 2; min-width: 0; }
.sga-flow > .sga-wide { grid-column: 1 / -1; width: min(1040px, 100% - 2 * var(--gut)); justify-self: center; }
.sga-part { position: relative; padding: clamp(44px, 6vw, 84px) 0; }
.sga-part--sand { background: var(--sand); }

/* ---------- типографика ---------- */
.sga-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.sga-eyebrow--aqua { color: var(--aqua-ink); }
.sga-sec--dark .sga-eyebrow, .sga-ch-head .sga-eyebrow--aqua, .sga-form-sec .sga-eyebrow--aqua { color: var(--aqua); }
.sga-h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.sga-sec--dark .sga-h2 { color: #fff; }
.sga-h3 { position: relative; font-size: clamp(23px, 2.7vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); padding-top: 22px; margin-bottom: .2em; text-wrap: balance; }
.sga-h3::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 3px; background: var(--aqua); transform-origin: 0 50%; }
.sga--js .sga-h3[data-fx]::before { transform: scaleX(0); transition: transform .9s var(--ease) .35s; }
.sga--js .sga-h3.is-in::before { transform: none; }
.sga-lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; font-weight: 500; color: var(--ink); }
.sga-center { text-align: center; }
.sga p a, .sga-link { text-decoration: none; font-weight: 600; color: var(--ink); background: linear-gradient(var(--aqua), var(--aqua)) 0 100% / 100% 2px no-repeat; transition: background-size .35s var(--ease); }
.sga p a:hover, .sga-link:hover { background-size: 100% 100%; }
/* подложка-маркер под ключевой фразой */
.sga-mark { color: inherit; font-weight: 600; background: linear-gradient(rgba(54, 194, 207, .38), rgba(54, 194, 207, .38)) 0 88% / 100% .42em no-repeat; }
.sga--js .sga-mark { background-size: 0 .42em; transition: background-size 1.1s var(--ease) .45s; }
.sga--js .is-in .sga-mark, .sga--js .sga-mark.is-in { background-size: 100% .42em; }

/* ---------- кнопки ---------- */
.sga-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid #333; background: #333; color: #fff !important; font: 600 13px/1 Montserrat, Arial, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .25s, transform .25s var(--ease), box-shadow .25s; }
.sga-btn:hover { background: #000; transform: translateY(-2px); }
.sga-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-160%) skewX(-20deg); animation: sga-shine 4.5s ease-in-out infinite; }
.sga-btn--aqua { background: var(--aqua); border-color: var(--aqua); color: #06262a !important; box-shadow: 0 0 0 0 var(--glow); }
.sga-btn--aqua:hover { background: #5ad6e1; box-shadow: 0 10px 34px -6px var(--glow); }
.sga-btn--line { background: transparent; border-color: rgba(255, 255, 255, .6); }
.sga-btn--line:hover { background: #fff; color: #111 !important; }
@keyframes sga-shine { 0%, 62% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(420%) skewX(-20deg); } }
/* Тема сайта красит все ссылки в чёрный с !important (custom_config.css: a:not(.action):not(.btn), с :hover вес 0,3,1).
   Класс повторён, чтобы перевесить: иначе текст тёмной кнопки и плашки раздела на сайте становится чёрным по тёмному. */
.sga.sga.sga .sga-btn, .sga.sga.sga .sga-pill { color: #fff !important; }
.sga.sga.sga .sga-btn--aqua { color: #06262a !important; }
.sga.sga.sga .sga-btn--line:hover { color: #111 !important; }

/* ---------- появление при скролле ---------- */
.sga--js [data-fx] { --dl: calc(var(--i, 0) * 90ms + var(--d, 0ms)); opacity: 0; transition: opacity .9s var(--ease) var(--dl), transform 1s var(--ease) var(--dl), filter .9s var(--ease) var(--dl), clip-path 1.2s var(--ease) var(--dl), translate .4s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.sga--js .sga-fig--photo[data-fx] { transition: opacity .9s var(--ease) var(--dl), transform 1s var(--ease) var(--dl), box-shadow .9s var(--ease) calc(var(--dl) + .35s); }
/* заголовок не мигает, пока скрипт не разбил его на слова */
.sga--js:not(.sga--split) [data-split] { visibility: hidden; }
.sga--js [data-fx=up] { transform: translateY(48px); }
.sga--js [data-fx=left] { transform: translateX(-90px); }
.sga--js [data-fx=right] { transform: translateX(90px); }
.sga--js [data-fx=zoom] { transform: scale(.8); }
.sga--js [data-fx=flip] { transform: perspective(900px) rotateX(40deg) translateY(60px); transform-origin: 50% 100%; }
.sga--js [data-fx=blur] { filter: blur(14px); transform: scale(1.05); }
.sga--js [data-fx=wipe] { opacity: 1; clip-path: inset(0 100% 0 0); }
.sga--js [data-fx].is-in { opacity: 1; transform: none; filter: none; }
.sga--js [data-fx=wipe].is-in { clip-path: inset(-40px); }
[data-par] { translate: 0 var(--py, 0px); }
/* слова заголовка */
.sga-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .16em; margin: -.14em 0 -.16em; }
.sga-w > span { display: inline-block; transform: translateY(115%) rotate(5deg); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + 120ms); }
.is-in .sga-w > span { transform: none; }

/* ---------- прогресс чтения и навигация ---------- */
.sga-progress { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 3px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.sga-progress.is-on { opacity: 1; }
.sga-progress i { display: block; height: 100%; background: var(--aqua); box-shadow: 0 0 12px var(--glow); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.sga-nav { position: fixed; z-index: 900; left: 16px; top: 50%; display: flex; flex-direction: column; gap: 7px; transform: translate(-70px, -50%); opacity: 0; visibility: hidden; transition: transform .6s var(--ease), opacity .4s, visibility 0s .6s; }
.sga-nav.is-on { transform: translate(0, -50%); opacity: 1; visibility: visible; transition-delay: 0s; }
.sga-nav a:focus-visible i, .sga-pill:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.sga-nav a { position: relative; display: flex; align-items: center; text-decoration: none; }
.sga-nav i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); color: var(--muted); font: 600 11px/1 Montserrat, Arial, sans-serif; font-style: normal; box-shadow: 0 2px 10px rgba(12, 15, 20, .12); transition: transform .3s var(--spring), background-color .3s, color .3s, border-color .3s; }
.sga-nav span { position: absolute; left: 38px; white-space: nowrap; padding: 6px 12px; background: var(--night); color: #fff; font-size: 12px; font-weight: 500; opacity: 0; transform: translateX(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.sga-nav a:hover span, .sga-nav a:focus-visible span { opacity: 1; transform: none; }
.sga-nav a:hover i { transform: scale(1.12); border-color: var(--aqua); color: var(--ink); }
.sga-nav a.is-active i { background: var(--aqua); border-color: var(--aqua); color: #06262a; transform: scale(1.22); box-shadow: 0 0 0 5px rgba(54, 194, 207, .22); }
.sga-pill { display: none; position: fixed; z-index: 900; left: 50%; top: calc(var(--hdr) + 12px); max-width: calc(100vw - 32px); padding: 9px 16px; background: rgba(12, 15, 20, .94); color: #fff !important; font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; visibility: hidden; transform: translate(-50%, -64px); transition: transform .5s var(--ease), visibility 0s .5s; }
.sga-pill.is-on { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
@media (max-width: 1339px) { .sga-nav { display: none; } .sga-pill { display: block; } }

/* ---------- летающие элементы ---------- */
.sga-orb { position: absolute; border-radius: 50%; pointer-events: none; animation: sga-drift 16s ease-in-out infinite alternate; }
.sga-orb--a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: -12%; top: -18%; background: radial-gradient(closest-side, rgba(54, 194, 207, .34), transparent); }
.sga-orb--b { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; right: -10%; bottom: -24%; background: radial-gradient(closest-side, rgba(40, 96, 190, .42), transparent); animation-duration: 21s; animation-delay: -6s; }
.sga-orb--c { width: 22vw; height: 22vw; max-width: 300px; max-height: 300px; right: 24%; top: 8%; background: radial-gradient(closest-side, rgba(54, 194, 207, .2), transparent); animation-duration: 13s; animation-delay: -3s; }
@keyframes sga-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6%, 9%, 0) scale(1.18); } }
@keyframes sga-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(.6deg); } }
@keyframes sga-spin { to { transform: rotate(360deg); } }
.sga-bubbles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* волна между секциями */
.sga-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(36px, 6vw, 84px); pointer-events: none; color: #fff; clip-path: inset(-30% 0 0 0); }
.sga-wave i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 1200px); background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 84' preserveAspectRatio='none'%3E%3Cpath d='M0 44c150-44 300-44 450-8s300 36 450 0 200-30 300-10v58H0z'/%3E%3C/svg%3E") repeat-x 0 0 / 1200px 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 84' preserveAspectRatio='none'%3E%3Cpath d='M0 44c150-44 300-44 450-8s300 36 450 0 200-30 300-10v58H0z'/%3E%3C/svg%3E") repeat-x 0 0 / 1200px 100%; animation: sga-wave 16s linear infinite; }
.sga-wave i + i { opacity: .35; animation-duration: 9s; animation-direction: reverse; top: -22%; }
.sga-wave--sand { color: var(--sand); }
@keyframes sga-wave { to { transform: translateX(-1200px); } }

/* ---------- hero ---------- */
.sga-hero { position: relative; overflow: hidden; display: grid; place-items: center; min-height: min(88vh, 820px); padding: clamp(96px, 14vw, 170px) 0 clamp(110px, 14vw, 180px); background: radial-gradient(120% 90% at 50% 0%, #17222e 0%, var(--night) 62%); color: #fff; text-align: center; }
.sga-hero__in { position: relative; z-index: 2; }
.sga-hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(12, 15, 20, .35); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #cfe9ed; }
.sga-hero__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 var(--glow); animation: sga-pulse 2.2s infinite; }
@keyframes sga-pulse { 70% { box-shadow: 0 0 0 12px rgba(54, 194, 207, 0); } 100% { box-shadow: 0 0 0 0 rgba(54, 194, 207, 0); } }
.sga-hero h1 { margin: 26px auto 0; max-width: 19ch; font-size: clamp(34px, 6.2vw, 80px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.sga-hero h1 em { display: block; margin-top: .22em; font-style: normal; font-weight: 300; font-size: .62em; line-height: 1.2; letter-spacing: 0; color: var(--aqua); }
.sga-hero__by { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; text-align: left; font-size: 15px; line-height: 1.35; color: #b8c0cb; }
.sga-hero__by b { display: block; font-size: 17px; color: #fff; }
.sga-hero__by time { white-space: nowrap; }
.sga-ava { position: relative; flex: none; width: 60px; height: 60px; }
.sga-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sga-ava::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed var(--aqua); animation: sga-spin 14s linear infinite; }
.sga-chip { position: absolute; z-index: 1; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(22, 30, 40, .72); color: #dfe6ee; font-size: 13px; font-weight: 500; white-space: nowrap; animation: sga-float 7s ease-in-out infinite; }
.sga-chip b { color: var(--aqua); font-weight: 700; font-size: 17px; margin-right: 6px; }
.sga-chip--1 { left: 7%; top: 26%; }
.sga-chip--2 { right: 8%; top: 20%; animation-delay: -2.4s; }
.sga-chip--3 { right: 12%; bottom: 26%; animation-delay: -4.2s; }
.sga-chip--4 { left: 11%; bottom: 22%; animation-delay: -1.2s; }
.sga-scroll { position: absolute; z-index: 2; left: 50%; bottom: clamp(64px, 9vw, 112px); width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 14px; }
.sga-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--aqua); animation: sga-wheel 1.8s var(--ease) infinite; }
@keyframes sga-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@media (max-width: 899px) { .sga-chip { display: none; } }

/* ---------- вступление ---------- */
.sga-intro__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.sga-intro p { margin-top: 1.1em; }
.sga-check { margin-top: 1.2em; display: grid; gap: .7em; }
.sga-check li { position: relative; padding-left: 40px; font-weight: 500; color: var(--ink); }
.sga-check li::before { content: ""; position: absolute; left: 0; top: .22em; width: 24px; height: 24px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306262a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8'/%3E%3C/svg%3E") center / 16px no-repeat; }
.sga--js .sga-check li[data-fx]::before { transform: scale(0) rotate(-90deg); transition: transform .6s var(--spring); transition-delay: calc(var(--i, 0) * 90ms + 350ms); }
.sga--js .sga-check li.is-in::before { transform: none; }
.sga-portrait { position: relative; z-index: 0; max-width: 440px; margin: 0 auto; }
.sga-portrait::before { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; top: 14%; bottom: 0; background: var(--sand-2); transform-origin: 50% 100%; }
.sga-portrait::after { content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; right: -8%; top: 4%; border-radius: 50%; border: 1px dashed var(--aqua); animation: sga-spin 40s linear infinite; }
.sga--js .sga-portrait[data-fx]::before { transform: scaleY(0); transition: transform 1s var(--ease) .15s; }
.sga--js .sga-portrait.is-in::before { transform: none; }
.sga-portrait .sga-chip { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 14px 34px -14px rgba(12, 15, 20, .35); display: block; }
.sga-portrait .sga-chip--1 { left: -10%; top: 30%; }
.sga-portrait .sga-chip--2 { right: -8%; top: 58%; }
@media (max-width: 899px) {
  .sga-intro__grid { grid-template-columns: 1fr; }
  .sga-portrait { max-width: 300px; order: -1; }
  .sga-portrait .sga-chip--1 { left: -6%; } .sga-portrait .sga-chip--2 { right: -6%; }
}

/* ---------- автор и факты ---------- */
.sga-meet { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 44px); margin-top: clamp(28px, 4vw, 48px); text-align: left; }
.sga-meet .sga-ava { width: clamp(120px, 16vw, 200px); height: clamp(120px, 16vw, 200px); }
.sga-meet .sga-ava::after { inset: -12px; }
.sga-meet h3 { margin: 8px 0 6px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--ink); }
.sga-facts { position: relative; overflow: hidden; margin-top: clamp(36px, 5vw, 64px); padding: clamp(32px, 5vw, 64px); background: var(--night); color: #c9d0d9; }
.sga-facts h3 { position: relative; text-align: center; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: #fff; }
.sga-facts ol { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 36px) clamp(24px, 4vw, 56px); margin-top: clamp(24px, 4vw, 44px); counter-reset: fact; }
.sga-facts li { display: flex; gap: 18px; align-items: flex-start; counter-increment: fact; font-size: 17px; line-height: 1.55; }
.sga-facts li::before { content: counter(fact, decimal-leading-zero); flex: none; font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: .95; color: transparent; -webkit-text-stroke: 1px var(--aqua); }
.sga-facts b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.sga-facts li:last-child { grid-column: 1 / -1; justify-content: center; }
@media (max-width: 699px) { .sga-meet { flex-direction: column; text-align: center; } .sga-facts ol { grid-template-columns: 1fr; } .sga-facts li:last-child { justify-content: flex-start; } }

/* ---------- содержание: карточки разделов ---------- */
.sga-toc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(28px, 4vw, 52px); perspective: 1200px; }
.sga-card { position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0; overflow-wrap: anywhere; padding: clamp(14px, 2vw, 24px); background: #fff; border: 1px solid var(--line); text-decoration: none; overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .35s, border-color .35s; }
.sga-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(54, 194, 207, .16), transparent 70%); opacity: 0; transition: opacity .3s; }
.sga-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--aqua); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.sga-card:hover, .sga-card:focus-visible { box-shadow: 0 26px 50px -24px rgba(12, 15, 20, .35); border-color: transparent; }
.sga-card:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.sga-card:hover::before, .sga-card:focus-visible::before { opacity: 1; }
.sga-card:hover::after, .sga-card:focus-visible::after { transform: none; }
.sga-card img { position: relative; width: 100%; aspect-ratio: 1200 / 792; object-fit: contain; transition: transform .6s var(--ease); }
.sga-card:hover img, .sga-card:focus-visible img { transform: translateY(-8px) scale(1.05); }
.sga-card__n { position: relative; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sga-card__t { position: relative; margin-top: 6px; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.35; font-weight: 700; color: var(--ink); }
.sga-card__t small { display: block; margin-top: 4px; font-size: .86em; font-weight: 400; color: var(--muted); }
.sga-card__num { position: absolute; right: 10px; top: 0; font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); transition: -webkit-text-stroke-color .3s; }
.sga-card:hover .sga-card__num { -webkit-text-stroke-color: var(--aqua); }
@media (max-width: 899px) { .sga-toc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sga-card__num { font-size: 40px; } }

/* ---------- открывашка раздела ---------- */
.sga-ch-head { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0 clamp(96px, 12vw, 170px); background: radial-gradient(90% 120% at 82% 40%, #16232f 0%, var(--night) 60%); color: #fff; }
.sga-ch-head__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.sga-ch-head h2 { margin-top: 16px; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.sga-ch-head h2 small { display: block; margin-top: .5em; font-size: .46em; line-height: 1.35; font-weight: 300; letter-spacing: 0; color: #b8c0cb; }
.sga-ch-num { position: absolute; z-index: 1; left: -1.5vw; top: 50%; margin-top: -.42em; font-size: clamp(200px, 34vw, 520px); font-weight: 800; line-height: .84; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .13); pointer-events: none; user-select: none; }
.sga-ch-art { position: relative; z-index: 0; }
.sga-ch-art::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 86%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--sand) 58%, var(--sand-2) 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 90px 10px var(--glow); }
.sga-ch-art::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(54, 194, 207, .6); animation: sga-spin 50s linear infinite; }
.sga-ch-art img { width: 100%; animation: sga-float 6.5s ease-in-out infinite; filter: drop-shadow(0 26px 26px rgba(12, 15, 20, .28)); }
.sga--js .sga-ch-art[data-fx]::before { scale: 0; transition: scale 1s var(--spring) .1s; }
.sga--js .sga-ch-art.is-in::before { scale: 1; }
@media (max-width: 899px) {
  .sga-ch-head__grid { grid-template-columns: 1fr; text-align: center; }
  .sga-ch-art { width: 100%; max-width: 420px; margin: 14% auto 8%; }
  .sga-ch-num { left: 50%; top: 2%; margin: 0 0 0 -.3em; }
}

/* ---------- картинки ---------- */
.sga-fig { position: relative; margin: .6em 0; }
.sga-fig img { width: 100%; }
.sga-fig figcaption { padding: 12px 16px; font-size: 14px; line-height: 1.45; color: var(--muted); background: #fff; border: 1px solid var(--line); border-top: 0; }
/* фото с подложкой, которая выезжает из-под кадра */
.sga-fig--photo { overflow: hidden; box-shadow: 16px 16px 0 var(--sand-2); margin-right: 16px; margin-bottom: 1.4em; }
.sga-fig--photo.sga-fig--l { box-shadow: -16px 16px 0 var(--sand-2); margin-right: 0; margin-left: 16px; }
.sga-part--sand .sga-fig--photo { box-shadow: 16px 16px 0 rgba(54, 194, 207, .28); }
.sga-part--sand .sga-fig--photo.sga-fig--l { box-shadow: -16px 16px 0 rgba(54, 194, 207, .28); }
.sga--js .sga-fig--photo[data-fx]:not(.is-in) { box-shadow: 0 0 0 transparent; }
.sga-fig--photo img { transition: transform 1.6s var(--ease); }
.sga--js .sga-fig--photo[data-fx]:not(.is-in) img { transform: scale(1.14); }
.sga-fig--photo:hover img { transform: scale(1.04); }
/* вырезанная картинка без фона: парит над пятном-подложкой */
.sga-fig--cut { z-index: 0; max-width: 520px; margin-left: auto; margin-right: auto; }
.sga-fig--cut::before { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: 12%; bottom: 6%; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; background: var(--sand-2); animation: sga-blob 12s ease-in-out infinite alternate; }
.sga-part--sand .sga-fig--cut::before { background: #fff; }
.sga-fig--cut img { animation: sga-float 7s ease-in-out infinite; }
.sga-fig--plain::before { display: none; }
/* схема на белой карточке */
.sga-fig--box { padding: clamp(14px, 3vw, 28px); border: 1px solid var(--line); background: #fff; }
.sga-power .sga-fig { margin: 0; }
@keyframes sga-blob { to { transform: rotate(10deg) scale(1.05); } }
.sga-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 36px); align-items: center; }
.sga-duo .sga-fig { margin-top: 0; margin-bottom: 0; }
.sga-duo--text { grid-template-columns: minmax(120px, .42fr) 1fr; }
.sga-duo--pic { grid-template-columns: minmax(140px, .7fr) 1fr; }
@media (max-width: 599px) {
  .sga-duo:not(.sga-duo--keep) { grid-template-columns: 1fr; }
  .sga-duo--text .sga-fig, .sga-duo--pic .sga-fig { max-width: 260px; margin-left: auto; margin-right: auto; }
}

/* ---------- схема размеров ---------- */
.sga-size { padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); background: #fff; }
.sga-size svg { width: 100%; height: auto; overflow: visible; }
.sga-size .s { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.sga-size .s--a { stroke: var(--aqua); stroke-width: 1.5; }
.sga-size .w { fill: rgba(54, 194, 207, .16); }
.sga-size text { font: 600 17px Montserrat, Arial, sans-serif; fill: var(--ink); text-anchor: middle; }
.sga--js .sga-size[data-fx] .s { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.sga--js .sga-size[data-fx] .s--a { transition-delay: 1.1s; }
.sga--js .sga-size[data-fx] :where(text, .w) { opacity: 0; transition: opacity .7s 1.7s; }
.sga--js .sga-size.is-in .s { stroke-dashoffset: 0; }
.sga--js .sga-size.is-in :where(text, .w) { opacity: 1; }

/* ---------- заметка, цитата, совет ---------- */
.sga-note { position: relative; padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 32px); background: var(--sand); border-left: 3px solid var(--aqua); font-weight: 500; color: var(--ink); }
.sga-part--sand .sga-note { background: #fff; }
.sga-note__t { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--aqua-ink); }
.sga-quote { position: relative; padding: clamp(10px, 2vw, 20px) 0 clamp(10px, 2vw, 20px) clamp(54px, 8vw, 96px); font-size: clamp(22px, 3vw, 36px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.sga-quote::before { content: "“"; position: absolute; left: 0; top: -.12em; font-size: 4.2em; line-height: 1; font-weight: 800; color: var(--aqua); }

/* ---------- призыв внутри текста ---------- */
.sga-cta { position: relative; overflow: hidden; z-index: 0; display: grid; grid-template-columns: 1fr auto; gap: clamp(18px, 3vw, 40px); align-items: center; margin: .8em 0; padding: clamp(24px, 4vw, 44px); background: var(--night); color: #c9d0d9; }
.sga-cta::before { content: ""; position: absolute; z-index: -1; inset: -60%; background: conic-gradient(from 0deg, transparent 0 70%, var(--aqua) 86%, transparent 100%); animation: sga-spin 7s linear infinite; }
.sga-cta::after { content: ""; position: absolute; z-index: -1; inset: 1px; background: linear-gradient(120deg, #131a23, var(--night) 60%); }
.sga-cta p { margin: 0; font-size: 17px; line-height: 1.6; }
.sga-cta p + p { margin-top: .6em; }
.sga-cta b, .sga-cta strong { color: #fff; }
.sga-cta__ava { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--aqua); }
.sga-cta__ava .sga-ava { width: 46px; height: 46px; }
@media (max-width: 767px) { .sga-cta { grid-template-columns: 1fr; } .sga-cta .sga-btn { width: 100%; } }

/* ---------- три линейки ---------- */
.sga-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.sga-tier { position: relative; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); background: #fff; transition: translate .4s var(--ease), box-shadow .4s; }
.sga-tier:hover { translate: 0 -8px; box-shadow: 0 30px 50px -28px rgba(12, 15, 20, .45); }
.sga-tier h4 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: var(--ink); }
.sga-tier dl { margin: 18px 0 0; display: grid; gap: 14px; }
.sga-tier dt { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sga-tier dd { margin: 2px 0 0; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.sga-tier--2 { background: var(--night-2); border-color: var(--night-2); }
.sga-tier--3 { background: var(--night); border-color: var(--aqua); box-shadow: inset 0 0 0 1px var(--aqua), 0 0 40px -12px var(--glow); }
.sga-tier--2 h4, .sga-tier--3 h4, .sga-tier--2 dd, .sga-tier--3 dd { color: #fff; }
.sga-tier--2 dt, .sga-tier--3 dt { color: #8b95a3; }
.sga-tier__bars { display: flex; gap: 5px; margin-bottom: 18px; }
.sga-tier__bars i { width: 26px; height: 4px; background: var(--line); }
.sga-tier--2 .sga-tier__bars i, .sga-tier--3 .sga-tier__bars i { background: rgba(255, 255, 255, .16); }
.sga-tier__bars i.on { background: var(--aqua); }
@media (max-width: 767px) { .sga-tiers { grid-template-columns: 1fr; } }
/* ---------- типы форсунок ---------- */
.sga-jets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.sga-jet { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; padding: 16px 20px 16px 16px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, translate .4s var(--ease); }
.sga-jet:hover { border-color: var(--aqua); box-shadow: 0 20px 40px -26px rgba(12, 15, 20, .45); translate: 0 -4px; }
.sga-jet img { width: 92px; height: 92px; transition: transform 1.2s var(--ease); }
.sga--js .sga-jet[data-fx]:not(.is-in) img { transform: rotate(-200deg) scale(.5); }
.sga-jet:hover img { transform: rotate(120deg); }
.sga-jet h4 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.sga-jet p { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.sga-jet:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 767px) { .sga-jets { grid-template-columns: 1fr; } .sga-jet { grid-template-columns: 72px 1fr; } .sga-jet img { width: 72px; height: 72px; } }

/* ---------- мощность насоса ---------- */
.sga-power { display: grid; grid-template-columns: minmax(120px, .5fr) 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; }
.sga-power__num { display: block; font-size: clamp(48px, 8vw, 92px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sga-power__cap { display: block; margin-top: 6px; font-weight: 500; color: var(--text); }
.sga-power__bar { position: relative; display: block; height: 10px; margin-top: 16px; background: var(--line); overflow: hidden; }
.sga-power__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--aqua), #8fe6ee); transform-origin: 0 50%; transform: scaleX(var(--k, 1)); }
.sga--js .sga-power[data-fx] .sga-power__bar::after { transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.sga--js .sga-power.is-in .sga-power__bar::after { transform: scaleX(var(--k, 1)); }

/* ---------- логотипы, образцы, углы ---------- */
.sga-logos { display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 20px); }
.sga-logos li { flex: 1 1 160px; display: grid; place-items: center; min-height: 86px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); transition: translate .4s var(--ease), box-shadow .4s; }
.sga-logos li:hover { translate: 0 -5px; box-shadow: 0 20px 36px -24px rgba(12, 15, 20, .45); }
.sga-logos img { max-height: 44px; width: auto; }
.sga-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 2vw, 20px); }
.sga-tile { position: relative; overflow: hidden; margin: 0; }
.sga-tile img { width: 100%; transition: transform .9s var(--ease); }
.sga-tile:hover img { transform: scale(1.08); }
.sga-tile::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-18deg); }
.sga-tile.is-in::after { animation: sga-sweep 1.2s var(--ease) .5s 1 both; }
.sga-tile:hover::after { animation: sga-sweep-2 1.1s var(--ease) 1 both; }
@keyframes sga-sweep { to { left: 140%; } }
@keyframes sga-sweep-2 { from { left: -70%; } to { left: 140%; } }
.sga-tile figcaption { position: absolute; left: 0; bottom: 0; max-width: 92%; padding: 9px 14px; background: #fff; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.sga--js .sga-tile[data-fx] figcaption { transform: translateY(101%); transition: transform .7s var(--ease) calc(var(--i, 0) * 90ms + .5s); }
.sga--js .sga-tile.is-in figcaption { transform: none; }
@media (max-width: 599px) { .sga-tile figcaption { position: static; max-width: none; padding: 8px 10px; font-size: 13px; border: 1px solid var(--line); border-top: 0; } }

/* ---------- состав 50/40/10 ---------- */
.sga-mix { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); background: #fff; }
.sga-mix svg { width: 100%; transform: rotate(-90deg); }
.sga-mix circle { fill: none; stroke-width: 7; stroke-dasharray: var(--a) calc(100 - var(--a)); transition: stroke-dasharray 1.5s var(--ease); }
.sga-mix circle:nth-child(2) { transition-delay: .4s; }
.sga-mix circle:nth-child(3) { transition-delay: .9s; }
.sga-mix circle:nth-child(4) { transition-delay: 1.3s; }
.sga--js .sga-mix[data-fx]:not(.is-in) circle { stroke-dasharray: 0 100; }
.sga-mix ul { display: grid; gap: 16px; }
.sga-mix li { display: flex; align-items: baseline; gap: 14px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.sga-mix li b { flex: none; min-width: 2.6em; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sga-mix li:nth-child(2) b { color: var(--aqua-ink); }
.sga-mix li:nth-child(3) b { color: #7d6f5f; }
@media (max-width: 599px) { .sga-mix { grid-template-columns: 1fr; } .sga-mix svg { max-width: 190px; margin: 0 auto; } }

/* ---------- нумерованные доводы ---------- */
.sga-steps { display: grid; gap: clamp(14px, 2vw, 22px); counter-reset: step; }
.sga-steps li { position: relative; padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px) clamp(74px, 10vw, 112px); background: #fff; border: 1px solid var(--line); counter-increment: step; }
.sga-steps li::before { content: counter(step); position: absolute; left: clamp(16px, 2.4vw, 28px); top: 50%; translate: 0 -50%; font-size: clamp(46px, 7vw, 76px); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--aqua); }
.sga-steps p + p { margin-top: .7em; }

/* ---------- вопросы продавцу ---------- */
.sga-ask { display: grid; gap: 14px; }
.sga-ask li { position: relative; width: min(100%, 620px); padding: 18px 22px 18px 62px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 30px -24px rgba(12, 15, 20, .4); font-weight: 600; color: var(--ink); line-height: 1.45; }
.sga-ask li:nth-child(even) { justify-self: end; }
.sga-ask li::before { content: "?"; position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--aqua); color: #06262a; font-weight: 800; font-size: 16px; }
.sga-ask li span { display: block; margin-top: 8px; font-weight: 400; font-size: .92em; color: var(--text); }
.sga-ask li.sga-ask__more { border-style: dashed; box-shadow: none; color: var(--muted); }
.sga-ask li.sga-ask__more::before { content: "…"; background: var(--sand-2); color: var(--ink); }

/* ---------- гарантия ---------- */
.sga-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.sga-terms li { padding: clamp(18px, 3vw, 28px); background: var(--night); color: #c9d0d9; font-size: 15px; line-height: 1.45; }
.sga-terms b { display: block; margin-bottom: 6px; font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #fff; }
.sga-terms b small { font-size: .36em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--aqua); margin-left: 8px; }
@media (max-width: 599px) { .sga-terms { grid-template-columns: 1fr; } }

/* ---------- финал и форма ---------- */
.sga-thanks { position: relative; max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); background: #fff; border: 1px solid var(--line); box-shadow: 18px 18px 0 var(--sand-2); text-align: center; }
.sga-thanks .sga-meet { margin-top: clamp(22px, 3vw, 36px); }
.sga-thanks .sga-btn { margin-top: 18px; }
.sga-form-sec { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 130px) 0; background: radial-gradient(110% 100% at 50% 100%, #17222e 0%, var(--night) 62%); color: #c9d0d9; text-align: center; }
.sga-form-sec .sga-wrap { position: relative; z-index: 2; }
.sga-form-sec h2 { max-width: 22ch; margin: 14px auto 0; font-size: clamp(26px, 3.8vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.sga-form-sec__lead { max-width: 52ch; margin: 22px auto 0; font-size: clamp(17px, 1.5vw, 20px); color: #c9d0d9; }
.sga-form-sec .sga-check { display: grid; width: max-content; max-width: 100%; margin: 22px auto 34px; text-align: left; }
.sga-check--dark li { color: #fff; }
.sga-form-sec .sga-btn { min-height: 60px; padding: 0 36px; font-size: 14px; }

/* ---------- встраивание в шаблон поста блога (тема Amely) ----------
   Статья лежит в .content-blog внутри узкой колонки темы: растягиваем её на всю ширину окна,
   прячем обложку и строку «дата · автор» шаблона (они есть в первом экране статьи) и заголовок полосы
   (title.phtml выводит его как h2 для статей со своим h1). */
.content-blog .sga { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); } /* между .content-blog и статьёй ещё обёртка виджета */
.blog-post:has(.sga) > .post-images, .blog-post:has(.sga) .post-metas-share { display: none; }
body:has(.sga) .page-title-wrapper .page-title { display: none; }
body:has(.sga) #maincontent { padding-top: 0 !important; padding-bottom: 0 !important; }
@media (max-width: 767px) { body:has(.sga) .page-title-wrapper { display: none; } } /* на телефоне крошки темой скрыты — полоса пустая */

@media (prefers-reduced-motion: reduce) {
  .sga *, .sga *::before, .sga *::after { animation: none !important; transition: none !important; }
}
