/* style_home.css — Homepage redesign styles */

/* ── Base font for homepage ───────────────── */
body,
.home-header,
.home-hero,
.home-trust,
.home-products,
.home-timeline,
.home-contact,
.home-footer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ── Header ───────────────────────────────── */
.home-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  background: rgba(250,250,250,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #DCE6EC;
  box-shadow: 0 1px 6px rgba(62,90,112,0.06);
}

.home-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.home-header__logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.home-header__nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.home-header__nav a {
  color: #5D7A8E;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

.home-header__nav a:hover { color: #E8622C; }

.home-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.home-header__phone {
  font-size: 14px;
  font-weight: 700;
  color: #3E5A70;
  text-decoration: none;
  white-space: nowrap;
}

.home-header__cta {
  padding: 9px 18px;
  border: none;
  border-radius: 9px;
  background: #E8622C;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
}

.home-header__cta:hover { background: #C4501E; color: #fff; }

/* language switcher inside home header */
.home-header__lang { position: relative; }
.home-header__lang .dropbtn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: #5D7A8E; font-weight: 600; padding: 4px;
}
.home-header__lang .dropbtn:hover { color: #E8622C; }
.home-header__lang .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #DCE6EC;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(62,90,112,0.12);
  z-index: 400;
  min-width: 110px;
}
.home-header__lang .dropdown-content a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #3E5A70;
  text-decoration: none;
}
.home-header__lang .dropdown-content a:hover { background: #E7EEF2; color: #E8622C; }
.home-header__lang:hover .dropdown-content,
.home-header__lang:focus-within .dropdown-content { display: block; }

/* Mobile burger for home header */
.home-header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.home-header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3E5A70;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Hero ──────────────────────────────────── */
.home-hero {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 60px;
}

.home-hero__left { flex: 1; max-width: 560px; }

.home-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6C8EA6;
  background: #E7EEF2;
  padding: 6px 13px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.home-hero__h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: #2C3E4E;
  margin: 0 0 20px;
}

.home-hero__h1 .accent { color: #E8622C; }

.home-hero__body {
  font-size: 16px;
  color: #5D7A8E;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 460px;
}

.home-hero__stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}

.home-hero__stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #2C3E4E;
  line-height: 1;
}

.home-hero__stat-lbl {
  font-size: 12px;
  color: #7A93A3;
  margin-top: 4px;
  line-height: 1.3;
}

.home-hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero__btn-primary {
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  background: #E8622C;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
}
.home-hero__btn-primary:hover { background: #C4501E; color: #fff; }

.home-hero__btn-secondary {
  padding: 13px 22px;
  border: 1px solid #DCE6EC;
  border-radius: 10px;
  background: #fff;
  color: #3E5A70;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  display: inline-flex;
  align-items: center;
}
.home-hero__btn-secondary:hover { background: #E7EEF2; border-color: #6C8EA6; color: #3E5A70; }

.home-hero__right {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #E7EEF2, #DCE6EC);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  mix-blend-mode: multiply;
}

/* ── Trust cards ──────────────────────────── */
.home-trust {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.home-section-head {
  text-align: center;
  margin-bottom: 36px;
}

.home-section-head h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2C3E4E;
  margin: 0;
}

.home-section-head p {
  font-size: 14px;
  color: #7A93A3;
  margin: 8px 0 0;
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-trust__card {
  background: #fff;
  border: 1px solid #DCE6EC;
  border-radius: 16px;
  padding: 26px 20px;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}

.home-trust__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(62,90,112,0.10);
  border-color: #6C8EA6;
}

.home-trust__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E7EEF2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.home-trust__card-title {
  font-size: 14px;
  font-weight: 700;
  color: #2C3E4E;
  margin-bottom: 6px;
}

.home-trust__card-desc {
  font-size: 13px;
  color: #7A93A3;
  line-height: 1.5;
}

/* ── Products ─────────────────────────────── */
.home-products {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.home-products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.home-products__head h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2C3E4E;
  margin: 0;
}

.home-products__head p {
  font-size: 14px;
  color: #7A93A3;
  margin: 6px 0 0;
}

.home-products__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #DCE6EC;
  background: #fff;
  color: #5D7A8E;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.home-filter-pill.is-active,
.home-filter-pill:hover {
  background: #E8622C;
  color: #fff;
  border-color: #E8622C;
}

.home-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-product-card {
  background: #fff;
  border: 1px solid #DCE6EC;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .12s, box-shadow .12s, border-color .12s;
  display: flex;
  flex-direction: column;
}

.home-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(62,90,112,0.10);
  border-color: #6C8EA6;
}

.home-product-card__img {
  height: 150px;
  background: #E7EEF2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.home-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.home-product-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-product-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #2C3E4E;
  margin: 0 0 6px;
}

.home-product-card__spec {
  font-size: 12px;
  color: #7A93A3;
  line-height: 1.4;
  flex: 1;
  min-height: 32px;
}

.home-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 8px;
}

.home-product-card__price {
  font-size: 16px;
  font-weight: 800;
  color: #E8622C;
  line-height: 1;
}

.home-product-card__order {
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  background: #E8622C;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.home-product-card__order:hover { background: #C4501E; color: #fff; }

/* ── Service timeline ─────────────────────── */
.home-timeline {
  padding: 56px max(24px, calc((100vw - 1280px) / 2)) 72px;
  background: #F3F6F8;
}

.home-timeline__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 40px;
}

.home-timeline__line {
  position: absolute;
  top: 23px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #DCE6EC;
}

.home-timeline__step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.home-timeline__num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #E8622C;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}

.home-timeline__step-title {
  font-size: 14px;
  font-weight: 700;
  color: #2C3E4E;
  margin-bottom: 6px;
}

.home-timeline__step-desc {
  font-size: 12.5px;
  color: #7A93A3;
  line-height: 1.5;
}

/* ── Contact CTA ──────────────────────────── */
.home-contact {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.home-contact__card {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  background: #2C3E4E;
  border-radius: 24px;
  overflow: hidden;
}

.home-contact__info {
  padding: 40px 36px;
}

.home-contact__info h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.home-contact__info p {
  font-size: 14px;
  color: #B9CBD6;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 360px;
}

.home-contact__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.home-contact__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color .15s;
}

.home-contact__row:hover { color: #E8622C; }

.home-contact__cta {
  display: inline-block;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: #E8622C;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.home-contact__cta:hover { background: #C4501E; color: #fff; }

.home-contact__map {
  min-height: 320px;
  overflow: hidden;
}

.home-contact__scheme {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255,255,255,0.06);
}

/* ── Simple footer ────────────────────────── */
.home-footer {
  padding: 28px max(24px, calc((100vw - 1280px) / 2));
  border-top: 1px solid #DCE6EC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.home-footer__copy {
  font-size: 13px;
  color: #7A93A3;
}

.home-footer__links {
  display: flex;
  gap: 16px;
}

.home-footer__links a {
  font-size: 13px;
  color: #7A93A3;
  text-decoration: none;
  transition: color .15s;
}

.home-footer__links a:hover { color: #E8622C; }

/* Product images — remove white bg via blend mode */
.home-product-card__img img {
  mix-blend-mode: multiply;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1100px) {
  .home-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .home-products__grid { grid-template-columns: repeat(2, 1fr); }
  .home-timeline__steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .home-timeline__line { display: none; }

  /* Contact card: switch to stacked layout earlier */
  .home-contact__card {
    grid-template-columns: 1fr;
  }
  .home-contact__map { min-height: 320px; }
  .home-contact__scheme {
    min-height: 280px;
    margin: 0 16px 24px;
    border-radius: 10px;
  }
}

/* Medium — hide phone + CTA label, keep burger off */
@media (max-width: 960px) {
  .home-header { padding: 12px 20px; gap: 12px; }
  .home-header__phone { display: none; }
  .home-header__cta { display: none; }
  .home-header__nav { gap: 18px; }
}

/* Mobile nav — backdrop */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,62,78,0.45);
  z-index: 9000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.mobile-nav-overlay.is-open { display: block; }

/* Left-side drawer */
.mobile-nav-drawer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(44,62,78,0.18);
}

.mobile-nav-drawer__close {
  align-self: flex-start;
  margin: 16px 0 0 16px;
  width: 36px; height: 36px;
  background: none; border: none;
  font-size: 18px; color: #5D7A8E;
  cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav-drawer__close:hover { background: #E7EEF2; color: #E8622C; }

.mobile-nav-drawer__logo {
  display: block;
  padding: 14px 20px 18px;
  border-bottom: 1px solid #DCE6EC;
}

.mobile-nav-drawer__links {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mobile-nav-drawer__links a {
  display: block;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #3E5A70;
  text-decoration: none;
  border-bottom: 1px solid #DCE6EC;
  transition: background .12s, color .12s;
}
.mobile-nav-drawer__links a:hover { background: #E7EEF2; color: #E8622C; }

.mobile-nav-drawer__bottom {
  border-top: 1px solid #DCE6EC;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-drawer__phone {
  font-size: 15px;
  font-weight: 700;
  color: #3E5A70;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #DCE6EC;
}
.mobile-nav-drawer__phone:hover { color: #E8622C; }
.mobile-nav-drawer__lang {
  display: flex;
  gap: 12px;
}
.mobile-nav-drawer__lang a {
  font-size: 14px;
  font-weight: 600;
  color: #5D7A8E;
  text-decoration: none;
}
.mobile-nav-drawer__lang a.active,
.mobile-nav-drawer__lang a:hover { color: #E8622C; }

/* Mobile — show burger, hide inline nav */
@media (max-width: 768px) {
  .home-header__nav { display: none; }
  .home-header__burger { display: flex; }

  .home-hero { flex-direction: column; padding: 40px 20px 48px; gap: 32px; align-items: center; text-align: center; }
  .home-hero__left ul, .home-hero__left p { text-align: left; }
  .home-hero__left, .home-hero__right { max-width: 100%; flex: auto; width: 100%; }
  .home-hero__h1 { font-size: 30px; }
  .home-hero__stats { gap: 24px; justify-content: center; }
  .home-hero__btns { justify-content: center; }
  .home-hero__eyebrow { display: inline-block; }
  .home-hero__right { display: flex; justify-content: center; }

  .home-trust { padding: 32px 20px 48px; }
  .home-trust__grid { grid-template-columns: 1fr 1fr; }

  .home-products { padding: 0 20px 48px; }
  .home-products__head { flex-direction: column; align-items: flex-start; }
  .home-products__grid { grid-template-columns: 1fr 1fr; }

  .home-timeline { padding: 40px 20px 48px; }
  .home-timeline__steps { grid-template-columns: 1fr; gap: 24px; }

  .home-contact { padding: 40px 20px 48px; }
  .home-contact__card {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .home-contact__info { padding: 32px 24px; }
  .home-contact__map {
    min-height: 340px;
    margin: 0 16px;
    border-radius: 10px;
    overflow: hidden;
  }
  .home-contact__scheme {
    margin: 0 16px 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
  }
  .home-contact__scheme img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
  }

  .home-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .home-trust__grid { grid-template-columns: 1fr; }
  .home-products__grid { grid-template-columns: 1fr; }
  .home-hero__btns { flex-direction: column; }
  .home-hero__btns a, .home-hero__btns button { text-align: center; justify-content: center; }
}

/* Hero product grid */
.home-hero__product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.home-hero__product-tile {
  background: #fff;
  border: 1px solid #DCE6EC;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.home-hero__product-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
