:root {
  --ink: #06273f;
  --ink-hover: #0d4369;
  --accent: #0b7a78;
  --accent-dark: #08615f;
  --accent-soft: #d7efee;
  --canvas: #e6eef0;
  --surface: #ffffff;
  --muted: #728491;
  --line: #9cadae;
  --footer-line: #82939f;
  --radius-card: 16px;
  --radius-field: 8px;
  --radius-pill: 64px;
  --font-body: "Public Sans", sans-serif;
  --font-display: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img {
  vertical-align: middle;
  border-style: none;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

.container {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1150px;
  }
}
@media (min-width: 1300px) {
  .container {
    max-width: 1230px;
  }
}

body,
html {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.col-12,
.col-sm-6,
.col-md-4 {
  position: relative;
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  flex: 0 0 auto;
}

.col-12 {
  width: 100%;
}

@media (min-width: 576px) {
  .col-sm-6 {
    width: 50%;
  }
}
@media (min-width: 768px) {
  .col-md-4 {
    width: 33.33333333%;
  }
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #1e1e1e;
}

h1,
.h1,
h2,
.h2,
h3,
.h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-style: normal;
}

h1,
.h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}
@media (max-width: 1200px) {
  h1,
  .h1 {
    font-size: 52px;
  }
}
@media (max-width: 991.98px) {
  h1,
  .h1 {
    font-size: 44px;
  }
}
@media (max-width: 767.98px) {
  h1,
  .h1 {
    font-size: 32px;
  }
}

h2,
.h2 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}
@media (max-width: 767.98px) {
  h2,
  .h2 {
    font-size: 28px;
  }
}

h3,
.h3 {
  font-size: 28px;
  line-height: 1.43;
  letter-spacing: -0.28px;
  font-weight: 700;
}
@media (max-width: 991.98px) {
  h3,
  .h3 {
    font-size: 24px;
  }
}
@media (max-width: 767.98px) {
  h3,
  .h3 {
    font-size: 22px;
  }
}

.text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}
@media (max-width: 991.98px) {
  .text {
    font-size: 18px;
  }
}
@media (max-width: 576.98px) {
  .text {
    font-size: 16px;
  }
}

.text-min {
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 991.98px) {
  .text-min {
    font-size: 14px;
  }
}

a {
  color: var(--ink);
  transition: all 0.3s;
  text-decoration: none;
}
a:hover {
  color: var(--ink-hover);
}

.color_white {
  color: #ffffff !important;
}

.color_green,
.color_accent {
  color: var(--accent) !important;
}

.bg-white {
  background-color: var(--surface);
}

.w-100 {
  width: 100%;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-08 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px !important;
}
@media (max-width: 991.98px) {
  .mb-32 {
    margin-bottom: 16px !important;
  }
}

.fw-500 {
  font-weight: 500;
}

.fw-700 {
  font-weight: 700;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

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

/* header */

.navbar-dop {
  padding-top: 25px;
  padding-bottom: 25px;
}
@media (max-width: 767.98px) {
  .navbar-dop {
    padding-bottom: 15px;
  }
}

.nav_block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (max-width: 767.98px) {
  .nav-right {
    display: none;
  }
}

.wrapper_logo {
  display: flex;
  align-items: center;
}

.logo_header {
  display: block;
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
@media (max-width: 767.98px) {
  .logo_header {
    height: 56px;
  }
}

.logo_header_footer {
  height: 64px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item .nav-link {
  color: var(--ink);
  font-size: 20px;
  line-height: 160%;
  font-family: var(--font-body);
}
@media (max-width: 767.98px) {
  .navbar-nav .nav-item .nav-link {
    font-size: 16px;
  }
}
.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
  color: var(--accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
@media (max-width: 767.98px) {
  .nav-hamburger {
    display: flex;
  }
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 12px 0 8px;
  border-top: 1px solid rgba(6, 39, 63, 0.08);
  margin-top: 14px;
}
.nav-mobile-menu.open {
  display: flex;
}
.nav-mobile-item {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 39, 63, 0.06);
}

/* page canvas */

.bg_light_gray {
  background: var(--canvas);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper_sb_cs {
  padding-top: 24px;
  padding-bottom: 100px;
  flex: 1;
}
@media (max-width: 767.98px) {
  .wrapper_sb_cs {
    padding-top: 8px;
    padding-bottom: 40px;
  }
}

.hero {
  max-width: 760px;
  margin-bottom: 32px;
}

/* buttons */

.btn:focus {
  outline: none !important;
  box-shadow: none;
}

.btn {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  transition: all 0.4s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
}
@media (max-width: 991.98px) {
  .btn {
    font-size: 18px;
  }
}

.btn_green {
  border-color: var(--accent);
  background-color: var(--accent);
}
.btn_green:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
}

.btn_transparent {
  border-color: var(--ink);
  background-color: transparent;
  color: var(--ink);
}
.btn_transparent:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.btn_black {
  border-color: var(--ink);
  background-color: var(--ink);
  color: #fff;
}
.btn_black:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

/* search */

.search-wrap {
  position: relative;
  margin-bottom: 32px;
}

.input-field {
  height: 48px;
  width: 100%;
  background-color: #f5f5f5;
  border: 1px solid #f3f3f3;
  border-radius: var(--radius-field);
  padding: 8px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  transition: border-color 0.3s ease;
}
.input-field::placeholder {
  color: var(--muted);
}
.input-field:focus {
  color: var(--ink);
  outline: none;
  border-color: var(--line);
}

.search-bar {
  height: 56px;
  background: var(--surface);
  border: 1px solid rgba(6, 39, 63, 0.08);
  border-radius: 12px;
  padding: 8px 52px 8px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.search-bar::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.search-clear-btn:hover {
  color: var(--ink);
}

/* category chips */

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 4px;
}
@media (max-width: 767.98px) {
  .category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .category-filters::-webkit-scrollbar {
    height: 0;
  }
}

.category-filter {
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  border: none;
  border-radius: 32px;
  padding: 8px 24px;
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.category-filter.active {
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
}
.category-filter:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.category-filter.active:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.website-card {
  border-radius: var(--radius-card);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  height: 100%;
}
.website-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.website-card-img {
  height: 168px;
  background-color: var(--canvas);
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (max-width: 767.98px) {
  .website-card-img {
    height: 148px;
  }
}

.website-flag-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  line-height: 0;
  transition: transform 0.2s;
}
.website-flag-link:hover,
.website-flag-link:focus-visible {
  transform: scale(1.08);
  outline: none;
}

.website-flag-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--canvas);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(6, 39, 63, 0.2);
}

.website-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.website-card .h3 {
  font-size: 20px;
  line-height: 1.3;
}
@media (max-width: 767.98px) {
  .website-card .h3 {
    font-size: 18px;
  }
}

.website-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.website-location-tag,
.website-category-tag {
  position: static;
}

.website-location-tag {
  font-size: 12px;
  color: var(--ink);
  font-weight: 400;
  background-color: #f5f7fa;
  padding: 2px 8px;
  border-radius: 3px;
}

.website-category-tag {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 500;
  background-color: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 16px;
}

#result-count:empty {
  display: none;
}

.empty-state {
  display: none;
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
}
.empty-state.is-visible {
  display: block;
}

/* footer */

.footer {
  padding-top: 24px;
  padding-bottom: 40px;
  background-color: var(--ink);
  border-top: 1px solid var(--footer-line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
}

.footer-col {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.15s;
}
.footer-legal a:hover {
  color: #ffffff;
}

@media (max-width: 575.98px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  right: 15px;
  bottom: 15px;
  z-index: 300;
  opacity: 0.8;
}
.back-to-top:hover {
  opacity: 1;
}
.back-to-top .navigate {
  width: 40px;
  transform: rotate(180deg);
}

/* 404 */

.page-error {
  padding-top: 48px;
  padding-bottom: 80px;
}

.footer-bottom.footer-bottom-solo {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
