/* LogiPay — Hero (текст и стиль по logipay.tilda.ws, палитра #2D8791 #122b4b #fff) */

.hero {
  min-height: 100vh;
  background: var(--white);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 60px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Блок «Почему мы?» — как в docs/logipay tilda (кружок с цифрой, текст справа) */
.hero__why {
  grid-column: 1 / -1;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  counter-reset: hero-why-num;
}

.hero__why-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 600;
  color: #122b4b;
  margin: 0 0 60px;
  text-align: center;
}

.hero__why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.hero__why-item {
  width: 33.333%;
  margin-top: 90px;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
}

.hero__why-item:nth-child(1),
.hero__why-item:nth-child(2),
.hero__why-item:nth-child(3) {
  margin-top: 0;
}

.hero__why-tablewrapper {
  display: table;
  width: 100%;
}

.hero__why-circlewrapper {
  display: table-cell;
  vertical-align: top;
}

.hero__why-circle {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #2d8791;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  line-height: 60px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.hero__why-circle::before {
  counter-increment: hero-why-num;
  content: counter(hero-why-num);
}

.hero__why-textwrapper {
  display: table-cell;
  vertical-align: top;
  padding-left: 20px;
  width: 100%;
}

.hero__why-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #122b4b;
  margin: 0 0 13px;
  line-height: 1.35;
}

.hero__why-item-text {
  font-size: 14px;
  line-height: 1.55;
  color: #122b4b;
  margin: 0;
}

.hero__content {
  max-width: 540px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 30px 0 20px;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.hero__brand-accent {
  color: var(--teal);
}

.hero__desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-dark);
  margin: 0 0 32px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
}

.hero__btn--primary {
  background: var(--teal);
  color: var(--white);
}

.hero__btn--primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.hero__btn--secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border);
}

.hero__btn--secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--text-mid);
}

.hero__card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card {
  width: 100%;
  max-width: 380px;
  background: var(--navy);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero__card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}

.hero__card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateX(10px);
}

.hero__card-row:last-child {
  border-bottom: none;
}

.hero__card-row .hero__card-amount {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.hero__card-row.hero__card-row--visible {
  opacity: 1;
  transform: translateX(0);
}

.hero__card-flag {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.hero__card-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__card-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(45, 135, 145, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__card-status svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
}
