* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { padding-top: 80px; }

@font-face {
  font-family: 'montserrat';
  src: url('/fonts/Montserrat-Medium.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'montserrat';
  src: url('/fonts/Montserrat-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'montserrat';
  src: url('/fonts/Montserrat-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

#site-nav {
  background-color: #0a0a0a;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  border-bottom: none;
  width: 100%;
}

#site-nav .site-header {
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-sizing: border-box;
}

#site-nav .site-header__logo img {
  max-width: 130px;
  height: auto;
  display: block;
}

#site-nav .site-header__address {
  display: none;
  font-family: 'montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
  text-align: right;
}

@media screen and (max-width: 980px) {
  #site-nav .site-header__address { display: block; }
}

#site-nav .site-header__nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

#site-nav .site-header__nav a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  font-family: 'montserrat', Arial, sans-serif;
  transition: color 0.3s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

#site-nav .site-header__nav a:hover,
#site-nav .site-header__nav a.active { color: #ffd000; }

#site-nav .site-header__nav a.active::after { width: 100%; }

#site-nav .site-header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffd000;
  transition: width 0.3s ease;
}

#site-nav .site-header__nav a:hover::after { width: 100%; }

#site-nav .site-header__contacts {
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  font-family: 'montserrat', Arial, sans-serif;
  white-space: nowrap;
}

#site-nav .site-header__contacts a {
  color: #ffffff;
  text-decoration: none;
}

#site-nav .site-header__contacts a:hover { color: #ffd000; }

/* Таббар */
.tabbar {
  display: none;
}

.tabbar__item {
  text-decoration: none;
}

.tabbar__item svg {
  display: block;
}

@media screen and (max-width: 980px) {
  #site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    padding: 12px 12px 0;
  }
  body { padding-top: 84px; }
  #site-nav .site-header {
    background: #0a0a0a;
    padding: 0 16px;
    height: 72px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  }
  body { padding-top: 96px; }
  #site-nav .site-header__nav { display: none; }
  #site-nav .site-header__contacts { display: none; }

  .tabbar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 995;
    background: #0a0a0a;
    border-radius: 20px;
    padding: 12px 4px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }

  .tabbar .tabbar__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 6px 2px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    min-width: 0;
    max-width: 20%;
  }

  .tabbar .tabbar__item svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #ffffff;
    fill: none;
    flex-shrink: 0;
    display: block;
  }

  .tabbar .tabbar__item span {
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    line-height: 1.2;
  }

  .tabbar .tabbar__item:active,
  .tabbar .tabbar__item.active { color: #ffd000; }

  .tabbar .tabbar__item:active svg,
  .tabbar .tabbar__item.active svg { stroke: #ffd000; }
  .tabbar .tabbar__item:active span,
  .tabbar .tabbar__item.active span { color: #ffd000; }

  .tabbar .tabbar__item--call svg {
    fill: #0a0a0a !important;
    stroke: none !important;
    background: #ffd000;
    border-radius: 50%;
    padding: 11px;
    width: 44px !important;
    height: 44px !important;
    box-sizing: border-box;
  }

  body { padding-bottom: 110px; }
}

/* Хлебные крошки */
.breadcrumbs { font-size: 14px; padding: 20px 0 0; font-family: 'montserrat', Arial, sans-serif; }
.breadcrumbs a { color: #999; text-decoration: none; }
.breadcrumbs a:hover { color: #ffd000; }
.breadcrumbs span { color: #666; }
.breadcrumbs span:last-of-type { color: #ffffff; }

/* More menu */
.more-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a0a;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: more-menu-fade 0.2s ease-out;
}

.more-menu--open { display: block; }
body.menu-open { overflow: hidden; }

@keyframes more-menu-fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.more-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  background: #0a0a0a;
  z-index: 1;
}

.more-menu__title {
  font-family: 'montserrat', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.more-menu__close {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  padding: 0;
}

.more-menu__close svg { width: 24px; height: 24px; }

.more-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
}

.more-menu__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 10px;
  background: #141414;
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  min-height: 90px;
  transition: background 0.2s;
}

.more-menu__item:active {
  background: #1f1f1f;
}

.more-menu__item svg {
  width: 26px;
  height: 26px;
  color: #ffd000;
  flex-shrink: 0;
}

.more-menu__item span {
  color: #ffffff;
  line-height: 1.3;
}

@media screen and (min-width: 981px) {
  .more-menu { display: none !important; }
}

/* Футер */
.site-footer {
  background-color: #090909;
  padding: 60px 40px 40px;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
}

.site-footer__text {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.8;
  font-family: 'montserrat', Arial, sans-serif;
}

.site-footer__text strong { font-weight: 700; }
.site-footer__text a { color: #ffffff; text-decoration: none; }
.site-footer__text a:hover { color: #ffd000; }

@media screen and (max-width: 480px) {
  .site-footer { padding: 40px 20px 30px; }
  .site-footer__text { font-size: 16px; }
}
