* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100dvh;
}

body {
  background: #f3f3f3;
  color: #0b0b0b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.page {
  width: calc(100% - 24px);
  margin: 12px;
  height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
}

.site-header {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.site-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -1.1px;
}

.site-header h1 span {
  color: transparent;
  -webkit-text-stroke: 1.2px #0b0b0b;
  text-stroke: 1.2px #0b0b0b;
}

.layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.box {
  border: 1px solid #111;
  background: transparent;
}

.left-panel {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

.right-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
  min-height: 0;
}

.right-panel {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  overflow-y: auto;
}

.bottom-box {
  height: 44px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #1a3570, #2d6bc4, #5abfb0, #2d6bc4, #1a3570);
}

.bottom-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(160, 230, 215, 0.2) 35%,
      rgba(220, 248, 242, 0.65) 50%,
      rgba(160, 230, 215, 0.2) 65%,
      transparent 100%);
  animation: bar-sweep 7s ease-in-out infinite alternate;
}

@keyframes bar-sweep {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(50%);
  }
}

.left-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.shortcuts-footer {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  color: #555;
}

.block {
  flex-shrink: 0;
}

.block h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.block p {
  margin: 0;
  line-height: 1.5;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin: 0 0 4px;
}

li:last-child {
  margin-bottom: 0;
}

a {
  color: #2961f6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a:visited {
  color: #3d6b47;
}

a:hover {
  color: #003cff;
}

/* shimmer squares */

.shimmer-squares {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.sq {
  background-size: 300% 300%;
  animation: sq-shimmer ease-in-out infinite;
}

.sq-a {
  width: 62px;
  height: 62px;
  background-image: linear-gradient(135deg, #0d47a1, #42a5f5, #0d47a1);
  animation-duration: 8s;
}

.sq-b {
  width: 62px;
  height: 62px;
  background-image: linear-gradient(220deg, #1a237e, #4fc3f7, #0077b6, #1a237e);
  animation-duration: 11s;
  animation-delay: -4s;
}

.sq-c {
  width: 62px;
  height: 62px;
  background-image: linear-gradient(45deg, #023e8a, #90e0ef, #0096c7, #023e8a);
  animation-duration: 13s;
  animation-delay: -1.5s;
}

.sq-d {
  width: 62px;
  height: 62px;
  background-image: linear-gradient(300deg, #0a3d62, #1e90ff, #48cae4, #0a3d62);
  animation-duration: 7s;
  animation-delay: -6s;
}

.sq-e {
  width: 62px;
  height: 62px;
  background-image: linear-gradient(165deg, #1565c0, #00b4d8, #1565c0);
  animation-duration: 15s;
  animation-delay: -5s;
}

@keyframes sq-shimmer {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

/* blogroll */

.blogroll-layout {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.blogroll-panel {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  overflow-y: auto;
}

/* mobile */

@media (max-width: 1160px) {

  html,
  body {
    height: auto;
  }

  .page {
    height: auto;
  }

  .layout {
    grid-template-columns: 1fr;
    flex: none;
    gap: 14px;
  }

  .left-panel {
    justify-content: flex-start;
    gap: 28px;
  }

  .right-column {
    grid-template-rows: auto auto;
  }

  .right-panel {
    justify-content: flex-start;
    gap: 28px;
  }
}