[hidden] { display: none !important; }
dialog { width: min(390px, calc(100% - 32px)); max-height: 90dvh; border: 1px solid #9db1a6; border-radius: 12px; }
dialog::backdrop { background: #0008; }
.about-callback { display: grid; gap: 10px; }
.about-callback input[type="tel"] { padding: 8px; }
.ai-chat-dialog iframe { width: 100%; height: 65dvh; border: 0; }

/* Список статей и ссылка возврата из статьи. */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 16px; }
.blog-card { display: block; height: 100%; padding: 16px; border: 1px solid #d5e0e1; border-radius: 12px; }
.blog-card-cover { width: 100%; height: auto; }
.blog-card h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
.blog-back { margin-bottom: 20px; }

:root {
  --bg: #141615; --panel: #20231f; --ink: #f7f1e7; --muted: #ccc9be;
  --accent: #f0c687; --accent-ink: #1b1813; --line: #ffffff37;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box }
body, figure, h1, h2, h3, p, dd { margin: 0 }
a { color: inherit; text-underline-offset: .22em }
button { font: inherit; cursor: pointer }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px }
.wrap { width: min(91%, 78rem); margin-inline: auto }
header { border-bottom: 1px solid var(--line) }
.header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5rem }
.logo { display: block; width: clamp(8.5rem,16vw,13.5rem); height: auto }
nav { display: flex; flex-wrap: wrap; gap: .65rem 1.65rem }
nav a, .header-phone { text-decoration: none }
nav a:hover, .header-phone:hover { text-decoration: underline }
.header-phone { font-weight: 720; white-space: nowrap }
.hero-copy { display: grid; justify-items: start; gap: 1.15rem }
.hero-copy p:not(.label) { color: var(--muted); max-width: 39ch; font-size: 1.1rem }
.label { color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .10em; font-weight: 740 }
h1, h2 { font-family: Georgia,serif; font-weight: 400; line-height: 1.04; letter-spacing: -.04em }
h1 { font-size: clamp(2.6rem,5vw,5.25rem); text-wrap: balance }
h2 { font-size: clamp(2rem,4.2vw,3.8rem) }
h3 { font-size: clamp(1.15rem,2.1vw,1.58rem); line-height: 1.23 }
.call { display: inline-flex; flex-wrap: wrap; gap: .2rem .65rem; background: var(--accent); color: var(--accent-ink); padding: .82rem 1.1rem; font-weight: 740; text-decoration: none }
.call:hover { text-decoration: underline }
.block { padding-block: clamp(3rem,7vw,6rem) }
.services, .guarantees, .proof, .contact { display: grid; gap: 1.1rem }
.services, .proof, .contact { grid-template-columns: repeat(2,minmax(0,1fr)) }
.services, .guarantees { margin-top: 1.7rem }
.services article { display: grid; align-content: start; gap: .9rem; padding: clamp(1.25rem,3vw,2.4rem); background: var(--panel); border-top: 2px solid var(--accent) }
.services a { color: var(--ink); font-weight: 650 }
.contact p { margin-top: 1rem }
.band { background: var(--panel); border-block: 1px solid var(--line) }
.demo { font-size: .9rem; color: var(--muted); margin-block: .65rem 1rem }
.numbers { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; margin: 2rem 0 0 }
.numbers div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .4rem; border-top: 1px solid var(--line); padding-top: 1rem }
.numbers dd { font: clamp(2.8rem,5vw,4.8rem)/1 Georgia,serif; color: var(--accent) }
.guarantees { grid-template-columns: repeat(3,minmax(0,1fr)) }
.guarantees article, .proof section { border-top: 1px solid var(--line); padding-top: 1rem }
.guarantees p, .proof h3 + p { margin-top: .5rem }
blockquote { margin: 0; max-width: 43ch; font: 1.25rem/1.5 Georgia,serif }
.contact { gap: 2rem }
address { font-style: normal }
@media(max-width: 52rem) {
  .hero-layout { min-height: 33rem; align-items: end }

  .hero-copy { gap: .8rem }
}
@media(max-width: 36rem) {
  .header { flex-wrap: wrap; gap: .5rem; padding-block: .7rem }
  .header nav { order: 2; width: 100% }
  .services, .proof, .contact, .guarantees { grid-template-columns: 1fr }
  .numbers { grid-template-columns: repeat(2,minmax(0,1fr)) }

}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important } }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--line) }
.hero-layout { min-height: clamp(36rem, 76svh, 52rem); display: grid; align-items: center; padding-block: 4rem }
.hero-copy { position: relative; z-index: 1; max-width: 46rem }
.scene, .frame { position: absolute; inset: 0 }
.scene { z-index: -1; overflow: hidden }
.frame img { display: block; width: auto; max-width: 100%; height: 100%; margin-left: auto; object-fit: contain; object-position: right center; mask-image: linear-gradient(90deg, transparent, black 27%) }
.frame { background: #101310 }
.frame:nth-child(2) { animation: reveal-guard 13s linear infinite; clip-path: inset(0 100% 0 0) }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #101310f5 0%, #101310bc 40%, #10131015 82%), linear-gradient(0deg,#101310b0,transparent 35%); pointer-events: none }
.scene figcaption { position: absolute; z-index: 1; right: 1rem; bottom: .75rem; background: #121413dc; padding: .2rem .5rem; font-size: .8rem }
.glint { position: absolute; z-index: 1; inset: 0 auto 0 0; width: 1px; background: #ffdf9a; box-shadow: 0 0 16px 3px #f4c778a0; opacity: 0; animation: scan 13s linear infinite }
@keyframes reveal-guard {
  0%, 27%, 92%, 100% { clip-path: inset(0 100% 0 0) }
  45%, 74% { clip-path: inset(0) }
}
@keyframes scan {
  0%, 27%, 92%, 100% { left: 0; opacity: 0 }
  28%, 91% { opacity: 1 }
  44%, 75% { opacity: 1 }
  45%, 74% { left: 100%; opacity: 0 }
}
@media (max-width: 52rem) {
  .hero-layout { min-height: 36rem; align-items: end; padding-block: 8rem 3.5rem }
  .frame img { width: 100%; object-position: center top; mask-image: none }
  .scene::after { background: linear-gradient(0deg,#101310fb 5%,#101310b8 47%,#10131020 85%) }
}
@media (prefers-reduced-motion: reduce) { .glint { display: none } }
.hero.paused .frame, .hero.paused .glint { animation-play-state: paused }
.motion { position: absolute; z-index: 2; left: 4.5%; bottom: .75rem; color: var(--ink); background: #121413dc; border: 1px solid var(--line); padding: .2rem .5rem; font-size: .8rem }
@media (prefers-reduced-motion: reduce) { .motion { display: none } }



.other-services { margin-top: 2.25rem }
.service-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; list-style: none; padding: 0; margin: .9rem 0 0 }
.service-list a { display: flex; align-items: center; min-height: 3.8rem; height: 100%; padding: .65rem 1rem; border: 1px solid var(--line); background: var(--panel); font-weight: 650; text-decoration: none }
.service-list a:hover { color: var(--accent); border-color: var(--accent) }
.site-footer { border-top: 1px solid var(--line); background: var(--panel) }
.footer-layout { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.65rem }
.footer-brand img { display: block; width: clamp(8.5rem,16vw,13.5rem); height: auto }
.footer-contacts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center }
.footer-contacts a { color: var(--ink); font-weight: 720; white-space: nowrap }
.footer-contacts span { color: var(--muted) }
@media (max-width: 46rem) { .service-list { grid-template-columns: repeat(2,minmax(0,1fr)) } }
@media (max-width: 23rem) { .service-list { grid-template-columns: 1fr } }
main#content { width: min(91%, 78rem); margin: 0 auto; padding-block: 2rem; min-height: 55vh }

.ai-chat-launcher {
  position: fixed;
  z-index: 5;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .65rem 1rem;
  border: 1px solid #eac798;
  border-radius: 2rem;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 .45rem 1.5rem #0005;
  font-weight: 750;
}
.ai-chat-launcher:hover { background: #ffdda9 }
.ai-chat-icon { position: relative; flex: 0 0 1.15rem; height: .85rem; margin-top: .2rem; border: 2px solid currentColor; border-radius: .28rem }
.ai-chat-icon::before { content: ''; position: absolute; bottom: 100%; left: calc(50% - 1px); width: 2px; height: .32rem; background: currentColor }
.ai-chat-icon::after { content: ''; position: absolute; top: .22rem; left: .19rem; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: .36rem 0 currentColor }
.ai-chat-launcher-image { padding: .25rem; border: 0; background: transparent; box-shadow: none }
.ai-chat-launcher-image:hover { background: #ffffff14 }
.ai-chat-launcher-image img { display: block; width: auto; height: auto; max-width: min(12rem, 55vw); max-height: 4.5rem }
.ai-chat-dialog { width: min(32rem, calc(100% - 1.5rem)); padding: 0; background: var(--bg); color: var(--ink); border-color: var(--line); overflow: hidden }
.ai-chat-dialog iframe { display: block; background: #fff }
.ai-chat-toolbar { display: flex; justify-content: flex-end; padding: .35rem .65rem; background: var(--panel) }
.ai-chat-toolbar button { min-width: 2.5rem; min-height: 2.5rem; border: 0; border-radius: .35rem; background: transparent; color: var(--ink); font-size: 1.65rem; line-height: 1 }
.ai-chat-toolbar button:hover { background: #ffffff20 }
.animated-headline { display: grid }
.animated-headline > span { grid-area: 1 / 1 }
.headline-inactive { opacity: 0 }
