html { scroll-behavior: smooth; }
body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; }

.pg {
  background: #ffffff;
  color: #101a33;
  font-family: "Onest", system-ui, sans-serif;
}
.pg a { color: #1f44c2; }
.pg a:hover { color: #101a33; }
.pg a.try,
.pg a.btn-fill { color: #ffffff; }
.pg a.try:hover,
.pg a.btn-fill:hover { color: #ffffff; background: #1f44c2; }
.pg a.btn-ghost,
.pg a.btn-ghost:hover,
.pg a.btn-light,
.pg a.btn-light:hover,
.pg a.login,
.pg a.login:hover,
.pg a.logo,
.pg a.logo:hover { color: #101a33; }
.pg .cta-box a { color: #1f44c2; }
.pg .cta-box a:hover { color: #101a33; background: #ffffff; }
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid #2a55e0;
  outline-offset: 3px;
  border-radius: 8px;
}

#top, #features, #how, #who, #price, #partners, #faq { scroll-margin-top: 96px; }

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
}
.head.scrolled { box-shadow: inset 0 -1px 0 #e2e6ee; }

.bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #101a33;
  position: relative;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.logo:hover { color: #101a33; }
.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #101a33;
  color: #ffffff;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.wordmark {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 15px;
}
.nav a {
  color: #3a4358;
  text-decoration: none;
}
.nav a:hover { color: #101a33; }
.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.login {
  font-size: 15px;
  font-weight: 600;
  color: #101a33;
  text-decoration: none;
  padding: 10px 6px;
}
.login:hover { color: #101a33; }
.try {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: #2a55e0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.try:hover { background: #1f44c2; color: #ffffff; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #d5dbe7;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.mobile-panel {
  background: #ffffff;
  border-top: 1px solid #e2e6ee;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel a {
  color: #101a33;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 10px;
}
.mobile-panel a:hover { color: #101a33; background: #f6f7fa; }

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: #3a4358;
  max-width: 520px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  height: 54px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-fill { background: #2a55e0; color: #ffffff; }
.btn-fill:hover { background: #1f44c2; color: #ffffff; }
.btn-ghost {
  padding: 0 24px;
  border: 1.5px solid #d5dbe7;
  color: #101a33;
}
.btn-ghost:hover { color: #101a33; }
.note { margin: 0; font-size: 14px; color: #5b6478; }

.hero-vis {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.chat {
  flex: 1 1 340px;
  min-width: 0;
  background: #eef1f6;
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dce1ea;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #101a33;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.chat-titles { display: flex; flex-direction: column; }
.chat-name { font-weight: 700; font-size: 15px; }
.chat-sub { font-size: 12px; color: #5b6478; }
.bubble {
  max-width: 86%;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  background: #ffffff;
  align-self: flex-start;
}
.bubble-client {
  align-self: flex-end;
  max-width: 82%;
  background: #ddf5e6;
  border-radius: 16px 16px 4px 16px;
}
.slots { align-self: flex-start; display: flex; gap: 6px; }
.slot {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.slot-on { background: #2a55e0; color: #ffffff; }
.slot-off { background: #ffffff; color: #1f44c2; }
.paid {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #1f7a4d;
  font-size: 14px;
  font-weight: 600;
  color: #1f7a4d;
}

.hero-log {
  flex: 0 1 190px;
  min-width: 0;
  margin: 0;
  padding: 32px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.log-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e6ee;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.log-k { font-size: 12px; color: #5b6478; }
.log-v { font-size: 14px; font-weight: 600; }

.bg { background: #f6f7fa; }
.sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px;
  box-sizing: border-box;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
}
.features-lead, .price-lead {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-lead { flex-basis: 380px; }
h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #3a4358;
}
.feature-grid {
  flex: 2 1 560px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 40px;
}
.feature {
  padding: 22px 0;
  border-top: 1px solid #dce1ea;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
h3 { margin: 0; font-size: 19px; font-weight: 700; }
.feature p, .step p, .tile p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #3a4358;
}

#how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
#how h2 { max-width: 720px; }
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.step {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.num {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: #2a55e0;
}
.step h3 { font-size: 20px; }
.step p { font-size: 16px; }

#who {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tile {
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile h3 { font-size: 20px; }
.tile p { line-height: 1.5; }
.tile-1 { background: #eef2fe; }
.tile-2 { background: #e7f6ee; }
.tile-3 { background: #f3eefb; }
.tile-4 { background: #fdf3e7; }
.tile-5 { background: #eef1f6; }
.tile-6 { background: #101a33; color: #ffffff; }
.tile-6 p { color: #c9d2e6; }

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.price-card {
  flex: 1 1 440px;
  min-width: 0;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e6ee;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 44px;
}
.per { font-size: 16px; color: #5b6478; }
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 2px; }
.price-card > a { width: 100%; }

.partners {
  background: #101a33;
  color: #ffffff;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
.partners-copy {
  flex: 2 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.partners p { color: #c9d2e6; }
.partners-cta {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-light {
  height: 54px;
  border-radius: 14px;
  background: #ffffff;
  color: #101a33;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-light:hover { color: #101a33; }
.partner-note { font-size: 14px; color: #9aa6c0; text-align: center; }

#faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
details {
  border-top: 1px solid #dce1ea;
  padding: 20px 0;
}
details:last-of-type { border-bottom: 1px solid #dce1ea; }
summary {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
details p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #3a4358;
}

.cta {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.cta-box {
  border-radius: 32px;
  background: #2a55e0;
  color: #ffffff;
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
}
.cta-box h2 {
  margin: 0;
  flex: 1 1 260px;
  font-size: 34px;
  line-height: 1.2;
}
.cta-box a {
  height: 56px;
  padding: 0 32px;
  border-radius: 14px;
  background: #ffffff;
  color: #1f44c2;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.cta-box a:hover { color: #101a33; }

footer { border-top: 1px solid #e2e6ee; }
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  font-size: 14px;
  color: #5b6478;
}
.brand {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand-name {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #101a33;
}
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav a { color: #3a4358; text-decoration: none; }
footer nav a:hover { color: #101a33; }

/* Место под будущий виджет поддержки: правый нижний угол свободен, кнопки героя и тарифа в потоке. */
@media (max-width: 767px) {
  .pg .bar,
  .pg > section:not(.bg),
  .pg > section.bg > div,
  .pg > footer > div,
  .pg > section.cta {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .pg .sec { padding-top: 56px !important; padding-bottom: 56px !important; }
  .pg .sec-b { padding-bottom: 56px !important; }
  .pg .hero { padding-top: 24px !important; padding-bottom: 56px !important; gap: 40px !important; }
  .pg .nav, .pg .login { display: none !important; }
  .pg .bar { flex-wrap: nowrap !important; gap: 12px !important; }
  .pg .wordmark { font-size: 14px !important; }
  .pg .price-card > a { height: auto !important; min-height: 54px; padding: 12px 16px !important; text-align: center; }
  .pg .menu-btn { display: inline-flex !important; }
  .pg .try { height: 40px !important; padding: 0 16px !important; font-size: 14px !important; }
  .pg h1 { font-size: 34px !important; }
  .pg h2 { font-size: 28px !important; }
  .pg .cta-box { padding: 32px 24px !important; border-radius: 24px !important; }
  .pg .cta-box h2 { font-size: 24px !important; }
  .pg .num { font-size: 44px !important; }
  .pg .price { font-size: 34px !important; }
  .pg .hero-btns > a { flex: 1 1 100%; justify-content: center; }
  .pg .hero-vis { flex-wrap: wrap !important; }
  .pg .hero-log {
    flex: 1 1 100% !important;
    padding-top: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }
  .pg .price-card { padding: 24px !important; }
  .pg .partners-cta { flex-basis: 100% !important; }
}
@media (max-width: 359px) {
  .pg .wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
