
/* DM Sans */
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/atf-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/atf-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fira Code */
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/atf-3.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/atf-4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/atf-5.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/atf-6.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* symbols2 */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/atf-7.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/atf-8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/atf-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =================================================================
   Algotech — homepage mockup v3
   Dark (brand original) palette + starfield, modern & friendly.
   ================================================================= */

:root {
    --primary:   #00AEEF;
    --primary-2: #33c2f4;
    --deep:      #00517B;
    --grad:      linear-gradient(135deg, #16c0f7 0%, #00AEEF 40%, #00517B 100%);
    --grad-soft: linear-gradient(135deg, rgba(0,174,239,.16), rgba(0,81,123,.10));

    --f-display: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-body:    "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-quote:   "Inter", system-ui, sans-serif;
    --f-mono:    "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --maxw: 1180px;
    --r-lg: 22px; --r: 16px; --r-sm: 11px;
    --gap: clamp(1rem, 2.2vw, 1.5rem);
    --pad: clamp(3.5rem, 8vw, 7rem);
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* Dark — brand ORIGINAL warm palette (default) */
[data-theme="dark"] {
    --bg:      #1A1814;
    --panel:   rgba(252,252,251,.022);   /* faint rhythm; stars still show */
    --card:    #221F19;
    --card-2:  #2b2821;
    --ink:     #FCFCFB;
    --muted:   #A6ADB2;
    --line:    rgba(252,252,251,.10);
    --line-2:  rgba(252,252,251,.18);
    --link:    #2bbcf5;
    --tile-ink:#fff;
    --header-bg: rgba(20,18,15,.66);
    --shadow:    0 24px 60px -22px rgba(0,0,0,.75);
    --shadow-cy: 0 22px 55px -20px rgba(0,150,210,.45);
    --tile-soft: rgba(0,174,239,.14);
    --stars: 1;
}

/* Light (toggle) */
[data-theme="light"] {
    --bg:      #FCFCFB;
    --panel:   rgba(0,40,60,.025);
    --card:    #FFFFFF;
    --card-2:  #F4F3F0;
    --ink:     #0C1E28;
    --muted:   #5C6B73;
    --line:    rgba(12,30,40,.10);
    --line-2:  rgba(12,30,40,.16);
    --link:    #00517B;
    --tile-ink:#fff;
    --header-bg: rgba(252,252,251,.80);
    --shadow:    0 20px 44px -18px rgba(8,40,60,.20);
    --shadow-cy: 0 22px 55px -20px rgba(0,120,175,.4);
    --tile-soft: #EAF7FD;
    --stars: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0; background: transparent; color: var(--ink);
    font-family: var(--f-body); font-size: clamp(1rem,.96rem + .2vw,1.07rem); line-height: 1.65;
    -webkit-font-smoothing: antialiased; transition: color .4s var(--ease);
}

/* Starfield (fixed, behind everything) */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

h1,h2,h3,h4 { font-family: var(--f-display); margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 5px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.eyebrow { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--primary); }
.lead { color: var(--muted); font-size: clamp(1.05rem,1rem + .45vw,1.27rem); max-width: 54ch; }

.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-weight: 700; font-size: .98rem; padding: .82rem 1.5rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-cy); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn .arr { transition: transform .18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Header */
.header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1.1rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo svg { height: 30px; width: auto; display: block; }
.footer .logo svg { height: 26px; }
.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav > a, .has-sub > a { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav > a:hover, .has-sub > a:hover { color: var(--primary); }
.has-sub { position: relative; }
.caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .2s; }
.has-sub:hover .caret { transform: rotate(-135deg) translateY(-1px); }
.submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: .45rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 70; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.submenu a:hover { background: var(--tile-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .55rem; margin-left: .3rem; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.burger { display: none; }

/* Language switcher (mod_languages override, position "languages", v2.11.0) — click opens the list */
.lang-switch { position: relative; }
.lang-toggle .lang-code { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .06em; }
.lang-switch.open .lang-toggle { border-color: var(--primary); color: var(--primary); }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; margin: 0; list-style: none;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
    padding: .45rem; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 90;
}
.lang-switch.open .lang-menu, html:not(.js) .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); font-size: .92rem; text-decoration: none; transition: color .15s, background .15s; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--tile-soft); color: var(--primary); }
.lang-menu .lang-code { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; color: var(--muted); }
.lang-menu a[aria-current] { color: var(--primary); font-weight: 600; }
.lang-menu a[aria-current] .lang-code { color: var(--primary); }

/* Hero */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 55% at 80% 8%, rgba(0,174,239,.16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-top: clamp(3rem,7vw,5.5rem); padding-bottom: clamp(3rem,7vw,5rem); }
.hero h1 { max-width: 14ch; margin-bottom: 1.3rem; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.6rem; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.hero-note .tick { color: var(--primary); }

/* Hero visual: constellation — algotech core, services scattered around */
.constellation { position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 1 / 1; }
.constellation svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cn-line { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cn-flow { stroke: var(--primary); stroke-width: 1.4; stroke-dasharray: 2 8; vector-effect: non-scaling-stroke; opacity: .85; animation: cnflow 2.4s linear infinite; }
@keyframes cnflow { to { stroke-dashoffset: -30; } }
.node { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .45rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .72rem .38rem .42rem; font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); animation: cnbob 6s var(--ease) infinite; }
.node .ni { width: 27px; height: 27px; border-radius: 22%; object-fit: contain; flex: none; background: #fff; }
@keyframes cnbob { 50% { translate: 0 -6px; } }
.node-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(84px, 23%, 104px); aspect-ratio: 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle at 32% 28%, #2bc4f8, #00517B); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: .96rem; letter-spacing: -.03em; box-shadow: 0 0 0 6px rgba(0,174,239,.10), 0 0 40px rgba(0,174,239,.45); animation: cnpulse 3.8s var(--ease) infinite; z-index: 2; }
@keyframes cnpulse { 0%,100% { box-shadow: 0 0 0 6px rgba(0,174,239,.10), 0 0 36px rgba(0,174,239,.40); } 50% { box-shadow: 0 0 0 11px rgba(0,174,239,.05), 0 0 54px rgba(0,174,239,.62); } }
@media (prefers-reduced-motion: reduce) { .cn-flow, .node, .node-core { animation: none; } }
@media (max-width: 560px) { .node { font-size: .7rem; padding: .3rem .58rem .3rem .34rem; } .node .ni { width: 20px; height: 20px; } }

/* Logos */
.logos-strip { padding-block: clamp(1.6rem,3vw,2.4rem); border-block: 1px solid var(--line); background: var(--panel); }
.logos-strip .lab { text-align: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.4rem; }
.logos .l { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: var(--muted); opacity: .6; transition: opacity .2s, color .2s; }
.logos .l:hover { opacity: 1; color: var(--ink); }

section { padding-block: var(--pad); position: relative; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem,4vw,3rem); }
.section-head h2 { margin-bottom: .9rem; }
.panel { background: var(--panel); border-block: 1px solid var(--line); }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }

.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem; display: flex; flex-direction: column; gap: .7rem; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard .tile { width: 58px; height: 58px; margin-bottom: .4rem; }
.pcard .tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; background: #fff; }
.pcard p { color: var(--muted); font-size: .96rem; }
.pcard .more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--link); display: inline-flex; gap: .35rem; }
.pcard .more .arr { transition: transform .18s var(--ease); }
.pcard:hover .more .arr { transform: translateX(3px); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.step { position: relative; }
.step .n { font-family: var(--f-mono); font-weight: 600; font-size: .8rem; color: var(--primary); border: 1.5px solid var(--primary); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; background: var(--bg); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .93rem; }
.step::after { content: ""; position: absolute; top: 19px; left: 46px; right: -8px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }

.why { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1.2rem,3vw,2.4rem); }
.feat { display: flex; gap: .9rem; }
.feat .fi { flex: none; width: 50px; height: 50px; display: grid; place-items: center; color: var(--primary); }
.feat .fi img { width: 100%; height: 100%; object-fit: contain; display: block; }
.feat h3 { margin-bottom: .3rem; }
.feat p { color: var(--muted); font-size: .94rem; }

.stats-card { background: var(--card); border: 1px solid var(--line); border-radius: clamp(18px,3vw,28px); padding: clamp(2.2rem,4vw,3.2rem); position: relative; overflow: hidden; }
.stats-card::after { content: ""; position: absolute; right: -8%; top: -50%; width: 45%; height: 200%; background: radial-gradient(circle, rgba(0,174,239,.14), transparent 60%); }
.stat .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: clamp(2.2rem,1.4rem + 2.2vw,3rem); letter-spacing: -.02em; }
.stat .num span { color: var(--primary); }
.stat .cap { color: var(--muted); font-size: .92rem; margin-top: .2rem; }

.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post .thumb { height: 158px; background: var(--grad); position: relative; }
.post .thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.22), transparent 55%); }
.post .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.post .meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; gap: .55rem; }
.post .meta .tag { color: var(--primary); }
.post h3 { font-size: 1.06rem; }
.post p { color: var(--muted); font-size: .91rem; }

.talk { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(2rem,4vw,3.4rem); }
.talk h2 { margin-bottom: .9rem; }
.talk .lead { margin-bottom: 1.6rem; }
.person { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: var(--r); background: var(--card-2); border: 1px solid var(--line); }
.person .ava { width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; flex: none; box-shadow: var(--shadow-cy); }
.person .pn { font-weight: 700; }
.person .pr { font-size: .86rem; color: var(--muted); }
.person .pmeta { margin-top: .5rem; font-size: .84rem; color: var(--primary); font-family: var(--f-mono); }

.footer { background: var(--panel); border-top: 1px solid var(--line); padding-top: clamp(3rem,6vw,4.5rem); }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer h4 { font-size: .78rem; font-family: var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer a { color: var(--muted); font-size: .92rem; }
.footer a:hover { color: var(--primary); }
.footer .about-col p { color: var(--muted); font-size: .92rem; margin: .8rem 0 1.1rem; max-width: 34ch; }
.social { display: flex; gap: .55rem; }
.social a { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; }
.social svg { width: 17px; height: 17px; }
.legal { border-top: 1px solid var(--line); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.legal a { color: var(--muted); } .legal a:hover { color: var(--primary); }

.reveal.is-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal.is-reveal { opacity: 1 !important; transform: none !important; } }

@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 460px; }
    .grid--3, .grid--4, .steps { grid-template-columns: repeat(2,1fr); }
    .why { grid-template-columns: 1fr; }
    .talk { grid-template-columns: 1fr; }
    .footer .cols { grid-template-columns: 1fr 1fr; }
    .step::after { display: none; }
    .nav { position: fixed; inset: 0 0 0 auto; width: min(330px,86vw); flex-direction: column; align-items: stretch; gap: .1rem; background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow); padding: 5.5rem 1.1rem 2rem; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; z-index: 55; }
    .nav.open { transform: translateX(0); }
    .nav > a, .has-sub > a { padding: .8rem .6rem; font-size: 1.02rem; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; background: transparent; }
    .has-sub:hover .caret { transform: rotate(45deg) translateY(-1px); }
    .burger { display: inline-grid; }
}
@media (max-width: 560px) { .grid--3, .grid--4, .steps { grid-template-columns: 1fr; } .footer .cols { grid-template-columns: 1fr; } }


/* ===== Joomla integration ===== */
html { background: var(--bg); }
body { background: transparent; }
.site-main { padding-block: var(--pad); }
.site-main .wrap { width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:clamp(1.1rem,4vw,2rem); }

/* Logo as themed images */
.logo-img { height: 30px; width: auto; display: block; }
.logo-dark { display: none; }
[data-theme="light"] .logo-light { display: none; }
[data-theme="light"] .logo-dark  { display: block; }
.footer .logo-img { height: 26px; }

/* ---- Navigation (clean nested list via mod_menu override) ---- */
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: .1rem; }
.nav li { position: relative; }

.nav .nav-link, .nav .nav-header {
    display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-radius: 9px;
    color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap;
    transition: color .15s, background .15s;
}
.nav .nav-header { cursor: default; }
.nav .nav-link:hover, .nav li.current > .nav-link, .nav li.active > .nav-link { color: var(--primary); }

/* caret on items that have children (link or separator parent) */
.nav li.parent > .nav-link::after, .nav li.parent > .nav-header::after {
    content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-2px); margin-left: .35rem; transition: transform .2s; flex: none;
}
.nav li.parent:hover > .nav-link::after, .nav li.parent:hover > .nav-header::after { transform: rotate(-135deg) translateY(0); }

/* dropdown */
.nav li ul {
    position: absolute; top: 100%; left: 0; min-width: 230px; margin: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
    padding: .45rem; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 90;
}
.nav li:hover > ul, .nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav li ul .nav-link { display: block; width: 100%; }
.nav li ul .nav-link:hover { background: var(--tile-soft); color: var(--primary); }
.nav li ul li ul { top: -.45rem; left: 100%; }

@media (max-width: 980px) {
    .nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
    .nav .nav-link, .nav .nav-header { padding: .8rem .6rem; font-size: 1.02rem; }
    .nav li ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; background: transparent; }
}

/* ---- Trust / partners strip (under hero) ---- */
.trust { background: var(--panel); border-block: 1px solid var(--line); padding-block: clamp(1.8rem, 3.5vw, 2.6rem); }
.trust .lab { text-align: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.3rem; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.trust-chip { background: #fff; border-radius: 12px; height: 64px; padding: 0 1.4rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px -10px rgba(0,0,0,.3); }
.trust-chip img { max-height: 34px; width: auto; display: block; }
@media (max-width: 560px) { .trust-chip { height: 54px; padding: 0 1rem; } .trust-chip img { max-height: 26px; } }

/* ---- News page (Category Blog override) + article thumbs as links ---- */
.post .thumb { display: block; }
.post h3 a { color: inherit; text-decoration: none; }
.post:hover h3 a { color: var(--primary); }
.thumb.has-img { background-size: cover; background-position: center; }

.news-page { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }
.news-featured .grid--3 { align-items: stretch; }
.news-page .sechead { margin-bottom: 1.4rem; }
.news-page .sechead h2 { font-size: 1.7rem; }
.news-head h1 { font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4rem); max-width: 18ch; }
/* the global `section { padding-block: var(--pad) }` is meant for full-width home/about
   sections; inside the news page the flex gap handles spacing, so cancel it */
.news-page section { padding-block: 0; }

.rows { display: flex; flex-direction: column; gap: var(--gap); }
.lrow { display: grid; grid-template-columns: 250px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s var(--ease); }
.lrow:hover { border-color: var(--line-2); }
.lrow .thumb { display: block; min-height: 180px; background: var(--grad); }
.lrow .body { padding: 1.5rem 1.8rem; display: flex; flex-direction: column; gap: .55rem; justify-content: center; }
.lrow h3 { font-size: 1.3rem; }
.lrow h3 a { color: inherit; text-decoration: none; }
.lrow:hover h3 a { color: var(--primary); }
.lrow p { color: var(--muted); margin: 0; max-width: 78ch; }
.lmeta { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lmeta .role { color: var(--primary); }

@media (max-width: 900px) {
    .lrow { grid-template-columns: 1fr; }
    .lrow .thumb { min-height: 170px; }
}

/* ---- Single article view ---- */
.article-single { max-width: 820px; margin-inline: auto; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; transition: color .15s; }
.back-link:hover { color: var(--primary); }
.article-hero { height: clamp(220px, 40vw, 380px); border-radius: var(--r-lg); background-size: cover; background-position: center; margin-bottom: 2rem; border: 1px solid var(--line); }
.article-title { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); margin: 0 0 1.2rem; }
.article-byline { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.5rem; }
.article-byline .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: .8rem; }
.article-byline .author { color: var(--ink); font-weight: 600; }
.article-byline .role { color: var(--primary); }
.article-byline .date::before { content: "·"; margin-right: .6rem; }
.article-body { font-size: 1.06rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.2rem; }
.article-body h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.article-body h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.4rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--link); text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r); margin: 1rem 0; }
.article-body blockquote { border-left: 3px solid var(--primary); margin: 1.5rem 0; padding: .5rem 1.25rem; color: var(--muted); font-family: var(--f-quote); font-style: italic; }

/* bigger back arrow, matching the "Czytaj więcej" arrow behaviour */
.back-link .arr { font-size: 1.15rem; line-height: 1; transition: transform .18s var(--ease); }
.back-link:hover .arr { transform: translateX(-3px); }

/* ---- Legal document (privacy policy etc.) ----
   NOTE: use .legal-doc, NOT .legal — .legal is already taken by the footer
   copyright row (display:flex + small muted font); reusing it scrambles the
   whole article and shrinks the text.
   Content stays semantic in the article (one <h2> per numbered clause).
   Roman numerals I, II, III… are computed by CSS from clause position,
   so adding/removing/reordering an <h2> renumbers automatically — the
   editor never types a number. Wrap the body in <div class="legal-doc"> and
   optionally mark the intro <p class="lead"> and contact <p class="contact">. */
/* smaller title for legal docs (long clause headings shouldn't hit the 3.4rem max) */
.article-title--legal { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.legal-doc { counter-reset: clause; }
.legal-doc h2 {
    counter-increment: clause;
    display: flex; align-items: baseline; gap: .75rem;
    font-size: 1.4rem;
}
.legal-doc h2::before {
    content: counter(clause, upper-roman);
    flex: none;
    font-family: var(--f-mono); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
    padding: .18em .55em; border-radius: 7px;
    transform: translateY(-.15em);
}
/* <h3>/<h4> inside .legal-doc stay un-numbered — use them for sub-headings */
.legal-doc .lead {
    max-width: none; color: var(--ink); font-size: 1.08rem;
    background: var(--card); border: 1px solid var(--line);
    border-left: 3px solid var(--primary); border-radius: var(--r-lg);
    padding: 1.1rem 1.3rem; margin: 0 0 2.4rem;
}
.legal-doc .lead b { color: var(--primary); font-weight: 600; }
.legal-doc .contact {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    padding: .9rem 1.1rem; margin: -.4rem 0 1.6rem; font-size: .98rem;
    font-family: var(--f-mono);
}
.legal-doc .contact a { color: var(--primary); text-decoration: none; font-weight: 500; }
.legal-doc .contact a:hover { text-decoration: underline; }

/* =========================================================
   About page ("O nas") — full-width module sections (about-*)
   Distinct from home (no card-grid copy): manifest statement,
   principle rows, oversized figures, team. Contact reuses .talk.
   ========================================================= */
.about-hero { padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.about-hero h1 { font-size: clamp(2.5rem, 1.4rem + 5.4vw, 5.8rem); line-height: 1; max-width: 16ch; margin-bottom: 1.4rem; }
.about-hero h1 em { font-style: normal; color: var(--primary); }
.about-hero .lead { max-width: 48ch; }

.about-manifest p { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem); line-height: 1.18; max-width: 26ch; margin: 0; text-wrap: balance; }
.about-manifest u { text-decoration: none; color: var(--primary); }

.about-principles .rows { border-top: 1px solid var(--line); }
.about-principle { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.about-principle .ic { width: 54px; height: 54px; border-radius: 14px; flex: none;
  background: rgba(0,174,239,.10); border: 1px solid rgba(0,174,239,.22); display: grid; place-items: center; }
.about-principle .ic img { width: 30px; height: 30px; object-fit: contain; display: block; }
.about-principle h3 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); margin-bottom: .4rem; }
.about-principle p { color: var(--muted); margin: 0; max-width: 62ch; }

.about-figures .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.about-figure .n { font-family: var(--f-display); font-weight: 800; line-height: .9; letter-spacing: -.04em;
  font-size: clamp(3rem, 2rem + 6vw, 6rem); font-variant-numeric: tabular-nums; }
.about-figure .n span { color: var(--primary); }
.about-figure p { color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin: .8rem 0 0; }

.about-team .members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.about-member { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem;
  transition: transform .2s var(--ease), border-color .2s; }
.about-member:hover { transform: translateY(-4px); border-color: var(--line-2); }
.about-member .ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; display: block;
  margin-bottom: 1rem; background: linear-gradient(160deg, var(--card-2), #1c1a15); }
.about-member .ph--empty { display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--primary); }
.about-member h3 { font-size: 1.1rem; }
.about-member .role { font-family: var(--f-mono); font-size: .8rem; color: var(--primary); margin: .3rem 0 .6rem; }
.about-member p { color: var(--muted); font-size: .92rem; margin: 0; }

@media (max-width: 820px) { .about-team .members { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .about-figures .grid3 { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 480px) { .about-team .members { grid-template-columns: 1fr; } }

/* =================================================================
   Kontakt (com_contact single-contact override)
   ================================================================= */
/* site-main already provides top/bottom padding (var(--pad)); don't stack more */
.contact-page { padding-block: 0; }

.c-hero { padding-block: 0 clamp(1.5rem, 4vw, 2.6rem); }
.c-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4rem); max-width: 15ch; }
.c-hero h1 em { font-style: normal; color: var(--primary); }
.c-hero .lead { margin-top: 1.2rem; }

.contact-page .c-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
@media (max-width: 880px) { .contact-page .c-grid { grid-template-columns: 1fr; } }

.contact-page .form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.contact-page .form-card h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.contact-page .form-card .sub { color: var(--muted); font-size: .96rem; margin: 0 0 1.6rem; }
.contact-page .req { color: var(--primary); }

/* Native Joomla field markup, reskinned */
.contact-form .cf-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-form .control-group { margin-bottom: 1.1rem; }
.contact-form .control-label label,
.contact-form label.control-label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .45rem; }
.contact-form .control-label .star { color: var(--primary); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form input[type="url"], .contact-form textarea, .contact-form select {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .85rem 1rem; transition: border-color .15s, box-shadow .15s; }
.contact-form textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); opacity: .7; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,174,239,.16); }

.contact-form .consent { display: flex; gap: .7rem; align-items: flex-start; margin: .4rem 0 1.4rem;
  color: var(--muted); font-size: .86rem; line-height: 1.5; }
.contact-form .consent input { margin-top: .15rem; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.contact-form .consent a { color: var(--primary); text-decoration: underline; }
.contact-form .form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.contact-form .btn .arr { transition: transform .18s var(--ease); }
.contact-form .btn:hover .arr { transform: translateX(3px); }
.contact-form .form-foot .note { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }

/* Custom (hand-rolled) fields */
.contact-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .contact-form .frow { grid-template-columns: 1fr; } }
.contact-form .field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.contact-form .field label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-form .opt-copy { display: flex; gap: .6rem; align-items: center; margin: .2rem 0 1.1rem; color: var(--muted); font-size: .88rem; }
.contact-form .opt-copy input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }

/* Info card */
.contact-page .info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 3.5vw, 2.2rem); }
.contact-page .info-card .eyebrow { margin-bottom: 1.2rem; }
.contact-page .info-item { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-page .info-item:last-of-type { border-bottom: 0; }
.contact-page .info-item .ii { width: 42px; height: 42px; border-radius: var(--r-sm); flex: none; display: grid; place-items: center;
  background: rgba(0,174,239,.10); border: 1px solid rgba(0,174,239,.22); color: var(--primary); }
.contact-page .info-item .il { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-page .info-item .iv { font-weight: 600; }
.contact-page .info-item .iv a:hover { color: var(--primary); }
.contact-page .info-item .iv span { display: block; color: var(--muted); font-weight: 400; font-size: .92rem; }

/* Map (click-to-load) */
.c-map-wrap { margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: 0; }
.c-map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  height: clamp(280px, 42vw, 440px); background: radial-gradient(120% 120% at 30% 20%, #1f2c42, #151b12); }
[data-theme="light"] .c-map { background: radial-gradient(120% 120% at 30% 20%, #dbe7f4, #eef1f0); }
.c-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.c-map__facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; text-align: center; padding: 2rem; background: radial-gradient(120% 120% at 50% 0%, rgba(0,174,239,.07), transparent 60%); }
.c-map__facade .pin { color: var(--primary); }
.c-map__t { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.c-map__s { color: var(--muted); font-size: .9rem; max-width: 48ch; margin: .5rem auto 0; line-height: 1.55; }
.c-map__pp { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.c-map__pp:hover { color: var(--primary); }

/* =================================================================
   v2.9.0 — Rozwiązania: mega menu, #hashtagi (Joomla Tags),
   filary na home, podstrony produktów (.product-page), strona tagu
   ================================================================= */
[data-theme="dark"]  { --tag-bg: rgba(0,174,239,.08); --tag-line: rgba(0,174,239,.28); }
[data-theme="light"] { --tag-bg: #EAF7FD; --tag-line: rgba(0,81,123,.25); }

/* ---- Mega menu: Link Class "mega" on the top item; its children = columns ---- */
.nav li.mega { position: static; }
.nav li.mega > ul {
    left: 0; right: 0; margin-inline: auto; width: min(1080px, calc(100% - 2rem));
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .7rem;
}
.nav li.mega > ul::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; } /* hover bridge */
.nav li.mega > ul > li { border-radius: 12px; padding: .9rem .9rem .7rem; transition: background .15s; }
.nav li.mega > ul > li:hover { background: var(--tile-soft); }
.nav li.mega > ul > li > .nav-link { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: 0 0 .7rem; white-space: normal; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.nav li.mega > ul > li > .nav-link::after { display: none; }
.nav .mt { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.nav li.mega > ul > li > .nav-link:hover .mt { color: var(--primary); }
.nav .ms { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.nav li.mega > ul > li > ul { position: static; opacity: 1; visibility: inherit; /* inherit, not visible: hidden panel must not catch hover */ transform: none; box-shadow: none; border: 0; background: transparent; padding: .45rem 0 0; min-width: 0; }
.nav li.mega > ul > li > ul .nav-link { padding: .38rem .2rem; font-size: .9rem; color: var(--muted); white-space: normal; background: none; }
.nav li.mega > ul > li > ul .nav-link:hover { color: var(--primary); background: none; }
@media (max-width: 980px) {
    .nav li.mega { position: relative; }
    .nav li.mega > ul { display: block; width: auto; margin: 0; padding: 0 0 .4rem 1rem; }
    .nav li.mega > ul::before { display: none; }
    .nav li.mega > ul > li { padding: .3rem 0; }
    .nav li.mega > ul > li > .nav-link { padding-bottom: .4rem; }
    .nav li.mega > ul > li > ul { padding-left: .8rem; }
    .nav .ms { display: none; }
}

/* ---- #hashtagi ---- */
.htags { display: flex; flex-wrap: wrap; gap: .4rem; }
.htag { display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .02em; line-height: 1.4; white-space: nowrap;
    color: var(--ink); background: var(--tag-bg); border: 1px solid var(--tag-line); padding: .22rem .6rem; border-radius: 999px; text-decoration: none; }
.htag::before { content: "#"; color: var(--primary); margin-right: .05rem; }
a.htag { transition: border-color .15s, color .15s; }
a.htag:hover { border-color: var(--primary); color: var(--primary); }
.article-tags { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }


/* hero: węzły-hashtagi w konstelacji */
.node--tag { font-family: var(--f-mono); font-weight: 500; padding: .42rem .8rem; }
.node--tag b { color: var(--primary); font-weight: 600; margin-right: .1rem; }

/* ---- Podstrona produktu (artykuł z wrapperem .product-page) ---- */
.is-products .site-main { padding-bottom: clamp(3rem, 7vw, 5rem); }
.product-page { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5rem); }
.product-page > section { padding-block: 0; }
.product-page [id] { scroll-margin-top: 100px; }
.crumbs { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs span[aria-hidden] { opacity: .5; }
.pp-hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); max-width: 17ch; margin-bottom: 1.3rem; }
.pp-hero h1 em { font-style: normal; color: var(--primary); }
.pp-hero .lead { max-width: 60ch; margin-bottom: 1.6rem; }

.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.use { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.use--wide { grid-column: 1 / -1; }
.use .use-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; color: var(--primary); }
.use h3 { font-size: 1.25rem; }
.use p { color: var(--muted); font-size: .96rem; max-width: 70ch; }

/* poświata w tle samej ramki (v2.14.0; wcześniej warstwa ::after o szerokości 50%: gradient nie wygasał przed jej krawędzią i był ucięty) */
.product-page > .pp-band { background: radial-gradient(90% 120% at 0% 100%, var(--band-glow), transparent 55%), var(--card); border: 1px solid var(--line); border-radius: clamp(18px,3vw,28px); padding: clamp(1.8rem,4vw,3rem); }
.pp-band .head { max-width: 62ch; margin-bottom: 2rem; }
.pp-band .head h2 { margin-bottom: .8rem; }
.pp-band .head .btn { margin-top: 1.4rem; }
.pp-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pp-notes div { font-size: .92rem; color: var(--muted); min-width: 0; }
.pp-notes b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: .25rem; }
.pp-notes--facts b { font-family: var(--f-mono); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; color: var(--primary); }




.pp-related { padding-block: 0 clamp(1rem, 3vw, 2rem); }

/* ---- Strona tagu (com_tags) ---- */
.tag-title::before { content: "#"; color: var(--primary); }
.tag-page .news-head .lead { margin-top: 1rem; }
.pagination-wrap ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.pagination-wrap a, .pagination-wrap span { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); font-size: .9rem; }
.pagination-wrap a:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 980px) {
    .pp-notes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .uses { grid-template-columns: 1fr; }
}

/* =================================================================
   Constellation menu in the home hero (v2.10.0) — mod_menu layout "constellation"
   .cst-src = plain nested list (no JS / crawlers) · JS adds .cst (stage) + .cst-cap (caption)
   ================================================================= */
.cst-wrap { width: 100%; max-width: 500px; margin-inline: auto; }
.cst-wrap.is-live .cst-src { display: none; }
/* JS on, not built yet: reserve the exact stage + caption height so the hero does not jump */
.js .cst-wrap:not(.is-live):not(.is-failed) .cst-src { display: none; }
.js .cst-wrap:not(.is-live):not(.is-failed)::before { content: ""; display: block; aspect-ratio: 1 / 1; }
.js .cst-wrap:not(.is-live):not(.is-failed)::after { content: ""; display: block; height: 12.1rem; }

/* fallback list */
.cst-src { padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.cst-root { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: .6rem; }
.cst-list, .cst-list ul { list-style: none; margin: 0; padding: 0; }
.cst-list > li { padding-block: .7rem; border-top: 1px solid var(--line); }
.cst-list > li > a, .cst-list > li > span { font-weight: 700; color: var(--ink); }
.cst-list small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.cst-list ul { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.cst-list ul small { display: none; }
.cst-list ul li > a, .cst-list ul li > span { display: inline-block; font-family: var(--f-mono); font-size: .76rem; padding: .2rem .6rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); }

/* stage */
.cst { position: relative; width: 100%; aspect-ratio: 1 / 1; container-type: inline-size; --orb: clamp(96px, 26cqw, 128px); }
.cst-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.cst-ln { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cst-flow { stroke: var(--primary); stroke-width: 1.4; stroke-dasharray: 2 8; vector-effect: non-scaling-stroke; animation: cnflow 2.4s linear infinite; }
.cst-up { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.cst-sl { stroke: var(--primary); stroke-width: .8; vector-effect: non-scaling-stroke; opacity: .45; }
.cst-sd { fill: var(--primary); }

.cst-n { position: absolute; left: 50%; top: 50%; z-index: 2; width: max-content; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; transform: translate(-50%, -50%); -webkit-tap-highlight-color: transparent; }
.cst-n.is-center { z-index: 3; }
.cst-n.is-off { pointer-events: none; }
.cst-pill { display: flex; align-items: center; gap: .45rem; max-width: 10.5rem; white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .44rem .82rem; font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: left; color: var(--ink); box-shadow: var(--shadow); transition: opacity .35s var(--ease), transform .5s var(--ease), border-color .2s, color .2s; }
.cst-lbl { hyphens: manual; }
.cst-n--tag .cst-pill { font-family: var(--f-mono); font-weight: 500; }
.cst-hash { color: var(--primary); font-weight: 600; }
.cst-n--pillar .cst-pill { padding: .36rem .95rem .36rem .36rem; font-size: .86rem; font-weight: 700; max-width: 14rem; }
.cst-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tile-soft); display: grid; place-items: center; }
.cst-ic img { width: 22px; height: 22px; object-fit: contain; }
.cst-gen { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.cst-back { display: none; color: var(--primary); font-family: var(--f-mono); }
.cst-more { font-family: var(--f-mono); font-size: .68rem; color: var(--primary); opacity: .85; }
.cst-n.is-parent .cst-pill { border-style: dashed; border-color: var(--line-2); color: var(--muted); }
.cst-n.is-parent .cst-back { display: inline; }
.cst-n.is-parent .cst-more, .cst-n.is-center .cst-more { display: none; }
.cst-n:hover .cst-pill, .cst-n:focus-visible .cst-pill { border-color: var(--primary); color: var(--ink); }
.cst-n:focus-visible { outline: none; }
.cst-n:focus-visible .cst-pill { outline: 2px solid var(--primary); outline-offset: 3px; }

.cst-orb { position: absolute; left: 50%; top: 50%; width: var(--orb); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding: .6rem; text-align: center; background: radial-gradient(circle at 32% 28%, #2bc4f8, #00517B); color: #fff; font-family: var(--f-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; opacity: 0; transform: translate(-50%, -50%) scale(.35); pointer-events: none; box-shadow: 0 0 0 6px rgba(0,174,239,.10), 0 0 40px rgba(0,174,239,.45); transition: opacity .4s var(--ease), transform .6s var(--ease); }
.cst-ol { display: block; width: 100%; hyphens: manual; }
.cst-n.is-center .cst-pill { opacity: 0; transform: scale(1.6); }
.cst-n.is-center .cst-orb { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; animation: cnpulse 3.8s var(--ease) infinite; }
.cst-n.is-center:focus-visible .cst-orb { outline: 2px solid var(--primary); outline-offset: 5px; }

/* caption: FIXED height, so hovering a node swaps the text but never changes the hero height */
.cst-cap { margin-top: 1.1rem; text-align: center; height: 11rem; overflow: hidden; display: grid; grid-template-rows: auto auto calc(3 * 1.55 * .93rem) auto; align-content: start; justify-items: center; gap: .45rem; }
.cst-cap > * { max-width: 100%; min-width: 0; }
.cst-crumbs { display: flex; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; justify-content: center; gap: .15rem .4rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cst-crumb { background: none; border: 0; padding: .1rem .15rem; color: var(--muted); cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; border-radius: 4px; }
.cst-crumb:hover { color: var(--primary); }
.cst-crumb[aria-current] { color: var(--ink); cursor: default; }
.cst-crumb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cst-sep { opacity: .5; }
.cst-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; display: flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; overflow: hidden; }
.cst-chip { font-family: var(--f-mono); font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--tile-soft); border-radius: 999px; padding: .12rem .5rem; }
.cst-desc { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cst-go { margin-top: .2rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; color: var(--link); padding: .2rem .1rem; white-space: nowrap; }
.cst-go:hover { color: var(--primary); }
.cst-go .cst-arr { transition: transform .18s var(--ease); }
.cst-go:hover .cst-arr { transform: translateX(3px); }
.cst-go.is-empty { visibility: hidden; }

@media (max-width: 560px) {
    .cst-pill { font-size: .72rem; padding: .34rem .62rem; max-width: 8.6rem; white-space: normal; }
    .cst-n--tag .cst-pill { white-space: nowrap; }
    .cst-n--pillar .cst-pill { font-size: .76rem; max-width: 9.5rem; }
    .cst-ic { width: 26px; height: 26px; }
    .cst-ic img { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .cst-flow, .cst-n.is-center .cst-orb { animation: none; }
    .cst-pill, .cst-orb { transition: none; }
}

/* =================================================================
   v2.12.0 — Partnerzy: przegląd /partnerzy + podstrony partnerów
   (artykuły z wrapperem .product-page.partner-page, okruszki i układ jak w Rozwiązaniach)
   ================================================================= */
/* logo na białym polu (loga partnerów są ciemne) / bez logo: kod kraju.
   <img> ma stałą wysokość: SVG bez width/height w polu o szerokości „auto” zapada się do 0 */
[data-theme="dark"]  { --plate-line: transparent; }
[data-theme="light"] { --plate-line: rgba(12,30,40,.12); }
.partner-page .plogo { background: #fff; border: 1px solid var(--plate-line); border-radius: 14px; display: flex; align-items: center; justify-content: center; width: 100%; height: 76px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.3); }
.partner-page .plogo img { display: block; width: auto; height: 38px; max-width: 78%; object-fit: contain; }
.partner-page .plogo--tall img { height: 58px; }
.pbadge { width: 100%; height: 76px; border-radius: 14px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: 1.6rem; letter-spacing: .12em; color: var(--primary); background: rgba(0,174,239,.10); border: 1px solid rgba(0,174,239,.22); }

/* przegląd: karty partnerów w 3 grupach */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); } /* grupa wypełnia cały wiersz */
.partner { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; color: var(--ink);
    transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.partner:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.partner .plogo, .partner .pbadge { margin-bottom: .3rem; }
.partner h3 { font-size: 1.2rem; transition: color .15s; }
.partner:hover h3 { color: var(--primary); }
.partner p { color: var(--muted); font-size: .93rem; }
.partner .more { margin-top: auto; padding-top: .3rem; font-weight: 600; font-size: .9rem; color: var(--link); display: inline-flex; gap: .35rem; }
.partner .more .arr { transition: transform .18s var(--ease); }
.partner:hover .more .arr { transform: translateX(3px); }

/* podstrona partnera, wariant A „Wizytówka” (v2.13.0): tekst + guziki po lewej, karta z logo i danymi po prawej */
.partner-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.partner-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); max-width: none; margin-bottom: 1.3rem; }
.partner-hero .lead { margin-bottom: 1.1rem; }
.partner-main > p:not(.eyebrow):not(.lead) { color: var(--muted); max-width: 60ch; margin: 0 0 1.8rem; }
.partner-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.partner-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow); }
.partner-card .plogo, .partner-card .pbadge { height: 128px; border-radius: 16px; box-shadow: none; }
.partner-card .plogo img { height: 44px; max-width: 62%; }
.partner-card .plogo--tall img { height: 76px; }
.partner-card .pbadge { font-size: 2.2rem; }
.partner-card dl { margin: 0; padding: 0 .3rem; }
.partner-card dl > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .8rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.partner-card dl > div:first-child { border-top: 0; }
.partner-card dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.partner-card dd { margin: 0; font-size: .95rem; min-width: 0; overflow-wrap: anywhere; }
.pchips { display: flex; flex-wrap: wrap; gap: .35rem; }
.pchip { font-family: var(--f-mono); font-size: .72rem; line-height: 1.5; padding: .18rem .6rem; border-radius: 999px; background: var(--tag-bg); border: 1px solid var(--tag-line); }
@media (max-width: 980px) {
    .partner-hero { grid-template-columns: 1fr; }
}

/* =================================================================
   v2.14.0 — Rozwiązania: filary jako wiersze (home + /produkty), mega-menu z ikoną
   i paskiem „Technologie partnerów”, dopisek „Technologia: …” w usługach, karty
   „Na czym budujemy”, schemat portfeli .wflow
   ================================================================= */
[data-theme="dark"]  { --row-hover: rgba(0,174,239,.06); --band-glow: rgba(0,174,239,.10); }
[data-theme="light"] { --row-hover: #F2FAFD; --band-glow: rgba(0,174,239,.07); }

/* ---- Filary jako wiersze (moduł home-products i przegląd /produkty): cały wiersz = link ---- */
.hp-list { border-top: 1px solid var(--line); }
.hp-row { display: grid; grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 1fr) 48px; gap: 1.6rem; align-items: center; padding: 1.7rem .6rem; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .2s; }
.hp-row:hover { background: var(--row-hover); }
.hp-ic { width: 56px; height: 56px; border-radius: 16px; background: rgba(0,174,239,.10); border: 1px solid rgba(0,174,239,.22); display: grid; place-items: center; }
.hp-ic img { width: 32px; height: 32px; object-fit: contain; }
.hp-txt { min-width: 0; }
.hp-row h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-bottom: .35rem; transition: color .15s; }
.hp-row:hover h3 { color: var(--primary); }
.hp-row p { color: var(--muted); font-size: .98rem; max-width: 46ch; }
.hp-svc { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .93rem; min-width: 0; }
.hp-svc span { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.hp-svc span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex: none; }
.hp-go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 1.1rem; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.hp-row:hover .hp-go { background: var(--grad); color: #fff; border-color: transparent; transform: translateX(3px); }
.hp-tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.hp-tags span::before { content: "#"; color: var(--primary); }

/* ---- Mega menu: ikona filaru (Link Image), opis zdaniem zamiast skrótów ---- */
.nav li.mega > ul > li > .nav-link { flex-direction: row; gap: .8rem; padding-bottom: .8rem; }
.nav .mtx { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.nav .ms { font-family: var(--f-body); font-size: .82rem; line-height: 1.45; letter-spacing: 0; text-transform: none; color: var(--muted); white-space: normal; }
.nav .mi { width: 40px; height: 40px; border-radius: 11px; flex: none; background: rgba(0,174,239,.10); border: 1px solid rgba(0,174,239,.22); display: grid; place-items: center; }
.nav .mi img { width: 22px; height: 22px; object-fit: contain; }
/* pasek na dole mega-menu: Text Separator z Link Class „mega-foot”, dzieci = linki (ostatnie z Link Class „mega-all”) */
.nav li.mega > ul > li.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; padding: .85rem .9rem .5rem; border-top: 1px solid var(--line); border-radius: 0; }
.nav li.mega > ul > li.mega-foot:hover { background: none; }
.nav li.mega > ul > li.mega-foot > .nav-header { padding: 0; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav li.mega > ul > li.mega-foot > .nav-header::after { display: none; }
.nav li.mega > ul > li.mega-foot > ul { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.1rem; flex: 1; padding: 0; }
.nav li.mega > ul > li.mega-foot > ul .nav-link { padding: .3rem .1rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.nav li.mega > ul > li.mega-foot > ul .nav-link:hover { color: var(--primary); }
.nav li.mega > ul > li.mega-foot > ul > li.mega-all { margin-left: auto; }
.nav li.mega > ul > li.mega-foot > ul > li.mega-all > .nav-link { color: var(--link); }
.nav li.mega > ul > li.mega-foot > ul > li.mega-all > .nav-link::after { content: "→"; margin-left: .35rem; }

/* ---- Usługa: „Technologia: <partner>” z linkiem do artykułu o partnerze ---- */
.use .by { margin-top: auto; padding-top: .5rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.use .by a { color: var(--link); }
.use .by a:hover { text-decoration: underline; }
.pp-hero .lead a { color: var(--link); }
.pp-hero .lead a:hover { text-decoration: underline; }

/* ---- „Na czym budujemy”: produkty partnerów ---- */
.techs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--gap); }
.tech { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.tech-head { display: flex; align-items: center; gap: 1rem; }
.tech-head .plate { width: 128px; height: 64px; border-radius: 12px; flex: none; background: #fff; border: 1px solid var(--plate-line); display: grid; place-items: center; }
.tech-head .plate img { display: block; width: auto; height: 24px; max-width: 80%; object-fit: contain; }
.tech-head h3 { font-size: 1.3rem; }
.tech-kind { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.tech-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tech-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--muted); min-width: 0; }
.tech-list li:last-child { border-bottom: 0; }
.tech-list b { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }
.tech .more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--link); display: inline-flex; gap: .35rem; }
.tech .more .arr { transition: transform .18s var(--ease); }
.tech .more:hover .arr { transform: translateX(3px); }
.tech--wide .tech-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.tech--wide .tech-list li:nth-last-child(2) { border-bottom: 0; }

/* ---- Schemat „portfele → algotech → Twoje systemy”: dwie równe kolumny ---- */
.wflow { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto 64px minmax(0, 1fr); align-items: stretch; }
.wcol { border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); padding: 1rem 1.2rem .4rem; display: flex; flex-direction: column; min-width: 0; }
.wcol-k { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.wcol ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.wcol li { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; min-width: 0; }
.wcol li:last-child { border-bottom: 0; }
.wcol small { font-family: var(--f-mono); font-weight: 400; font-size: .7rem; letter-spacing: .03em; color: var(--muted); margin-top: .15rem; }
.wconn { align-self: center; height: 1.5px; margin-inline: 8px; background: repeating-linear-gradient(90deg, var(--primary) 0 5px, transparent 5px 11px); background-size: 22px 1.5px; animation: wflow 1.2s linear infinite; position: relative; }
.wconn::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--primary); border-right: 0; }
@keyframes wflow { to { background-position: 22px 0; } }
.wcore { align-self: center; background: radial-gradient(circle at 30% 25%, #2bc4f8, #00517B); color: #fff; border-radius: 18px; padding: 1.3rem 1.4rem; text-align: center; box-shadow: 0 0 40px rgba(0,174,239,.35); }
.wcore b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.wcore span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; opacity: .9; }

@media (max-width: 980px) {
    .hp-row { grid-template-columns: 48px minmax(0, 1fr); gap: .6rem 1.1rem; }
    .hp-ic { width: 48px; height: 48px; }
    .hp-svc { grid-column: 2; }
    .hp-go { display: none; }
    .nav .mi { display: none; }
    .nav li.mega > ul > li.mega-foot { display: block; padding: .5rem 0; border-top: 0; }
    .nav li.mega > ul > li.mega-foot > ul { display: block; padding-left: .8rem; }
    .nav li.mega > ul > li.mega-foot > ul > li.mega-all { margin-left: 0; }
    .wflow { grid-template-columns: 1fr; }
    .wconn { width: 1.5px; height: 34px; margin: 8px auto; background: repeating-linear-gradient(180deg, var(--primary) 0 5px, transparent 5px 11px); background-size: 1.5px 22px; animation: none; }
    .wconn::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid var(--primary); border-bottom: 0; }
    .wcore { justify-self: center; }
}
@media (max-width: 640px) {
    .tech--wide .tech-list { grid-template-columns: 1fr; }
    .tech--wide .tech-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
    .wconn { animation: none; }
    .hp-row, .hp-go { transition: none; }
}
