:root {
  --navy: #071935;
  --navy-soft: #172b4a;
  --orange: #ff5a16;
  --orange-dark: #e64a0b;
  --warm: #fbf7f1;
  --line: #e8e1d7;
  --muted: #667085;
  --blue-soft: #e8f2ff;
  --green-soft: #eaf6e6;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(251, 247, 241, 0.92);
  border-bottom: 1px solid rgba(232, 225, 215, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 30px;
  color: var(--navy-soft);
  font-size: 15px;
}

.main-nav a:hover,
.header-cta:hover {
  color: var(--orange);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 700;
}

.header-cta-icon {
  display: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.section-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 74px clamp(20px, 4vw, 42px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  align-items: start;
  gap: 54px;
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 42px;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-subtitle {
  max-width: 710px;
  color: var(--navy-soft);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 38px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 8px;
  padding: 16px 24px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.button-primary {
  background: var(--orange);
  color: var(--white);
}

.button-primary:hover {
  background: var(--orange-dark);
}

.button.full {
  width: 100%;
}

.telegram-note {
  max-width: 270px;
  color: var(--muted);
  font-size: 14px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-row div {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.trust-row div:last-child {
  border-right: 0;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  margin-bottom: 6px;
  font-size: 22px;
}

.trust-row span {
  color: var(--muted);
  font-size: 14px;
}

.calculator-panel {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  scroll-margin-top: 18px;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.calculator-panel.is-attention {
  animation: calculatorAttention 1250ms ease-out;
}

@keyframes calculatorAttention {
  0%,
  100% {
    background-color: var(--white);
    border-color: var(--line);
    box-shadow: none;
    transform: translateY(0);
  }

  18%,
  62% {
    background-color: #fff1e8;
    border-color: var(--orange);
    box-shadow:
      0 0 0 6px rgba(255, 90, 22, 0.2),
      0 20px 46px rgba(255, 90, 22, 0.24);
    transform: translateY(-2px);
  }

  38%,
  82% {
    background-color: var(--white);
    border-color: #ffd7bd;
    box-shadow:
      0 0 0 2px rgba(255, 90, 22, 0.08),
      0 10px 26px rgba(255, 90, 22, 0.12);
    transform: translateY(0);
  }
}

.panel-header p:not(.eyebrow) {
  color: var(--muted);
}

.quiz-group {
  margin-top: 18px;
}

.quiz-group h3 {
  font-size: 15px;
}

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

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

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

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

.option-grid button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.option-grid button.is-selected {
  border-color: var(--orange);
  background: #fff1e8;
  box-shadow: inset 0 0 0 1px var(--orange);
}

.estimate-box {
  display: grid;
  gap: 2px;
  margin: 18px 0;
  padding: 16px;
  background: #fff8ef;
  border: 1px solid #ffd7bd;
  border-radius: 8px;
}

.estimate-box span,
.estimate-box small {
  color: var(--muted);
}

.estimate-box strong {
  font-size: 28px;
}

.telegram-plan {
  display: grid;
  gap: 8px;
  margin: 20px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.telegram-plan h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

.telegram-plan p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.lead-preview {
  display: none;
}

.included {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 18px;
  padding-bottom: 44px;
}

.included-item {
  padding: 22px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.included-item:first-child {
  border-radius: 8px 0 0 8px;
}

.included-item:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.included-item strong,
.included-item span {
  display: block;
}

.included-item span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

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

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

.case-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    background-color 220ms ease;
}

.case-card:hover,
.case-card:focus-visible,
.case-card.is-in-view {
  background-color: #fff8ef;
  border-color: var(--orange);
  box-shadow:
    0 0 0 3px rgba(255, 90, 22, 0.12),
    0 18px 34px rgba(7, 25, 53, 0.12);
  transform: translateY(-4px);
}

.case-card:focus-visible {
  outline: 3px solid rgba(255, 90, 22, 0.38);
  outline-offset: 3px;
}

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
  transition: transform 260ms ease;
}

.case-card:hover img,
.case-card:focus-visible img,
.case-card.is-in-view img {
  transform: scale(1.035);
}

.case-card div {
  padding: 18px;
}

.case-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.tag.blue {
  background: var(--blue-soft);
  color: #1d4f91;
}

.tag.green {
  background: var(--green-soft);
  color: #286c2c;
}

.extensions {
  padding-top: 56px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.solution-grid article {
  min-height: 178px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.solution-grid strong,
.solution-grid span {
  display: block;
}

.solution-grid span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.process-grid article {
  padding: 24px;
  border-top: 1px solid var(--line);
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-weight: 800;
}

.process-grid p {
  color: var(--muted);
}

.faq {
  display: grid;
  grid-template-columns: minmax(420px, 0.46fr) minmax(0, 1fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 116px;
}

.faq-heading h2 {
  max-width: 460px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
}

.faq-heading p:not(.eyebrow) {
  max-width: 340px;
  color: var(--muted);
  font-size: 18px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 102px;
  padding: 28px 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.faq-trigger span:first-child {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.18;
}

.faq-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f3f8;
  transition:
    background-color 220ms ease,
    transform 320ms ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy);
  transition:
    opacity 220ms ease,
    transform 320ms ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-icon {
  background: #fff1e8;
  transform: rotate(180deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0.4);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 420ms ease,
    opacity 260ms ease,
    transform 320ms ease;
}

.faq-panel p {
  max-width: 820px;
  margin: 0;
  padding: 0 72px 34px 0;
  color: var(--muted);
  font-size: 18px;
}

.faq-item.is-open .faq-panel {
  opacity: 1;
  transform: translateY(0);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.final-cta p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1fr) minmax(220px, 0.8fr);
  align-items: start;
  gap: 20px;
  padding: 34px clamp(20px, 5vw, 56px);
  background: var(--navy);
  color: var(--white);
}

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

.footer-brand span:first-child,
.footer-contacts strong {
  font-weight: 800;
}

.footer-brand span:nth-child(2),
.footer-contacts span,
.footer-contacts a,
.footer-links a {
  color: #c7d2e5;
}

.footer-contacts {
  font-style: normal;
}

.footer-contacts a,
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contacts a:hover,
.footer-links a:hover {
  color: var(--white);
}

.legal-page {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 76px clamp(20px, 5vw, 56px);
}

.legal-hero {
  margin-bottom: 42px;
}

.legal-hero h1 {
  max-width: 860px;
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.legal-section p,
.legal-section li {
  color: var(--navy-soft);
  font-size: 17px;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.legal-section a {
  color: var(--orange-dark);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .hero,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

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

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

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

  .faq-heading {
    position: static;
  }

  .faq-heading h2 {
    max-width: 760px;
    font-size: clamp(40px, 8vw, 62px);
  }
}

@media (max-width: 720px) {
  section[id] {
    scroll-margin-top: 24px;
  }

  .site-header {
    position: static;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--navy);
  }

  .header-cta:hover {
    color: var(--navy);
    background: transparent;
  }

  .header-cta-label {
    display: none;
  }

  .header-cta-icon {
    display: block;
  }

  .section-shell {
    padding: 54px 18px;
  }

  .hero {
    gap: 32px;
    padding-top: 50px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 46px);
  }

  .hero-actions,
  .trust-row,
  .included,
  .case-grid,
  .solution-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .faq-trigger {
    grid-template-columns: minmax(0, 1fr) 32px;
    min-height: 84px;
    padding: 22px 0;
  }

  .faq-trigger span:first-child {
    font-size: 21px;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-panel p {
    padding-right: 0;
    font-size: 16px;
  }

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

  .trust-row div,
  .included-item {
    border-right: 1px solid var(--line);
    border-radius: 0;
  }

  .included-item:first-child {
    border-radius: 8px 8px 0 0;
  }

  .included-item:last-child {
    border-radius: 0 0 8px 8px;
  }

  .calculator-panel {
    padding: 20px;
  }

  .option-grid,
  .option-grid.four,
  .option-grid.three {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calculator-panel.is-attention {
    animation: none;
    background-color: #fff1e8;
    border-color: var(--orange);
    box-shadow:
      0 0 0 6px rgba(255, 90, 22, 0.2),
      0 20px 46px rgba(255, 90, 22, 0.24);
  }
}
