﻿:root {
  --bg: #f4f6f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --text: #101316;
  --muted: #5f6873;
  --line: rgba(16, 19, 22, 0.12);
  --accent: #0b7a75;
  --accent-soft: rgba(11, 122, 117, 0.12);
  --danger: #d14848;
  --ok: #2f8f6a;
  --progress-height: 6px;
  --header-gap: 8px;
  --site-header-height: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #d4eceb 0%, transparent 42%),
    radial-gradient(circle at 90% 90%, #d8e4ef 0%, transparent 40%),
    var(--bg);
  padding: 18px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.site-header,
.site-footer {
  position: relative;
}

.site-header {
  position: sticky;
  top: calc(var(--progress-height) + var(--header-gap));
  z-index: 80;
}

.topbar {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  backdrop-filter: blur(10px);
}

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-country-flag {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--progress-height);
  margin: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  border: 0;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0b7a75, #52a7a3);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 19, 22, 0.22);
  opacity: 0;
  transition: opacity 180ms ease;
}

.menu-overlay.open {
  opacity: 1;
}

.side-nav {
  position: fixed;
  left: 18px;
  top: 18px;
  width: min(290px, calc(100vw - 36px));
  z-index: 95;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  backdrop-filter: blur(12px);
  padding: 12px;
  transform: translateX(-120%);
  transition: transform 180ms ease;
}

.side-nav.open {
  transform: translateX(0);
}

.side-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.side-nav h2 {
  font-size: 22px;
}

.side-nav-links {
  display: grid;
  gap: 6px;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.6);
}

.nav-link.active {
  border-color: rgba(11, 122, 117, 0.45);
  background: var(--accent-soft);
}

.page-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.box,
.land-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(20, 28, 36, 0.08);
  padding: 14px;
}

.btn,
button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--text);
  color: #f9fbfb;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
}

.btn.ghost,
button.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.nav-toggle {
  min-width: 44px;
  width: 44px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, white);
  outline-offset: 1px;
}

.land-cards-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.land-card {
  width: min(320px, 100%);
  text-align: center;
  cursor: pointer;
}

.land-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  text-decoration: none;
}

.land-card-name,
.land-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.site-footer .footer-inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: 12px;
  display: flex;
  justify-content: center;
}

#scrollToTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--text);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  display: none;
  z-index: 110;
}

#scrollToTopBtn.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-10 {
  gap: 10px;
}

.gap-8 {
  gap: 8px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  body {
    padding: 10px;
  }

  .page-shell {
    gap: 10px;
  }

  .site-header {
    top: calc(var(--progress-height) + 6px);
  }

  .topbar {
    padding: 10px 12px;
  }

  .side-nav {
    left: 10px;
    top: 10px;
    width: min(280px, calc(100vw - 20px));
  }

  #scrollToTopBtn {
    right: 12px;
    bottom: 12px;
  }
}
