/**
 * Kinetic Brew 7.1 — portal styles
 * Mobile-first, large-screen responsive
 */

:root {
  --kb-header: #0b2d57;
  --kb-header-border: #2f5c92;
  --kb-blue: #1e5fa3;
  --kb-blue-bright: #049eec;
  --kb-orange: #fd7016;
  --kb-orange-deep: #c95d16;
  --kb-body-bg: #a8becb;
  --kb-body-bg-deep: #8fa9ba;
  --kb-text: #555;
  --kb-text-dark: #333;
  --kb-muted: #957170;
  --kb-white: #fff;
  --kb-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  --kb-font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --kb-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --kb-header-h: 52px;
  --kb-wrap: 1200px;
  --kb-radius: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 14px/1.5 var(--kb-font);
  color: var(--kb-text);
  background:
    linear-gradient(180deg, rgba(168, 190, 203, 0.92), rgba(143, 169, 186, 0.95)),
    radial-gradient(ellipse at top, #c5d5e0 0%, var(--kb-body-bg) 45%, var(--kb-body-bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-top: var(--kb-header-h);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: var(--kb-blue);
  text-decoration: none;
}

a:hover {
  color: var(--kb-orange);
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  margin: 0;
}

.kb-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100000;
}

.kb-skip:focus {
  left: 8px;
}

.kb-wrap {
  width: min(100% - 1.5rem, var(--kb-wrap));
  margin-inline: auto;
}

/* ---------- Header (fixed portal bar) ---------- */
.kb-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  height: var(--kb-header-h);
  background:
    linear-gradient(180deg, #123a6b 0%, var(--kb-header) 55%, #082447 100%);
  border-bottom: 1px solid var(--kb-header-border);
  box-shadow: var(--kb-shadow);
}

.kb-header-inner {
  height: 100%;
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kb-brand {
  flex: 0 0 auto;
  min-width: 64px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.kb-brand .custom-logo-link img,
.kb-brand .custom-logo {
  max-height: 42px;
  width: auto;
}

.kb-logo-text {
  display: inline-block;
  font-family: var(--kb-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff !important;
  text-decoration: none !important;
  text-transform: uppercase;
  line-height: 46px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.kb-logo-text:hover {
  color: var(--kb-orange) !important;
}

.kb-nav-toggle {
  margin-left: auto;
  width: 42px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.kb-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.kb-nav {
  display: none;
  position: absolute;
  top: var(--kb-header-h);
  left: 0;
  right: 0;
  background: #0d3564;
  border-bottom: 1px solid var(--kb-header-border);
  max-height: calc(100vh - var(--kb-header-h));
  overflow: auto;
}

.kb-nav.is-open {
  display: block;
}

.kb-menu {
  display: flex;
  flex-direction: column;
}

.kb-menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.kb-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  padding: 0.85rem 1rem;
}

.kb-menu > li > a:hover,
.kb-menu > li > a:focus {
  color: var(--kb-orange) !important;
}

.kb-menu em {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.75);
}

.kb-drop,
.kb-menu .sub-menu {
  display: none;
  background: #0d3564;
  padding: 0.25rem 0 0.5rem;
}

.kb-menu > li:hover > .kb-drop,
.kb-menu > li:focus-within > .kb-drop,
.kb-menu > li:hover > .sub-menu,
.kb-menu > li:focus-within > .sub-menu,
.kb-menu > li.is-open > .kb-drop,
.kb-menu > li.is-open > .sub-menu {
  display: block;
}

.kb-drop-label {
  display: block;
  color: var(--kb-orange);
  font-size: 14px;
  padding: 0.4rem 1rem;
}

.kb-drop a,
.kb-menu .sub-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  padding: 0.45rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kb-drop a img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  flex: 0 0 auto;
}

.kb-drop a:hover,
.kb-menu .sub-menu a:hover {
  background: rgba(0, 0, 0, 0.2);
  color: var(--kb-orange) !important;
}

.kb-header-actions {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.kb-auth-link {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  padding: 0.25rem 0.45rem;
}

.kb-auth-link:hover {
  color: var(--kb-orange) !important;
}

.kb-auth-login {
  padding-left: 1.4rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08));
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.kb-social-mini {
  display: flex;
  gap: 4px;
  margin-left: 6px;
}

.kb-social-mini a {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  text-indent: -999px;
  overflow: hidden;
  opacity: 0.85;
}

.kb-social-mini a:hover {
  opacity: 1;
}

.kb-social-mini .facebook a {
  background: #3b5998;
}

.kb-social-mini .google a {
  background: #db4437;
}

.kb-social-mini .msn a {
  background: #00a4ef;
}

/* ---------- Banner + login ---------- */
.kb-banner {
  position: relative;
  background: #000;
  overflow: hidden;
  min-height: 280px;
}

.kb-banner-window {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.kb-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease;
  will-change: transform;
}

.kb-banner-track li {
  flex: 0 0 100%;
  height: 100%;
}

.kb-banner-track a {
  display: block;
  height: 100%;
}

.kb-banner-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kb-banner-frame {
  position: relative;
  width: min(100% - 1rem, 986px);
  margin: -4.5rem auto 0;
  z-index: 5;
  padding-bottom: 1rem;
}

.kb-banner-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 1rem;
  position: relative;
  z-index: 6;
}

.kb-banner-dots button {
  width: 22px;
  height: 22px;
  border: 1px solid #968882;
  background: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
  padding: 0;
}

.kb-banner-dots li.active button,
.kb-banner-dots button:hover {
  background: var(--kb-blue);
  border-color: var(--kb-blue-bright);
}

.kb-login-panel {
  width: min(100%, 272px);
  margin: 0 auto;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  animation: kb-fade-up 0.6s ease both;
}

.kb-login-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.kb-field {
  display: block;
  position: relative;
  margin-bottom: 1rem;
}

.kb-field-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.kb-ico-user {
  background: radial-gradient(circle at 50% 35%, #fff 0 35%, transparent 36%),
    linear-gradient(#fff, #fff) center 70% / 12px 7px no-repeat;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #fff;
}

.kb-ico-lock {
  background:
    linear-gradient(#fff, #fff) center 62% / 11px 8px no-repeat,
    radial-gradient(circle at 50% 35%, transparent 0 35%, #fff 36% 48%, transparent 49%);
  border: 1.5px solid #fff;
  border-radius: 2px;
}

.kb-input {
  width: 100%;
  height: 38px;
  border: 1px solid #968882;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 2px 10px 2px 40px;
  font: inherit;
  opacity: 0.85;
  transition: border-color 0.25s, opacity 0.25s;
}

.kb-input::placeholder {
  color: #ddd;
}

.kb-input:hover,
.kb-input:focus {
  border-color: var(--kb-blue-bright);
  opacity: 1;
  outline: none;
}

.kb-login-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 12px;
}

.kb-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.kb-check-light {
  color: #fff;
}

.kb-check-light span {
  color: #7eb7ea;
}

.kb-forgot {
  color: #fff !important;
  text-decoration: none !important;
}

.kb-forgot:hover {
  color: var(--kb-orange) !important;
}

.kb-login-error {
  color: #ce3f00;
  font-size: 12px;
  margin: 0 0 0.5rem;
  text-shadow: none;
}

.kb-login-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none !important;
}

.kb-btn-login,
.kb-btn-signup {
  flex: 1;
  height: 42px;
  color: #fff !important;
  font-size: 14px;
  opacity: 0.9;
  background:
    linear-gradient(180deg, #3d7bb8 0%, var(--kb-blue) 55%, #164a80 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.kb-btn-signup {
  background:
    linear-gradient(180deg, #ff9a3c 0%, var(--kb-orange) 55%, #d45a00 100%);
}

.kb-btn-login:hover,
.kb-btn-signup:hover {
  opacity: 1;
}

.kb-btn-primary {
  background: var(--kb-blue);
  color: #fff !important;
  padding: 0.65rem 1.2rem;
}

.kb-btn-primary:hover {
  background: var(--kb-orange);
}

.kb-login-third p {
  margin: 0 0 0.5rem;
  font-size: 12px;
  color: #dbdbdb;
}

.kb-login-third ul {
  display: flex;
  gap: 8px;
}

.kb-login-third a {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  text-indent: -999px;
  overflow: hidden;
}

.kb-login-third .facebook a { background: #3b5998; }
.kb-login-third .google a { background: #db4437; }
.kb-login-third .msn a { background: #00a4ef; }

.kb-user-hello {
  color: #dbdbdb;
  font-size: 13px;
  margin: 0 0 1rem;
}

/* ---------- Sections ---------- */
.kb-section {
  padding: 1.5rem 0 2rem;
}

.kb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
}

.kb-section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.kb-sec-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 30% 30%, #7eb7ea, var(--kb-blue) 55%, #0d3564);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.kb-sec-ico-news {
  background:
    radial-gradient(circle at 70% 30%, #ffb067, var(--kb-orange) 55%, #8a3200);
}

.kb-sec-eye {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #6e8794;
  letter-spacing: 0.04em;
  line-height: 1.2;
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
}

.kb-sec-title {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--kb-blue);
  line-height: 1.05;
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.kb-more {
  color: var(--kb-blue) !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  opacity: 0.75;
  padding-right: 18px;
  background: linear-gradient(45deg, transparent 50%, var(--kb-blue) 50%) right 4px center / 8px 8px no-repeat;
}

.kb-more:hover {
  opacity: 1;
}

/* Featured product grid */
.kb-product-grid {
  display: grid;
  gap: 1rem;
}

.kb-product-left,
.kb-product-right {
  display: grid;
  gap: 1rem;
}

.kb-card {
  position: relative;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.kb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(34, 25, 25, 0.25);
}

.kb-card-media img,
.kb-card-sm img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.kb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  font-style: normal;
  letter-spacing: 0.04em;
}

.kb-badge-hot {
  background: #d3181f;
}

.kb-badge-new {
  background: #1e9e45;
}

.kb-card-hover {
  padding: 0.85rem 1rem 1rem;
  background: rgba(13, 53, 100, 0.92);
  color: #fff;
}

.kb-card-hover h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.kb-card-hover p {
  margin: 0 0 0.75rem;
  font-size: 12px;
  color: #d7e4f0;
  max-height: 3.2em;
  overflow: hidden;
}

.kb-card-cta {
  display: flex;
  gap: 0.5rem;
}

.kb-card-cta a {
  flex: 1;
  text-align: center;
  color: #fff !important;
  text-decoration: none !important;
  background: var(--kb-orange);
  padding: 0.45rem 0.5rem;
  font-size: 13px;
}

.kb-card-cta .kb-btn-blue {
  background: var(--kb-blue);
}

.kb-card-sm a {
  display: block;
  position: relative;
}

/* News */
.kb-news-list {
  display: grid;
  gap: 1.25rem;
}

.kb-news-item {
  display: grid;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.45);
  padding: 0.85rem;
  border-left: 3px solid rgba(149, 113, 112, 0.35);
}

.kb-news-thumb img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  box-shadow: 0 4px 3px rgba(34, 25, 25, 0.25);
  border-radius: 4px;
}

.kb-news-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.kb-news-body h3 a {
  color: var(--kb-text-dark);
  text-decoration: none;
}

.kb-news-body h3 a:hover {
  color: var(--kb-orange);
}

.kb-posted {
  display: block;
  color: var(--kb-muted);
  font-size: 12px;
  font-style: normal;
  margin-bottom: 0.4rem;
}

.kb-news-excerpt {
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.55;
  max-height: 4.8em;
  overflow: hidden;
}

.kb-news-more {
  margin-top: 0.55rem;
}

.kb-news-more a {
  color: var(--kb-blue);
  font-weight: 600;
  font-size: 13px;
}

/* Inner pages */
.kb-inner {
  padding: 1.5rem 0 2.5rem;
}

.kb-page-head {
  margin-bottom: 1.25rem;
}

.kb-page-head h1 {
  color: var(--kb-blue);
  font-family: var(--kb-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kb-kicker {
  color: #6e8794;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.kb-entry {
  background: rgba(255, 255, 255, 0.55);
  padding: 1.25rem;
  color: var(--kb-text-dark);
}

.kb-entry p {
  margin-top: 0;
}

.kb-content-grid {
  display: grid;
  gap: 1.5rem;
}

.kb-post-card,
.kb-archive-card {
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  overflow: hidden;
}

.kb-post-body,
.kb-archive-card {
  padding: 1rem;
}

.kb-archive-grid {
  display: grid;
  gap: 1rem;
}

.kb-single-hero {
  margin-bottom: 1rem;
}

.kb-single-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.kb-sidebar .widget {
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  margin-bottom: 1rem;
}

.kb-sidebar .widget-title {
  color: var(--kb-blue);
  margin-bottom: 0.5rem;
}

.kb-search-form {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.kb-search-field {
  flex: 1;
  height: 40px;
  border: 1px solid #968882;
  padding: 0 0.75rem;
  font: inherit;
}

.kb-404 {
  text-align: center;
  padding: 3rem 1rem;
}

.kb-comments {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
}

/* ---------- Footer ---------- */
.kb-footer {
  background:
    linear-gradient(180deg, #1a3f6d 0%, #0d2a4d 100%);
  color: #c9d7e4;
  padding: 1.5rem 0 2rem;
  margin-top: 1rem;
}

.kb-footer a {
  color: #d7e4f0 !important;
  text-decoration: none !important;
}

.kb-footer a:hover {
  color: var(--kb-orange) !important;
}

.kb-footer-inner {
  width: min(100% - 1.5rem, var(--kb-wrap));
  margin: 0 auto;
}

.kb-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.kb-footer-nav li {
  display: inline-flex;
  align-items: center;
}

.kb-footer-nav li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 0.7rem;
}

.kb-footer-nav a {
  font-size: 13px;
}

.kb-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 13px;
}

.kb-footer-social .f_facebook a,
.kb-footer-social .f_twitter a {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

/* Horizontal unlimited links — no label */
.kb-flink-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  padding: 0.65rem 0 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0.85rem;
}

.kb-flink-row a {
  font-size: 12px;
  white-space: nowrap;
}

.kb-copy {
  text-align: center;
  font-size: 12px;
  color: #9eb3c5;
}

.kb-back-top {
  position: fixed;
  right: 14px;
  bottom: 18px;
  margin: 0;
  z-index: 50;
}

.kb-back-top a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(30, 95, 163, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none !important;
}

.kb-back-top span {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid #fff;
}

/* Dialogs */
.kb-fullbg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
}

.kb-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 480px);
  max-height: 90vh;
  overflow: auto;
  background: #f4f7fa;
  z-index: 10001;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid #2f5c92;
}

.kb-dialog[hidden],
.kb-fullbg[hidden] {
  display: none !important;
}

.kb-dialog h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--kb-header);
  color: #fff;
  font-size: 15px;
  position: relative;
}

.kb-dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.kb-dialog-form {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.kb-dialog-form label span {
  display: block;
  margin-bottom: 0.25rem;
  color: #444;
  font-size: 13px;
}

.kb-dialog-form input[type="text"],
.kb-dialog-form input[type="email"],
.kb-dialog-form input[type="password"] {
  width: 100%;
  height: 38px;
  border: 1px solid #968882;
  padding: 0 0.65rem;
  font: inherit;
}

.kb-hint {
  margin: -0.35rem 0 0;
  font-size: 12px;
  color: #777;
  padding: 0 1rem;
}

.kb-dialog-links,
.kb-dialog-switch {
  padding: 0 1rem 1rem;
  font-size: 13px;
}

.kb-dialog-third {
  padding: 0 1rem 1rem;
  border-top: 1px solid #dde5ec;
}

.kb-dialog-third ul {
  display: flex;
  gap: 8px;
}

.kb-dialog-third a {
  display: block;
  width: 28px;
  height: 28px;
  text-indent: -999px;
  overflow: hidden;
  border-radius: 3px;
}

.kb-dialog-third .facebook a { background: #3b5998; }
.kb-dialog-third .google a { background: #db4437; }
.kb-dialog-third .msn a { background: #00a4ef; }

.kb-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #0d3564;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10002;
  box-shadow: var(--kb-shadow);
  animation: kb-fade-up 0.4s ease both;
}

@keyframes kb-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kb-card,
.kb-news-item,
.kb-section-head {
  animation: kb-fade-up 0.7s ease both;
}

.kb-product-left .kb-card:nth-child(2),
.kb-news-item:nth-child(2) {
  animation-delay: 0.12s;
}

.kb-product-right .kb-card:nth-child(2) {
  animation-delay: 0.08s;
}

.kb-product-right .kb-card:nth-child(3),
.kb-product-right .kb-card:nth-child(4) {
  animation-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Tablet+ ---------- */
@media (min-width: 720px) {
  .kb-banner-window {
    height: 400px;
  }

  .kb-banner-frame {
    margin-top: -10rem;
    display: grid;
    grid-template-columns: 1fr 272px;
    align-items: end;
    gap: 1rem;
  }

  .kb-banner-dots {
    grid-column: 1 / -1;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .kb-login-panel {
    margin: 0;
    justify-self: end;
  }

  .kb-product-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .kb-product-right {
    grid-template-columns: 1fr 1fr;
  }

  .kb-news-item {
    grid-template-columns: 180px 1fr;
    align-items: start;
  }

  .kb-archive-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kb-content-grid {
    grid-template-columns: 1fr 280px;
  }
}

/* ---------- Desktop portal scale ---------- */
@media (min-width: 1024px) {
  .kb-nav-toggle {
    display: none;
  }

  .kb-nav {
    display: block !important;
    position: static;
    background: transparent;
    border: 0;
    overflow: visible;
    max-height: none;
    flex: 1;
  }

  .kb-menu {
    flex-direction: row;
    align-items: stretch;
    height: var(--kb-header-h);
  }

  .kb-menu > li {
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    height: 100%;
  }

  .kb-menu > li > a {
    height: 100%;
    padding: 0 1.1rem;
    line-height: var(--kb-header-h);
  }

  .kb-drop,
  .kb-menu .sub-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 200px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    z-index: 20;
  }

  .kb-header-actions {
    display: flex;
  }

  .kb-banner {
    min-height: 540px;
  }

  .kb-banner-window {
    height: 540px;
  }

  .kb-banner-frame {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    margin: 0;
    width: min(100% - 2rem, 986px);
    grid-template-columns: 1fr 272px;
  }

  .kb-banner-dots {
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    margin: 0;
  }

  .kb-login-panel {
    margin-bottom: 2.5rem;
  }

  .kb-card-lg .kb-card-hover {
    position: absolute;
    inset: auto 0 0 0;
    transform: translateY(70%);
    transition: transform 0.35s ease;
  }

  .kb-card-lg:hover .kb-card-hover {
    transform: translateY(0);
  }

  .kb-section {
    padding: 2rem 0 2.75rem;
  }

  .kb-news-item {
    grid-template-columns: 220px 1fr;
    background-image: linear-gradient(90deg, transparent 49.5%, rgba(149, 113, 112, 0.25) 49.5%, rgba(149, 113, 112, 0.25) 50.5%, transparent 50.5%);
  }

  .kb-news-list {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .kb-news-item:first-child {
    padding-right: 1.5rem;
  }

  .kb-news-item:last-child {
    padding-left: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .kb-header-inner {
    padding: 0 1rem;
  }

  .kb-banner-track img {
    object-fit: cover;
  }
}
