/* icphub (МКПХАБ) — site styles. Fonts: Manrope (headings), Inter (text); both include Cyrillic, self-hosted. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Brand: МКПХАБ / ICPHUB — navy globe with green, yellow, blue and red rings. */
:root {
    --navy: #0f2a5c;
    --navy-2: #163d82;
    --blue: #1e6fd9;
    --blue-soft: #e8f1fe;
    --green: #43a047;
    --yellow: #fbc02d;
    --red: #e53935;
    --sky: #1e88e5;
    --bg: #f4f8fd;
    --surface: #ffffff;
    --surface-muted: #f1f5fb;
    --text: #0f1f3d;
    --text-muted: #4a5a78;
    --border: #dfe7f3;
    --text-on-dark: #f8fafc;
    --text-on-dark-muted: #cbd5e1;
    --accent: #1e6fd9;
    --accent-hover: #1858b0;
    --accent-soft: #e8f1fe;
    --danger: #b91c1c;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 50px rgba(15, 42, 92, 0.16);
    --shadow-strong: 0 18px 50px rgba(2, 6, 23, 0.35);
    --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gutter: clamp(16px, 4vw, 40px);
    --maxw: 1200px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-text); }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #7cb3ff; outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; padding: 10px 14px; background: var(--surface); color: var(--text); border-radius: var(--radius-sm); z-index: 50; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header__brand img { height: 52px; width: auto; }
.site-nav { display: flex; gap: clamp(12px, 2.4vw, 28px); }
.site-nav a { text-decoration: none; color: var(--navy); font: 600 15px/1 var(--font-head); padding: 10px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--sky); }

/* Footer */
.site-footer { background: linear-gradient(135deg, #0b2150 0%, var(--navy) 55%, #1a4a9a 100%); color: var(--text-on-dark); margin-top: 48px; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer__brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-footer__brand img { height: 58px; width: auto; }
.site-footer__brand p { margin: 0; max-width: 360px; color: var(--text-on-dark-muted); padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .2); }
.socials { display: flex; gap: 12px; }
.socials__link { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s ease, transform .2s ease; }
.socials__link:hover { background: var(--sky); transform: translateY(-2px); }
.site-footer__bottom { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter) 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: var(--text-on-dark-muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-on-dark-muted); text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.site-footer__cookie { padding: 0; border: 0; background: none; color: var(--text-on-dark-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Shared section bits */
.section { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter); }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section__title { margin: 0; padding-left: 14px; border-left: 5px solid var(--blue); color: var(--navy); font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--font-head); }
.muted-note { color: var(--text-muted); }
.brand-bar { display: inline-flex; gap: 6px; margin-top: 18px; }
.brand-bar i { width: 46px; height: 5px; border-radius: 3px; }
.brand-bar i:nth-child(1) { background: var(--green); }
.brand-bar i:nth-child(2) { background: var(--yellow); }
.brand-bar i:nth-child(3) { background: var(--red); }
.brand-bar i:nth-child(4) { background: var(--sky); }
.pill-link, .btn-primary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 16px/1 var(--font-head); text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.pill-link { background: #fff; color: var(--navy); border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.pill-link:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; border: 0; box-shadow: 0 10px 28px rgba(30, 111, 217, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(30, 111, 217, .45); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background:
    radial-gradient(circle at 12% 18%, rgba(229, 57, 53, .14) 0, transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(251, 192, 45, .18) 0, transparent 30%),
    radial-gradient(circle at 80% 90%, rgba(67, 160, 71, .12) 0, transparent 35%),
    linear-gradient(180deg, #eaf3ff 0%, #f7fbff 70%, var(--bg) 100%); }
.hero--photo { background: linear-gradient(90deg, rgba(244, 248, 253, .2), rgba(244, 248, 253, .55)), var(--hero-image) center/cover no-repeat; }
.hero__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero--photo .hero__art { display: none; }
.hero__globe { position: absolute; left: max(-60px, calc(50% - 640px)); top: 50%; width: min(520px, 46vw); transform: translateY(-50%); filter: drop-shadow(0 30px 60px rgba(15, 42, 92, .25)); animation: globe-float 9s ease-in-out infinite alternate; }
@keyframes globe-float { from { transform: translateY(-52%) rotate(-2deg); } to { transform: translateY(-46%) rotate(2deg); } }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter); display: grid; justify-items: end; gap: 28px; }
.hero__text { max-width: 640px; text-align: center; justify-self: end; }
.hero__title { margin: 0; color: var(--navy); font: 700 clamp(32px, 5vw, 56px)/1.08 var(--font-head); text-wrap: balance; }
.hero__subtitle { margin: 14px 0 0; color: var(--navy-2); font: 600 clamp(17px, 2vw, 21px)/1.3 var(--font-head); }
.ask-card { width: min(640px, 100%); display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: var(--shadow); text-align: left; text-decoration: none; color: var(--text); font: inherit; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.ask-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(15, 42, 92, .22); }
.ask-card__icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue)); }
.ask-card__body { flex: 1; display: grid; gap: 6px; }
.ask-card__title { color: var(--navy); font: 700 19px/1.25 var(--font-head); }
.ask-card__text { color: var(--text-muted); font-size: 15px; }
.ask-card__go { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue)); box-shadow: 0 10px 26px rgba(30, 111, 217, .4); }

/* Own projects carousel */
.own__carousel { position: relative; display: grid; grid-template-columns: 1fr minmax(220px, 280px); gap: 16px; padding: 14px; border-radius: 24px; background: rgba(255, 255, 255, .7); box-shadow: var(--shadow); }
.own__slide { min-height: 300px; border-radius: 18px; display: flex; align-items: center; padding: clamp(24px, 4vw, 44px); color: #fff; background: linear-gradient(90deg, rgba(11, 33, 80, .92) 0%, rgba(11, 33, 80, .55) 55%, rgba(11, 33, 80, .15) 100%), var(--slide-image, linear-gradient(135deg, var(--navy-2), var(--sky))) center/cover no-repeat; }
.own__slide-text { max-width: 460px; }
.own__slide h3 { margin: 0 0 10px; font: 700 clamp(22px, 2.8vw, 30px)/1.2 var(--font-head); }
.own__slide p { margin: 0 0 22px; color: #dbe8ff; }
.own__tabs { display: grid; gap: 8px; align-content: center; }
.own__tab { min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: var(--navy); font: 600 14px/1.2 var(--font-head); text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.own__tab.is-active { background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; border-color: transparent; }
.own__arrow { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 26px; line-height: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); cursor: pointer; }
.own__arrow--prev { left: -12px; }
.own__arrow--next { right: -12px; }

/* Video */
.video-block__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 4vw, 44px); border-radius: 24px; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(251, 192, 45, .25) 0, transparent 35%), radial-gradient(circle at 85% 80%, rgba(229, 57, 53, .25) 0, transparent 40%), linear-gradient(135deg, #0b2150, var(--navy-2)); box-shadow: var(--shadow); }
.video-block__text h2 { margin: 0 0 12px; font: 700 clamp(26px, 3.4vw, 40px)/1.15 var(--font-head); }
.video-block__text p { margin: 0 0 24px; color: #dbe8ff; font-size: 18px; }
.video-block__frame { width: min(300px, 70vw); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); border: 3px solid rgba(255, 255, 255, .2); }
.video-block__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Partner project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 8px 24px rgba(15, 42, 92, .08); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 8 / 5; background: #dbe6f5; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sky), var(--navy-2)); }
.card__body { display: grid; gap: 4px; padding: 14px 16px 18px; text-align: center; }
.card__title { color: var(--navy); font: 700 18px/1.25 var(--font-head); }
.card__tagline { color: var(--blue); font-size: 15px; }

/* Partners */
.partners__list { list-style: none; margin: 0; padding: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 20px 0; background: var(--surface); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15, 42, 92, .08); }
.partners__list li { flex: 1 1 160px; display: flex; justify-content: center; padding: 6px 18px; }
.partners__list li + li { border-left: 1px solid var(--border); }
.partners__list img { max-height: 76px; max-width: 180px; width: auto; object-fit: contain; filter: saturate(.95); }

/* Hub chat dialog */
.hub-dialog { width: min(560px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 20px; background: transparent; }
.hub-dialog::backdrop { background: rgba(11, 33, 80, .45); backdrop-filter: blur(3px); }
.hub-dialog .chat { max-width: none; }
.chat__close { margin-left: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-muted); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }

/* Project stage (layout "B": title + facts on top, chat in the centre) */
.stage { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; isolation: isolate; color: var(--text-on-dark); }
/* "Liquid glass": the photo is softly blurred and seen through a tinted glass sheet with brand-coloured glow and a slow light sheen. */
.stage__bg { position: absolute; inset: -4%; z-index: -3; background-size: cover; background-position: center; filter: blur(8px) saturate(1.3) brightness(1.05); animation: stage-drift 28s ease-in-out infinite alternate; }
.stage__bg--empty { filter: none; background: radial-gradient(circle at 20% 20%, #1d4ed8 0, transparent 45%), radial-gradient(circle at 80% 70%, #0f766e 0, transparent 40%), var(--navy); }
.stage__shade { position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(90% 70% at 12% 0%, rgba(255, 255, 255, .26) 0%, transparent 55%),
    radial-gradient(55% 45% at 88% 88%, rgba(30, 136, 229, .38) 0%, transparent 70%),
    radial-gradient(45% 40% at 6% 92%, rgba(229, 57, 53, .2) 0%, transparent 70%),
    radial-gradient(40% 35% at 92% 8%, rgba(251, 192, 45, .18) 0%, transparent 70%),
    linear-gradient(180deg, rgba(15, 42, 92, .38) 0%, rgba(15, 42, 92, .5) 55%, rgba(11, 33, 80, .66) 100%); }
.stage__shade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .1) 44%, rgba(255, 255, 255, .02) 52%, transparent 62%); background-size: 220% 100%; animation: glass-sheen 14s ease-in-out infinite alternate; }
.stage__shade::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -80px 120px rgba(11, 33, 80, .35); }
@keyframes stage-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes glass-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.page-project .chat { background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 60px rgba(11, 33, 80, .35), inset 0 1px 0 rgba(255, 255, 255, .9); }
.stage__inner { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.stage__title { margin: 0; font: 700 clamp(28px, 5vw, 48px)/1.1 var(--font-head); text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.stage__tagline { margin: 10px 0 0; color: var(--text-on-dark-muted); font-size: 18px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts__item { padding: 8px 16px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .1)); border: 1px solid rgba(255, 255, 255, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px rgba(11, 33, 80, .18); backdrop-filter: blur(10px) saturate(1.4); font-size: 14px; font-weight: 500; }

/* Chat */
.chat { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); color: var(--text); border-radius: 18px; box-shadow: var(--shadow-strong); text-align: left; }
.chat__head { display: flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--font-head); }
.chat__status { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.chat__reset { margin-left: auto; padding: 6px 10px; min-height: 36px; border: 0; background: none; color: var(--text-muted); font: 500 13px/1 var(--font-text); cursor: pointer; border-radius: 8px; }
.chat__reset:hover { color: var(--text); background: var(--surface-muted); }
.chat__log { display: flex; flex-direction: column; gap: 8px; max-height: min(46vh, 420px); min-height: 90px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding-right: 2px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.msg--bot { align-self: flex-start; background: var(--surface-muted); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg--error { align-self: stretch; max-width: none; background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.msg--error button { flex: none; padding: 6px 10px; border: 1px solid #fca5a5; border-radius: 8px; background: #fff; color: var(--danger); font: 500 13px/1 var(--font-text); cursor: pointer; }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 13px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__quick:empty { display: none; }
.chip { min-height: 40px; padding: 8px 14px; border: 1px solid #bfd3fb; border-radius: 999px; background: var(--accent-soft); color: #1e40af; font: 500 14px/1.2 var(--font-text); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.chip:hover { background: #dbe6ff; border-color: #93b4f6; }
.chat__form { display: flex; gap: 8px; align-items: flex-end; }
.chat__input { flex: 1; min-height: 48px; max-height: 140px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; resize: none; font: 400 16px/1.4 var(--font-text); color: var(--text); background: #fff; }
.chat__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 111, 217, .18); }
.chat__send { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--accent); color: #fff; cursor: pointer; transition: background .15s ease; }
.chat__send:hover { background: var(--accent-hover); }
.chat__send:disabled, .chat__input:disabled { opacity: .55; cursor: not-allowed; }
.chat__consent { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.chat__consent a { color: var(--text-muted); text-underline-offset: 2px; }
.chat__noscript { margin: 0; color: var(--danger); font-size: 14px; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin: 0 auto; padding: 16px; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner a { color: var(--accent); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__btn { min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font: 500 14px/1 var(--font-text); cursor: pointer; }
.cookie-banner__btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Text pages */
.notice, .doc { max-width: 820px; margin: 0 auto; padding: 48px var(--gutter); }
.notice h1, .doc h1 { color: var(--navy); font: 700 clamp(26px, 4vw, 36px)/1.15 var(--font-head); margin: 0 0 16px; }
.doc h2 { color: var(--navy); font: 600 20px/1.3 var(--font-head); margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-muted); }
.button { display: inline-block; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; }
.button:hover { background: var(--accent-hover); }

@media (max-width: 900px) {
    .hero__inner { justify-items: center; }
    .hero__text { justify-self: center; }
    .hero__globe { left: 50%; top: 24px; width: 300px; opacity: .28; transform: translateX(-50%); animation: none; }
    .own__carousel { grid-template-columns: 1fr; }
    .own__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
    .own__arrow { display: none; }
    .video-block__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 600px) {
    :root { --header-h: 60px; }
    .site-header__brand img { height: 40px; }
    .site-nav { display: none; }
    .ask-card { flex-wrap: wrap; }
    .ask-card__go { display: none; }
    .stage { align-items: flex-start; }
    .stage__inner { padding-top: 28px; gap: 18px; }
    .stage__tagline { font-size: 16px; }
    .chat { padding: 14px; border-radius: 16px; }
    .chat__log { max-height: 52vh; }
    .partners__list li + li { border-left: 0; }
    .site-footer__brand p { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* About + showcase cards */
.about__inner { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--surface); box-shadow: 0 8px 24px rgba(15, 42, 92, .08); }
.about__mark { width: 180px; height: auto; }
.about__text p { margin: 14px 0 0; color: var(--text-muted); font-size: 17px; max-width: 760px; }
.card--static { cursor: default; }
.card--static:hover { transform: none; box-shadow: 0 8px 24px rgba(15, 42, 92, .08); }
.card--static:hover .card__media img { transform: none; }
@media (max-width: 700px) { .about__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; } .about__mark { width: 120px; } }

/* ---- Mockup polish: sky, clouds, skyline, glossy buttons, ribbon waves ---- */
.hero { background:
    radial-gradient(60% 50% at 70% 0%, rgba(255, 255, 255, .95) 0%, transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(229, 57, 53, .12) 0, transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(251, 192, 45, .16) 0, transparent 28%),
    linear-gradient(180deg, #cfe6ff 0%, #e6f2ff 45%, #f6faff 80%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; z-index: -1; pointer-events: none;
    background: repeating-conic-gradient(from 200deg at 85% 0%, rgba(255, 255, 255, .22) 0deg 3deg, transparent 3deg 12deg);
    -webkit-mask-image: radial-gradient(closest-side at 85% 0%, #000, transparent); mask-image: radial-gradient(closest-side at 85% 0%, #000, transparent); }
.hero--photo::before { display: none; }
.hero__cloud { position: absolute; border-radius: 999px; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); filter: blur(2px); animation: cloud-drift 40s linear infinite alternate; }
.hero__cloud--1 { width: 420px; height: 120px; top: 6%; right: 6%; }
.hero__cloud--2 { width: 300px; height: 90px; top: 20%; right: 34%; opacity: .8; animation-duration: 55s; }
.hero__cloud--3 { width: 520px; height: 140px; bottom: 26%; left: 30%; opacity: .55; animation-duration: 70s; }
@keyframes cloud-drift { from { transform: translateX(0); } to { transform: translateX(-60px); } }
.hero__network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; min-height: 150px; }
.hero__inner { position: relative; }

/* glossy buttons */
.btn-primary, .ask-card__go, .ask-card__icon, .chat__send, .own__tab.is-active {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 48%, rgba(255, 255, 255, 0) 52%), linear-gradient(135deg, #3aa0ff 0%, var(--sky) 40%, var(--blue) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 26px rgba(30, 111, 217, .38); }
.btn-primary:hover, .ask-card:hover .ask-card__go, .chat__send:hover { filter: brightness(1.06); }
.pill-link { background-image: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%); box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(0, 0, 0, .18); }
.ask-card { background: linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .62) 100%); border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 0 20px 60px rgba(15, 42, 92, .18); }
.own__carousel { background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .6)); border: 1px solid rgba(255, 255, 255, .95); backdrop-filter: blur(10px); }
.own__tab { background: linear-gradient(180deg, #ffffff, #f2f7ff); box-shadow: inset 0 1px 0 #fff; }
.own__arrow { background: linear-gradient(180deg, #fff, #eef5ff); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(0, 0, 0, .15); }
.card { box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(15, 42, 92, .1); }

/* ribbon waves above the footer */
.site-footer { position: relative; margin-top: 110px; }
.site-footer__waves { position: absolute; left: 0; top: -89px; width: 100%; height: 90px; display: block; }

@media (max-width: 900px) { .hero__cloud--3, .hero__network { display: none; } .hero__skyline { height: 30%; opacity: .7; } }

/* Photo hero (uploaded in /admin/home) must win over the drawn sky above. */
.hero.hero--photo { background:
    linear-gradient(90deg, rgba(244, 248, 253, 0) 0%, rgba(244, 248, 253, .12) 40%, rgba(244, 248, 253, .5) 100%),
    var(--hero-image) left center / cover no-repeat; }
.hero--photo .hero__title { text-shadow: 0 2px 24px rgba(255, 255, 255, .7); }
.hero--photo .hero__subtitle { text-shadow: 0 1px 12px rgba(255, 255, 255, .8); }
@media (max-width: 900px) { .hero.hero--photo { background: linear-gradient(180deg, rgba(244, 248, 253, .55), rgba(244, 248, 253, .75)), var(--hero-image) 20% center / cover no-repeat; } }

/* Services grid */
.services__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.service { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px; border-radius: var(--radius); background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%); border: 1px solid var(--border); box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(15, 42, 92, .08); transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 18px 40px rgba(15, 42, 92, .14); }
.service::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red), var(--sky)); opacity: .85; }
.service__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 48%, rgba(255, 255, 255, 0) 52%), linear-gradient(135deg, #3aa0ff 0%, var(--sky) 40%, var(--blue) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 20px rgba(30, 111, 217, .3); }
.service__num { position: absolute; top: 18px; right: 20px; color: #c9d8ee; font: 700 28px/1 var(--font-head); }
.service__text { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.5; }
.services__cta { display: flex; justify-content: center; margin-top: 22px; }

/* Carousel tabs with icons (fits 8 services) */
.own__tabs { gap: 6px; }
.own__tab { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; }
.own__tab-icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.own__tab.is-active .own__tab-icon { color: #fff; background: rgba(255, 255, 255, .22); }
.own__slide { min-height: 400px; }

/* Promo banner (festive) */
.promo__inner { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(26px, 4vw, 48px); border-radius: 24px; color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(251, 192, 45, .35) 0, transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(229, 57, 53, .3) 0, transparent 35%),
        radial-gradient(circle at 60% 110%, rgba(30, 136, 229, .5) 0, transparent 45%),
        linear-gradient(135deg, #0a1a44 0%, #0f2a5c 50%, #163d82 100%);
    box-shadow: 0 20px 60px rgba(11, 33, 80, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
.promo__sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
    background-image:
        radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 28% 70%, #ffe08a 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 46% 30%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 64% 82%, #ffd1d1 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 78% 12%, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 90% 60%, #ffe08a 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 6% 52%, #cfe6ff 50%, transparent 51%), radial-gradient(2px 2px at 54% 8%, #ffe08a 50%, transparent 51%),
        repeating-conic-gradient(from 0deg at 86% 22%, rgba(255, 224, 138, .14) 0deg 2deg, transparent 2deg 15deg);
    animation: promo-twinkle 4s ease-in-out infinite alternate; }
@keyframes promo-twinkle { from { opacity: .55; } to { opacity: 1; } }
.promo__badge { display: inline-block; margin-bottom: 14px; padding: 8px 16px; border-radius: 999px; font: 700 14px/1.2 var(--font-head); letter-spacing: .02em; color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #ff5a4f, var(--red) 60%, #b71c1c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(229, 57, 53, .4); }
.promo__title { margin: 0; font: 800 clamp(26px, 3.6vw, 42px)/1.12 var(--font-head); text-wrap: balance;
    background: linear-gradient(180deg, #fff6d6 0%, #ffd56a 45%, #f2a900 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .35)); }
.promo__text { margin: 14px 0 0; color: #dbe8ff; font-size: 17px; max-width: 560px; }
.promo__btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 52px; padding: 14px 26px; border-radius: 999px; text-decoration: none; font: 800 17px/1 var(--font-head); color: #0f2a5c;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #ffe08a, #fbc02d 55%, #f2a900);
    box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(251, 192, 45, .45); transition: transform .2s ease; }
.promo__btn:hover { transform: translateY(-2px); }
.promo__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promo__point { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; color: #e6efff; font-size: 15.5px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.promo__point b { color: #fff; font: 800 19px/1.2 var(--font-head); }
.promo__point-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #0f2a5c; background: linear-gradient(135deg, #ffe08a, #fbc02d); box-shadow: inset 0 1px 0 #fff; }
@media (max-width: 900px) { .promo__inner { grid-template-columns: 1fr; } .own__slide { min-height: 300px; } }

/* Language switcher (RU / EN) */
.site-nav { margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(15, 42, 92, .07); border: 1px solid rgba(15, 42, 92, .12); flex-shrink: 0; }
.lang-switch__item { min-width: 40px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font: 700 13px/1 var(--font-head); letter-spacing: .04em; color: var(--navy); text-decoration: none; transition: background .2s, color .2s; }
.lang-switch__item:hover { background: rgba(30, 111, 217, .12); }
.lang-switch__item.is-active { background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(15, 42, 92, .25); }
.lang-switch__item:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.doc__lang-note { padding: 12px 16px; border-radius: 12px; background: #eef5ff; border: 1px solid #cfe0f7; color: var(--navy); font-size: 15px; }

/* Promo: button + QR code */
.promo__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; margin-top: 22px; }
.promo__cta .promo__btn { margin-top: 0; }
.promo__qr { display: flex; align-items: center; gap: 12px; margin: 0; }
.promo__qr img { width: 96px; height: 96px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); image-rendering: pixelated; }
.promo__qr figcaption { max-width: 110px; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .85); }
@media (max-width: 700px), (pointer: coarse) { .promo__qr { display: none; } }

/* Hero card with the hub chat input */
.cooperation { display: flex; align-items: center; gap: 32px; padding: 32px; border-radius: 20px; background: var(--surface-muted); }
.cooperation p { max-width: 750px; line-height: 1.6; }
.cooperation__actions { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; gap: 16px; }
@media (max-width: 700px) { .cooperation { flex-direction: column; align-items: stretch; padding: 24px; } }
.assistant-invite { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; max-width: calc(100vw - 32px); }
.assistant-invite[hidden], .assistant-invite__card[hidden] { display: none; }
.assistant-invite__card { position: relative; width: 320px; max-width: 100%; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-strong); }
.assistant-invite__card p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.assistant-invite__card .assistant-invite__title { padding-right: 24px; font: 700 20px/1.3 var(--font-head); }
.assistant-invite__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-muted); color: var(--text); font-size: 24px; cursor: pointer; }
.assistant-invite__launcher { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 20px; border: 0; border-radius: 28px; background: var(--accent); color: #fff; box-shadow: var(--shadow-strong); font: 600 14px/1.3 var(--font-head); cursor: pointer; }
.assistant-invite button:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
body:has(.cookie-banner:not([hidden])) .assistant-invite { visibility: hidden; }
@media (max-width: 600px) { .assistant-invite { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); } }

.ask-card--chat { cursor: default; }
.ask-card--chat:hover { transform: none; }
.ask-card__input { width: 100%; min-height: 46px; margin-top: 8px; padding: 10px 16px; border-radius: 14px; border: 1px solid rgba(15, 42, 92, .16); background: #fff; font: inherit; font-size: 15px; color: var(--text); box-shadow: inset 0 1px 2px rgba(15, 42, 92, .06); transition: border-color .2s, box-shadow .2s; }
.ask-card__input::placeholder { color: #8a97ad; }
.ask-card__input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(30, 136, 229, .18); }
button.ask-card__go { border: 0; cursor: pointer; align-self: flex-end; transition: transform .2s, box-shadow .2s; }
button.ask-card__go:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px rgba(30, 111, 217, .5); }
button.ask-card__go:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
@media (max-width: 600px) { .ask-card--chat .ask-card__icon { display: none; } .ask-card--chat { gap: 12px; padding: 16px; } button.ask-card__go { width: 52px; height: 52px; } }

/* Partner without an official logo file: name tile (same approach as seapolo.icphub.ru) */
.partners__name { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; max-width: 220px; padding: 10px 18px; border-radius: 14px; background: linear-gradient(180deg, #f4f8fd, #e8f0fb); border: 1px solid #d6e3f5; color: var(--navy); font: 700 15px/1.25 var(--font-head); text-align: center; text-wrap: balance; }
.partners__list a { text-decoration: none; }
.partners__list a:hover .partners__name { border-color: var(--sky); }

/* Partners: even grid for 6–8 logos (logos and name tiles mixed) */
.partners__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); align-items: center; gap: 18px 10px; padding: 20px 18px; }
.partners__list li { padding: 4px 6px; min-height: 84px; align-items: center; }
.partners__list li + li { border-left: 0; }
.partners__list img { max-height: 72px; max-width: 140px; }
.partners__name { min-height: 56px; max-width: 150px; font-size: 14px; }
@media (max-width: 600px) { .partners__list { grid-template-columns: repeat(2, 1fr); } }

/* Partners: 4 per row (two even rows for 8), room for wide wordmarks */
.partners__list { grid-template-columns: repeat(4, 1fr); gap: 22px 16px; padding: 24px 22px; }
.partners__list img { max-height: 76px; max-width: 210px; }
@media (max-width: 900px) { .partners__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .partners__list { grid-template-columns: repeat(2, 1fr); } .partners__list img { max-width: 140px; max-height: 64px; } }

/* Partners: up to 6 logos fit one row on desktop; 7–8 go 4 per row */
@media (min-width: 1000px) {
    .partners__list:not(:has(> li:nth-child(7))) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .partners__list:not(:has(> li:nth-child(7))) img { max-width: 170px; }
}

.project-search{display:grid;gap:10px;max-width:620px;margin:0 0 24px;font-size:16px}.project-search input{width:100%;padding:16px;border:1px solid #bac8db;border-radius:10px;font:inherit}.card[hidden]{display:none}[data-project-search-status]:not(:empty){margin:16px 0}

.chat__consent--explicit{display:flex;align-items:flex-start;gap:10px;text-align:left}.chat__consent--explicit input{flex:0 0 20px;width:20px;height:20px;margin:2px 0 0;accent-color:#1769bf}.chat__consent--explicit span{min-width:0}.chat__consent--explicit:focus-within{outline:2px solid #287bd8;outline-offset:3px}
