/* Homepage layout. Shared product, line and contact styles live in style.css. */
.home-page {
  --home-ink: #102b44;
  --home-muted: #4c6378;
  --home-blue: #105993;
  --home-border: #dbe6ef;
}

.home-page .top-bar {
  background: #102b44;
  border-bottom: 2px solid #ff7d1a;
}

.home-page .nav { gap: 14px; }
.home-page .logo { white-space: nowrap; }
.home-page .nav-links { gap: clamp(12px, 1.55vw, 25px); }
.home-page .lang-switch { margin: 0; }
.home-page .home-nav-quote {
  background: #105993;
  color: #fff;
  padding-inline: 18px;
  white-space: nowrap;
}
.home-page .home-nav-quote:hover { background: #0e4470; }

.home-page :where(a, button):focus-visible {
  outline: 3px solid #ce5805;
  outline-offset: 3px;
}

.home-hero.hero {
  padding: clamp(30px, 4.4vw, 64px) 0;
  text-align: left;
  background: linear-gradient(111deg, #102941, #164c70);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.home-hero h1 {
  max-width: 560px;
  margin: 0 0 15px;
  font-size: clamp(36px, 3.8vw, 57px);
  line-height: 1.11;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.home-hero p {
  max-width: 475px;
  margin: 0 0 24px;
  color: #e0edf7;
  font-size: clamp(16px, 1.45vw, 19px);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-page :is(.home-btn-light, .home-btn-outline) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid transparent;
  font-size: 15px;
  text-align: center;
}

.home-page .home-btn-light { background: #fff; color: var(--home-ink); }
.home-page .home-btn-light:hover { background: #e2eff9; color: #102b44; }
.home-page .home-btn-outline { background: transparent; border-color: #a9c6dc; color: #fff; }
.home-page .home-btn-outline:hover { background: #285979; }

.home-hero-figure {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.37);
  border-radius: 12px;
  background: #0b2741;
}

.home-hero-figure a { display: block; color: #fff; }
.home-hero-figure a:focus-visible { outline-offset: -4px; }
.home-hero-figure img { width: 100%; height: auto; display: block; }
.home-hero-figure a > span {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}
.home-hero-figure a:hover > span { background: #163d5d; }

.home-section {
  padding: clamp(33px, 5vw, 64px) 0;
  scroll-margin-top: 108px;
}

.home-section-heading { margin-bottom: 24px; }
.home-section-heading h2 {
  color: var(--home-ink);
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.2;
  margin: 0 0 7px;
}
.home-section-heading p { color: var(--home-muted); }

.home-machines,
.home-line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 2vw, 23px);
}

.home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  overflow: hidden;
}
.home-machine-photo,
.home-line-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #e7eef4;
}
.home-machine-photo {
  flex: 0 0 auto;
  height: clamp(218px, 22vw, 268px);
  padding: 15px 17px;
}
.home-machine-photo img,
.home-line-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.home-card > a:focus-visible { outline-offset: -4px; }
.home-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 19px 15px;
}
.home-card h3 { color: var(--home-ink); font-size: 19px; line-height: 1.28; margin-bottom: 7px; }
.home-card h3 a { color: inherit; }
.home-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-card p { margin-bottom: 9px; color: var(--home-muted); font-size: 15px; }

.home-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--home-blue);
  font-weight: 650;
}
.home-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-card .home-text-link { margin-top: auto; }

.home-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 20px;
  margin-top: 21px;
}
.home-more h3 { font-size: 16px; color: var(--home-ink); }
.home-more ul { display: flex; flex-wrap: wrap; list-style: none; gap: 0 15px; }
.home-more a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--home-blue);
  font-size: 14px;
}
.home-more a:hover { text-decoration: underline; text-underline-offset: 3px; }

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-category-grid a {
  display: flex;
  height: 100%;
  gap: 5px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: #fff;
  color: var(--home-blue);
  line-height: 1.35;
}
.home-category-grid a:hover { border-color: var(--home-blue); }
.home-category-grid span { color: var(--home-muted); font-size: 14px; }
@media (max-width: 700px) {
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-lines { background: #f1f6fa; }
.home-section-split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 5px 20px;
  flex-wrap: wrap;
}
.home-line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-line-photo {
  flex: 0 0 auto;
  height: clamp(175px, 19vw, 232px);
  padding: 7px 16px;
}

.home-quote.cta-band {
  padding: clamp(30px, 4.4vw, 54px) 0;
  text-align: left;
}
.home-quote .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
}
.home-quote h2 { line-height: 1.25; margin-bottom: 6px; }
.home-quote p { color: #e0edf7; margin: 0; }

@media (max-width: 1000px) {
  .home-page .nav { position: relative; gap: 9px; }
  .home-page .nav .logo { flex: 1; font-size: clamp(16px, 4.35vw, 22px); }
  .home-page .nav-burger { display: flex; flex: 0 0 44px; width: 44px; height: 44px; }
  .home-page .nav .chat-btn { display: none; }
  .home-page .nav > .btn.home-nav-quote { display: inline-flex; align-items: center; min-height: 44px; }
  .home-page .nav .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 112px);
    background: #102b44;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: 8px 20px 14px;
    box-shadow: 0 10px 22px rgba(15,39,68,.2);
  }
  .home-page .nav.open .nav-links { display: flex; }
  .home-page .nav .nav-links a {
    display: block;
    padding: 13px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }
  .home-page:has(.nav.open) .wa-float { display: none; }
}

@media (max-width: 700px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-hero h1 { font-size: clamp(29px, 7.7vw, 43px); }
  .home-hero p { margin-bottom: 17px; }
  .home-machines, .home-line-grid { grid-template-columns: 1fr; }
  .home-machine-photo { padding: 11px 14px; }
  .home-quote .container { padding-right: 70px; }
}

@media (max-width: 480px) {
  .home-page .container { padding-inline: 16px; }
  .home-page .top-bar { padding-inline: 8px; font-size: 11.5px; }
  .home-page .nav { height: 60px; gap: 7px; }
  .home-page .nav .logo { font-size: clamp(15px, 4.25vw, 18px); }
  .home-page .nav .home-nav-quote { font-size: 13px; padding-inline: 9px; }
  .home-page .lang-switch { padding: 8px 9px; }
  .home-section { scroll-margin-top: 104px; }
  .home-page .wa-float {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }
  .home-page .home-quote .container { padding-right: 66px; }
}
