﻿.section,
.about-ebook,
.cta-band,
.footer {
  width: var(--container-width);
  margin: 0 auto;
}

.section { padding: 30px 0; }

#uslugi,
.testimonials {
  padding: 30px 0;
}

.section,
.about-ebook {
  background: var(--white);
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--rose);
}

.carousel-wrap {
  position: relative;
  overflow: hidden;
  z-index: 8;
}

.services-carousel {
  display: flex;
  gap: 14px;
  overflow: visible;
  scrollbar-width: none;
  padding: 6px 0 18px;
  animation: service-marquee 44s linear infinite;
  transition: transform .45s cubic-bezier(.2, .75, .25, 1);
}

.services-carousel:hover {
  animation-play-state: paused;
}

.services-carousel.is-panel-open {
  animation: none;
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-card {
  position: relative;
  flex: 0 0 calc((100% - 42px) / 4);
  aspect-ratio: 4 / 3.25;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(231, 221, 215, .58);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white) 70%);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3,
.service-card a {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
}

.service-card h3 {
  bottom: 40px;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.service-card a {
  bottom: 14px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
}

.service-card a::after {
  content: " \2192";
}

.service-panel {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  z-index: 20;
  width: min(560px, 100%);
  padding: 24px 28px;
  border: 1px solid rgba(231, 221, 215, .7);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(36, 48, 37, .1);
  animation: service-panel-in .32s cubic-bezier(.2, .75, .25, 1) both;
}

.service-panel h3 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
}

.service-panel p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
}

.service-panel p:last-child {
  margin-bottom: 0;
}

@keyframes service-panel-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-8px) scaleY(.96);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0) scaleY(1);
  }
}

@keyframes service-marquee {
  to {
    transform: translateX(calc(var(--marquee-distance, 0px) * -1));
  }
}

.about-ebook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 30px 0;
}

.about-card,
.ebook {
  display: grid;
  align-items: stretch;
  gap: 28px;
}

.about-card { grid-template-columns: 2fr 3fr; }
.about-card > div { align-self: center; }

.ebook { grid-template-columns: 3fr 2fr; }

.about img,
.ebook img,
.faq img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: none;
}

.about-card h2,
.ebook h2 { font-size: 26px; }

.about-card h2 {
  white-space: nowrap;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.ebook {
  position: relative;
  padding: 17px;
  border-radius: 8px;
  background: #fbefee;
}

.ebook-form { position: relative; display: grid; grid-template-columns: 1fr; gap: 7px; max-width: 620px; }

.ebook-form .btn { position: absolute; top: 0; left: calc(100% + 28px); min-height: 52px; }
.ebook img { box-shadow: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #cfc4be;
  border-radius: 8px;
  background: var(--white);
  font: inherit;
}

.form-status {
  grid-column: 1 / -1;
  color: var(--green-dark);
  min-height: 18px;
}

.ebook-consent { color: var(--muted); font-size: 12px; }

