/* ===== PAGE THEME (services) ===== */

body {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* ===== HERO ===== */
.hero--services {
  background: url('../images/s3/bg-hero-services.png') no-repeat center;
  background-size: cover;
}

/* ===== HERO CONTENT ===== */
.hero--services .hero__content {
  width: min(720px, 90%);
  padding: 0 0 clamp(5rem, 3rem + 7.5vw, 11.25rem) clamp(1.25rem, 0rem + 5vw, 5rem);
}
.hero--services .hero__desc {
  line-height: 1.21;
}
.hero--services .hero__title-wrap {
  border: none;
}


/* ===== ABOUT COMPANY ===== */
.about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  width: min(var(--width-wide), 90%);
  margin: 0 auto;
  padding-top: clamp(5rem, 3rem + 9.375vw, 9.375rem);
  flex-wrap: wrap;
}
.about-block__image {
  flex-shrink: 0;
  width: min(940px, 55%);
  height: clamp(20rem, 15rem + 12.5vw, 35rem);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: url('../images/s3/photo-about-company.jpg') no-repeat center;
  background-size: cover;
  margin-left: clamp(-5rem, -2rem + -3vw, -11.375rem);
}
.about-block__text {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  width: min(560px, 100%);
}
.about-block__title {
  font-size: clamp(1.375rem, 0.875rem + 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}
.about-block__desc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-block__desc p {
  font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.125rem);
  font-weight: 300;
  line-height: 1.21;
}
.about-block__desc--faded {
  opacity: 0.7;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(1155px, 90%);
  margin: clamp(5rem, 3rem + 9.375vw, 9.375rem) auto 0;
}
.services-grid__row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== SERVICE CARD ===== */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 250px;
  padding: clamp(1rem, 0.75rem + 1.25vw, 1.875rem);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
}
.service-card__icon {
  width: 26px;
  height: 26px;
}
.service-card__title {
  font-size: clamp(0.875rem, 0.8rem + 0.3125vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.21;
  width: min(208px, 100%);
}
.service-card__desc {
  font-size: clamp(0.75rem, 0.6875rem + 0.3125vw, 0.875rem);
  font-weight: 300;
  line-height: 1.21;
}

/* ===== FEATURE ===== */
.feature {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 0.5rem + 1.875vw, 1.875rem);
  width: min(1160px, 90%);
  margin: clamp(5rem, 3rem + 9.375vw, 9.375rem) auto 0;
}
.feature__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  flex-wrap: wrap;
}
.feature__header--right {
  justify-content: flex-end;
}
.feature__title {
  font-size: clamp(1.375rem, 0.875rem + 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.21;
  text-transform: uppercase;
  width: min(680px, 100%);
}
.feature__title--accent {
  color: var(--color-primary);
}
.feature__title--normal {
  color: var(--color-text-dark);
}
.feature__subtitle {
  width: min(362px, 100%);
  font-size: clamp(0.875rem, 0.8rem + 0.3125vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.21;
  color: rgba(0, 0, 0, 0.5);
}
.feature__content {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}
.feature__text-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 235px;
  min-width: 300px;
  padding: clamp(0.75rem, 0.5rem + 1.25vw, 1.25rem);
  background: var(--color-text-light);
  border-radius: var(--radius-md);
}
.feature__text-header {
  display: flex;
  align-items: center;
  gap: 30px;
}
.feature__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.feature__text-heading {
  font-size: clamp(0.875rem, 0.8rem + 0.3125vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.24;
}
.feature__text-body {
  font-size: clamp(0.75rem, 0.6875rem + 0.3125vw, 0.875rem);
  font-weight: 300;
  line-height: 1.21;
}
.feature__image {
  width: clamp(15rem, 10rem + 12.5vw, 23.333rem);
  height: 235px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.feature--reverse .feature__image {
  background-color: rgba(35, 93, 158, 0.2);
  background-size: 100% 100%;
}
.feature__actions {
  display: flex;
}

/* ===== CALCULATOR ===== */
.calculator {
  width: 100%;
  margin-top: clamp(6rem, 3rem + 15.8125vw, 15.8125rem);
  padding: clamp(3rem, 1.5rem + 6.25vw, 6.25rem) 0;
  background: var(--color-bg-darker);
}
.calculator__inner {
  width: min(var(--width-container), 90%);
  margin: 0 auto;
  align-items: flex-start;
}
.calculator__info {
  width: min(460px, 100%);
}
.calculator__desc {
  color: var(--color-text-light);
}
.calculator__result-label {
  line-height: 1.21;
  color: var(--color-text-light);
}
.calculator__result-value {
  line-height: 1.2;
  color: var(--color-text-light);
}

/* ===== FAQ ===== */
.faq {
  width: 100%;
  padding: clamp(5rem, 2.5rem + 12.5vw, 12.5rem) 0;
  background: var(--color-bg-dark);
}
.faq__inner {
  width: min(var(--width-container), 90%);
  margin: 0 auto;
  align-items: flex-start;
}
.faq__title {
  line-height: 1.21;
  color: var(--color-text-light);
}
.faq__contact-desc {
  line-height: 1.21;
  color: var(--color-text-light);
}
.faq__contact-title {
  color: var(--color-text-light);
}

/* ===== RESPONSIVE — Structural only ===== */
@media (max-width: 1024px) {
  .about-block { flex-direction: column; }
  .about-block__image { width: 100%; margin-left: 0; border-radius: var(--radius-md); }
  .about-block__text { width: 100%; }
  .feature__content { flex-direction: column; }
  .feature__image { width: 100%; height: clamp(13.75rem, 10rem + 7.5vw, 21.875rem); }
  .feature__header--right { justify-content: flex-start; }
  .feature__header--right .feature__title { text-align: left; }
}

@media (max-width: 768px) {
  .services-grid__row { flex-direction: column; }
  .service-card { min-width: 100%; }

  .feature__text-card {
    gap: 16px;
  }

  .feature__avatar {
    width: 36px;
    height: 36px;
  }

  .feature__text-header {
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .feature__text-card { min-width: 100%; min-height: auto; gap: 12px; }
  .calculator__row { flex-direction: column; gap: 10px; }

  .feature__avatar {
    width: 32px;
    height: 32px;
  }

  .feature__text-header {
    gap: 12px;
  }
}