/* Строй Прогресс. Классы лендинга изолированы от системных виджетов. */

:root {
  --sp-ink: #172129;
  --sp-panel: #131e26;
  --sp-orange: #ff741e;
  --sp-dark-orange: #a93b00;
  --sp-light: #f4f6f7;
  --sp-gutter: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

.sp-home main { min-width: 0; background: var(--sp-light); }
.sp-home .page_layout-clear,
.sp-home .page_layout-clear > main { width: 100%; max-width: none; padding-inline: 0; }

/* InSales adds both wrappers outside snippet.liquid. */
.layout:has(> .sp-widget),
.layout:has(> .layout__content > .sp-widget),
.layout__content:has(> .sp-widget) {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.sp-wrap {
  box-sizing: border-box;
  width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

.sp-header__inner,
.sp-hero__content,
.sp-services h2,
.sp-services .sp-eyebrow,
.sp-benefits__inner,
.sp-footer > .sp-wrap { padding-inline: var(--sp-gutter); }

.sp-section { scroll-margin-top: 16px; }
.sp-dark { background: var(--sp-panel); color: #fff; }
.sp-dark a:not(.sp-button) { color: inherit; }
.sp-dark h1, .sp-dark h2 { color: #fff; }
.sp-dark [hidden] { display: none; }
.sp-brand { display: inline-block; max-width: 100%; line-height: 0; }
.sp-brand img { display: block; width: 152px; max-width: 100%; height: auto; }
.sp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 42px;
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 24px;
  padding: 8px 16px;
  background: #ff721c;
  color: #182028;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}
.sp-button:hover, .sp-button:focus-visible { background: #ff9855; color: #182028; text-decoration: none; }
.sp-button span { font-size: 1.35em; line-height: 1; }
.sp-button[aria-disabled="true"], .sp-button:disabled { opacity: .65; cursor: default; }
.sp-dark :focus-visible, .sp-services :focus-visible { outline: 3px solid #ff9d60; outline-offset: 4px; }

.sp-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  min-height: 66px;
  padding-block: 10px;
}
.sp-navigation {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 22px);
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.4;
}
.sp-navigation--desktop { justify-content: center; }
.sp-navigation a:not(.sp-button) { text-decoration: none; }
.sp-navigation a:not(.sp-button):hover, .sp-navigation [aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--sp-orange);
  text-underline-offset: 5px;
}
.sp-header__cta { grid-column: -2; }
.sp-contact-details { display: grid; gap: 3px; line-height: 1.25; }
.sp-contact-details a { font-weight: 750; text-decoration: none; }
.sp-contact-details span { font-size: 11px; }
.sp-contact-details .sp-contact-details__email { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.sp-menu { display: none; }

.sp-hero { position: relative; isolation: isolate; }
.sp-hero__photo, .sp-contact__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 65% 50%;
  z-index: -2;
}
.sp-hero::after, .sp-contact__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.sp-hero::after { background: linear-gradient(90deg, #101820 1%, rgba(16,24,32,.88) 27%, rgba(16,24,32,.4) 54%, transparent 75%); }
.sp-hero__content {
  min-height: clamp(290px, 29vw, 515px);
  padding-block: clamp(25px, 3vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.sp-hero h1, .sp-services h2, .sp-contact h2, .sp-benefits h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -.027em;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.sp-hero h1 { font-size: clamp(34px, 4.05vw, 68px); max-width: 16ch; }
.sp-hero h1 span, .sp-services h2 span, .sp-benefits h2 span { display: block; }
.sp-hero h1 span, .sp-contact h2 strong { color: var(--sp-orange); }
.sp-hero p { max-width: 47ch; font-size: clamp(14px, 1.45vw, 20px); line-height: 1.37; margin: 12px 0 18px; }
.sp-hero .sp-button { padding-inline: 20px; }

.sp-services { background: var(--sp-light); padding-block: clamp(18px, 2.2vw, 36px) 20px; color: var(--sp-ink); }
.sp-services h2 { font-size: clamp(26px, 2.9vw, 47px); margin-bottom: 18px; }
.sp-services h2 span, .sp-benefits h2 span { color: var(--sp-dark-orange); }
.sp-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
}
.sp-eyebrow::before { content: ""; width: 24px; flex: 0 0 24px; height: 2px; background: var(--sp-orange); }
.sp-services__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
}
.sp-service {
  grid-column: span 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(19,30,38,.12);
}
.sp-service--wide { grid-column: span 4; }
.sp-service > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.sp-service__body { flex: 1; display: flex; align-items: flex-start; flex-direction: column; padding: 12px 13px; min-width: 0; }
.sp-service h3 { font-size: clamp(16px, 1.55vw, 22px); line-height: 1.15; margin: 0 0 5px; font-weight: 800; overflow-wrap: anywhere; }
.sp-service p { font-size: clamp(13px, 1.22vw, 16px); line-height: 1.37; margin: 0 0 12px; overflow-wrap: anywhere; }
.sp-service__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin-top: auto; }
.sp-service__price {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 12px;
  background: #fff0e3;
  color: #8f3600;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}
.sp-service .sp-button { min-height: 36px; padding-inline: 12px; font-size: 13px; }

.sp-contact { padding-block: 0 18px; }
.sp-contact__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 32fr) minmax(0, 43fr) minmax(0, 28fr);
  gap: clamp(13px, 2vw, 30px);
  align-items: center;
  min-height: 175px;
  border-radius: 18px;
  padding: clamp(12px, 1.6vw, 24px);
}
.sp-contact__photo, .sp-contact__panel::after { border-radius: inherit; }
.sp-contact__photo { object-position: left center; }
.sp-contact__panel::after { background: linear-gradient(90deg, transparent 14%, rgba(19,30,38,.84) 37%, #131e26 70%); }
.sp-contact__content { grid-column: 2; }
.sp-contact h2 { font-size: clamp(24px, 2.52vw, 41px); }
.sp-form { min-width: 0; display: grid; gap: 7px; }
.sp-form input[type="text"], .sp-form input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #37434d;
  padding: 8px 11px;
  color: #fff;
  min-height: 36px;
  font: inherit;
  font-size: 14px;
}
.sp-form input::placeholder { color: #eff2f5; opacity: 1; }
.sp-form input[aria-invalid="true"] { border-color: #ffad95; }
.sp-form .sp-button { justify-content: space-between; min-height: 38px; width: 100%; }
.sp-form .sp-trap { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); pointer-events: none; }
.sp-form__feedback:not(.is-show) { display: none; }
.sp-form__feedback { color: #bbf4d0; font-size: 13px; }
.sp-form__notice, .sp-consent { font-size: 12px; line-height: 1.35; margin: 0; }
.sp-form [data-feedback-form-field-error] { color: #ffbfaf; font-size: 12px; }
.sp-form [data-feedback-form-field-error]:empty { display: none; }
.sp-consent { display: flex; gap: 7px; align-items: flex-start; }
.sp-consent input { margin: 2px 0 0; accent-color: var(--sp-orange); flex: 0 0 auto; }
.sp-consent a { text-decoration: underline; }
.sp-form__captcha iframe { max-width: 100%; }

.sp-benefits { padding-block: 2px 18px; background: var(--sp-light); color: var(--sp-ink); }
.sp-benefits__inner { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 5fr); align-items: center; gap: 16px; }
.sp-benefits h2 { font-size: clamp(24px, 2.4vw, 36px); }
.sp-benefits ul { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.sp-benefits li { display: flex; align-items: flex-start; gap: 7px; border-left: 1px solid #dce1e4; padding-left: 8px; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.27; overflow-wrap: anywhere; }
.sp-benefits svg { display: block; width: clamp(23px, 2.6vw, 36px); height: auto; flex: 0 0 auto; color: var(--sp-dark-orange); }

.sp-projects { padding-block: 8px 18px; }
.sp-projects img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4.4 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.sp-footer { padding-block: 18px 24px; }
.sp-footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 16px; align-items: center; }
.sp-footer .sp-brand img { width: 136px; }
.sp-footer .sp-contact-details { grid-column: -2; }
.sp-footer .sp-navigation { gap: 9px; font-size: 12px; }
.sp-footer__copyright { margin: 15px 0 0; border-top: 1px solid #3e4851; padding-top: 12px; font-size: 12px; }
.sp-docs { border-left: 1px solid #3e4851; padding-left: 13px; font-size: 11px; overflow-wrap: anywhere; }
.sp-docs p { font-weight: 750; margin: 0 0 5px; }
.sp-docs ul { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 9px; list-style: none; padding: 0; margin: 0; }
.sp-docs li:empty { display: none; }
.sp-docs li a, .sp-docs li span { text-decoration: underline; text-underline-offset: 2px; }

.sp-info-page main img { height: auto; max-width: 100%; }
.sp-info-page main { overflow-wrap: anywhere; }
.sp-info-page .sp-table-scroll { overflow-x: auto; max-inline-size: 100%; }

@media (max-width: 1020px) {
  .sp-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sp-header__inner > .sp-contact-details { display: none; }
  .sp-footer__grid { grid-template-columns: auto 1fr 1.15fr; }
  .sp-footer .sp-contact-details { grid-column: 1 / -1; }
  .sp-navigation--desktop { display: none; }
  .sp-header__cta { grid-column: 2; justify-self: end; }
  .sp-menu { display: block; grid-column: 3; }
  .sp-menu summary { font-size: 14px; cursor: pointer; min-height: 42px; display: flex; align-items: center; gap: 7px; }
  .sp-menu summary::after { content: "+"; color: var(--sp-orange); font-weight: 800; }
  .sp-menu[open] summary::after { content: "−"; }
  .sp-menu nav { position: absolute; inset: 100% 0 auto; z-index: 10; background: var(--sp-panel); padding: 12px var(--sp-gutter) 16px; flex-direction: column; align-items: flex-start; gap: 3px; box-shadow: 0 8px 12px rgba(0,0,0,.24); }
  .sp-menu nav > a:not(.sp-button) { width: 100%; padding: 9px 0; }
  .sp-menu .sp-contact-details { margin-top: 8px; }
}

@media (max-width: 820px) {
  .sp-service, .sp-service--wide { grid-column: span 6; }
  .sp-contact__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sp-contact__content { grid-column: 1; }
  .sp-contact__panel::after { background: rgba(19,30,38,.79); }
  .sp-benefits__inner { grid-template-columns: 1fr; }
  .sp-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .sp-docs { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .sp-docs ul { grid-template-columns: repeat(2,minmax(0, 1fr)); max-width: 390px; }
}

@media (max-width: 540px) {
  :root { --sp-gutter: max(6px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .sp-header__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-header__cta { display: none; }
  .sp-menu { grid-column: 2; }
  .sp-hero { display: grid; }
  .sp-hero::after { display: none; }
  .sp-hero__photo { position: static; z-index: auto; order: 2; aspect-ratio: 2 / 1; object-position: right center; }
  .sp-hero__content { min-height: 0; padding: 24px var(--sp-gutter) 18px; order: 1; }
  .sp-hero h1 { font-size: clamp(32px, 8.6vw, 42px); }
  .sp-hero p { max-width: 42ch; }
  .sp-services__grid { grid-template-columns: 1fr; }
  .sp-service, .sp-service--wide { grid-column: auto; }
  .sp-service__body { padding: 11px 12px 14px; }
  .sp-service .sp-button { min-height: 42px; }
  .sp-contact__panel { grid-template-columns: minmax(0,1fr); padding: 20px 15px; }
  .sp-contact__panel::after { background: rgba(19,30,38,.86); }
  .sp-contact h2 { max-width: 24ch; }
  .sp-form { gap: 9px; }
  .sp-form input[type="text"], .sp-form input[type="tel"], .sp-form .sp-button { min-height: 44px; font-size: 16px; }
  .sp-benefits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 14px; }
  .sp-projects img { aspect-ratio: 2.3 / 1; }
}

@media (prefers-reduced-motion: no-preference) { html:has(.sp-home) { scroll-behavior: smooth; } }
