/* SGS visual refresh: editorial typography, restrained dark-violet identity. */
:root{--sgs-ink:#21152f;--sgs-ink-deep:#17101f;--sgs-surface:#f7f5fa;--sgs-paper:#fdfcff;--sgs-line:rgba(57,37,78,.16);--sgs-violet:#593196;--sgs-accent:#6b459b;--sgs-accent-cta:#6b459b;--sgs-dark:#17141f;--sgs-dark-mid:#2d1760;--sgs-purple:#593196;--sgs-purple-lt:#ad91d5;--sgs-border:rgba(89,49,150,.15);--sgs-card-bg:#fff;--sgs-muted:#71677d;--sgs-radius:12px;--sgs-radius-lg:20px;--tr:.24s cubic-bezier(.2,.7,.2,1)}
html{scroll-behavior:smooth}body,button,input,select,textarea{font-family:Manrope,"Segoe UI",system-ui,sans-serif}body{color:var(--sgs-ink);background:var(--sgs-paper);font-weight:500}body:before{content:"";position:fixed;inset:0;z-index:999;pointer-events:none;opacity:.022;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}.container{max-width:1280px}
h1,h2,h3,.sgs-section-title,.sgs-service-title,.sgs-page-cta h2{font-family:Georgia,"Times New Roman",serif!important;font-weight:700}.sgs-header{background:rgba(23,16,31,.95);border-bottom-color:rgba(255,255,255,.08)}.sgs-header--scrolled{background:rgba(23,16,31,.99);box-shadow:0 12px 36px rgba(25,10,37,.26)}.sgs-menu>li>a{font-family:Manrope,"Segoe UI",sans-serif;font-weight:650}.sgs-menu>li>a:after{background:var(--sgs-purple-lt)}.sgs-nav-cta{border-radius:7px;background:#6b459b!important;color:#fff!important;box-shadow:none!important}.sgs-nav-cta:hover{background:#4c277c!important;transform:translateY(-1px)}.sgs-btn-white{border-radius:7px!important;box-shadow:none!important}.sgs-skip-link:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c7a5ef!important;outline-offset:3px}
/* The hero itself intentionally remains the original, proven composition. */
.sgs-hero{background:radial-gradient(circle at 77% 26%,rgba(112,70,163,.22),transparent 28%),linear-gradient(138deg,#17101f 2%,#2d1760 56%,#191120)!important}.sgs-hero-title{font-family:Georgia,"Times New Roman",serif!important;font-weight:700;letter-spacing:-.045em;line-height:1.02}.sgs-hero-subtitle{max-width:610px;line-height:1.72}.sgs-hero .sgs-btn-white{background:#fbf9ff!important;color:#3a2160!important;border-color:#fbf9ff!important}.sgs-hero .sgs-btn-white:hover{background:#d9c7f2!important;border-color:#d9c7f2!important;transform:translateY(-2px)}
.sgs-section{padding:clamp(82px,10vw,138px) 0}.sgs-section-tag{color:#72519c;font-family:Manrope,"Segoe UI",sans-serif;font-size:.72rem;font-weight:750;letter-spacing:.13em;text-transform:uppercase}.sgs-section-tag:before{width:24px;background:currentColor}.sgs-home-intro{padding:clamp(86px,11vw,152px) 0 clamp(72px,9vw,126px);background:var(--sgs-paper)}.sgs-home-display{max-width:760px;margin:14px 0 0;color:var(--sgs-ink);font-size:clamp(2.4rem,4.4vw,4.75rem);line-height:1.03;letter-spacing:-.055em;text-wrap:balance}.sgs-home-lead{max-width:410px;margin:0;color:#62596c;font-size:1.04rem;line-height:1.75}.sgs-home-situations{display:grid;grid-template-columns:repeat(3,1fr);margin-top:76px;border-top:1px solid var(--sgs-line)}.sgs-home-situations article{padding:27px 34px 8px 0;border-right:1px solid var(--sgs-line)}.sgs-home-situations article+article{padding-left:34px}.sgs-home-situations article:last-child{border-right:0}.sgs-home-situations span,.sgs-home-service-list>a>span{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#75559b;font-size:.72rem;font-weight:700}.sgs-home-situations h3{margin:28px 0 12px;color:var(--sgs-ink);font-size:1.43rem;line-height:1.14;letter-spacing:-.03em}.sgs-home-situations p{max-width:320px;margin:0;color:#6d6476;font-size:.91rem;line-height:1.7}
.sgs-home-services{padding:clamp(82px,10vw,138px) 0;background:#f4f0f8}.sgs-home-all-link{display:inline-flex;align-items:center;gap:9px;color:#593196;text-decoration:none;font-size:.88rem;font-weight:750}.sgs-home-all-link:hover{color:#321355}.sgs-home-service-list{display:grid;grid-template-columns:repeat(2,1fr);margin-top:58px;border-top:1px solid var(--sgs-line)}.sgs-home-service-list>a{display:grid;grid-template-columns:40px 1fr 28px;gap:20px;min-height:184px;padding:30px 0;text-decoration:none;border-bottom:1px solid var(--sgs-line);color:inherit}.sgs-home-service-list>a:nth-child(odd){padding-right:40px;border-right:1px solid var(--sgs-line)}.sgs-home-service-list>a:nth-child(even){padding-left:40px}.sgs-home-service-list h3{margin:0 0 10px;color:var(--sgs-ink);font-size:1.48rem;line-height:1.12;letter-spacing:-.035em}.sgs-home-service-list p{max-width:330px;margin:0;color:#6c6276;font-size:.9rem;line-height:1.7}.sgs-home-service-list i{display:grid;place-items:center;width:27px;height:27px;border:1px solid transparent;border-radius:50%;color:#6c5b7d;font-size:.9rem;transition:var(--tr)}.sgs-home-service-list>a:hover h3{color:#593196}.sgs-home-service-list>a:hover i{background:#593196;border-color:#593196;color:#fff;transform:translate(2px,-2px)}
.sgs-home-process{padding:clamp(82px,10vw,128px) 0;background:radial-gradient(circle at 84% 12%,rgba(160,120,211,.2),transparent 30%),#211530;color:#fff}.sgs-home-process .sgs-section-tag{color:#c7afe8}.sgs-home-process h2{margin:14px 0 20px;color:#fff;font-size:clamp(2.35rem,4vw,4.15rem);line-height:1.04;letter-spacing:-.055em}.sgs-home-process h2+p{max-width:470px;margin:0;color:rgba(255,255,255,.7);line-height:1.75}.sgs-home-process ol{margin:0;padding:0;list-style:none;border-top:1px solid rgba(255,255,255,.16)}.sgs-home-process li{display:grid;grid-template-columns:48px 1fr;gap:18px;padding:22px 0;border-bottom:1px solid rgba(255,255,255,.16)}.sgs-home-process li>span{padding-top:4px;color:#c7afe8;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.75rem;font-weight:700}.sgs-home-process h3{margin:0 0 8px;color:#fff;font-size:1.3rem;letter-spacing:-.025em}.sgs-home-process li p{margin:0;color:rgba(255,255,255,.66);font-size:.9rem;line-height:1.65}
.sgs-home-contact{padding:0 0 clamp(88px,11vw,150px);background:var(--sgs-paper)}.sgs-home-contact-inner{position:relative;overflow:hidden;padding:clamp(40px,6vw,82px);border:1px solid rgba(89,49,150,.15);border-radius:20px;background:#e9e1f2}.sgs-home-contact-inner:after{content:"";position:absolute;right:-6%;top:-105%;width:47%;aspect-ratio:1;border:1px solid rgba(89,49,150,.24);border-radius:50%;box-shadow:0 0 0 54px rgba(89,49,150,.06),0 0 0 108px rgba(89,49,150,.035)}.sgs-home-contact-inner>*{position:relative;z-index:1}.sgs-home-contact-inner h2{max-width:760px;margin:14px 0 13px;color:#2b1741;font-size:clamp(2.25rem,4vw,4.25rem);line-height:1.04;letter-spacing:-.06em}.sgs-home-contact-inner h2+p{margin:0 0 30px;color:#63536e;line-height:1.7}.sgs-home-contact-inner .btn{display:inline-flex;align-items:center;gap:9px;border-radius:7px;background:#593196!important;color:#fff!important;border-color:#593196!important;box-shadow:none!important}.sgs-home-contact-inner .btn:hover{background:#42236e!important;border-color:#42236e!important;transform:translateY(-2px)}
.sgs-section-alt{background:#f7f4fa}.sgs-service-hero,.sgs-page-cta-inner,.sgs-page-cta{background:#211530}.sgs-service-hero{background:radial-gradient(circle at 76% 30%,rgba(146,105,192,.22),transparent 30%),#211530}.sgs-page-content,.sgs-article-content{color:#4e4557;line-height:1.82}.sgs-page-content h2,.sgs-page-content h3,.sgs-article-content h2,.sgs-article-content h3{color:var(--sgs-ink);letter-spacing:-.03em}.sgs-page-content a,.sgs-article-content a{color:#593196}.sgs-footer{background:#17101f}.sgs-footer-heading{color:#c7afe8}.sgs-footer-links a:hover,.sgs-footer-contacts a:hover{color:#d9c7f2}.sgs-btt{background:#593196}
@media(max-width:767px){.sgs-home-intro{padding-top:76px}.sgs-home-display{font-size:clamp(2.25rem,11.5vw,3.35rem)}.sgs-home-situations{grid-template-columns:1fr;margin-top:48px}.sgs-home-situations article,.sgs-home-situations article+article{padding:24px 0;border-right:0;border-bottom:1px solid var(--sgs-line)}.sgs-home-situations article:last-child{border-bottom:0}.sgs-home-service-list{grid-template-columns:1fr;margin-top:40px}.sgs-home-service-list>a,.sgs-home-service-list>a:nth-child(odd),.sgs-home-service-list>a:nth-child(even){min-height:0;padding:25px 0;border-right:0}.sgs-home-contact-inner{border-radius:15px}.sgs-home-contact-inner:after{right:-24%;top:-22%;width:70%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* ══════════════════════════════════════════════════════════════
   INNER PAGES — the editorial system continued past the home page
   ══════════════════════════════════════════════════════════════ */

/* ── Shared reading measure ───────────────────────────────────
   One column width for hero text and body text, so the article
   title and its first paragraph sit on the same left edge. */
.sgs-measure{max-width:748px;margin-inline:auto}

/* ── Editorial index (home journal, archive, related posts) ───
   Replaces the card grid: hairline rules, monospace metadata,
   serif titles. `[hidden]` needs the override because the rows
   are grids and the pagination/topic scripts toggle the attribute. */
.sgs-index{border-top:1px solid var(--sgs-line);margin-top:58px}
.sgs-index-row{display:grid;grid-template-columns:118px 1fr 27px;gap:30px;align-items:start;padding:30px 0;border-bottom:1px solid var(--sgs-line);color:inherit;text-decoration:none}
.sgs-index-row[hidden]{display:none}
.sgs-index-meta{display:flex;flex-direction:column;gap:8px;padding-top:6px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.72rem;font-weight:700}
.sgs-index-meta time{color:#75559b}
.sgs-index-meta em{color:#6f6579;font-size:.63rem;font-style:normal;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.sgs-index-body h3{margin:0 0 10px;color:var(--sgs-ink);font-size:1.45rem;line-height:1.14;letter-spacing:-.035em;transition:color var(--tr)}
.sgs-index-body p{max-width:62ch;margin:0;color:#6c6276;font-size:.9rem;line-height:1.7}
.sgs-index-row>i{display:grid;place-items:center;width:27px;height:27px;margin-top:6px;border:1px solid transparent;border-radius:50%;color:#6c5b7d;font-size:.9rem;transition:var(--tr)}
.sgs-index-row:hover h3{color:#593196}
.sgs-index-row:hover>i{background:#593196;border-color:#593196;color:#fff;transform:translate(2px,-2px)}

/* ── Home journal section ─────────────────────────────────── */
.sgs-home-journal{padding:clamp(82px,10vw,138px) 0;background:#f4f0f8}

/* ── Journal archive ──────────────────────────────────────── */
.sgs-archive{padding:clamp(56px,7vw,86px) 0 clamp(72px,9vw,110px);background:var(--sgs-paper)}
.sgs-archive .sgs-index{margin-top:0}

/* ── Topic filter (archive) and article tags ──────────────── */
.sgs-topics{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:34px}
.sgs-topic{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border:1px solid var(--sgs-line);border-radius:100px;background:transparent;color:#5c5366;font-size:.83rem;font-weight:650;text-decoration:none;transition:var(--tr)}
.sgs-topic span{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.68rem;font-weight:700;color:#6f6579}
.sgs-topic:hover{border-color:rgba(89,49,150,.42);color:#593196}
.sgs-topic:hover span{color:#75559b}
.sgs-topic.is-active{background:#593196;border-color:#593196;color:#fff}
.sgs-topic.is-active span{color:rgba(255,255,255,.66)}
.sgs-topic-result{margin:0 0 22px;color:#6c6276;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.78rem;font-weight:700}

/* ── Pagination ───────────────────────────────────────────── */
.sgs-blog-pagination{margin-top:44px}
.sgs-blog-pagination .nav-links{gap:7px}
.sgs-blog-pagination .page-numbers{min-width:36px;height:36px;border:1px solid var(--sgs-line);border-radius:7px;background:transparent;color:#5c5366;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.78rem;font-weight:700}
.sgs-blog-pagination .page-numbers:hover:not(:disabled){border-color:rgba(89,49,150,.42);background:transparent;color:#593196}
.sgs-blog-pagination .page-numbers.current,.sgs-blog-pagination .page-numbers.current:hover{background:#593196;border-color:#593196;color:#fff}
.sgs-blog-pagination .page-numbers:disabled{opacity:.32;cursor:default}

/* ── Page & post hero ─────────────────────────────────────── */
.sgs-service-hero{padding:clamp(96px,11vw,150px) 0 clamp(52px,6vw,74px)}
.sgs-service-hero .sgs-service-title{margin:0;color:#fff;font-size:clamp(2rem,4vw,3.4rem);line-height:1.05;letter-spacing:-.05em}
.sgs-service-hero .sgs-service-subtitle{max-width:62ch;margin:20px 0 0;color:rgba(255,255,255,.68);font-size:1.02rem;line-height:1.72}
.sgs-breadcrumb,.sgs-service-breadcrumb{display:flex;align-items:center;gap:9px;margin-bottom:26px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.72rem;font-weight:700;color:rgba(255,255,255,.42)}
.sgs-breadcrumb a,.sgs-service-breadcrumb a{color:rgba(255,255,255,.62);text-decoration:none;transition:color var(--tr)}
.sgs-breadcrumb a:hover,.sgs-service-breadcrumb a:hover{color:#d9c7f2}
.sgs-post-hero{padding-bottom:clamp(46px,5vw,64px)}
.sgs-post-kicker{margin:0 0 16px;color:#c7afe8;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.68rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.sgs-post-title{margin:0;color:#fff;font-size:clamp(1.85rem,3.5vw,3rem);line-height:1.08;letter-spacing:-.045em;text-wrap:balance}
.sgs-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:24px 0 0;color:rgba(255,255,255,.5);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.74rem;font-weight:700}
.sgs-post-meta a{color:rgba(255,255,255,.72);text-decoration:none;border-bottom:1px solid rgba(255,255,255,.24);transition:var(--tr)}
.sgs-post-meta a:hover{color:#d9c7f2;border-bottom-color:#d9c7f2}

/* ── Author / expert profile ──────────────────────────────── */
.sgs-profile-head{display:flex;align-items:center;gap:24px}
.sgs-profile-avatar{width:96px;height:96px;flex-shrink:0;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.16)}
.sgs-profile-role{margin:14px 0 0;color:#c7afe8;font-size:.95rem;font-weight:600}
.sgs-profile-bio{max-width:62ch;margin:26px 0 0;color:rgba(255,255,255,.68);font-size:1.02rem;line-height:1.72}

/* ── Article body ─────────────────────────────────────────── */
.sgs-post{padding:clamp(48px,6vw,72px) 0 clamp(64px,8vw,96px);background:var(--sgs-paper)}
.sgs-post-lead-image{display:block;width:100%;margin-bottom:44px;border-radius:var(--sgs-radius)}
.sgs-article-content{font-size:1.055rem}
.sgs-article-content>p:first-of-type{color:#3f3749;font-size:1.16rem;line-height:1.72}
.sgs-article-content h2{margin:2.3em 0 .6em;font-size:clamp(1.55rem,2.5vw,2.05rem);line-height:1.16}
.sgs-article-content h3{margin:1.9em 0 .5em;font-size:1.28rem;line-height:1.24}
.sgs-article-content p{margin:0 0 1.35em}
.sgs-article-content a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:rgba(89,49,150,.34);transition:var(--tr)}
.sgs-article-content a:hover{text-decoration-color:#593196}
.sgs-article-content ul,.sgs-article-content ol{margin:0 0 1.35em;padding-left:1.35em}
.sgs-article-content li{margin-bottom:.5em;padding-left:.2em}
.sgs-article-content ul li::marker{color:#a58cc9}
.sgs-article-content ol li::marker{color:#75559b;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.85em;font-weight:700}
.sgs-article-content blockquote{margin:2em 0;padding:2px 0 2px 26px;border-left:2px solid #593196;color:#3f3749;font-family:Georgia,"Times New Roman",serif;font-size:1.14rem;font-style:italic;line-height:1.66}
.sgs-article-content blockquote p:last-child{margin-bottom:0}
.sgs-article-content img{max-width:100%;height:auto;border-radius:var(--sgs-radius)}
.sgs-article-content table{width:100%;margin:2em 0;border-collapse:collapse;font-size:.92rem}
.sgs-article-content th,.sgs-article-content td{padding:12px 14px;border-bottom:1px solid var(--sgs-line);text-align:left}
.sgs-article-content th{color:var(--sgs-ink);font-family:Manrope,"Segoe UI",sans-serif;font-size:.74rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}

/* ── Expert comment ───────────────────────────────────────────
   Re-homed from `.sgs-page-content` (premium.css) onto the article
   wrapper and restated as a pull quote: hairline rule instead of the
   gradient card, and a label that follows the page language — the old
   one said “Коментар експерта” on English articles too. */
.sgs-article-content .sgs-expert-comment{position:relative;margin:2.6em 0;padding:0 0 0 26px;border:0;border-left:2px solid #593196;border-radius:0;background:none;box-shadow:none}
.sgs-article-content .sgs-expert-comment::before{content:"Коментар експерта";position:static;display:block;margin-bottom:12px;color:#75559b;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.66rem;font-weight:700;letter-spacing:.13em;line-height:1.4;text-transform:uppercase}
html[lang="en"] .sgs-article-content .sgs-expert-comment::before{content:"Expert comment"}
.sgs-article-content .sgs-expert-text{margin:0!important;padding-left:0;color:#3f3749;font-family:Georgia,"Times New Roman",serif;font-size:1.15rem;font-style:italic;font-weight:400;line-height:1.66}
.sgs-article-content .sgs-expert-name{margin:14px 0 0!important;padding-left:0;color:#6c6276;font-family:Manrope,"Segoe UI",sans-serif;font-size:.85rem;font-style:normal}
.sgs-article-content .sgs-expert-name strong{color:var(--sgs-ink);font-weight:750}

/* ── Article footer: tags + author ────────────────────────── */
.sgs-post-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:52px;padding-top:30px;border-top:1px solid var(--sgs-line)}
.sgs-post-tags-label{margin-right:6px;color:#6f6579;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.68rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.sgs-article-author{display:grid;grid-template-columns:62px 1fr;gap:20px;align-items:center;margin-top:34px;padding:26px 28px;border:1px solid var(--sgs-line);border-radius:var(--sgs-radius);background:#f7f4fa;color:inherit;text-decoration:none;transition:var(--tr)}
.sgs-article-author:hover{border-color:rgba(89,49,150,.34);background:#f3eefa}
.sgs-article-author img{width:62px;height:62px;border-radius:50%;object-fit:cover}
.sgs-article-author span{display:flex;flex-direction:column;gap:3px}
.sgs-article-author small{color:#6f6579;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.65rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.sgs-article-author strong{color:var(--sgs-ink);font-family:Georgia,"Times New Roman",serif;font-size:1.16rem;font-weight:700;letter-spacing:-.02em}
.sgs-article-author em{color:#6c6276;font-size:.86rem;font-style:normal;line-height:1.5}
.sgs-article-author b{display:inline-flex;align-items:center;gap:6px;margin-top:7px;color:#593196;font-size:.82rem;font-weight:750}
.sgs-article-author:hover b i{transform:translate(2px,-2px)}
.sgs-article-author b i{transition:var(--tr)}

/* ── Related posts ────────────────────────────────────────── */
.sgs-post-related{padding:clamp(72px,9vw,116px) 0;background:#f4f0f8;border-top:1px solid var(--sgs-line)}

@media(max-width:767px){
  .sgs-index{margin-top:40px}
  .sgs-index-row{grid-template-columns:1fr 24px;gap:14px;padding:24px 0}
  .sgs-index-meta{flex-direction:row;align-items:center;gap:12px;grid-column:1/-1;padding-top:0}
  .sgs-index-body{grid-column:1}
  .sgs-index-body h3{font-size:1.22rem}
  .sgs-index-row>i{margin-top:2px}
  .sgs-topics{gap:6px;padding-bottom:26px}
  /* Comfortable thumb targets: the desktop chip is 36px tall, which clears the WCAG
     minimum but is tight for touch. */
  .sgs-topic{min-height:44px;padding:9px 15px}
  .sgs-blog-pagination .page-numbers{min-width:44px;height:44px}
  .sgs-post-tags{margin-top:40px}
  .sgs-article-author{grid-template-columns:1fr;gap:14px;padding:22px}
  .sgs-profile-head{gap:16px}
  .sgs-profile-avatar{width:64px;height:64px}
}

