/* Страница услуги. Все правила ограничены .services-page, файл безопасно подключать глобально. */
.services-page {
  --services-green: #8bc63f;
  --services-green-dark: #679b2c;
  --services-green-soft: #f2f8e9;
  --services-text: #333;
  --services-muted: #737373;
  --services-border: #e5e8e1;
  --services-bg: #f7f8f5;
  --services-white: #fff;
  --services-red: #e53935;
  --services-yellow: #fffbea;
  --services-yellow-border: #eee0a6;
  --services-radius: 25px;
  --services-radius-small: 18px;
  --services-shadow: 0 14px 38px rgba(32, 43, 25, .07);
  --services-soft-shadow: 0 8px 22px rgba(32, 43, 25, .045);
  padding: 16px 0 54px;
  background: var(--services-bg);
  color: var(--services-text);
  font-size: 15px;
  line-height: 1.55;
}

.services-page,
.services-page * {
  box-sizing: border-box;
}

.services-page a {
  text-decoration: none;
}

.services-page img {
  display: block;
  max-width: 100%;
}

.services-page button,
.services-page input,
.services-page select,
.services-page textarea {
  font: inherit;
}

.services-page h1,
.services-page h2,
.services-page h3,
.services-page p,
.services-page ul {
  margin-top: 0;
}

.services-container {
  width: min(calc(100% - 30px), 1170px);
  margin: 0 auto;
}

.services-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--services-text);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.services-btn:hover,
.services-btn:focus {
  transform: translateY(-1px);
}

.services-btn--green {
  background: var(--services-green);
  border-color: var(--services-green);
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(139, 198, 63, .25);
}

.services-btn--green:hover,
.services-btn--green:focus {
  background: var(--services-green-dark);
  border-color: var(--services-green-dark);
  color: #fff !important;
}

.services-btn--outline {
  background: #fff;
  border-color: var(--services-green);
  color: var(--services-green-dark) !important;
}

.services-btn--outline:hover,
.services-btn--outline:focus {
  background: var(--services-green-soft);
  color: var(--services-green-dark) !important;
}

.services-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 495px;
  overflow: hidden;
  background: var(--services-white);
  border: 1px solid var(--services-border);
  border-radius: 30px;
  box-shadow: var(--services-shadow);
}

.services-hero__content {
  padding: clamp(34px, 4vw, 50px) clamp(27px, 4vw, 47px);
}

.services-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 13px;
  background: var(--services-green-soft);
  border-radius: 999px;
  color: var(--services-green-dark);
  font-size: 13px;
  font-weight: 700;
}

.services-page .services-hero h1 {
  margin-bottom: 16px;
  color: #222;
  font-size: clamp(31px, 4vw, 45px);
  font-weight: 700;
  line-height: 1.12;
}

.services-lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: #555;
  font-size: 17px;
  line-height: 1.6;
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 27px;
}

.services-hero__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.services-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 53px;
  padding: 13px;
  background: #fafbf9;
  border: 1px solid var(--services-border);
  border-radius: var(--services-radius-small);
}

.services-benefit__icon {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  background: var(--services-green);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.services-benefit span:last-child {
  color: #4d4d4d;
  line-height: 1.4;
}

.services-hero__media {
  position: relative;
  min-height: 495px;
}

.services-hero__media > img {
  width: 100%;
  height: 100%;
  min-height: 495px;
  object-fit: cover;
}

.services-hero__price {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(330px, calc(100% - 48px));
  padding: 19px 20px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(229, 232, 225, .9);
  border-left: 5px solid var(--services-green);
  border-radius: 20px;
  box-shadow: var(--services-shadow);
}

.services-hero__price span {
  display: block;
  margin-bottom: 4px;
  color: var(--services-muted);
  font-size: 13px;
  font-weight: 700;
}

.services-hero__price strong {
  display: block;
  margin-bottom: 9px;
  color: #222;
  font-size: 30px;
  line-height: 1.1;
}

.services-hero__price small {
  display: block;
  color: #666;
  line-height: 1.4;
}

.services-advantages {
  margin-top: 23px;
}

.services-advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--services-white);
  border: 1px solid var(--services-border);
  border-radius: var(--services-radius);
  box-shadow: var(--services-soft-shadow);
}

.services-advantage {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 20px;
  border-right: 1px solid var(--services-border);
}

.services-advantage:last-child {
  border-right: 0;
}

.services-advantage__icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  background: var(--services-green-soft);
  border-radius: 14px;
  font-size: 19px;
}

.services-advantage strong {
  display: block;
  margin-bottom: 2px;
  color: #222;
  font-size: 15px;
}

.services-advantage span {
  display: block;
  color: var(--services-muted);
  font-size: 13px;
}

.services-section {
  padding: 55px 0;
}

.services-section--accent {
  background: #fff;
}

.services-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 29px;
}

.services-section__head h2,
.services-bottom-cta h2 {
  margin-bottom: 13px;
  color: #222;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.services-section__head p {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--services-muted);
  font-size: 15px;
}

.services-section__head--center {
  display: block;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.services-price-grid,
.services-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.services-price-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--services-border);
  border-radius: 22px;
  box-shadow: var(--services-soft-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.services-price-card:hover,
.services-price-card.is-selected {
  transform: translateY(-3px);
  border-color: rgba(139, 198, 63, .6);
  box-shadow: var(--services-shadow);
}

.services-price-card--hit {
  border: 2px solid rgba(139, 198, 63, .85);
}

.services-price-card__top {
  padding: 21px 21px 18px;
  background: #fafbf9;
  border-bottom: 1px solid var(--services-border);
}

.services-price-card--hit .services-price-card__top {
  background: var(--services-green-soft);
}

.services-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  background: var(--services-green);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.services-price-card h3 {
  margin-bottom: 12px;
  color: #222;
  font-size: 21px;
  line-height: 1.25;
}

.services-price-card__price {
  color: var(--services-red);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.services-price-card__price small {
  color: var(--services-muted);
  font-size: 14px;
  font-weight: 400;
}

.services-price-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 21px;
}

.services-check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.services-check-list li {
  position: relative;
  padding-left: 25px;
  color: #555;
}

.services-check-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--services-green-dark);
  font-weight: 700;
}

.services-price-card .services-btn {
  width: 100%;
  margin-top: auto;
}

.services-note {
  margin-top: 21px;
  padding: 16px 18px;
  background: var(--services-yellow);
  border: 1px solid var(--services-yellow-border);
  border-radius: var(--services-radius-small);
  color: #665a23;
}

.services-note--green {
  background: var(--services-green-soft);
  border-color: rgba(139, 198, 63, .38);
  color: #4a5d34;
}

.services-calc-wrap {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 24px;
  align-items: start;
}

.services-calc-info {
  padding: 27px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .96)),
    url("https://kandik.by/image/catalog/vnehniy-blok-768x416.png.jpg") center / cover no-repeat;
  border: 1px solid var(--services-border);
  border-radius: 22px;
  box-shadow: var(--services-soft-shadow);
}

.services-calc-info h3,
.services-info-box h3 {
  margin-bottom: 20px;
  color: #222;
  font-size: 23px;
  line-height: 1.25;
}

.services-calc-result {
  margin-top: 27px;
  padding: 20px;
  background: #fff;
  border-top: 5px solid var(--services-green);
  border-radius: var(--services-radius-small);
  box-shadow: var(--services-shadow);
}

.services-calc-result span {
  display: block;
  margin-bottom: 7px;
  color: var(--services-muted);
  font-size: 13px;
  font-weight: 700;
}

.services-calc-result strong {
  display: block;
  color: var(--services-red);
  font-size: 29px;
  line-height: 1.16;
}

.services-form {
  display: grid;
  gap: 15px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--services-border);
  border-radius: 22px;
  box-shadow: var(--services-soft-shadow);
}

.services-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.services-field {
  display: grid;
  gap: 7px;
}

.services-field label {
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.services-field input,
.services-field select,
.services-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #d7dbd2;
  border-radius: 12px;
  color: #333;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.services-field textarea {
  min-height: 98px;
  resize: vertical;
}

.services-field input:focus,
.services-field select:focus,
.services-field textarea:focus {
  border-color: var(--services-green);
  box-shadow: 0 0 0 3px rgba(139, 198, 63, .16);
}

.services-form > .services-btn {
  width: 100%;
}

.services-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.services-info-box {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--services-border);
  border-radius: 22px;
  box-shadow: var(--services-soft-shadow);
}

.services-info-box--green {
  background: var(--services-green-soft);
  border-color: rgba(139, 198, 63, .38);
}

.services-info-box .services-check-list {
  margin-bottom: 0;
}

.services-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  counter-reset: service-step;
}

.services-step {
  position: relative;
  min-height: 175px;
  padding: 21px 16px;
  background: #fff;
  border: 1px solid var(--services-border);
  border-radius: var(--services-radius-small);
  counter-increment: service-step;
}

.services-step::before {
  content: "0" counter(service-step);
  display: block;
  margin-bottom: 25px;
  color: var(--services-green-dark);
  font-weight: 700;
}

.services-step strong {
  display: block;
  margin-bottom: 7px;
  color: #222;
  font-size: 16px;
}

.services-step span {
  color: var(--services-muted);
  font-size: 13px;
}

.services-work-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--services-border);
  border-radius: 22px;
  box-shadow: var(--services-soft-shadow);
}

.services-work-card__image {
  display: flex;
  align-items: flex-end;
  height: 205px;
  padding: 17px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.services-work-card__image--install {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .54)),
    url("https://kandik.by/image/catalog/ustanovka1-768x502.png.jpg") center / cover no-repeat;
}

.services-work-card__image--outdoor {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .54)),
    url("https://kandik.by/image/catalog/vnehniy-blok-768x416.png.jpg") center / cover no-repeat;
}

.services-work-card__image--calc {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .54)),
    url("https://kandik.by/image/cache/catalog/banner-glavnaya/%D0%B4%D0%BB%D1%8F%20%D0%BE%D0%B1%D0%BE%D0%B3%D1%80%D0%B5%D0%B2%D0%B0%20%D0%B8%20%D0%BE%D1%85%D0%BE%D0%BB%D0%BE%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D1%8F%20%287%29-1200x320.png") center / cover no-repeat;
}

.services-work-card__body {
  padding: 17px;
}

.services-work-meta {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-work-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--services-border);
}

.services-work-meta li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.services-work-meta span {
  color: var(--services-muted);
}

.services-cert-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.services-cert-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--services-border);
  border-radius: 22px;
  box-shadow: var(--services-soft-shadow);
}

.services-cert-card__media {
  padding: 15px 15px 0;
}

.services-cert-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(139, 198, 63, .17);
  border-radius: 15px;
}

.services-cert-card__body {
  padding: 16px 17px 20px;
}

.services-cert-card h3 {
  margin-bottom: 9px;
  color: #222;
  font-size: 18px;
  line-height: 1.25;
}

.services-cert-card p {
  margin-bottom: 0;
  color: var(--services-muted);
  font-size: 13px;
}

.services-faq-list {
  display: grid;
  gap: 11px;
  max-width: 900px;
}

.services-faq-list details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--services-border);
  border-radius: var(--services-radius-small);
}

.services-faq-list details[open] {
  border-color: rgba(139, 198, 63, .58);
}

.services-faq-list summary {
  position: relative;
  padding: 19px 55px 19px 20px;
  color: #222;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.services-faq-list summary::-webkit-details-marker {
  display: none;
}

.services-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: var(--services-green-soft);
  border-radius: 10px;
  color: var(--services-green-dark);
  font-size: 21px;
}

.services-faq-list details[open] summary::after {
  content: "−";
}

.services-faq-list details p {
  margin: 0;
  padding: 0 20px 19px;
  color: #666;
}

.services-bottom-cta {
  padding-top: 4px;
}

.services-bottom-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 32px;
  background: var(--services-green-soft);
  border: 1px solid rgba(139, 198, 63, .4);
  border-radius: 27px;
}

.services-bottom-cta h2 {
  margin-bottom: 8px;
}

.services-bottom-cta p {
  margin-bottom: 0;
  color: #555;
  font-size: 15px;
}

@media (max-width: 1050px) {
  .services-hero__grid,
  .services-calc-wrap,
  .services-two-col,
  .services-bottom-cta__inner {
    grid-template-columns: 1fr;
  }

  .services-hero__media,
  .services-hero__media > img {
    min-height: 400px;
  }

  .services-advantages__grid,
  .services-cert-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-advantage:nth-child(2) {
    border-right: 0;
  }

  .services-advantage:nth-child(-n+2) {
    border-bottom: 1px solid var(--services-border);
  }

  .services-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-bottom-cta__inner {
    display: grid;
  }
}

@media (max-width: 767px) {
  .services-page {
    padding: 8px 0 37px;
    font-size: 14px;
  }

  .services-container {
    width: min(calc(100% - 24px), 1170px);
  }

  .services-hero__grid,
  .services-advantages__grid,
  .services-price-grid,
  .services-form__row,
  .services-two-col,
  .services-steps,
  .services-work-grid,
  .services-cert-cards {
    grid-template-columns: 1fr;
  }

  .services-hero__grid {
    border-radius: 21px;
  }

  .services-hero__content {
    padding: 25px 20px;
  }

  .services-page .services-hero h1 {
    font-size: clamp(29px, 9vw, 34px);
  }

  .services-lead {
    font-size: 15px;
  }

  .services-hero__actions .services-btn,
  .services-section__head .services-btn,
  .services-bottom-cta .services-btn {
    width: 100%;
  }

  .services-hero__benefits {
    grid-template-columns: 1fr;
  }

  .services-hero__media,
  .services-hero__media > img {
    min-height: 305px;
  }

  .services-hero__price {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 15px 16px;
  }

  .services-advantage {
    border-right: 0;
    border-bottom: 1px solid var(--services-border);
  }

  .services-advantage:last-child {
    border-bottom: 0;
  }

  .services-section {
    padding: 39px 0;
  }

  .services-section__head {
    display: block;
    margin-bottom: 24px;
  }

  .services-section__head .services-btn {
    margin-top: 18px;
  }

  .services-section__head h2,
  .services-bottom-cta h2 {
    font-size: clamp(24px, 7vw, 29px);
  }

  .services-price-card__top,
  .services-price-card__body,
  .services-calc-info,
  .services-form,
  .services-info-box {
    padding: 20px;
  }

  .services-step {
    min-height: auto;
    padding: 19px;
  }

  .services-step::before {
    margin-bottom: 11px;
  }

  .services-cert-card__media img {
    aspect-ratio: 16 / 11;
  }

  .services-bottom-cta__inner {
    padding: 23px 20px;
    border-radius: 21px;
  }

  .services-bottom-cta .services-btn {
    margin-top: 18px;
  }
}


/* Выравнивание калькулятора */
.services-calc-wrap {
  align-items: stretch;
}

.services-calc-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-calc-info .services-check-list {
  margin-bottom: 0;
}

.services-calc-result {
  margin-top: auto;
}

.services-form__row {
  align-items: start;
}

.services-number-field {
  position: relative;
}

.services-number-field input {
  padding-right: 38px;
}

.services-number-field span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--services-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.services-number-field input[type="number"]::-webkit-outer-spin-button,
.services-number-field input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.services-number-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.services-form__calculation-note {
  margin: -4px 0 2px !important;
  padding: 11px 13px;
  background: var(--services-green-soft);
  border-radius: 11px;
  color: var(--services-muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .services-calc-info {
    height: auto;
  }

  .services-calc-result {
    margin-top: 24px;
  }

  .services-form__calculation-note {
    margin-top: -2px !important;
  }
}

/* Финальный CTA: убираем внешний серо-зелёный фон секции */
.services-page .services-bottom-cta {
  margin: 0;
  padding: 34px 0 55px;
  background: #fff !important;
}

.services-page .services-bottom-cta__inner {
  background: var(--services-green-soft);
}

@media (max-width: 767px) {
  .services-page .services-bottom-cta {
    padding: 28px 0 34px;
    background: #fff !important;
  }
}


/* Ширина лендинга услуги на больших экранах */
@media (min-width: 1200px) {
  .services-page .services-container {
    width: min(calc(100% - 60px), 1320px);
  }

  .services-page .services-hero__grid {
    grid-template-columns: minmax(0, 1.10fr) minmax(0, .90fr);
  }

  .services-page .services-hero__content {
    padding-right: 52px;
    padding-left: 52px;
  }

  .services-page .services-lead {
    max-width: 675px;
  }

  .services-page .services-faq-list {
    max-width: 1040px;
  }
}
/* Отправка заявки из калькулятора */
.services-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.services-form__status:empty {
  display: none;
}

.services-form__status {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.services-form__status--success {
  background: var(--services-green-soft);
  border: 1px solid rgba(139, 198, 63, .42);
  color: #476423;
}

.services-form__status--error {
  background: #fff0ef;
  border: 1px solid rgba(229, 57, 53, .25);
  color: #a32320;
}

.services-form .services-btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}