.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding: 7rem 0 5rem;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../image/hero-bg-opt.jpg') center / cover no-repeat;
  background-image: -webkit-image-set(url('../image/hero-bg.webp') 1x, url('../image/hero-bg@2x.webp') 2x);
  background-image: image-set(url('../image/hero-bg.webp') 1x, url('../image/hero-bg@2x.webp') 2x);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 18, 32, 0.92) 0%,
    rgba(11, 18, 32, 0.75) 45%,
    rgba(11, 18, 32, 0.45) 100%
  );
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero__subtitle {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 640px;
  line-height: 1.7;
}

.hero__features {
  display: grid;
  gap: 0.75rem;
  max-width: 560px;
  width: 100%;
}

.hero__feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 360px;
  margin-top: 0.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--accent {
  background: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
  color: var(--accent-text);
}

.section--accent .section__title,
.section--accent .section__lead,
.section--accent .form-text,
.section--accent .form-note,
.section--accent .form-consent,
.section--accent .form-status,
.section--accent a {
  color: var(--accent-text);
}

.section--accent .form-control {
  background: var(--accent-input-bg);
  border-color: var(--accent-input-border);
  color: var(--bg-alt);
}

.section--accent .form-control::placeholder {
  color: var(--accent-placeholder);
}

.section--accent .btn {
  background: var(--accent-btn-bg);
  color: var(--text);
}

.section--accent .btn:hover {
  background: var(--accent-btn-hover-bg);
  box-shadow: 0 10px 24px var(--accent-shadow);
}

.section__title {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section__title--left {
  text-align: left;
}

.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 2rem;
}

.slogan {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

#tech {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

#tech::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../image/tech-opt.jpg") center / cover no-repeat;
  background-image: -webkit-image-set(url("../image/tech.webp") 1x, url("../image/tech@2x.webp") 2x);
  background-image: image-set(url("../image/tech.webp") 1x, url("../image/tech@2x.webp") 2x);
  z-index: -2;
}

#tech::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 18, 32, 0.95) 0%,
    rgba(11, 18, 32, 0.85) 40%,
    rgba(11, 18, 32, 0.7) 100%
  );
  z-index: -1;
}

.tech-block {
  margin-bottom: 1.5rem;
}

.tech-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tech-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 1rem;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.services-visual,
.scenarios-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.scenarios-visual {
  margin-bottom: 2rem;
  aspect-ratio: 2048 / 1067;
  overflow: hidden;
}

.services-visual {
  height: 100%;
  min-height: 100%;
}

.services-visual img,
.scenarios-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#pricing,
#contacts {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

#pricing::before,
#contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../image/26-pricing-opt.jpg") center / cover no-repeat;
  background-image: -webkit-image-set(url("../image/26-pricing-1200.webp") 1x, url("../image/26-pricing-2048.webp") 2x);
  background-image: image-set(url("../image/26-pricing-1200.webp") 1x, url("../image/26-pricing-2048.webp") 2x);
  z-index: -2;
}

#contacts::before {
  background: url("../image/27-contacts-opt.jpg") center / cover no-repeat;
  background-image: -webkit-image-set(url("../image/27-contacts-1200.webp") 1x, url("../image/27-contacts-2048.webp") 2x);
  background-image: image-set(url("../image/27-contacts-1200.webp") 1x, url("../image/27-contacts-2048.webp") 2x);
}

#pricing::after,
#contacts::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 18, 32, 0.92) 0%,
    rgba(11, 18, 32, 0.78) 40%,
    rgba(11, 18, 32, 0.65) 100%
  );
  z-index: -1;
}

@media (min-width: 768px) {
  .services-layout {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-visual {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 767px) {
  .services-visual {
    aspect-ratio: 1 / 1;
  }
}
