:root {
  --ink: #011f40;
  --muted: #657176;
  --line: #cfd7d8;
  --soft: #f3f6f5;
  --panel: #ffffff;
  --accent: #236b5e;
  --accent-2: #d36a3a;
  --accent-3: #355f9c;
  --shadow: 0 18px 40px rgba(19, 31, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #8ea3a0 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #8ea3a0;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #edf2f0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

a {
  color: inherit;
}

main {
  display: grid;
  gap: 54px;
  padding-bottom: 70px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 84px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  flex: 1;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -27px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(35, 107, 94, 0.24);
  transform: translateX(-50%);
  transition: width 180ms ease;
  z-index: 1;
}

.site-nav a.active::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
  min-width: 26px;
}

[data-admin-nav],
[data-admin-nav][hidden] {
  display: none !important;
}

[data-admin-nav].is-visible:not([hidden]) {
  display: inline-flex !important;
}

.nav-toggle {
  display: none;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(9, 16, 18, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-button,
.primary-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.google-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(90deg, #4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75%);
}

.site-header > .login-button:not(.account-button) {
  min-height: 42px;
  gap: 14px;
  padding: 0 20px;
  border-color: #172224;
  background: #172224;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.account-menu {
  position: relative;
  display: inline-flex;
}

.login-button.account-button {
  padding: 0 12px 0 8px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-menu.is-open .account-dropdown {
  display: grid;
}

.account-menu-item {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  border-color: var(--line);
  background: var(--soft);
}

.page-section,
.listing-page,
.dashboard-layout {
  padding-inline: clamp(18px, 5vw, 70px);
}

.section-heading {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.auth-note {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #e3f0eb;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.choice {
  background: #fff3df;
  color: #a4571f;
}

.verdict {
  background: #e7eef8;
  color: var(--accent-3);
}

.image-placeholder,
.main-photo,
.embed-box,
.upload-box {
  border: 2px dashed #aab8b8;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, #d9e1df, #d9e1df 10px, #edf2f0 10px, #edf2f0 20px);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.no-spinner {
  appearance: textfield;
  -moz-appearance: textfield;
}

.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 10px;
  padding: 32px clamp(18px, 5vw, 70px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111817;
  color: #f5fbf8;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
}

.footer-heart {
  color: #e44848;
  font-size: 20px;
  line-height: 1;
}

.site-footer p {
  max-width: 600px;
  margin: 8px 0 0;
  color: #b9c8c3;
  line-height: 1.5;
}

.site-footer .footer-legal {
  margin-top: 12px;
  color: #83948e;
  font-size: 13px;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}

.footer-policy-links a {
  color: #b9c8c3;
  font-size: 13px;
  font-weight: 700;
  text-decoration-color: rgba(185, 200, 195, 0.42);
  text-underline-offset: 3px;
}

.footer-policy-links a:hover,
.footer-policy-links a:focus-visible {
  color: #ffffff;
  text-decoration-color: #7bd0b3;
}

.footer-actions {
  display: grid;
  width: min(100%, 474px);
  justify-items: end;
  gap: 10px;
}

.footer-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  width: 100%;
  justify-self: end;
  gap: 12px;
}

.footer-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  justify-self: end;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  color: #eef7f3;
  font-size: 14px;
  font-weight: 800;
  /*text-align: right;*/
  text-decoration: none;
}

.footer-email-row .footer-link {
  min-width: 0;
}

.footer-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f2b36d;
}

.footer-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-copy-button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #eef7f3;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.footer-copy-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(123, 208, 179, 0.34);
  border-radius: 999px;
  background: #f5fbf8;
  color: #10201c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  animation: footer-copy-pop 200ms ease both;
}

@keyframes footer-copy-pop {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-copy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-copy-button:hover,
.footer-copy-button:focus-visible,
.footer-copy-button.is-copied {
  border-color: rgba(123, 208, 179, 0.58);
  background: rgba(123, 208, 179, 0.14);
  color: #7bd0b3;
}

.footer-suggest-link .footer-icon {
  color: #7bd0b3;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
}

.footer-link:hover .footer-icon,
.footer-link:focus-visible .footer-icon {
  border-color: rgba(242, 179, 109, 0.55);
  background: rgba(242, 179, 109, 0.14);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 11;
    display: none;
    align-self: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 8px clamp(18px, 4vw, 48px) 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 30px rgba(19, 31, 34, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: fit-content;
    padding: 10px 0;
  }

  .site-nav a::after {
    bottom: 4px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 9px;
    padding: 10px 12px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 24px 12px;
  }

  .footer-actions {
    width: 100%;
    justify-items: start;
    gap: 8px;
  }

  .footer-email-row {
    grid-template-columns: minmax(0, 1fr) 30px;
    justify-self: start;
    max-width: 100%;
    gap: 6px;
  }

  .footer-link {
    grid-template-columns: 30px minmax(0, 1fr);
    justify-self: start;
    max-width: 100%;
    min-height: 36px;
    gap: 6px;
    font-size: 12px;
  }

  .footer-link span:last-child {
    overflow-wrap: anywhere;
  }

  .footer-email-row .footer-link span:last-child {
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .footer-icon,
  .footer-copy-button {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .footer-icon svg,
  .footer-copy-button svg {
    width: 16px;
    height: 16px;
  }

  .brand {
    max-width: calc(100% - 68px);
    gap: 7px;
    line-height: 1.1;
  }

  .brand-mark {
    width: 72px;
    height: 30px;
  }

  .login-button {
    width: 100%;
  }

  .account-menu {
    flex: 1 1 0;
    min-width: 0;
  }

  .account-dropdown {
    left: 0;
    right: auto;
    width: 100%;
  }

  h1 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    width: 48px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .nav-toggle::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink);
  }

  .account-menu,
  .site-header > .login-button,
  .currency-picker {
    order: 3;
  }

  .account-menu::before {
    content: "";
    display: none;
  }

  .site-header::after {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  .account-menu,
  .site-header > .login-button {
    margin-left: 0;
  }

  .account-menu {
    flex: 1 1 0;
    flex-basis: 0;
  }

  .account-menu .login-button,
  .site-header > .login-button {
    min-width: 0;
    width: auto;
    flex: 1 1 0;
    min-height: 38px;
    padding-inline: 9px;
    font-size: 13px;
  }

  .site-header > .login-button {
    flex-basis: 0;
  }

  .site-header > .login-button:not(.account-button) {
    min-height: 38px;
    gap: 8px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .site-header > .login-button:not(.account-button) .google-dot {
    width: 12px;
    height: 12px;
  }

  .currency-picker {
    flex: 0 0 min(132px, 40%);
    min-width: 0;
    width: auto;
  }

  .currency-picker select {
    min-width: 58px;
  }

  .site-nav {
    gap: 2px;
    padding: 4px 12px 8px;
  }

  .site-nav a {
    padding-block: 8px;
    font-size: 13px;
  }

  .user-avatar {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .user-name {
    max-width: 82px;
  }
}
