:root {
  --font-primary: "Lato", sans-serif;
  --font-secondary: "Lato", sans-serif;
  --nav: #0d141a;
  --canvas: 1224px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.5;
  color: #0d141a;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 600; line-height: 1.3; margin: 0; }
h1 { font-size: 64px; }
h2 { font-size: 56px; }
h3 { font-size: 48px; }
h4 { font-size: 40px; }
h5 { font-size: 26px; }
h6 { font-size: 18px; }
p { margin: 0; }
.body { font-size: 16px; }
.body-small { font-size: 14px; font-weight: 500; letter-spacing: normal; text-transform: uppercase; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(13, 20, 26, 0.06);
}
.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 145px;
  padding: 30px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: var(--nav);
}
.nav a {
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { opacity: 0.7; }
.nav-item { position: relative; }
.nav-item.has-sub:hover .subnav,
.nav-item.has-sub:focus-within .subnav { display: block; }
.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(13, 20, 26, 0.12);
  padding: 12px 0;
  z-index: 20;
}
.subnav a {
  display: block;
  padding: 8px 16px;
  white-space: normal;
}
.lang {
  font-size: 14px;
  color: var(--nav);
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

.block {
  position: relative;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  overflow: visible;
}
.block-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}
.canvas {
  position: relative;
  width: min(1224px, calc(100% - 32px));
  margin: 0 auto;
}
.el { position: absolute; overflow: visible; }
.el .rich { width: 100%; height: 100%; }
.el img.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 500;
  border-radius: 999px;
  padding: 16px 40px;
  color: #fff;
  background: #375a7f;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form label {
  font-size: 14px;
}
.form input {
  width: 100%;
  border: 1px solid rgb(184, 192, 204);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
}
.form button {
  align-self: flex-start;
}
.embed-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.gallery {
  display: grid;
  width: 100%;
  height: 100%;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list {
  padding: 64px 16px;
}
.blog-list-inner {
  max-width: 1224px;
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f6f6f6;
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: rgb(0, 0, 0);
}
.blog-card p {
  font-size: 14px;
  color: #4a5560;
}
.blog-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.pager button {
  min-width: 36px;
  height: 36px;
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.pager button.is-active {
  background: #0d141a;
  color: #fff;
  border-color: #0d141a;
}

.blog-header {
  text-align: center;
  padding: 45px 30px;
  background: #fff;
}
.blog-header-inner { max-width: 954px; margin: 0 auto; }
.blog-header h1 { font-size: 32px; margin: 12px 0; }
.blog-cover {
  max-width: 954px;
  margin: 0 auto 24px;
}
.blog-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 36px; }
  h3 { font-size: 32px; }
  h4 { font-size: 24px; }
  h5 { font-size: 20px; }
  .site-header-inner { min-height: 103px; padding: 24px 16px; }
  .logo img { width: 55px; height: 55px; }
  .menu-toggle { display: block; }
  .nav-wrap {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
  }
  .nav-wrap.open { display: block; }
  .nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .subnav { position: static; display: block; box-shadow: none; padding: 8px 0 0 12px; }
  .el {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 16px;
  }
  .canvas { width: calc(100% - 32px); padding: 40px 0; min-height: 0 !important; }
  .block { min-height: 0 !important; }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .el img.grid-img { height: auto; }
}
