:root {
  --page-bg: var(--variable-collection-faf9f7);
  --text-main: var(--variable-collection-t1);
  --text-strong: var(--variable-collection-t2);
  --hero-bg: rgba(30, 124, 86, 0.55);
  --hero-title: var(--variable-collection-455fd3);
  --cta-fill: var(--variable-collection-819fcd);
  --cta-ghost: rgba(251, 255, 241, 0.65);
  --line-soft: rgba(155, 165, 183, 0.45);
  --footer-bg: rgba(250, 249, 247, 0.92);
  --blue: rgba(69, 95, 211, 0.8);
  --red: rgba(201, 122, 122, 0.92);
  --orange: rgba(230, 126, 50, 0.8);
  --shadow-soft: 0 18px 42px rgba(24, 34, 42, 0.08);
  --header-height: 121px;
}

html {
  background: var(--page-bg);
}

body {
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "Ploni ML v2 AAA", "Assistant", sans-serif;
}

[hidden] {
  display: none !important;
}

.home-page {
  min-height: 100vh;
  padding-top: var(--header-height);
}

.shell {
  width: min(1129px, calc(100vw - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(250, 249, 247, 0.72);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  direction: ltr;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand__logo {
  width: 46px;
  height: auto;
  display: block;
}

.brand__name {
  font-size: 26px;
  line-height: 1;
}

.site-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

html[dir="rtl"] .site-nav {
  direction: rtl;
}

.site-nav a,
.mobile-nav a,
.lang-switch,
.mobile-lang {
  color: var(--text-strong);
  font-size: 26px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover,
.lang-switch:hover,
.mobile-lang:hover {
  opacity: 0.7;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch,
.mobile-lang {
  min-width: 32px;
}

.menu-toggle,
.drawer-close {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 42px;
  height: 42px;
  position: relative;
  cursor: pointer;
}

.menu-toggle span,
.drawer-close span {
  position: absolute;
  inset-inline: 8px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 999px;
}

.menu-toggle span:first-child {
  top: 15px;
}

.menu-toggle span:last-child {
  top: 25px;
}

.drawer-close span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.drawer-close span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.26);
  z-index: 38;
}

.mobile-drawer {
  position: fixed;
  inset-inline: 0;
  top: 0;
  width: min(430px, 100vw);
  min-height: 374px;
  margin: 0 auto;
  padding: 50px 24px 38px;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(14px);
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.mobile-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  direction: ltr;
}

.mobile-nav {
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  margin-top: 18px;
}

html[dir="ltr"] .mobile-nav {
  align-items: flex-start;
}

.mobile-lang {
  align-self: flex-end;
  font-size: 24px;
}

html[dir="ltr"] .mobile-lang {
  align-self: flex-start;
}

.hero {
  padding-top: 8px;
}

.hero__panel {
  min-height: 337px;
  background: var(--hero-bg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
  padding: 52px 37px;
  position: relative;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: flex-start;
}

.hero__title {
  color: var(--hero-title);
  font-family: "Ploni ML v2 AAA", "Assistant", sans-serif;
  font-size: 70px;
  line-height: 0.95;
  max-width: 760px;
}

.hero__subtitle {
  font-size: 36px;
  line-height: 1.12;
  max-width: 675px;
  white-space: pre-line;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 5px 20px;
  border-radius: 12px;
  font-size: 30px;
  line-height: 1;
  color: var(--text-main);
}

.button--ghost {
  background: var(--cta-ghost);
  min-width: 254px;
  position: static;
  margin: 0;
  z-index: 2;
}

.button--solid {
  background: var(--cta-fill);
  min-width: 194px;
}

.cards-showcase {
  margin-top: 10px;
}

.desktop-cards,
.mobile-carousel {
  position: relative;
  z-index: 1;
}

.desktop-cards-stage {
  display: none;
}

.desktop-cards {
  display: flex;
  gap: 17px;
  align-items: stretch;
}

.desktop-cards:dir(rtl),
html[dir="rtl"] .desktop-cards {
  flex-direction: row-reverse;
}

.svg-card {
  flex: 1 1 0;
  aspect-ratio: 342 / 234;
  min-width: 0;
  position: relative;
  overflow: hidden;
  --card-frame-width: 6px;
  background: transparent;
  box-sizing: border-box;
}

.svg-card--blue {
  background: var(--blue);
}

.svg-card--red {
  background: var(--red);
}

.svg-card--orange {
  background: var(--orange);
}

.svg-card__face {
  position: absolute;
  inset: var(--card-frame-width);
  width: calc(100% - (var(--card-frame-width) * 2));
  height: calc(100% - (var(--card-frame-width) * 2));
  object-fit: fill;
  display: block;
  transition: opacity 0.28s ease;
}

.svg-card__face--back {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .svg-card:hover .svg-card__face--front,
  .svg-card:focus-within .svg-card__face--front {
    opacity: 0;
  }

  .svg-card:hover .svg-card__face--back,
  .svg-card:focus-within .svg-card__face--back {
    opacity: 1;
  }
}

.mobile-carousel {
  display: none;
}

.divider {
  margin: 42px 0 36px;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.content {
  display: grid;
  gap: 58px;
  padding-bottom: 92px;
}

.intro__lead,
.section-text,
.section-list {
  color: var(--text-main);
}

.intro__lead {
  font-size: 40px;
  line-height: 1.12;
  max-width: 744px;
  white-space: pre-line;
}

.info-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.info-block__copy {
  display: grid;
  gap: 26px;
}

.section-title {
  color: var(--text-strong);
  font-size: 44px;
  line-height: 1.05;
}

.section-list {
  list-style: disc outside;
  list-style-position: outside;
  direction: inherit;
  text-align: start;
  padding-inline-start: 38px;
  font-size: 40px;
  line-height: 1.12;
}

.section-list li + li {
  margin-top: 6px;
}

.wood-card {
  width: 527px;
  max-width: 100%;
}

.feature-video {
  width: 100%;
  display: block;
  cursor: pointer;
}

.text-section {
  max-width: 744px;
  display: grid;
  gap: 20px;
}

.section-text {
  font-size: 40px;
  line-height: 1.12;
  white-space: pre-line;
}

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
}

.cta-section__copy {
  max-width: 744px;
  display: grid;
  gap: 20px;
}

.cta-section .button--solid {
  align-self: auto;
  width: fit-content;
  margin-inline-start: 0;
  margin-inline-end: 0;
  margin-inline-end: auto;
}

.site-footer {
  background: var(--footer-bg);
  backdrop-filter: blur(14px);
  padding: 28px 0 38px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  align-items: start;
}

.site-footer__grid section {
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.35;
}

.site-footer__title {
  font-family: "Ploni ML v2 AAA", "Assistant", sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.site-footer__links a,
.site-footer__partner-copy a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: rgba(155, 165, 183, 0.8);
  text-underline-offset: 2px;
}

.site-footer__logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.site-footer__logos img:first-child {
  width: 42px;
}

.site-footer__logos img:last-child {
  width: 58px;
}

html[dir="rtl"] .site-footer__brand,
html[dir="rtl"] .site-footer__partners,
html[dir="rtl"] .site-footer__about {
  text-align: right;
}

html[dir="ltr"] .site-footer__brand,
html[dir="ltr"] .site-footer__partners,
html[dir="ltr"] .site-footer__about {
  text-align: left;
}

html[dir="ltr"] .site-footer__grid .site-footer__brand {
  order: 1;
}

html[dir="ltr"] .site-footer__grid .site-footer__partners {
  order: 2;
}

html[dir="ltr"] .site-footer__grid .site-footer__about {
  order: 3;
}

html[dir="rtl"] .site-footer__grid .site-footer__brand {
  order: 3;
}

html[dir="rtl"] .site-footer__grid .site-footer__partners {
  order: 2;
}

html[dir="rtl"] .site-footer__grid .site-footer__about {
  order: 1;
}

@media (max-width: 980px) {
  :root {
    --header-height: 112px;
  }

  .shell {
    width: min(392px, calc(100vw - 38px));
  }

  .site-nav,
  .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .drawer-close {
    display: inline-block;
  }

  .site-header__inner {
    min-height: 112px;
  }

  html[dir="ltr"] .site-header__inner {
    direction: rtl;
  }

  .site-header .brand__name {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero__panel {
    display: flex;
    min-height: 261px;
    width: 100%;
    padding: 28px 25px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .hero__copy {
    gap: 16px;
  }

  .hero__title {
    font-size: 50px;
    line-height: 0.92;
    max-width: none;
  }

  html[lang="en"] .hero__title {
    font-size: 46px;
  }

  .hero__subtitle {
    font-size: 24px;
    line-height: 1.04;
    max-width: 281px;
  }

  html[lang="en"] .hero__subtitle {
    max-width: 350px;
  }

  .button {
    min-height: 39px;
    font-size: 24px;
    border-radius: 5px;
  }

  .button--ghost,
  .button--solid {
    width: 100%;
    min-width: 0;
  }

  .button--ghost {
    position: static;
    margin-top: 2px;
  }

  .desktop-cards-stage,
  .desktop-cards {
    display: none;
  }

  .mobile-carousel {
    display: block;
    background: transparent;
    margin-top: 0;
  }

  .mobile-carousel__viewport {
    overflow: hidden;
    transition: background-color 0.25s ease;
  }

  .mobile-carousel[data-theme="blue"] .mobile-carousel__viewport {
    background: var(--blue);
  }

  .mobile-carousel[data-theme="red"] .mobile-carousel__viewport {
    background: var(--red);
  }

  .mobile-carousel[data-theme="orange"] .mobile-carousel__viewport {
    background: var(--orange);
  }

  .mobile-carousel__track {
    display: flex;
    direction: ltr;
    transition: transform 0.32s ease;
    will-change: transform;
  }

  .mobile-slide {
    flex: 0 0 100%;
    padding: 0;
    direction: ltr;
    display: flex;
    justify-content: center;
  }

  .mobile-slide__image {
    display: block;
    width: 392px;
    height: 138px;
    max-width: 100%;
    object-fit: contain;
  }

  .mobile-carousel__dots {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 0 0;
  }

  .mobile-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(65, 65, 65, 0.24);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .mobile-carousel__dot.is-active {
    background: rgba(65, 65, 65, 0.84);
  }

  .divider {
    margin: 34px 0 30px;
  }

  .content {
    gap: 36px;
    padding-bottom: 54px;
  }

  .intro__lead,
  .section-title,
  .section-text,
  .section-list {
    max-width: 392px;
  }

  .intro__lead,
  .section-title,
  .section-text,
  .section-list {
    font-size: 24px;
    line-height: 1.04;
  }

  .section-list {
    list-style: disc outside;
    list-style-position: outside;
    direction: inherit;
    text-align: start;
    padding-inline-start: 24px;
  }

  .info-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .info-block__copy {
    gap: 14px;
  }

  .wood-card {
    width: 100%;
  }

  .cta-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .site-footer {
    padding: 42px 0 38px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__grid section {
    font-size: 12px;
  }

  .site-footer__title {
    font-size: 12px;
  }

  .site-footer__links {
    gap: 6px 12px;
  }

  .site-footer__logos img:first-child {
    width: 34px;
  }

  .site-footer__logos img:last-child {
    width: 48px;
  }

  /* Match the shared mobile drawer used by the inner screens. */
  .mobile-drawer {
    width: 100%;
    min-height: 0;
    height: 374px;
    padding: 0;
    gap: 0;
    background: #faf9f7;
  }

  .mobile-drawer__header {
    display: block;
  }

  .drawer-close {
    position: absolute;
    top: 69px;
    right: 12px;
    left: auto;
  }

  .mobile-nav {
    width: 100%;
    margin-top: 132px;
    gap: 0;
    align-items: stretch;
  }

  html[dir="ltr"] .mobile-nav {
    align-items: stretch;
  }

  .mobile-nav a,
  .mobile-lang {
    width: 100%;
    padding: 8px 24px 10px;
    font-size: 20px;
    line-height: 1;
    text-align: start;
  }

  .mobile-lang,
  html[dir="ltr"] .mobile-lang {
    align-self: auto;
  }
}
