:root {
  --kasty-shell-ink: #161617;
  --kasty-shell-muted: #6e6e73;
  --kasty-shell-line: #d2d2d7;
  --kasty-shell-line-soft: #e8e8ed;
  --kasty-shell-surface: #f5f5f7;
  --kasty-shell-accent: #ffd400;
  --kasty-shell-content: 1440px;
  --kasty-shell-gutter: clamp(20px, 4vw, 56px);
}

body.site-shell-ready {
  overflow-x: clip;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.site-shell-ready button,
body.site-shell-ready input,
body.site-shell-ready textarea,
body.site-shell-ready select {
  font: inherit;
}

.kasty-site-shell,
.kasty-site-shell * {
  box-sizing: border-box;
}

.kasty-site-shell .lang-ru,
.kasty-site-shell .lang-en {
  display: none !important;
}

body[data-lang="ru"] .kasty-site-shell .lang-ru,
body[data-lang="en"] .kasty-site-shell .lang-en {
  display: inline !important;
}

body.site-shell-ready .topbar {
  position: sticky !important;
  inset: auto !important;
  top: 0 !important;
  z-index: 80 !important;
  width: 100% !important;
  min-height: 68px;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--kasty-shell-line-soft) !important;
  border-radius: 0 !important;
  background: rgb(255 255 255 / 92%) !important;
  box-shadow: none !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  pointer-events: auto !important;
}

body.site-shell-ready .topbar-inner {
  width: min(100%, var(--kasty-shell-content)) !important;
  min-height: 68px;
  margin: 0 auto !important;
  padding: 0 var(--kasty-shell-gutter) !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  gap: clamp(20px, 3vw, 38px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.site-nav-brand {
  width: 96px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-nav-brand img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.site-nav-links {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(20px, 2.4vw, 34px);
}

.site-nav-link {
  display: flex;
  height: 100%;
  align-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--kasty-shell-ink);
  padding: 2px 0 0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  border-bottom-color: var(--kasty-shell-accent);
  color: var(--kasty-shell-ink);
}

.site-nav-mobile-menu {
  display: none;
}

.site-nav-link.is-active {
  border-bottom-color: var(--kasty-shell-accent);
}

.site-nav-right {
  grid-column: 3;
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 2vw, 26px);
}

.site-nav-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav-lang button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--kasty-shell-muted);
  padding: 4px 0 2px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

body[data-lang="ru"] .site-nav-lang button[data-lang="ru"],
body[data-lang="en"] .site-nav-lang button[data-lang="en"] {
  border-bottom-color: var(--kasty-shell-accent);
  color: var(--kasty-shell-ink);
}

.kasty-site-footer {
  width: 100%;
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--kasty-shell-line-soft);
  background: var(--kasty-shell-surface);
  color: var(--kasty-shell-muted);
}

.kasty-footer-inner {
  width: min(100%, var(--kasty-shell-content));
  margin: 0 auto;
  padding: clamp(42px, 5vw, 66px) var(--kasty-shell-gutter) 24px;
}

.kasty-footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(520px, 2fr);
  gap: clamp(56px, 8vw, 120px);
}

.kasty-footer-brand {
  align-self: start;
}

.kasty-footer-brand a {
  width: 112px;
  display: inline-flex;
  line-height: 0;
}

.kasty-footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.kasty-footer-brand p {
  max-width: 330px;
  margin: 22px 0 0;
  color: #525257;
  font-size: 0.86rem;
  line-height: 1.55;
}

.kasty-footer-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.kasty-footer-section h2 {
  margin: 1px 0 15px;
  color: var(--kasty-shell-ink);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
}

.kasty-footer-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kasty-footer-link {
  color: var(--kasty-shell-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
}

.kasty-footer-link:hover,
.kasty-footer-link:focus-visible {
  color: var(--kasty-shell-ink);
  text-decoration: underline;
  text-decoration-color: var(--kasty-shell-accent);
  text-underline-offset: 3px;
}

.kasty-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 20px;
  border-top: 1px solid #dedee3;
}

.kasty-footer-meta small {
  font-size: 0.7rem;
  line-height: 1.5;
}

/* The landing page keeps its existing media and links, but uses one restrained product layout. */
html.site-shell-landing,
body.site-shell-landing {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: clip;
  overflow-y: visible;
  scroll-behavior: smooth;
}

body.site-shell-landing .story {
  width: 100%;
  height: auto;
  overflow: visible;
  scroll-snap-type: none;
  scroll-behavior: smooth;
}

body.site-shell-landing .dots {
  display: none;
}

body.site-shell-landing .section {
  min-height: 0;
  display: block;
  border-top: 1px solid var(--kasty-shell-line-soft);
  background: #fff;
  scroll-snap-align: none;
}

body.site-shell-landing #s1 {
  border-top: 0;
}

body.site-shell-landing .section-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 116px) var(--kasty-shell-gutter);
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(300px, 380px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(64px, 8vw, 118px);
}

body.site-shell-landing #s1 .section-inner {
  padding-top: clamp(58px, 7vw, 96px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

body.site-shell-landing .copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: 620px;
  padding: 0;
  gap: 18px;
}

body.site-shell-landing .visual {
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
}

body.site-shell-landing .story h1,
body.site-shell-landing .story h2 {
  margin: 0;
  color: var(--kasty-shell-ink);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

body.site-shell-landing .story h1 {
  max-width: 800px;
  font-size: clamp(2.55rem, 4.2vw, 3.6rem);
}

body.site-shell-landing .story h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

body.site-shell-landing .copy > p:not(.micro-note):not(.subcopy):not(.section-kicker) {
  max-width: 680px;
  color: var(--kasty-shell-muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

body.site-shell-landing .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 -2px;
  color: var(--kasty-shell-muted);
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.site-shell-landing .section-kicker::before {
  width: 24px;
  height: 2px;
  flex: 0 0 24px;
  background: var(--kasty-shell-accent);
  content: "";
}

body.site-shell-landing .subcopy {
  max-width: 660px;
  margin-top: -6px;
  color: var(--kasty-shell-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

body.site-shell-landing .points {
  display: grid;
  max-width: 540px;
  gap: 12px;
  margin-top: 6px;
}

body.site-shell-landing .point {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 0;
  border: 0;
}

body.site-shell-landing .point-dot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--kasty-shell-accent);
  color: var(--kasty-shell-ink);
  font-size: 0.65rem;
  font-weight: 760;
}

body.site-shell-landing .point-dot::before {
  content: "✓";
}

body.site-shell-landing .point-text {
  color: #424245;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.site-shell-landing .micro-note {
  margin-top: 0;
  color: var(--kasty-shell-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

body.site-shell-landing .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 10px;
  margin-top: 10px;
  border: 0;
}

body.site-shell-landing .hero-actions .action-stack {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 0;
}

body.site-shell-landing .hero-actions .hero-action-web {
  grid-column: auto;
}

body.site-shell-landing .hero-actions .btn,
body.site-shell-landing .hero-action-ios .btn,
body.site-shell-landing .hero-action-android .btn,
body.site-shell-landing .hero-action-web .btn {
  width: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kasty-shell-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--kasty-shell-ink);
  padding: 0 17px;
  text-align: center;
  white-space: normal;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

body.site-shell-landing .hero-action-ios .btn {
  border-color: var(--kasty-shell-accent);
  background: var(--kasty-shell-accent);
}

body.site-shell-landing .hero-actions .btn:hover,
body.site-shell-landing .hero-actions .btn:focus-visible {
  border-color: var(--kasty-shell-ink);
  color: var(--kasty-shell-ink);
  text-decoration: none;
}

body.site-shell-landing .action-note {
  color: var(--kasty-shell-muted);
  text-align: left;
  font-size: 0.7rem;
  line-height: 1.4;
}

body.site-shell-landing .support-inline {
  margin-top: 0;
}

body.site-shell-landing .support-inline a {
  color: var(--kasty-shell-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

body.site-shell-landing .support-inline a:hover,
body.site-shell-landing .support-inline a:focus-visible {
  color: var(--kasty-shell-ink);
  text-decoration: underline;
  text-decoration-color: var(--kasty-shell-accent);
  text-underline-offset: 3px;
}

body.site-shell-landing .support-inline-arrow {
  transition: none;
}

body.site-shell-landing .support-inline a:hover .support-inline-arrow {
  transform: none;
}

body.site-shell-landing .shot {
  width: min(380px, 100%);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
}

body.site-shell-landing .shot img {
  display: block;
  width: 100%;
  height: auto;
}

body.site-shell-landing .section-faq .section-inner {
  display: block;
  padding-top: clamp(64px, 7vw, 94px);
  padding-bottom: clamp(70px, 8vw, 108px);
}

body.site-shell-landing .faq-head {
  max-width: 760px;
}

body.site-shell-landing .faq-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(42px, 7vw, 96px);
  border-top: 1px solid var(--kasty-shell-line-soft);
}

body.site-shell-landing .faq-card {
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--kasty-shell-line-soft);
  border-radius: 0;
  background: transparent;
  padding: 20px 0 22px;
}

body.site-shell-landing .faq-card h3 {
  margin: 0 0 8px;
  color: var(--kasty-shell-ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

body.site-shell-landing .faq-card p {
  color: var(--kasty-shell-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

body.site-shell-landing .faq-card a {
  color: var(--kasty-shell-ink);
  text-decoration-color: var(--kasty-shell-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.site-shell-landing .section-faq .site-footer {
  display: none;
}

body.site-shell-landing .kasty-site-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  body.site-shell-ready .topbar,
  body.site-shell-ready .topbar-inner {
    min-height: 62px;
  }

  body.site-shell-ready .topbar-inner {
    gap: 18px !important;
  }

  .site-nav-brand {
    width: 88px;
  }

  .site-nav-links {
    gap: 18px;
  }

  .site-nav-link,
  .site-nav-mobile-link {
    font-size: 0.78rem;
  }

  .kasty-footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .kasty-footer-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .kasty-footer-section:last-child {
    grid-column: 1 / -1;
  }

  body.site-shell-landing .section-inner,
  body.site-shell-landing #s1 .section-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  body.site-shell-landing .copy,
  body.site-shell-landing .visual {
    grid-column: 1;
  }

  body.site-shell-landing .copy {
    grid-row: 1;
  }

  body.site-shell-landing .visual {
    grid-row: 2;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  :root {
    --kasty-shell-gutter: 18px;
  }

  body.site-shell-ready .topbar-inner {
    gap: 12px !important;
  }

  .site-nav-brand {
    width: 78px;
  }

  .site-nav-links {
    display: none;
  }

  .site-nav-right {
    gap: 16px;
  }

  .site-nav-lang {
    gap: 7px;
  }

  .site-nav-lang button {
    font-size: 0.65rem;
  }

  .site-nav-mobile-menu {
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .site-nav-mobile-menu summary {
    width: 28px;
    height: 42px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 0;
    list-style: none;
    cursor: pointer;
  }

  .site-nav-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .site-nav-mobile-menu summary span {
    width: 19px;
    height: 1.5px;
    display: block;
    margin-left: auto;
    background: var(--kasty-shell-ink);
  }

  .site-nav-mobile-panel {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    z-index: 79;
    display: grid;
    padding: 4px var(--kasty-shell-gutter) 14px;
    border-bottom: 1px solid var(--kasty-shell-line-soft);
    background: rgb(255 255 255 / 98%);
  }

  .site-nav-mobile-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--kasty-shell-line-soft);
    color: var(--kasty-shell-ink);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .site-nav-mobile-link:last-child {
    border-bottom: 0;
  }

  .site-nav-mobile-link.is-active::before {
    width: 18px;
    height: 2px;
    margin-right: 10px;
    background: var(--kasty-shell-accent);
    content: "";
  }

  .kasty-site-footer {
    margin-top: 56px;
  }

  .kasty-footer-inner {
    padding-top: 38px;
  }

  .kasty-footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  body.site-shell-landing .section-inner,
  body.site-shell-landing #s1 .section-inner {
    padding-top: 58px;
    padding-bottom: 64px;
    gap: 36px;
  }

  body.site-shell-landing .story h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  body.site-shell-landing .story h2 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  body.site-shell-landing .copy {
    gap: 15px;
  }

  body.site-shell-landing .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.site-shell-landing .hero-actions .btn {
    width: 100%;
  }

  body.site-shell-landing .hero-actions .hero-action-web {
    grid-column: 1;
  }

  body.site-shell-landing .shot {
    width: min(300px, 84vw);
  }

  body.site-shell-landing .faq-grid {
    grid-template-columns: 1fr;
  }
}

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