body.kami-site {
  --kami-orange: #f39314;
  --kami-blue: #0ba4dc;
  --kami-deep: #075985;
  --kami-ink: #172033;
  --kami-muted: #52606d;
  --kami-surface-blue: #f0f9fd;
  --kami-border: #dde5ea;
  --kami-border-blue: #cce9f5;
  --kami-shell: 1240px;
  --kami-header-height: 86px;
  overflow-x: hidden;
}

.site-header *,
.site-footer *,
.mobile-nav * {
  box-sizing: border-box;
}

.site-header .shell,
.site-footer .shell {
  width: min(calc(100% - 48px), var(--kami-shell));
  margin-inline: auto;
}

.site-header a,
.site-footer a,
.mobile-nav a {
  color: inherit;
  text-decoration: none;
}

.site-header svg,
.site-footer svg,
.mobile-nav svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--kami-header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(221, 229, 234, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.brand {
  display: flex;
  flex: 0 0 214px;
  align-items: center;
  min-height: 48px;
}

.brand img {
  display: block;
  width: 214px;
  height: auto;
  max-width: 100%;
}

.desktop-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 22px;
  white-space: nowrap;
}

.desktop-nav-item {
  position: relative;
}

.desktop-nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: #26334a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.desktop-nav-item > a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--kami-orange);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav-item > a:hover,
.desktop-nav-item > a.active,
.desktop-nav-item > a:focus-visible {
  color: var(--kami-deep);
}

.desktop-nav-item > a:hover::after,
.desktop-nav-item > a.active::after,
.desktop-nav-item > a:focus-visible::after {
  transform: scaleX(1);
}

.desktop-nav-submenu {
  position: absolute;
  z-index: 20;
  top: calc(100% - 2px);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--kami-border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(17, 48, 70, 0.12);
}

.desktop-nav-submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--kami-ink);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

.desktop-nav-submenu a:hover,
.desktop-nav-submenu a:focus-visible {
  color: var(--kami-deep);
  background: var(--kami-surface-blue);
}

.desktop-nav-item:hover .desktop-nav-submenu,
.desktop-nav-item:focus-within .desktop-nav-submenu {
  display: grid;
}

.header-phone {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  gap: 10px;
  color: #fff !important;
  background: linear-gradient(135deg, #ff9f00, #f17800);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(243, 147, 20, 0.24);
  font-size: 14px;
  font-weight: 800;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.header-phone:hover {
  box-shadow: 0 14px 32px rgba(243, 147, 20, 0.34);
  transform: translateY(-1px);
}

.header-phone svg {
  width: 19px;
  height: 19px;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--kami-deep);
  background: var(--kami-surface-blue);
  border: 1px solid var(--kami-border-blue);
  border-radius: 14px;
  cursor: pointer;
}

.menu-button svg {
  width: 24px;
  height: 24px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.mobile-nav :focus-visible {
  outline: 3px solid rgba(11, 164, 220, 0.48);
  outline-offset: 3px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #064b72, #063c62);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr 1.1fr;
  padding-top: 72px;
  padding-bottom: 58px;
  gap: 50px;
}

.footer-logo-plate {
  display: inline-flex;
  align-items: center;
  width: 230px;
  min-height: 66px;
  margin-bottom: 24px;
  padding: 9px 14px;
  background: #fff;
  border-radius: 13px;
}

.footer-logo-plate img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand p {
  max-width: 330px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.footer-superdoc {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin: 4px 0 18px;
  padding: 9px 13px;
  gap: 12px;
  color: #263238 !important;
  background: #fff;
  border-radius: 12px;
}

.footer-superdoc span {
  color: var(--kami-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-superdoc img {
  display: block;
  width: 104px;
  height: auto;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-weight: 800;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
}

.footer-column a,
.footer-column span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.footer-column a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  line-height: 1.4;
}

.footer-column a:hover {
  color: #fff;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: #7dd8f8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
}

.mobile-nav-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(8, 31, 45, 0.52);
  backdrop-filter: blur(3px);
}

.mobile-nav {
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 380px);
  height: 100vh;
  height: 100dvh;
  padding: 22px;
  overflow-y: auto;
  color: var(--kami-ink);
  background: #fff;
  box-shadow: -24px 0 60px rgba(14, 49, 67, 0.2);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.mobile-nav[aria-hidden="false"] {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--kami-border);
}

.mobile-nav-head strong {
  color: var(--kami-deep);
  font-size: 20px;
}

.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--kami-deep);
  background: var(--kami-surface-blue);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.mobile-nav-close svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-links {
  display: grid;
  padding: 16px 0 22px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 4px;
  color: var(--kami-ink);
  border-bottom: 1px solid var(--kami-border);
  font-size: 14px;
  font-weight: 700;
}

.mobile-nav-links a.active {
  color: var(--kami-orange);
}

.mobile-nav-children {
  display: grid;
  padding-left: 16px;
}

.mobile-nav-children a {
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
}

.mobile-nav-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  padding: 10px 18px;
  color: #fff !important;
  background: linear-gradient(135deg, #1ba18f, #147d72);
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 1240px) {
  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav-item > a {
    font-size: 9.5px;
  }

  .header-phone {
    padding-inline: 15px;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .header-phone {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / span 3;
  }
}

@media (max-width: 820px) {
  body.kami-site {
    --kami-header-height: 72px;
  }

  .site-header .shell,
  .site-footer .shell {
    width: min(calc(100% - 32px), var(--kami-shell));
  }

  .brand {
    flex-basis: 185px;
  }

  .brand img {
    width: 185px;
  }

  .header-phone {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
  }

  .header-phone span {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding-top: 54px;
    padding-bottom: 40px;
    gap: 34px 22px;
  }

  .footer-brand {
    grid-column: 1 / span 2;
  }

  .footer-contact {
    grid-column: 1 / span 2;
  }

  .footer-column a {
    min-height: 44px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    width: 170px;
  }

  .header-phone,
  .menu-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 13px;
  }

  .header-phone {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-footer *,
  .mobile-nav {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
