#sp-header {
  background: #fff;
  box-shadow: none;
  border: 0;
}

#sp-header > .container {
  width: min(calc(100% - 32px), 1400px);
  max-width: none;
  padding-inline: 0;
}

#sp-header .container-inner > .row {
  min-height: 76px;
  margin-inline: 0;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: nowrap;
}

#sp-header .row > #sp-logo,
#sp-header .row > #sp-menu {
  flex: 0 0 auto;
  width: auto;
  padding-inline: 0;
}

#sp-header .row > #sp-position5 {
  flex: 0 0 auto !important;
  width: auto !important;
  padding-inline: 0;
}

#sp-header .row > #sp-menu { margin-inline: auto; }

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-brand .logo-image {
  width: clamp(82px, 7.7vw, 118px);
  height: auto;
}

.home-brand-caption {
  border-inline-start: 1px solid #d6e2d7;
  padding-inline-start: 12px;
  color: #29392f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.home-intro {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  background: #fff;
}

.home-hero {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  background: #fff;
  color: #18251e;
  text-align: center;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1400px);
  margin-inline: auto;
  padding: clamp(40px, 8svh, 112px) clamp(24px, 4vw, 80px) 16px;
  container-type: inline-size;
}

.home-hero h1 {
  margin: 0 auto;
  font-family: inherit;
  font-size: clamp(24px, min(4.2cqi, 5svh), 52px) !important;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: initial;
}

.home-hero h1 > span { display: block; white-space: nowrap; }
.home-hero h1 > span:first-child { color: var(--green-dark); }
.home-hero-phrase { white-space: nowrap; }

.home-hero-copy p {
  margin: clamp(12px, 1.8svh, 24px) auto clamp(28px, 4.5svh, 64px);
  color: #37463c;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.5;
  text-wrap: balance;
}

.home-hero a.home-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px clamp(18px, 3vw, 34px);
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-hero a.home-hero-cta:hover { background: var(--green-hover); }
.home-hero a.home-hero-cta:focus-visible { outline-offset: 4px; }

.home-hero-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.home-hero-scene::after {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(24px, 5svh, 70px);
  background: linear-gradient(#fff 10%, rgb(255 255 255 / 0));
  content: '';
  pointer-events: none;
}

.home-hero-scene img {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: min(125%, 68vw);
  object-fit: cover;
  object-position: center bottom;
}

#configurator { scroll-margin-top: 18px; }

.home-faq {
  padding-block: clamp(28px, 4.8vw, 68px) clamp(42px, 6vw, 84px);
  border-top: 1px solid #e3eae5;
}

.home-faq h2 {
  margin: 0 0 clamp(18px, 3vw, 32px) !important;
  font-size: clamp(24px, 2.7vw, 36px) !important;
  line-height: 1.2;
}

.home-faq__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 clamp(24px, 4vw, 64px);
}

.home-faq__item { border-bottom: 1px solid #dfe7e1; }
.home-faq__item:first-child { border-top: 1px solid #dfe7e1; }
.home-faq__item summary {
  min-height: 48px;
  padding-block: 13px;
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.home-faq__item summary::-webkit-details-marker { display: none; }
.home-faq__item summary::marker { content: ""; }
.home-faq__item summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-faq__item p { margin: 0; padding-bottom: 15px; color: #46554c; font-weight: 400; line-height: 1.6; }

@media (max-width: 767px) {
  .home-faq__columns { grid-template-columns: minmax(0, 1fr); }
  .home-faq__columns > :nth-child(2) .home-faq__item:first-child { border-top: 0; }
}

section#sp-gallery {
  padding-block: clamp(24px, 4vw, 64px) clamp(40px, 6vw, 88px);
}

#sp-gallery .sp-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title more" "works works";
  align-items: center;
  gap: 24px;
}

#sp-gallery .home-gallery-all {
  grid-area: more;
  justify-self: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--green-dark);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  white-space: nowrap;
}

#sp-gallery .sp-module-title {
  grid-area: title;
  margin: 0 !important;
  font-size: clamp(23px, 2.1vw, 32px) !important;
  line-height: 1.2;
}

#sp-gallery .newsflash {
  grid-area: works;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.65vw, 24px);
}

#sp-gallery .mod-articlesnews__item {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  margin: 0;
  border: 1px solid #dfe7e1;
  border-radius: 10px;
  background: #fff;
}

#sp-gallery .newsflash-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 9px 9px 0 0;
  background: #edf2ee;
}

#sp-gallery .newsflash-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

#sp-gallery .readmore { display: flex; margin: 0; }

#sp-gallery .readmore a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--green-dark);
}

#sp-gallery .readmore a::before {
  content: "↗" / "";
  order: 1;
  flex: none;
  font-size: 17px;
}

#sp-gallery .readmore a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

#sp-gallery .mod-articlesnews__item:hover { border-color: var(--green-dark); }
#sp-gallery .readmore a:focus-visible::after { outline: 2px solid var(--green-dark); outline-offset: 2px; }

@media (max-width: 991px) {
  #sp-gallery .newsflash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  #sp-gallery .sp-column { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "more" "works"; gap: 14px; }
  #sp-gallery .newsflash { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #sp-header .container-inner > .row { gap: 12px; }
  .home-brand, #sp-header .contacts { gap: 8px; }
  .home-brand-caption { padding-inline-start: 8px; font-size: 10px; }
  #sp-header .sp-megamenu-parent > li > a { font-size: 12px !important; padding-inline: 4px !important; }
  #sp-header .contacts { font-size: 10px; }
  #sp-header .contacts > a > img { max-width: 23px; }
}

@media (max-width: 991px) {
  #sp-header .container-inner > .row { min-height: 65px; gap: 12px; }
  #sp-header .row > #sp-position5 { margin-inline-start: auto; }
  #sp-header #sp-position5 .sp-module { margin-inline: 0; }
  #sp-header .row > #sp-menu { order: 3; margin-inline: 0; }
  #sp-header .contacts { gap: 8px; }
  #sp-header .contacts > a > img { max-width: 27px; }
}

@media (max-width: 575px) {
  #sp-header > .container { width: calc(100% - 20px); }
  #sp-header .container-inner > .row { gap: 8px; }
  .home-brand { gap: 6px; }
  .home-brand .logo-image { width: clamp(65px, 19vw, 85px); }
  .home-brand-caption { padding-inline-start: 6px; font-size: 10px; }
  #sp-header .contacts { gap: 6px; }
  #sp-header .contacts > a > img { max-width: 22px; }
  #sp-header #offcanvas-toggler { margin: 0; }
  .home-hero-scene::after { height: 35px; }
}

@media (max-width: 1024px) {
  .home-intro { display: block; height: auto; min-height: 0; }
  .home-hero { display: block; }
  .home-hero-copy {
    width: 100%;
    padding: 22px 12px 0;
  }
  .home-hero h1 { font-size: clamp(17px, 6.1cqi, 28px) !important; }
  .home-hero h1 > span { white-space: normal; text-wrap: balance; }
  .home-hero-copy p {
    max-width: 360px;
    margin: 14px auto 22px;
    font-size: 14px;
  }
  .home-hero a.home-hero-cta { min-height: 50px; padding: 12px 18px; font-size: 12px; }
  .home-hero-scene { height: clamp(160px, 50vw, 330px); }
  .home-hero-scene img { height: 115%; }
  #configurator h2 { text-wrap: balance; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .home-hero-copy { width: min(calc(100% - 32px), 1400px); padding: 26px 24px 0; }
  .home-hero h1 { font-size: clamp(26px, 4.2cqi, 36px) !important; }
  .home-hero-copy p { max-width: 620px; font-size: 15px; }
  .home-hero a.home-hero-cta { font-size: 13px; }
  .home-hero-scene { height: clamp(320px, 45vw, 460px); }
}

@media (max-width: 374px) {
  #sp-header > .container { width: calc(100% - 16px); }
  #sp-header .container-inner > .row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 8px;
    padding-block: 6px;
  }
  #sp-header .row > #sp-menu { grid-column: 2; grid-row: 1; }
  #sp-header .row > #sp-position5 { grid-column: 1 / -1; grid-row: 2; }
  #sp-header .phone-desctop { display: flex; }
  #sp-header .phone-mobile { display: none; }
}
