/* Novotech Hatiko-style homepage: light visual layer. */
:root {
  color-scheme: light;
  --home-blue: #0875df;
  --home-blue-dark: #075ab8;
  --home-green: #22a63d;
  --home-ink: #132033;
  --home-text: #66788d;
  --home-muted: #f3f6fa;
  --home-line: rgba(19, 32, 51, 0.1);
  --home-shadow: 0 12px 30px rgba(19, 32, 51, 0.08);
}

html,
body.novotech-site {
  max-width: 100%;
  overflow-x: hidden;
  background: #f3f6fa;
}

body.novotech-site * {
  box-sizing: border-box;
}

body.novotech-site .container {
  width: min(100% - 44px, 1384px);
  margin-right: auto;
  margin-left: auto;
}

.novotech-theme-toggle,
[data-novotech-theme-toggle] {
  display: none !important;
}

.header {
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(19, 32, 51, 0.07) !important;
}

.header__wrapper,
.header__topbar,
.header__main,
.header-ui-mobile,
.novotech-quick-nav {
  background: #ffffff !important;
}

.novotech-logo,
.header-ui-mobile-top-logo.novotech-logo {
  color: var(--home-blue) !important;
}

.novotech-logo span,
.header-ui-mobile-top-logo.novotech-logo span {
  color: var(--home-green) !important;
}

.novotech-catalog-btn {
  min-height: 46px !important;
  padding: 0 24px !important;
  border-radius: 7px !important;
  background: var(--home-blue) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  box-shadow: 0 8px 18px rgba(8, 117, 223, 0.22) !important;
}

.novotech-header-search {
  min-height: 46px !important;
  border: 1px solid rgba(8, 117, 223, 0.16) !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

.novotech-header-search input {
  color: var(--home-ink) !important;
  font-weight: 700 !important;
}

.novotech-header-search input::placeholder {
  color: #8da0b5 !important;
}

.header__buttons .icon-home,
.header__buttons .icon-catalog-search,
.header__buttons .icon-search,
.header__buttons .icon-personal,
.header__buttons .icon-compare {
  display: none !important;
}

.header__buttons {
  gap: 10px !important;
  margin-left: 0 !important;
}

.header__buttons--item-button {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(19, 32, 51, 0.12) !important;
  border-radius: 9px !important;
  background: #ffffff !important;
}

.header__buttons--item-button svg,
.header__buttons--item-button svg path {
  fill: var(--home-ink) !important;
  stroke: var(--home-ink) !important;
}

.header-ui-middle-buttons-item__title {
  display: none !important;
}

.novotech-social-pill,
.header__socials-link {
  border-radius: 8px !important;
}

.novotech-social-pill--vk,
.header__socials-link--vk {
  background: #0077ff !important;
}

.novotech-social-pill--tg,
.header__socials-link--tg {
  background: #29a8ea !important;
}

.home-hatiko a {
  color: inherit;
  text-decoration: none !important;
}

.home-hatiko img {
  display: block;
  max-width: 100%;
}

body.novotech-site main.index {
  padding-top: 0 !important;
}

@media (min-width: 1024px) {
  .header__topbar {
    display: block !important;
    border-bottom: 1px solid rgba(19, 32, 51, 0.08);
  }

  .header__topbar--menu {
    min-height: 42px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) 250px !important;
    align-items: center !important;
    gap: 24px !important;
  }

  .header__address {
    position: relative;
    min-width: 178px;
  }

  .novotech-address-select__toggle {
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(8, 117, 223, 0.18) !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: var(--home-ink) !important;
    font-weight: 950 !important;
  }

  .novotech-address-select__toggle small {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--home-blue);
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
  }

  .novotech-address-select__menu {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 60;
    width: 340px;
    display: none;
    padding: 10px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--home-shadow);
  }

  .novotech-address-select.is-open .novotech-address-select__menu {
    display: grid;
    gap: 6px;
  }

  .novotech-address-select__menu button {
    width: 100%;
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: #f7f9fc;
    color: var(--home-ink);
    text-align: left;
  }

  .novotech-address-select__menu button.is-active,
  .novotech-address-select__menu button:hover {
    background: #eef6ff;
  }

  .novotech-address-select__menu strong {
    font-size: 14px;
    font-weight: 950;
  }

  .novotech-address-select__menu span {
    color: var(--home-text);
    font-size: 12px;
    line-height: 1.35;
  }

  .header__center_menu {
    min-width: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 34px);
  }

  .header__center_menu a {
    color: var(--home-ink) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    white-space: nowrap;
  }

  .header__info {
    gap: 14px !important;
    justify-self: end;
    min-width: 250px;
  }

  .header__socials {
    display: flex !important;
    gap: 8px !important;
  }

  .header__phone_block a {
    color: var(--home-ink) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    white-space: nowrap;
  }

  .header__phone_block {
    min-width: 154px;
  }

  .header__main--wrapper {
    min-height: 74px !important;
    display: grid !important;
    grid-template-columns: 190px auto minmax(360px, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
  }

  .header__logo {
    min-width: 184px !important;
    margin-right: 0 !important;
    font-size: 36px !important;
    line-height: 1 !important;
  }

  .header__menu,
  .novotech-header-phone-main,
  .novotech-header-social-actions {
    display: none !important;
  }

  .novotech-quick-nav {
    display: block !important;
    border-top: 1px solid rgba(19, 32, 51, 0.06);
    border-bottom: 1px solid rgba(19, 32, 51, 0.08);
  }

  .novotech-quick-nav .container {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .novotech-quick-nav .container::-webkit-scrollbar {
    display: none;
  }

  .novotech-quick-nav a {
    flex: 0 0 auto;
    color: var(--home-ink) !important;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
  }
}

.home-hatiko {
  background: #f3f6fa;
  color: var(--home-ink);
}

.home-hatiko-promos {
  padding: 28px 0 16px;
}

.home-hatiko-promos__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-hatiko-promo {
  position: relative;
  height: 360px;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px 28px;
  border-radius: 8px;
  color: #ffffff !important;
  isolation: isolate;
  box-shadow: 0 18px 36px rgba(19, 32, 51, 0.14);
}

.home-hatiko-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 38%);
}

.home-hatiko-promo::after {
  content: "";
  position: absolute;
  left: -22%;
  right: -22%;
  bottom: -28%;
  z-index: -1;
  height: 58%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.home-hatiko-promo--blue {
  background: linear-gradient(145deg, #0875df, #004fb1);
}

.home-hatiko-promo--green {
  background: linear-gradient(145deg, #23a63e, #087d6c);
}

.home-hatiko-promo--cyan {
  background: linear-gradient(145deg, #0c8fdc, #0a5cc8);
}

.home-hatiko-promo--slate {
  background: linear-gradient(145deg, #17253d, #0b73d9);
}

.home-hatiko-promo span {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.home-hatiko-promo strong {
  position: relative;
  z-index: 2;
  max-width: 268px;
  display: block;
  margin-top: 22px;
  color: #ffffff;
  font-size: clamp(28px, 2.25vw, 36px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.home-hatiko-promo em {
  position: relative;
  z-index: 2;
  max-width: 255px;
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 700;
}

.home-hatiko-promo img {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 48%;
  max-width: 190px;
  height: 48%;
  max-height: 178px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.22));
}

.home-hatiko-promo--green img {
  right: 0;
  bottom: 0;
  width: 50%;
  max-width: 196px;
  height: 50%;
  max-height: 184px;
}

.home-hatiko-promo--cyan img,
.home-hatiko-promo--slate img {
  height: 50%;
  max-height: 184px;
}

.home-hatiko-actions,
.home-hatiko-products,
.home-hatiko-service,
.home-hatiko-trade,
.home-hatiko-stores,
.home-hatiko-proof {
  padding: 18px 0 0;
}

.home-hatiko-actions__grid,
.home-hatiko-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-hatiko-action,
.home-hatiko-proof__grid div {
  min-height: 96px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(19, 32, 51, 0.05);
}

.home-hatiko-action span,
.home-hatiko-proof__grid span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 950;
}

.home-hatiko-action strong,
.home-hatiko-proof__grid strong {
  color: var(--home-ink);
  font-size: 16px;
  line-height: 1.18;
  font-weight: 950;
}

.home-hatiko-action em {
  color: var(--home-text);
  font-size: 13px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 700;
}

.home-hatiko-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-hatiko-section-head span,
.home-hatiko-service__lead span,
.home-hatiko-trade__box span {
  display: block;
  margin-bottom: 4px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-hatiko-section-head h2,
.home-hatiko-service__lead h2,
.home-hatiko-trade__box h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.home-hatiko-section-head a {
  color: var(--home-blue) !important;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.home-hatiko-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.home-hatiko-product,
.home-hatiko-repair,
.home-hatiko-service__lead,
.home-hatiko-trade__box,
.home-hatiko-store {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(19, 32, 51, 0.05);
}

.home-hatiko-product {
  position: relative;
  min-width: 0;
  min-height: 282px;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.home-hatiko-product mark {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf9ee;
  color: var(--home-green);
  font-size: 11px;
  font-weight: 950;
}

.home-hatiko-product img {
  width: 100%;
  height: 148px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f9fc;
}

.home-hatiko-product strong {
  min-height: 42px;
  color: var(--home-ink);
  font-size: 14px;
  line-height: 1.22;
  font-weight: 900;
}

.home-hatiko-product del {
  margin-top: auto;
  color: #9daabd;
  font-size: 12px;
  font-weight: 800;
}

.home-hatiko-product em {
  color: var(--home-ink);
  font-size: 19px;
  font-style: normal;
  font-weight: 950;
}

.home-hatiko-service__layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 14px;
}

.home-hatiko-service__lead {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.home-hatiko-service__lead p,
.home-hatiko-trade__box p {
  max-width: 500px;
  margin: 14px 0 24px;
  color: var(--home-text);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.home-hatiko-button {
  width: max-content;
  max-width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 7px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 950;
}

.home-hatiko-button--green {
  background: var(--home-green);
}

.home-hatiko-button--blue {
  background: var(--home-blue);
}

.home-hatiko-repair-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.home-hatiko-repair {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  text-align: center;
}

.home-hatiko-repair img {
  width: 100%;
  height: 116px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #eef6ff;
}

.home-hatiko-repair strong {
  min-height: 46px;
  color: var(--home-ink);
  font-size: 15px;
  line-height: 1.24;
  font-weight: 950;
}

.home-hatiko-repair em {
  margin-top: auto;
  color: var(--home-ink);
  font-size: 17px;
  font-style: normal;
  font-weight: 950;
}

.home-hatiko-trade__box {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  background: linear-gradient(100deg, #ffffff 0 38%, #eef7ff 100%);
}

.home-hatiko-trade__box ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hatiko-trade__box li {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
}

.home-hatiko-trade__box b {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--home-blue);
  font-weight: 950;
}

.home-hatiko-trade__box strong {
  color: var(--home-ink);
  font-size: 15px;
  font-weight: 950;
}

.home-hatiko-trade__box em {
  color: var(--home-text);
  font-size: 13px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 700;
}

.home-hatiko-store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-hatiko-store {
  min-width: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.home-hatiko-store img {
  width: 170px;
  height: 126px;
  object-fit: cover;
  border-radius: 7px;
  background: #e8eef6;
}

.home-hatiko-store strong {
  display: block;
  margin-bottom: 6px;
  color: var(--home-ink);
  font-size: 18px;
  font-weight: 950;
}

.home-hatiko-store span,
.home-hatiko-store em {
  display: block;
  color: var(--home-text);
  font-size: 13px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 700;
}

.home-hatiko-store div div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.home-hatiko-store a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 7px;
  background: #eef6ff;
  color: var(--home-blue) !important;
  font-size: 13px;
  font-weight: 950;
}

.home-hatiko-store a:last-child {
  background: #eaf9ee;
  color: var(--home-green) !important;
}

.home-hatiko-proof {
  padding-bottom: 26px;
}

@media (max-width: 1240px) {
  .home-hatiko-promos__rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-hatiko-promos__rail::-webkit-scrollbar {
    display: none;
  }

  .home-hatiko-promo {
    flex: 0 0 330px;
    scroll-snap-align: start;
  }

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

  .home-hatiko-service__layout,
  .home-hatiko-trade__box {
    grid-template-columns: 1fr;
  }

  .home-hatiko-repair-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  body.novotech-site .container {
    width: min(100% - 24px, 1384px);
  }

  body.novotech-site main.index {
    padding-top: 104px !important;
  }

  .header-ui-mobile-top {
    grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px !important;
    gap: 6px !important;
  }

  .header-ui-mobile-top a,
  .header-ui-mobile-top button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 8px !important;
  }

  .header-ui-mobile-top-logo.novotech-logo {
    width: auto !important;
    min-width: 0 !important;
    max-width: 142px !important;
    height: auto !important;
    font-size: 23px !important;
  }

  .novotech-mobile-address-row .novotech-address-select__toggle {
    width: 100% !important;
    min-height: 34px !important;
    justify-content: center !important;
    border: 1px solid rgba(8, 117, 223, 0.14) !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: var(--home-ink) !important;
    font-weight: 950 !important;
  }

  .novotech-mobile-address-row .novotech-address-select__toggle small {
    display: none !important;
  }

  .home-hatiko-promos {
    padding-top: 14px;
  }

  .home-hatiko-promos__rail,
  .home-hatiko-product-grid,
  .home-hatiko-repair-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-hatiko-promos__rail::-webkit-scrollbar,
  .home-hatiko-product-grid::-webkit-scrollbar,
  .home-hatiko-repair-grid::-webkit-scrollbar {
    display: none;
  }

  .home-hatiko-promo {
    flex: 0 0 min(82vw, 330px);
    height: 388px;
    min-height: 388px;
    padding: 28px 22px;
    scroll-snap-align: start;
  }

  .home-hatiko-promo strong {
    font-size: 32px;
  }

  .home-hatiko-promo img {
    right: 0;
    bottom: 0;
    width: 58%;
    height: 48%;
    max-width: 190px;
    max-height: 184px;
  }

  .home-hatiko-actions__grid,
  .home-hatiko-proof__grid,
  .home-hatiko-store-grid {
    grid-template-columns: 1fr;
  }

  .home-hatiko-action {
    min-height: 84px;
  }

  .home-hatiko-product {
    flex: 0 0 168px;
    min-height: 268px;
    scroll-snap-align: start;
  }

  .home-hatiko-product img {
    height: 132px;
  }

  .home-hatiko-service__lead {
    min-height: 0;
    padding: 22px;
  }

  .home-hatiko-repair {
    flex: 0 0 152px;
    min-height: 240px;
    scroll-snap-align: start;
  }

  .home-hatiko-repair img {
    height: 96px;
  }

  .home-hatiko-trade__box {
    padding: 22px;
  }

  .home-hatiko-trade__box ol {
    grid-template-columns: 1fr;
  }

  .home-hatiko-store {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .home-hatiko-store img {
    width: 112px;
    height: 94px;
  }
}

@media (max-width: 520px) {
  .home-hatiko-section-head {
    align-items: start;
  }

  .home-hatiko-section-head h2,
  .home-hatiko-service__lead h2,
  .home-hatiko-trade__box h2 {
    font-size: 26px;
  }

  .home-hatiko-store {
    grid-template-columns: 1fr;
  }

  .home-hatiko-store img {
    width: 100%;
    height: 158px;
  }
}
