.home-header .hdr-in {
  gap: 10px;
}

.home-header .hdr-phone,
.home-header .burger {
  flex-shrink: 0;
}

.home-header-contacts {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.home-header-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  border: 1px solid var(--line, #ddd);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.home-header-channel:hover,
.home-max[open] summary {
  background: var(--bg-card, #f0f0f0);
}

.home-max { position: relative; }
.home-max summary { list-style: none; }
.home-max summary::-webkit-details-marker { display: none; }
.home-max-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1;
  width: min(224px, 70vw);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line, #ddd);
  border-radius: 8px;
  box-shadow: 0 8px 24px #0002;
}
.home-max-panel label { display: block; margin-bottom: 8px; font-size: 14px; }
.home-max-panel input {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line, #ddd);
  border-radius: 6px;
  font: inherit;
}
.home-max-panel button {
  margin-top: 8px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--line, #ddd);
  border-radius: 6px;
  background: var(--bg-card, #f0f0f0);
  cursor: pointer;
}
.home-max-panel [role="status"]:not(:empty) { display: block; font-size: 13px; }
.home-max-panel a { display: block; padding-block: 8px; }

.home-calc-actions:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 440px) {
  .home-header .hdr-in { gap: 6px; }
  .home-header .lockup { gap: 4px; }
  .home-header .lockup .wm { font-size: 12px; letter-spacing: .8px; }
  .home-header-channel { padding-inline: 5px; }
}

@media (max-width: 355px) {
  .home-header .lockup .wm { display: none; }
}

@media (min-width: 1041px) and (max-width: 1280px) {
  .home-header .hdr-in { flex-wrap: wrap; }
  .home-header .nav {
    flex-basis: 100%;
    order: 1;
    border-top: 1px solid var(--line, #ddd);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-header .lockup-mark { animation: perfecto-logo-in .55s ease-out both; }
  .home-header .lockup:is(:hover, :focus-visible) .lockup-mark { transform: translateY(-2px); }

  @keyframes perfecto-logo-in {
    from { opacity: .65; translate: -4px 0; }
    to { opacity: 1; translate: 0 0; }
  }
}

.home-phone {
  position: relative;
  flex: 0 0 auto;
}

.home-phone summary {
  width: auto;
  padding-inline: 8px;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.home-phone summary::-webkit-details-marker { display: none; }
.home-phone summary .num { display: inline; }
.home-phone summary .ic { flex: 0 0 18px; width: 18px; }
.home-phone-panel { right: 0; }

.home-glass {
  color: #202b38;
  border: 1px solid #bdcddd;
  background: linear-gradient(150deg, #ffffffed, #ecf3f9d9);
  box-shadow: inset 0 1px 0 #fff, 0 1px 9px #749cb43b;
  backdrop-filter: blur(7px);
}
.home-glass:is(:hover,:focus-visible),
.home-phone[open] summary {
  color: #172333;
  background: linear-gradient(150deg, #fff, #e3eff9);
  box-shadow: inset 0 1px 0 #fff, 0 2px 12px #749cb459;
}
.home-glass:active { box-shadow: inset 0 1px 4px #749cb44a; }
.home-glass.home-glass-primary {
  color: #fff;
  border-color: #5e778e;
  background: linear-gradient(150deg, #53677a, #253140);
  box-shadow: inset 0 1px 0 #ffffff45, 0 2px 12px #749cb466;
}
.home-glass.home-glass-primary:is(:hover,:focus-visible) {
  color: #fff;
  background: linear-gradient(150deg, #60788d, #283648);
}
.home-max[open] .home-header-channel { color: #172333; }

@media (max-width: 640px) {
  .home-header .hdr-in {
    flex-wrap: wrap;
    padding-block: 8px;
  }
  .home-header-contacts {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .home-phone summary .num { font-size: 13px; }
}
