@font-face{font-family:Geologica;src:url(assets/geologica.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:Inter;src:url(assets/inter.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{--navy:#14213d;--cream:#f4ede0;--coral:#ff6b5b;--bg:#101a31;--surface:#192745;--surface-raised:#223353;--ink:var(--cream);--muted:#bcc6db;--lime:#ff9c8d;--lime-dark:#c96257;--line:#a9bce538;--display:Geologica,Inter,sans-serif;font-family:Inter,sans-serif}
body.website{background:radial-gradient(ellipse 70% 640px at 90% 300px,#26395d,transparent),var(--bg)}
h1,h2,h3{font-family:var(--display);font-weight:400;letter-spacing:-.045em}
a:focus-visible,button:focus-visible,summary:focus-visible{outline-color:var(--coral)}
.brand img{filter:brightness(0) invert(93%) sepia(11%) saturate(280%) hue-rotate(346deg)}
.website .site-navigation,.site-navigation{position:sticky;background:linear-gradient(116deg,#53678a75,#182743c9 48%,#3c3048b5);border:1px solid #e1ebff42;border-radius:999px;backdrop-filter:blur(20px) saturate(145%);box-shadow:inset 0 1px 0 #fff3,0 15px 45px #080d2066;padding-inline:clamp(15px,2.5vw,34px)}
.site-navigation::before{content:"";position:absolute;pointer-events:none;inset:-1px;border-radius:inherit;border:1px solid transparent;background:linear-gradient(112deg,transparent 39%,#fff8 49%,#ffafa16b 52%,transparent 61%) border-box;background-size:240% 100%;background-position:115% 0;mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);mask-composite:exclude;animation:glass-edge 9s ease-in-out infinite}
@keyframes glass-edge{0%,17%{background-position:115% 0}62%,100%{background-position:-25% 0}}
.site-navigation .desktop-nav{border:0;background:transparent;gap:4px}
.site-navigation .desktop-nav a,.site-navigation .mobile-menu summary{border-radius:999px}
.site-navigation .desktop-nav a:hover,.site-navigation .desktop-nav a[aria-current]{background:#e2ebff20;color:var(--cream)}
.site-navigation .mobile-menu summary{background:#e2ebff13;box-shadow:inset 0 1px 0 #fff2}
.site-navigation .mobile-menu nav{background:#182641f5;border-color:#879bc759}
.button.primary {
  gap: 10px;
  border: 1px solid #fff5e6;
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  box-shadow: none;
  transition: background-color .2s var(--ease);
}
.button.primary:is(:hover, :focus-visible) {
  background: #fff8ed;
  box-shadow: none;
  transform: none;
}
.button.primary:active {
  background: #ede2d2;
  box-shadow: none;
  transform: none;
}
.button.primary > .icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 5px;
  border-radius: 50%;
  background: #ffc0b2;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  translate: none;
}
.button.primary:hover > .icon {
  background: #ffae9e;
  translate: none;
}
@media (prefers-reduced-motion: reduce) {
  .button.primary { transition: none; }
}
.button.secondary,
.website .button.secondary,
.site-navigation .mobile-menu nav .menu-tile,
.contact-options > a,
.contact-email,
.contact-email button,
.screen-open .image-open-label {
  --glass-edge: #d0e1ff60;
  --glass-edge-hover: #f4e3e0ae;
  --glass-reflection: #e7f0ff40;
  --glass-fill: linear-gradient(160deg, #a5c2f035, #758fbe14 53%, #a4bcef29);
  --glass-shadow: inset 0 1px 1px #ffffff52, inset 0 -1px 2px #bed1ff25, 0 4px 12px #070d233d;
  background: linear-gradient(116deg, transparent 34%, var(--glass-reflection) 50%, transparent 66%) 100% 0 / 235% 100%,
    var(--glass-fill);
  border-color: var(--glass-edge);
  color: var(--cream);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px) saturate(145%);
  transition: background-position .45s var(--ease), border-color .22s, transform .22s;
}
.button.secondary:is(:hover, :focus-visible),
.website .button.secondary:is(:hover, :focus-visible),
.site-navigation .mobile-menu nav .menu-tile:is(:hover, :focus-visible),
.contact-options > a:is(:hover, :focus-visible),
.contact-email:focus-within,
.contact-email button:is(:hover, :focus-visible),
.screen-open:is(:hover, :focus-visible) .image-open-label,
.app-phone:is(:hover, :focus-visible) .phone-zoom {
  background-position: 0 0, 0 0;
  border-color: var(--glass-edge-hover);
}
@media (prefers-reduced-motion: reduce) {
  .button.secondary,
  .website .button.secondary,
  .site-navigation .mobile-menu nav .menu-tile { transition: none; }
}
.button .icon{transition:translate .2s var(--ease)}
.button:hover .icon{translate:2px -2px}
.website .hero{min-height:clamp(570px,calc(100svh - 112px),920px);grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:0;overflow:visible;padding-block:36px 52px}
.website .hero-title{font-size:clamp(46px,5.4vw,100px);line-height:1.03;letter-spacing:-.065em}
.hero-description{color:var(--muted);max-width:46ch}
.website .hero-copy{padding-bottom:0}
.website .hero-stage.glass-scene {
  position: relative;
  height: auto;
  aspect-ratio: 1.14;
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow: visible;
  container-type: normal;
}
.glass-scene canvas,.glass-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.glass-scene canvas{opacity:0;transition:opacity .45s}
.glass-scene[data-rendered] canvas{opacity:1}
.glass-poster{transition:opacity .45s}
.glass-scene[data-rendered] .glass-poster{opacity:0}
@media (prefers-reduced-motion: no-preference) {
  @media (width < 901px), (pointer: coarse), (pointer: none) {
    .website .hero {
      overflow-x: clip;
    }
    .glass-scene:not([data-rendered]) .glass-poster {
      animation: glass-float 3.6s ease-in-out infinite alternate paused;
    }
    .glass-scene[data-in-view]:not([data-rendered]) .glass-poster {
      animation-play-state: running;
    }
  }
}
@keyframes glass-float {
  from {
    transform: perspective(800px) translateY(calc(var(--glass-scroll-offset, 0px) + 8px))
      rotateY(-19deg) rotateZ(calc(var(--glass-scroll-angle, 0deg) - 10deg)) scale(var(--glass-scroll-scale, 1));
  }
  to {
    transform: perspective(800px) translateY(calc(var(--glass-scroll-offset, 0px) - 15px))
      rotateY(19deg) rotateZ(calc(var(--glass-scroll-angle, 0deg) + 10deg)) scale(var(--glass-scroll-scale, 1));
  }
}
.website .plan-section,.website .project-section,.website .contact-section{scroll-margin-top:105px}
.website .section-heading h2{font-size:clamp(33px,4.8vw,76px);line-height:1.06}
.services-overview > .section-heading {
  display: block;
}
.services-overview > .section-heading .section-lead {
  max-width: 66ch;
  margin-top: clamp(12px, 1.4vw, 18px);
}
.section-caption{color:#ffae9e}
.website #tasks,.website #workflow{position:relative;isolation:isolate;color:var(--navy);padding-block:clamp(52px,7vw,112px)}
.website #tasks::before,.website #workflow::before{content:"";position:absolute;z-index:-1;inset:0 max(-32px,calc((100% - 100vw)/2));border-radius:clamp(14px,3vw,42px);background:var(--cream)}
.website #tasks .task-card,.website #workflow .work-route article{background:#fffaf2;border:1px solid #14213d29;color:var(--navy);box-shadow:0 6px 20px #14213d0b}
.website #tasks .task-card p,.website #workflow p{color:#465675}
.website #workflow .work-index{background:#ffe1d8;border-color:#efb0a3;color:#632c31}
.website #workflow .work-deliverable{border-color:#14213d28;color:#55324a}
.website #tasks .button.secondary {
  --glass-edge: #7585a15c;
  --glass-edge-hover: #9a6972a0;
  --glass-reflection: #ffffffdc;
  --glass-fill: linear-gradient(155deg, #fffdf7bb, #b5c8e24a 53%, #ffe0d34d);
  --glass-shadow: inset 0 2px 2px #fffffff5, inset 0 -2px 3px #8f9fbd36, 0 4px 12px #33486b21;
  color: var(--navy);
}
.website .service-catalog .service-card,.website .service-example,.website .project-panel,.website .process-console{background:linear-gradient(145deg,#273b5e,#182744);border-color:#9ab0d44f}
.website .service-catalog .service-card{transition:border-color .25s,box-shadow .25s}
.website .service-catalog .service-card:hover{border-color:#ff9e8c9c;box-shadow:0 12px 38px #0a102447}
.service-catalog .catalog-bottom strong {
  color: #ffc0b2;
  font-size: clamp(23px, calc(10px + 1.25vw), 29px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.website .project-section{background:radial-gradient(ellipse at 84% 15%,#59375275,transparent 63%),#151f38}
.website .agent-card[aria-pressed=true],.process-demo .graph-node[aria-pressed=true],.process-step-list button[aria-pressed=true]{border-color:var(--coral)}
.process-progress span{background:var(--coral)}
@media(max-width:900px){
 .website .hero{grid-template-columns:1fr;gap:28px;min-height:0;padding-block:36px 30px}
 .website .hero-title{font-size:clamp(38px,8vw,72px)}
 .website .hero-stage.glass-scene{width:min(100%,590px);margin:auto}
}
@media(max-width:520px){
 .website .hero{padding-top:24px;gap:24px}
 .website .hero-title{font-size:clamp(34px,8.6vw,45px)}
 .website .hero-actions{display:flex;flex-wrap:wrap;gap:10px}
 .website .hero-actions .button{width:auto;min-height:48px;font-size:13px}
 .website #tasks::before,.website #workflow::before{inset-inline:-8px}
 .website .section-heading h2{font-size:clamp(30px,8.7vw,46px)}
}
@media(prefers-reduced-motion:reduce){.site-navigation::before,.website .hero-copy>*{animation:none}.glass-scene canvas,.glass-poster,.button .icon{transition:none}}

/* Shared proportions: a quiet reading column inside full-width chapters. */
:root{--page-gutter:clamp(18px,5.2vw,94px);--page-width:1320px;--panel-radius:28px;--glass-surface:linear-gradient(116deg,#53678a75,#182743c9 48%,#3c3048b5)}
:is(.website,.service-page,.agent-page) .wrap{width:min(var(--page-width),calc(100% - 2 * var(--page-gutter)));max-width:none;margin-inline:auto}
.website .site-navigation,.site-navigation{min-height:56px;padding:5px clamp(14px,1.8vw,24px);background:var(--glass-surface)}
.site-navigation .brand{width:clamp(118px,9.4vw,136px)}
.site-navigation .desktop-nav{padding:0;gap:2px}
.site-navigation .desktop-nav a{padding:7px clamp(9px,1vw,13px);line-height:1.4}
.site-navigation .mobile-menu summary{width:44px;height:44px}
.site-navigation .mobile-menu nav{border-radius:var(--panel-radius)}
.site-navigation .mobile-menu nav .menu-tile{border-radius:18px}
.website .hero-title{font-size:clamp(46px,5vw,86px)}
.website .hero{min-height:max(550px,calc(100svh - 60px))}
.website #tasks::before,.website #workflow::before{inset:0;border-radius:0;box-shadow:0 0 0 100vmax var(--cream);clip-path:inset(0 -100vmax)}
:is(.website,.service-page,.agent-page,.mini-body) .button,
:is(.website,.agent-page) .view-controls button{border-radius:999px}
:is(.website,.service-page,.agent-page) :is(.service-card,.service-example,.work-route article,.case-triptych>*,.project-panel,.service-detail-grid>section,.service-boundaries,.service-next,.process-console,.workflow-window,.agent-card,.agent-scope-note){border-radius:var(--panel-radius)}
:is(.website,.agent-page) :is(.process-step-list button,.graph-node,.agent-mini){border-radius:16px}
:is(.website,.agent-page) :is(.catalog-icon,.work-index,.agent-deck-controls button){border-radius:50%}
.website .site-footer{border-radius:0}

/* The card and link page share the same glass and pill controls as the site. */
.mini-body{background:radial-gradient(ellipse at 50% 0,#35496d,transparent 620px),var(--bg);padding-block:clamp(16px,4vw,54px)}
.mini-shell{padding:clamp(20px,4vw,32px);border-radius:36px;background:linear-gradient(155deg,#2d3c59,#1a2844 48%,#16213b);border-color:#d1dfff4d;box-shadow:inset 0 1px 0 #fff2,0 24px 70px #080d2055}
.mini-shell::before{background-image:url(assets/glass-poster.webp);width:315px;height:270px;right:-123px;top:120px;opacity:.2;transform:rotate(-15deg)}
.mini-header .brand{width:clamp(110px,30vw,140px)}
.mini-body :is(.share-button,.surface-nav,.surface-nav a,.card-shortcuts>*,.email-row button,.mini-socials a,#qr-dialog .dialog-bar button){border-radius:999px}
.mini-body :is(.share-button,.card-shortcuts>*,.mini-socials a,.email-row button){background:linear-gradient(140deg,#526a9160,#21335277);border-color:#afc2e65b;color:var(--cream);box-shadow:inset 0 1px 0 #fff2}
.mini-body .surface-nav{background:#111e38b8;border-color:#bdcbed38;box-shadow:inset 0 1px 0 #fff1;gap:3px;padding:4px;margin-block:22px 28px}
.mini-body .surface-nav a{min-height:42px;color:#d1d9eb}
.mini-body .surface-nav a[aria-current]{background:#5364878c;color:var(--cream);box-shadow:inset 0 1px 0 #fff3}
.mini-body .surface-nav a:not([aria-current]):hover{background:#d3dfff26}
.mini-body :is(.contact-list>a,.email-row,.text-link,.bio-link,.bio-project){border-radius:24px;background:linear-gradient(130deg,#53678a54,#23365375);border-color:#a9bde14f;box-shadow:inset 0 1px 0 #fff1}
.mini-body :is(.share-button,.card-shortcuts>*,.contact-list>a,.text-link,.bio-link,.bio-project):hover{border-color:#ffb6a9a0}
.mini-body :is(.contact-list>a,.email-row,.text-link){padding-inline:clamp(14px,4vw,22px)}
.mini-body :is(.contact-list span,.mini-intro,.bio-link>span){color:#cad4e7}
.mini-body .save-contact{min-height:54px}
.mini-body .bio-project>img{border-radius:18px}
.mini-body #qr-dialog{border-radius:30px}
.mini-body #qr-dialog>img{border-radius:18px}
@media(max-width:900px){
 :root{--page-gutter:clamp(18px,4vw,32px)}
 .website .hero{min-height:0}
 .website .hero-title{font-size:clamp(38px,8vw,72px)}
}
@media(max-width:520px){
 :root{--panel-radius:22px}
 .website .site-navigation,.site-navigation{min-height:52px;padding:3px 11px 3px 14px}
 .website .hero-title{font-size:clamp(34px,8.6vw,45px)}
 .mini-shell{border-radius:28px}
 .mini-shell::before{right:-145px;opacity:.16}
}

.scenario-picker fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.scenario-picker legend {
  margin-bottom: 14px;
  padding: 0;
  color: var(--cream);
  font-weight: 650;
}
.scenario-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.scenario-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: baseline;
  gap: 6px 10px;
  padding: 16px;
  border: 1px solid #afc2e65b;
  border-radius: 18px;
  background: var(--surface);
  color: var(--cream);
  cursor: pointer;
}
.scenario-option input {
  align-self: start;
  width: 16px;
  height: 16px;
  margin: .25em 0 0;
  accent-color: var(--coral);
  cursor: inherit;
}
.scenario-option span {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.scenario-option:hover { border-color: #afc2e6; }
.scenario-option:has(:checked) {
  border-color: var(--coral);
  background: linear-gradient(125deg, #382c3e, var(--surface) 82%);
}
.scenario-option:has(:focus-visible) {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.scenario-picker-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
}
.scenario-picker-footer strong { color: var(--cream); }
#scenarios .scenario-preview {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) {
  .scenario-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .scenario-options { grid-template-columns: 1fr; gap: 8px; }
  .scenario-option { padding: 11px 14px; }
}
.scenario-fallback a { text-decoration: underline; }
.agent-detail .agent-detail-hero { display: block; }

/* Keep motion surfaces separate from page layout and controls. */
.website :is(.task-grid,.service-catalog) { perspective: 1100px; }
.website .work-route { position: relative; }
.website .work-route::before {
  content: "";
  position: absolute;
  inset: -13px 0 auto;
  height: 3px;
  border-radius: 999px;
  background: var(--coral);
  transform: scaleX(var(--route-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}
.website :is(.task-card,.service-catalog > article):focus-within,
.website #demo-host:has(:focus-visible) {
  transform: none !important;
  opacity: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
  .website .work-route::before { display: none; }
}

/* Align the estimate and scope panels on the same grid. */
.service-main {
  --service-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  --service-gap: clamp(20px, 4vw, 56px);
}
.service-main > :is(.service-intro, .service-detail-grid) {
  grid-template-columns: var(--service-columns);
  gap: var(--service-gap);
}
.service-main > .service-intro {
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 72px);
}
.service-main .service-intro h1 {
  font-size: clamp(32px, 4.3vw, 62px);
  overflow-wrap: break-word;
}
.service-main .service-intro > div > p {
  margin-bottom: 0;
}
.service-main .service-estimate {
  max-width: none;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--panel-radius);
  border-color: #afc2e65b;
  background: linear-gradient(145deg, #273b5e, #182744);
}
.service-main .service-estimate .draft-label {
  border-radius: 14px;
  margin-bottom: 10px;
}
.service-main .service-estimate > strong {
  font: 500 clamp(32px, 4vw, 54px)/1.12 var(--display);
  letter-spacing: -.045em;
  margin: 8px 0 22px;
}
.service-main .service-estimate dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: 14px;
  border-block: 1px solid var(--line);
}
.service-main .service-estimate > p {
  margin-top: 16px;
}
.service-main > .service-detail-grid > section {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.service-main > .service-detail-grid h2 {
  margin-bottom: 16px;
}
.service-main > .service-detail-grid p + p {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .service-main {
    --service-columns: minmax(0, 1fr);
  }
}

.terms-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.terms-link span { color: var(--coral); }

.website #terms {
  padding-block: clamp(36px, 6vw, 88px);
}
.terms-panel {
  padding: clamp(18px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: linear-gradient(145deg, #253858, #16243e 80%);
}
@media (prefers-reduced-motion: no-preference) {
  .terms-panel.will-enter.entered {
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .terms-panel.will-enter:not(.entered) { opacity: .65; }
}
.terms-heading { margin-bottom: clamp(18px, 3vw, 34px); }
.terms-heading .section-caption { margin-bottom: 6px; }
.terms-heading h2 { font-size: clamp(28px, 4vw, 54px); }
.terms-heading > p:last-child { margin-top: 8px; color: var(--muted); }
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.terms-card {
  padding: clamp(16px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111e36a8;
}
.terms-card h3 { font-size: clamp(20px, 2vw, 28px); }
.terms-card p { margin-top: 14px; color: var(--muted); }
.terms-payments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.terms-payments li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 9px;
  border-top: 2px solid var(--coral);
  font-size: 14px;
}
.terms-payments strong { color: var(--coral); font-size: 25px; }
.terms-optional {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-size: 13px;
}
@media (max-width: 760px) {
  .terms-grid { grid-template-columns: minmax(0, 1fr); }
}

.service-catalog > .service-card {
  grid-template-rows: 1fr auto;
  row-gap: clamp(16px, 2.4vw, 28px);
}
.catalog-copy { min-width: 0; }
.service-catalog .catalog-copy h3 {
  min-height: 0;
  font-size: clamp(20px, 2.1vw, 27px);
  overflow-wrap: break-word;
}
.catalog-copy p {
  margin-top: 8px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.service-catalog .catalog-bottom {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "price action" "scope action";
  align-items: start;
  gap: 8px 16px;
  padding-top: 16px;
}
.catalog-bottom > span { grid-area: price; }
.catalog-bottom .catalog-boundary { grid-area: scope; }
.service-catalog .catalog-bottom .button {
  grid-area: action;
  align-self: end;
}
@media (max-width: 540px) {
  .service-catalog .catalog-bottom {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "price" "scope" "action";
  }
  .service-catalog .catalog-bottom .button { margin-top: 4px; }
}

.project-panel .view-controls,
.project-panel .image-open-label,
.contact-options > a,
.contact-email {
  border-radius: 999px;
}
.contact-options { grid-auto-rows: 1fr; }
.contact-email button { border-radius: 50%; }
.product-mobile .app-gallery { gap: clamp(12px, 2vw, 24px); }
.product-mobile .app-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 22px;
  padding: clamp(16px, 2.2vw, 30px);
  border-radius: var(--panel-radius);
  background: linear-gradient(155deg, #273956, #18243d);
}
.app-view-copy {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.app-view-copy h4 {
  margin-bottom: 7px;
  font: 400 clamp(18px, 1.8vw, 24px)/1.25 var(--display);
}
.app-view-copy p { margin: 0; line-height: 1.5; }
.product-mobile .app-phone {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 225px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 36px;
  overflow: visible;
  background: none;
  box-shadow: none;
}
.product-mobile .app-phone:hover,
.product-mobile .app-phone:active { transform: none; box-shadow: none; }
.product-mobile .app-phone > .phone-shell {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 16% / 7.5%;
  background: linear-gradient(130deg, #f6f5f4 1%, #9396a0 19%, #d9d9df 34%, #555e72 66%, #c6c8d1 92%);
  box-shadow: 0 0 0 1px #131a2a, 0 15px 25px -12px #030612d9;
}
.phone-display {
  position: relative;
  display: block;
  padding: 3px;
  border-radius: inherit;
  background: #07090e;
  overflow: hidden;
}
.product-mobile .phone-display img { border-radius: 14.5% / 6.75%; }
.phone-island {
  position: absolute;
  top: 2.7%;
  left: 50%;
  width: 28%;
  aspect-ratio: 4;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050609;
  box-shadow: inset 0 0 0 1px #202430;
}
.phone-island::after {
  content: "";
  position: absolute;
  right: 9%;
  top: 50%;
  width: 15%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 65% 35%, #5d688d, #1b2440 37%, #080b13 75%);
}
.phone-keys {
  position: absolute;
  top: 17%;
  inset-inline: -2px;
  height: 3%;
  background: linear-gradient(#a8aab5, #a8aab5) left / 2px 100% no-repeat;
  pointer-events: none;
}
.phone-keys::before,
.phone-keys::after {
  content: "";
  position: absolute;
  width: 2px;
  background: #a8aab5;
}
.phone-keys::before {
  top: 175%;
  left: 0;
  height: 168%;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 29px #a8aab5;
}
.phone-keys::after {
  top: 230%;
  right: 0;
  height: 220%;
  border-radius: 0 2px 2px 0;
}
.product-mobile .app-phone > .phone-zoom {
  display: inline-flex;
  margin: 0;
  min-height: 44px;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .product-mobile .app-view { grid-template-rows: auto auto; }
  .contact-options > a,
  .contact-email { border-radius: 24px; }
}

@media (max-width: 520px) {
  .hero-actions .button.primary > .icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    padding: 4px;
  }
}

.service-main > .service-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 24px 40px;
  margin-top: clamp(28px, 5vw, 62px);
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at top left, #334967, transparent 78%), var(--surface);
}
.service-next .service-next-copy .section-caption {
  margin: 0 0 8px;
  color: #ffb3a6;
  font-size: 13px;
}
.service-next-copy h2 {
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.12;
}
.service-next .service-next-copy h2 + p {
  max-width: 52ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
}
.service-next-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-width: 0;
}
.service-next-actions .button { max-width: 100%; }
.service-next-actions .button.secondary { min-height: 46px; padding-block: 10px; }
@media (max-width: 900px) {
  .service-main > .service-next { grid-template-columns: minmax(0, 1fr); }
  .service-next-actions { display: flex; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .service-next-actions { display: grid; justify-items: stretch; }
}

.service-faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  list-style: none;
  border-radius: 12px;
}
.service-faq summary::-webkit-details-marker { display: none; }
.service-faq summary::after {
  content: "";
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #263650
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='%23f4ede0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 17px no-repeat;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.service-faq summary:is(:hover, :focus-visible)::after,
.service-faq details[open] > summary::after {
  background-color: #493546;
  border-color: #ffb6a980;
}
.service-faq details[open] > summary::after { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .service-faq summary::after { transition: none; }
}

#screen-desktop {
  padding: clamp(18px, 3.6vw, 50px) clamp(10px, 3vw, 42px);
}
#screen-desktop .screen-open {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2vw, 24px);
  width: min(100%, 1060px);
  margin-inline: auto;
  overflow: visible;
  border-radius: 18px;
  background: transparent;
}
.laptop-mockup {
  display: block;
  width: 100%;
}
.laptop-lid {
  position: relative;
  display: block;
  width: 88%;
  margin-inline: auto;
  padding: clamp(3px, .65vw, 9px);
  border: 1px solid #a0a5b3;
  border-bottom: 0;
  border-radius: clamp(7px, 1vw, 15px) clamp(7px, 1vw, 15px) 0 0;
  background: #090b10;
  box-shadow: inset 0 1px 0 #ffffff30, 0 12px 32px #05081355;
}
.laptop-lid::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: 11%;
  height: clamp(6px, 1vw, 14px);
  transform: translateX(-50%);
  border-radius: 0 0 5px 5px;
  background: radial-gradient(circle at 50% 54%, #384462 0 1px, transparent 2px), #090b10;
}
.laptop-display {
  display: block;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #182135;
}
.laptop-display img { width: 100%; height: auto; }
.laptop-browser {
  display: block;
  color: #c8cfdc;
  background: #202633;
  font-size: clamp(8px, .85vw, 11px);
  line-height: 1.2;
  text-align: left;
}
.laptop-browser svg {
  flex: 0 0 auto;
  width: clamp(8px, .95vw, 13px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.laptop-browser-tabs,
.laptop-browser-toolbar,
.laptop-window-controls,
.laptop-browser-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, .65vw, 10px);
}
.laptop-browser-tabs,
.laptop-browser-toolbar { padding-inline: clamp(5px, .9vw, 12px); }
.laptop-browser-tabs { padding-top: clamp(4px, .5vw, 7px); }
.laptop-window-controls { gap: clamp(3px, .4vw, 6px); }
.laptop-window-controls i {
  width: clamp(4px, .55vw, 8px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ff8078;
}
.laptop-window-controls i:nth-child(2) { background: #f4c469; }
.laptop-window-controls i:nth-child(3) { background: #70cb8c; }
.laptop-browser-tab {
  display: flex;
  align-items: center;
  gap: clamp(4px, .5vw, 8px);
  width: clamp(82px, 13vw, 160px);
  padding: clamp(3px, .45vw, 6px) clamp(5px, .65vw, 9px);
  border-radius: 7px 7px 0 0;
  color: #f0f2f7;
  background: #343e51;
}
.laptop-browser .laptop-site-icon { stroke: none; }
.laptop-tab-close,
.laptop-address-bookmark { margin-inline-start: auto; }
.laptop-browser-toolbar {
  padding-block: clamp(3px, .4vw, 5px);
  background: #343e51;
  border-bottom: 1px solid #111827;
}
.laptop-nav-inactive { opacity: .45; }
.laptop-browser-address {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(4px, .55vw, 8px);
  min-width: 0;
  padding: clamp(2px, .3vw, 4px) clamp(5px, .7vw, 10px);
  border: 1px solid #ffffff12;
  border-radius: 999px;
  color: #e2e8f3;
  background: #232b3a;
}
.laptop-base {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(6px, .95vw, 15px);
  border-radius: 0 0 3px 3px;
  background:
    linear-gradient(180deg, #ffffff36, transparent 45%, #1c233a50),
    linear-gradient(90deg, #8b909c, #dfe2e8 3%, #b8bdc8 48%, #dfe2e8 97%, #8b909c);
  box-shadow: 0 9px 18px -5px #000b;
}
.laptop-base::before {
  content: "";
  position: absolute;
  inset: 0 41% 48%;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(#9097a5, #c9cdd7);
}
.laptop-base::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: clamp(2px, .25vw, 3px);
  background:
    linear-gradient(#141722, #141722) 9% 0 / 5% 100% no-repeat,
    linear-gradient(#141722, #141722) 91% 0 / 5% 100% no-repeat;
}
#screen-desktop .laptop-zoom { border-radius: 999px; }

/* Fire Reports product reveal */
.case-subheading { position: relative; }
#screen-desktop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 72%, #263858, #111a2c 76%);
}
#screen-desktop::before,
#screen-desktop::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
#screen-desktop::before {
  inset: 34% 0 0;
  background:
    repeating-linear-gradient(90deg, #a6bff018 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, #a6bff018 0 1px, transparent 1px 32px);
  mask-image: radial-gradient(ellipse at 50% 64%, #000, transparent 72%);
}
#screen-desktop::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 34% 52%, #537dc05c, transparent 56%),
    radial-gradient(ellipse at 72% 68%, #ff998a28, transparent 45%);
  opacity: .72;
}
.laptop-display { position: relative; }
.laptop-display::after,
.phone-display::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(112deg, transparent 24%, #b1caff30 45%, #fff6ec66 52%, transparent 70%);
}
.project-panel .view-controls {
  --switch-gap: 6px;
  --switch-pad: 6px;
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-panel .view-controls::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--switch-pad) auto var(--switch-pad) var(--switch-pad);
  box-sizing: border-box;
  width: calc((100% - 2 * var(--switch-pad) - var(--switch-gap)) / 2);
  border: 1px solid #ffd6c9;
  border-radius: inherit;
  background: linear-gradient(145deg, #ffd1bf, #ff998a);
  box-shadow: 0 2px 12px #ff998a30;
  transition: transform .55s cubic-bezier(.22, .72, .25, 1);
  pointer-events: none;
}
.project-panel .view-controls:has([data-view="mobile"][aria-pressed="true"])::before {
  transform: translateX(calc(100% + var(--switch-gap)));
}
.project-panel .view-controls button { width: 100%; }
.project-panel .view-controls button[aria-pressed="true"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
#screen-desktop:not([hidden]),
#screen-mobile:not([hidden]) { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  .website .hero-copy > * { animation-duration: 1.05s; }
  .website .hero-stage.glass-scene {
    animation: glass-arrival 1.65s cubic-bezier(.22, .64, .24, 1) .18s backwards;
  }
  .case-subheading.entered::after {
    content: "";
    display: block;
    position: absolute;
    inset: auto 0 -16px;
    height: 1px;
    background: linear-gradient(90deg, #ff998a, #94b9fb80 38%, transparent 90%);
    transform-origin: left;
    animation: case-trace 1.4s ease-out both;
    pointer-events: none;
  }
  #screen-desktop:has(.device-revealed)::after {
    animation: stage-light 2.55s cubic-bezier(.22, .72, .25, 1) both;
  }
  .laptop-mockup.device-revealed {
    animation: device-arrival 2.2s cubic-bezier(.22, .64, .24, 1) both;
    transform-origin: center 85%;
    --device-rise: 52px;
    --device-tilt: 16deg;
    --device-opacity: .32;
  }
  .phone-shell.device-revealed {
    animation: device-arrival 1.7s cubic-bezier(.22, .64, .24, 1) var(--device-delay, 0s) both;
    transform-origin: center 70%;
    --device-rise: 28px;
    --device-tilt: 9deg;
    --device-opacity: .54;
  }
  .laptop-mockup.device-revealed .laptop-display::after {
    animation: screen-reflection 1.25s ease-out .55s both;
  }
  .phone-shell.device-revealed .phone-display::after {
    animation: screen-reflection .95s ease-out calc(.42s + var(--device-delay, 0s)) both;
  }
  .screen-open:has(.device-revealed) .laptop-zoom {
    animation: device-action 1.05s ease-out .9s both;
  }
  @media (min-width: 900px) {
    .app-view:nth-child(2) .phone-shell { --device-delay: .19s; }
    .app-view:nth-child(3) .phone-shell { --device-delay: .38s; }
  }
  @media (max-width: 540px) {
    .laptop-mockup.device-revealed {
      --device-rise: 24px;
      --device-tilt: 8deg;
    }
  }
  .screen-open:focus-visible :is(.device-revealed, .laptop-zoom),
  .app-phone:focus-visible .device-revealed,
  .screen-open:focus-visible .laptop-display::after,
  .app-phone:focus-visible .phone-display::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-panel .view-controls::before { transition: none; }
}
@keyframes stage-light {
  0% { opacity: .12; transform: translateX(-12%); }
  50% { opacity: 1; }
  100% { opacity: .72; transform: translateX(0); }
}
@keyframes device-arrival {
  from {
    opacity: var(--device-opacity);
    transform: perspective(1400px) translateY(var(--device-rise)) rotateX(var(--device-tilt));
  }
  to { opacity: 1; transform: none; }
}
@keyframes screen-reflection {
  0% { opacity: 0; transform: translateX(-65%); }
  34% { opacity: .55; }
  100% { opacity: 0; transform: translateX(65%); }
}
@keyframes device-action {
  from { opacity: .55; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
@keyframes glass-arrival {
  from { opacity: .3; }
  to { opacity: 1; }
}
@keyframes case-trace {
  from { opacity: .15; transform: scaleX(.08); }
  to { opacity: .75; transform: scaleX(1); }
}

.estimate-panel {
  margin-block: clamp(24px, 4vw, 52px);
  padding: clamp(18px, 4vw, 52px);
  scroll-margin-top: 105px;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: linear-gradient(145deg, #253858, #16243e 80%);
}
.estimate-panel header h3 {
  margin-block: 6px 10px;
  font-size: clamp(27px, 4vw, 50px);
  line-height: 1.12;
}
.estimate-panel header > p:last-child,
.estimate-note,
.estimate-figures dt { color: var(--muted); }
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 4vw, 52px);
  margin-top: clamp(20px, 3vw, 38px);
}
.estimate-controls {
  display: grid;
  gap: 22px;
}
.estimate-controls fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.estimate-controls legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 650;
}
.estimate-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.estimate-choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #d0e1ff38;
  border-radius: 999px;
  background: linear-gradient(160deg, #a5c2f018, #758fbe0c 53%, #a4bcef14);
  cursor: pointer;
  transition: border-color .22s, box-shadow .25s, background .25s, transform .18s;
}
.estimate-choices input {
  flex: none;
  accent-color: var(--coral);
}
.estimate-choices label:active {
  transform: scale(.98);
}
.estimate-choices label:has(:checked) {
  border-color: #ff9e8c9c;
  background: linear-gradient(160deg, #ff6b5b1f, #a5c2f014 70%);
  box-shadow: 0 4px 18px #ff6b5b1f, inset 0 1px 1px #ffffff33;
}
.estimate-choices label:has(:focus-visible) {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.estimate-note {
  margin-top: 8px;
  font-size: 14px;
}
.estimate-extras {
  display: grid;
  gap: 10px;
}
.estimate-extra {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid #d0e1ff38;
  border-radius: 22px;
  background: linear-gradient(116deg, transparent 34%, #e7f0ff12 50%, transparent 66%) 100% 0 / 235% 100%,
    linear-gradient(160deg, #a5c2f020, #758fbe10 53%, #a4bcef1a);
  cursor: pointer;
  transition: background-position .45s var(--ease), border-color .22s, box-shadow .25s, transform .18s;
}
.estimate-extra:hover {
  background-position: 0 0, 0 0;
  border-color: #f4e3e0ae;
}
.estimate-extra:active {
  transform: scale(.99);
}
.estimate-extra:has(:checked) {
  border-color: #ff9e8c9c;
  box-shadow: 0 8px 28px #ff6b5b1f, inset 0 1px 1px #ffffff3d;
}
.estimate-extra:has(:focus-visible) {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.estimate-extra input {
  appearance: none;
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid #d0e1ff70;
  border-radius: 50%;
  background: #0d1626;
  align-self: start;
  margin-top: 1px;
  transition: border-color .2s, box-shadow .25s;
}
.estimate-extra input::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  transform: scale(0);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.estimate-extra input:checked {
  border-color: #ff9e8c;
  box-shadow: 0 0 0 4px #ff6b5b1f;
}
.estimate-extra input:checked::after {
  transform: scale(1);
}
.estimate-extra-copy {
  display: grid;
  gap: 2px;
  min-inline-size: 0;
}
.estimate-extra-copy strong {
  font-weight: 650;
  line-height: 1.3;
}
.estimate-extra-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.estimate-extra-price {
  padding: 6px 12px;
  border: 1px solid #ff9e8c42;
  border-radius: 999px;
  background: #ff6b5b14;
  color: #ffc0b2;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes price-rise {
  0% { transform: translateY(10px) scale(.96); color: #ff998a; }
  100% { transform: none; }
}
@keyframes price-fall {
  0% { transform: translateY(-10px) scale(.96); color: #9fc0ff; }
  100% { transform: none; }
}
.estimate-price.is-up { animation: price-rise .55s cubic-bezier(.22, .64, .24, 1); }
.estimate-price.is-down { animation: price-fall .55s cubic-bezier(.22, .64, .24, 1); }
@keyframes estimate-line-in {
  from { opacity: 0; transform: translateY(8px); }
}
.estimate-line-in { animation: estimate-line-in .45s cubic-bezier(.22, .64, .24, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  .estimate-price.is-up,
  .estimate-price.is-down,
  .estimate-line-in { animation: none; }
}
.estimate-breakdown {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.estimate-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 7px;
  border-bottom: 1px solid #d0e1ff1f;
}
.estimate-breakdown li span {
  color: var(--muted);
}
.estimate-breakdown b {
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.estimate-result {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid #d0e1ff38;
  border-radius: 24px;
  background: linear-gradient(116deg, transparent 34%, #e7f0ff10 50%, transparent 66%) 100% 0 / 235% 100%,
    linear-gradient(160deg, #a5c2f022, #758fbe10 53%, #a4bcef1a);
}
.estimate-figures {
  display: grid;
  width: 100%;
  gap: 10px;
}
.estimate-price {
  color: var(--cream);
  font: 500 clamp(26px, 4vw, 52px)/1.15 var(--display);
}
.estimate-figures dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-block: 12px;
  border-block: 1px solid #d0e1ff24;
}
.estimate-figures dt { font-size: 13px; }
.estimate-figures dd { margin: 3px 0 0; font-weight: 650; }
.estimate-result .terms-link { display: inline-flex; align-items: center; gap: 6px; }
.workflow-assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(20px, 3vw, 32px);
}
.workflow-assurances article {
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid #14213d29;
  border-radius: var(--panel-radius);
  background: #fffaf2;
  color: var(--navy);
  box-shadow: 0 6px 20px #14213d0b;
}
.assurance-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #ffe8df;
  color: #963d33;
}
.assurance-icon svg { width: 21px; height: 21px; }
.workflow-assurances h3 {
  margin-bottom: 8px;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.25;
  text-wrap: balance;
}
.workflow-assurances p { line-height: 1.55; }
@media (max-width: 760px) {
  .estimate-layout,
  .workflow-assurances { grid-template-columns: 1fr; }
  .estimate-extra { grid-template-columns: auto minmax(0, 1fr); }
  .estimate-extra-price { grid-column: 2; justify-self: start; }
}

/* Структура 2026-11-11: призыв после болей, опрос, созвон и плавающая кнопка */
.website .section-cta { margin-top: clamp(24px, 3vw, 40px); display: flex; justify-content: center; }
.website #tasks .section-cta .button.primary { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.website #tasks .section-cta .button.primary:is(:hover, :focus-visible) { background: #1f3058; }
.website #workflow .work-route h3 { margin-bottom: 10px; }
.website #workflow .work-index { margin-bottom: 18px; }
.website #tasks .section-lead, .website #tasks .section-caption { color: #465675; }
@media (max-width: 600px) {
  .website #workflow .work-route { gap: 12px; }
  .website #workflow .work-route article { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .website #workflow .work-index { grid-row: span 2; margin: 0; }
  .website #workflow .work-route h3 { margin-bottom: 10px; font-size: 22px; }
}

.quiz-section { display: grid; gap: clamp(16px, 2vw, 24px); scroll-margin-top: 96px; }
.quiz-panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(20px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: linear-gradient(145deg, #253858, #16243e 80%);
}
.quiz-intro h2 { margin-block: 6px 14px; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; }
.quiz-intro p:last-child { color: var(--muted); max-width: 42ch; }
.quiz-form { display: grid; gap: 18px; align-content: start; min-width: 0; }
.quiz-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-step legend { display: grid; gap: 8px; margin-bottom: 16px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.quiz-count { font-family: Inter, sans-serif; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #ffc0b2; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.quiz-options label {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  border: 1px solid #d0e1ff38; border-radius: 18px;
  background: linear-gradient(160deg, #a5c2f020, #758fbe10 53%, #a4bcef1a);
  cursor: pointer; transition: border-color .22s, box-shadow .25s, transform .18s;
}
.quiz-options label:hover { border-color: #f4e3e0ae; }
.quiz-options label:active { transform: scale(.99); }
.quiz-options label:has(:checked) { border-color: #ff9e8c9c; box-shadow: 0 8px 28px #ff6b5b1f, inset 0 1px 1px #ffffff3d; }
.quiz-options label:has(:focus-visible) { outline: 2px solid var(--coral); outline-offset: 3px; }
.quiz-options input {
  appearance: none; flex: none; display: grid; place-content: center; width: 22px; height: 22px; margin: 0;
  border: 1.5px solid #d0e1ff70; border-radius: 50%; background: #0d1626;
}
.quiz-options input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.quiz-options input:checked { border-color: #ff9e8c; box-shadow: 0 0 0 4px #ff6b5b1f; }
.quiz-options input:checked::after { transform: scale(1); }
.quiz-nav { display: flex; align-items: center; gap: 14px; }
.quiz-nav .button[disabled] { opacity: .45; pointer-events: none; }
.quiz-progress { flex: 1; height: 4px; border-radius: 4px; background: #d0e1ff24; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--coral); transition: width .35s var(--ease); }
.quiz-form:not(.is-ready) .quiz-nav { display: none; }
.quiz-error { min-height: 1.4em; margin: 0; color: #ffc0b2; font-size: 14px; }
.quiz-error:empty { display: none; }
.quiz-result { display: grid; gap: 14px; outline: none; }
.quiz-result h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.quiz-result p:not(.section-caption) { color: var(--muted); }
.quiz-result p a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-restart { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiz-restart:hover { color: var(--cream); }

.consult-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 52px);
  border-radius: var(--panel-radius); background: var(--cream); color: var(--navy);
}
.consult-band h2 { margin-bottom: 8px; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; }
.consult-band p { max-width: 60ch; color: #465675; }
.consult-band .button.primary { flex: none; background: var(--navy); border-color: var(--navy); color: var(--cream); }
.consult-band .button.primary:is(:hover, :focus-visible) { background: #1f3058; }

.floating-cta { display: none; }
@media (max-width: 900px) {
  .quiz-panel { grid-template-columns: 1fr; }
  .consult-band { flex-direction: column; align-items: stretch; }
  .consult-band .button { justify-content: center; }
  .floating-cta {
    position: fixed; z-index: 60; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
    border: 1px solid #ffb3a6; border-radius: 999px; background: var(--coral); color: var(--navy);
    font-weight: 650; text-decoration: none; box-shadow: 0 12px 34px #050b1a8c;
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .floating-cta .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--cream); }
  .floating-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .website .site-footer { padding-bottom: 88px; }
  .website .site-footer nav a, .website .legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 600px) {
  .quiz-nav .button { flex: 1; justify-content: center; }
  .quiz-progress { display: none; }
  .quiz-actions .button { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta, .quiz-progress i, .quiz-options label, .quiz-options input::after { transition: none; }
}

/* Контраст счётчиков узлов в сценариях (WCAG AA) */
.website .graph-node .node-count { color: #c9ccd2; }

/* Плавный переход от полосы созвона к кейсу: фон кейса проявляется сверху вниз, свечение опущено от края */
.website .quiz-section { padding-bottom: clamp(48px, 7vw, 112px); }
.website .project-section {
  background:
    radial-gradient(ellipse 60% 520px at 84% 380px, #59375266, transparent 70%),
    linear-gradient(180deg, transparent, #151f38 clamp(160px, 18vw, 280px));
}

/* Мобильная версия, 12 ноября: короче страница. Описания остаются на страницах решений и сценариев. */
.estimate-layout[hidden] { display: none; }
.estimate-toggle { display: none; }
@media (max-width: 600px) {
  /* Решения: название, цена и ссылка «Что входит» */
  .service-catalog { gap: 10px; }
  .service-catalog > .service-card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; column-gap: 14px; row-gap: 10px; padding: 16px 18px; }
  .service-catalog .catalog-icon { grid-row: span 2; align-self: start; }
  .service-catalog .catalog-copy p, .service-catalog .catalog-boundary { display: none; }
  .service-catalog .catalog-copy h3 { font-size: 19px; }
  .service-catalog .catalog-bottom { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "price action"; align-items: center; padding-top: 0; border-top: 0; }
  .service-catalog .catalog-bottom .button { margin-top: 0; align-self: center; }

  /* Калькулятор свёрнут до кнопки (estimate.js) */
  .estimate-toggle:not([hidden]) { display: flex; width: 100%; justify-content: center; margin-top: 16px; }

  /* Сценарии: лента выбора пальцем, схема — на странице сценария */
  #scenarios .scenario-options { display: flex; overflow-x: auto; gap: 10px; margin-inline: -16px; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  #scenarios .scenario-options::-webkit-scrollbar { display: none; }
  #scenarios .scenario-option { flex: 0 0 76%; scroll-snap-align: start; }
  #scenarios .scenario-picker legend { margin-bottom: 10px; }
  #scenarios #demo-host { display: none; }
  #scenarios .scenario-preview { margin-top: 16px; padding-top: 20px; }
  #scenarios .preview-heading .button { width: 100%; justify-content: center; margin-top: 14px; }

  /* Кейс: заказчик и объект уже в подзаголовке, технические детали — для компьютера */
  .case-triptych .case-identity { display: none; }
  .case-narrative > div:nth-child(3) { display: none; }
}

/* Зазор под карточками решений: они въезжают со сдвигом 24px и не должны касаться конструктора */
.services-overview .estimate-panel { margin-top: clamp(48px, 6vw, 72px); }

/* Телефон: линия прогресса шагов идёт вертикально через кружки с номерами */
@media (max-width: 600px) {
  .website .work-route::before {
    inset: var(--route-start, 43px) auto var(--route-end, 43px) var(--route-x, 42px);
    z-index: 1;
    width: 3px;
    height: auto;
    transform: scaleY(var(--route-progress, 0));
    transform-origin: center top;
  }
  .website #workflow .work-index { position: relative; z-index: 2; }
}

/* FAQ на главной */
.website #faq { padding-block: clamp(36px, 6vw, 88px) 0; }
.faq-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(18px, 5vw, 72px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; cursor: pointer; padding: 18px 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; color: var(--cream); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--coral); font-size: 22px; line-height: 1; transition: transform .25s var(--ease, ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: #fff; }
.faq-list details p { padding: 0 0 20px; max-width: 62ch; color: var(--muted); line-height: 1.7; }
@media (max-width: 760px) { .faq-panel { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }
