/*
  Здесь стили только для конкретных экранных блоков.
  Такой разнос помогает не превращать один CSS-файл в монолит.
*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--surface-dark-foreground);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  background: center / cover no-repeat url("../assets/hero-bg.jpg");
}

.hero::after {
  background: rgba(17, 24, 39, 0.85);
}

.hero__content,
.tabs,
.faq,
.contact-form {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 860px;
  padding: 112px 0 80px;
}

.hero__lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: rgba(248, 250, 252, 0.7);
  font-size: 22px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
}

.hero__stat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(248, 250, 252, 0.65);
  font-size: 14px;
}

.hero__dot {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.tabs__header {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tabs__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted-foreground);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tabs__button.is-active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

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

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

.number-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--muted);
  border: 1px solid var(--border);
}

.number-list__index {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 0, 0.1);
  color: var(--primary);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.ai-block {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: rgba(255, 106, 0, 0.05);
  border: 2px solid rgba(255, 106, 0, 0.2);
}

.ai-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.ai-logo {
  text-align: center;
}

.ai-logo__box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.ai-logo__caption {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-card__head,
.case-card__body,
.case-card__metrics {
  padding: 24px;
}

.case-card__head,
.case-card__metrics {
  border-bottom: 1px solid var(--border);
}

.case-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.stat {
  padding: 16px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat__value {
  font-size: 32px;
  font-weight: 900;
}

.stat__label,
.tag {
  font-size: 12px;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--foreground);
  text-align: left;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.faq__content {
  padding: 0 20px 20px;
  color: var(--muted-foreground);
}

.faq__trigger .fa-solid {
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq__trigger .fa-solid {
  transform: rotate(180deg);
}

.contact-form {
  padding: 32px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.contact-meta__label {
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--foreground);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(255, 106, 0, 0.16);
  border-color: var(--primary);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.checkbox-row input {
  margin-top: 3px;
}

.form-status {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.form-status--success {
  background: rgba(15, 141, 94, 0.1);
  color: var(--accent);
  border: 1px solid rgba(15, 141, 94, 0.3);
}

.form-status--error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.footer {
  padding: 40px 0;
  background: var(--foreground);
  border-top: 1px solid rgba(248, 250, 252, 0.1);
}

.footer__copy {
  color: rgba(248, 250, 252, 0.4);
  font-size: 14px;
}

@media (max-width: 991px) {
  .tabs__panel,
  .ai-block {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .hero__lead {
    font-size: 18px;
  }

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

  .tabs__button {
    white-space: nowrap;
  }

  .contact-form {
    padding: 24px;
  }
}
