/* ——— Hero Section ——— */
.hero {
  padding: 96px 64px;
}

.interface-image img {
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 64px;
}

/* ——— Left Column ——— */
.hero-left {
  max-width: 600px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 700;
  color: #222;
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: #444;
  line-height: 1.6;
  margin-bottom: 32px;
  font-family: 'Montserrat', sans-serif;
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  background-color: #009C8F;
  color: #fff;
  transition: background 0.3s ease;
}

.cta-button i {
  font-size: 16px;
}

.cta-button:hover {
  background-color: #33B6A2;
}

.cta-button.outline {
  background-color: transparent;
  color: #009C8F;
  border: 2px solid #009C8F;
  padding: 12px 22px;
  box-sizing: border-box;
}

.cta-button.outline:hover {
  background-color: #009C8F;
  color: #fff;
}

/* ——— Right Side ——— */
.hero-right {
  flex-grow: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* — Планшетная визуализация — */
.tablet {
  width: 320px;
  height: 440px;
  background-color: #dfe6ea;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablet-screen {
  width: 88%;
  height: 88%;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px #ccd3d9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tablet-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* — Блок с показателями — */
.metrics-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
}

.metric-label {
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 14px;
  font-weight: 600;
  color: #02dece;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* — Диаграммы — */
.charts-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 12px;
}

/* Круговая внутри планшета */
.circle-chart-inline {
  width: 64px;
  height: 64px;
}

.circle-chart-inline svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circle-chart-inline text {
  transform: rotate(90deg);
}

/* Столбчатая — минималистичная */
.bar-chart-inline {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 64px;
}

.bar-chart-inline .bar {
  width: 10px;
  background-color: #02dece;
  border-radius: 3px;
  transition: height 0.4s ease;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Адаптив ——— */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-right {
    margin-top: 48px;
  }

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

  .hero-subtitle {
    font-size: 17px;
  }

  .tablet {
    width: 220px;
    height: 340px;
  }

  .circle-chart-inline {
    width: 48px;
    height: 48px;
  }

  .bar-chart-inline {
    height: 48px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 24px;
  }

  .hero-inner {
    gap: 32px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .hero-buttons {
    justify-content: center;
    text-align: center;
  }

  .cta-button {
    font-size: 14px;
    padding: 10px 18px;
  }

  .cta-button i {
    font-size: 14px; /* иконки Font Awesome меньше */
  }

  .interface-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .tablet {
    width: 160px;
    height: 260px;
  }

  .circle-chart-inline {
    display: none; /* скрываем круговую диаграмму на очень маленьких экранах */
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .cta-button {
    font-size: 13px;
    padding: 8px 16px;
  }

  .cta-button i {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .hero__benefits,
  .hero__usecases {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
  }

  .hero__benefits li,
  .hero__usecases li {
    font-size: 15px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}