.qtg-page,
.qtg-page * {
  box-sizing: border-box;
}

.qtg-page {
  --qtg-navy: #121a31;
  --qtg-navy-2: #1a2543;
  --qtg-red: #c62f20;
  --qtg-red-deep: #9f2017;
  --qtg-text: #22314e;
  --qtg-muted: #65748e;
  --qtg-line: rgba(34, 49, 78, 0.1);
  --qtg-bg: #f5f8fc;
  --qtg-card: rgba(255, 255, 255, 0.96);
  --qtg-shadow: 0 24px 64px rgba(16, 31, 58, 0.08);
  background: linear-gradient(180deg, #f7fbff 0%, #f6f8fb 100%);
  color: var(--qtg-text);
  font-family: "Manrope", "Helvetica Neue", sans-serif;
}

.qtg-page :where(p, a, li, span, strong, em, small, label, h1, h2, h3, h4, h5, h6, blockquote) {
  text-transform: capitalize;
}

.qtg-page :where(input, textarea, select, option, code, pre) {
  text-transform: none;
}

.qtg-page ::placeholder,
.qtg-table td:nth-child(1),
.qtg-table td:nth-child(2),
.qtg-table td:nth-child(5) {
  text-transform: none;
}

.qtg-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.qtg-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--qtg-navy) 0%, #141f39 100%);
}

.qtg-hero__media,
.qtg-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qtg-hero__media img {
  opacity: 0.16;
}

.qtg-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(198, 47, 32, 0.16), transparent 24%), linear-gradient(180deg, rgba(18, 26, 49, 0.78), rgba(18, 26, 49, 0.92));
}

.qtg-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  min-height: 640px;
  padding: 64px 0 224px;
}

.qtg-hero__copy {
  width: min(100%, 920px);
}

.qtg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(198, 47, 32, 0.14);
  border: 1px solid rgba(198, 47, 32, 0.24);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.qtg-kicker svg,
.qtg-floatbar svg,
.qtg-intro-card h2 svg,
.qtg-visa-banner__icon svg {
  width: 1em;
  height: 1em;
}

.qtg-hero h1 {
  margin: 26px 0 0;
  max-width: 14ch;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(56px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
}

.qtg-hero h1 > span {
  display: block;
  max-width: none;
}

.qtg-hero h1 em {
  display: block;
  margin-top: 18px;
  max-width: none;
  color: var(--qtg-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82em;
  line-height: 1.04;
  font-style: italic;
  font-weight: 500;
}

.qtg-hero p {
  max-width: 38rem;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 600;
}

.qtg-floatbar {
  position: fixed;
  right: 18px;
  top: 34%;
  z-index: 20;
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 42px rgba(11, 24, 44, 0.18);
}

.qtg-floatbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #1fc16b;
  border-bottom: 1px solid rgba(18, 26, 49, 0.08);
}

.qtg-floatbar a:nth-child(2) { color: #f09a1a; }
.qtg-floatbar a:nth-child(3) { color: #2cc84d; border-bottom: 0; }

.qtg-body {
  position: relative;
  z-index: 2;
  margin-top: -138px;
  padding-bottom: 56px;
}

.qtg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;
}

.qtg-main {
  display: grid;
  gap: 28px;
}

.qtg-card,
.qtg-side-card {
  border: 1px solid var(--qtg-line);
  border-radius: 28px;
  background: var(--qtg-card);
  box-shadow: var(--qtg-shadow);
}

.qtg-intro-card {
  padding: 32px 34px;
}

.qtg-intro-card h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--qtg-navy-2);
  font-family: "Roboto", sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.08;
}

.qtg-intro-card h2 svg {
  color: var(--qtg-red);
  font-size: 28px;
}

.qtg-intro-card p {
  margin: 0;
  color: var(--qtg-muted);
  font-size: 16px;
  line-height: 1.85;
}

.qtg-intro-card p + p {
  margin-top: 8px;
}

.qtg-tabs {
  padding: 18px;
}

.qtg-tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: #ffffff;
}

.qtg-tab-buttons button {
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #93a0b4;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.qtg-tab-buttons button.is-active {
  color: var(--qtg-red);
  background: linear-gradient(180deg, rgba(198, 47, 32, 0.06), rgba(198, 47, 32, 0.02));
  box-shadow: inset 0 -3px 0 var(--qtg-red);
}

.qtg-tab-panels {
  margin-top: 16px;
}

.qtg-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(34, 49, 78, 0.08);
  background: #fff;
}

.qtg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.qtg-table th,
.qtg-table td {
  padding: 18px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(34, 49, 78, 0.08);
}

.qtg-table th {
  color: #53627d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f8fbff;
}

.qtg-table td {
  color: #5e6d86;
  font-size: 15px;
  font-weight: 700;
}

.qtg-table td strong {
  color: var(--qtg-navy-2);
}

.qtg-frequency {
  color: var(--qtg-red);
}

.qtg-visa-banner {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
  background: linear-gradient(90deg, #f6fffb 0%, #fbfffd 50%, #eefbf8 100%);
}

.qtg-visa-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 14px;
  background: #e8fff3;
  color: #20a25f;
  font-size: 20px;
}

.qtg-visa-banner__copy h3 {
  margin: 0 0 8px;
  color: var(--qtg-navy-2);
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.qtg-visa-banner__copy h3 span {
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffeceb;
  color: #ff7b73;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qtg-visa-banner__copy p {
  margin: 0;
  color: var(--qtg-muted);
  font-size: 15px;
  line-height: 1.8;
}

.qtg-visa-banner__cta,
.qtg-side-card--dark a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--qtg-red) 0%, var(--qtg-red-deep) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(198, 47, 32, 0.2);
}

.qtg-faq {
  padding: 34px 28px 28px;
}

.qtg-faq h2 {
  margin: 0 0 24px;
  color: var(--qtg-navy-2);
  font-family: "Roboto", sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.qtg-faq__list {
  display: grid;
  gap: 18px;
}

.qtg-faq__item {
  padding: 24px 22px;
  border-radius: 18px;
  background: #f7faff;
  border: 1px solid rgba(34, 49, 78, 0.06);
}

.qtg-faq__item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--qtg-navy-2);
  font-size: 26px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

.qtg-faq__item h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff1ef;
  color: var(--qtg-red);
  font-size: 16px;
  font-weight: 800;
}

.qtg-faq__item p {
  margin: 14px 0 0 42px;
  color: var(--qtg-muted);
  font-size: 16px;
  line-height: 1.8;
}

.qtg-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 24px;
}

.qtg-side-card {
  padding: 28px 24px;
}

.qtg-side-card--dark {
  background: linear-gradient(180deg, #1d2948 0%, #19233f 100%);
  color: #fff;
  overflow: hidden;
}

.qtg-side-card--dark h3,
.qtg-side-card--light h3 {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.qtg-side-card--dark p,
.qtg-side-card--light p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.qtg-side-card--dark ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.qtg-side-card--dark li {
  position: relative;
  padding-left: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.qtg-side-card--dark li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--qtg-red);
}

.qtg-side-card--light {
  background: #fff;
}

.qtg-side-card__label {
  color: #f09a1a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qtg-side-card--light p {
  color: var(--qtg-muted);
}

.qtg-side-card--light a {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--qtg-red);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .qtg-layout,
  .qtg-visa-banner {
    grid-template-columns: 1fr;
  }

  .qtg-side {
    position: static;
  }
}

@media (max-width: 767px) {
  .qtg-shell {
    width: min(1240px, calc(100% - 24px));
  }

  .qtg-hero__content {
    min-height: 520px;
    padding: 52px 0 168px;
  }

  .qtg-hero h1 {
    max-width: 9ch;
    font-size: 52px;
    line-height: 1;
  }

  .qtg-hero h1 > span {
    max-width: none;
  }

  .qtg-hero h1 em {
    max-width: none;
    margin-top: 12px;
    font-size: 0.9em;
  }

  .qtg-hero p {
    max-width: 24rem;
    font-size: 16px;
    line-height: 1.65;
  }

  .qtg-floatbar {
    display: none;
  }

  .qtg-body {
    margin-top: -108px;
  }

  .qtg-intro-card,
  .qtg-faq,
  .qtg-side-card,
  .qtg-tabs,
  .qtg-visa-banner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .qtg-intro-card h2,
  .qtg-faq h2,
  .qtg-side-card--dark h3,
  .qtg-side-card--light h3 {
    font-size: 22px;
  }

  .qtg-tab-buttons {
    grid-template-columns: 1fr;
  }

  .qtg-table {
    min-width: 680px;
  }
}
