/* Berk Tor — стили по макету Figma (Sprint 01). Шрифт Montserrat подключён локально. */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-ext-400.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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-ext-600.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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-ext-700.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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-400.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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600.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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700.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; }

:root {
  --i-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
  --blue: #34339a;
  --blue-2: #5551a6;
  --blue-3: #7772c5;
  --yellow: #ffd200;
  --ink: #25254a;
  --ink-2: #22223a;
  --ink-3: #303154;
  --text: #5b5d70;
  --muted: #616385;
  --placeholder: #77798a;
  --soft: #f5f6fc;
  --soft-2: #f6f7fc;
  --pill: #f2f3fa;
  --line: #dde0ec;
  --line-2: #e0e3f0;
  --line-3: #e5e8f5;
  --on-blue: #e7e8ff;
  --on-blue-2: #e4e5f7;
  --on-blue-3: #e0e0f5;
  --proof: #bfc1f4;
  --footer-meta: #bec0d8;
  --cta-text: #4b4b63;
  --gutter: 72px;
  --radius-btn: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Montserrat', system-ui, sans-serif; color: var(--ink);
  background: #fff; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink-2); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m-only { display: none; }
.d-only-flex { display: flex; }

/* ---------- Типографика ---------- */
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--blue-2); letter-spacing: .01em; }
.eyebrow--sm { font-size: 12px; }
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--blue { color: var(--blue); }
.section--proof .eyebrow--blue { font-size: 14px; }
.h1 { font-size: 58px; line-height: 66px; font-weight: 700; color: #fff; max-width: 620px; }
.h1--56 { font-size: 56px; line-height: 66px; }
.hero--product .h1--56 { line-height: 64px; }
.h1--44 { font-size: 44px; line-height: 1.2; color: var(--ink); max-width: none; }
.h2 { font-size: 42px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.h2--40 { font-size: 40px; }
.h2--34 { font-size: 34px; }
.h2--32 { font-size: 32px; }
.lead { font-size: 18px; line-height: 29px; color: var(--on-blue); max-width: 590px; }
.hero--product .lead, .hero--corp .lead { color: var(--on-blue-2); }
.lead--wide { max-width: 850px; }
.intro { font-size: 17px; line-height: 27px; color: var(--text); max-width: 760px; }
.intro--18 { font-size: 18px; color: var(--muted); max-width: 860px; }
.body-16 { font-size: 16px; line-height: 1.6; color: var(--text); max-width: 600px; }
.muted-13 { font-size: 13px; color: var(--muted); }
.muted-14 { font-size: 14px; color: var(--muted); line-height: 1.45; }
.num { font-size: 13px; font-weight: 600; color: var(--blue-2); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 24px;
  border-radius: var(--radius-btn); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn--primary { background: var(--yellow); color: var(--ink-2); min-width: 248px; }
.btn--secondary { background: var(--blue); color: #fff; min-width: 200px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10, 10, 46, .18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary:hover { background: #ffdb33; }
.btn--secondary:hover { background: #3d3cab; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line-2); }
.site-header__inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; border-radius: 8px; }
.brand img { width: auto; height: 52px; }
.logo-wide { object-fit: contain; padding: 6% 8%; }
.product-card__logo > img.logo-wide { padding: 4% 6%; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; margin-left: clamp(24px, 18vw, 256px); }
.nav ul { display: flex; gap: 28px; }
.nav ul a { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav ul a:hover, .nav ul a[aria-current] { border-bottom-color: var(--yellow); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer; border-radius: 10px; }
.menu-btn span { position: absolute; left: 10px; width: 24px; height: 2px; border-radius: 2px; background: var(--blue); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: #fff; overflow: hidden; }
.hero--home .hero__grid { display: flex; gap: 56px; padding-block: 88px; min-height: 720px; }
.hero__copy { flex: 0 1 650px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero--home .h1 { min-height: 210px; }
.hero--home .lead { min-height: 90px; }
.hero__proof { font-size: 13px; font-weight: 600; color: var(--proof); }
.hero__geometry { flex: 1 1 590px; max-width: 590px; }

.hero--product .hero__grid--product { display: flex; gap: 48px; padding-block: 72px; min-height: 560px; }
.hero--product .hero__copy { flex: 0 1 680px; gap: 20px; }
.hero--product .h1 { max-width: 650px; min-height: 82px; }
.hero--product .lead { max-width: 620px; min-height: 92px; }
.product-hero-logo { position: relative; flex: 1 1 540px; max-width: 540px; aspect-ratio: 540 / 410; border-radius: 24px; display: grid; place-items: center; }
.product-hero-logo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 24px; }
.product-hero-logo__backdrop {
  position: absolute; left: 12.04%; top: 30.49%; width: 75.93%; height: 39.02%;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 209, 0, .55); border-radius: 24px;
  box-shadow: 0 8px 24px rgba(10, 10, 46, .18);
}
.product-hero-logo--cover .logo-cover { position: absolute; left: 12.04%; top: 30.49%; width: 75.93%; height: 39.02%; box-shadow: 0 8px 24px rgba(10, 10, 46, .18); border-radius: 24px; }

.hero--corp { padding-block: 88px; min-height: 560px; }
.hero__copy--wide { gap: 22px; }
.hero--corp .h1 { max-width: 1100px; min-height: 160px; }
.draft-notice { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--yellow); }

/* ---------- Геометрия бренда (декоративные ленты) ---------- */
/* «Крепкая сеть»: ленты в 3D-стопке, сеть узлов на фоне, блик, наклон за курсором (JS задаёт --tx/--ty/--gx/--gy) */
/* ленты без подложки: стоят прямо на синем полотне */
.geometry { position: relative; aspect-ratio: 590 / 520; width: 100%; perspective: 1100px; }
/* сеть узлов и свечение растянуты на весь синий hero */
.hero--live { position: relative; isolation: isolate; }
.hero--live > .wrap { position: relative; z-index: 1; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute; z-index: 0; width: min(70vw, 900px); aspect-ratio: 1; border-radius: 50%;
  left: var(--gx, 72%); top: var(--gy, 45%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(119, 114, 197, .55) 0%, rgba(255, 210, 0, .08) 35%, transparent 65%);
  pointer-events: none;
}
.geometry__stage {
  position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
}
.ribbon {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: 10.38%;
  transform: translate(-50%, -50%) translateZ(calc(var(--i) * 16px - 48px)) rotate(var(--r));
  transform-style: preserve-3d;
}
.ribbon > i {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 30px rgba(16, 13, 72, .30), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: ribbon-sway 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s);
}
.ribbon--y > i { background: linear-gradient(95deg, #ffcc00 0%, #ffd200 45%, #ffe46a 100%); }
.ribbon--w > i { background: linear-gradient(95deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .95)); }
.ribbon--v > i { background: linear-gradient(95deg, #6f6abf, #8a85d8); }
.ribbon > i::after {
  content: ''; position: absolute; inset: -20% 0; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .0) 30%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 70%, transparent 100%);
  animation: ribbon-shine 6s ease-in-out infinite; animation-delay: calc(var(--i) * .28s + 1.6s);
}
.js .ribbon { opacity: 0; translate: calc(var(--from) * 70px) 12px; animation: ribbon-in 1.1s cubic-bezier(.2, .9, .25, 1.12) forwards; animation-delay: calc(var(--i) * 85ms + 200ms); }
@keyframes ribbon-in { to { opacity: 1; translate: 0 0; } }
@keyframes ribbon-sway { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(calc(var(--from) * 1.8deg)); } }
@keyframes ribbon-shine { 0%, 58% { transform: translateX(-130%) skewX(-18deg); } 82%, 100% { transform: translateX(130%) skewX(-18deg); } }
.visual-panel__geometry .ribbon > i { box-shadow: 0 10px 20px rgba(16, 13, 72, .14); }

/* ---------- Шапка поверх синего hero (главная, продукты, корпоративные) ---------- */
.brand__light { display: none; }
.has-hero .brand__dark { display: none; }
.has-hero .brand__light { display: block; }
.has-hero .site-header {
  position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent;
  transition: background-color .25s, box-shadow .25s, border-color .25s;
}
.has-hero .site-header.is-scrolled {
  background: rgba(46, 45, 140, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, .08); box-shadow: 0 10px 30px rgba(10, 10, 46, .25);
}
.has-hero main > .hero:first-child { padding-top: 96px; }
.has-hero .menu-btn span { background: #fff; }
@media (min-width: 1025px) {
  .has-hero .nav ul a { color: rgba(255, 255, 255, .88); }
  .has-hero .nav ul a:hover, .has-hero .nav ul a[aria-current] { color: #fff; border-bottom-color: var(--yellow); }
}
@media (max-width: 1024px) {
  .has-hero main > .hero:first-child { padding-top: 76px; }
  .has-hero .site-header:has(.nav.is-open) { background: var(--blue); }
}

/* ---------- Секции ---------- */
.section { padding-block: 88px; }
.section--soft { background: var(--soft); padding-block: 96px; }
.section--80 { padding-block: 80px; }
.section--72 { padding-block: 72px; }
.section--76 { padding-block: 76px; }
.section--60 { padding-block: 60px; }
.section--proof { padding-block: 72px 76px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-direction: column; gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Вкладки продуктов */
.tabs { gap: 10px; flex-wrap: wrap; }
.tab {
  width: 150px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--blue); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.tab:hover { border-color: var(--blue-3); transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.active-product { background: #fff; border-radius: 28px; padding: 44px; gap: 48px; min-height: 430px; align-items: flex-start; }
.active-product__copy { flex: 0 1 640px; display: flex; flex-direction: column; gap: 18px; }
.active-product__name { font-size: 36px; font-weight: 700; color: var(--blue); }
.active-product__desc { font-size: 17px; line-height: 28px; color: var(--text); max-width: 590px; min-height: 84px; }
.checks { display: flex; flex-direction: column; gap: 18px; }
.checks li { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.checks li::before { content: '✓'; margin-right: 12px; }
.link-arrow { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; margin-top: 4px; }
.link-arrow::after {
  content: ''; display: inline-block; width: 1em; height: 1em; margin-left: 6px; vertical-align: -0.15em; background: currentColor;
  -webkit-mask: var(--i-right) center / contain no-repeat; mask: var(--i-right) center / contain no-repeat; transition: transform .2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px); }
.active-product__logo { flex: 1 1 500px; max-width: 500px; aspect-ratio: 500 / 340; position: relative; border-radius: 20px; }
.active-product__logo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 20px; }
.active-product__logo .logo-cover { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); aspect-ratio: 381 / 150; }
.active-product.is-switching .active-product__copy, .active-product.is-switching .active-product__logo { opacity: 0; transform: translateY(6px); }
.active-product__copy, .active-product__logo { transition: opacity .22s, transform .22s var(--ease); }

.logo-cover { display: block; overflow: hidden; border: 1px solid rgba(255, 210, 0, .55); border-radius: 20px; background: #fff; }
.logo-cover img { width: 100%; height: 100%; object-fit: cover; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; background: #fff; border-radius: 28px; padding: 0; }
.product-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: #fff;
  text-decoration: none; min-height: 250px; border: 1px solid transparent;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.product-card:hover, .product-card:focus-visible { border-color: var(--line); box-shadow: 0 12px 30px rgba(52, 51, 154, .10); transform: translateY(-3px); }
.product-card.is-current { border-color: rgba(255, 210, 0, .7); }
.product-card__logo { position: relative; height: 150px; border-radius: 12px; }
.product-card__logo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-card__logo .logo-cover { position: absolute; inset: 0; }
.product-card__meta { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.product-card__name { font-size: 16px; font-weight: 600; color: var(--blue); }
.product-card__arrow { font-size: 18px; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s var(--ease); }
.product-card:hover .product-card__arrow, .product-card:focus-visible .product-card__arrow { opacity: 1; transform: none; }

/* Шаги */
.steps-title { margin-bottom: 24px; font-size: 26px; }
.step { background: var(--soft); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 284px; }
.step h3 { font-size: 24px; font-weight: 700; color: var(--ink); }
.step p { font-size: 15px; line-height: 24px; color: var(--text); max-width: 350px; }

/* Доказательства */
.section--proof .h2 { margin-top: 14px; }
.section--proof .intro { margin-top: 18px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.proof-card {
  display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 260px; padding: 23px;
  background: var(--soft-2); border: 1px solid var(--line-3); border-radius: 20px; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.proof-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(52, 51, 154, .10); border-color: var(--line); }
.proof-card .num { color: var(--blue); }
.proof-card strong { font-size: 25px; line-height: 1.2; font-weight: 700; color: var(--ink); margin-top: 12px; }
.proof-card__label { font-size: 17px; font-weight: 600; color: var(--blue); margin-top: 6px; }
.proof-card__body { font-size: 14px; color: var(--muted); }

.commercial-cta {
  margin-top: 60px; background: var(--blue); color: #fff; border-radius: 24px; padding: 42px 40px;
  min-height: 260px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.commercial-cta > div { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.commercial-cta h3 { font-size: 30px; line-height: 1.25; font-weight: 700; }
.commercial-cta p:not(.eyebrow) { font-size: 15px; color: var(--on-blue-3); }
.commercial-cta .btn { min-width: 232px; color: var(--ink); }

/* Жёлтая плашка CTA */
.cta-band { background: var(--yellow); }
.cta-band__inner { min-height: 330px; padding-block: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: 36px; font-weight: 700; color: var(--ink); max-width: 760px; }
.cta-band p { font-size: 16px; color: var(--cta-text); margin-top: 12px; }
main > .cta-band:last-child .cta-band__inner { min-height: 280px; }

/* Подвал */
.site-footer { background: var(--ink); color: #fff; }
.site-footer__inner { min-height: 180px; padding-block: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.site-footer__brand { font-size: 24px; font-weight: 700; text-decoration: none; }
.site-footer__nav { display: flex; gap: 24px; }
.site-footer__nav a { font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; opacity: .85; }
.site-footer__nav a:hover { opacity: 1; text-decoration: underline; }
.site-footer__meta { font-size: 13px; color: var(--footer-meta); }

/* ---------- Страница продукта ---------- */
.features { gap: 20px; }
.feature { background: #fff; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.feature .num { font-size: 12px; }
.feature h3 { font-size: 20px; font-weight: 700; color: var(--blue); min-height: 54px; }
.feature p { font-size: 14px; color: var(--text); max-width: 350px; }
.split { display: flex; gap: 48px; align-items: flex-start; justify-content: space-between; }
.split__copy { flex: 0 1 650px; display: flex; flex-direction: column; gap: 18px; }
.split__copy .h2 { max-width: 620px; }
.pill-map { flex: 0 1 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pill {
  display: flex; align-items: center; justify-content: center; height: 72px; border-radius: 14px; background: var(--pill);
  font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; transition: background-color .2s, transform .2s var(--ease);
}
.pill:hover { background: #e6e8f7; transform: translateY(-2px); }
.pill.is-current { background: var(--yellow); }

/* ---------- Корпоративные ---------- */
.highlights { gap: 20px; }
.highlight { background: #fff; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.highlight strong { font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--blue); min-height: 72px; }
.highlight span { font-size: 15px; color: var(--text); }
.highlight a { color: inherit; }
.section--76 .split__copy { gap: 20px; }
.visual-panel {
  flex: 0 1 560px; min-height: 360px; background: var(--soft); border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
.visual-panel__heading { font-size: 26px; font-weight: 700; color: var(--blue); max-width: 500px; line-height: 1.25; position: relative; z-index: 1; }
.visual-panel__geometry { position: absolute; width: 62%; right: -6%; bottom: -14%; background: transparent; opacity: .9; }

.contact-form { flex: 0 1 560px; background: var(--soft); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 13px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { height: 82px; padding: 16px; resize: vertical; }
.contact-form ::placeholder { color: var(--placeholder); opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(85, 81, 166, .18); }
.contact-form [aria-invalid="true"] { border-color: #c0392b; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-status { font-size: 13px; color: var(--text); min-height: 18px; }

/* ---------- Коммерческие страницы ---------- */
.page-commercial { background: var(--soft-2); }
.page-commercial .site-header { border-bottom-color: var(--line-2); }
.page-commercial .site-header__inner { height: 88px; }
.page-head { padding-top: 54px; display: flex; flex-direction: column; gap: 16px; }
.page-head .intro { color: var(--muted); max-width: 1050px; }
.commercial-body { padding-block: 64px 90px; }

.calculator { background: var(--blue); border: 1px solid var(--line-2); border-radius: 18px; padding: 38px 40px 48px; color: #fff; }
.calculator h2 { font-size: 30px; font-weight: 700; }
.calculator__grid { display: flex; gap: 70px; margin-top: 44px; justify-content: space-between; }
.calculator__fields { flex: 0 1 590px; display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.field select, .filter select, .filter input, .toolbar select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 58px; padding: 0 44px 0 17px; border-radius: 18px;
  border: 1px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2334339a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
  font-size: 15px; font-weight: 400; color: var(--ink); cursor: pointer;
}
/* ---------- Выпадающий список (dd) ---------- */
.dd__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.dd { position: relative; width: 100%; }
.dd__button {
  width: 100%; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 18px;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 18px; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 500; color: var(--ink); touch-action: manipulation;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.dd__button:hover { border-color: var(--blue-3); }
.dd__button:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(255, 210, 0, .55); }
.dd.is-open .dd__button { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(85, 81, 166, .18); }
.calculator .dd.is-open .dd__button { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 0, .35); }
.dd__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dd.is-placeholder .dd__value { color: var(--text); font-weight: 500; }
.dd__meta {
  flex: none; font-size: 13px; font-weight: 700; color: var(--blue); background: var(--soft);
  padding: 6px 10px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.dd__chevron { flex: none; width: 12px; height: 8px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.dd.is-open .dd__chevron { transform: rotate(180deg); }

.dd__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); max-height: 320px; overflow-y: auto;
  padding: 6px; margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(20, 20, 70, .18), 0 2px 6px rgba(20, 20, 70, .06);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .16s ease-out, transform .18s var(--ease), visibility 0s linear .18s;
  overscroll-behavior: contain;
}
.dd--up .dd__list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; transform: translateY(6px) scale(.98); }
.dd:not(.is-open) .dd__list { max-width: 100%; transition: opacity .16s ease-out, transform .18s var(--ease), visibility 0s linear .18s, max-width 0s linear .18s; }
.dd.is-open .dd__list { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease-out, transform .2s var(--ease), visibility 0s; }
.dd__option {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px 10px 14px; border-radius: 11px;
  font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; user-select: none; transition: background-color .12s;
}
.dd__option.is-active { background: var(--soft); }
.dd__option[aria-selected="true"] { background: #fff6cc; font-weight: 600; }
.dd__option[aria-selected="true"].is-active { background: #ffefa3; }
.dd__opt-label { flex: 1; min-width: 0; }
.dd__opt-meta { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dd__option[aria-selected="true"] .dd__opt-meta { color: var(--blue); }
.dd__check { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s var(--ease); }
.dd__option[aria-selected="true"] .dd__check { opacity: 1; transform: none; }

.filter .dd__button { height: 52px; border-radius: 12px; font-size: 14px; padding-inline: 16px; }
.filter .dd__value { font-weight: 600; }
.dd--compact { width: auto; min-width: 260px; }
.dd--compact .dd__button { height: 44px; border-radius: 12px; font-size: 14px; color: var(--blue); }

.calculator__result { flex: 0 1 572px; display: flex; flex-direction: column; gap: 38px; }
.total { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; min-height: 260px; color: var(--ink); display: flex; flex-direction: column; gap: 18px; }
.total__value { display: block; font-size: 42px; font-weight: 700; transition: transform .2s var(--ease); }
.total__value.is-bump { transform: scale(1.04); transform-origin: left center; }
.total__desc { font-size: 14px; color: var(--muted); }
.calculator__note { font-size: 14px; color: var(--on-blue-3); max-width: 540px; }
.price-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 90px; }
.price-chip {
  height: 100px; padding: 17px 13px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.price-chip:hover { transform: translateY(-2px); }
.price-chip span { font-size: 12px; font-weight: 600; }
.price-chip strong { font-size: 16px; font-weight: 700; }
.price-chip.is-active { background: var(--yellow); }

.toolbar { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; min-height: 72px; padding: 10px 24px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }
.toolbar__sort select { height: 44px; width: auto; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--blue); }
.toolbar__meta { font-size: 14px; font-weight: 600; color: var(--blue); }
.partner-list, .project-list { margin-top: 38px; gap: 32px; }
.partner-card { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 23px; min-height: 540px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.partner-card:hover, .project-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(52, 51, 154, .08); }
.partner-card__rank { font-size: 14px; font-weight: 700; color: var(--yellow); }
.partner-card h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 18px; }
.partner-card__big { font-size: 30px; font-weight: 700; color: var(--blue); margin-top: 46px; }
.partner-card .muted-14 { margin-top: 18px; }
.partner-card .ext { margin-top: 4px; }
.ext { text-decoration: none; }
.ext:hover { text-decoration: underline; }
.ext--blue { font-size: 14px; font-weight: 600; color: var(--blue); margin-top: auto; }

.filters { min-height: 100px; gap: 12px; padding: 20px 24px; }
.filter { flex: 1 1 150px; }
.filter--search { flex: 2 1 260px; }
.filter input, .filter select { height: 52px; border-radius: 12px; font-size: 14px; }
.filter input { background-image: none; padding-right: 17px; cursor: text; }
.project-card { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 23px; min-height: 460px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.project-card[hidden] { display: none; }
.project-card__badge { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--blue); }
.project-card__product { font-size: 14px; font-weight: 600; color: var(--yellow); }
.project-card h2 { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--ink); margin-top: 4px; min-height: 80px; }
.empty-state { margin-top: 32px; font-size: 15px; color: var(--muted); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .fade-in { animation: fade-in .8s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ribbon { opacity: 1; translate: none; }
  .ribbon > i::after { display: none; }
  .js .reveal, .js .fade-in { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 40px; }
  .nav { margin-left: 32px; }
  .nav ul { gap: 20px; }
  .h1 { font-size: 48px; line-height: 56px; }
  .hero--home .h1 { min-height: 0; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
  .calculator__grid { gap: 40px; }
}

@media (max-width: 1024px) {
  .site-header__inner { height: 76px; }
  .page-commercial .site-header__inner { height: 72px; }
  .brand img { height: 42px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; margin: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 20px; padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--line-2);
    box-shadow: 0 20px 40px rgba(10, 10, 46, .12); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .page-commercial .nav { inset-block-start: 72px; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-2); }
  .nav__cta { width: 100%; }
  .hero--home .hero__grid { flex-direction: column; min-height: 0; gap: 32px; padding-block: 52px 56px; }
  .hero__copy { flex: none; }
  .hero__geometry { flex: none; max-width: none; aspect-ratio: 350 / 230; border-radius: 22px; }
  .hero--product .hero__grid--product { flex-direction: column; gap: 24px; padding-block: 44px 24px; min-height: 0; }
  .hero--product .hero__copy { flex: none; }
  .product-hero-logo { flex: none; width: 100%; max-width: 540px; align-self: center; }
  .active-product { padding: 32px; gap: 32px; }
  .split { flex-direction: column; }
  .split__copy, .pill-map, .visual-panel, .contact-form { flex: none; width: 100%; max-width: none; }
  .commercial-cta { flex-direction: column; align-items: flex-start; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; justify-content: center; }
  .calculator__grid { flex-direction: column; }
  .calculator__fields, .calculator__result { flex: none; }
}

@media (max-width: 860px) {
  .tabs, .active-product { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 22px; background: transparent; }
  .product-card { min-height: 202px; padding: 17px; border-color: var(--line); }
  .product-card.is-current { background: #fff8d6; border-color: rgba(255, 210, 0, .8); }
  .product-card__logo { height: 116px; }
  .product-card__arrow { opacity: 1; transform: none; }
  .cards-3 { grid-template-columns: 1fr; gap: 16px; }
  .step { min-height: 128px; padding: 20px; gap: 8px; }
  .step h3 { font-size: 20px; color: var(--blue); }
  .step .num { display: none; }
  .feature, .highlight { min-height: 0; }
  .highlight strong { min-height: 0; }
  .partner-card, .project-card { min-height: 0; }
  .partner-card__big { margin-top: 24px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .d-only, .d-only-flex { display: none !important; }
  .m-only { display: block; }
  .h1, .h1--56 { font-size: 40px; line-height: 46px; }
  .hero--product .h1--56 { font-size: 44px; line-height: 52px; }
  .hero--corp .h1 { min-height: 0; }
  .h1--44 { font-size: 34px; }
  .h2 { font-size: 30px; }
  .h2--40 { font-size: 28px; }
  .h2--34, .h2--32 { font-size: 26px; }
  .lead { font-size: 16px; line-height: 26px; }
  .hero__copy { gap: 20px; }
  .actions { width: 100%; }
  .btn--wide, .actions .btn { width: 100%; min-width: 0; }
  .section { padding-block: 56px; }
  .section--soft { padding-block: 56px; }
  .section--60 { padding-block: 44px; }
  .hero--corp { padding-block: 44px 52px; min-height: 0; }
  .proof-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .proof-card { min-height: 168px; padding: 18px; gap: 6px; }
  .proof-card strong { margin-top: 8px; font-size: 22px; }
  .proof-card__label { display: none; }
  .commercial-cta { padding: 28px 20px; min-height: 0; border-radius: 20px; margin-top: 20px; }
  .commercial-cta h3 { font-size: 22px; }
  .commercial-cta .btn { width: 100%; min-width: 0; }
  .cta-band__inner { min-height: 380px; padding-block: 52px; }
  .cta-band h2 { font-size: 30px; }
  .cta-band .btn { width: 100%; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .pill-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-panel { min-height: 280px; }
  .contact-form { padding: 20px; }
  .contact-form .btn { width: 100%; }
  .page-head { padding-top: 36px; }
  .commercial-body { padding-block: 36px 60px; }
  .calculator { padding: 24px 18px; }
  .calculator h2 { font-size: 24px; }
  .calculator__grid { margin-top: 28px; gap: 28px; }
  .field select { height: 56px; }
  .total { min-height: 180px; padding: 18px; }
  .total__value { font-size: 34px; }
  .price-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .price-chip { height: 96px; padding: 14px 12px; }
  .toolbar { gap: 12px; padding: 16px; }
}

/* ---------- Данные каталога 1С ---------- */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.results-count { font-size: 14px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.link-reset { border: 0; background: none; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--blue-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.page-commercial .project-list { margin-top: 16px; }
.page-commercial .project-card { min-height: 300px; }
.project-card h2 { min-height: 0; }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.more-wrap .btn[hidden] { display: none; }
.data-note { margin-top: 32px; font-size: 13px; color: var(--muted); max-width: 900px; }
.page-commercial .partner-card { min-height: 380px; }
.partner-card__links { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.partner-card__links .ext { margin: 0; }
.filters .filter { flex: 1 1 140px; }
.filters .filter--search { flex: 2 1 240px; }
.dd__list { max-height: 360px; }

/* ---------- Демо Berk 1C онлайн ---------- */
.demo-steps { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.demo-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.demo-steps span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); font-size: 13px; }
.demo-steps li.is-current { color: var(--ink); border-color: var(--yellow); background: #fffbe6; }
.demo-steps li.is-current span { background: var(--yellow); color: var(--ink); }
.demo-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.demo-picker[hidden] { display: none; }
.demo-card {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; text-align: left;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 20px; cursor: pointer; font: inherit; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.demo-card:hover, .demo-card:focus-visible { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 16px 36px rgba(52, 51, 154, .14); }
.demo-card:active { transform: translateY(-1px) scale(.99); }
.demo-card__logo { position: relative; width: 100%; height: 130px; margin-bottom: 8px; border-radius: 12px; background: var(--soft-2); }
.demo-card__logo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.demo-card__logo > img.logo-wide { padding: 4% 6%; }
.demo-card__logo .logo-cover { position: absolute; inset: 0; }
.demo-card__name { font-size: 18px; font-weight: 700; color: var(--blue); }
.demo-card__cat { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.demo-card__cta { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--yellow); padding: 8px 14px; border-radius: 10px; }
.demo-viewer[hidden] { display: none; }
.demo-viewer { animation: fade-in .35s var(--ease) both; }
.demo-viewer__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--blue); color: #fff; padding: 12px 16px; border-radius: 18px 18px 0 0; }
.demo-viewer__title { flex: 1; font-size: 16px; }
.demo-viewer__back, .demo-viewer__btn { border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s; }
.demo-viewer__back:hover, .demo-viewer__btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.demo-viewer__actions { display: flex; gap: 8px; }
.demo-viewer__btn[hidden] { display: none; }
.demo-viewer__frame { position: relative; height: min(78vh, 820px); min-height: 520px; background: #fff; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 18px 18px; overflow: hidden; }
.demo-viewer__frame:fullscreen { height: 100vh; border-radius: 0; }
.demo-viewer__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-viewer__loading, .demo-viewer__soon { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: #fff; color: var(--text); }
.demo-viewer__loading[hidden], .demo-viewer__soon[hidden], .demo-viewer__slow[hidden] { display: none; }
.demo-viewer__soon h2 { font-size: 26px; color: var(--ink); }
.demo-viewer__soon p { max-width: 520px; line-height: 1.6; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--blue); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .demo-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .demo-picker { grid-template-columns: 1fr; gap: 14px; }
  .demo-viewer__frame { height: 72vh; min-height: 420px; }
  .demo-viewer__title { flex-basis: 100%; order: -1; }
}

/* ---------- Иконки-стрелки ---------- */
.i { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -0.17em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--external { width: .95em; height: .95em; vertical-align: -0.12em; }
.ext .i, .demo-card__cta .i, .ext--blue .i { margin-left: 4px; transition: transform .2s var(--ease); }
.ext:hover .i--right, .demo-card:hover .demo-card__cta .i { transform: translateX(3px); }
.ext:hover .i--external { transform: translate(2px, -2px); }
.product-card__arrow { display: inline-flex; font-size: 20px; }
.demo-viewer__back { display: inline-flex; align-items: center; gap: 6px; }
.demo-viewer__btn .i { margin-left: 4px; }
.visual-panel__heading .i--chevron { width: .8em; height: .8em; vertical-align: -0.05em; color: var(--yellow); stroke-width: 3; }

/* ---------- Плавный переход синего hero в светлый фон ---------- */
.hero { position: relative; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; z-index: 0;
  background: linear-gradient(to bottom, rgba(245, 246, 252, 0) 0%, rgba(245, 246, 252, .35) 45%, rgba(245, 246, 252, .85) 80%, var(--soft) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero--home .hero__grid { padding-bottom: 140px; }
.hero--product .hero__grid--product { padding-bottom: 120px; }
.hero--corp { padding-bottom: 150px; }
@media (max-width: 640px) {
  .hero::after { height: 110px; }
  .hero--home .hero__grid { padding-bottom: 96px; }
  .hero--product .hero__grid--product { padding-bottom: 88px; }
  .hero--corp { padding-bottom: 100px; }
}
/* корпоративные hero: отступ под прозрачную шапку + собственный */
.has-hero main > .hero--corp:first-child { padding-top: calc(96px + 88px); }
@media (max-width: 1024px) { .has-hero main > .hero--corp:first-child { padding-top: calc(76px + 56px); } }
@media (max-width: 640px) { .has-hero main > .hero--corp:first-child { padding-top: calc(76px + 40px); } }

/* отметки партнёров с 1ctm.tm */
.partner-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff6cc; color: #5a4a00; font-size: 12px; font-weight: 600; }
