:root {
  --primary-color: #2f70d3;
  --secondary-color: #f3f4f6;
  --accent-color: #d411ee;
  --text-color: #111827;
  --bg-color: transparent;
  --radius: 12px;
  --shadow: rgba(0, 0, 0, 0.05);
}

.bayer-container {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 0;
  margin: 0;
}

.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  padding: 2rem;
  margin: 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero h1 {
  margin: auto;
  font-size: 150%;
  margin-bottom: 1rem;
  font-weight: 700;
  max-width: 700px;
}

.cta-button {
  background: rgba(255, 255, 255, 0.932);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.features {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 700px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 8%;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-title {
  grid-column: 1 / -1;
  transition: transform 0.3s ease;
  padding: 0;
  margin: 0;
}

.feature-title h3 {
  color: #7d7d7d;
  text-align: center;
  padding: 0;
  margin: 0;
  margin-top: 2rem;
}

.feature-title:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.faq {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 6px var(--shadow);
  margin: 3rem auto;
  max-width: 600px;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-answer {
  margin-top: 0.5rem;
  display: none;
  color: #4b5563;
}

.register-form {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 6px var(--shadow);
  margin: 3rem auto;
  max-width: 800px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  font-size: 1rem;
}

/* Step-by-Step Guide Styles */
.step-by-step-guide-bg {
  background: rgba(0, 0, 0, 0);
  /* Darkened background */
  position: fixed;
  z-index: 9;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background-color 1s ease-in-out;
}

.step-by-step-guide-bg.visible {
  background: rgba(0, 0, 0, 0.9);
  /* Darkened background */
}

.step-by-step-guide {
  background: rgb(0 0 0 / 0%);
  z-index: 10;
  color: white;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.step-by-step-guide .step {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.step-by-step-guide .step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step .step-number {
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: bold;
}

.step h3 {
  margin-top: 0;
}

.step h3,
.step p {
  color: rgb(44, 44, 44);
  transition: all 1s ease-in-out;
}

.step-by-step-guide.text-white .step h3,
.step-by-step-guide.text-white .step p {
  color: white;
}

.step .images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  width: 100%;
}

.step .images .img-wrapper {
  text-align: center;
}

.step .img-wrapper {
  overflow: hidden;
  border-radius: 5px;
  max-width: 250px;
  margin: 10px;
}

.step .img-wrapper img {
  width: 100%;
  height: auto;
}

.step .item {
  width: 100%;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  overflow: hidden;
  min-width: 180px;
  max-width: 250px;
}

.step .item .img-wrapper {
  border-radius: 0;
  margin: 0;
}

.step .item p.name {
  color: rgb(0, 0, 0);
  padding: 0 10px;
  font-weight: 300;
}

.step .item p.price {
  color: var(--primary-color);
  padding: 0 10px;
  text-align: center;
  font-weight: bold;
}

.slider {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.slider-track {
  display: flex;
  border-radius: 10px;
  transition: transform 0.5s ease-in-out;
  gap: 1rem;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.slider-track .items {
  display: flex;
  gap: 1rem;
}

.slider-track::-webkit-scrollbar {
  display: none;
  /* Для Chrome, Safari и Opera */
}

.stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-box {
  color: #111827;
  flex: 1 1 200px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  min-width: 180px;
}

.paymentChart-container {
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 2/1;
  flex: 1 1 100%;
  background-color: #ffffff00;
  border-radius: 8px;
}
#paymentChart {
  margin: 0;
  padding: 0;
}

.stat-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.1em;
  color: #333;
}

.stats-phone {
  width: 100%;
  max-width: 450px;
  position: relative;
  font-size: 16px;
}

@media (max-width: 500px) {
  .stats-phone {
    font-size: 13px;
  }
}

@media (max-width: 405px) {
  .stats-phone {
    font-size: 10px;
  }
}

@media (max-width: 345px) {
  .stats-phone {
    font-size: 8px;
  }
}

@media (max-width: 300px) {
  .stats-phone {
    font-size: 7px;
  }
}

.stats-phone-top {
  position: absolute;
  top: 11%;
  left: 10%;
  right: 10%;
}

.stats-phone-top > div {
  position: absolute;
  top: 0;
  min-width: 4em;
  height: 2.4em;
  border-radius: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.8em;
  font-weight: 700;
  font-size: 1.2em;
}

.stats-phone-top-right {
  background: rgb(163, 255, 250);
  background: linear-gradient(
    200deg,
    rgb(113, 250, 220) 0%,
    rgb(90, 206, 200) 100%
  );
  right: 0;
}

.stats-phone-top-left {
  background: rgb(161, 247, 104);
  background: linear-gradient(
    200deg,
    rgb(156, 247, 104) 0%,
    rgb(54, 189, 65) 100%
  );
  left: 0;
}

.stats-phone-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  margin: 28% 2em;
  gap: 10px;
  flex-wrap: wrap;
}

.stats-phone svg {
  width: 100%;
}

.stats-phone-row-control {
  flex: 1 1 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #272727;
  border-radius: 8px;
  margin: 0.3em;
  padding: 0.9em 0.6em;
  background: rgb(255, 255, 255);
  box-shadow: 0px 4px 10px 1px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease-in-out;
}

.stats-phone-row {
  flex: 1 1 100%;
  overflow: hidden;
  display: flex;
  color: #272727;
  padding: 3px 15px;
  border-radius: 8px;
}

.stats-phone-row-icon {
  width: 3em;
  height: 3em;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #aefcff;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-phone-row-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1% 1% 1%;
  justify-content: space-between;
}

.stats-phone-row-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
}

.stats-phone-row-title {
  font-weight: bold;
}

.stats-phone-row-value {
  color: #555;
}

.stats-phone-row-bar {
  background-color: #eee;
  height: 30%;
  border-radius: 10px;
  overflow: hidden;
}

.stats-phone-row-progress-bar {
  height: 100%;
  width: 20%; /* Полная ширина */
  background: #1cf0e5;
  transition: all 0.6s ease-in-out;
}

.animation-pulse {
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

#link-tg {
  text-decoration: none;
  border-radius: 0.3em;
  padding: 0.1em 0.3em;
  font-size: 1.1em;
  transition: all 0.2s ease-in;
  color: #45c4ff;
  background: #ffffff21;
  border-bottom: solid 1px #45c4ff;
}
#link-tg:hover {
  color: #ffffff;
  background: #51bff1;
  border-bottom: solid 1px #e6f9ff;
}

.text-white #link-tg:hover {
  background: #206585;
}
