* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: #fff;
  color: #22344a;
  font-family: "Rubik", Arial, sans-serif;
  font-size: .875rem;
  line-height: 1.65;
  padding-top: 120px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 1170px;
  max-width: calc(100% - 30px);
  margin: 0 auto;
}

.topbar {
  height: 42px;
  background: #d90812;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.topbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  white-space: nowrap;
}

.topbar a:hover {
  background: #ed1c24;
}

.site-header {
  height: 78px;
  border-bottom: 1px solid #e5ebf1;
  background: #fff;
  left: 0;
  position: fixed;
  top: 42px;
  width: 100%;
  z-index: 998;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 255px;
}

.logo img {
  width: 198px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  height: 100%;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
  color: #404a55;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #d90812;
}

.header-actions {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  border-left: 1px solid #d9e0e7;
}

.header-actions a {
  min-width: 76px;
  padding: 0 16px;
  border-right: 1px solid #d9e0e7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #404a55;
  font-size: 12px;
  font-weight: 400;
}

.login {
  gap: 12px;
}

.login__icon {
  position: relative;
  width: 21px;
  height: 21px;
  border: 2px solid #ed1c24;
  border-radius: 50%;
}

.login__icon::before,
.login__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #ed1c24;
}

.login__icon::before {
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.login__icon::after {
  bottom: 3px;
  width: 12px;
  height: 6px;
  border-radius: 10px 10px 0 0;
}

.search::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #080d13;
  border-radius: 50%;
  display: block;
}

.search::after {
  content: "";
  width: 8px;
  height: 2px;
  background: #080d13;
  transform: rotate(45deg);
  margin-left: -4px;
  margin-top: 13px;
  display: block;
}

.mobile-menu {
  display: none;
}

.mobile-login {
  display: none;
}

.subhero {
  min-height: 180px;
  background: #e30d17 url("images/subheader-bg.jpg") center center / cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
}

.subhero h1 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0;
}

.query-wrap {
  max-width: 1170px;
  margin: 20px auto 0;
  padding: 0 15px;
}

.query-wrap--searched {
  margin-top: 18px;
}

.query-box {
  border: 1px solid #d3e0e8;
  padding: 9px 10px;
}

.query-box__head {
  border: 1px solid #e5edf2;
  padding: 10px;
  margin-bottom: 10px;
  color: #20344c;
}

.query-box__head div {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
}

.query-box__head p {
  margin: 0;
  font-size: 14px;
}

.query-box__body {
  border: 1px solid #e5edf2;
  padding: 20px 10px 14px;
}

.query-box input {
  width: 100%;
  height: 50px;
  border: 1px solid #e5edf2;
  border-radius: 3px;
  padding: 0 11px;
  color: #404a55;
  font-size: .875rem;
}

.query-box input::placeholder {
  color: #777;
}

.query-box button {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 3px;
  background: #2bbdca;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.query-box button:hover {
  background: #22aebb;
}

.result-wrap {
  max-width: 1170px;
  margin: 22px auto 0;
  overflow-y: auto;
  padding: 0 15px;
}

.verified-result {
  border: 1px solid #d3e0e8;
  color: #22344a;
}

.verified-result header {
  min-height: 50px;
  background: #e40019;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px 18px;
  line-height: 1.25;
  font-family: "Helvetica Neue", Arial, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.verified-result header strong,
.verified-result header span {
  display: block;
}

.verified-result__website {
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid #d3e0e8;
  font-weight: 700;
}

.agency-detail {
  margin-top: 15px;
  border: 1px solid #d3e0e8;
  background: #fff;
  color: #22344a;
  font-family: "Helvetica Neue", Arial, Verdana, sans-serif;
}

.verification-strip {
  background: #f8fbfd;
  border-bottom: 1px solid #d3e0e8;
}

.verification-strip div {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 11px 14px;
}

.verification-strip span {
  display: block;
  margin-bottom: 3px;
  color: #6b7b8e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.verification-strip strong {
  display: block;
  color: #10233d;
  font-size: 13px;
  font-weight: 700;
}

.verify-icon {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 50%;
  background: #12a150;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1;
}

.agency-image {
  border-bottom: 0;
  padding: 8px 12px 4px;
  background: #fff;
  text-align: center;
}

.agency-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
}

.agency-detail__row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #d3e0e8;
  line-height: 1.45;
}

.agency-detail__row span {
  color: #e40019;
  flex: 0 0 auto;
  margin-right: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.agency-detail__row strong {
  min-width: 0;
  color: #10233d;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.agency-detail__row--document {
  background: #fbfdff;
}

.agency-detail__row--document strong {
  font-size: 14px;
  font-weight: 700;
}

.verification-note {
  padding: 14px 16px;
  color: #627286;
  background: #f8fbfd;
  font-size: 12px;
  line-height: 1.5;
}

.notice {
  border: 1px solid #d3e0e8;
  background: #fff;
  padding: 18px;
  color: #22344a;
  line-height: 1.5;
}

.notice strong,
.notice span {
  display: block;
}

.notice--error {
  border-color: #f0b5b5;
  background: #fff4f4;
  color: #9d1118;
}

.footer {
  margin-top: 45px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr .85fr .9fr .55fr .6fr 2.15fr;
  gap: 30px;
  padding-bottom: 38px;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: #404a55;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.footer-links a {
  display: block;
  margin: 0 0 7px;
  color: #22344a;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}

.footer-links a:hover {
  color: #ed1c24;
}

.copyright {
  min-height: 90px;
  border-top: 1px solid #d7e0e8;
  display: flex;
  align-items: center;
  gap: 28px;
}

.copyright img {
  width: 195px;
  flex: 0 0 auto;
}

.copyright p {
  margin: 0;
  color: #24384f;
  font-size: 12px;
  white-space: nowrap;
}

.social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.social__text {
  color: #3e4a55;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  min-width: 12px;
  text-align: center;
}

.social__text:nth-child(2),
.social__text:nth-child(5) {
  font-size: 15px;
}

.social__text:nth-child(6),
.social__text:nth-child(7),
.social__text:nth-child(8) {
  font-size: 14px;
}

.footer-small {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #24384f;
  font-size: 12px;
  margin-left: 18px;
  white-space: nowrap;
}

@media (max-width: 1260px) {
  .container {
    width: 960px;
  }

  .logo {
    flex-basis: 220px;
  }

  .main-nav a {
    padding: 0 7px;
    font-size: 10px;
  }

  .header-actions a {
    min-width: 64px;
    padding: 0 12px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 967px) {
  body {
    padding-top: 57px;
  }

  .topbar {
    display: none;
  }

  .site-header {
    height: 57px;
    top: 0;
  }

  .header__inner {
    max-width: 100%;
    padding: 0 15px;
  }

  .logo {
    flex: 1 1 auto;
  }

  .logo img {
    width: 148px;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-login {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 18px;
    color: #404a55;
    font-size: 14px;
    white-space: nowrap;
  }

  .mobile-menu {
    width: 31px;
    height: 32px;
    border: 0;
    background: transparent;
    display: grid;
    gap: 5px;
    align-content: center;
    padding: 0;
  }

  .mobile-menu span {
    display: block;
    height: 3px;
    background: #ed1c24;
  }

  .subhero {
    min-height: 112px;
  }

  .subhero h1 {
    font-size: 25px;
  }

  .query-wrap--searched {
    margin-top: 12px;
  }

  .verified-result header {
    min-height: 69px;
    font-size: 16px;
  }

  .verified-result__website {
    min-height: 35px;
  }

  .verification-strip div {
    min-height: auto;
    padding: 10px 13px;
  }

  .agency-detail__row {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px;
  }

  .agency-image {
    padding: 18px 10px;
  }

  .agency-image img {
    max-height: 250px;
  }

  .verification-note {
    padding: 13px;
  }

  .footer-links {
    display: block;
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .footer-links section {
    border-top: 1px solid #cdd9e3;
  }

  .footer-links section:last-child {
    border-bottom: 1px solid #cdd9e3;
  }

  .footer-links h2 {
    margin: 0;
    padding: 12px 15px;
    color: #102d4b;
    font-size: 14px;
    line-height: 1.35;
  }

  .footer-links a {
    display: none;
  }

  .copyright {
    min-height: 0;
    border-top: 0;
    display: block;
    text-align: center;
    padding: 0 0 18px;
  }

  .copyright img {
    width: 196px;
    margin: 10px auto 24px;
    display: block;
  }

  .copyright p {
    margin: 0 0 22px;
    white-space: normal;
    font-size: 12px;
  }

  .social {
    justify-content: center;
    margin: 0 0 18px;
    gap: 22px;
  }

  .footer-small {
    justify-content: center;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .query-wrap {
    margin-top: 15px;
  }

  .footer {
    margin-top: 30px;
  }

  .footer-links {
    display: block;
  }
}

.registered-agency {
  padding: 0 10px 10px;
  background: #fff;
  text-align: center;
}

.registered-agency__site {
  min-height: 70px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #f3f3f3;
  color: #008b35;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .registered-agency__site { min-height: 58px; font-size: 17px; gap: 10px; }
  .registered-agency__site span { font-size: 32px; }
}
.registered-agency__check { width: 43px; height: auto; flex: 0 0 auto; object-fit: contain; }

@media (max-width: 967px) {
  body.menu-open { overflow: hidden; }

  body.menu-open .main-nav {
    position: fixed;
    z-index: 997;
    top: 57px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: calc(100vh - 57px);
    overflow-y: auto;
    padding: 10px 15px 20px;
    border-top: 1px solid #e5ebf1;
    border-bottom: 4px solid #d90812;
    background: #fff;
    box-shadow: 0 14px 24px rgba(20, 40, 62, .16);
  }

  body.menu-open .main-nav a {
    display: flex;
    width: 100%;
    min-height: 47px;
    padding: 0 14px;
    border-bottom: 1px solid #e7edf2;
    color: #20344c;
    font-size: 13px;
    font-weight: 500;
  }

  body.menu-open .main-nav a:last-child { border-bottom: 0; }
  body.menu-open .mobile-menu span { transition: transform .2s, opacity .2s; }
  body.menu-open .mobile-menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .mobile-menu span:nth-child(2) { opacity: 0; }
  body.menu-open .mobile-menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}