:root {
  --home-ink: #172d34;
  --home-muted: #62747a;
  --home-green: #075346;
  --home-pale: #f4f7f5;
  --home-line: #e3eae7;
  --home-shell: 1440px;
}

body.homepage {
  margin: 0;
  color: var(--home-ink);
  background: #fff;
  font-family: "Overpass", "Open Sans", Arial, sans-serif;
}

.homepage *,
.homepage *::before,
.homepage *::after {
  box-sizing: border-box;
}

.homepage a {
  color: inherit;
}

.site-shell {
  width: min(var(--home-shell), calc(100% - 56px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: #fff !important;
  background: var(--home-green);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
}

.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -10px;
  width: min(var(--home-shell), calc(100% - 56px));
  height: 14px;
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 90px;
}

.masthead-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  align-self: stretch;
}

.utility-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 37px;
}

.utility-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid #d9e4e1;
  border-radius: 50%;
  color: #4c6065 !important;
  background: #fff;
  font-size: 13px;
  text-decoration: none !important;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.utility-icon-link:hover,
.utility-icon-link:focus-visible {
  border-color: #9bc2b4;
  color: #1f5f53 !important;
  background: #f2f9f6;
}

.utility-icon-link > .fa,
.utility-icon-link > .icons {
  color: #385761;
  font-size: 13px;
}

.utility-icon-link img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.header-search {
  display: flex;
  align-items: center;
  width: fit-content;
  height: 30px;
  padding: 0 0 0 9px;
  border: 1px solid #d8e0de;
  border-radius: 18px;
  background: #fff;
}

.header-search input {
  width: 76px;
  padding: 3px 2px;
  border: 0;
  outline: 0;
  color: var(--home-ink);
  background: transparent;
  font: inherit;
  font-size: 11px;
}

.header-search button {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #385761;
  background: #eef4f1;
  cursor: pointer;
  place-items: center;
}

.header-search button:hover,
.header-search button:focus-visible {
  color: #fff;
  background: var(--home-green);
}

.language-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--home-line);
}

.language-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border: 1px solid #d9e4e1;
  border-radius: 12px;
  color: #4c6065 !important;
  background: #fff;
  text-decoration: none !important;
}

.language-links .language-active {
  border-color: #9bc2b4;
  background: #edf5f2;
}

.language-links img {
  width: 19px;
  height: 13px;
  object-fit: cover;
}

.navigation-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 48px;
}

.service-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 17px;
  border-radius: 22px;
  color: #fff !important;
  background: var(--home-green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.service-button:hover,
.service-button:focus-visible {
  background: #063f35;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--home-ink) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none !important;
}

.brand img {
  width: 45px;
  height: auto;
}

.primary-navigation {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.mega-nav-list,
.mega-menu,
.mega-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

.mega-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.mega-menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 7px;
  color: var(--home-ink) !important;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none !important;
  white-space: nowrap;
}

.mega-nav-item > .mega-menu-link {
  font-size: 14px;
}

.mega-menu-link:hover,
.mega-menu-link:focus-visible {
  color: var(--home-green) !important;
}

.mega-menu-toggle,
.mobile-menu-toggle {
  border: 0;
  color: var(--home-green);
  background: transparent;
  cursor: pointer;
}

.mega-menu-toggle {
  width: 24px;
  height: 34px;
  padding: 0;
}

.mega-menu-toggle span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.has-mega-menu.is-open > .mega-menu-toggle span {
  transform: rotate(225deg) translate(-2px, -1px);
}

.mega-menu {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 50%;
  display: none;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 10px;
  width: min(1040px, calc(100vw - 100px));
  max-height: min(66vh, 580px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  border: 1px solid var(--home-line);
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgb(15 47 43 / 16%);
  --mega-shift-x: 0px;
  transform: translateX(calc(-50% + var(--mega-shift-x)));
  align-content: start;
}

.has-mega-menu.is-open > .mega-menu {
  display: grid;
}

.mega-menu-item {
  min-width: 0;
  margin: 0;
  position: relative;
}

.mega-menu > .mega-menu-item {
  padding: 9px 10px 9px;
  border: 1px solid #e0ece8;
  border-radius: 10px;
  background: #f9fcfb;
}

.mega-menu-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
  min-width: 0;
}

.mega-menu > .mega-menu-item > .mega-menu-item-head > .mega-menu-link {
  min-height: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  color: var(--home-green) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.mega-submenu-toggle {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  align-self: start;
  margin-top: 0;
  border: 1px solid #c9ddd6;
  border-radius: 7px;
  color: #2f7465;
  background: #fff;
  box-shadow: 0 1px 2px rgb(24 61 52 / 8%);
  cursor: pointer;
  place-items: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.mega-submenu-toggle:hover,
.mega-submenu-toggle:focus-visible {
  color: #1f5f53;
  border-color: #9fc3b8;
  background: #f2f9f6;
}

.mega-submenu-toggle span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(225deg);
  transition: transform .2s ease;
}

.mega-menu-item.has-submenu.is-open > .mega-menu-item-head .mega-submenu-toggle span {
  transform: rotate(45deg);
}

.mega-menu-item > .mega-submenu {
  display: none;
  position: static;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #d7e6e1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 10px rgb(20 53 47 / 8%);
}

.mega-menu-item.has-submenu.is-open > .mega-submenu {
  display: block;
}

.mega-submenu .mega-menu-item {
  margin: 0 0 6px;
}

.mega-submenu .mega-menu-link {
  display: block;
  min-height: 0;
  padding: 3px 0;
  color: var(--home-muted) !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.38;
  white-space: normal;
}

.mobile-menu-toggle {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  z-index: 30;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 400px;
  color: #fff;
  background-color: #274d45;
  background-image: var(--hero-image);
  background-position: center 52%;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(7 37 35 / 83%) 0%, rgb(7 37 35 / 62%) 35%, rgb(7 37 35 / 15%) 75%, rgb(7 37 35 / 8%) 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh) !important;
  height: max(56.25vw, 100vh) !important;
  min-width: 100%;
  min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.06);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 400px;
  padding-block: 26px;
}

.hero-copy {
  width: min(500px, 60%);
}

.eyebrow {
  margin: 0 0 9px;
  color: #9ac8bb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .99;
}

.hero-intro {
  max-width: 430px;
  margin: 10px 0 13px;
  color: rgb(255 255 255 / 92%);
  font-size: 15px;
  line-height: 1.5;
}

.hero-search {
  position: relative;
  z-index: 30;
  overflow: visible;
  display: flex;
  align-items: center;
  max-width: 490px;
  height: 40px;
  padding: 4px 0 4px 17px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 28px;
  background: #fff;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--home-ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.hero-search button {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--home-green);
  cursor: pointer;
  line-height: 1;
  font-size: 19px;
  place-items: center;
}

.popular-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 12px;
  color: rgb(255 255 255 / 85%);
  font-size: 11px;
}

.popular-links a {
  color: #fff;
  text-underline-offset: 3px;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 235px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 14px;
  color: #fff !important;
  background: rgb(15 55 48 / 76%);
  text-decoration: none !important;
  backdrop-filter: blur(8px);
}

.hero-note-icon {
  color: #c2dfcf;
  font-size: 24px;
  line-height: 1;
}

.hero-note strong,
.hero-note small {
  display: block;
}

.hero-note strong {
  font-size: 14px;
  line-height: 1.35;
}

.hero-note small {
  margin-top: 9px;
  color: #d9e9e4;
  font-size: 11px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-block: 16px 22px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--home-ink) !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgb(23 45 52 / 10%);
}

.quick-residents { background: #eef6f1; }
.quick-business { background: #eef4f8; }
.quick-council { background: #f8f4e9; }
.quick-admin { background: #f6eef0; }
.quick-tourism { background: #eaf4f1; }
.quick-region { background: #eef5ed; }

.quick-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--home-green);
  font-size: 19px;
  line-height: 1;
}

.quick-icon .fa {
  font-size: inherit;
  line-height: inherit;
}

.quick-card strong,
.quick-card small {
  display: block;
}

.quick-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.quick-card small {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 10px;
  line-height: 1.3;
}

.quick-arrow {
  align-self: center;
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--home-green);
}

.partner-banners-section {
  padding-block: 6px 16px;
}

.partner-banners-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-banner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.partner-banner-track.is-auto-scrolling {
  scroll-snap-type: none;
}

.partner-banner-track::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.partner-banner-nav {
  width: 34px;
  height: 34px;
  border: 1px solid #c9ddd6;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #eef7f3 100%);
  color: #1f5f4f;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgb(16 50 42 / 8%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.partner-banner-nav:hover,
.partner-banner-nav:focus-visible {
  transform: translateY(-1px);
  border-color: #93bdaf;
  box-shadow: 0 8px 16px rgb(16 50 42 / 14%);
}

.partner-banner-nav:disabled {
  opacity: .45;
  cursor: default;
  transform: none;
  box-shadow: 0 2px 6px rgb(16 50 42 / 8%);
}

.partner-banner-nav span {
  display: block;
  transform: translateY(-1px);
}

.partner-banner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 8px;
  border: 1px solid #d5e4df;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f6fbf9 100%);
  box-shadow: 0 5px 14px rgb(16 50 42 / 8%);
  text-decoration: none !important;
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.partner-banner-item:hover,
.partner-banner-item:focus-visible {
  transform: translateY(-2px);
  border-color: #b5d3c9;
  box-shadow: 0 10px 22px rgb(16 50 42 / 12%);
}

.partner-banner-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  object-fit: contain;
}

.bottom-banners-section {
  padding-block: 12px 24px;
}

.partner-banners-wrap-bottom {
  padding: 8px 10px;
  border: 1px solid #d9e8e2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f6fbf9 100%);
  box-shadow: 0 8px 24px rgb(16 50 42 / 8%);
}

.partner-banner-track-bottom {
  grid-auto-columns: minmax(180px, 1fr);
  gap: 10px;
}

.partner-banner-item-bottom {
  min-height: 94px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
}

.partner-banner-item-static {
  cursor: default;
}

.news-section {
  padding-block: 16px 38px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading .eyebrow {
  margin-bottom: 3px;
  color: var(--home-muted);
}

.section-heading h2,
.mayor-layout h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.text-link {
  color: var(--home-green) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.text-link span {
  margin-left: 5px;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(270px, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.featured-news,
.secondary-news {
  min-width: 0;
}

.news-featured-list {
  height: 100%;
}

.news-featured-card,
.news-grid-card {
  height: 100%;
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d9e7e2;
  border-radius: 14px;
  color: var(--home-ink) !important;
  background: #fff;
  box-shadow: 0 6px 18px rgb(16 50 42 / 8%);
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-card-link:hover,
.news-card-link:focus-visible {
  transform: translateY(-3px);
  border-color: #c6dbd3;
  box-shadow: 0 14px 30px rgb(16 50 42 / 14%);
}

.news-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-card-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 56%;
  background: linear-gradient(180deg, rgb(10 35 33 / 0%), rgb(10 35 33 / 70%) 70%, rgb(10 35 33 / 85%));
  content: "";
}

.news-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.news-card-link:hover .news-card-media img,
.news-card-link:focus-visible .news-card-media img {
  transform: scale(1.04);
}

.news-card-content {
  padding: 14px 16px 15px;
}

.news-card-date {
  display: inline-block;
  margin-bottom: 8px;
  color: #5e7378;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.news-card-title {
  margin: 0;
  color: #1b3942;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.news-card-excerpt {
  margin: 11px 0 0;
  color: #3f5962;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--home-green);
  font-size: 12px;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.news-grid-media {
  position: relative;
  height: 132px;
  overflow: hidden;
}

.news-grid-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62%;
  background: linear-gradient(180deg, rgb(10 35 33 / 0%), rgb(10 35 33 / 72%) 72%, rgb(10 35 33 / 90%));
  content: "";
}

.news-grid-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.news-card-link:hover .news-grid-media img,
.news-card-link:focus-visible .news-grid-media img {
  transform: scale(1.04);
}

.news-grid-content {
  padding: 11px 12px 12px;
}

.news-grid-title {
  margin: 0;
  color: #1d3b43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.region-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 276px;
  padding: 23px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background-color: #174e48;
  background-image: linear-gradient(105deg, rgb(6 55 49 / 88%), rgb(9 60 52 / 46%)), var(--region-image);
  background-position: center;
  background-size: cover;
}

.region-card .eyebrow {
  color: #b9d5ca;
}

.region-card h2 {
  max-width: 350px;
  margin: 2px 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.region-card p:not(.eyebrow) {
  max-width: 350px;
  margin: 0 0 17px;
  color: rgb(255 255 255 / 90%);
  font-size: 13px;
  line-height: 1.45;
}

.light-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 10px 15px;
  border-radius: 24px;
  color: var(--home-green) !important;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.updates-section {
  padding-block: 30px;
  background: var(--home-pale);
}

.updates-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.updates-panel,
.events-panel {
  min-width: 0;
}

.aktualijos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.aktualijos-card {
  min-width: 0;
}

.aktualijos_link {
  display: block;
  height: 100%;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 14px 15px;
  border: 1px solid #d9e7e2;
  border-radius: 12px;
  color: var(--home-ink) !important;
  background: #fff;
  box-shadow: 0 4px 14px rgb(16 50 42 / 7%);
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.aktualijos_link:hover,
.aktualijos_link:focus-visible {
  transform: translateY(-2px);
  border-color: #c4dad2;
  box-shadow: 0 12px 24px rgb(16 50 42 / 12%);
}

.aktualijos-date {
  display: inline-block;
  margin-bottom: 8px;
  color: #5f757a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.aktualijos-title {
  margin: 0;
  color: #1d3a43;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.events-panel .kalendoriaus_wrapper {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 18px;
  min-width: 0;
  align-items: start;
  position: relative;
  isolation: isolate;
}

.events-panel .kalendoriaus_main,
.events-panel .kalendoriaus_renginiai {
  min-width: 0;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  float: none !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  z-index: auto !important;
}

.events-panel .kalendoriaus_main {
  position: relative !important;
  min-width: 0 !important;
  overflow: visible;
  padding: 14px;
  border: 1px solid #d7e5e0;
  border-radius: 14px;
  background: linear-gradient(165deg, #537c8c 0%, #4d7484 36%, #3f6270 100%);
  box-shadow: 0 8px 20px rgb(18 46 58 / 16%);
}

.events-panel .event-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.events-panel .event-calendar-title {
  color: #f3fcff;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.events-panel .event-calendar-nav {
  display: inline-flex;
  gap: 6px;
}

.events-panel .event-calendar-nav-btn {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  background: rgb(255 255 255 / 16%);
  text-decoration: none !important;
}

.events-panel .event-calendar-nav-btn:hover,
.events-panel .event-calendar-nav-btn:focus-visible {
  background: rgb(255 255 255 / 28%);
}

.events-panel .event-calendar-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px 7px;
  color: #f6fcff;
}

.events-panel .event-calendar-table th {
  padding: 2px 4px 5px !important;
  border: 0 !important;
  color: #e7f3f8;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.events-panel .event-calendar-day,
.events-panel .event-calendar-empty {
  border: 0 !important;
  padding: 0 !important;
  text-align: center;
}

.events-panel .event-calendar-day {
  color: #d9ebf1;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
}

.events-panel .day.success.event-calendar-day {
  color: #fff;
}

.events-panel .event-day-number,
.events-panel .event-day-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.events-panel .event-day-number {
  border: 1px solid rgb(255 255 255 / 58%);
  color: #f0f7fa;
  background: rgb(255 255 255 / 10%);
}

.events-panel .event-day-link {
  border: 1px solid rgb(255 255 255 / 76%);
  color: #fff !important;
  background: rgb(255 255 255 / 18%);
  text-decoration: none !important;
}

.events-panel .event-day-link:hover,
.events-panel .event-day-link:focus-visible {
  background: rgb(255 255 255 / 25%);
}

.events-panel .kalendorius_main_content {
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  position: relative;
  z-index: 1;
}

.events-panel .day-events-popup {
  position: absolute !important;
  display: none;
  z-index: 25;
  width: min(340px, calc(100vw - 36px));
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 8px;
  padding: 8px 10px 4px;
  border: 1px solid #d2e1dc;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
}

.events-panel .day-events-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
}

.events-panel .day-events-close a {
  color: #6a828b !important;
}

.events-panel .dienos_renginys {
  display: block;
  margin-bottom: 5px;
  color: #1f3f49 !important;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none !important;
}

.events-panel .kalendoriaus_renginiai {
  position: relative !important;
  min-width: 0 !important;
  left: auto !important;
  top: auto !important;
  max-height: none;
  overflow: visible;
  padding: 6px;
  border: 1px solid #d7e5e0;
  border-radius: 14px;
  background: #f7fbfa !important;
  box-shadow: 0 8px 20px rgb(18 46 58 / 14%);
  z-index: 2;
}

.events-panel .kalendoriaus_renginiai ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.events-panel .event-list-heading {
  position: static;
  padding: 9px 10px 8px;
  margin: -6px -6px 10px;
  border-bottom: 1px solid #d8e5e1;
  color: #1e3a43;
  background: #eef6f3;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.events-panel .event-item-wrap + .event-item-wrap {
  margin-top: 8px;
}

.events-panel .event-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 11px 12px;
  border-bottom: 0 !important;
  border: 1px solid #d9e7e2;
  border-radius: 12px;
  color: #1f3f49 !important;
  background: #fff;
  font-weight: 400 !important;
  box-shadow: 0 4px 12px rgb(15 44 54 / 7%);
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.events-panel .event-item:hover,
.events-panel .event-item:focus-visible {
  transform: translateY(-2px);
  border-color: #bfd7cf;
  box-shadow: 0 10px 20px rgb(15 44 54 / 12%);
}

.events-panel .event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 98px;
  padding: 7px 6px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(160deg, #2f6474, #234d5a);
  text-align: center;
}

.events-panel .event-date-year,
.events-panel .event-date-month,
.events-panel .event-date-time {
  color: #fff !important;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.events-panel .event-date-day {
  color: #fff !important;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: .95;
}

.events-panel .event-item-content {
  min-width: 0;
}

.events-panel .event-item-title {
  margin: 0;
  color: #18363e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.events-panel .event-item-place {
  margin-top: 5px;
  color: #4c656d;
  font-size: 12px;
}

.events-panel .event-item-type {
  margin-top: 6px;
  color: #2e7f72;
  font-size: 11px;
  font-weight: 600;
}

.events-panel .event-calendar-error {
  padding: 12px;
  border-radius: 10px;
  color: #8d2b2b;
  background: #fff1f1;
  font-size: 13px;
}

.services-section {
  padding-block: 32px;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-links .blokas {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  height: auto;
  float: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d4e1dd;
  border-radius: 12px;
  color: var(--home-ink) !important;
  background: linear-gradient(180deg, #fff 0%, #f8fcfb 100%);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgb(14 46 54 / 6%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-links .blokas:hover,
.service-links .blokas:focus-visible {
  transform: translateY(-2px);
  border-color: #b7d2ca;
  background: #f2f9f6;
  box-shadow: 0 12px 22px rgb(14 46 54 / 12%);
}

.service-links .blokas .icons,
.service-links .blokas .fa {
  flex: 0 0 24px;
  color: var(--home-green);
  font-size: 21px;
}

.service-links .blokas br {
  display: none;
}

.service-links .blokas span {
  display: block;
  color: #1f3f49;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32 !important;
  letter-spacing: .01em;
  white-space: normal;
  word-break: normal;
}

.service-links .blokas img {
  flex: 0 0 auto;
  width: auto;
  max-width: 30px;
  max-height: 30px;
}

.mayor-section {
  padding-block: 34px 40px;
  background: linear-gradient(180deg, #eef5f2 0%, #f5faf8 100%);
}

.mayor-layout {
  display: grid;
  grid-template-columns: minmax(245px, .64fr) minmax(0, 1.36fr);
  gap: 24px;
  align-items: start;
}

.mayor-profile-card {
  padding: 14px;
  border: 1px solid #d5e3df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(15 45 54 / 9%);
}

.mayor-layout h2 {
  margin: 3px 0 0;
  color: #15353f;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.12;
}

.mayor-role {
  margin: 11px 0 0;
  color: #35535d;
  font-size: 16px;
}

.mayor-photo-link {
  display: block;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.mayor-photo {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .24s ease;
}

.mayor-photo-link:hover .mayor-photo,
.mayor-photo-link:focus-visible .mayor-photo {
  transform: scale(1.02);
}

.mayor-schedule-shell {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(320px, 1.12fr);
  gap: 34px;
  align-items: start;
  position: relative;
}

.mayor-schedule-shell::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: calc(44% + 17px);
  width: 2px;
  background: linear-gradient(180deg, rgb(158 190 180 / 0%), rgb(158 190 180 / 98%), rgb(158 190 180 / 0%));
  pointer-events: none;
}

.mayor-calendar-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e5e0;
  border-radius: 14px;
  background: linear-gradient(165deg, #5d8897 0%, #4f7585 42%, #436573 100%);
  box-shadow: 0 8px 20px rgb(18 46 58 / 16%);
}

.mayor-calendar-card .mero_index > span {
  color: #f4fcff !important;
}

.mayor-calendar-card .mero_index > span:first-child {
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.mayor-calendar-card .mero_index > span:last-child {
  display: inline-flex !important;
  gap: 6px;
}

.mayor-calendar-card .mero_index > span:last-child a {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  background: rgb(255 255 255 / 16%);
  text-decoration: none !important;
}

.mayor-calendar-card .mero_index > span:last-child a:hover,
.mayor-calendar-card .mero_index > span:last-child a:focus-visible {
  background: rgb(255 255 255 / 28%);
}

.mayor-calendar-card table {
  width: 100%;
  margin: 10px 0 0 !important;
  color: #f6fcff;
  table-layout: fixed;
}

.mayor-calendar-card th {
  border: 0 !important;
  padding: 6px 4px !important;
  color: #e9f4f8;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.mayor-calendar-card td {
  border: 0 !important;
  padding: 5px 4px !important;
  text-align: center;
  color: #dff0f6;
}

.mayor-calendar-card .day.success {
  color: #fff !important;
}

.mayor-calendar-card .day .dienos_active {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 8px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.mayor-calendar-card .day .dienos_active:hover,
.mayor-calendar-card .day .dienos_active:focus-visible {
  background: rgb(255 255 255 / 16%);
}

.mayor-calendar-card .dienos_renginiai {
  position: absolute;
  display: none;
  z-index: 14;
  width: min(340px, calc(100vw - 30px));
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 3px;
  padding: 9px 11px 5px;
  border: 1px solid #cfdfda;
  border-radius: 10px;
  color: #1f3f49;
  background: #fff;
  box-shadow: 0 10px 24px rgb(0 0 0 / 16%);
}

.mayor-calendar-card .dienos_renginiai a {
  color: #1f3f49 !important;
  text-decoration: none !important;
}

.mayor-calendar-card .dienos_renginiai .dienos_renginys {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.36;
}

.mayor-calendar-error {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  color: #8e2b2b;
  background: #fff1f1;
  font-size: 13px;
}

.mayor-today-card {
  min-width: 0;
  min-height: 300px;
  margin-left: 34px;
  padding: 10px 10px 10px 14px;
  border: 1px solid #d7e5e0;
  border-left: 4px solid #b6d2c9;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fcfb 0%, #f4faf8 100%);
  box-shadow: 0 8px 20px rgb(18 46 58 / 14%);
}

.mayor-today-title {
  margin: 0 0 10px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid #d8e5e1;
  color: #1e3a43;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.mayor-today-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mayor-today-item + .mayor-today-item {
  margin-top: 8px;
}

.mayor-today-event {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid #d9e7e2 !important;
  border-radius: 12px;
  color: #1f3f49 !important;
  background: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgb(15 44 54 / 7%);
}

.mayor-today-event:hover,
.mayor-today-event:focus-visible {
  border-color: #bfd7cf !important;
  box-shadow: 0 10px 20px rgb(15 44 54 / 12%);
}

.mayor-event-date {
  min-height: 92px;
  padding: 7px 6px;
  border-radius: 10px;
  color: #fff !important;
  background: linear-gradient(160deg, #2f6474, #234d5a);
  text-align: center;
  line-height: 1.05;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .03em;
}

.mayor-event-date,
.mayor-event-date * {
  color: #fff !important;
}

.mayor-event-date span {
  display: block;
  margin: 2px 0 1px;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 31px !important;
  font-weight: 700;
  line-height: .95 !important;
}

.mayor-event-text {
  color: #18363e;
  font-size: 14px;
  line-height: 1.32;
}

.mero_index_darbotvarke_vidus {
  max-height: 410px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.mayor-today-empty {
  padding: 16px 10px;
  border: 1px dashed #c2d7d0;
  border-radius: 12px;
  color: #5b7278;
  background: #fff;
  font-size: 13px;
}

.mayor-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mayor-contact-card,
.mayor-links-card {
  padding: 14px 16px;
  border: 1px solid #d8e5e1;
  border-radius: 12px;
  background: #fff;
}

.mayor-contact-card a,
.mayor-links-card a {
  display: block;
  color: #1f3f49;
  text-decoration: none !important;
}

.mayor-contact-card a + a,
.mayor-links-card > a + .mayor-report-details {
  margin-top: 7px;
}

.mayor-contact-card a:hover,
.mayor-links-card a:hover,
.mayor-report-details summary:hover {
  color: #2f7465;
}

.mayor-report-details {
  margin-top: 8px;
}

.mayor-report-details summary {
  cursor: pointer;
  color: #1f3f49;
  font-weight: 600;
}

.mayor-report-details ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  column-count: 3;
  column-gap: 10px;
}

.mayor-report-details li {
  margin-bottom: 4px;
}

.mayor-reception-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d8e5e1;
  border-radius: 12px;
  color: #20434c;
  background: #fff;
  font-size: 15px;
}

.mayor-layout .eyebrow {
  color: var(--home-muted);
}

.mayor-schedule {
  min-width: 0;
}

.mayor-schedule-header {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid #d7e5e0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf8 100%);
}

.mayor-schedule-header .eyebrow {
  margin: 0 0 4px;
  color: #6a8287;
  font-size: 11px;
}

.mayor-schedule-header h3 {
  margin: 0;
  color: #183740;
  font-family: "Manrope", "Overpass", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.homepage footer {
  margin-top: 0;
}

.homepage :focus-visible {
  outline: 3px solid #e1a92c;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-header::after {
    width: min(var(--home-shell), calc(100% - 36px));
  }

  .site-shell {
    width: min(var(--home-shell), calc(100% - 36px));
  }

  .masthead {
    gap: 18px;
    min-height: 86px;
  }

  .utility-nav {
    gap: 12px;
  }

  .mega-menu-link {
    padding-inline: 6px;
    font-size: 11px;
  }

  .navigation-row {
    gap: 10px;
  }

  .service-button {
    padding-inline: 13px;
  }

  .quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-layout {
    grid-template-columns: 1fr 1fr;
  }

  .region-card {
    grid-column: 1 / -1;
    min-height: 230px;
  }

  .mayor-layout h2 {
    font-size: 28px;
  }

  .mayor-schedule-header h3 {
    font-size: 24px;
  }

  .mayor-schedule-shell {
    grid-template-columns: 1fr;
  }

  .mayor-schedule-shell::before {
    display: none;
  }

  .mayor-today-card {
    margin-left: 0;
  }

  .mero_index_darbotvarke_vidus {
    max-height: none;
  }

  .mayor-report-details ul {
    column-count: 2;
  }

  .partner-banner-track {
    grid-auto-columns: minmax(200px, 1fr);
    gap: 10px;
  }

  .partner-banner-nav {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}

@media (max-width: 960px) {
  .site-header::after {
    bottom: -8px;
    height: 11px;
  }

  @media (max-width: 980px) {
    .events-panel .kalendoriaus_wrapper {
      grid-template-columns: 1fr;
    }
  }

  .masthead {
    position: relative;
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 65px;
    padding-block: 8px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 39px;
  }

  .masthead-content {
    display: contents;
  }

  .utility-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    min-height: 34px;
    padding: 5px 0 0;
    overflow-x: auto;
    border-top: 1px solid var(--home-line);
  }

  .utility-links {
    gap: 5px;
  }

  .utility-icon-link {
    width: 27px;
    height: 27px;
  }

  .language-links {
    margin-left: auto;
  }

  .navigation-row {
    display: contents;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 10px 12px;
    color: var(--home-green);
    font-size: 13px;
    font-weight: 700;
  }

  .service-button {
    display: none;
  }

  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .mobile-menu-icon {
    position: relative;
  }

  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .mobile-menu-icon::before { top: -6px; }
  .mobile-menu-icon::after { top: 6px; }

  .primary-navigation {
    display: none;
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    padding: 0 0 10px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .mega-nav-list {
    display: block;
    height: auto;
  }

  .mega-nav-item {
    flex-wrap: wrap;
    border-top: 1px solid var(--home-line);
  }

  .mega-nav-item > .mega-menu-link {
    flex: 1;
    min-height: 45px;
    padding: 0;
    font-size: 14px;
  }

  .mega-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mega-menu {
    position: static;
    display: none;
    flex: 0 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    box-shadow: none;
    transform: none;
  }

  .has-mega-menu.is-open > .mega-menu {
    display: grid;
  }

  .mega-menu-item-head {
    gap: 8px;
  }

  .mega-submenu-toggle {
    width: 24px;
    height: 24px;
  }

  .mega-menu-item > .mega-submenu {
    width: 100%;
    margin-top: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .site-header::after {
    width: calc(100% - 32px);
  }

  .site-shell {
    width: calc(100% - 32px);
  }

  .masthead {
    position: relative;
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 65px;
    padding-block: 8px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 39px;
  }

  .masthead-content {
    display: contents;
  }

  .utility-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    min-height: 34px;
    padding: 5px 0 0;
    overflow-x: auto;
    border-top: 1px solid var(--home-line);
  }

  .utility-links {
    gap: 5px;
  }

  .utility-icon-link {
    width: 27px;
    height: 27px;
  }

  .header-search {
    display: none;
  }

  .language-links {
    margin-left: auto;
  }

  .navigation-row {
    display: contents;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 10px 12px;
    font-size: 13px;
    font-weight: 700;
  }

  .service-button {
    display: none;
  }

  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .mobile-menu-icon {
    position: relative;
  }

  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .mobile-menu-icon::before { top: -6px; }
  .mobile-menu-icon::after { top: 6px; }

  .primary-navigation {
    display: none;
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    padding: 0 0 10px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .mega-nav-list {
    display: block;
    height: auto;
  }

  .mega-nav-item {
    flex-wrap: wrap;
    border-top: 1px solid var(--home-line);
  }

  .mega-nav-item > .mega-menu-link {
    flex: 1;
    min-height: 45px;
    padding: 0;
    font-size: 14px;
  }

  .mega-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mega-menu {
    position: static;
    display: none;
    flex: 0 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    box-shadow: none;
    transform: none;
  }

  .has-mega-menu.is-open > .mega-menu {
    display: grid;
  }

  .mega-menu > .mega-menu-item > .mega-menu-item-head > .mega-menu-link {
    font-size: 13px;
  }

  .mega-menu-item-head {
    gap: 8px;
  }

  .mega-submenu-toggle {
    width: 24px;
    height: 24px;
  }

  .mega-menu-item > .mega-submenu {
    width: 100%;
    margin-top: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: none;
  }

  .hero,
  .hero-inner {
    min-height: 380px;
  }

  .hero {
    background-image: var(--hero-image);
  }

  .hero-video iframe {
    width: max(100vw, 177.78vh) !important;
    height: max(56.25vw, 100vh) !important;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.14);
  }

  .hero::before {
    background: linear-gradient(90deg, rgb(7 37 35 / 84%), rgb(7 37 35 / 43%));
    background-position: center;
  }

  .hero-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding-block: 32px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(37px, 10vw, 48px);
  }

  .hero-intro {
    max-width: 440px;
    font-size: 14px;
  }

  .hero-note {
    width: min(100%, 320px);
    padding: 12px 14px;
  }

  .hero-note-icon {
    font-size: 20px;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-block: 12px 18px;
  }

  .quick-card {
    min-height: 69px;
    padding: 9px;
    gap: 7px;
  }

  .quick-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .quick-card strong {
    font-size: 12px;
  }

  .quick-card small {
    font-size: 9px;
  }

  .section-heading h2,
  .mayor-layout h2 {
    font-size: 23px;
  }

  .news-layout,
  .updates-layout,
  .mayor-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-featured-list {
    height: auto;
  }

  .news-card-media {
    height: 210px;
  }

  .news-grid-media {
    height: 148px;
  }

  .news-card-title {
    font-size: 22px;
  }

  .region-card {
    grid-column: auto;
    min-height: 250px;
  }

  .mayor-profile-card {
    padding: 12px;
  }

  .mayor-schedule-header h3 {
    font-size: 22px;
  }

  .mayor-meta-grid {
    grid-template-columns: 1fr;
  }

  .mayor-reception-note {
    align-items: flex-start;
    font-size: 14px;
  }

  .partner-banner-track {
    grid-auto-columns: minmax(180px, 76vw);
  }

  .partner-banners-wrap {
    gap: 6px;
  }

  .partner-banner-nav {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .updates-section {
    padding-block: 24px;
  }

  .aktualijos-grid {
    grid-template-columns: 1fr;
  }

  .aktualijos-title {
    font-size: 14px;
  }

  .events-panel .kalendoriaus_wrapper {
    grid-template-columns: 1fr;
  }

  .events-panel .kalendoriaus_main {
    padding: 12px;
  }

  .events-panel .event-item {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .events-panel .event-item-title {
    font-size: 14px;
  }

  .service-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .popular-links {
    gap: 7px 12px;
  }

  .quick-card {
    align-items: flex-start;
  }

  .quick-arrow {
    display: none;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-grid-media {
    height: 170px;
  }

  .news-card-content {
    padding: 12px 13px 14px;
  }

  .news-card-title {
    font-size: 20px;
  }

  .events-panel .event-date-day {
    font-size: 27px;
  }

  .service-links {
    grid-template-columns: 1fr;
  }

  .partner-banner-item {
    min-height: 74px;
    padding: 6px;
  }

  .mayor-today-event {
    grid-template-columns: 66px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .mayor-event-date span {
    font-size: 27px !important;
  }

  .mayor-report-details ul {
    column-count: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage *,
  .homepage *::before,
  .homepage *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
