:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6977;
  --line: #d9e0e8;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-strong: #eaf2f2;
  --teal: #007d75;
  --teal-dark: #005b56;
  --red: #d84444;
  --gold: #a06a00;
  --blue: #1d5f9f;
  --cyan: #22a9d6;
  --shadow: 0 18px 50px rgba(18, 30, 45, 0.12);
  --shadow-soft: 0 10px 30px rgba(18, 30, 45, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--surface);
  letter-spacing: 0;
}

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

p,
li,
dd {
  line-height: 1.58;
}

p,
h1,
h2,
h3 {
  text-wrap: pretty;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #fff;
  background: rgba(13, 24, 34, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand,
.nav,
.hero-actions,
.pricing-toolbar,
.footer-grid,
.header-actions,
.lang-switch {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
}

.nav a:hover,
.header-cta:hover {
  color: #fff;
}

.header-cta {
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.lang-switch {
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch a {
  min-width: 34px;
  padding: 7px 8px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.lang-switch a.active {
  color: var(--ink);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: 108px clamp(20px, 5vw, 74px) 34px;
  overflow: hidden;
  color: #fff;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("https://www.bitrix24.ru/images/content_ru/share/base-share.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
  filter: saturate(0.92) contrast(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 18, 28, 0.98) 0%, rgba(8, 18, 28, 0.9) 42%, rgba(8, 18, 28, 0.56) 72%, rgba(8, 18, 28, 0.32) 100%),
    linear-gradient(0deg, rgba(8, 18, 28, 0.78) 0%, rgba(8, 18, 28, 0.18) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #77e0d4;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 58px);
}

h2 {
  font-size: clamp(28px, 3.8vw, 48px);
}

h3 {
  font-size: 21px;
}

.hero-lead {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.4vw, 20px);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  width: min(650px, 100%);
  margin: 26px 0 0;
}

.hero-facts div {
  padding: 14px;
  border-left: 3px solid #77e0d4;
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts dt {
  font-size: 30px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.section {
  padding: clamp(58px, 8vw, 100px) 0;
  scroll-margin-top: 86px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-strip {
  padding: 26px 0;
  background: var(--surface-strong);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.section-head {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head.compact {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card,
.audience-list article,
.price-card,
.self-hosted-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card {
  min-height: 214px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.feature-code {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.feature-card p,
.audience-list p,
.price-card p,
.self-hosted-card p,
.self-hosted-note,
.faq-list p,
.form-note {
  color: var(--muted);
}

.band {
  background: var(--surface-soft);
}

.band.muted {
  background: #f2f4f1;
}

.implementation-layout,
.audience-layout,
.faq-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(34px, 6vw, 78px);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.steps strong,
.steps span {
  grid-column: 2;
}

.steps strong {
  grid-row: 1;
  font-size: 18px;
}

.steps span {
  grid-row: 2;
  color: var(--muted);
}

.pricing-toolbar {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.segment.active {
  color: #fff;
  background: var(--ink);
}

.pricing-note {
  margin-bottom: 18px;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 14px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 20px;
}

.price-card.highlight {
  border-color: rgba(0, 125, 117, 0.48);
  box-shadow: var(--shadow);
}

.price-meta {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.price {
  margin: 0 0 4px;
  font-size: clamp(24px, 2.2vw, 29px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.price small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: var(--muted);
  font-size: 14px;
}

.source-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal);
  font-weight: 700;
}

.plan-comparison {
  margin-top: clamp(42px, 6vw, 74px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 86px;
}

.plan-comparison h3 {
  font-size: clamp(25px, 3vw, 38px);
}

.comparison-scroll {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.comparison-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  color: var(--ink);
  font-weight: 800;
}

.comparison-table thead th {
  background: #eef3f7;
}

.comparison-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 190px;
  background: #fff;
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.self-hosted {
  margin-top: clamp(42px, 6vw, 74px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 86px;
}

.self-hosted h3 {
  font-size: clamp(25px, 3vw, 38px);
}

.self-hosted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.self-hosted-card {
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.self-hosted-card.accent {
  border-color: rgba(29, 95, 159, 0.42);
}

.self-hosted-card h4 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.self-hosted-price {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.self-hosted-note {
  margin: 18px 0 0;
  font-size: 14px;
}

.audience-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.audience-list article {
  padding: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin-bottom: 0;
}

.contact {
  color: #fff;
  background: #14202b;
}

.contact .eyebrow {
  color: #77e0d4;
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.integration-fieldset {
  margin: 0;
  padding: 20px 15px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.integration-fieldset legend {
  float: left;
  width: 100%;
  padding: 0;
  font-size: 17px;
  font-weight: 800;
}

.integration-grid {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
}

.lead-form .checkbox-option {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 400;
}

.lead-form .checkbox-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0 12px 0 0;
  padding: 0;
  accent-color: var(--teal);
}

.lead-form .btn {
  width: 100%;
  min-height: 44px;
  background: #17a673;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  min-height: 65px;
}

.lead-form .btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.form-status.success {
  color: #8cf0c4;
}

.form-status.error {
  color: #ffb4a8;
}

.footer {
  padding: 24px 0;
  color: var(--muted);
  background: #0f1720;
}

.footer-grid {
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .implementation-layout,
  .audience-layout,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-head.compact {
    margin-bottom: 28px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .lang-switch a {
    min-width: 32px;
  }

  .hero {
    min-height: auto;
    padding: 96px 20px 34px;
  }

  .hero-bg {
    opacity: 0.66;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 18, 28, 0.99) 0%, rgba(8, 18, 28, 0.95) 66%, rgba(8, 18, 28, 0.82) 100%),
      linear-gradient(0deg, rgba(8, 18, 28, 0.9) 0%, rgba(8, 18, 28, 0.48) 54%);
  }

  h1 {
    font-size: clamp(33px, 10vw, 42px);
  }

  h2 {
    font-size: clamp(27px, 9vw, 38px);
  }

  .hero-facts,
  .intro-grid,
  .feature-grid,
  .pricing-grid,
  .audience-list {
    grid-template-columns: 1fr;
  }

  .pricing-toolbar {
    align-items: stretch;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segment {
    flex: 1;
    white-space: nowrap;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .brand span:last-child {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .steps li::before {
    width: 38px;
    height: 38px;
  }
}
