@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg:#fff; --text:#111; --muted:#6b7280; --yellow:#facc15; --yellow-dark:#d9a900;
  --line:#e5e7eb; --soft:#f3f4f6; --dark:#111; --green:#15803d; --red:#b91c1c;
  --radius:8px; --container:1200px; --header:76px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--text); font-family:"Space Grotesk",Arial,sans-serif; font-size:16px; line-height:1.625; }
body.menu-open { overflow:hidden; }
a { color:inherit; text-decoration:none; }
img,svg,video { max-width:100%; height:auto; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.55; }
:focus-visible { outline:3px solid #111; outline-offset:3px; }
.container { width:min(calc(100% - 32px),var(--container)); margin-inline:auto; }
.skip-link { position:fixed; left:16px; top:-100px; z-index:1000; background:#111; color:#fff; padding:12px 16px; }
.skip-link:focus { top:16px; }
.mono { font-family:"JetBrains Mono",monospace; }
.muted { color:var(--muted); }
.eyebrow { font:500 13px/1.4 "JetBrains Mono",monospace; text-transform:uppercase; letter-spacing:.08em; }
.page-section { padding:72px 0; }
.page-section--soft { background:var(--soft); }
.section-head { display:flex; justify-content:space-between; gap:24px; align-items:end; margin-bottom:32px; }
.section-head h2 { margin:0; }
h1,h2,h3 { line-height:1.2; letter-spacing:-.025em; }
h1 { font-size:clamp(42px,7vw,56px); margin:0 0 20px; }
h2 { font-size:clamp(32px,5vw,40px); margin:0 0 16px; }
h3 { font-size:24px; margin:0 0 10px; }
p { margin:0 0 16px; }
ul,ol { padding-left:22px; }
.site-header { position:sticky; top:0; z-index:100; background:rgba(255,255,255,.97); border-bottom:1px solid var(--line); }
.site-header::before { content:""; position:absolute; inset:0; z-index:-1; backdrop-filter:blur(10px); } /* blur не на самой шапке: иначе она становится контейнером для position:fixed и ломает мобильное меню */
.header__inner { min-height:var(--header); display:flex; align-items:center; gap:24px; }
.logo { display:inline-flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.06em; }
.logo__mark { width:38px; height:38px; border:2px solid #111; display:grid; place-items:center; font-size:13px; }
.nav { margin-left:auto; }
.nav__list { list-style:none; display:flex; gap:4px; margin:0; padding:0; }
.nav__link { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; border-radius:6px; font-size:14px; }
.nav__link:hover,.nav__link[aria-current="page"] { background:var(--soft); }
.header__actions { display:flex; align-items:center; gap:8px; }
.lang { border:1px solid var(--line); background:#fff; min-height:44px; padding:0 12px; border-radius:6px; }
.lang option[disabled] { color:#999; }
.button { min-height:46px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; border:1px solid transparent; border-radius:6px; font-weight:600; transition:.15s ease; }
.button_theme_primary { background:var(--yellow); color:#111; border-color:var(--yellow); }
.button_theme_primary:hover { background:#fde047; border-color:#fde047; }
.button_theme_primary:active { transform:translateY(1px); }
.button_theme_secondary { background:#fff; border-color:#111; }
.button_theme_secondary:hover { background:#111; color:#fff; }
.button_theme_ghost { background:transparent; padding-inline:8px; }
.button_theme_ghost:hover { text-decoration:underline; }
.button--loading { position:relative; color:transparent!important; }
.button--loading::after { content:""; width:16px; height:16px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .7s linear infinite; position:absolute; }
@keyframes spin { to { transform:rotate(360deg); } }
.burger { display:none; width:44px; height:44px; border:1px solid var(--line); background:#fff; border-radius:6px; }
.burger span,.burger::before,.burger::after { content:""; display:block; width:20px; height:2px; background:#111; margin:4px auto; transition:.15s; }
.hero { padding:76px 0 0; }
.hero__grid { display:grid; gap:36px; align-items:center; }
.hero__copy { max-width:720px; }
.hero__subtitle { color:var(--muted); font-size:18px; max-width:650px; }
.hero__actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.hero__visual { min-height:320px; background:var(--soft); border:1px solid var(--line); border-radius:var(--radius); display:grid; place-items:center; }
.founders { display:flex; align-items:end; gap:12px; padding:28px; }
.founder { width:100px; height:180px; position:relative; background:#d1d5db; border-radius:50px 50px 8px 8px 8px; filter:grayscale(1); }
.founder::before { content:""; width:72px; height:72px; border-radius:50%; background:#9ca3af; position:absolute; top:-34px; left:14px; }
.founder:nth-child(2) { height:210px; }
.founder:nth-child(3) { height:165px; }
.ticker { border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-top:64px; }
.ticker__inner { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ticker__value { font-family:"JetBrains Mono",monospace; }
.ticker__delta--up { color:var(--green); }
.ticker__delta--down { color:var(--red); }
.stats { display:grid; grid-template-columns:repeat(2,1fr); border:1px solid var(--line); }
.stat { padding:24px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat:nth-child(2n) { border-right:0; }
.stat:nth-last-child(-n+2) { border-bottom:0; }
.stat__value { font-size:32px; font-weight:700; letter-spacing:-.03em; }
.stat__label { color:var(--muted); }
.grid { display:grid; gap:16px; }
.grid--3 { grid-template-columns:1fr; }
.grid--2 { grid-template-columns:1fr; }
.card { border:1px solid var(--line); border-radius:var(--radius); background:#fff; padding:24px; }
.card--featured { border-color:#111; }
.product-card { min-height:260px; display:flex; flex-direction:column; justify-content:space-between; }
.product-card__icon { width:72px; height:72px; margin-bottom:24px; }
.product-card__title { margin-bottom:8px; }
.product-card__meta { color:var(--muted); font-family:"JetBrains Mono",monospace; font-size:14px; }
.product-card__link { margin-top:18px; font-weight:600; }
.news-card time { display:block; margin-bottom:14px; color:var(--muted); font:13px "JetBrains Mono",monospace; }
.subscribe { border:1px solid var(--line); padding:32px; display:grid; gap:20px; }
.form-row { display:grid; gap:12px; }
.input,.select,.textarea { width:100%; min-height:46px; border:1px solid #cfd3d8; border-radius:6px; padding:10px 12px; background:#fff; }
.textarea { min-height:130px; resize:vertical; }
label { font-weight:600; font-size:14px; }
.form-help,.form-error { font-size:13px; color:var(--muted); }
.form-error { color:var(--red); }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:400; }
.check input { width:20px; height:20px; flex:0 0 auto; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:var(--radius); }
table { width:100%; border-collapse:collapse; min-width:680px; }
th,td { padding:14px 16px; text-align:left; border-bottom:1px solid var(--line); }
thead th { background:var(--soft); font-weight:600; }
tbody tr:last-child td { border-bottom:0; }
.price { font:600 15px "JetBrains Mono",monospace; }
.logo-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.logo-tile { min-height:140px; display:grid; place-items:center; border:1px solid var(--line); background:#fff; }
.video-box { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#111; }
.video-box video { width:100%; display:block; }
.video-placeholder { aspect-ratio:16/9; display:grid; place-items:center; background:var(--soft); color:var(--muted); }
.callout { border-left:4px solid var(--yellow); padding:20px 24px; background:var(--soft); }
.timeline { list-style:none; padding:0; margin:0; border-left:2px solid #111; }
.timeline li { position:relative; padding:0 0 28px 28px; }
.timeline li::before { content:""; position:absolute; width:10px; height:10px; border-radius:50%; background:var(--yellow); border:2px solid #111; left:-7px; top:6px; }
.office-list { display:grid; gap:12px; }
.office { border:1px solid var(--line); padding:18px; border-radius:var(--radius); }
.map { width:100%; height:420px; border:0; border-radius:var(--radius); }
.map-placeholder { height:420px; background:var(--soft); border:1px solid var(--line); border-radius:var(--radius); display:grid; place-items:center; text-align:center; padding:24px; }
.site-footer { margin-top:72px; background:#111; color:#fff; padding:56px 0 28px; }
.footer__grid { display:grid; gap:28px; }
.footer__links { display:flex; flex-wrap:wrap; gap:12px 20px; color:#d1d5db; }
.footer__social { display:flex; gap:10px; }
.social { width:44px; height:44px; border:1px solid #333; display:grid; place-items:center; color:var(--yellow); border-radius:50%; }
.footer__bottom { margin-top:40px; padding-top:20px; border-top:1px solid #333; color:#9ca3af; font-size:14px; }
.cookie { position:fixed; z-index:200; left:16px; right:16px; bottom:16px; background:#111; color:#fff; padding:20px; border-radius:8px; box-shadow:0 8px 32px rgba(0,0,0,.2); display:none; }
.cookie.is-visible { display:block; }
.cookie__actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.cookie .button_theme_secondary { background:#111; color:#fff; border-color:#fff; }
.cookie .button_theme_primary { color:#111; }
.modal { position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.55); display:none; align-items:center; justify-content:center; padding:20px; }
.modal.is-open { display:flex; }
.modal__dialog { background:#fff; width:min(560px,100%); max-height:90vh; overflow:auto; border-radius:8px; padding:28px; }
.close { border:0; background:transparent; font-size:28px; line-height:1; }
.calculator { display:grid; gap:20px; }
.calc-result { padding:20px; background:var(--soft); border:1px solid var(--line); }
.status { display:inline-flex; align-items:center; gap:7px; font:13px "JetBrains Mono",monospace; }
.status::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--green); }
.status.is-warning::before { background:#d97706; }
.status.is-offline::before { background:var(--red); }
.jobs { display:grid; gap:16px; }
.job__top { display:flex; justify-content:space-between; gap:12px; }
.badge { display:inline-flex; padding:4px 8px; border-radius:999px; background:var(--soft); font:12px "JetBrains Mono",monospace; }
.notice { padding:14px 16px; border:1px solid var(--line); border-radius:6px; background:var(--soft); }
@media (min-width:768px) {
  .container { width:min(calc(100% - 48px),var(--container)); }
  .hero__grid { grid-template-columns:1.2fr .8fr; }
  .grid--2 { grid-template-columns:repeat(2,1fr); }
  .grid--3 { grid-template-columns:repeat(3,1fr); }
  .stats { grid-template-columns:repeat(4,1fr); }
  .stat,.stat:nth-child(2n),.stat:nth-last-child(-n+2) { border-right:1px solid var(--line); border-bottom:0; }
  .stat:last-child { border-right:0; }
  .form-row--2 { grid-template-columns:repeat(2,1fr); }
  .subscribe { grid-template-columns:1fr auto; align-items:center; }
  .subscribe .form-row { grid-template-columns:1fr auto; }
  .logo-grid { grid-template-columns:repeat(4,1fr); }
  .footer__grid { grid-template-columns:2fr 1fr 1fr; }
  .jobs { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:767px) {
  .nav { position:fixed; inset:var(--header) 0 0; background:#fff; padding:16px; transform:translateX(100%); transition:transform .2s; border-top:1px solid var(--line); }
  .nav.is-open { transform:translateX(0); }
  .nav__list { flex-direction:column; }
  .nav__link { width:100%; }
  .burger { display:block; }
  .header__actions .button { display:none; }
  .burger[aria-expanded="true"] span { opacity:0; }
  .burger[aria-expanded="true"]::before { transform:translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"]::after { transform:translateY(-6px) rotate(-45deg); }
  .ticker__inner { align-items:flex-start; flex-direction:column; padding:12px 0; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

@media (min-width:768px){.grid--4{grid-template-columns:repeat(4,1fr);}}

/* ===================== Расширение: логотип, медиа, «Подробнее», модальные окна ===================== */
.logo__img { width:38px; height:38px; display:block; border-radius:6px; }
body.modal-open { overflow:hidden; }
.muted a,.link { text-decoration:underline; text-underline-offset:3px; }

.media-missing { display:grid; align-content:center; justify-items:center; gap:4px; width:100%; background:repeating-linear-gradient(45deg,#f3f4f6,#f3f4f6 12px,#eceef1 12px,#eceef1 24px); border:1px dashed #9ca3af; color:#4b5563; text-align:center; padding:12px; font:12px/1.4 "JetBrains Mono",monospace; overflow:hidden; word-break:break-all; }
.media-missing strong { text-transform:uppercase; letter-spacing:.08em; }
.media-missing small { font-weight:600; color:#111; }

.photo { width:100%; display:block; object-fit:cover; border-radius:var(--radius); border:1px solid var(--line); background:var(--soft); }
.hero__visual--photo { padding:0; min-height:0; overflow:hidden; display:block; }
.hero__visual--photo .photo,.hero__visual--photo .media-missing { aspect-ratio:16/10; border:0; border-radius:0; }

.more { background:none; border:0; padding:6px 0; font-weight:600; color:#111; border-bottom:2px solid var(--yellow); align-self:flex-start; margin-top:12px; }
.more:hover { background:var(--yellow); }
.product-card .more { margin-top:18px; }
.news-card[data-detail],.card[data-detail] { cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.news-card[data-detail]:hover { border-color:#111; box-shadow:0 4px 18px rgba(0,0,0,.08); }
.news-card { display:flex; flex-direction:column; }

/* Модальное окно */
.modal { overflow-y:auto; }
.modal__dialog--wide { width:min(900px,100%); padding:0; position:relative; outline:0; }
.modal__close { position:sticky; top:12px; float:right; margin:12px 12px -48px 0; width:40px; height:40px; z-index:2; border:1px solid #111; background:#fff; border-radius:50%; font-size:26px; line-height:1; display:grid; place-items:center; }
.modal__close:hover { background:var(--yellow); }
.detail__media { margin:0; }
.detail__media img,.detail__media .media-missing { display:block; width:100%; aspect-ratio:auto; border-radius:8px 8px 0 0; }
.detail__media .media-missing { border-radius:8px 8px 0 0; }
.detail__body { padding:28px 32px 32px; }
.detail__body h2 { font-size:clamp(26px,4vw,34px); }
.detail__h { font-size:18px; margin:20px 0 6px; }
.facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1px; margin:22px 0; background:var(--line); border:1px solid var(--line); }
.facts div { background:#fff; padding:12px 14px; }
.facts dt { font:12px "JetBrains Mono",monospace; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.facts dd { margin:2px 0 0; font-weight:600; }
.detail__video { margin:22px 0 0; border-radius:8px; overflow:hidden; background:#111; }
.detail__video video { width:100%; display:block; aspect-ratio:16/9; }
.detail__cta { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.detail__note { margin:22px 0 0; font-size:12px; color:var(--muted); }

/* Таймлайн: описание по наведению / фокусу / нажатию */
.tl { cursor:default; outline-offset:2px; }
.tl__head { transition:transform .15s; }
.tl:hover .tl__head,.tl:focus-within .tl__head,.tl.is-open .tl__head { transform:translateX(4px); }
.tl::before { transition:background .15s, transform .15s; }
.tl:hover::before,.tl:focus-within::before,.tl.is-open::before { background:#111; transform:scale(1.3); }
.tl__more { display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .25s ease, opacity .25s ease; }
.tl__more > div { overflow:hidden; }
.tl:hover .tl__more,.tl:focus-within .tl__more,.tl.is-open .tl__more { grid-template-rows:1fr; opacity:1; }
.tl__more p { margin:8px 0 0; padding:12px 14px; background:#fff; border-left:3px solid var(--yellow); color:#374151; }
.tl__more .more { margin:6px 0 0; }

/* Этапы внедрения */
.steps__tools { display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.steps { list-style:none; margin:0; padding:0; display:grid; gap:12px; counter-reset:step; position:relative; }
.step { counter-increment:step; border:1px solid var(--line); border-radius:var(--radius); background:#fff; overflow:hidden; transition:border-color .15s; }
.step[open] { border-color:#111; box-shadow:0 6px 24px rgba(0,0,0,.06); }
.step summary { list-style:none; display:grid; grid-template-columns:auto 1fr auto; gap:6px 18px; align-items:center; padding:18px 20px; cursor:pointer; }
.step summary::-webkit-details-marker { display:none; }
.step summary:hover { background:var(--soft); }
.step__num { width:46px; height:46px; border-radius:50%; background:var(--yellow); border:2px solid #111; display:grid; place-items:center; font:700 18px "JetBrains Mono",monospace; grid-row:span 2; }
.step__num::before { content:counter(step); }
.step__title { font-weight:700; font-size:20px; letter-spacing:-.02em; }
.step__sum { grid-column:2; color:var(--muted); font-size:15px; }
.step__time { grid-column:3; grid-row:1; font:12px "JetBrains Mono",monospace; background:var(--soft); border-radius:999px; padding:4px 10px; white-space:nowrap; }
.step__chev { grid-column:3; grid-row:2; justify-self:end; width:10px; height:10px; border-right:2px solid #111; border-bottom:2px solid #111; transform:rotate(45deg); transition:transform .2s; }
.step[open] .step__chev { transform:rotate(-135deg); }
.step__body { padding:4px 20px 22px 84px; display:grid; gap:18px; }
.step__body h4 { margin:0 0 6px; font:600 12px "JetBrains Mono",monospace; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.step__body ul { margin:0; padding-left:20px; }
.step__cols { display:grid; gap:18px; }
.step__out { border-left:4px solid var(--yellow); background:var(--soft); padding:12px 16px; }
@media (min-width:768px) { .step__cols { grid-template-columns:1fr 1fr; } }
@media (max-width:767px) { .step__body { padding-left:20px; } .step summary { grid-template-columns:auto 1fr; } .step__time,.step__chev { grid-column:2; grid-row:auto; justify-self:start; } }

/* Офисы и карта */
.map-wrap { position:sticky; top:calc(var(--header) + 16px); }
#office-map { height:560px; border:1px solid var(--line); border-radius:var(--radius); background:var(--soft); z-index:1; }
.map-fallback { height:100%; display:grid; place-content:center; text-align:center; padding:24px; }
.map-hint { font-size:13px; color:var(--muted); margin:8px 0 0; }
.office-tools { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.office-tools h2 { margin:0; font-size:28px; }
.office-list { max-height:560px; overflow-y:auto; padding:2px 6px 2px 2px; scrollbar-gutter:stable; }
.office { padding:0; overflow:hidden; display:grid; transition:border-color .15s, box-shadow .15s; }
.office.is-active { border-color:#111; box-shadow:0 0 0 2px var(--yellow); }
.office__group { font:600 12px "JetBrains Mono",monospace; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:10px 0 -2px; }
.office__main { display:grid; grid-template-columns:128px 1fr; gap:14px; align-items:center; text-align:left; background:#fff; border:0; padding:10px; width:100%; }
.office__main:hover { background:var(--soft); }
.office__thumb { width:128px; aspect-ratio:16/10; object-fit:cover; border-radius:6px; background:var(--soft); display:block; }
.office__thumb.media-missing { font-size:9px; padding:4px; }
.office__thumb.media-missing span { display:none; }
.office__text { display:grid; gap:2px; }
.office__title { display:flex; align-items:center; gap:8px; font-weight:700; line-height:1.25; }
.office__icon { width:28px; height:28px; flex:0 0 auto; background:var(--yellow); border-radius:50%; padding:4px; }
.office__addr { display:block; font-style:normal; color:var(--muted); font-size:14px; }
.office__foot { display:flex; justify-content:space-between; align-items:center; padding:0 12px 10px; }
.office__foot .more { margin:0; }
.office__type { font:12px "JetBrains Mono",monospace; color:var(--muted); }
.pin__dot { width:42px; height:42px; display:grid; place-items:center; background:var(--yellow); border:2px solid #111; border-radius:50%; box-shadow:0 2px 8px rgba(0,0,0,.35); }
.pin__dot img { width:24px; height:24px; }
.pin__dot--hq { background:#111; } .pin__dot--hq img { filter:invert(1); }
.pop img,.pop .media-missing { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:6px; display:block; margin-bottom:8px; }
.pop strong { display:block; font-size:15px; }
.pop span { display:block; color:var(--muted); font-size:13px; }
.pop__actions { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:8px; font-size:13px; }
.pop__btn { background:var(--yellow); border:1px solid #111; border-radius:6px; padding:6px 10px; font-weight:600; }
.leaflet-container { font-family:"Space Grotesk",Arial,sans-serif; }

/* Телефон */
.phone__row { display:grid; grid-template-columns:minmax(150px,230px) 1fr; gap:8px; }
.phone .input:invalid:not(:placeholder-shown):not(:focus) { border-color:var(--red); }
@media (max-width:520px) { .phone__row { grid-template-columns:1fr; } }

/* Этические принципы и команда */
.ethic { padding:0; overflow:hidden; display:flex; flex-direction:column; }
.ethic__img { width:100%; aspect-ratio:16/10; object-fit:cover; display:block; background:var(--soft); }
.ethic .media-missing { border:0; border-bottom:1px dashed #9ca3af; }
.ethic__body { padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.ethic__body h3 { font-size:21px; }
.team { display:grid; gap:24px; align-items:start; }
.team__names { display:grid; gap:12px; }
.team__person { border-left:4px solid var(--yellow); padding:6px 0 6px 16px; }
.team__person h3 { margin:0; font-size:20px; }
.case-card { display:flex; flex-direction:column; }
.bw { display:grid; gap:20px; align-items:center; }
.bw__card { border:1px solid #111; border-radius:var(--radius); padding:24px; background:#fff; }
.bw__card .disclaimer { font-size:13px; color:var(--muted); }
.ext::after { content:" ↗"; }
@media (min-width:900px) { .team { grid-template-columns:2fr 1fr; } .bw { grid-template-columns:1.4fr 1fr; } }

/* Социальные сети в подвале */
.footer__social { flex-wrap:wrap; }
.social { font:600 14px "JetBrains Mono",monospace; transition:background .15s,color .15s; }
.social:hover { background:var(--yellow); color:#111; border-color:var(--yellow); }
.footer__links .ext { color:var(--yellow); }
.footer__social-list { display:grid; gap:8px; margin-top:12px; font-size:14px; color:#d1d5db; }
@media (max-width:640px) { .modal { padding:0; align-items:flex-end; } .modal__dialog--wide { max-height:94vh; border-radius:12px 12px 0 0; } .detail__body { padding:22px 20px 26px; } }
.job__actions { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px; }
.job__actions .more { margin:0; }

/* ===================== Новые страницы и блоки ===================== */
/* Меню с 8 пунктами: бургер до 1100px */
.account-link { font-size:14px; font-weight:600; border-bottom:2px solid var(--yellow); padding:4px 0; max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-link:hover { background:var(--yellow); }
.nav__account { display:none; }
@media (min-width:768px) and (max-width:1199px) {
  .nav { position:fixed; inset:var(--header) 0 0; background:#fff; padding:16px; transform:translateX(100%); transition:transform .2s; border-top:1px solid var(--line); overflow-y:auto; }
  .nav.is-open { transform:translateX(0); }
  .nav__list { flex-direction:column; align-items:stretch; }
  .nav__link { width:100%; }
  .burger { display:block; }
  .header__actions .button { display:none; }
}
@media (max-width:1199px) {
  .header__actions { margin-left:auto; }
  .account-link { display:none; }
  .nav__account { display:block; }
}

/* Схема платформы */
.arch { display:grid; gap:20px; margin-top:20px; }
.arch__layer { position:relative; display:grid; grid-template-columns:160px 1fr; gap:16px; align-items:center; padding:14px 0; }
.arch__layer + .arch__layer::before { content:"↓"; position:absolute; left:70px; top:-12px; font:600 18px "JetBrains Mono",monospace; color:var(--muted); }
.arch__label { font:600 12px "JetBrains Mono",monospace; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); background:none; border:0; padding:0; text-align:left; }
button.arch__label { cursor:pointer; border-bottom:2px solid var(--yellow); justify-self:start; color:#111; }
.arch__nodes { display:flex; flex-wrap:wrap; gap:10px; }
.arch__node { display:inline-flex; align-items:center; gap:10px; min-height:56px; padding:10px 16px; border:1px solid #111; border-radius:8px; background:#fff; font-weight:600; transition:opacity .15s, background .15s; }
.arch__node img { width:32px; height:32px; }
.arch__node:hover,.arch__node:focus-visible { background:var(--yellow); }
.arch__node.is-linked { background:#fde68a; }
.arch__node.is-dim { opacity:.3; }
.arch__node--static { border-style:dashed; font-weight:500; cursor:default; }
.arch__side { display:grid; gap:12px; align-content:start; }
.arch__group { border:1px solid var(--line); border-radius:8px; padding:14px 16px; background:var(--soft); }
.arch__group .arch__nodes { margin-top:10px; }
.arch__caption { margin:0; min-height:3.4em; padding:12px 16px; border-left:4px solid var(--yellow); background:var(--soft); }
@media (min-width:900px) { .arch { grid-template-columns:1fr 280px; } .arch__caption { grid-column:1 / -1; } }
@media (max-width:600px) { .arch__layer { grid-template-columns:1fr; } .arch__layer + .arch__layer::before { left:0; } }

/* Подбор конфигурации */
.cfg { display:grid; gap:16px; margin-top:20px; }
.cfg__q { border:1px solid var(--line); border-radius:8px; padding:14px 18px 18px; background:#fff; margin:0; min-width:0; }
.cfg__q legend { font-weight:700; padding:0 6px; }
.cfg__opts { display:grid; gap:8px; margin-top:8px; }
@media (min-width:900px) { .cfg__opts { grid-template-columns:repeat(3,1fr); } }
.cfg__opt { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:6px; cursor:pointer; font-weight:400; }
.cfg__opt:hover { border-color:#111; }
.cfg__opt input { margin-top:3px; width:18px; height:18px; flex:0 0 auto; accent-color:#111; }
.cfg__opt:has(input:checked) { border-color:#111; background:var(--soft); box-shadow:inset 3px 0 0 var(--yellow); }
.cfg__bar { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.cfg__result { border:2px solid #111; border-radius:8px; padding:22px 24px; background:#fff; }
.cfg__result[hidden] { display:none; }
.cfg__result h3 { font-size:28px; }
.cfg__notes { color:#374151; }

/* Новости: фильтры, теги */
.newsbar { display:grid; gap:12px; margin-bottom:12px; }
@media (min-width:768px) { .newsbar { grid-template-columns:2fr 1fr 1fr auto; align-items:end; } }
.newsbar label { display:block; font-weight:600; font-size:14px; margin-bottom:4px; }
.tags { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 0; padding:0; list-style:none; }
.tag { font:12px "JetBrains Mono",monospace; background:var(--soft); border-radius:999px; padding:3px 10px; }
.news-item[hidden],[data-news-item][hidden] { display:none; }
.news-card .more { margin-top:auto; padding-top:12px; }
.rss { display:inline-flex; gap:6px; align-items:center; font-weight:600; border-bottom:2px solid var(--yellow); }
.empty { padding:32px; text-align:center; border:1px dashed #9ca3af; border-radius:8px; }
.empty[hidden],.cfg__result[hidden] { display:none; }

/* Команда */
.people { display:grid; gap:20px; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); }
.person { padding:0; overflow:hidden; display:flex; flex-direction:column; }
.person__img { width:100%; aspect-ratio:4/5; object-fit:cover; display:block; background:var(--soft); }
.person .media-missing { border:0; border-bottom:1px dashed #9ca3af; }
.person__body { padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.person__body h3 { font-size:19px; margin:0 0 2px; }
.detail__split { display:grid; }
.detail__media--portrait img,.detail__media--portrait .media-missing { border-radius:8px 8px 0 0; }
@media (min-width:768px) {
  .detail__split { grid-template-columns:300px 1fr; align-items:start; }
  .detail__media--portrait img,.detail__media--portrait .media-missing { border-radius:8px 0 0 8px; position:sticky; top:0; }
}

/* Безопасность */
.badge-status { display:inline-block; font:12px "JetBrains Mono",monospace; border-radius:999px; padding:3px 10px; background:#dcfce7; color:#14532d; white-space:nowrap; }
.badge-status--wip { background:#fef9c3; color:#713f12; }
.table-wrap td .more { margin:0; }

/* Пресс-кит */
.boiler { border:1px solid var(--line); border-radius:8px; padding:18px 20px; background:#fff; }
.boiler p { margin:0 0 12px; }
.logo-demo { display:grid; place-items:center; padding:28px; border:1px solid var(--line); border-radius:8px; min-height:160px; }
.logo-demo img { width:96px; height:96px; }
.logo-demo--dark { background:#111; }
.swatches { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); }
.swatch { border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fff; }
.swatch__color { height:84px; border-bottom:1px solid var(--line); }
.swatch__info { padding:10px 12px; display:grid; gap:6px; }
.swatch__info code { font-size:14px; }
.copy-btn { background:none; border:1px solid #111; border-radius:6px; padding:5px 10px; font-weight:600; font-size:13px; justify-self:start; }
.copy-btn:hover { background:var(--yellow); }
.press-photos { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.press-photos img,.press-photos .media-missing { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:8px; display:block; }
.dont li::marker { color:var(--red); } .do li::marker { color:var(--green); }

/* Кабинет */
.cab { display:grid; gap:24px; }
@media (min-width:900px) { .cab { grid-template-columns:340px 1fr; align-items:start; } }
.cab__side { display:grid; gap:16px; }
.cab__list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.cab__list a { border-bottom:2px solid var(--yellow); font-weight:600; }
.req__head { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:baseline; }
.req__head h3 { margin:0; }
.req__actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.track { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:6px; }
@media (min-width:640px) { .track { grid-template-columns:repeat(4,1fr); } }
.track li { padding:8px 10px; border-radius:6px; background:var(--soft); font-size:13px; color:var(--muted); border-top:4px solid var(--line); }
.track li.is-done { border-top-color:var(--green); color:#111; }
.track li.is-current { border-top-color:var(--yellow-dark); background:#fef9c3; color:#111; font-weight:600; }
.gate { text-align:center; max-width:560px; margin:0 auto; }
.gate[hidden],#cabinet-app[hidden] { display:none; }

/* Коротко об истории */
.digest { display:grid; gap:16px; margin-top:20px; }
@media (min-width:768px) { .digest { grid-template-columns:repeat(4,1fr); } }
.digest__item { display:flex; flex-direction:column; }
.digest__years { font:700 22px "JetBrains Mono",monospace; }
.digest__item h3 { font-size:18px; margin:6px 0; }
.lead { font-size:18px; max-width:820px; }
.map-note { margin:8px 0 0; padding:10px 14px; border-left:4px solid var(--yellow); background:var(--soft); font-size:14px; }
.map-note[hidden] { display:none; }

/* Закрытое мобильное меню не должно ловить Tab и расширять страницу */
@media (max-width:1199px) { .nav { visibility:hidden; transition:transform .2s, visibility 0s .2s; } .nav.is-open { visibility:visible; transition:transform .2s; } }

/* Шапка: логотип не сжимается и не прячется под меню, язык не раздувает строку */
.header__inner { gap:16px; }
.logo { flex:0 0 auto; white-space:nowrap; }
.lang { width:72px; flex:0 0 auto; padding:0 8px; }
.nav__link { padding:8px 10px; white-space:nowrap; }
.header__actions { flex:0 0 auto; }

/* ===================== Раунд 3: формы, cookies, чат, FAQ, поиск, правовые страницы, 404 ===================== */
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.link-btn { background:none; border:0; padding:0; font:inherit; color:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.link-btn:hover { background:var(--yellow); }
.actions-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }

/* Формы: между строками был нулевой отступ */
.card form, form.card { display:grid; gap:18px; }
form.card .form-error--top, .card form .form-error--top { margin:0; }
.check { display:flex; gap:10px; align-items:flex-start; line-height:1.4; }
.check input { margin-top:3px; flex:0 0 auto; }

/* Иконка поиска в шапке */
.icon-link { display:inline-grid; place-items:center; width:44px; height:44px; border-radius:6px; flex:0 0 auto; }
.icon-link:hover { background:var(--yellow); }
@media (max-width:1199px) { .icon-link { display:none; } }

/* Баннер cookies: карточка слева внизу, а не полоса на всю ширину */
.cookie { left:16px; right:auto; width:calc(100% - 32px); max-width:540px; padding:20px 22px; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.35); }
.cookie.is-visible { display:block; }
.cookie strong { display:block; font-size:17px; margin-bottom:6px; }
.cookie p { margin:0; color:#d1d5db; font-size:14px; line-height:1.5; }
.cookie .link { color:var(--yellow); }
.cookie .button { min-height:40px; padding:0 14px; font-size:14px; }
.cookie .button_theme_ghost { color:#fff; border-color:transparent; }
.cookie .button_theme_ghost:hover { background:#222; }
.cookie-panel { width:min(560px,100%); padding:28px 28px 24px; position:relative; }
.cookie-panel h2 { margin:0 40px 8px 0; font-size:26px; }
.cookie-panel .modal__close { position:absolute; top:14px; right:14px; float:none; margin:0; }
.cookie-panel__actions { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 12px; }
.switch { position:relative; display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:start; padding:14px 0; border-top:1px solid var(--line); cursor:pointer; }
.switch input { position:absolute; opacity:0; width:44px; height:26px; margin:0; cursor:pointer; }
.switch__ui { width:44px; height:26px; border-radius:999px; background:#d1d5db; position:relative; transition:background .15s; flex:none; margin-top:2px; }
.switch__ui::after { content:""; position:absolute; left:3px; top:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:transform .15s; }
.switch input:checked + .switch__ui { background:#111; }
.switch input:checked + .switch__ui::after { transform:translateX(18px); background:var(--yellow); }
.switch input:focus-visible + .switch__ui { outline:3px solid var(--yellow); outline-offset:2px; }
.switch input:disabled + .switch__ui { opacity:.55; }
.switch__text { display:grid; gap:2px; }
.switch__text small { color:var(--muted); font-size:14px; line-height:1.4; font-weight:400; }
@media (max-width:900px) { body.cookie-open .chat-fab { display:none; } }
@media (max-width:520px) { .cookie { left:8px; bottom:8px; width:calc(100% - 16px); padding:16px; } .cookie__actions .button { flex:1 1 auto; } .cookie-panel { padding:22px 18px 18px; } }

/* Чат-помощник */
.chat-root { position:fixed; right:20px; bottom:20px; z-index:150; display:flex; flex-direction:column-reverse; align-items:flex-end; gap:12px; pointer-events:none; }
.chat-root > * { pointer-events:auto; }
.chat-fab { display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 18px; border-radius:999px; border:2px solid #111; background:var(--yellow); font-weight:700; box-shadow:0 6px 20px rgba(0,0,0,.22); }
.chat-fab:hover { background:#fde047; }
.chat { width:min(400px,calc(100vw - 32px)); height:min(620px,calc(100vh - 110px)); display:flex; flex-direction:column; background:#fff; border:1px solid #111; border-radius:14px; overflow:hidden; box-shadow:0 16px 48px rgba(0,0,0,.28); }
.chat[hidden] { display:none; }
.chat__head { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 12px 12px 16px; background:#111; color:#fff; flex:0 0 auto; }
.chat__title { display:grid; gap:2px; min-width:0; }
.chat__mode { font:12px "JetBrains Mono",monospace; color:#9ca3af; }
.chat__mode.is-ai { color:var(--yellow); }
.chat__tools { display:flex; gap:2px; }
.chat__tools button { width:36px; height:36px; display:grid; place-items:center; background:none; border:0; color:#fff; border-radius:6px; }
.chat__tools button:hover { background:#333; }
.chat__log { flex:1 1 auto; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:#fafafa; scroll-behavior:smooth; }
.chat__log[hidden],.chat__quick[hidden],.chat__form[hidden],.chat__gate[hidden],.chat__settings[hidden] { display:none; }
.msg { display:flex; }
.msg--user { justify-content:flex-end; }
.msg__bubble { max-width:88%; padding:10px 14px; border-radius:14px; font-size:15px; line-height:1.5; overflow-wrap:anywhere; }
.msg--bot .msg__bubble { background:#fff; border:1px solid var(--line); border-bottom-left-radius:4px; }
.msg--user .msg__bubble { background:var(--yellow); border-bottom-right-radius:4px; white-space:pre-wrap; }
.msg__bubble p { margin:0 0 8px; } .msg__bubble p:last-child { margin:0; }
.msg__bubble ul { margin:4px 0 8px; padding-left:20px; } .msg__bubble li { margin:2px 0; }
.msg__bubble a { text-decoration:underline; text-underline-offset:2px; font-weight:600; }
.msg__bubble code { background:var(--soft); padding:1px 5px; border-radius:4px; font-size:13px; }
.dots { display:inline-flex; gap:4px; padding:4px 0; }
.dots i { width:7px; height:7px; border-radius:50%; background:#9ca3af; animation:blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay:.15s; } .dots i:nth-child(3) { animation-delay:.3s; }
@keyframes blink { 0%,80%,100% { opacity:.25; transform:scale(.8); } 40% { opacity:1; transform:scale(1); } }
.chat__quick { display:flex; flex-wrap:wrap; gap:6px; padding:8px 16px 0; background:#fafafa; flex:0 0 auto; max-height:30%; overflow-y:auto; }
.chat__quick .chip { font-size:13px; padding:5px 11px; text-align:left; }
.chat__form { display:flex; gap:8px; align-items:flex-end; padding:12px 12px 6px; background:#fafafa; flex:0 0 auto; }
.chat__form textarea { flex:1; resize:none; border:1px solid #9ca3af; border-radius:10px; padding:10px 12px; font:inherit; font-size:15px; line-height:1.4; max-height:120px; min-height:44px; background:#fff; }
.chat__form textarea:focus { outline:2px solid var(--yellow); outline-offset:1px; border-color:#111; }
.chat__send { width:44px; height:44px; border-radius:10px; border:1px solid #111; background:var(--yellow); display:grid; place-items:center; flex:0 0 auto; }
.chat__send:hover:not(:disabled) { background:#fde047; } .chat__send:disabled { opacity:.5; cursor:not-allowed; }
.chat__foot { margin:0; padding:0 16px 10px; background:#fafafa; font-size:12px; color:var(--muted); flex:0 0 auto; }
.chat__gate,.chat__settings { flex:1 1 auto; overflow-y:auto; padding:18px 18px 20px; display:grid; gap:10px; align-content:start; }
.chat__gate h3,.chat__settings h3 { margin:0; font-size:20px; }
.chat__gate p,.chat__settings p { margin:0; }
.chat__gate-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.chat__settings label { font-weight:600; font-size:14px; margin-top:4px; }
.chat__note { font-size:13px; line-height:1.45; }
@media (max-width:640px) {
  .chat-root { right:12px; bottom:12px; }
  .chat { position:fixed; inset:0; width:100%; height:100%; border-radius:0; border:0; }
  body.chat-open { overflow:hidden; } body.chat-open .chat-fab { display:none; }
}

/* FAQ */
.faq-wrap { max-width:860px; }
.faq-tools { display:grid; gap:6px; margin-bottom:8px; }
.faq-tools label { font-weight:600; }
.faq-group { margin:36px 0 14px; font-size:26px; }
.faq { border:1px solid var(--line); border-radius:8px; background:#fff; margin-bottom:10px; transition:border-color .15s; scroll-margin-top:96px; }
.faq[open] { border-color:#111; box-shadow:0 4px 18px rgba(0,0,0,.06); }
.faq[hidden] { display:none; }
.faq summary { list-style:none; cursor:pointer; padding:16px 52px 16px 20px; font-weight:600; font-size:17px; position:relative; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:""; position:absolute; right:22px; top:50%; width:9px; height:9px; margin-top:-7px; border-right:2px solid #111; border-bottom:2px solid #111; transform:rotate(45deg); transition:transform .2s; }
.faq[open] summary::after { transform:rotate(-135deg); margin-top:-2px; }
.faq summary:hover { background:var(--soft); border-radius:8px; }
.faq__a { padding:0 20px 18px; color:#374151; }
.faq__a p { margin:0 0 10px; }
.faq__links { display:flex; flex-wrap:wrap; gap:6px 18px; }
.faq-cta { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; margin-top:36px; }
.faq-cta h3 { margin:0 0 4px; } .faq-cta p { margin:0; }
.faq-cta__actions { display:flex; flex-wrap:wrap; gap:10px; }

/* Политика конфиденциальности */
.legal { display:grid; gap:28px; }
.legal__toc { font-size:15px; }
.legal__toc ol { margin:10px 0 0; padding-left:20px; display:grid; gap:6px; }
.legal__toc a:hover { text-decoration:underline; }
.legal__sec { margin-bottom:36px; scroll-margin-top:96px; max-width:820px; }
.legal__sec h2 { font-size:26px; }
.legal__sec li { margin:4px 0; }
@media (min-width:960px) { .legal { grid-template-columns:260px 1fr; align-items:start; } .legal__toc { position:sticky; top:calc(var(--header) + 20px); } }

/* Поиск */
.searchbox { display:flex; gap:8px; margin-bottom:16px; max-width:720px; }
.searchbox .input { flex:1; min-width:0; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.chip { display:inline-flex; align-items:center; border:1px solid #111; border-radius:999px; padding:6px 14px; background:#fff; font-size:14px; font-weight:500; cursor:pointer; line-height:1.3; }
.chip:hover,.chip.is-active { background:var(--yellow); }
.results { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:12px; max-width:860px; }
.result { border:1px solid var(--line); border-radius:8px; padding:16px 20px; background:#fff; transition:border-color .15s; }
.result:hover { border-color:#111; }
.result__meta { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:6px; }
.result__url { font:12px "JetBrains Mono",monospace; color:var(--muted); }
.result__title { font-size:20px; margin:0 0 6px; }
.result__title a:hover { text-decoration:underline; text-underline-offset:3px; }
.result p { margin:0; }
mark { background:#fde68a; color:inherit; padding:0 2px; border-radius:2px; }
.empty { max-width:720px; }

/* Карта сайта */
.sitemap__list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.sitemap__list a:hover { text-decoration:underline; text-underline-offset:3px; }

/* 404 */
.notfound { display:grid; gap:28px; align-items:center; min-height:48vh; }
.notfound__code { font:700 clamp(96px,24vw,220px)/1 "JetBrains Mono",monospace; color:var(--yellow); -webkit-text-stroke:3px #111; letter-spacing:-.04em; }
.notfound h1 { margin:6px 0 12px; }
.notfound code { background:var(--soft); padding:2px 6px; border-radius:4px; word-break:break-all; }
@media (min-width:900px) { .notfound { grid-template-columns:auto 1fr; gap:56px; } }

/* Команда: ровные колонки (было 3 карточки в сетке на 4 колонки) */
.people--3 { grid-template-columns:1fr; }
@media (min-width:560px) { .people--3 { grid-template-columns:repeat(2,1fr); } }
@media (min-width:900px) { .people--3 { grid-template-columns:repeat(3,1fr); } }

/* Мелкие улучшения внешнего вида */
.logo-tile { font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#4b5563; font-size:15px; text-align:center; padding:12px; }
.cfg__opt { font-size:15px; }
.cfg__q legend { font-size:17px; }
@media (min-width:900px) { .footer__grid { grid-template-columns:1.4fr 1.2fr 1fr 1fr; } }
.footer__links { display:grid; gap:8px; }
.footer__bottom a:hover { text-decoration:underline; }
.hero__subtitle { max-width:720px; }
.office-list { scrollbar-width:thin; }
.arch__layer { border-top:1px dashed var(--line); }
.arch__layer:first-child { border-top:0; }
.arch__layer + .arch__layer::before { background:#fff; padding:0 6px; top:-13px; }

/* Сетки: колонки не растягиваются из-за длинного слова или таблицы; на планшетах не больше двух колонок */
.grid--2,.grid--3,.grid--4 { grid-template-columns:minmax(0,1fr); }
@media (min-width:768px) { .grid--2,.grid--3,.grid--4 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:900px) { .grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (min-width:1024px) { .grid--4 { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.card h2,.card h3 { overflow-wrap:anywhere; }
.legal { grid-template-columns:minmax(0,1fr); }
@media (min-width:960px) { .legal { grid-template-columns:260px minmax(0,1fr); } }
.legal__body,.faq-wrap,.cab > * { min-width:0; }

/* Длинные слова в заголовках («конфиденциальности») не должны расширять страницу на телефоне */
h1,h2,h3 { overflow-wrap:break-word; hyphens:auto; }
@media (max-width:480px) { h1 { font-size:clamp(28px,8.2vw,40px); } }

/* FAQ: колонка текста выровнена по левому краю заголовка страницы */
.faq-wrap { max-width:var(--container); }
.faq-wrap > * { max-width:860px; }

.chat__banner { padding:8px 16px; background:#fef9c3; border-bottom:1px solid #fde68a; font-size:13px; display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; flex:0 0 auto; }
.chat__banner[hidden] { display:none; }

/* Вводные абзацы разделов, блок «О компании» */
.section-lead { max-width:760px; margin:10px 0 24px; color:var(--muted); font-size:17px; line-height:1.55; }
.section-head .section-lead { margin-bottom:0; }
.pillars { display:grid; gap:12px; align-content:start; }
.pillars .card h3 { margin:0 0 6px; }
.pillars .card p { margin:0; }

/* Окна «Подробнее»: рамка вокруг изображений из трёх линий цветов флага Германии (снаружи внутрь: чёрная, красная, золотая) */
.detail__media { padding:24px 24px 6px; }
.detail__media img,
.detail__media .media-missing { border-radius:2px; box-shadow:0 0 0 3px #FFCE00, 0 0 0 6px #DD0000, 0 0 0 9px #000; }
.detail__media--portrait { padding:24px 24px 6px; }
@media (min-width:768px) {
  .detail__media--portrait { padding:24px 16px 24px 24px; }
  .detail__media--portrait img,
  .detail__media--portrait .media-missing { border-radius:2px; top:24px; }
}
@media (max-width:640px) { .detail__media { padding:20px 20px 4px; } }


/* EBMC store: dynamic catalog, product details, personal cart and checkout */
.catalog-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 22px; }
.catalog-toolbar p { margin:0; }
.catalog-toolbar__actions,.product-card__actions { display:flex; flex-wrap:wrap; gap:8px; }
.product-card { min-height:0; gap:12px; }
.product-card__bottom { margin-top:auto; display:grid; gap:14px; padding-top:8px; }
.product-image-wrap { width:100%; overflow:hidden; background:var(--soft); border:1px solid var(--line); border-radius:6px; aspect-ratio:16/9; display:grid; place-items:center; margin-bottom:12px; }
.product-card__image { width:100%; height:100%; object-fit:contain; margin:0; }
.product-image-placeholder { color:var(--muted); font-size:13px; padding:20px; text-align:center; }
.product-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:28px; padding:24px; }
.product-detail-layout .product-image-wrap { margin:0; align-self:start; }
.product-detail-image { width:100%; height:100%; object-fit:contain; }
.product-detail-copy .price { margin-bottom:18px; }
.store-modal-content { padding:24px; }
.store-modal-content h2 { font-size:clamp(28px,4vw,38px); margin:8px 0 14px; }
.store-order-form { display:grid; gap:18px; }
.store-order-form .form-row { margin-bottom:0; }
.store-notice { padding:12px 14px; border:1px solid var(--line); border-radius:6px; margin:0 0 20px; }
.cart-list { display:grid; gap:12px; margin:24px 0; }
.cart-row { display:grid; grid-template-columns:100px minmax(0,1fr) auto; align-items:center; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.cart-row .product-image-wrap { margin:0; aspect-ratio:1; }
.cart-row__image { width:100%; height:100%; object-fit:contain; }
.cart-row__details p { margin:4px 0; }
.cart-row__controls { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.cart-row__controls input { width:90px; }
.cart-total { margin:20px 0; font-size:18px; }
.auth-grid { align-items:start; }
.auth-grid form { display:grid; gap:16px; }
.auth-note { margin-top:20px; }
@media (max-width:700px) { .catalog-toolbar { align-items:stretch; flex-direction:column; } .product-detail-layout { grid-template-columns:1fr; padding:18px; } .cart-row { grid-template-columns:72px minmax(0,1fr); } .cart-row__controls { grid-column:2; flex-direction:row; align-items:center; flex-wrap:wrap; } .cart-row__controls input { width:74px; } }

/* Store navigation and standard login-first account page */
.cart-nav-link{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:9px 12px;border:1px solid var(--line);border-radius:6px;color:inherit;text-decoration:none;font-weight:600;background:#fff}
.cart-nav-link:hover{border-color:#111;background:var(--soft)}.cart-nav-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--yellow);color:#111;font:700 12px "JetBrains Mono",monospace}
/* Accessible password visibility control on the original EBMC authentication form. */
.password-field { position:relative; width:100%; }
.password-field > .input { padding-right:54px; }
.password-toggle { position:absolute; top:50%; right:5px; transform:translateY(-50%); width:40px; height:38px; display:grid; place-items:center; padding:0; border:0; border-radius:5px; background:transparent; color:#4b5563; }
.password-toggle:hover { background:var(--soft); color:#111; }
.password-toggle:focus-visible { outline:3px solid #111; outline-offset:1px; }
.password-toggle svg { display:block; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.password-toggle svg[hidden] { display:none; }
.auth-page-wrap{max-width:620px;margin:0 auto}.auth-card{padding:clamp(22px,4vw,36px)}.auth-card form{display:grid;gap:18px}.auth-card h2{margin-top:0}.auth-switch{margin:20px 0 0;color:var(--muted)}.link-button{border:0;background:none;padding:0;color:#111;text-decoration:underline;text-underline-offset:3px;font:inherit;font-weight:700;cursor:pointer}.link-button:hover{background:var(--yellow)}.auth-card[hidden]{display:none!important}.contact-form-wrap{max-width:760px}.header__actions .cart-nav-link{margin-right:4px}
@media(max-width:767px){.cart-nav-link{padding:8px;font-size:13px}.cart-nav-link>span:nth-child(2){display:none}.header__actions{gap:6px}.auth-page-wrap{width:100%}}

/* Compact navigation: company links are grouped in a keyboard-accessible dropdown. */
.nav__dropdown{position:relative}
.nav__dropdown-trigger{display:inline-flex;align-items:center;gap:.35rem}
.nav__dropdown-menu{display:none;position:absolute;z-index:100;top:100%;left:0;min-width:210px;padding:.5rem;background:var(--surface, #fff);border:1px solid var(--line, #ddd);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.12)}
.nav__dropdown-menu .nav__link{display:block;padding:.65rem .8rem;white-space:nowrap}
.nav__dropdown:hover .nav__dropdown-menu,.nav__dropdown:focus-within .nav__dropdown-menu{display:block}
@media(max-width:900px){.nav__dropdown-menu{position:static;box-shadow:none;border:0;padding-left:1rem}.nav__dropdown:focus-within .nav__dropdown-menu{display:block}}


/* EBMC Lab 3: enhancements integrated into the original site pages. */
.hero--slider { padding-bottom: 28px; }
.hero-slider__slide[hidden] { display:none !important; }
.hero-slider__slide { min-height:500px; align-items:center; grid-template-rows:minmax(0,1fr); animation: heroSlideIn .35s ease both; }
.hero-slider__slide .hero__copy { box-sizing:border-box; min-height:500px; display:flex; flex-direction:column; justify-content:center; }
.hero-slider__slide .hero__visual--photo { width:100%; min-height:0; height:auto; aspect-ratio:16/10; align-self:center; }
.hero-slider__slide .hero__visual--photo .photo { display:block; width:100%; height:100%; aspect-ratio:16/10; object-fit:cover; }
@keyframes heroSlideIn { from { opacity:.35; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
.hero-slider__controls { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; }
.hero-slider__arrows { display:flex; gap:8px; }
.hero-slider__arrow { min-width:46px; padding-inline:12px; }
.hero-slider__dots { display:flex; align-items:center; gap:8px; }
.hero-slider__dot { width:10px; height:10px; padding:0; border:1px solid #111; border-radius:50%; background:transparent; cursor:pointer; }
.hero-slider__dot.is-active { width:28px; border-radius:999px; background:var(--yellow); }
.hero-slider__pause { border:0; background:transparent; color:var(--muted); text-decoration:underline; text-underline-offset:3px; cursor:pointer; font:inherit; font-size:13px; }
.hero-slider__pause:hover { color:#111; }
@media (max-width:767px) {
  .hero-slider__slide { min-height:0; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; gap:24px; }
  .hero-slider__slide .hero__copy { min-height:420px; }
  .hero-slider__slide .hero__visual--photo { width:100%; aspect-ratio:16/10; }
}
@media (max-width:480px) {
  .hero-slider__slide .hero__copy { min-height:460px; }
}
.catalog-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:0 0 18px; }
.catalog-filters > div { min-width:0; }
.catalog-filters label { display:block; margin-bottom:7px; }
.form-feedback-status { min-height:1.4em; margin:10px 0 0; }
.form-feedback-status.is-success { color:#18733a; }
.form-feedback-status.is-error { color:#b42318; }
.order-history { margin-top:28px; }
.order-history h2 { margin-bottom:6px; }
.order-card { display:grid; gap:10px; }
.order-history__timeline { margin:0; padding-left:22px; display:grid; gap:7px; color:var(--muted); font-size:14px; }
.order-history__timeline strong { color:var(--text); margin-right:4px; }
.order-history__timeline li::marker { color:var(--color-accent, currentColor); }
.order-card > .button { justify-self:start; }
.order-card__head { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.order-card__items { margin:0; padding-left:20px; color:var(--muted); }
.order-status { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; padding:3px 9px; font-size:12px; font-weight:600; }
@media (max-width:760px) { .catalog-filters { grid-template-columns:1fr; gap:12px; } }
@media (max-width:520px) { .hero-slider__controls { flex-wrap:wrap; } .hero-slider__pause { margin-left:auto; } }
@media (prefers-reduced-motion: reduce) { .hero-slider__slide { animation:none; } }

/* EBMC catalogue filters and account favourites. */
.catalog-filters { grid-template-columns: minmax(240px,2fr) repeat(3,minmax(150px,1fr)); align-items:end; }
.catalog-filter-search { min-width:0; }
.catalog-price-range { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.catalog-price-range .input { min-width:0; }
.catalog-filter-actions { display:flex; align-items:center; gap:18px; margin:-6px 0 18px; }
.product-card__actions .button[aria-pressed="true"] { border-color:var(--yellow-dark,#b78a00); background:#fff8cc; }
.favorite-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.favorite-card { display:flex; align-items:center; gap:14px; }
.favorite-card .product-image-wrap { width:112px; min-width:112px; aspect-ratio:1; margin:0; }
.favorite-card__copy { flex:1; min-width:0; }
.favorite-card__copy h3 { margin:0 0 6px; }
.admin-order-card { display:grid; gap:10px; }
.admin-order-card__head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.admin-order-card__meta { color:var(--muted); font-size:14px; }
.admin-order-card__lines { margin:0; padding-left:20px; color:var(--muted); }
.admin-order-card .select { max-width:240px; }
@media(max-width:900px) { .catalog-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .catalog-filter-search { grid-column:1/-1; } }
@media(max-width:640px) { .catalog-filters { grid-template-columns:1fr; } .catalog-filter-search { grid-column:auto; } .favorite-list { grid-template-columns:1fr; } .favorite-card { align-items:flex-start; } .catalog-filter-actions { flex-wrap:wrap; } }

.product-detail-gallery { display:grid; gap:10px; align-content:start; }
.product-detail-gallery > .product-image-wrap { margin:0; }
.product-detail-gallery .product-detail-image { width:100%; height:100%; aspect-ratio:16/9; object-fit:contain; }
.product-image-thumbs { display:flex; gap:8px; flex-wrap:wrap; }
.product-image-thumb { width:72px; height:58px; padding:3px; border:1px solid var(--line); background:#fff; border-radius:5px; cursor:pointer; }
.product-image-thumb img { display:block; width:100%; height:100%; object-fit:contain; }
.product-image-thumb.is-active { border-color:#111; box-shadow:0 0 0 2px var(--yellow); }
.product-properties { margin-top:20px; }
.product-properties h3 { margin:0 0 10px; }
.product-properties .facts { margin:0; }
@media(prefers-reduced-motion:reduce) { .product-image-thumb { transition:none; } }


/* EBMC Stage 4: comparison, product reviews and expanded administration. */
.compare-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:14px 0 22px; }
.compare-toolbar[hidden] { display:none !important; }
.compare-toolbar p { margin:0; }
.compare-table-wrap { width:100%; overflow-x:auto; }
.compare-table { width:100%; min-width:560px; border-collapse:collapse; }
.compare-table th,.compare-table td { padding:12px 14px; border:1px solid var(--line); text-align:left; vertical-align:top; }
.compare-table th { background:var(--soft); font-weight:700; }
.compare-table td { min-width:150px; }
.product-reviews { grid-column:1/-1; margin-top:26px; padding-top:22px; border-top:1px solid var(--line); }
.product-reviews h3 { margin:0 0 8px; }
.product-reviews__summary { margin:0 0 14px; }
.product-reviews__list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.product-review-card { padding:15px; border:1px solid var(--line); border-radius:8px; background:var(--surface,#fff); }
.product-review-card p { margin:7px 0 0; }
.product-review-card__rating { color:#946b00; letter-spacing:2px; }
.product-review-card__meta { font-size:13px; }
.product-review-form { display:grid; gap:14px; max-width:760px; margin-top:16px; }
.admin-pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin:18px 0 28px; }
.admin-user-card { display:grid; align-content:start; gap:10px; }
.admin-user-card .select { margin-top:4px; }
.admin-analytics { margin:18px 0 28px; }
.admin-analytics-chart { display:grid; gap:9px; margin:18px 0; }
.admin-analytics-row { display:grid; grid-template-columns:58px minmax(60px,1fr) minmax(110px,auto); align-items:center; gap:10px; font-size:13px; }
.admin-analytics-row > span { color:var(--muted); }
.admin-analytics-row strong { text-align:right; font-size:12px; white-space:nowrap; }
.admin-analytics-track { height:10px; background:var(--soft); border-radius:999px; overflow:hidden; }
.admin-analytics-track span { display:block; height:100%; min-width:2px; background:var(--yellow); border-radius:999px; }
.admin-user-filters { margin-top:12px; }
@media(max-width:720px) { .compare-toolbar { align-items:flex-start; flex-direction:column; } .product-reviews__list { grid-template-columns:1fr; } .admin-analytics-row { grid-template-columns:46px minmax(40px,1fr); } .admin-analytics-row strong { grid-column:2; text-align:left; } }

.form-success { color:#18733a; font-size:14px; }

.product-card__rating { color:#946b00; font-size:13px; font-weight:700; margin:0 0 10px; }

/* Stage 7: partner cabinet sections and media upload previews */
.cabinet-subnav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.cabinet-subnav a{padding:10px 14px;border-radius:10px;text-decoration:none;color:var(--text);font-weight:600}.cabinet-subnav a:hover,.cabinet-subnav a[aria-current="location"]{background:var(--surface-soft);color:var(--accent)}.office__group{grid-column:1/-1;margin:22px 0 4px;padding-bottom:8px;border-bottom:1px solid var(--line);font-size:1.05rem}.office-list{display:grid;gap:12px}.office__thumb{object-fit:cover}.admin-portal-link{white-space:nowrap}

/* Cynosure AI */
.cynosure-shell{min-height:65vh;display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px}.cynosure-sidebar,.cynosure-workspace{min-width:0}.cynosure-conversations{display:grid;gap:8px;margin-top:16px}.cynosure-conversation{display:flex;align-items:center;gap:8px;width:100%;text-align:left}.cynosure-conversation[aria-current="true"]{border-color:var(--accent);background:var(--surface-soft)}.cynosure-messages{display:flex;flex-direction:column;gap:16px;min-height:420px;max-height:62vh;overflow:auto;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.cynosure-message{max-width:min(820px,92%);padding:14px 16px;border-radius:16px;white-space:pre-wrap;line-height:1.6}.cynosure-message--user{align-self:flex-end;background:var(--surface-soft)}.cynosure-message--assistant{align-self:flex-start;background:var(--surface-alt, var(--surface));border:1px solid var(--line)}.cynosure-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:12px}.cynosure-composer textarea{min-height:76px}.cynosure-consent{max-width:900px;margin:0 auto}.cynosure-model-select{max-width:330px}.cynosure-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}.cynosure-typing{opacity:.7;font-style:italic}@media(max-width:800px){.cynosure-shell{grid-template-columns:1fr}.cynosure-messages{min-height:320px}.cynosure-composer{grid-template-columns:1fr}}


/* Stage 7: separate administration workspace and refined partner navigation */
.admin-portal { padding-top: 22px; }
.admin-portal__layout { display:grid; grid-template-columns:minmax(205px,245px) minmax(0,1fr); gap:24px; align-items:start; margin-top:22px; }
.admin-portal__nav { position:sticky; top:96px; display:grid; gap:5px; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.admin-portal__nav-link { display:flex; align-items:center; gap:11px; min-height:43px; padding:9px 11px; border-radius:9px; color:var(--text); text-decoration:none; font-size:13px; font-weight:650; transition:background .16s ease,color .16s ease; }
.admin-portal__nav-link:hover,.admin-portal__nav-link:focus-visible,.admin-portal__nav-link[aria-current="location"] { background:var(--surface-soft); color:var(--accent); outline-offset:2px; }
.admin-portal__nav-icon { flex:0 0 20px; display:block; }
.admin-portal__workspace { min-width:0; display:grid; gap:22px; }
.admin-portal__section { min-width:0; scroll-margin-top:100px; }
.admin-portal__section > h3 { margin-top:0; }
.admin-portal__section > .card,.admin-portal__section .security-center { min-width:0; }
.admin-portal__workspace #admin-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
.cabinet-subnav[hidden] { display:none !important; }
.cabinet-subnav a { display:inline-flex; align-items:center; gap:8px; }
.cabinet-subnav a::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; opacity:.55; }
.media-preview { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.media-preview:empty { display:none; }
.media-preview img { width:112px; height:84px; object-fit:cover; border:1px solid var(--line); border-radius:8px; background:var(--surface-soft); }
.security-location-thumb { width:76px; height:58px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.cynosure-consent { padding:clamp(20px,4vw,38px); }
.cynosure-consent > p { line-height:1.65; }
.cynosure-consent .check { margin:22px 0; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.cynosure-model-description { font-size:13px; max-width:900px; }
@media(max-width:900px) {
  .admin-portal__layout { grid-template-columns:1fr; }
  .admin-portal__nav { position:static; display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
  .admin-portal__nav-link { flex:none; }
  .admin-portal__workspace #admin-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
  .admin-portal__nav { margin-inline:-4px; }
  .admin-portal__workspace #admin-summary { grid-template-columns:1fr; }
  .cabinet-subnav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cabinet-subnav a { justify-content:center; }
}
