﻿body#home > header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body#home > header .topbar,
body#home > header .nav {
  position: static !important;
  background: transparent !important;
  color: #0b3f70 !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body#home > header .topbar {
  border-bottom: 0 !important;
}

body#home > header .topbar .wrap {
  position: relative;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 18px !important;
  overflow: hidden;
}

body#home > header .top-info {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 92px;
  gap: 10px !important;
  justify-content: center;
  flex-wrap: nowrap !important;
}

body#home > header .top-info > span,
body#home > header .top-info > a {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(11, 63, 112, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #0b3f70 !important;
  font-weight: 800 !important;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(11, 63, 112, .10);
  backdrop-filter: blur(10px);
}

body#home > header .top-info > span:first-child {
  min-width: 220px;
  max-width: 390px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body#home > header .top-info b {
  color: #d97d13 !important;
}

body#home > header .top-info a,
body#home > header .top-info span,
body#home > header .email-stack a {
  color: #0b3f70 !important;
}

body#home > header .email-stack a + a:before {
  color: rgba(11, 63, 112, .34) !important;
}

body#home > header .lang {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  flex: 0 0 auto;
  margin-inline-start: 0 !important;
}

body#home > header .lang span,
body#home > header .lang a {
  border-color: rgba(11, 63, 112, .20) !important;
  color: #0b3f70 !important;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 7px 16px rgba(11, 63, 112, .08);
  backdrop-filter: blur(10px);
}

body#home > header .lang .active {
  background: #f29a24 !important;
  color: #082f59 !important;
  border-color: #f29a24 !important;
}

body#home > header .nav .wrap {
  min-height: 88px !important;
  display: grid !important;
  grid-template-columns: minmax(250px, .9fr) minmax(420px, 1.6fr) auto !important;
  align-items: center !important;
  gap: 22px !important;
}

body#home > header .brand {
  color: #0b3f70 !important;
}

body#home > header .brand-logo {
  width: 66px !important;
  height: 66px !important;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 24px rgba(11, 63, 112, .14);
  backdrop-filter: blur(10px);
}

body#home > header .brand-text strong,
body#home > header .brand-text small {
  color: #0b3f70 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .78);
}

body#home > header .brand-text strong {
  font-size: 24px !important;
}

body#home > header .brand-text small {
  color: #082f59 !important;
}

body#home > header .menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px;
  border: 1px solid rgba(11, 63, 112, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 10px 28px rgba(11, 63, 112, .09);
  backdrop-filter: blur(12px);
}

body#home > header .menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px !important;
  border-radius: 12px;
  color: #0b3f70 !important;
  text-decoration: none;
  font-weight: 900 !important;
}

body#home > header .menu a:hover,
body#home > header .menu a.active {
  background: rgba(255, 255, 255, .92) !important;
  color: #0b3f70 !important;
}

body#home > header .menu a.active {
  box-shadow: inset 0 -3px 0 #f29a24;
}

body#home > header .menu a.active:after {
  display: none !important;
}

body#home > header .search {
  width: 46px !important;
  height: 46px !important;
  border: 1px solid rgba(11, 63, 112, .14) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .70) !important;
  color: #0b3f70 !important;
  font-size: 22px !important;
  box-shadow: 0 10px 24px rgba(11, 63, 112, .10);
  backdrop-filter: blur(12px);
}

body#home .hero,
body#home .preview-hero {
  padding-top: 134px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .16) 42%, rgba(255, 255, 255, .28) 100%),
    url("assets/rooftop_theme_background.webp") center top / cover no-repeat !important;
}

body#home .hero .wrap,
body#home .preview-hero {
  min-height: 700px !important;
}

@media (max-width: 980px) {
  body#home > header {
    position: relative;
    background:
      linear-gradient(180deg, rgba(239, 247, 252, .62), rgba(255, 255, 255, .72)),
      url("assets/rooftop_theme_background.webp") center top / cover no-repeat;
  }

  body#home .hero,
  body#home .preview-hero {
    padding-top: 0;
  }

  body#home > header .nav .wrap {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 12px !important;
    padding: 14px 0;
  }

  body#home > header .menu {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start !important;
  }

  body#home > header .menu a {
    white-space: nowrap;
  }
}

body:not(#home) > .topbar,
body:not(#home) > .nav {
  position: absolute !important;
  right: 0;
  left: 0;
  z-index: 1000;
  background: transparent !important;
  color: #0b3f70 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:not(#home) > .topbar {
  top: 0;
}

body:not(#home) > .nav {
  top: 44px;
}

body:not(#home) > .topbar .wrap {
  position: relative;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  overflow: hidden;
}

body:not(#home) > .topbar .top-info {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 92px;
  gap: 10px !important;
  justify-content: center;
  flex-wrap: nowrap !important;
}

body:not(#home) > .topbar .top-info > span,
body:not(#home) > .topbar .top-info > a {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(11, 63, 112, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .70);
  color: #0b3f70 !important;
  font-weight: 800 !important;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(11, 63, 112, .10);
  backdrop-filter: blur(10px);
}

body:not(#home) > .topbar .top-info > span:first-child {
  min-width: 220px;
  max-width: 390px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(#home) > .topbar .top-info b,
body:not(#home) > .topbar .top-info i {
  color: #d97d13 !important;
}

body:not(#home) > .topbar .email-stack a + a:before {
  color: rgba(11, 63, 112, .34) !important;
}

body:not(#home) > .topbar .lang {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-inline-start: 0 !important;
}

body:not(#home) > .topbar .lang span,
body:not(#home) > .topbar .lang a {
  border-color: rgba(11, 63, 112, .20) !important;
  color: #0b3f70 !important;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 7px 16px rgba(11, 63, 112, .08);
  backdrop-filter: blur(10px);
}

body:not(#home) > .topbar .lang .active {
  background: #f29a24 !important;
  color: #082f59 !important;
  border-color: #f29a24 !important;
}

body:not(#home) > .nav .wrap {
  min-height: 88px !important;
  display: grid !important;
  grid-template-columns: minmax(250px, .9fr) minmax(420px, 1.6fr) auto !important;
  align-items: center !important;
  gap: 22px !important;
}

body:not(#home) > .nav .brand,
body:not(#home) > .nav .brand strong,
body:not(#home) > .nav .brand small {
  color: #0b3f70 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .78);
}

body:not(#home) > .nav .brand img {
  width: 66px !important;
  height: 66px !important;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 24px rgba(11, 63, 112, .14);
  backdrop-filter: blur(10px);
}

body:not(#home) > .nav .nav-links,
body:not(#home) > .nav .menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px;
  border: 1px solid rgba(11, 63, 112, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 10px 28px rgba(11, 63, 112, .09);
  backdrop-filter: blur(12px);
}

body:not(#home) > .nav .nav-links a,
body:not(#home) > .nav .menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px !important;
  border-radius: 12px;
  color: #0b3f70 !important;
  text-decoration: none;
  font-weight: 900 !important;
}

body:not(#home) > .nav .nav-links a:hover,
body:not(#home) > .nav .nav-links a.active,
body:not(#home) > .nav .menu a:hover,
body:not(#home) > .nav .menu a.active {
  background: rgba(255, 255, 255, .92) !important;
  color: #0b3f70 !important;
  box-shadow: inset 0 -3px 0 #f29a24;
}

body:not(#home) > .nav .nav-links a.active:after,
body:not(#home) > .nav .menu a.active:after {
  display: none !important;
}

body:not(#home) > .page-hero,
body:not(#home) > .blog-hero,
body:not(#home) > .article-hero {
  padding-top: 134px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .18) 42%, rgba(255, 255, 255, .32) 100%),
    url("assets/rooftop_theme_background.webp") center top / cover no-repeat !important;
  color: #0b3f70 !important;
  border-bottom: 1px solid rgba(11, 63, 112, .12);
}

body:not(#home) > .page-hero h1,
body:not(#home) > .blog-hero h1,
body:not(#home) > .article-hero h1 {
  color: #082f59 !important;
  text-shadow: 0 3px 14px rgba(255, 255, 255, .86), 0 1px 0 rgba(255, 255, 255, .72);
}

body:not(#home) > .page-hero p,
body:not(#home) > .blog-hero p,
body:not(#home) > .article-hero p {
  color: #284c68 !important;
}

@media (max-width: 980px) {
  body:not(#home) > .topbar,
  body:not(#home) > .nav {
    position: relative !important;
    top: auto;
    background:
      linear-gradient(180deg, rgba(239, 247, 252, .68), rgba(255, 255, 255, .74)),
      url("assets/rooftop_theme_background.webp") center top / cover no-repeat !important;
  }

  body:not(#home) > .nav .wrap {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 12px !important;
    padding: 14px 0;
  }

  body:not(#home) > .nav .nav-links,
  body:not(#home) > .nav .menu {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start !important;
  }

  body:not(#home) > .page-hero,
  body:not(#home) > .blog-hero,
  body:not(#home) > .article-hero {
    padding-top: 0 !important;
  }
}

@media (max-width: 700px) {
  body#home > header .topbar .wrap {
    justify-content: center !important;
    padding: 8px 0 !important;
  }

  body#home > header .top-info {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body#home > header .top-info > span,
  body#home > header .top-info > a {
    justify-content: center;
    font-size: 12px;
  }
}

