/* HERO SECTION */
.hero-section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: #111827;
  background-image: radial-gradient(
      circle at 15% 20%,
      rgba(245, 158, 11, 0.1),
      transparent 30%
    ),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.1), transparent 30%);
}
@media (min-width: 768px) {
  .hero-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}
.hero-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.hero-content {
  text-align: center;
}
@media (min-width: 768px) {
  .hero-content {
    text-align: right;
  }
}
.hero-title {
  font-size: 3.75rem !important;
  font-family: "Assistant Bold";
  color: #f3f4f6;
  line-height: 1.15;
  margin-bottom: 0;
}

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  color: #d1d5db;
}
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
    margin-right: 0;
    margin-left: 0;
  }
}
.hero-cta {
  margin-top: 2.5rem;
}
.hero-cta-btn,
#zoom {
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 0 20px rgba(245, 158, 11, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
  font-size: 1rem;
}
.hero-cta-btn:hover,
#zoom:hover {
  background: #d97706;
  transform: scale(1.05);
  color: #fff;
}
.hero-image-block {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 #0008;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ABOUT SECTION */
.about-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: #111827;
}
@media (min-width: 768px) {
  .about-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}
.about-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.about-image-block {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image {
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 #0008;
  max-width: 100%;
  height: auto;
  display: block;
}
.about-content {
  text-align: center;
}
@media (min-width: 768px) {
  .about-content {
    text-align: right;
  }
}
.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .about-title {
    font-size: 2.5rem;
  }
}
.about-text {
  margin-top: 1.5rem;
  color: #d1d5db;
  font-size: 1.125rem;
}
.about-text + .about-text {
  margin-top: 1rem;
}


/* SERVICES SECTION */
.services-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: #1f2937;
  border-top: 1px solid #374151;
  border-bottom: 1px solid #374151;
}
@media (min-width: 768px) {
  .services-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}
.services-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.services-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.services-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f3f4f6;
}
@media (min-width: 768px) {
  .services-title {
    font-size: 2.5rem;
  }
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.service-card {
    display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: right;
    background: #111827;
    color: #f3f4f6;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #374151;
    transition: border 0.2s, transform 0.2s;
    box-sizing: border-box;
  }
.service-card:hover {
  border-color: #f59e0b;
  transform: translateY(-4px);
}
.service-title {
    font-size: 1.25rem;
    font-family: "Assistant Bold";
    color: #f3f4f6;
    margin-bottom: 0.5rem;
    text-align: right;
  }
.service-text {
    display: block;
    width: 100%;
    color: #d1d5db;
    font-size: 1rem;
    margin: 0;
    box-sizing: border-box;
    flex: 1 1 auto;
  }

/* CLIENTS SECTION */
.clients-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: #111827;
}
@media (min-width: 768px) {
  .clients-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}
.clients-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.clients-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.clients-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f3f4f6;
}
@media (min-width: 768px) {
  .clients-title {
    font-size: 2.5rem;
  }
}
.clients-logos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin-bottom: 0;
}

.client-logo {
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
  margin: 0 auto;
  width: 200px;
  height: 100px;
  object-fit: cover;
  background: #23272f;
  border-radius: 0.5rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-content: center !important;
  flex-wrap: wrap !important;
  color: #fff;
  font-size: 2rem;
  font-family: "Assistant Bold";
}
.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/************ TESTIMONIALS SECTION ************/
.testimonials-header {
  margin-top: 6rem;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.testimonials-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f3f4f6;
}
@media (min-width: 768px) {
  .testimonials-title {
    font-size: 2.5rem;
  }
}
.testimonials-subtitle {
  margin-top: 1rem;
  color: #d1d5db;
  font-size: 1.125rem;
}
.testimonials-grid {
  max-width: 1536px;
  margin-top: 4rem;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
  padding-left: 1.5rem; 
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.testimonial-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: box-shadow 0.2s;
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  box-sizing: border-box;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 #0008;
}
.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}
.testimonial-text {
  color: #d1d5db;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.testimonial-author-block {
  margin-top: auto;
}
.testimonial-author {
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 0.25rem;
}
.testimonial-author-subtle {
  color: #d1d5db;
  font-weight: 400;
}
.mt-24 {
  margin-top: 6rem;
}
.mt-16 {
  margin-top: 4rem;
}

/* CTA SECTION */
.cta-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: #111827;
}
@media (min-width: 768px) {
  .cta-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}
.cta-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.cta-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .cta-card {
    padding: 4rem;
  }
}
.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }
}
.cta-text {
  margin-top: 1rem;
  color: #d1d5db;
  font-size: 1.125rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn-block {
  margin-top: 2rem;
}
.cta-btn {
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 16px 0 #f59e0b33;
  display: inline-block;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
  font-size: 1rem;
}
.cta-btn:hover {
  background: #d97706;
  transform: scale(1.05);
  color: #fff;
}

/* Более плавная анимация для hero и about */
.hero-container.animate-on-scroll,
.about-container.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-container.animate-on-scroll.is-visible,
.about-container.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* АНИМАЦИЯ ПОЯВЛЕНИЯ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
