:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #142136;
  --muted: #5b6b84;
  --brand: #0f62fe;
  --brand-dark: #0b4ccc;
  --line: #dbe3f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
}
.container { width: min(1080px, 92%); margin: 0 auto; }
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { display:flex; align-items:center; gap:10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { object-fit: contain; }
nav { display:flex; align-items:center; gap:8px; }
nav a, .blog-toggle {
  color: var(--text); text-decoration: none;
  padding: 8px 10px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
  font: inherit;
}
nav a:hover, nav a.active, .blog-toggle:hover { background: #e8f0ff; color: var(--brand-dark); }
.blog-menu { position: relative; }
.blog-dropdown {
  position: absolute;
  right: 0;
  top: 44px;
  width: 320px;
  max-height: 340px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(20,33,54,.12);
  padding: 8px;
  display: none;
}
.blog-dropdown.open { display: block; }
.blog-dropdown a {
  display:block;
  margin: 0;
  border-radius: 8px;
}
.hero { padding: 64px 0 34px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.hero p { margin: 0 0 18px; color: var(--muted); max-width: 760px; }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; border-radius: 10px; padding: 11px 16px; font-weight: 600; }
.btn:hover { background: var(--brand-dark); }
.section { margin: 22px 0 30px; }
.section h2 { margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0 0 8px; color: var(--muted); }
.card a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.blog-card { position: relative; }
.blog-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.blog-card-copy { min-width: 0; flex: 1 1 auto; }
.blog-thumb-topright {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-left: auto;
}
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  display: block;
}
.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}
.article-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.article-wrap p { line-height: 1.7; color: #243246; }
.article-wrap h1 { margin-top: 0; }
.article-wrap h3 {
  margin: 18px 0 10px;
  font-size: 1.05rem;
  color: #16345e;
}
.article-inline-cover {
  float: right;
  width: min(32%, 280px);
  margin: 0 0 12px 16px;
}
.article-inline-cover-left {
  float: left;
  margin: 0 16px 12px 0;
}
.article-inline-cover img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.article-inline-cover a { display: block; }
.article-gallery-shell {
  float: right;
  width: min(30%, 260px);
  margin: 0 0 16px 18px;
  display: grid;
  gap: 10px;
}
.article-gallery-main-link,
.article-gallery-thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.article-gallery-main {
  width: 100%;
  display: block;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.article-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.article-gallery-thumb {
  height: 72px;
}
.article-gallery-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}
.product-detail-wrap {
  min-height: 320px;
}
.product-detail-wrap h2 {
  clear: both;
  margin-top: 18px;
}
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-hits p { margin: 8px 0; color: #243246; }
.kw-chip { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.kw1 { background: #eaf2ff; color: #1f4fa8; }
.kw2 { background: #e8fbef; color: #1c7b43; }
.kw3 { background: #fff3e6; color: #b05b00; }
.kw4 { background: #f5edff; color: #6d3bb8; }
.article-tags {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.article-tags h3 { margin: 0 0 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
}
.tag-btn.kw1 { background: #eaf2ff; color: #1f4fa8; }
.tag-btn.kw2 { background: #e8fbef; color: #1c7b43; }
.tag-btn.kw3 { background: #fff3e6; color: #b05b00; }
.tag-btn.kw4 { background: #f5edff; color: #6d3bb8; }
.article-wrap .kw-chip.kw1 { background: #eaf2ff; color: #1f4fa8; }
.article-wrap .kw-chip.kw2 { background: #e8fbef; color: #1c7b43; }
.article-wrap .kw-chip.kw3 { background: #fff3e6; color: #b05b00; }
.article-wrap .kw-chip.kw4 { background: #f5edff; color: #6d3bb8; }
.product-keyword-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.product-keyword-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #f9fbff;
}
.product-keyword-block h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}
.product-keyword-block p {
  margin: 0;
  color: #243246;
  line-height: 1.65;
}

.article-gallery {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.article-gallery h3 { margin: 0 0 10px; }
.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.article-gallery-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.article-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 38, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 12px;
  border: 2px solid #fff;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #1f2a44;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.plain {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.plain li { margin: 0; }
.plain a {
  display: block;
  background: #f8fbff;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  padding: 9px 12px;
  color: #21466f;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.plain a:hover {
  background: #e9f1ff;
  border-color: #b9cff1;
  transform: translateY(-1px);
}
.back-link {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid #c8d8f3;
  background: #eef4ff;
  color: #1f4fa8 !important;
  text-decoration: none;
  font-weight: 700;
}
.back-link:hover {
  background: #e3edff;
  border-color: #a9c3eb;
}
.calc-form { display: grid; gap: 10px; }
.calc-form label { font-weight: 600; }
.calc-form input { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.calc-result { margin-top: 10px; font-weight: 700; }
footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy { color: #5a6e8a; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-links a {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid #d7e3f4;
  border-radius: 999px;
  background: #fff;
  color: #21466f;
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover {
  background: #eaf1ff;
  border-color: #bcd0ef;
}
@media (max-width: 700px) {
  .nav { flex-wrap: wrap; padding: 8px 0; }
  nav { width: 100%; flex-wrap: wrap; }
  .grid { grid-template-columns: 1fr; }
  .blog-dropdown { left: 0; right: auto; width: 100%; }
  .article-inline-cover {
    float: none;
    width: 100%;
    margin: 0 0 12px 0;
  }
  .article-gallery-shell {
    float: none;
    width: 100%;
    margin: 0 0 16px 0;
  }
  .article-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}




.section .grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 700px) { .grid-3 { grid-template-columns: 1fr; } }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  animation: whatsapp-breathe 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { filter: brightness(.96); }
.whatsapp-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  flex: 0 0 26px;
}
.whatsapp-float-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.whatsapp-float-text { white-space: nowrap; }
@media (max-width: 700px) {
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 11px 12px;
  }
  .whatsapp-float-text { display: none; }
}

@keyframes whatsapp-breathe {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
  50% { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 34px rgba(0, 0, 0, .22); }
}

