body {
  margin: 0;
  background: #F5F8FD;
  font-family: 'Montserrat', sans-serif;
  color: #000;
}

header {
  background: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.header-text .subline {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: -2px;
}

.header-text .mainline {
  font-size: 16px;
  font-weight: 500;
}

.logo-img, .emblem-img {
  width: 48px;
  height: 48px;
  filter: brightness(1.1);
}

nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.header-bg nav a:hover {
  color: #4375FF;
}

.chart-inner {
  display: flex;
  gap: 30px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  align-items: stretch;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  margin-top: 40px;
  box-shadow: 0 0 25px 10px rgba(20, 100, 165, 0.15);
  box-sizing: border-box;
}

.chart-box {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.chart-box h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.chart-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  margin-top: 45px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.left h2 {
  margin-bottom: 0;
}

.left {
  flex: 0 1 70%;
  min-width: 0;
  overflow: auto;
}

.right {
  flex: 0 1 30%;
  min-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 25px 10px rgba(20, 100, 165, 0.08);
  box-sizing: border-box;
  position: sticky;
  top: 30px;
  height: fit-content;
}

.info-block {
  margin-bottom: 32px;
}

.info-block h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.info-block p {
  margin-left: 18px;
  display: flex;
  align-items: center;
}

.bullet {
  width: 8px;
  height: 8px;
  background: #4375FF;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.activity-table {
  width: 100%;
  margin-top: 15px;
  border-collapse: separate;
  border-spacing: 16px 12px;
}

.activity-table th {
  text-align: left;
  font-size: 14px;
  padding-bottom: 4px;
  color: #333;
}

.activity-table td {
  vertical-align: middle;
  font-size: 16px;
  white-space: nowrap;
}

.activity-table .label {
  display: inline-block;
  color: black;
  font-weight: 600;
  text-align: center;
  padding: 8px 12px;
  min-width: 60px;
  border-radius: 30px;
}

.activity-table .green { background: #28a745; width: 60px; }
.activity-table .yellow { background: #d6c900; width: 80px; }
.activity-table .orange { background: #f7a200; width: 120px; }
.activity-table .red { background: #f73131; width: 140px; }
.activity-table .darkred { background: #cc0e36; width: 160px; }

footer {
  background: #fff;
  padding: 60px 100px;
  font-size: 16px;
  line-height: 1.6;
  border-top: 1px solid #e0e0e0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 480px;
  min-width: 280px;
}

.footer-logo-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo-img {
  width: 56px;
  height: auto;
}

.footer-text-block {
  display: flex;
  flex-direction: column;
}

.footer-text {
  font-size: 18px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 100px;
  justify-content: flex-end;
  flex: 1;
  flex-wrap: wrap;
  min-width: 300px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  font-size: 18px;
  margin-bottom: 12px;
  transition: color 0.2s ease-in-out;
}

.footer-links ul li a {
  color: inherit;
  text-decoration: none;
}

.footer-links ul li a:hover { text-decoration: underline; }

.footer-contact{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.footer-contact__icon{
  width:20px;
  min-width:20px;
  font-size:18px;
}

.footer-contact__icon--fb{
  color: #4375FF; 
}

.footer-contact__link{
  color:inherit;
  text-decoration:none;
}

.footer-contact__link:hover{
  text-decoration:underline;
}

.footer-contacts__title{
  font-size:18px;
  margin-bottom:12px;
}

.footer-logo-link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.footer-logo-link:hover,
.footer-logo-link:focus{
  text-decoration: none; 
}

.footer-logo-link .footer-text{
  text-decoration: none;
}

@media (max-width: 768px) {
  footer { padding: 40px 24px; }
  .footer-container { flex-direction: column; gap: 40px; }
  .footer-links { flex-direction: column; gap: 32px; }
}

.graph-container {
  margin-bottom: 24px;
  background: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.04);
}

.graph-container canvas {
  display: block;
  width: 100% !important;
  height: 360px !important;
  max-height: 420px;
}

.graph-date {
  float: right;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.graph-container h4 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.date-row p { margin: 0; font-size: 15px; font-weight: 500; }

.date-row select {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.kd-index {
  font-size: 16px;
  font-weight: 500;
  margin: 4px 0 12px 18px;
  color: #000;
}

.header-bg {
  background-image: url("../media/Shapka.webp");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  height: 280px;
  color: white;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.header-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.header-bg > * { position: relative; z-index: 1; }

.header-bg .logo,
.header-bg nav a,
.header-bg .subline,
.header-bg .mainline { color: white; }

.header-bg .logo-img,
.header-bg .emblem-img { filter: brightness(1.1); }

@media (max-width: 768px) {
  .footer-container { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 20px; align-items: flex-start; }
}

@media (max-width: 992px) {
  .info { flex-direction: column; }
  .left, .right { flex: 1 1 100%; }
}

@media (max-width: 1200px){
  .header-container{padding:20px}
  nav{gap:16px;font-size:16px}
  .right{min-width:300px}
}

@media (max-width: 640px){
  .right{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .activity-table td{
    white-space: normal;
    word-break: break-word;
  }
  .info{
    overflow-x: hidden;
  }
}

@media (max-width: 1024px){
  .header-container{flex-wrap:wrap;gap:12px}
  .header-left{order:1}
  .header-right{order:2;margin-left:auto}
  nav{order:3;width:100%;justify-content:center;gap:14px}
  .header-text .subline{font-size:12px}
  .header-text .mainline{font-size:14px}
  .info{gap:24px;padding:24px;margin-top:24px}
  .right{position:static;top:auto;min-width:100%}
  .header-bg{height:240px}
  .graph-container canvas{height:320px !important; max-height:360px}
}

@media (max-width: 820px){
  nav{overflow:auto hidden;white-space:nowrap;gap:10px}
  nav::-webkit-scrollbar{display:none}
  nav a{display:inline-block;padding:8px 10px}
  .logo-img,.emblem-img{width:42px;height:42px}
  .header-left{font-size:20px}
  .header-text{display:none}
}

@media (max-width: 640px){
  .header-container{padding:16px}
  .info{padding:18px}
  .graph-container{padding:12px 14px}
  .graph-container h4{font-size:15px}
  .date-row{flex-direction:column;align-items:flex-start;gap:8px}
  .date-row select{width:100%}
  .header-bg{height:210px}
  .graph-container canvas{
    height: clamp(220px, 56vw, 320px) !important;
    max-height: 340px;
  }
}

@media (max-width: 480px){
  .logo-img,.emblem-img{width:38px;height:38px}
  nav{gap:8px}
  nav a{font-size:14px}
  .header-left{font-size:18px}
  .graph-container canvas{height: clamp(200px, 60vw, 300px) !important}
  footer{padding:30px 18px}
  .footer-links{gap:24px}
}

@media (max-width: 380px){
  nav a{font-size:13px;padding:6px 8px}
  .header-bg{height:190px}
  .graph-container canvas{height: clamp(180px, 62vw, 280px) !important}
}

.um-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  width: auto;
}
.um-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  border: 2px solid #4e8fff;
  white-space: nowrap;
  box-sizing: border-box;
}
.um-dropdown--solid .um-dd-trigger {
  background:#3b68ff;
  color:#fff;
  border-color:#3b68ff;
  box-shadow: 0 6px 16px rgba(59,104,255,.25);
}
.um-dropdown--solid .um-dd-trigger:hover { background:#335ef2; }
.um-dropdown--outline .um-dd-trigger {
  background:#fff;
  color:#2563eb;
}
.um-dropdown--outline .um-dd-trigger:hover { background:#eaf1ff; }

.um-dd-chevron { transition: transform .2s ease; color: currentColor; }
.um-dropdown.open .um-dd-chevron { transform: rotate(180deg); }

.um-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;             
  width: 100%;
  box-sizing: border-box;
  background:#fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1.5px solid #3b68ff;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: none;
  overscroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.um-dd-menu::-webkit-scrollbar{ width:0; height:0; }
.um-dropdown.open .um-dd-menu { display: block; }

.um-dd-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  margin: 0;
  font-size: 18px;
  color:#2b3a55;
  background:#fff;
  border-bottom: 1.5px solid #3b68ff;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.um-dd-item:last-child { border-bottom: 0; }
.um-dd-item:hover { background:#eef4ff; }
.um-dd-item[aria-selected="true"] { background:#eef4ff; }
.um-dd-item[aria-disabled="true"] { opacity:.45; pointer-events:none; background:#fff; }

.date-row .um-dropdown{ margin-left:auto; }

@media (max-width:1024px){
  .um-dd-trigger{ font-size:16px; padding:8px 14px; }
  .um-dd-item{ height:42px; font-size:16px; }
  .um-dd-menu{ overflow:auto; max-height:60vh; overscroll-behavior:contain; }
}
@media (max-width:640px){
  .um-dd-trigger{ font-size:15px; padding:8px 12px; }
  .um-dd-menu{ max-width:100%; width:100%; top:calc(100% + 6px); }
  .um-dd-item{ height:40px; font-size:15px; }
}

.forecast-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  text-decoration:none;
  margin-top:8px;
  color:#2563eb;
}
.forecast-more:focus,
.forecast-more:hover{
  text-decoration:underline;
}
.arrow-icon{
  transition:transform .15s ease;
}
.forecast-more:hover .arrow-icon{
  transform:translateX(2px);
}

#forecast-text{
  margin-left: 18px;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.6;
}

#forecast-body{
  display: block;
  margin-bottom: 8px;
}

.forecast-more-inline{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: #2563eb;
  white-space: nowrap;
}

.forecast-more-inline:hover,
.forecast-more-inline:focus{
  text-decoration: underline;
}

/* back_page */
.page-back{ margin: -6px 0 12px 0; }
.btn-back{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:999px;
  background:#3b68ff; color:#fff; border:2px solid #4e8fff;
  font-weight:700; font-size:14px; line-height:1; cursor:pointer;
  box-shadow:0 6px 16px rgba(59,104,255,.18);
  transition:background-color .2s, box-shadow .2s, transform .02s;
}
.btn-back:hover{ background:#335ef2; box-shadow:0 8px 22px rgba(59,104,255,.24); }
.btn-back:active{ transform:translateY(1px); }
.btn-back svg{ display:block; }
@media (max-width:640px){
  .btn-back{ font-size:13px; padding:7px 12px; }
}