/* App-style site navigation — oknaminsk24 */
:root {
  --app-ink: #152029;
  --app-muted: #5d6b78;
  --app-line: #d9e1e8;
  --app-paper: #eef2f6;
  --app-steel: #1f3a52;
  --app-accent: #e07a1f;
  --app-accent-dark: #c46312;
  --app-max: 1180px;
  --app-font: "Manrope", system-ui, sans-serif;
}

.app-bar,
.app-bar * { box-sizing: border-box; }

.app-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.55rem 0.75rem 0.45rem;
  font-family: var(--app-font);
  background: transparent;
}

.app-bar__shell {
  width: min(var(--app-max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 58px;
  padding: 0.35rem 0.45rem 0.35rem 0.75rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 248, 242, 0.94) 48%, rgba(255, 247, 238, 0.96) 100%);
  border: 1px solid rgba(25, 178, 127, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 10px 28px rgba(21, 40, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

body.app-nav-scrolled .app-bar__shell {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 250, 245, 0.97) 50%, rgba(255, 250, 244, 0.98) 100%);
  border-color: rgba(25, 178, 127, 0.2);
  box-shadow: 0 12px 32px rgba(21, 40, 58, 0.12);
}

.app-bar__logo img {
  display: block;
  width: 148px;
  height: auto;
}

.app-bar__nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
}

.app-bar__nav > a,
.app-bar__dd > button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--app-muted);
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.app-bar__nav > a:hover,
.app-bar__dd > button:hover,
.app-bar__nav > a.is-active,
.app-bar__dd.is-open > button,
.app-bar__dd:hover > button {
  color: var(--app-steel);
  background: linear-gradient(135deg, rgba(25, 178, 127, 0.1), rgba(224, 122, 31, 0.08));
}

.app-bar__ico {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--app-accent);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(224, 122, 31, 0.16), rgba(25, 178, 127, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.app-bar__nav > a.is-active .app-bar__ico,
.app-bar__dd:hover > button .app-bar__ico,
.app-bar__dd.is-open > button .app-bar__ico {
  color: var(--app-green, #19b27f);
  color: #149a74;
  background: linear-gradient(145deg, rgba(25, 178, 127, 0.2), rgba(224, 122, 31, 0.12));
}

.app-bar__ico svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-bar__chev {
  width: 10px;
  height: 10px;
  margin-left: -0.05rem;
  flex: none;
  display: inline-block;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235d6b78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  transition: transform 0.18s ease;
  opacity: 0.85;
}

.app-bar__dd:hover > button .app-bar__chev,
.app-bar__dd.is-open > button .app-bar__chev {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231f3a52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
}

.app-bar__dd {
  position: relative;
}

.app-bar__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  max-width: min(92vw, 520px);
  padding: 0.45rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(28, 52, 72, 0.1);
  box-shadow: 0 18px 40px rgba(13, 30, 45, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}

.app-bar__dd.is-open .app-bar__panel,
.app-bar__dd:hover .app-bar__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.app-bar__panel--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.45rem;
  min-width: 420px;
}

.app-bar__panel a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--app-ink);
  text-decoration: none;
}

.app-bar__panel a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(224, 122, 31, 0.55);
  flex: none;
}

.app-bar__panel a:hover {
  background: rgba(224, 122, 31, 0.1);
  color: var(--app-accent-dark);
}

.app-bar__panel a:hover::before {
  background: var(--app-accent);
}

.app-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-bar__phone {
  font-weight: 750;
  font-size: 0.88rem;
  color: var(--app-steel);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.app-bar__phone::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.8.6 2.6a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.5-1.1a2 2 0 0 1 2.1-.4c.8.3 1.7.5 2.6.6a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.app-bar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #e9923a, #e07a1f 45%, #c46312);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 18px rgba(224, 122, 31, 0.28);
}

.app-bar__cta::before {
  content: "";
  width: 14px;
  height: 14px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.app-bar__cta:hover {
  background: linear-gradient(135deg, #f0a04f, #e07a1f 40%, #b85710);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(224, 122, 31, 0.34);
}

.app-bar__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--app-line);
  background: #fff;
  place-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.app-bar__burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--app-ink);
  transition: transform 0.2s, opacity 0.2s;
}

.app-bar.is-open .app-bar__burger span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.app-bar.is-open .app-bar__burger span:nth-child(2) {
  opacity: 0;
}
.app-bar.is-open .app-bar__burger span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile sheet */
.app-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(15, 24, 32, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}

.app-sheet {
  position: fixed;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 999;
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 1rem 0.85rem 1.15rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(28, 52, 72, 0.1);
  box-shadow: 0 22px 50px rgba(10, 20, 30, 0.22);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), opacity 0.22s, visibility 0.22s;
  font-family: var(--app-font);
}

body.app-nav-open .app-sheet-backdrop {
  opacity: 1;
  visibility: visible;
}

body.app-nav-open .app-sheet {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.app-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.app-sheet__head strong {
  font-size: 1.05rem;
  color: var(--app-steel);
}

.app-sheet__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--app-line);
  border-radius: 11px;
  background: var(--app-paper);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.app-sheet__group {
  margin-bottom: 0.85rem;
}

.app-sheet__label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-accent);
}

.app-sheet__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.app-sheet__links a {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: var(--app-paper);
  color: var(--app-ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}

.app-sheet__links a:hover {
  background: rgba(224, 122, 31, 0.12);
}

.app-sheet__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.app-sheet__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  font-weight: 750;
  font-size: 0.88rem;
  text-decoration: none;
}

.app-sheet__cta .call {
  background: var(--app-steel);
  color: #fff;
}

.app-sheet__cta .lead {
  background: var(--app-accent);
  color: #fff;
}

@media (max-width: 980px) {
  .app-bar__nav,
  .app-bar__phone { display: none; }
  .app-bar__burger { display: grid; }
  .app-bar__shell { padding-right: 0.4rem; }
}

@media (min-width: 981px) {
  .app-sheet,
  .app-sheet-backdrop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .app-sheet,
  .app-sheet-backdrop,
  .app-bar__panel,
  .app-bar__chev { transition: none; }
}
