@font-face {
  font-family: "Geist Sans";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2122, U+2190-2199;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2122, U+2190-2199;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-cyrillic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2122, U+2190-2199;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg2: #2c333d;
  --surface: #2c333d;
  --ink: #fff;
  --muted: #c6c9ca;
  --line: #56616d;
  --accent: #970a18;
  --accent-dark: #780d17;
  --accent-contrast: #fff;
  --light-bg: #efefef;
  --light-card: #fff;
  --light-ink: #0a0a0a;
  --light-muted: #2c333d;
  --light-line: #c6c9ca;
  --font: "Geist Sans", "Golos Text", Arial, sans-serif;
  --font-body: var(--font);
  --font-head: var(--font);
}

body {
  font-family: var(--font);
}

h1,
h2 {
  font-family: "Bebas Neue", "Golos Text", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .015em;
}

.hero-content p,
.ts-hero-content p {
  text-wrap: pretty;
}

header.site {
  background: #2c333d;
}

header.site a.logo {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  width: 140px;
}

.logo .brandbook-logo {
  width: 130px;
  max-height: 34px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.logo .sub {
  margin: 0;
  color: #efefef;
  font-family: var(--font);
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: .10em;
  font-weight: 700;
}

.btn-primary {
  color: #fff;
  box-shadow: none;
}

.eyebrow.is-outline,
.btn-outline:hover,
.compare-col .time,
.card .num {
  color: var(--ink);
}

.on-light .eyebrow.is-outline,
.on-light .btn-outline:hover,
.on-light .compare-col.is-us .time,
.on-light .card .num {
  color: var(--accent);
  border-color: var(--accent);
}

.on-light .compare-col.is-them .time {
  color: #efefef;
}

header.site nav a:hover,
header.site nav a.active,
header.site .phone-link:hover {
  color: #fff;
}

.cookie-banner a {
  color: var(--ink);
}

.on-light .cta-box {
  background-color: var(--light-card);
}

.article-card .tag {
  color: var(--ink);
}

.on-light .article-card .tag {
  color: var(--accent);
}

.home-hero {
  padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 5vw, 72px);
  background: linear-gradient(155deg, #2c333d, #0a0a0a 74%);
}

.home-hero .hero-grid {
  gap: clamp(22px, 4vw, 48px);
}

.home-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: .96;
}

.home-hero h1 span {
  display: block;
}

.home-hero .hero-intro {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
}

.home-hero .hero-actions {
  gap: 8px;
  margin-top: 20px;
}

.home-hero .pavel-shortcut {
  margin: 8px 0 0;
}

.home-hero .hero-badges {
  gap: 5px 16px;
  margin: 10px 0 0;
}

.home-hero .badge {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.home-hero .badge .icon {
  color: currentColor;
}

.home-hero .hero-visual {
  border-radius: 6px;
  box-shadow: none;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero .hero-visual img { animation: home-interior-settle .75s ease-out both; }
  @keyframes home-interior-settle {
    from { transform: scale(1.025); }
    to { transform: scale(1); }
  }
}

.home-hero .stat-strip {
  margin-top: 24px;
}

.home-hero .stat-strip > div > div {
  display: block;
  padding: 0;
}

.home-hero .stat-strip .icon {
  flex: none;
  color: var(--muted);
}

#leadForm, #portfolio {
  scroll-margin-top: 7rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.blog-article {
  padding-top: clamp(24px, 5vw, 56px);
}

.blog-article h1 {
  margin: 12px 0;
}

.blog-article .article-intro {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
}

.article-photo {
  margin: 24px 0 32px;
}

.article-photo .article-hero {
  margin: 0 0 10px;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
}

.article-photo figcaption {
  color: var(--muted);
  font-size: 13px;
}

.case-study-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.case-study-link .cap small {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.case-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.case-details figure {
  margin: 0;
}

.case-details img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.case-details figcaption {
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 550px) {
  .case-details { grid-template-columns: 1fr; }
}

.article-demo {
  display: grid;
  grid-template-columns: minmax(0, 235px) 1fr;
  align-items: center;
  gap: 20px;
  margin: 28px 0;
  padding: clamp(14px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--surface);
}

.article-demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  background-color: var(--bg);
}

.article-demo figcaption p {
  margin: 8px 0 0;
  color: var(--muted);
}

.article-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.article-next .btn {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.article-next a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.mobile-contact-dock {
  display: none;
}

.float-stack.desktop-contact-dock {
  position: fixed;
  right: auto;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 60;
}

.desktop-contact-dock .float-btn,
.mobile-contact-dock .float-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.desktop-contact-dock .icon,
.mobile-contact-dock .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.legal-page :is(main, footer) a { color: #f7c7cd; text-decoration: underline; }
.legal-page .float-btn-tg { background: #229ed9; color: #fff; }
.legal-page .float-btn-wa { background: #25d366; color: #fff; }
.legal-page .float-btn-max { background: #7c67fe; color: #fff; }
.legal-page .float-btn-call { background: var(--accent); color: #fff; }

.contact-dock-request {
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 44px;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
  background: #970a18;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.contact-dock-request:hover { background: #76111c; }
:is(.desktop-contact-dock, .mobile-contact-dock) :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lead-form .lead-consent { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
:is(.on-light, .on-white) .lead-form .lead-consent { color: var(--light-muted); }
.lead-form .lead-consent a { color: inherit; }

.shared-contact-channels {
  border-top: 1px solid #d5ccc1;
  background: #f3efe9;
  color: #242323;
}

.shared-contact-inner {
  width: min(calc(100% - 32px), 1128px);
  margin-inline: auto;
  padding-block: clamp(24px, 4vw, 42px);
}

.shared-contact-inner h2 {
  margin: 0 0 14px;
  color: inherit;
}

.shared-contact-direct, .shared-contact-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 14px;
}

.shared-contact-groups { margin-top: 10px; }

.shared-contact-direct > a, .shared-contact-direct summary,
.shared-contact-groups > a, .shared-max-personal > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  color: #75121d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.shared-contact-direct > a, .shared-contact-direct summary {
  border: 1px solid #a68b8d;
  background: #fffaf7;
}

.shared-contact-direct summary { cursor: pointer; }
.shared-contact-direct summary::after { content: "+"; margin-left: 8px; }
.shared-max-personal[open] summary::after { content: "−"; }
.shared-max-personal p { max-width: 28ch; margin: 8px 0 0; color: #332c2c; font-size: 14px; }
.shared-contact-channels a:hover { color: #550b15; }
.shared-contact-channels :focus-visible { outline: 2px solid #75121d; outline-offset: 3px; }

.btn,
.contact-dock-request,
.mobile-contact-dock > summary,
.shared-contact-direct > a,
.shared-contact-direct > details > summary {
  --rim: rgb(255 255 255 / 13%);
  --base-edge: #141a22;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 8%), transparent 58%, rgb(10 13 19 / 12%));
  box-shadow: inset 0 1px 0 var(--rim), 0 3px 0 var(--base-edge), 0 7px 12px rgb(3 10 16 / 19%);
}

.btn-primary,
.contact-dock-request {
  --base-edge: #590711;
  --rim: rgb(255 222 227 / 26%);
  background: linear-gradient(165deg, #ab1c2b, #960917 54%, #7a0b16);
  border: 1px solid #ad3440;
  color: #fff;
}

.btn-outline {
  --base-edge: #101419;
  color: #fff;
  background: linear-gradient(156deg, #36424d, #202a35);
  border-color: #687986;
}

.on-light .btn-outline,
.shared-contact-direct > a,
.shared-contact-direct > details > summary {
  --base-edge: #c5b7b8;
  --rim: #fff;
  color: #5e101a;
  background: linear-gradient(166deg, #fff, #f8f3f2);
}

.btn-primary:active,
.btn-outline:active,
.contact-dock-request:active,
.mobile-contact-dock > summary:active,
.shared-contact-direct > a:active,
.shared-contact-direct > details > summary:active {
  box-shadow: inset 0 2px 6px rgb(10 14 19 / 27%), 0 1px 0 var(--base-edge);
}

.btn:focus-visible,
.ts-jump:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #213344;
}

.on-light .btn:focus-visible {
  outline-color: #243f54;
  box-shadow: 0 0 0 3px #fff;
}

.desktop-contact-dock .float-btn,
.mobile-contact-dock .float-btn {
  background-image: linear-gradient(156deg, rgb(255 255 255 / 19%), transparent 64%, rgb(10 20 24 / 12%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), inset 0 -2px 0 rgb(3 12 25 / 22%), 0 5px 11px rgb(0 0 0 / 23%);
}

.article-body :is(p, li) a,
.case-study-link .cap small,
.pavel-shortcut a {
  text-underline-offset: .26em;
  text-decoration-thickness: .075em;
}

.case-study-link .cap {
  padding-top: 40px;
  background: linear-gradient(180deg, transparent, rgb(11 16 22 / 84%) 47%, #14181d 100%);
}

.eva-contact-hint {
  position: fixed;
  z-index: 51;
  right: max(93px, calc(env(safe-area-inset-right) + 93px));
  bottom: max(19px, calc(env(safe-area-inset-bottom) + 11px));
  box-sizing: border-box;
  width: max-content;
  max-width: min(250px, calc(100vw - 130px));
  min-height: 53px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 5px 39px 6px 12px;
  border: 1px solid #57616a;
  border-radius: 12px;
  color: #e3e7e9;
  background: linear-gradient(156deg, #303f4b, #1d2730);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 13%), 0 3px 0 #111c25, 0 7px 19px rgb(3 10 16 / 26%);
  font-size: 12px;
  line-height: 1.2;
}

.eva-contact-hint[data-eva-open],
.eva-contact-hint[data-notice-in-view],
.eva-contact-hint[hidden],
.eva-contact-hint > button[hidden] { display: none; }
.eva-contact-hint > a {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 44px;
  color: inherit;
}
.eva-contact-hint strong {
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .21em;
}
.eva-contact-hint > a:focus-visible,
.eva-contact-hint > button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.eva-contact-hint > button {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dce5eb;
  font: normal 22px/1 system-ui, sans-serif;
  cursor: pointer;
}
body:has(
  .mobile-contact-dock[open], #mobileNav.open, #leadForm:focus-within, #priceForm:focus-within,
  #pavel:is(:target, :focus-within), #cookie-banner:focus-within
) .eva-contact-hint { display: none; }

@media (max-width: 600px) {
  .eva-contact-hint {
    right: max(78px, calc(env(safe-area-inset-right) + 78px));
    max-width: calc(100vw - 164px);
    padding-left: 9px;
    padding-right: 40px;
    font-size: 11px;
  }
  .eva-contact-hint strong { font-size: 13px; }
  .eva-contact-hint > button { width: 38px; }
}

.eva-contact-hint[data-eva-side] {
  --hint-width: min(215px, calc(100% - 24px));
  left: clamp(12px, var(--eva-left), calc(100% - var(--hint-width) - 12px));
  right: auto;
  width: var(--hint-width);
  max-width: none;
}
.eva-contact-hint[data-eva-side="above"] { bottom: calc(var(--eva-edge) + 8px); }
.eva-contact-hint[data-eva-side="below"] { top: calc(var(--eva-edge) + 8px); bottom: auto; }
@media (max-width: 600px) {
  .eva-contact-hint[data-eva-side] { --hint-width: min(180px, calc(100% - 24px)); }
}

@media (max-height: 420px) {
  .eva-contact-hint { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  .contact-dock-request:hover {
    background: linear-gradient(165deg, #bb2838, #970a18 60%, #780b13);
    color: #fff;
  }
  .btn-outline:hover,
  .ts-jump:hover { border-color: #a9bdcc; }
  .article-body :is(p, li) a:hover,
  .case-study-link:hover .cap small,
  .pavel-shortcut a:hover { text-decoration-thickness: .15em; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .contact-dock-request,
  .mobile-contact-dock > summary,
  .shared-contact-direct > a,
  .shared-contact-direct > details > summary {
    transition: translate .16s ease, box-shadow .16s ease, border-color .16s ease;
  }
  .btn:active,
  .contact-dock-request:active,
  .mobile-contact-dock > summary:active,
  .shared-contact-direct > a:active,
  .shared-contact-direct > details > summary:active { translate: 0 2px; }
  .case-study-link .art,
  .article-card .art-cover img { transition: transform .42s cubic-bezier(.2, .65, .25, 1); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .case-study-link:hover .art,
  .article-card:hover .art-cover img { transform: scale(1.035); }
}

@media (min-width: 921px) {
  .home-hero .hero-grid { grid-template-columns: .94fr 1.06fr; }
  .home-hero .hero-visual { aspect-ratio: 5 / 4; }
}

@media (min-width: 601px) and (max-width: 920px) {
  .home-hero .hero-visual { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .float-stack.desktop-contact-dock { display: none; }
  .mobile-contact-dock {
    display: block;
    position: fixed;
    z-index: 60;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
  }
  .mobile-contact-dock summary {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
  }
  .mobile-contact-dock .float-stack {
    display: grid;
    grid-template-columns: repeat(4, 44px);
    position: absolute;
    right: auto;
    bottom: calc(100% + 8px);
    left: 0;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: var(--surface);
  }
  .mobile-contact-dock .float-btn { width: 44px; height: 44px; }
  .mobile-contact-dock .contact-dock-request { grid-column: 1 / -1; }
  .mobile-contact-dock[data-opposite-corner] { left: auto; right: 14px; }
  .mobile-contact-dock[data-opposite-corner] .float-stack { left: auto; right: 0; }
  .home-hero { padding-top: 24px; }
  .home-hero .hero-grid { gap: 12px; }
  .home-hero .hero-content { display: contents; }
  .home-hero h1 { order: 1; margin: 0; }
  .home-hero .hero-intro { order: 2; }
  .home-hero .hero-visual { order: 3; aspect-ratio: 5 / 4; }
  .home-hero .hero-actions { order: 4; margin-top: 0; }
  .home-hero .pavel-shortcut { order: 5; margin-top: 0; }
  .home-hero .hero-badges { order: 6; margin-top: 0; }
  .home-hero .hero-actions .btn {
    padding: 10px;
    min-height: 44px;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
  }
  .article-demo { grid-template-columns: 1fr; }
  .article-demo video { max-width: 235px; }
}

@media (max-width: 360px) {
  main .btn {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  header.site a.logo { width: 104px; }
  .logo .brandbook-logo { width: 101px; max-height: 29px; }
}
