:root {
  --paper: #f4f6f9;
  --card: #ffffff;
  --ink: #1a2330;
  --muted: #5c6778;
  --rule: #e4e9f0;
  --blue: #2b6fd6;
  --blue-deep: #1b4fb0;
  --blue-soft: #eaf1fc;
  --font: "Manrope", "Segoe UI", sans-serif;
  --r: 24px;
  --shadow: 0 18px 50px rgba(28, 45, 78, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 249, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(43, 111, 214, 0.16);
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  font: 700 0.92rem/1 var(--font);
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(43, 111, 214, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-deep);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule) inset;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--blue-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0 20px;
}

.kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  max-width: 14ch;
}

.lead,
.section-lead {
  max-width: 44ch;
  margin: 16px 0 0;
  color: var(--muted);
}

.hero .lead {
  margin-bottom: 26px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-offer {
  margin: 18px 0 0;
  padding: 14px 16px;
  max-width: 44ch;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 1.05rem;
}

.hero-offer strong {
  font-weight: 800;
}

.shot-hero {
  left: auto;
  right: 22px;
  bottom: -24px;
  width: min(248px, 48%);
  padding: 0;
  background: #1a2330;
  border: 8px solid #1a2330;
  border-radius: 28px;
  overflow: hidden;
}

.shot-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-stage {
  height: 520px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 20%, #fff, transparent 46%),
    linear-gradient(180deg, #e8eef8, #f7f8fb);
  overflow: hidden;
}

.hero-stage img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: center 12%;
}

.protocol {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 14px 16px 6px;
}

.protocol-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.row {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
}

.role {
  color: var(--blue-deep);
  font-weight: 700;
}

.row p {
  margin: 0;
}

.row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: 72px 0 8px;
}

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why li {
  padding: 24px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}

.why h3 {
  margin: 0 0 8px;
}

.why p {
  margin: 0;
  color: var(--muted);
}

#connect {
  padding-bottom: 48px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 20ch;
}

.panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 12px 12px 12px 8px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.panel img {
  width: 100%;
  border-radius: 24px;
  background: var(--blue-soft);
}

.issues,
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.issues li,
.steps li {
  padding: 16px 8px;
  border-top: 1px solid var(--rule);
}

.issues li:last-child,
.steps li:last-child {
  border-bottom: 1px solid var(--rule);
}

.idx {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.issues h3,
.steps h3,
.specs h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.issues p,
.steps p,
.specs p {
  margin: 0;
  color: var(--muted);
}

.figure {
  border-radius: 32px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.figure img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center 62%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps li {
  padding: 22px;
  border: 0;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.specs article {
  padding: 22px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}

.specs.with-art {
  grid-template-columns: 1.15fr 0.85fr;
}

.art-card {
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf1fc, #fff);
  box-shadow: var(--shadow);
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 28px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.connect-copy .section-lead {
  max-width: none;
}

.facts {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.facts li:last-child {
  border-bottom: 1px solid var(--rule);
}

.facts b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.pitch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pitch li {
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.pitch b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.file {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  background: var(--blue-soft);
  text-align: left;
}

.file span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}

.file b,
.file small {
  display: block;
}

.file small {
  margin-top: 2px;
}

.voice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.voice i {
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--blue);
  animation: none;
}

.voice i:nth-child(2) {
  height: 20px;
}

.voice i:nth-child(3) {
  height: 10px;
}

.shots .phone {
  height: 500px;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}

.shots .phone-bar,
.shots .tg-head,
.shots .phone figcaption {
  flex-shrink: 0;
}

.shots .tg-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
}

.shots .tg-chat .bubble.me {
  flex: 0 1 auto;
  max-height: 48%;
  overflow: hidden;
}

.shots .tg-chat .bubble.bot {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.shots .bubble {
  font-size: 0.78rem;
}

.shots .bubble.photo img {
  height: 86px;
  max-height: 86px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.shots .paper {
  max-height: 108px;
  overflow: hidden;
}

.shots .paper-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shots .phone figcaption {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 861px) {
  .shots .carousel-frame {
    grid-template-columns: 1fr;
  }

  .shots .carousel-btn,
  .shots .dots {
    display: none;
  }

  .shots .shot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    transform: none !important;
  }

  .shots .slide {
    flex: none;
    display: flex;
    height: 100%;
  }

  .shots .phone {
    max-width: none;
    margin: 0;
  }
}

.carousel-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.carousel-frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.35s ease;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--blue);
  color: #fff;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d3e2;
  cursor: pointer;
}

.dots button[aria-current="true"] {
  background: var(--blue);
  width: 18px;
  border-radius: 99px;
}

.phone {
  width: min(280px, 100%);
  margin: 0;
  border: 10px solid #1a2330;
  border-radius: 32px;
  overflow: hidden;
  background: #eef1f4;
  box-shadow: 0 8px 22px rgba(26, 35, 48, 0.1);
  display: flex;
  flex-direction: column;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 4px;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.tg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.tg-head img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.tg-head strong,
.tg-head small {
  display: block;
}

.tg-head small {
  color: var(--muted);
  font-size: 0.72rem;
}

.tg-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
  padding: 12px;
  overflow: hidden;
}

.bubble {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.bubble small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.bubble.me {
  align-self: flex-end;
  background: #d9f4d3;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
}

.bubble.photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #ddd;
}

.bubble.photo img.sq {
  aspect-ratio: 1;
}

.paper {
  margin-top: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  text-align: left;
  color: #1a2330;
}

.paper-top {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.paper.pdf .paper-top {
  background: #b42318;
  color: #fff;
}

.paper.doc .paper-top {
  background: #2b579a;
  color: #fff;
}

.paper.xls .paper-top {
  background: #217346;
  color: #fff;
}

.paper.gsheet .paper-top {
  background: #188038;
  color: #fff;
}

.paper-body {
  padding: 8px;
  font-size: 0.68rem;
  line-height: 1.35;
}

.paper-body b {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.paper-body p {
  margin: 0 0 4px;
  color: #3d4654;
}

.grid-doc {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.62rem;
}

.grid-doc th,
.grid-doc td {
  border: 1px solid #d5dce6;
  padding: 3px 4px;
}

.grid-doc th {
  background: #eef3ea;
  font-weight: 700;
}

.grid-doc td.num {
  text-align: right;
}

.tg-actions {
  display: flex;
  gap: 6px;
}

.tg-actions span {
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.phone figcaption {
  padding: 8px 12px 12px;
  background: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

footer {
  padding: 8px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a.is-active {
  color: var(--blue-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 12px;
  font: 700 0.88rem var(--font);
  cursor: pointer;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: middle;
}

.specs.core {
  grid-template-columns: 1fr 1fr;
}

.specs.core.three {
  grid-template-columns: repeat(3, 1fr);
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roles li {
  padding: 24px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}

.roles h3 {
  margin: 0 0 8px;
}

.roles p {
  margin: 0;
  color: var(--muted);
}

.extra {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
}

.example-grid .phone {
  width: 100%;
  max-width: 300px;
}

.specs.core article {
  padding: 28px 24px;
}

.specs.core h3 {
  font-size: 1.35rem;
}

.specs.optional {
  margin-top: 16px;
}

.spec-wide {
  margin: 16px 0 0;
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}

.spec-wide p,
.optional p {
  margin: 6px 0 0;
  color: var(--muted);
}

.case,
.price-card,
.dozor-band,
.lead {
  padding: 28px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price-num {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price-num-sub {
  font-size: 1.4rem;
  color: var(--blue-deep);
}

.price-highlight {
  background: var(--blue-soft);
  box-shadow: none;
}

.price-card h3 {
  margin: 12px 0 8px;
}

.price-card p {
  margin: 0;
  color: var(--muted);
}

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 20px;
}

.cases .case {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.cases .case:only-child {
  grid-column: 1 / -1;
}

.case-media {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 10px;
  align-items: start;
}

.case-media figure {
  margin: 0;
}

.case-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  background: #111;
}

.case-media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.case-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.case-note a,
.foot-legal a {
  color: var(--blue-deep);
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 22px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}

.timeline span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline h3 {
  margin: 8px 0 8px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.faq article {
  margin-bottom: 8px;
  padding: 16px 20px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}

.faq h3 {
  font-size: 1.05rem;
}

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

.dozor-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.lead {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.lead label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.lead input {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font: 500 1rem var(--font);
}

.phone-bar .bars {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-bar .sig,
.phone-bar .wifi,
.phone-bar .bat {
  display: block;
  background: #1a2330;
}

.phone-bar .sig {
  width: 11px;
  height: 8px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.phone-bar .wifi {
  width: 10px;
  height: 8px;
  border: 2px solid #1a2330;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
}

.phone-bar .bat {
  width: 16px;
  height: 8px;
  border-radius: 2px;
  box-shadow: inset 10px 0 0 #1a2330;
  background: transparent;
  border: 1.5px solid #1a2330;
  position: relative;
}

.foot-legal {
  max-width: 42ch;
  margin: 8px 0 0;
  font-size: 0.82rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
  }

  header {
    border-bottom: 1px solid var(--rule);
  }

  .hero,
  .panel,
  .steps,
  .specs,
  .specs.with-art,
  .specs.core,
  .connect,
  .pitch,
  .timeline,
  .dozor-band,
  .specs.core.three,
  .example-grid,
  .roles {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-stage {
    min-height: 0;
    height: auto;
  }

  .hero-stage {
    height: 420px;
  }

  .protocol {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: -40px;
  }

  h1 {
    max-width: none;
  }

  .case-media img {
    height: auto;
    max-height: 420px;
  }

  .connect {
    padding: 20px;
  }
}

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

  .carousel-track {
    transition: none;
  }
}
