:root {
  color-scheme: light;
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-blue: #eaf4ff;
  --text: #102033;
  --muted: #526477;
  --line: #d8e5f2;
  --blue: #007ee5;
  --blue-dark: #0065b8;
  --green: #18a77a;
  --yellow: #f4b740;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.22;
}

.skip-link {
  background: var(--blue-dark);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: absolute;
  top: -44px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.container {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px;
}

.narrow {
  max-width: 860px;
}

.site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}

.top-wrap {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 76px;
  padding: 0 24px;
}

.logo {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  flex: 1 1 auto;
}

.nav-inner {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.nav-inner a {
  border-radius: 8px;
  color: #24394f;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: var(--surface-blue);
  color: var(--blue-dark);
}

.header-cta,
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-align: center;
}

.header-cta,
.button.primary {
  background: var(--blue);
  color: #fff;
}

.header-cta:hover,
.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: #eef6ff;
  border-color: #bcd7f5;
  color: var(--blue-dark);
}

.button.ghost {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.menu-toggle,
.mobile-nav-head,
.nav-backdrop {
  display: none;
}

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

.hero-home {
  background: #123b66 url("/static/img/redu-crm-hero.png") center right / cover no-repeat;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(6, 35, 64, .92) 0%, rgba(6, 35, 64, .74) 48%, rgba(6, 35, 64, .22) 100%);
  inset: 0;
  position: absolute;
}

.hero-content {
  color: #fff;
  padding-bottom: 96px;
  padding-top: 126px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 18px;
  max-width: 680px;
}

.hero-copy {
  color: #e8f3ff;
  font-size: 21px;
  max-width: 680px;
}

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

.eyebrow {
  color: var(--green);
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #88f0cd;
}

.section {
  padding: 76px 0;
}

.section-heading {
  display: grid;
  gap: 26px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  max-width: 860px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
}

.problem-grid,
.module-grid,
.pricing-grid,
.news-grid,
.actor-grid {
  display: grid;
  gap: 16px;
}

.problem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.problem-grid article,
.module-grid article,
.price-card,
.news-grid article,
.actor-grid article,
.form-card,
.info-panel,
.feature-list article,
.workflow article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 32, 51, .07);
}

.problem-grid article,
.module-grid article,
.news-grid article,
.actor-grid article {
  padding: 22px;
}

.problem-grid h3,
.module-grid h3,
.news-grid h2,
.actor-grid h3 {
  margin-bottom: 10px;
}

.problem-grid p,
.module-grid p,
.news-grid p,
.actor-grid p,
.feature-list p,
.workflow p,
.price-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.split {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
}

.system-section {
  background: #fff;
}

.product-shot {
  border: 1px solid #c9ddf1;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 86, 165, .18);
  width: 100%;
}

.metric-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.metric-row div {
  background: var(--surface-blue);
  border: 1px solid #c7dff7;
  border-radius: 8px;
  padding: 18px;
}

.metric-row strong {
  color: var(--blue-dark);
  display: block;
  font-size: 32px;
  line-height: 1;
}

.metric-row span {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 8px;
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-section {
  background: #123b66;
  color: #fff;
}

.workflow-section h2,
.workflow-section .eyebrow {
  color: #fff;
}

.workflow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow article {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none;
  min-height: 210px;
  padding: 22px;
}

.workflow span {
  color: #95f0d2;
  font-size: 28px;
  font-weight: 900;
}

.workflow p {
  color: #d8eaff;
}

.contact-band {
  background: #eaf4ff;
}

.contact-split,
.contact-layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 430px;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.form-card label {
  color: #244057;
  display: grid;
  font-weight: 800;
  gap: 7px;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid #bcd0e3;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

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

select {
  appearance: none;
}

.hp {
  display: none;
}

.form-error,
.flash {
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 14px;
}

.form-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.flash {
  background: #e8fff6;
  border: 1px solid #9de8cd;
  color: #0f7c5d;
  margin: 18px 0 0;
}

.page-hero {
  background: #123b66;
  color: #fff;
  padding: 76px 0;
}

.page-hero p {
  color: #dcecff;
  font-size: 20px;
}

.breadcrumbs ol {
  color: #c7dcf2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 18px;
  margin-top: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
}

.breadcrumbs a {
  color: #fff;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 82px minmax(0, 1fr);
  padding: 24px;
}

.feature-list span {
  align-items: center;
  background: var(--surface-blue);
  border-radius: 8px;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.tinted {
  background: #eaf4ff;
}

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

.pricing-grid {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 20px 56px rgba(15, 115, 216, .18);
}

.price {
  color: var(--blue-dark);
  font-size: 32px;
  font-weight: 900;
}

.badge {
  align-self: flex-start;
  background: #e8fff6;
  border: 1px solid #9de8cd;
  border-radius: 999px;
  color: #0f7c5d;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 10px;
}

.price-card ul,
.info-panel ul {
  color: var(--muted);
  margin: 18px 0 24px;
  padding-left: 20px;
}

.price-card .button {
  margin-top: auto;
}

.pricing-note {
  background: #fff;
}

.pricing-note .split {
  grid-template-columns: minmax(0, 1fr) auto;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-date {
  color: var(--green);
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.center-block {
  max-width: 760px;
  text-align: center;
}

.info-panel {
  padding: 24px;
  position: sticky;
  top: 100px;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.article-list p,
.article-list time {
  color: var(--muted);
}

.post-body,
.page-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.footer {
  background: #0b2a4b;
  color: #dbeaff;
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr) minmax(220px, .8fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px;
}

.footer h2 {
  color: #fff;
  font-size: 18px;
}

.footer a {
  color: #fff;
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer p {
  color: #c7dcf2;
}

.messenger-float,
.to-top {
  align-items: center;
  border: 0;
  border-radius: 999px;
  bottom: 22px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  position: fixed;
  z-index: 20;
}

.messenger-float {
  background: var(--green);
  color: #fff;
  min-height: 48px;
  padding: 0 16px;
  right: 22px;
}

.to-top {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-dark);
  cursor: pointer;
  height: 44px;
  opacity: 0;
  right: 96px;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  width: 44px;
}

.to-top.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 30px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    background: #eef6ff;
    border: 1px solid #c7dff7;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    height: 42px;
    padding: 10px;
    width: 42px;
  }

  .menu-toggle span {
    background: var(--blue-dark);
    border-radius: 999px;
    display: block;
    height: 2px;
  }

  .main-nav {
    background: #fff;
    bottom: 0;
    box-shadow: -20px 0 60px rgba(16, 32, 51, .18);
    display: none;
    max-width: 360px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform .2s ease;
    width: min(88vw, 360px);
    z-index: 40;
  }

  .main-nav.open {
    display: block;
    transform: translateX(0);
  }

  .mobile-nav-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 18px;
  }

  .menu-close {
    background: #eef6ff;
    border: 1px solid #c7dff7;
    border-radius: 8px;
    color: var(--blue-dark);
    cursor: pointer;
    font-size: 24px;
    height: 38px;
    width: 38px;
  }

  .nav-inner {
    align-items: stretch;
    display: grid;
    gap: 4px;
    justify-content: stretch;
    padding: 16px;
  }

  .nav-inner a {
    padding: 13px 12px;
  }

  .nav-backdrop.open {
    background: rgba(16, 32, 51, .48);
    border: 0;
    display: block;
    inset: 0;
    position: fixed;
    z-index: 35;
  }

  .problem-grid,
  .module-grid,
  .workflow,
  .pricing-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .contact-split,
  .contact-layout,
  .footer-inner,
  .pricing-note .split {
    grid-template-columns: 1fr;
  }

  .info-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 27px;
  }

  .top-wrap {
    min-height: 68px;
    padding: 0 18px;
  }

  .logo img {
    height: 42px;
  }

  .container {
    padding: 0 18px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-home {
    background-position: center;
  }

  .hero-overlay {
    background: rgba(6, 35, 64, .92);
  }

  .hero-content {
    padding-bottom: 70px;
    padding-top: 86px;
  }

  .hero-copy,
  .page-hero p {
    font-size: 18px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading,
  .problem-grid,
  .module-grid,
  .workflow,
  .pricing-grid,
  .news-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .feature-list article {
    grid-template-columns: 1fr;
  }

  .messenger-float {
    display: none;
  }

  .to-top {
    bottom: 16px;
    right: 16px;
  }
}
