.site-home {
  --home-bg: #edf6ff;
  --home-bg-soft: #f8fbff;
  --home-bg-panel: #f2f8fe;
  --home-hero: #9ebed9;
  --home-hero-topbar: rgba(88, 125, 157, 0.92);
  --home-accent: #6c90af;
  --home-accent-strong: #4b7396;
  --home-accent-dark: #314b63;
  --home-text: #23384a;
  --home-text-soft: #667f95;
  --home-border: rgba(108, 144, 175, 0.14);
  --home-shadow: rgba(72, 102, 128, 0.1);
  background:
    radial-gradient(circle at top left, rgba(132, 180, 222, 0.2), transparent 28%),
    linear-gradient(180deg, var(--home-bg) 0%, var(--home-bg-soft) 28%, var(--home-bg) 100%);
  color: var(--home-text);
}

.site-home .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.home-main {
  overflow: hidden;
}

.home-stage {
  position: relative;
  height: 680px;
  background:
    radial-gradient(circle at 15% 40%, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(180deg, var(--home-hero) 0%, #8fb5d6 100%);
}

.home-slider {
  position: relative;
  height: 680px;
}

.home-slide {
  display: none;
}

.home-slide.is-active {
  display: block;
  height: 100%;
}

.home-slide__inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
  height: 100%;
  padding: 60px 0 80px;
}

.home-slide__copy {
  max-width: 420px;
  color: #f4f9ff;
  padding-left: 92px;
}

.home-slide__label,
.home-section__label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.home-story .home-section__label,
.home-products .home-section__label,
.home-applications .home-section__label,
.home-news-contact .home-section__label {
  color: var(--home-accent);
}

.home-slide__copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.home-slide__line {
  width: 108px;
  height: 1px;
  margin: 28px 0 26px;
  background: rgba(255, 255, 255, 0.78);
}

.home-slide__copy p:last-of-type {
  margin: 0;
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}

.home-slide__figure {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 400px;
}

.home-slide__figure img {
  width: min(100%, 500px);
  max-height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 35px 50px rgba(67, 99, 127, 0.2));
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.home-link::after {
  content: "⇀";
}

.home-link--dark {
  color: var(--home-accent-dark);
}

.home-link--ghost {
  color: var(--home-accent);
}

.home-slider__dots {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 3;
  display: grid;
  gap: 16px;
  transform: translateY(-50%);
}

.home-slider__dots button {
  width: 44px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.home-slider__dots button.is-active {
  width: 54px;
  background: rgba(255, 255, 255, 0.96);
}

.home-stage__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
}

.home-stage__tail {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.home-slider__controls {
  display: inline-flex;
  gap: 18px;
}

.home-slider__controls button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  letter-spacing: 0.12em;
}

.home-float {
  position: fixed;
  right: 10px;
  top: 46%;
  z-index: 25;
  display: grid;
  gap: 10px;
}

.home-float a,
.home-float button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(79, 117, 149, 0.24);
}

.home-float > a,
.home-float > button {
  justify-self: end;
}

.home-float button:first-child {
  background: #7ca7cb;
}

.home-float a {
  background: #4f87d8;
}

.home-float svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.gallery-preview-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.home-license-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.home-license-button:hover,
.home-license-button:focus-visible {
  text-decoration: underline;
}

.home-float .home-float__phone {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 0;
  width: 46px;
  padding: 0 11px;
  border-radius: 23px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  transition: width 0.25s ease, gap 0.25s ease, padding 0.25s ease;
}

.home-float__phone span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}

.home-float .home-float__phone:hover,
.home-float .home-float__phone:focus-visible {
  width: 174px;
  gap: 8px;
  padding: 0 14px;
}

.home-float__phone:hover span,
.home-float__phone:focus-visible span {
  max-width: 120px;
  opacity: 1;
}

.gallery-lightbox--qr .gallery-lightbox__box {
  width: min(480px, 90vw);
}

.gallery-lightbox--qr .gallery-lightbox__box img {
  max-height: 70vh;
}

.home-story,
.home-products,
.home-applications,
.home-news-contact {
  padding: 110px 0;
}

.home-story {
  background: #fbfdff;
}

.home-story__factory {
  margin: 48px auto 0;
  max-width: 960px;
  border-radius: 24px;
  overflow: hidden;
}

.home-story__factory img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.home-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.home-story__copy h2,
.home-heading h2,
.home-contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.15;
  color: var(--home-accent-dark);
}

.home-story__copy p:not(.home-section__label) {
  margin: 22px 0 0;
  line-height: 2;
  color: var(--home-text-soft);
}

.home-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-value {
  padding: 28px 26px;
  border-radius: 24px;
  background: var(--home-bg-panel);
  border: 1px solid var(--home-border);
}

.home-value span {
  display: inline-block;
  margin-bottom: 18px;
  color: #88a8c3;
  font-size: 1.8rem;
  font-family: "DIN Alternate", "Impact", sans-serif;
}

.home-value h3 {
  margin: 0 0 10px;
  color: var(--home-accent-dark);
}

.home-value p {
  margin: 0;
  line-height: 1.85;
  color: var(--home-text-soft);
}

.home-products {
  background:
    radial-gradient(circle at top right, rgba(132, 180, 222, 0.12), transparent 24%),
    #f3f8fd;
}

.home-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.home-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.home-heading p:last-child {
  margin: 16px 0 0;
  line-height: 1.9;
  color: var(--home-text-soft);
}

.home-product-grid,
.home-application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-product-card,
.home-application,
.home-news-card,
.home-contact-panel {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--home-border);
  background: #fff;
  box-shadow: 0 26px 56px var(--home-shadow);
}

.home-product-card img,
.home-application img,
.home-news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, #edf6ff 0%, #d6e7f6 100%);
}

.home-product-card__body,
.home-application__body,
.home-news-card__body {
  padding: 24px;
}

.home-product-card__body h3,
.home-application__body h3,
.home-news-card__body h3 {
  margin: 0 0 10px;
  color: var(--home-accent-dark);
}

.home-product-card__body p,
.home-application__body p,
.home-news-card__body p {
  margin: 0;
  line-height: 1.85;
  color: var(--home-text-soft);
}

.home-product-card__body a,
.home-news-card__body a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--home-accent);
  font-weight: 700;
}

.home-product-card__body a::after,
.home-news-card__body a::after {
  content: "⇀";
}

.home-applications {
  background: #fbfdff;
}

.home-news-contact {
  background:
    radial-gradient(circle at left top, rgba(132, 180, 222, 0.12), transparent 22%),
    #eef5fc;
}

.home-news-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.home-news-list {
  display: grid;
  gap: 24px;
}

.home-news-card {
  display: grid;
  grid-template-columns: minmax(210px, 280px) 1fr;
  align-items: stretch;
}

.home-news-card img {
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.home-news-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.home-contact-panel {
  padding: 30px 28px;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f8ff 100%);
}

.home-contact-panel dl {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
}

.home-contact-panel div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(108, 144, 175, 0.16);
}

.home-contact-panel dt {
  margin-bottom: 8px;
  color: var(--home-accent);
  font-weight: 700;
}

.home-contact-panel dd {
  margin: 0;
  color: var(--home-accent-dark);
  line-height: 1.8;
}

.home-contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.home-contact-panel__qrcode {
  margin: 32px 0 0;
  text-align: center;
}

.home-contact-panel__qrcode img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--home-border);
}

.home-contact-panel__qrcode figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--home-text-soft);
}

.footer--home {
  padding-bottom: 92px;
  background: #5c7b98;
}

@media (max-width: 1180px) {
  .home-story__grid,
  .home-heading--split,
  .home-news-contact__grid {
    grid-template-columns: 1fr;
  }

  .home-slide__figure {
    min-height: 420px;
  }

  .home-product-grid,
  .home-application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-stage,
  .home-slider,
  .home-slide__inner {
    height: auto;
    min-height: auto;
  }

  .home-slide__inner {
    grid-template-columns: 1fr;
    padding: 44px 0 120px;
  }

  .home-slide__copy {
    padding-left: 0;
  }

  .home-slide__figure {
    order: -1;
    min-height: 320px;
  }

  .home-slider__dots {
    left: 16px;
    top: auto;
    bottom: 110px;
    transform: none;
  }

  .home-story,
  .home-products,
  .home-applications,
  .home-news-contact {
    padding: 84px 0;
  }

  .home-values,
  .home-product-grid,
  .home-application-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-home .topbar {
    background: rgba(88, 125, 157, 0.96);
  }

  .home-slide__copy h1 {
    font-size: 2.5rem;
  }

  .home-news-card {
    grid-template-columns: 1fr;
  }

  .home-news-card img {
    height: 180px;
    min-height: 0;
  }

  .home-stage__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-stage__tail {
    gap: 12px;
  }

  .home-float {
    display: none;
  }

  .home-contact-panel {
    padding: 24px 20px;
  }
}
