:root { --fg:var(--slate); --fgh:var(--slate); --section-title:clamp(1.75rem,3.25vw,3.125rem); --gutter:clamp(20px,5vw,96px); --sec-y:clamp(56px,7vw,108px) }
html { scroll-padding-top:84px }
body { line-height:1.55 }
button,summary { cursor:pointer }
button { border:0; background:none }
button:disabled { cursor:default; opacity:.52 }
h1,h2,h3,b { font-weight:600 }
.address,address { font-style:normal }
.h2 { font-size:var(--section-title); line-height:1.08; letter-spacing:-.037em; max-width:950px; text-wrap:balance; hyphens:manual }
.label { font-size:0.6875rem; color:var(--brand); font-weight:600; letter-spacing:.14em; margin-bottom:20px }
.inv .label,.section--blue .label { color:white }
.label:before { width:26px; height:3px; transform:skewX(-45deg) }
.action,.callback,.floating { display:inline-flex; align-items:center; justify-content:center; gap:22px; background:var(--brand); color:white; padding:14px 22px; border:1px solid transparent; border-radius:4px; font-weight:600; font-size:0.9375rem; min-height:48px }
.action:hover:not(:disabled),.floating:hover { background:#0f317d }
.inv .action,.section--blue .action { color:var(--brand); background:white }
.inv .action:hover:not(:disabled),.section--blue .action:hover:not(:disabled) { background:var(--mist) }
.icon-btn { width:42px; height:42px; display:inline-grid; place-items:center; flex:none }
.mast { z-index:12; position:sticky; top:-77px; color:white; background:var(--brand) }
.mast-top,.nav-inner,.utility,.partner-row,.dlg-head,.email-row,.credits { display:flex; align-items:center; justify-content:space-between; gap:20px }
.mast-top { height:77px }
.brand-logo { display:block; flex:none; width:143px }
.brand-logo img { width:100%; height:auto }
.utility { gap:clamp(18px,2.8vw,44px); font-size:0.875rem }
.utility a,.nav-inner a,.menu-contact a { color:inherit; text-decoration:none }
.utility a:first-child { font-weight:600; font-size:1.0625rem }
.callback { border-color:#ffffff75; color:white; background:transparent; font-size:0.8125rem; padding:7px 17px; min-height:38px }
.callback:hover { background:#ffffff15 }
.mobile-actions,.compact-brand,.compact-tel { display:none }
.nav-shell { border-block:1px solid #ffffff40; background:var(--brand) }
.nav-inner { min-height:51px; gap:18px }
.nav-inner nav { flex:1; display:flex; align-items:center; gap:clamp(18px,2.7vw,48px); font-size:0.6875rem; text-transform:uppercase; font-weight:600; letter-spacing:.045em }
.nav-group { position:relative }
summary { list-style:none }
summary::-webkit-details-marker { display:none }
.nav-group summary:after,.foot-services summary:after,.task-picker summary:after { content:""; display:inline-block; width:6px; height:6px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg); margin:0 0 3px 10px }
.nav-group[open] summary:after { transform:rotate(225deg); vertical-align:middle }
.nav-inner nav> a,.nav-inner summary { padding-block:14px }
.nav-inner nav> a:hover,.nav-inner summary:hover,.utility a:hover { text-decoration:underline }
.nav-group>div { position:absolute; left:-14px; top:100%; width:278px; background:white; padding:8px; border:1px solid var(--silver); z-index:3 }
.nav-group>div a { display:block; padding:10px; color:var(--brand); font-size:0.875rem; letter-spacing:0; text-transform:none; font-weight:500 }
.nav-group>div a:hover { background:var(--mist) }
.compact .compact-brand,.compact .compact-tel { display:block }
.compact-brand .brand-logo { width:82px }
.compact-tel { font-size:0.75rem; font-weight:600; white-space:nowrap }
.compact .nav-inner nav { justify-content:center; gap:clamp(10px,1.4vw,24px) }
.first { position:relative; isolation:isolate; overflow:hidden; background:var(--brand); color:white }
.first>.wrap { position:relative; pointer-events:none }
.first-copy { width:min(50%,680px); display:grid; grid-template-columns:minmax(0,1fr); justify-items:start; align-content:center; padding-block:clamp(48px,8vh,100px); min-height:min(624px,calc(100svh - 184px)); pointer-events:auto }
.first-copy > *,.partner-row > * {min-width:0;max-width:100%}
.first h1,.sub-hero h1 { font-size:clamp(2.625rem,4.95vw,5.125rem); line-height:1.0; font-weight:500; letter-spacing:-.038em; text-wrap:balance; margin:6px 0 23px }
.hero-lead { text-wrap:balance; max-width:540px; font-size:clamp(1rem,1.28vw,1.25rem); line-height:1.55; color:var(--mist) }
.first .action { margin-top:32px }
.hero-note,.micro { margin-top:10px; font-size:0.75rem; line-height:1.5 }
.hero-note { color:var(--mist) }
.corridor { position:absolute; inset:0 0 0 auto; width:58.3%; container-type:size; overflow:hidden; pointer-events:none; --band:51%; --slant:min(100cqh,calc(100% - 110px)) }
.corridor-photo { position:absolute; inset:0; clip-path:polygon(var(--slant) 0,calc(var(--slant) + var(--band)) 0,var(--band) 100%,0 100%) }
.corridor-photo::before { content:""; position:absolute; inset:0; background:url("corridor-1536.webp") 58% 51% / cover no-repeat }
.corridor:before,.corridor:after { content:""; position:absolute; z-index:1; inset:0; background:#14b2e8; opacity:.7; pointer-events:none; --offset:3%;
  clip-path:polygon(calc(var(--slant) + var(--offset)) 0,calc(var(--slant) + var(--offset) + 1.4px) 0,calc(var(--offset) + 1.4px) 100%,var(--offset) 100%) }
.corridor:after { --offset:calc(var(--band) + 4%) }
.verbs { background:var(--mist); color:var(--brand); padding:17px var(--gutter) }
.verbs ul { display:flex; justify-content:center; flex-wrap:wrap; gap:5px 16px; font-size:0.75rem; font-weight:500 }
.verbs li { white-space:nowrap; display:flex; align-items:center; gap:16px }
.verbs li+li:before,.tri-list li:before { content:""; display:inline-block; width:8px; height:8px; flex:none; background:var(--cyan); clip-path:polygon(0 0,100% 50%,0 100%) }
.task-grid,.news-grid,.standards,.supports,.numbers,.foot-grid,.contact-grid,.faq-split { display:grid; gap:24px }
.task-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:36px 0 25px }
.task-grid article {
  display:grid; grid-template-rows:subgrid; grid-row:span 3; row-gap:0;
  padding:20px; border:1px solid var(--silver); border-top:3px solid var(--brand); border-radius:2px;
}
.task-grid article :is(h3,p) {text-wrap:pretty}
.task-grid .tri-list {margin-top:0; align-content:start}
.task-head {display:grid; grid-template-columns:auto minmax(0,1fr); align-items:baseline; gap:.75rem}
.task-num {color:var(--brand); font-size:1.75rem; line-height:1; font-weight:500; letter-spacing:-.05em; font-variant-numeric:tabular-nums}
.task-grid h3,.supports h3 { font-size:0.9375rem; letter-spacing:.015em; line-height:1.35 }
.task-grid p,.supports p,.standards p { margin:10px 0 18px; font-size:0.9375rem }
.tri-list { display:grid; gap:10px; margin-top:auto }
.tri-list li { display:flex; align-items:baseline; gap:9px; font-size:0.8125rem }
.common {display:flex; align-items:baseline; flex-wrap:wrap; gap:.35rem 1rem; margin-block:1.5rem .85rem}
.common p {font-weight:600}
.common ul {display:flex; align-items:baseline; flex-wrap:wrap; gap:.55rem 1.25rem}
.common ul li {max-width:100%; text-wrap:pretty}
@media (width < 48em) {
  .common {display:grid; gap:.6rem}
  .common ul {display:grid}
}
.ray { position:relative; overflow:hidden; isolation:isolate }
.ray:before { content:""; position:absolute; width:min(540px,45%); height:min(380px,100%); right:0; top:0; pointer-events:none; background:linear-gradient(135deg,transparent 37%,var(--cyan) 37%,transparent 62%); opacity:.42; clip-path:polygon(30% 0,100% 0,100% 90%,0 100%) }
.ray:after { content:""; position:absolute; inset:0 0 auto auto; width:min(490px,42%); height:min(340px,100%); z-index:-1; background:linear-gradient(135deg,transparent calc(55% - 1px),#14b2e8 55%,transparent calc(55% + 1px)),var(--ray2,linear-gradient(transparent,transparent)),var(--ray3,linear-gradient(transparent,transparent)); pointer-events:none }
.density-2,.density-3 { --ray2:linear-gradient(135deg,transparent calc(60% - 1px),#14b2e8 60%,transparent calc(60% + 1px)) }
.density-3 { --ray3:linear-gradient(135deg,transparent calc(76% - 1px),#14b2e8 76%,transparent calc(76% + 1px)) }
.corner-1:before,.corner-1:after { inset:auto auto 0 0; transform:rotate(180deg) }
.supports { grid-template-columns:repeat(3,1fr); margin-block:40px; gap:12px }
.supports article { border:1px solid #ffffff60; padding:20px }
.supports article:first-child { grid-column:1/-1 }
.supports p { margin-bottom:0 }
.supports .trial { color:var(--mist); font-size:0.8125rem }
.numbers { grid-template-columns:repeat(6,1fr); gap:12px; padding-block:28px; border-block:1px solid #ffffff70; margin-bottom:68px }
.numbers b { display:block; font-size:clamp(1.375rem,2.1vw,2.25rem); line-height:1.2; letter-spacing:-.06em }
.wrap:has(> .standards) { container:guarantees / inline-size }
.standards { grid-template-columns:minmax(0,1fr); gap:24px; margin-block:30px }
.standards>div { border-top:1px solid currentColor; padding-top:13px }
.home-quality .supports { margin-block-end:calc(var(--sec-y) * .8) }
.home-quality .standards { margin-block-end:clamp(30px,3vw,46px) }
.home-quality .standards > :last-child { border-bottom:1px solid currentColor }
.home-quality .wrap > a { display:block; width:fit-content }
@container guarantees (min-width:32em) {
  .standards { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .home-quality .standards > :nth-last-child(-n+2) { border-bottom:1px solid currentColor; padding-bottom:24px }
}
@container guarantees (min-width:48em) {
  .standards { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .home-quality .standards > :nth-last-child(-n+3) { border-bottom:1px solid currentColor; padding-bottom:24px }
}
.standards h3,.news h3 { font-size:1.1875rem }
.intro { max-width:1000px; font-size:clamp(1.5rem,2.5vw,2.5rem); letter-spacing:-.04em; line-height:1.22; font-weight:500 }
.work > .wrap {container:process-steps / inline-size}
.work .h2 {max-inline-size:min(100%,44ch)}
@container process-steps (min-width:24em) {
  .work .h2 {text-wrap:wrap}
  .work-phrase {display:inline-block; inline-size:max-content; max-inline-size:100%; text-wrap:wrap; vertical-align:top}
}
.work-lead {max-inline-size:58ch; margin-top:1rem; font-size:clamp(1rem,1.3vw,1.25rem); text-wrap:pretty}
.work-team {display:grid; justify-items:start; gap:.4rem}
.work-team p {text-wrap:pretty}
.work-team a {max-width:100%}
.process { counter-reset:steps; margin-block:42px; padding-left:6px }
.process li { position:relative; border-left:1px solid var(--silver); padding:0 0 22px 44px; counter-increment:steps; font-size:0.9375rem }
.process li:before { content:""; position:absolute; top:7px; left:-5px; width:9px; height:9px; background:var(--cyan); border-radius:50% }
.process li:after { content:counter(steps,decimal-leading-zero); position:absolute; top:3px; left:14px; font-size:0.75rem; color:var(--brand) }
.news { border-top:1px solid var(--mist) }
.news-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin:30px 0 }
.cover { background:var(--brand); aspect-ratio:2.7 }
.cover:before,.cover:after { width:100%; height:100% }
.news-grid time { display:block; font-size:0.75rem; margin:16px 0 6px; color:var(--slate) }
.news-grid h3 { font-size:1.3125rem; line-height:1.3 }
.news-grid p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-top:10px }
/* Each outer track adds 15% of the content height to the symmetric padding. */
.partners { display:grid; grid-template-rows:3fr 20fr 3fr; padding-block:46.8px }
.partners > .wrap { grid-row:2 }
.partner-row .h2 { max-width:760px }
.partner-row a { max-width:100%; font-size:0.875rem; flex:none }
.faq-split { grid-template-columns:1fr 2.2fr; align-items:start }
.qa-list { margin-bottom:20px }
.qa-list details { border-top:1px solid var(--silver); padding:16px 0 }
.qa-list details:last-child { border-bottom:1px solid var(--silver) }
.qa-list summary,.task-picker summary { display:flex; justify-content:space-between; align-items:center; gap:10px }
.qa-list summary { font-size:clamp(1.0625rem,1.5vw,1.4375rem); font-weight:500 }
.qa-list summary:after { content:"+"; font-size:1.375rem; color:var(--brand) }
.qa-list details[open] summary:after { content:"−" }
.qa-list p { max-width:750px; margin-top:12px }
.wrap:has(> .contact-grid) {container:consultation / inline-size}
.contact-grid { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:start; gap:8% }
@container consultation (width < 54em) {
  .contact-grid {grid-template-columns:minmax(0,1fr); gap:1.75rem}
  .contact-grid .form-card {width:100%; max-width:39rem}
}
.contact-grid address,.intro-copy { margin-block:23px; max-width:700px }
.form-card { padding:clamp(20px,3vw,38px); background:white; color:var(--slate); --link:var(--brand); --focus:var(--brand); border-radius:4px }
.request-form { display:grid; grid-template-columns:minmax(0,1fr); gap:16px }
.request-form>label:not(.check),dialog>label { display:grid; gap:5px; font-size:0.875rem; font-weight:500 }
.request-form input:not([type=checkbox]),.newsletter input[type=email],dialog input[type=search] { min-width:0; width:100%; background:white; color:var(--slate); border:1px solid var(--slate); border-radius:3px; min-height:44px; padding:9px 12px }
.task-picker { border:1px solid var(--slate); border-radius:3px; font-size:0.875rem }
.task-picker summary { padding:11px }
.task-picker div { padding:0 11px 12px; display:grid; gap:8px }
.task-picker label,.check { display:flex; align-items:baseline; gap:9px }
.check { font-size:0.75rem; line-height:1.5 }
input[type=checkbox] { flex:none; accent-color:var(--brand); width:16px; height:16px; align-self:flex-start; margin-top:2px }
.form-card .action,.request-form .action { background:var(--brand); color:white }
.form-card .action:hover:not(:disabled) { background:#0f317d }
.request-form .micro { margin: -8px 0 0 }
.form-status:empty { display:none }
.form-status { font-size:0.875rem; font-weight:500 }
.bottom { background:var(--brand); color:white; border-top:1px solid #ffffff55; padding:48px 0 92px }
.foot-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,3vw,54px) }
.bottom h3,.foot-services summary { font-weight:600; margin-bottom:12px }
.foot-links,.menu-contact { display:grid; gap:7px; margin-top:14px }
.foot-grid,.foot-legal,.credits { font-size:0.8125rem }
.newsletter { margin:20px 0; display:grid; gap:9px }
.email-row { background:white; border-radius:3px; gap:0 }
.email-row button { align-self:stretch; color:var(--brand); width:44px; font-size:1.5rem }
.foot-legal,.credits { border-top:1px solid #ffffff55; margin-top:26px; padding-top:16px; display:flex; flex-wrap:wrap; gap:8px 24px }
.foot-legal button { text-decoration:underline; font:inherit }
.credits { color:var(--mist); font-size:0.75rem }
.floating { position:fixed; z-index:11; right:20px; bottom:20px; gap:10px; border:1px solid white; border-radius:30px; min-height:48px; font-size:0.8125rem }
dialog { position:fixed; border:1px solid var(--silver); color:var(--slate); background:white; border-radius:6px; padding:24px; width:min(410px,95vw); max-height:calc(100dvh - 32px); margin:auto; overflow:auto; overscroll-behavior:contain; --focus:var(--brand); --link:var(--brand) }
dialog::backdrop { background:#0f121b77 }
#call { inset:auto 16px 16px auto; margin:0 }
.dlg-head { margin-bottom:14px; align-items:start; gap:10px }
.dlg-head h2 { font-size:1.5625rem; line-height:1.18; letter-spacing:-.045em }
.dlg-head .icon-btn { height:32px; width:32px }
dialog p+form,dialog p+.action { margin-top:16px }
body:has(dialog[open]) { overflow:hidden }
#results { display:grid; gap:8px; margin-top:18px }
.search-hint { display:block; margin-top:3px; font-size:.8125rem; line-height:1.4 }
#search-status:not(:empty) { margin-top:12px; font-size:.875rem }
.sub-hero h1 { max-width:65.625em; margin-top:28px }
.sub-hero p { font-size:1.25rem; max-width:780px }
.sub-hero:has(+ .sub-body .service-list) p { text-wrap:pretty }
body[data-page="vneofisnoe-hranenie.html"] .sub-hero p { max-width:52rem }
.sub-body .wrap>p,.sub-body .wrap>address,.sub-body .wrap>.action { margin-block:16px }
.service-list { max-width:800px; margin-block:24px }
.service-list li { border-top:1px solid var(--silver); padding:14px 0; scroll-margin-top:85px }
@media(max-width:65.625em) { .mast { top:0 }.nav-shell,.utility { display:none }.mast-top { height:62px }.mobile-actions { display:flex; align-items:center }.brand-logo { width:118px }#menu nav { display:grid }#menu nav>a,#menu nav summary { display:block; border-bottom:1px solid var(--mist); padding:10px 0 }#menu .nav-group>div { position:static; width:auto; border:0 }#menu .nav-group a { color:var(--brand) }.task-grid { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (48em <= width < 65em) { .foot-grid {grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(width < 48em) { :root { --fg:var(--slate); --fgh:var(--slate); --section-title:clamp(1.75rem,3.25vw,3.125rem); --gutter:20px }
  .corridor { position:relative; inset:auto; height:clamp(200px,32vh,230px); width:min(100%,620px); margin-left:auto; --band:56%; --slant:100cqh }
  .corridor-photo::before { background-image:url("corridor-800.webp"); transform:scale(1.16); transform-origin:58% 100% }
  .first-copy { width:100%; min-height:0; padding:14px 0 32px }
  .first h1 { font-size:clamp(2.375rem,8.8vw,3.4375rem); margin:0 0 14px; max-width:520px }
  .first .label { margin-bottom:12px; font-size:0.625rem }
  .hero-lead { font-size:0.9375rem; line-height:1.48 }
  .first .action { margin-top:19px }.hero-note { margin-top:8px; font-size:0.6875rem }
  .verbs { overflow-x:auto; scrollbar-width:thin; padding:13px 20px }
  .verbs ul { width:max-content; flex-wrap:nowrap }
  .task-grid,.news-grid,.supports,.foot-grid,.faq-split,.contact-grid { grid-template-columns:minmax(0,1fr) }
  .task-grid {gap:0; margin-top:1.5rem}
  .task-grid article {border:0; border-top:1px solid var(--silver); border-radius:0; padding:1.25rem 0}
  .task-grid article:first-child {border-top:2px solid var(--brand)}
  .task-grid article:last-child {border-bottom:1px solid var(--silver)}
  .task-grid .task-num {font-size:1.5rem}
  .task-grid .tri-list li {font-size:.875rem}
  .numbers { grid-template-columns:repeat(2,1fr); gap:22px; margin-bottom:38px }
  .supports article:first-child { grid-column:auto }
  .partner-row,.credits { align-items:start; flex-direction:column }
  .foot-grid,.contact-grid { gap:26px }.bottom { padding-bottom:96px }
  .floating { width:56px; height:56px; padding:0; right:14px; bottom:14px }.floating span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
  dialog,#call { inset:0; margin:0; width:100%; height:100dvh; max-width:none; max-height:none; border:0; border-radius:0; padding:20px }
  .foot-services summary { padding-block:9px; border-block:1px solid #ffffff60 }
  .sub-hero h1 { font-size:clamp(2.25rem,8.7vw,3.5rem); hyphens:auto }
}
@media (width < 48em) and (max-height:40em) {
  .first > .wrap {padding-inline:16px}
  .first-copy {padding-block:6px 12px}
  .first .label,.first h1 {margin-bottom:6px}
  .first .action {margin-top:6px; padding-block:8px}
  .first .hero-note {padding-inline-end:60px}
}
.foot-services[open] summary:after { transform:rotate(225deg); vertical-align:middle }
@media(min-width:48em) and (max-height:620px) { .first-copy { padding-block:22px }.first h1 { font-size:clamp(2.25rem,4vw,3.75rem) }.first .action { margin-top:15px } }

@media(min-width:48em) {
  .standards h3 {hyphens:auto}
  .first h1 span {display:block}
  .verbs {padding-inline:16px}
}
@container process-steps (min-width:38em) {
  .process {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.75rem 0; padding:0}
  .process li {
    display:flex; flex-direction:column; align-items:start; gap:.45rem;
    border-left:0; border-top:1px solid var(--silver); padding:1rem .75rem 0 0; text-wrap:pretty;
  }
  .process li::before {top:-5px; left:0}
  .process li::after {position:static; order:-1; font-variant-numeric:tabular-nums}
}
@container process-steps (min-width:69em) {
  .process {grid-template-columns:repeat(6,minmax(0,1fr))}
}
.partners {background-image:linear-gradient(135deg,transparent calc(86% - 1px),#14b2e850 86%,transparent calc(86% + 1px))}

.tri-list li:before,.verbs li+li:before {clip-path:none;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M0 0l8 4-8 4z'/%3E%3C/svg%3E") center/contain no-repeat}


.first .label {color:white}
/* The text link opens the section; the adjacent arrow opens the list. */
.service-menu {display:flex; align-items:center}
.service-menu > a {display:block; padding-block:14px}
.nav-inner .service-menu:has(details[open]) > a,.service-menu > a:hover {text-decoration:underline; text-underline-offset:5px}
.service-menu summary {display:grid; place-items:center; min-width:32px; min-height:44px}
.service-menu summary::after {margin:0}
#menu .service-menu {display:block; position:relative; border-bottom:1px solid var(--mist)}
#menu .service-menu .nav-group {position:static}
#menu .service-menu > a {margin-right:48px; color:inherit}
#menu .service-menu summary {display:grid; position:absolute; right:0; top:0; width:48px; border:0}
#zadachi {scroll-margin-top:84px}
.foot-phone a {display:inline-block; font-size:clamp(1.13rem,1.35vw,1.55rem); font-weight:500; line-height:1.3}
.bottom {padding-block:clamp(48px,5.2vw,90px) clamp(24px,2.4vw,48px)}
@media (min-width:48em) { .bottom {padding-bottom:68px} }
.bottom .foot-legal {margin-top:clamp(42px,4.7vw,80px)}
@media (width < 48em) {
  .label {font-size:.625rem}
  .credits {padding-right:84px}
}
.request-form .action:disabled {background:var(--mist); color:var(--slate); opacity:1}
.request-form .check,.newsletter .check {font-size:0.875rem; line-height:1.55}
.request-form .check {color:var(--slate)}

.review-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-block:24px}
.review-grid blockquote {margin:0;padding:20px;background:white;border-top:3px solid var(--brand)}
.review-grid cite {display:block;margin-top:12px;font-style:normal;color:var(--slate)}
@media(width < 48em) {
  .review-grid {grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(88%,340px);overflow-x:auto}
  .request-form input:not([type=checkbox]),.newsletter input[type=email],dialog input[type=search] {font-size:1rem}
}

/* Cards respond to the space available inside the section, including a split browser pane. */
.section.news {display:block}
.news > .wrap,.sub-body > .wrap:has(.news-grid) {container:news-list / inline-size}
.news-grid {grid-template-columns:minmax(0,1fr)}
.news-grid article {min-width:0}
.news-grid h3 {font-size:clamp(1.1875rem,1.55vw,1.5rem);line-height:1.3;font-weight:500;letter-spacing:-.025em;text-wrap:pretty;hyphens:manual;overflow-wrap:break-word}
.news-grid h3 a {text-decoration:none}
.news-grid h3 a:hover,.news-grid h3 a:focus-visible {text-decoration:underline;text-underline-offset:.15em}
@container news-list (min-width:55em) {
  .news-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container news-list (width < 55em) {
  .news-grid {gap:0}
  .news-grid article {display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,23%);gap:6px 18px;align-items:start;padding:18px 0;border-top:1px solid var(--silver)}
  .news-grid article:last-child {border-bottom:1px solid var(--silver)}
  .news-grid .cover {grid-column:2;grid-row:1/4;align-self:center}
  .news-grid time,.news-grid h3,.news-grid p {grid-column:1;margin:0}
  .news-grid time {grid-row:1}
}
@container news-list (max-width:27.375em) {
  .news-grid article {grid-template-columns:minmax(0,1fr) 62px;row-gap:8px}
  .news-grid .cover {grid-row:1}
  .news-grid time {align-self:center}
  .news-grid h3,.news-grid p {grid-column:1/-1}
}

@container news-list (width < 55em) {.news-follow {display:block}}
@media (width < 18em) {
  .numbers {grid-template-columns:minmax(0,1fr)}
  .first h1,.sub-hero h1,.qa-list summary,.task-picker label,.tri-list a {hyphens:auto}
}

/* На первом экране тире завершает первую строку; обе строки могут переноситься при увеличении текста. */
.first h1,.sub-hero h1 {font-size:var(--section-title)}
.first h1 {text-wrap:initial}
.first h1 span {display:block}
/* В SVG тело букв занимает 45,4 из 59,6 единиц, нижний вынос Я — 7,1. */
.wordmark {display:inline-block; width:auto; max-width:100%; height:1.313ex; margin-inline-start:.07em; vertical-align:-.156ex}
.contact-grid address {line-height:1.85}
.contact-grid address a, .bottom a {text-decoration:none}
.contact-grid address a:hover {text-decoration:underline}
.bottom .brand-logo {width:168px; max-width:100%}
.foot-links button, .foot-legal button {text-align:left; justify-self:start; color:white; padding:0; text-decoration:none}
.bottom :is(a, button, summary):hover {color:var(--silver); text-decoration:none}
.foot-contact {display:grid; gap:1em}
.foot-contact dl {display:grid; gap:.7em}
.foot-contact dd {margin:0}
@media (max-width:65.625em) { .bottom .brand-logo {width:139px} }


body[data-page="biblioteka.html"] main a {text-decoration:none}
body[data-page="biblioteka.html"] main a:hover {background:var(--mist)}
#o-kompanii {padding-block:clamp(2rem,4vw,4rem)}
#o-kompanii .wrap > a {font-size:.875rem}
.company-heading {display:grid; gap:1.25rem; margin-block-start:1.5rem}
.company-heading h1 {margin:0; align-self:start}
.company-services {display:grid; align-content:start; gap:.32em; font-size:clamp(1.0625rem,1.45vw,1.25rem); line-height:1.35}
.company-services li::first-letter {text-transform:uppercase}
.company-since {display:inline-block; max-inline-size:100%}
.company-intro {padding-block:clamp(2.5rem,5.5vw,5.5rem)}
.company-intro p {max-inline-size:68ch; font-size:1.0625rem; line-height:1.6; text-wrap:pretty}
.company-intro p + p {margin-block-start:1em}
.company-intro p:first-child {font-size:clamp(1.25rem,1.65vw,1.5rem); line-height:1.4; font-weight:500; letter-spacing:-.02em}
@media (min-width:48em) {
  .company-heading {grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); column-gap:clamp(2rem,6vw,6rem)}
}
@media (min-width:60em) {
  .company-intro .wrap {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); column-gap:clamp(2rem,6vw,6rem)}
  .company-intro p:first-child {grid-row:1 / 3; max-inline-size:30ch}
  .company-intro p + p {grid-column:2; margin-block:0}
  .company-intro p + p + p {margin-block-start:1rem}
}
.company-phrase {display:inline-block; max-inline-size:100%; vertical-align:top}
.company-promise {font-size:clamp(1.125rem,1.85vw,1.5rem); line-height:1.35; font-weight:500; letter-spacing:-.02em}
#otvetstvennost .standards {row-gap:1.25rem}
#otvetstvennost .standards p {margin-block-end:0}
@media (width < 48em) {
  #otvetstvennost {padding-block:2.5rem}
  #otvetstvennost .standards {row-gap:1rem; margin-block:1.5rem}
}
.company-call {display:none}
@media (width < 48em) {
  body[data-page="o-kompanii.html"] .floating {display:none}
  .mast-top:has(.company-call) {height:auto; min-height:62px; gap:.5rem; flex-wrap:wrap; padding-block:.375rem}
  .mast-top:has(.company-call) .brand-logo {width:clamp(4.5rem,21vw,7.375rem)}
  .mobile-actions:has(.company-call) {margin-inline-start:auto; max-width:100%; flex-wrap:wrap; justify-content:flex-end}
  .company-call {display:inline-block; border:1px solid #ffffff85; color:white; border-radius:4px; padding:.45rem .625rem; min-height:44px; font-size:.75rem; font-weight:600; line-height:1.25; max-inline-size:10em}
  .company-call:hover {background:#ffffff15}
}
@media (width < 22em) {
  .mast-top:has(.company-call) .brand-logo {width:4.15rem}
  .company-call {max-inline-size:8.8em}
}

body[data-page="kontakty.html"] .sub-hero {padding-bottom:clamp(1.5rem,2vw,2rem)}
body[data-page="kontakty.html"] .sub-hero p {display:grid; gap:1rem; max-width:none; font-size:1.125rem}
.office-section {padding-top:clamp(2rem,3vw,3.5rem)}
.office-grid {display:grid; width:100%; grid-template-columns:minmax(0,.74fr) minmax(0,1fr); gap:4%; align-items:start}
.office-grid .h2 {font-size:clamp(1.5rem,2.5vw,2.625rem)}
.office-address strong {display:block; font-weight:600; margin-bottom:.2em}
.office-details dt {font-weight:600}
.office-address,.office-details dl {margin-top:1.5rem}
.office-address,.office-details dl {display:grid; gap:1.3rem; line-height:1.35}
.office-details .action {margin-top:clamp(1.75rem,3vw,3.75rem)}
.office-phone {text-align:right}
.office-phone a {font-size:clamp(1.5rem,2.1vw,2.125rem); font-weight:500; text-decoration:none}
.office-phone a:hover {text-decoration:underline}
.office-phone p {margin-top:.95rem; font-size:1.125rem}
.office-directions {margin-top:clamp(2rem,4.5vw,5.25rem)}
.office-map {display:block; width:100%; aspect-ratio:5 / 3; min-height:14rem; margin-bottom:1.5rem; border:1px solid var(--silver); background:var(--mist)}
.map-preview {min-height:100svh; padding:1.25rem; display:grid; align-content:center; justify-items:center; gap:1.2rem; text-align:center; background:var(--mist); color:var(--slate)}
.map-preview p {font-weight:500}
.map-preview .action {text-decoration:none}
@media (width < 48em) {
  .office-grid {width:100%; grid-template-columns:minmax(0,1fr); gap:2rem}
  .office-phone {text-align:left}
  .office-directions {margin-top:1.5rem}
}

/* Desktop submenus follow the left edge of the open item in both header sizes. */
.nav-shell {position:relative}
.nav-inner .nav-group {position:static}
.nav-inner .nav-group[open] summary {text-decoration:underline; text-underline-offset:5px}
.nav-inner .nav-group > div {
  inset:100% 0 auto; width:auto; min-height:calc(34px + 1.125rem);
  padding:5px var(--gutter) 5px var(--submenu-start,var(--gutter));
  display:flex; flex-wrap:wrap; align-items:center; gap:0 clamp(9px,1.2vw,22px);
  background:var(--mist); border:0; color:var(--brand)
}
.nav-inner .nav-group > div a {padding:7px 0; font-size:.875rem}
.nav-inner .nav-group > div a:hover {text-decoration:underline}
.nav-inner .nav-tight > div {gap:0 8px; padding-inline-end:12px}
.nav-inner .nav-tight > div a {font-size:.75rem}
.foot-legal {display:block; border-block:1px solid #ffffff55; padding:16px 0}
.foot-legal > .wrap {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(18px,3vw,54px)}
.credits {border:0; margin:0}
.foot-contact dt {font-weight:600}
@media (width < 65em) {.foot-legal > .wrap {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (width < 36em) {.foot-legal > .wrap {grid-template-columns:1fr; gap:12px}}
.site-search {display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; margin-block:1rem}
.site-search input {flex:1 1 0; width:0; min-width:0; border:1px solid var(--slate); border-radius:3px; padding:9px 12px; color:var(--slate); min-height:44px}
.site-search button {align-self:stretch; height:auto; color:var(--brand); border:1px solid var(--brand); border-radius:3px}


.query-error {flex-basis:100%; font-size:.875rem; color:var(--error)}
.query-error:empty {display:none}

@media (width > 65.625em) {
  .mast:has(.nav-inner .nav-group[open])::after {content:""; display:block; height:var(--submenu-height,3.25rem)}
}
