:root {
  --bg: #f5f8ff;
  --bg-soft: #eef3fb;
  --white: #ffffff;
  --graphite: #1c2433;
  --graphite-soft: #5e6a82;
  --deep-blue: #163d8f;
  --deep-blue-strong: #0f2e6d;
  --line: #d9e2f0;
  --shadow: 0 14px 36px rgba(21, 43, 92, 0.08);
  --shadow-hover: 0 18px 42px rgba(21, 43, 92, 0.12);
  --radius: 16px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  color: var(--graphite);
  background:
    radial-gradient(900px 500px at 105% -10%, rgba(22, 61, 143, 0.08), transparent 60%),
    radial-gradient(800px 420px at -5% -5%, rgba(15, 46, 109, 0.06), transparent 55%),
    var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(238, 243, 251, 0.7));
}

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

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e7efff;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

.lead {
  font-size: 18px;
  color: var(--graphite-soft);
  max-width: 62ch;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--deep-blue-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(217, 226, 240, 0.9);
  background: rgba(245, 248, 255, 0.88);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-header .logo {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  line-height: 1;
}

.logo-word {
  color: var(--graphite-strong);
  font-size: 26px;
}

.logo-mark {
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  flex: 0 0 auto;
}

.logo span {
  color: var(--deep-blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: var(--graphite-soft);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--graphite);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-strong));
  color: var(--white);
  box-shadow: 0 16px 30px rgba(18, 55, 130, 0.24);
}

.btn-secondary {
  background: var(--white);
  color: var(--graphite);
  border-color: var(--line);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 20px 36px rgba(18, 55, 130, 0.3);
}

.nav-cta {
  margin-left: 6px;
}

.hero {
  padding-top: 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy h1 {
  max-width: 12ch;
}

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

.hero-actions .btn {
  min-width: 210px;
}

.hero-note {
  margin-top: 14px;
  color: var(--graphite-soft);
  font-size: 14px;
}

.hero-metrics {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics article,
.card,
.panel,
.consultation-panel,
.lead-form,
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  padding: 16px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep-blue);
  font-size: 20px;
}

.hero-metrics span,
.card p,
.panel p,
.bullet-list,
.footer-contacts,
.site-footer p {
  color: var(--graphite-soft);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

@media (min-width: 861px) {
  .hero-panel {
    margin-top: 0;
    height: 100%;
  }

  .hero-panel .product-mockup,
  .hero-panel .mockup-window {
    height: 100%;
  }
}

.product-mockup {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, #eef4ff, #ffffff);
  border: 1px solid #d5e1f4;
  box-shadow: 0 26px 54px rgba(21, 43, 92, 0.12);
}

.product-mockup::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22, 61, 143, 0.13), transparent 70%);
  pointer-events: none;
}

.mockup-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #d7e2f3;
  border-radius: 20px;
  background: #f8fbff;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border-bottom: 1px solid #dce5f2;
  color: var(--graphite);
  font-size: 14px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c7d4ea;
}

.mockup-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 420px;
}

.mockup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #f0f5fd;
  border-right: 1px solid #dce5f2;
}

.sidebar-chip {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--graphite-soft);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-chip.active {
  background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-strong));
  color: var(--white);
  box-shadow: 0 12px 22px rgba(18, 55, 130, 0.22);
}

.mockup-main {
  padding: 16px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

.mockup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mockup-summary article,
.mockup-ticket,
.mockup-feed article {
  background: var(--white);
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(21, 43, 92, 0.06);
}

.mockup-summary article {
  padding: 12px;
}

.mockup-summary span,
.ticket-meta,
.ticket-text,
.mockup-feed article span {
  color: var(--graphite-soft);
  font-size: 13px;
}

.mockup-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--deep-blue);
  font-size: 24px;
}

.mockup-ticket {
  padding: 14px;
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ticket-title {
  margin-bottom: 4px;
  color: var(--graphite);
  font-size: 16px;
  font-weight: 800;
}

.ticket-text {
  margin-top: 12px;
  line-height: 1.55;
}

.status-badge {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 800;
}

.mockup-feed {
  display: grid;
  gap: 10px;
}

.mockup-feed article {
  padding: 12px 14px;
}

.mockup-feed article strong {
  display: block;
  margin-bottom: 6px;
  color: var(--graphite);
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li {
  margin-bottom: 8px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card,
.panel {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #c7d4e8;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.showcase-image-button {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.showcase-card img,
.showcase-image-button img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #dbe5f3;
}

.showcase-image-button img {
  transition: transform 0.24s ease;
}

.showcase-image-button:hover img,
.showcase-image-button:focus-visible img {
  transform: scale(1.015);
}

.showcase-image-button:focus-visible {
  outline: 3px solid rgba(22, 61, 143, 0.22);
  outline-offset: 3px;
}

.showcase-card figcaption {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  padding: 4px 4px 2px;
}

.showcase-card strong {
  font-size: 20px;
  color: var(--graphite);
}

.showcase-card span {
  color: var(--graphite-soft);
}

.showcase-card-wide {
  grid-column: span 2;
}

.showcase-card-wide .showcase-image-button img {
  max-height: 560px;
  object-fit: cover;
}

.interface-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.interface-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.interface-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 27, 43, 0.58);
  backdrop-filter: blur(8px);
}

.interface-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(88vh, 820px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 20px;
  border: 1px solid #dbe5f3;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(19, 27, 43, 0.28);
}

.interface-modal__head {
  padding: 20px 22px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.interface-modal__head .eyebrow {
  margin-bottom: 8px;
}

.interface-modal__head h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.interface-modal__close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--graphite);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.interface-modal__body {
  min-height: 0;
  padding: 18px;
  overflow: auto;
  background: #f4f7fc;
}

.interface-modal__body img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #dbe5f3;
  background: var(--white);
}

.interface-modal__caption {
  margin: 0;
  padding: 14px 22px 20px;
  color: var(--graphite-soft);
  border-top: 1px solid var(--line);
}

.panel-problem {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.panel-solution {
  background: linear-gradient(180deg, #f5f8ff, #edf3ff);
}

.panel h2 {
  max-width: 520px;
}

.panel .bullet-list {
  max-width: 58ch;
}

.steps-grid {
  align-items: stretch;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-card {
  min-height: 100%;
}

.quote-card strong {
  display: inline-block;
  margin-top: 16px;
  color: var(--deep-blue-strong);
  font-size: 14px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(22, 61, 143, 0.16), rgba(22, 61, 143, 0.55));
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-name {
  margin-bottom: 2px;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card-featured {
  border-color: #bfd0f0;
  box-shadow: 0 18px 44px rgba(21, 43, 92, 0.14);
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.pricing-card-featured::before {
  background: linear-gradient(90deg, var(--deep-blue), #3f6dce);
}

.pricing-note {
  color: var(--graphite-soft);
  font-size: 14px;
}

.pricing-lead {
  max-width: 68ch;
}

.compact li {
  margin-bottom: 6px;
}

.consultation-panel {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.form-wrap {
  max-width: 860px;
}

.lead-form {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.lead-form label:nth-child(3),
.lead-form label:nth-child(4),
.lead-form button {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  color: var(--graphite);
  background: var(--white);
}

input:focus,
textarea:focus {
  border-color: #9bb5e7;
  outline: 2px solid rgba(22, 61, 143, 0.12);
}

textarea {
  resize: vertical;
}

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

.faq-item {
  overflow: hidden;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: #c8d5ea;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--graphite);
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  color: var(--deep-blue);
  font-size: 22px;
  line-height: 1;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.24s ease;
}

.faq-answer p {
  padding: 0 20px 18px;
  color: var(--graphite-soft);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.site-footer {
  padding: 40px 0 50px;
  background: #131b2b;
  color: #d8e0f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.site-footer .logo {
  color: var(--white);
}

.site-footer .logo span {
  color: #87abf3;
}

.site-footer p {
  margin-bottom: 6px;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-policy a,
.footer-contacts a {
  color: #f0f5ff;
  text-decoration: none;
}

.footer-policy a:hover,
.footer-contacts a:hover,
.footer-policy a:focus-visible,
.footer-contacts a:focus-visible {
  text-decoration: underline;
}

.footer-contacts {
  display: grid;
  gap: 8px;
}

.footer-contacts span {
  color: #91a7d6;
}

@media (max-width: 1080px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 4%;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 248, 255, 0.98);
  }

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

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(217, 226, 240, 0.72);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero-grid,
  .split-grid,
  .showcase-grid,
  .consultation-panel,
  .footer-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 78px 0;
  }

  .hero-actions,
  .hero-metrics,
  .grid-4,
  .grid-5,
  .steps-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .mockup-layout {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid #dce5f2;
  }

  .mockup-summary {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .lead-form {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
  }

  .interface-modal {
    padding: 10px;
  }

  .interface-modal__dialog {
    max-height: 92vh;
    border-radius: 16px;
  }

  .interface-modal__head {
    padding: 14px;
  }

  .interface-modal__body {
    padding: 10px;
  }

  .interface-modal__caption {
    padding: 12px 14px 14px;
  }
}

@media (max-width: 375px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-row {
    min-height: 72px;
  }

  .logo {
    gap: 8px;
    font-size: 27px;
  }

  .logo-word {
    font-size: 20px;
  }

  .logo-mark {
    width: 64px;
    height: 64px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-copy h1,
  .lead,
  .panel .bullet-list {
    max-width: none;
  }

  .hero-card,
  .card,
  .panel,
  .consultation-panel,
  .product-mockup {
    padding: 18px;
  }

  .hero-metrics article {
    padding: 14px;
  }

  .hero-note {
    font-size: 13px;
  }

  .lead-form {
    padding: 16px;
    gap: 14px;
  }

  input,
  textarea {
    padding: 13px 14px;
  }
}
