:root {
  --ink: #070d23;
  --muted: #5f6878;
  --line: #e3e7ee;
  --blue: #1f67d2;
  --green: #c9f3dd;
  --green-ink: #168455;
  --soft: #f5f7fb;
  --soft-blue: #edf2ff;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(14, 27, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(185px, auto) 1fr auto;
  align-items: center;
  gap: 26px;
  max-width: 1240px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 46px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: 218px;
  max-width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-weight: 700;
}

.nav a {
  color: #111729;
}

.nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 7px;
  background: #edf2ff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.telegram-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 103, 210, 0.14);
}

.telegram-link svg {
  width: 34px;
  height: 34px;
}

.telegram-link circle {
  fill: #1f9fe8;
}

.telegram-link path {
  fill: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  color: var(--white);
  background: linear-gradient(180deg, #2f80ed 0%, #1f67d2 100%);
  box-shadow: 0 10px 22px rgba(31, 103, 210, 0.24);
}

.button-light,
.button-outline {
  background: var(--white);
  border-color: #cfd6e3;
}

.button-blue {
  color: var(--white);
  background: linear-gradient(180deg, #2f80ed 0%, #1f67d2 100%);
  box-shadow: 0 10px 22px rgba(31, 103, 210, 0.24);
}

.button-light:hover,
.button-outline:hover {
  border-color: rgba(31, 103, 210, 0.46);
  box-shadow: 0 8px 18px rgba(31, 103, 210, 0.1);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(560px, 1.18fr);
  gap: clamp(34px, 4.2vw, 58px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 66px 46px 50px;
}

.hero h1 {
  margin: 0;
  max-width: 590px;
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--blue);
  display: block;
}

.hero-copy > p {
  max-width: 520px;
  margin: 28px 0 0;
  font-size: 20px;
  color: #263044;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
}

.supplier-banner {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  min-height: 92px;
  padding: 17px 25px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(31, 103, 210, 0.46);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 103, 210, 0.08);
  cursor: default;
}

.supplier-banner svg {
  flex: 0 0 auto;
  width: 78px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.supplier-banner span {
  color: #1b5fc4;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.supplier-banner strong {
  font-weight: 900;
}

.setup-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 44px;
}

.note-icon,
.step-icon,
.feature-grid span,
.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 38px;
  font-weight: 800;
}

.setup-note .note-icon {
  width: 22px;
  height: 22px;
  font-size: 18px;
  background: transparent;
}

.step-icon {
  margin: 0 auto;
  color: var(--white);
  background: var(--blue);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(31, 103, 210, 0.22);
}

.setup-note strong,
.setup-note small {
  display: block;
}

.setup-note small {
  color: var(--muted);
}

.hero-panel,
.hero-image {
  min-width: 0;
}

.hero-panel {
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid #d9dee8;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-image {
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid #d9dee8;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-image img {
  display: block;
  width: 100%;
  min-height: 360px;
  height: auto;
  object-fit: contain;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  font-size: 13px;
}

.toolbar label,
.toolbar span {
  min-height: 34px;
  padding: 7px 11px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.toolbar select {
  margin-left: 8px;
  border: 0;
  background: transparent;
  font: inherit;
}

.toolbar .badge {
  color: var(--green-ink);
  background: #ebfff4;
  font-weight: 800;
}

.price-table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12px;
}

.price-table th,
.price-table td {
  padding: 12px 7px;
  border: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.price-table th {
  text-align: left;
  background: #fbfcff;
  font-weight: 800;
}

.price-table td:nth-child(1),
.price-table td:nth-child(2),
.price-table td:nth-child(3) {
  text-align: left;
}

.price-table .soft {
  background: #fff0f1;
}

.price-table .picked {
  outline: 2px solid var(--blue);
  outline-offset: -5px;
  border-radius: 4px;
}

.price-table .good {
  background: var(--green);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 46px;
}

.section h2,
.features h2,
.pricing h2,
.cta h2,
.faq h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section > h2,
.section-lead {
  text-align: center;
}

.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.how-section {
  max-width: none;
  margin-top: 14px;
  padding: 52px max(46px, calc((100vw - 1240px) / 2)) 58px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98) 0, rgba(255, 255, 255, 0.82) 34%, rgba(237, 244, 255, 0.72) 68%, rgba(229, 238, 255, 0.95) 100%),
    linear-gradient(180deg, #fbfdff 0%, #edf4ff 100%);
}

.how-section > h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  color: #061943;
}

.how-section > h2 span {
  color: #1f73e8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1150px;
  margin: 38px auto 0;
}

.steps article {
  position: relative;
  min-height: 330px;
  padding: 22px 20px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(214, 226, 246, 0.74);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(54, 127, 224, 0.14);
}

.steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -32px;
  width: 42px;
  height: 42px;
  background: url("/assets/img/str.png") center / contain no-repeat;
  transform: translateY(-50%);
}

.step-number {
  position: absolute;
  top: 22px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(145deg, #3987f4, #1663d8);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(31, 103, 210, 0.22);
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
}

.steps img {
  display: block;
  width: min(70%, 140px);
  height: auto;
  margin: 42px auto 16px;
}

.steps b,
.feature-grid b {
  display: block;
  margin-top: 18px;
  font-size: 16px;
}

.steps b {
  margin-top: 0;
  color: #071637;
  font-size: clamp(21px, 1.55vw, 24px);
  line-height: 1.15;
}

.steps p,
.feature-grid p,
.plan p,
.cta p,
.faq p {
  margin: 8px 0 0;
  color: #202a3d;
}

.steps p {
  max-width: 220px;
  margin: 12px auto 0;
  color: #1d2432;
  font-size: 15px;
  line-height: 1.42;
}

.features {
  max-width: 1150px;
  margin: 16px auto 0;
  padding: 34px 38px 42px;
  background: #f4f6fb;
  border-radius: 12px;
}

.features h2 {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 30px;
}

.feature-grid article {
  min-width: 0;
  padding: 0 22px;
  text-align: center;
  border-left: 1px solid #dbe0ea;
}

.feature-grid article:first-child {
  border-left: 0;
}

.feature-grid span {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  background: transparent;
  font-size: 42px;
}

.feature-grid svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 930px;
  margin: 34px auto 0;
}

.plan {
  position: relative;
  min-height: 296px;
  padding: 34px 28px 28px;
  background: var(--white);
  border: 1px solid #d7dde8;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(17, 32, 61, 0.08);
}

.plan-count {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.plan-count strong {
  font-size: 42px;
  line-height: 1;
}

.plan h3 {
  margin: 22px 0 0;
  font-size: 32px;
}

.plan h3 small {
  font-size: 16px;
}

.plan .button {
  width: 100%;
  margin-top: 28px;
}

.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.saving {
  color: #168455 !important;
  font-weight: 800;
}

.pricing-note {
  margin: 24px auto 0;
  text-align: center;
  color: #293348;
}

.cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  max-width: 1030px;
  margin: 12px auto 0;
  padding: 32px 42px;
  background: #f4f6fb;
  border-radius: 12px;
}

.cta p {
  max-width: 680px;
  font-size: 18px;
}

.cta-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq {
  max-width: 1030px;
  margin: 0 auto;
  padding: 34px 0 58px;
}

.faq-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.faq-head a {
  color: #204f8f;
  font-weight: 800;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}

details {
  background: var(--white);
  border: 1px solid #dce1eb;
  border-radius: 7px;
}

summary {
  cursor: pointer;
  min-height: 58px;
  padding: 18px 24px;
  font-weight: 800;
}

details p {
  padding: 0 24px 20px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 46px;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.lead-modal.is-open {
  display: flex;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 35, 0.54);
  backdrop-filter: blur(8px);
}

.lead-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 34px;
  background: var(--white);
  border: 1px solid #dce1eb;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(6, 16, 38, 0.26);
}

.lead-dialog h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.lead-dialog p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #111729;
  background: #f4f6fb;
  border: 1px solid #dce1eb;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.lead-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-weight: 800;
}

.lead-field-wide,
.lead-actions {
  grid-column: 1 / -1;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  border: 1px solid #cfd6e3;
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.lead-field textarea {
  resize: vertical;
}

.lead-field input:focus,
.lead-field textarea:focus {
  outline: 3px solid rgba(31, 103, 210, 0.16);
  border-color: var(--blue);
}

.lead-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

.lead-actions .button {
  cursor: pointer;
}

.lead-actions .button[disabled] {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.lead-status {
  color: var(--muted);
  font-weight: 700;
}

.lead-status.is-error {
  color: #b42318;
}

.lead-status.is-success {
  color: var(--green-ink);
}

body.lead-modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    padding: 16px 22px;
  }

  .brand img {
    width: 214px;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 22px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 22px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-image {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-image img {
    min-height: 0;
  }

  .steps,
  .feature-grid,
  .plans,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps article:not(:last-child)::after,
  .feature-grid article {
    border-left: 0;
  }

  .steps article:not(:last-child)::after {
    display: none;
  }

  .features,
  .faq,
  .cta {
    margin-left: 22px;
    margin-right: 22px;
  }

  .feature-grid {
    gap: 28px 10px;
  }

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

@media (max-width: 620px) {
  .site-header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .brand img {
    width: 196px;
  }

  .header-actions {
    width: 100%;
  }

  .header-action {
    flex: 1;
    min-width: 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .hero-actions,
  .plans,
  .steps,
  .feature-grid,
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .supplier-banner {
    width: 100%;
    min-height: 82px;
    gap: 14px;
    padding: 14px 16px;
  }

  .supplier-banner svg {
    width: 64px;
    height: 48px;
  }

  .supplier-banner span {
    font-size: clamp(18px, 6vw, 24px);
  }

  .section {
    padding: 42px 22px;
  }

  .section h2,
  .features h2,
  .pricing h2,
  .cta h2,
  .faq h2 {
    font-size: 28px;
  }

  .how-section {
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .how-section > h2 {
    font-size: 32px;
  }

  .steps {
    gap: 18px;
    margin-top: 28px;
  }

  .steps article {
    min-height: auto;
    padding: 22px 20px 24px;
  }

  .steps img {
    width: min(62%, 132px);
    margin-top: 38px;
  }

  .steps b {
    font-size: 22px;
  }

  .steps p {
    font-size: 15px;
  }

  .features {
    padding: 28px 22px;
  }

  .lead-dialog {
    padding: 28px 22px;
  }

  .lead-dialog h2 {
    font-size: 28px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-actions .button {
    width: 100%;
  }

  .faq-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
