body {
  --mobile-header-height: 4.25rem;

  background:
    radial-gradient(circle at 88% 8%, rgb(61 80 113 / 16%), transparent 30rem),
    linear-gradient(155deg, #090f17 0%, var(--background-deep) 100%);
}

.app-shell {
  min-height: 100vh;
}

.workspace {
  min-width: 0;
}

.site-sidebar,
.workspace-header {
  display: none;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--mobile-header-height);
  padding: 0.7rem 0.65rem;
  background: rgb(8 13 20 / 90%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(1rem);
}

.brand-mobile {
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  display: block;
  width: min(100%, 12.5rem);
  height: auto;
}

.brand-mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  filter: drop-shadow(0 0.3rem 0.7rem rgb(0 0 0 / 20%));
}

.mobile-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mobile-cart:hover {
  color: var(--text);
}

.mobile-cart svg {
  width: 1.25rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.mobile-cart .nav-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
}

.mobile-header-actions,
.header-contact-icons {
  display: flex;
  align-items: center;
}

.mobile-header-actions {
  min-width: 0;
  gap: 0.2rem;
  margin-left: auto;
}

.header-contact-icons {
  flex: 0 0 auto;
  gap: 0.12rem;
}

.mobile-phone {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-phone:hover,
.header-icon-link:hover {
  color: var(--text);
}

.mobile-phone-full {
  display: none;
}

.header-icon-link {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.header-icon-link:hover {
  background: var(--surface);
  border-color: var(--border);
}

.header-icon-link img {
  width: 1.37rem;
  height: 1.37rem;
  object-fit: contain;
}

.page-content {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
  padding-block: 1.6rem calc(6.4rem + env(safe-area-inset-bottom));
}

.site-footer {
  display: grid;
  gap: 0.7rem;
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
  padding: 1.25rem 0 calc(6.2rem + env(safe-area-inset-bottom));
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.site-footer a,
.site-footer button {
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.site-footer button {
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer p {
  margin: 0;
  font-size: 0.68rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: calc(5.2rem + env(safe-area-inset-bottom));
  left: 1rem;
  z-index: 60;
  max-width: 38rem;
  padding: 1rem;
  background: rgb(16 23 32 / 98%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.cookie-banner-actions .button {
  min-height: 2.55rem;
  padding: 0.58rem 0.9rem;
}

.cookie-banner-actions a {
  padding: 0.45rem;
  font-size: 0.78rem;
}

.mobile-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
  min-height: 4.35rem;
  padding: 0.4rem max(0.45rem, env(safe-area-inset-right)) max(0.4rem, env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
  background: rgb(10 16 24 / 96%);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -1rem 2.5rem rgb(0 0 0 / 30%);
  backdrop-filter: blur(1rem);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.nav-item:hover {
  color: var(--text);
}

.nav-item svg {
  width: 1.22rem;
  height: 1.22rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.mobile-nav .nav-item {
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: 3.45rem;
  padding: 0.28rem 0.15rem;
  font-size: 0.63rem;
}

.mobile-nav .nav-item.is-active {
  color: #aa98ff;
  background: var(--accent-soft);
}

.mobile-nav .nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav .nav-badge {
  position: absolute;
  top: 0.12rem;
  left: calc(50% + 0.35rem);
}

.sidebar-service-group {
  display: none;
}

@media (min-width: 44rem) {
  .mobile-header {
    padding-inline: 1.5rem;
  }

  .page-content {
    width: min(100% - 3rem, 74rem);
    padding-top: 2.4rem;
  }

  .site-footer {
    width: min(100% - 3rem, 74rem);
  }

  .mobile-nav {
    right: 1.5rem;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    left: 1.5rem;
    max-width: 36rem;
    margin-inline: auto;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 24rem) {
  .mobile-phone-full {
    display: inline;
  }

  .mobile-phone-short {
    display: none;
  }

  .header-icon-link {
    width: 2rem;
    height: 2rem;
  }

  .mobile-cart {
    width: 2.35rem;
    height: 2.35rem;
  }
}

@media (min-width: 72rem) {
  .app-shell {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    width: min(100%, 96rem);
    margin-inline: auto;
    background: rgb(8 13 20 / 55%);
    border-inline: 1px solid rgb(49 64 82 / 45%);
    box-shadow: 0 2rem 8rem rgb(0 0 0 / 25%);
  }

  .site-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    padding: 1.4rem 1rem;
    background: linear-gradient(180deg, #0d141d 0%, #090f16 100%);
    border-right: 1px solid var(--border);
  }

  .site-sidebar > .brand {
    margin: 0.15rem 0.45rem 2rem;
  }

  .sidebar-nav {
    display: grid;
    gap: 0.38rem;
  }

  .sidebar-nav .nav-services-entry {
    display: none;
  }

  .sidebar-service-group {
    display: grid;
    gap: 0.25rem;
    padding-block: 0.25rem 0.45rem;
  }

  .sidebar-nav-label {
    padding: 0.3rem 0.75rem 0.2rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .sidebar-nav .nav-item {
    gap: 0.75rem;
    min-height: 2.85rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 650;
  }

  .sidebar-nav .service-direction-link {
    gap: 0.6rem;
    min-height: 2.45rem;
    padding-block: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .service-direction-link .nav-label {
    overflow-wrap: anywhere;
  }

  .service-direction-dot {
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    background: var(--border-strong);
    border-radius: 50%;
  }

  .service-direction-link.is-active .service-direction-dot {
    background: var(--accent);
    box-shadow: 0 0 0 0.18rem var(--accent-soft);
  }

  .sidebar-nav .nav-item.is-active {
    color: #c0b4ff;
    background: linear-gradient(90deg, var(--accent-soft), rgb(118 87 255 / 6%));
    border-color: rgb(118 87 255 / 19%);
  }

  .sidebar-nav .nav-item.is-active::before {
    position: absolute;
    top: 0.7rem;
    bottom: 0.7rem;
    left: -1px;
    width: 2px;
    content: "";
    background: var(--accent);
    border-radius: 2px;
  }

  .sidebar-nav .nav-badge {
    margin-left: auto;
  }

  .mobile-header,
  .mobile-nav {
    display: none;
  }

  .workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.2rem;
    padding-inline: 1.75rem;
    background: rgb(9 15 23 / 72%);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(1rem);
  }

  .workspace-header p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .status-dot {
    width: 0.45rem;
    height: 0.45rem;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0.2rem var(--success-soft);
  }

  .workspace-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .workspace-actions .header-contact-icons {
    gap: 0.2rem;
  }

  .workspace-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
  }

  .workspace-actions .header-icon-link {
    width: 2.35rem;
    height: 2.35rem;
    justify-content: center;
    padding: 0;
  }

  .workspace-actions .header-phone {
    font-size: 1.04rem;
  }

  .workspace-actions a:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
  }

  .page-content {
    width: min(100% - 3.5rem, 74rem);
    padding-block: 2.5rem 4rem;
  }


  .site-footer {
    width: min(100% - 3.5rem, 74rem);
    padding-bottom: 2rem;
  }

  .cookie-banner {
    right: 1.25rem;
    bottom: 1.25rem;
    left: auto;
  }
}

@media (min-width: 96rem) {
  .app-shell {
    margin-block: 1.25rem;
    min-height: calc(100vh - 2.5rem);
    overflow: clip;
    border: 1px solid var(--border-strong);
    border-radius: 1.15rem;
  }

  .site-sidebar {
    height: calc(100vh - 2.5rem);
    border-radius: 1.15rem 0 0 1.15rem;
  }
}
