:root {
  --ink: #163f46;
  --muted: #61757a;
  --line: #dbe7e5;
  --paper: #ffffff;
  --soft: #f4faf8;
  --teal: #0f8f79;
  --teal-dark: #0d6458;
  --coral: #cf6034;
  --amber: #bd8500;
  --sky: #3d7ea6;
  --shadow: 0 18px 60px rgba(19, 58, 64, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fbfdfc;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #ffffff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.topbar.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(20, 64, 70, 0.1);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(7, 31, 36, 0.16);
}

.logo-chip img {
  display: block;
  width: 62px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  color: currentColor;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.topbar.scrolled .logo-chip {
  border-color: rgba(18, 61, 68, 0.12);
  background: #ffffff;
}

.nav {
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 78px) 80px;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 39, 44, 0.88) 0%, rgba(9, 39, 44, 0.72) 42%, rgba(9, 39, 44, 0.2) 100%),
    url("assets/crm-dashboard.png") center / cover no-repeat;
  transform: scale(1.02);
}

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

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

.hero .eyebrow {
  color: #ffc7ad;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.hero-stats,
.footer-grid {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

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

.hero-stats {
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  font-size: 24px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.section {
  padding: clamp(70px, 9vw, 120px) 0;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.intro-band {
  background: #ffffff;
}

.intro-grid,
.calculator-grid,
.demo-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
}

.feature-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tab {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tab.active {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.feature-panel {
  min-height: 350px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #eef9f5 58%, #eef9f5 100%);
  box-shadow: var(--shadow);
}

.feature-panel.hidden {
  display: none;
}

.feature-panel p,
.feature-panel li {
  color: var(--muted);
  font-size: 18px;
}

.feature-panel ul {
  padding-left: 22px;
  margin-bottom: 0;
}

.workflow-band {
  background: #f1f7f5;
}

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

.step,
.benefit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.step {
  padding: 28px;
}

.step span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--coral);
  font-size: 15px;
  font-weight: 900;
}

.step p,
.benefit-card p,
.calculator-grid p,
.demo-grid p,
.check-list p {
  color: var(--muted);
}

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

.benefit-card {
  min-height: 190px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
  border-color: rgba(15, 143, 121, 0.5);
  transform: translateY(-4px);
}

.calculator-band {
  background: linear-gradient(135deg, #123d44, #0f6458);
  color: #ffffff;
}

.calculator-band .eyebrow {
  color: #ffd294;
}

.calculator-grid p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.calculator {
  display: grid;
  gap: 22px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.calculator label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

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

input[type="range"] {
  min-height: 26px;
  padding: 0;
  accent-color: var(--coral);
}

.calc-result {
  display: block;
  padding: 20px;
  border-radius: 8px;
  color: #143f46;
  background: #fff2d0;
  font-size: 22px;
  font-weight: 900;
}

.security-band {
  background: #ffffff;
}

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

.check-list p {
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f5faf8;
}

.demo {
  background: #f8fbfd;
}

.contact-card {
  display: grid;
  gap: 16px;
}

.contact-link {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-4px);
}

.contact-link.whatsapp:hover {
  border-color: #1fae74;
}

.contact-link.telegram:hover {
  border-color: #3d7ea6;
}

.contact-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-link strong {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.contact-link span:last-child {
  color: var(--muted);
}

.footer {
  padding: 30px 0;
  color: #ffffff;
  background: #123d44;
}

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

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .nav {
    position: fixed;
    inset: 74px 18px auto;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: grid;
  }

  .menu-btn {
    display: block;
  }

  .intro-grid,
  .calculator-grid,
  .demo-grid,
  .split,
  .feature-layout {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 90vh;
    padding-top: 110px;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-end;
    min-height: 92vh;
    padding-bottom: 50px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(9, 39, 44, 0.62) 0%, rgba(9, 39, 44, 0.94) 67%),
      url("assets/crm-dashboard.png") center / cover no-repeat;
  }

  .hero-stats div,
  .btn {
    width: 100%;
  }

  .timeline,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

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

  .tab {
    font-size: 14px;
  }

  .footer-grid {
    display: grid;
  }
}
