:root {
  --bg: #f3f7f1;
  --hero-bg: #cded8b;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #6a6a6a;
  --border: rgba(0, 0, 0, .10);
  --shadow: 0 10px 30px rgba(0, 0, 0, .10);

  --spoilerBtnBg : #6259a7;

  --accent: #6259a7;
  --accent-2: rgba(40, 104, 0, .10);
  --danger: #b00020;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-size: 16px;
  --radius: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --container: 1200px;
  --pad: 16px;
  --gap: 16px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  background: var(--bg);
  color: var(--text)
}

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

button {
  font-family: inherit
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad)
}

.main {
  padding: 56px var(--pad)
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border)
}

.topbarRow {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none
}

.brandMark {
  font-weight: 900;
  letter-spacing: .6px;
  color: var(--accent)
}

.topNav {
  display: flex;
  gap: 12px;
  align-items: center
}

.topLink {
  color: var(--muted);
  font-weight: 600
}

.topLink.router-link-active {
  color: var(--text)
}

.hero {
  background: var(--hero-bg)
}

.heroInner {
  padding: 64px var(--pad)
}

.heroText {
  max-width: 720px
}

.heroTitle {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.12
}

.heroSub {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 18px
}

.heroList {
  margin: 0 0 22px;
  padding-left: 18px;
  color: #3a3a3a
}

.heroList li {
  margin: 6px 0
}

.searchBar {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .12)
}

.searchInput {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 8px 10px;
  background: transparent
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, .14);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer
}

.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff
}

.btn.primary:hover {
  filter: brightness(.98)
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, .18)
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed
}

.sectionTitle {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 20px
}

.err {
  color: var(--danger)
}

.card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08)
}

.countryGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 14px;
}

@media (max-width:1180px) {
  .countryGrid {
    grid-template-columns: repeat(6, minmax(0, 1fr))
  }
}

@media (max-width:1020px) {
  .countryGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr))
  }
}

@media (max-width:860px) {
  .countryGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }
}

@media (max-width:680px) {
  .countryGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .topbarRow {
    height: 58px
  }

  .heroInner {
    padding: 52px var(--pad)
  }

  .heroTitle {
    font-size: 28px
  }
}

@media (max-width:460px) {
  .countryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

.countryTile {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--radius);
  padding: 14px 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 122px;
  transition: transform .12s ease, box-shadow .12s ease
}

.countryTile:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .10)
}

.countryFlag {
  width: 52px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  object-fit: cover
}

.countryName {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15
}

.countryPrice {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  line-height: 1.1
}

.countriesSpoiler {
  margin-top: 18px
}

.countriesSpoiler>summary {
  list-style: none
}

.countriesSpoiler>summary::-webkit-details-marker {
  display: none
}

.spoilerBtn {
  display: flex;
  margin: 18px auto 0;
  width: max-content;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: var(--spoilerBtnBg);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  cursor: pointer;
  border: none;
}

.spoilerBody {
  margin-top: 18px
}

.crumbs {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.crumbLink {
  text-decoration: underline;
  color: var(--muted)
}

.crumbSep {
  opacity: .6
}

.countryHeader {
  margin: 10px 0 18px
}

.countryTitle {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.12
}

.countrySub {
  color: var(--muted)
}

.filtersBar {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap
}

.filterItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px
}

.filterLabel {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700
}

.select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, .16);
  outline: none;
  background: #fff
}

.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-2)
}

.packagesGrid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

@media (max-width:980px) {
  .packagesGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:640px) {
  .packagesGrid {
    grid-template-columns: 1fr
  }
}

.pkgCard {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08)
}

.pkgName {
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.2
}

.pkgMeta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .02);
  font-size: 12px;
  color: #3a3a3a
}

.pkgPrice {
  font-weight: 900;
  font-size: 20px;
  margin: 4px 0 12px
}

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

.footerNote {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px
}

.buyLinkCard {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--radius);
  padding: 16px
}

.buyLinkTitle {
  font-weight: 900;
  margin-bottom: 6px
}

.buyLinkSub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px
}

.buyLinkRow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

.buyLinkText {
  word-break: break-all;
  color: #2a2a2a
}