.home {
  --home-ink: #243648;
  --home-muted: #526170;
  --home-line: #dedfdf;
  --home-paper: #f1f0ed;
  --home-blue: #e5edf0;
  --home-radius: .9rem;
}
.home a:not(.cta):focus-visible { text-decoration: underline; }
.home-main { padding-bottom: 3rem; }
.home-main h1, .home-main h2, .home-main h3, .home-main p { margin: 0; }
.home-main h1 {
  font-size: clamp(1.85rem, 3.7vw, 2.5rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.home-main h2 {
  font-size: clamp(1.5rem, 2.65vw, 1.875rem);
  letter-spacing: -.025em;
  margin-bottom: .9rem;
}
.home-main h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.home-main p { color: var(--home-muted); }
.home-main .cta { border-radius: .45rem; }
.home-carousel {
  --slide-width: clamp(36rem, 57vw, 66rem);
  --slide-height: clamp(21rem, 26vw, 29rem);
  position: relative;
  padding: .9rem 0 .15rem;
  background: #fff;
}
.home-carousel [hidden] { display: none !important; }
.home-carousel-viewport { overflow: hidden; }
.home-carousel-viewport:not(.swiper-initialized) .home-slides { justify-content: center; }
.home-carousel .home-slide {
  position: relative;
  isolation: isolate;
  display: flex;
  width: var(--slide-width);
  height: var(--slide-height);
  overflow: hidden;
  border-radius: .85rem;
  background: var(--home-ink);
  color: #fff;
}
.home-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #152839f5 0%, #182b3ce8 22%, #1c2e3c9c 51%, #192c3e20 83%);
}
.home-slide-inner { display: flex; align-items: center; width: 100%; padding-inline: clamp(1.25rem, 3.5vw, 3.25rem); }
.home-hero-content { max-width: 31rem; padding-block: 1.5rem; }
.home-main .home-label { color: var(--home-ink); font-size: .875rem; font-weight: 650; }
.home-label::before {
  content: "";
  display: inline-block;
  width: 1.3rem;
  height: 2px;
  margin-right: .55rem;
  background: #b99563;
  vertical-align: middle;
}
.home-slide :is(h1,h2) { margin-block: .65rem .8rem; font-size: clamp(2rem, 3.4vw, 2.65rem); line-height: 1.12; }
.home-slide .home-hero-content p { color: #f1f0ed; }
.home-slide .home-label { color: #f5ddbb; }
.home-hero-content .cta { margin-top: 1.2rem; color: #162735; background: #d0ae81; }
.home-hero-content .cta:hover { background: #e1c095; }
.home-carousel .home-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 54% 56%;
}
.home-carousel .home-hero-photo-door { object-position: 50% 46%; }
.home-carousel-bar, .home-carousel-dots { display: flex; align-items: center; justify-content: center; gap: .35rem; }
.home-carousel-nav { display: contents; }
.home-carousel button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #dfe5e8;
  border-radius: 50%;
  background: #fff;
  color: var(--home-ink);
  font: inherit;
  cursor: pointer;
}
.home-carousel button:hover { background: var(--home-blue); }
.home-carousel [data-hero-prev], .home-carousel [data-hero-next] {
  position: absolute;
  z-index: 2;
  top: calc(.9rem + var(--slide-height) / 2);
  box-shadow: 0 2px 8px #24364821;
}
.home-carousel [data-hero-prev] { left: calc((100% - var(--slide-width)) / 2); transform: translate(-50%, -50%); }
.home-carousel [data-hero-next] { right: calc((100% - var(--slide-width)) / 2); transform: translate(50%, -50%); }
.home-carousel-dots button { width: 2.25rem; border-color: transparent; background: transparent; }
.home-carousel-dots button::after { content: ""; width: .55rem; height: .55rem; border-radius: .4rem; background: #bccbd1; }
.home-carousel-dots button[aria-current="true"]::after { width: 1.5rem; background: var(--home-ink); }
.home-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  gap: .75rem;
  margin: .5rem 0 0;
  padding: 0;
}
.home-facts li {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: .85rem .75rem;
  background: var(--home-paper);
  border: 1px solid #e9e5de;
  border-radius: var(--home-radius);
}
.home-facts .home-fact-image {
  width: clamp(3rem, 5.8vw, 5.1rem);
  height: auto;
  flex: none;
}
.home-facts h2 { margin: 0 0 .28rem; font-size: 1.05rem; line-height: 1.23; }
.home-facts p { font-size: .875rem; line-height: 1.35; }
.home-section { margin-top: clamp(1.5rem, 3.35vw, 2.6rem); scroll-margin-top: 1rem; }
.home-services, .home-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.home-service {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--home-paper);
  text-decoration: none;
}
.home-service:hover { border-color: var(--blue); }
.home-service img { display: block; width: 100%; aspect-ratio: 2.12; object-fit: cover; }
.home-service-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .65rem;
  padding: 1rem .85rem;
}
.home-service-text > div { flex: 1 1 8rem; min-width: 0; }
.home-service p { margin-top: .2rem; font-size: .875rem; line-height: 1.35; }
.home-section:has(> .home-accent-heading) { margin-top: clamp(2.25rem, 4.5vw, 3.75rem); }
.home-main .home-accent-heading { margin-bottom: .75rem; }
.home-accent-heading::after { content: ""; display: block; width: 4.5rem; height: 3px; margin-top: .7rem; background: var(--brass); }
.home-main .home-section-description { max-width: 72ch; margin: 0 0 clamp(1.25rem, 2.4vw, 1.85rem); color: var(--home-muted); font-size: 1rem; }
.home-price {
  display: inline-block;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: var(--home-blue);
  color: var(--home-ink);
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.home-service-text .home-price { margin-inline-start: auto; }
.home-window-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.home-window-option {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: .85rem;
  background: var(--home-paper);
  border: 1px solid #e9e5de;
  border-radius: var(--home-radius);
}
.home-window-option img {
  width: 100%;
  aspect-ratio: 320 / 260;
  object-fit: contain;
}
.home-window-option h3 { margin-bottom: .2rem; }
.home-window-option .cta { margin-top: auto; font-size: .9rem; text-align: center; padding-inline: .45rem; }
@media (max-width: 56rem) {
  .home-window-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 27rem) {
  .home-window-options { gap: .55rem; }
  .home-window-option { padding: .55rem; }
  .home-window-option h3 { font-size: .98rem; overflow-wrap: anywhere; }
  .home-window-option .cta { font-size: .82rem; }
  .home-window-option .cta .osnova-icon { display: none; }
}
.home-projects .home-three article, .home-profiles .home-three > div {
  padding: .85rem 1rem;
  background: var(--home-paper);
  border-radius: .65rem;
}
.home-three h3 { margin-bottom: .35rem; }
.home-three p, .home-projects a { font-size: .9rem; }
.home-projects a { display: inline-block; margin-top: .35rem; text-underline-offset: .18rem; }
.home-projects .home-three article {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.home-project-icon {
  display: block;
  flex: none;
  width: clamp(3.8rem, 6.8vw, 6rem);
  height: auto;
}
.home-project-copy { min-width: 0; }
@media (min-width: 27.01rem) and (max-width: 53rem) {
  .home-projects .home-three article { align-items: flex-start; flex-direction: column; }
}
.home-profiles .home-three > div { background: var(--home-blue); }
.home-profile-logos {
  --logo-gap: clamp(.7rem, 1vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  gap: var(--logo-gap);
  margin: .65rem 0 0;
  padding: 0;
  list-style: none;
}
.home-profile-logos li {
  flex: 0 1 calc((100% - 2 * var(--logo-gap)) / 3);
  min-width: 0;
  max-width: 7.5rem;
  height: 3.65rem;
  padding: .55rem;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: .5rem;
}
.home-profile-logos img {
  display: block;
  width: 100%;
  height: 2.4rem;
  object-fit: contain;
}
@media (max-width: 53rem) {
  .home-profiles .home-three { grid-template-columns: 1fr; }
}
.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.home-featured-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: var(--home-paper);
  border-radius: var(--home-radius);
}
.home-featured-door, .home-featured-roof { grid-column: span 3; }
.home-featured-photo { position: relative; }
.home-featured-photo img {
  display: block;
  width: 100%;
  height: clamp(11rem, 21vw, 18rem);
  object-fit: cover;
}
.home-featured-photo .home-price {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: #fff;
  box-shadow: 0 .15rem .55rem #24364830;
}
.home-featured-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: clamp(1rem, 2.4vw, 1.55rem);
}
.home-featured-copy p { max-width: 52ch; margin: 0 0 .4rem; }
.home-featured-copy a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding: .5rem .75rem;
  border: 1px solid var(--home-line);
  border-radius: .5rem;
  background: #fff;
  color: var(--home-ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.home-featured-copy a:hover { background: var(--home-blue); }
.home-featured-copy a::after { content: ""; position: absolute; inset: 0; }
.home-featured-card:hover { box-shadow: 0 0 0 2px var(--blue); }
.home-featured-card:focus-within { outline: 3px solid var(--brass); outline-offset: 3px; }
.home-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 1.15rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1rem, 3vw, 2.4rem);
  background: var(--home-paper);
  border-radius: var(--home-radius);
}
.home-quote, .home-offer {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border-radius: var(--home-radius);
  background: var(--home-paper);
}
.home-about-inner, .home-quote {
  display: grid;
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4.25rem);
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  padding: clamp(1rem, 3vw, 2.4rem);
}
.home-about { background: #fff; }
.home-about-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 37%);
  gap: clamp(1.25rem, 4vw, 3.75rem);
  padding: 0;
}
.home-about img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--home-radius);
}
.home-about-copy p + p { margin-top: .7rem; }
.home-quote {
  background: var(--home-blue);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-quote > img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  justify-self: center;
}
.home-quote-copy { width: 100%; max-width: 30rem; }
.home-quote h2, .home-about h2, .home-offer h2 { margin-bottom: .55rem; }
.home-quote .osnova-quote-form { margin-top: .75rem; }
.home-quote .osnova-quote-form > p + p { margin-top: .5rem; }
.home-quote .osnova-quote-form label { font-size: .875rem; }
.home-quote .osnova-quote-form input[type="submit"] {
  min-height: 2.7rem;
  margin-top: 1rem;
  padding: .45rem .8rem;
}
.home-offer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.home-process { text-align: center; }
.home-process h2 { margin-bottom: clamp(1.25rem, 2.75vw, 2.5rem); }
.home-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-process-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--home-line);
  margin-bottom: clamp(.75rem, 1.6vw, 1.25rem);
}
.home-process-visual img { display: block; width: 65%; height: auto; }
.home-process-grid h3 { margin-bottom: .35rem; }
.home-process-grid p { color: var(--home-muted); font-size: .925rem; }
.home-faq-intro p { max-width: 38ch; }
.home-faq-intro img { display: block; width: min(100%, 9.5rem); height: auto; margin-top: .85rem; }
.home-faq-list { display: grid; gap: .55rem; }
.home-faq details { border: 1px solid var(--home-line); border-radius: .65rem; background: #fff; }
.home-faq details[open] { border-color: #9db2bf; }
.home-faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.85rem;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border-radius: .6rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
  content: "";
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / .65rem 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px .65rem no-repeat var(--home-blue);
}
.home-faq details[open] summary::after { background-size: .65rem 1.5px, 0 0; }
.home-faq details p { padding: 0 .9rem .85rem; color: var(--home-muted); }

@media (max-width: 64rem) {
  .home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 43rem) {
  .home-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-about-inner, .home-quote, .home-faq, .home-featured-grid { grid-template-columns: 1fr; }
  .home-faq-intro img { width: clamp(4rem, 18vw, 6rem); }
  .home-featured-card { grid-column: auto; }
  .home-quote > img { max-width: 23rem; }
  .home-carousel { --slide-width: calc(100% - 2rem); --slide-height: 22rem; }
  .home-slide-inner { padding-inline: 2.15rem; }
  .home-slide::after { background: linear-gradient(90deg, #152839ed, #182b3ca6 72%, #182b3c68); }
  .home-hero-content { padding-block: 1.25rem; }
  .home-carousel [data-hero-prev] { left: .25rem; transform: translateY(-50%); }
  .home-carousel [data-hero-next] { right: .25rem; transform: translateY(-50%); }
  .home-carousel-bar { margin-top: .2rem; }
  .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-projects .home-three { grid-template-columns: 1fr; }
  .home-facts, .home-main:not(.inner-support) .home-process-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .45rem;
  }
  .home-facts { gap: .65rem; }
  .home-main:not(.inner-support) .home-process-grid { grid-auto-columns: 60%; }
  .home-facts li, .home-main:not(.inner-support) .home-process-grid li { scroll-snap-align: start; min-width: 0; }
  .home-facts li { align-items: flex-start; flex-direction: column; gap: .4rem; padding: .7rem; }
  .home-facts .home-fact-image { width: 3.75rem; }
}
@media (max-width: 27rem) {
  .home-service-text { padding: .85rem .65rem; }
  .home-service h3 { font-size: 1rem; overflow-wrap: anywhere; }
  .home-profiles .home-three { grid-template-columns: 1fr; }
  .home-offer { align-items: flex-start; flex-direction: column; }
}
