/* In Hoàng Quân — restored stylesheet */

:root {
  --blue: #1a4f9c;
  --blue-dark: #143b74;
  --orange: #f26522;
  --ink: #333;
  --heading: #1c1c1c;
  --muted: #777;
  --line: #e3e6ea;
  --tint: #f4f7fb;
  --dark: #16233a;
  --wrap: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3 { margin: 0; line-height: 1.3; color: var(--heading); }
p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }

:where(a, button):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

.btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 22px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: 5px;
}
.btn:hover { background: #d4551a; color: #fff; text-decoration: none; }

.section { padding: 52px 0; }
.section-title {
  margin-bottom: 26px;
  font-size: 27px;
  text-align: center;
  text-transform: uppercase;
  color: var(--blue);
}

.note { margin-top: 14px; font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- header ---------- */

.top-bar { background: var(--dark); color: #c4d2e6; font-size: 13px; }
.top-bar__inner { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.top-bar a { color: #fff; font-weight: 700; }

.site-header { border-bottom: 3px solid var(--blue); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 86px; }
.brand { flex: none; }
.brand img { width: 260px; height: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; }
.primary-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
.primary-nav a:hover { color: var(--orange); text-decoration: none; }

.nav-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 44px; height: 40px;
  padding: 0;
  background: var(--blue);
  border: 0; border-radius: 5px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute; left: 50%;
  width: 21px; height: 2px; margin-left: -10px;
  background: #fff; content: "";
}
.nav-toggle__bars { top: 19px; }
.nav-toggle__bars::before { top: -7px; left: 0; margin-left: 0; }
.nav-toggle__bars::after { top: 7px; left: 0; margin-left: 0; }

/* ---------- banners ---------- */

.banners { padding: 26px 0 8px; }
.banners h1 { font-size: 24px; margin-bottom: 18px; color: var(--blue); text-align: center; }
.banners__list { display: grid; gap: 14px; }
.banners__list img { width: 100%; border-radius: 6px; }

/* ---------- catalog ---------- */

.catalog { background: var(--tint); }
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.catalog__grid > * { min-width: 0; }
.cat {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cat h3 {
  margin: 18px 0 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--blue);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--blue);
}
.cat h3:first-child { margin-top: 0; }
.cat__list > li { padding: 4px 0 4px 14px; position: relative; }
.cat__list > li::before {
  position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  content: "";
}
.cat__list ul { padding: 3px 0 4px 10px; }
.cat__list ul li { padding: 2px 0 2px 12px; font-size: 14px; color: var(--muted); position: relative; }
.cat__list ul li::before {
  position: absolute; left: 0; top: 11px;
  width: 5px; height: 1px;
  background: var(--muted);
  content: "";
}

/* ---------- library ---------- */

.library__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  gap: 22px;
  justify-content: center;
}
.library__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.library__grid p { margin-top: 8px; text-align: center; font-weight: 700; }

.library__sub { margin: 36px 0 14px; font-size: 19px; text-align: center; color: var(--blue); }
.videos { max-width: 620px; margin: 0 auto; }
.videos li {
  padding: 9px 0 9px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.videos li:last-child { border-bottom: 0; }
.videos li::before {
  position: absolute; left: 0; top: 15px;
  border: 6px solid transparent;
  border-left-color: var(--orange);
  border-right: 0;
  content: "";
}
.library .note { text-align: center; }

/* ---------- why ---------- */

.why { background: var(--tint); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.why__grid > * { min-width: 0; }
.why__item {
  padding: 26px 22px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
}
.why__item img { width: 62px; height: 62px; margin: 0 auto 12px; }
.why__item h3 { font-size: 17px; margin-bottom: 8px; color: var(--blue); }
.why__item p { color: var(--muted); font-size: 14px; }

/* ---------- partners ---------- */

.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 44px;
}
.partners__list img { width: auto; max-height: 70px; }

.payments__title {
  margin: 40px 0 14px;
  font-size: 17px;
  text-align: center;
  text-transform: uppercase;
  color: var(--blue);
}
.payments { margin: 0 auto; max-width: 300px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 44px 0 18px;
  background: var(--dark);
  color: #b8c6da;
  font-size: 14px;
}
.site-footer h2 {
  margin-bottom: 26px;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}
.site-footer h3 { margin-bottom: 10px; font-size: 16px; color: #fff; }
.site-footer a { color: #ffb489; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__grid > * { min-width: 0; }
.footer__col li { padding: 3px 0; }

.copyright {
  max-width: var(--wrap);
  margin: 30px auto 0;
  padding: 15px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- scroll top ---------- */

.scroll-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--blue);
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.scroll-top svg { width: 26px; height: 26px; margin: 0 auto; fill: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .catalog__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .section { padding: 38px 0; }
  .section-title { font-size: 21px; }

  .nav-toggle { display: block; }
  .primary-nav { display: none; order: 3; width: 100%; margin-left: 0; padding-bottom: 8px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li + li { border-top: 1px solid var(--line); }
  .site-header__inner { flex-wrap: wrap; }
  .brand img { width: 190px; }

  .catalog__grid, .why__grid { grid-template-columns: minmax(0, 1fr); }
  .library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
