:root {
  --ink: #201813;
  --muted: #6b5d51;
  --felt: #f2eadb;
  --paper: #fff8ec;
  --night: #171b1b;
  --copper: #b7602a;
  --gold: #d7a94c;
  --turquoise: #237c82;
  --clay: #8b3d28;
  --sage: #68775a;
  --line: rgba(32, 24, 19, .14);
  --shadow: 0 26px 80px rgba(30, 18, 10, .24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(215, 169, 76, .22), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(35, 124, 130, .15), transparent 34rem),
    linear-gradient(135deg, #fff9ec 0%, #e8d7bd 46%, #b9966b 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

.sky-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgba(32,24,19,.08) 1px, transparent 1px),
    linear-gradient(rgba(32,24,19,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 248, 236, .84);
  border-bottom: 1px solid rgba(32, 24, 19, .12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: url("assets/logo.png") center / cover no-repeat;
  border: 2px solid #fff4d9;
  box-shadow: 0 8px 22px rgba(89, 44, 20, .22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.ghost-link,
.solid-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.ghost-link:hover {
  background: rgba(139, 61, 40, .1);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
}

.language-switcher a {
  min-width: 34px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a.active {
  color: var(--paper);
  background: var(--ink);
}

.solid-link {
  background: var(--ink);
  color: var(--paper);
}

.link-button {
  border: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
}

.user-pill {
  color: var(--turquoise);
  font-weight: 800;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 248, 236, .72);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 58px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Kazakh%20Eagle%20Hunters.JPG?width=1800");
  background-size: cover;
  background-position: center 36%;
  transform: scale(1.02);
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 14, 12, .82) 0%, rgba(15, 14, 12, .44) 46%, rgba(15, 14, 12, .12) 100%),
    linear-gradient(0deg, rgba(32, 24, 19, .76), transparent 52%);
}

.hero::after,
.page-hero::after,
.auth-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 104px;
  background:
    linear-gradient(135deg, transparent 20px, rgba(215,169,76,.34) 21px 26px, transparent 27px) 0 0 / 52px 52px,
    linear-gradient(225deg, transparent 20px, rgba(255,248,236,.42) 21px 26px, transparent 27px) 0 26px / 52px 52px;
  opacity: .74;
  pointer-events: none;
}

.hero-content {
  width: min(900px, calc(100% - 36px));
  margin: 0 0 clamp(46px, 8vw, 100px) clamp(18px, 7vw, 92px);
  color: var(--paper);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 38px;
  height: 2px;
  background: currentColor;
}

.kicker.dark {
  color: var(--clay);
}

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

.hero h1 {
  margin: 18px 0 18px;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 96px);
  line-height: .96;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 248, 236, .88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), #f1d28b 46%, var(--copper));
  color: #1c130e;
  box-shadow: 0 16px 34px rgba(116, 58, 26, .28);
}

.button.secondary {
  background: rgba(255, 248, 236, .14);
  border-color: rgba(255, 248, 236, .5);
  color: inherit;
}

.section .button.secondary,
.product-card .button.secondary,
.product-detail .button.secondary,
.auth-form .button.secondary {
  background: transparent;
  border-color: var(--line);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(22px, 5vw, 60px);
  width: min(320px, calc(100% - 36px));
  padding: 18px;
  color: var(--paper);
  background: rgba(32, 24, 19, .46);
  border: 1px solid rgba(255, 248, 236, .26);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.hero-panel span {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.15;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.intro-grid h2,
.section-head h2,
.band-copy h2,
.page-hero h1,
.product-detail h1,
.admin-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-grid p,
.band-copy p,
.page-hero p,
.empty-state p,
.product-detail p,
.admin-head p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-strip div {
  min-height: 148px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 248, 236, .62);
  border: 1px solid var(--line);
}

.stat-strip strong {
  display: block;
  color: var(--turquoise);
  font-size: clamp(32px, 5vw, 56px);
  font-family: Georgia, "Times New Roman", serif;
}

.stat-strip span {
  color: var(--muted);
  font-weight: 750;
}

.split-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 28px;
  padding-inline: clamp(18px, 4vw, 54px);
  background: linear-gradient(135deg, rgba(32, 24, 19, .94), rgba(60, 39, 29, .9));
  color: var(--paper);
}

.band-copy {
  align-self: center;
}

.band-copy p {
  color: rgba(255, 248, 236, .76);
}

.cards-row,
.list-grid,
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card,
.product-card,
.blog-post,
.admin-section,
.auth-form,
.empty-state {
  border-radius: 8px;
  background: rgba(255, 248, 236, .76);
  border: 1px solid rgba(32, 24, 19, .12);
  box-shadow: 0 18px 50px rgba(50, 30, 18, .12);
  overflow: hidden;
}

.content-card img,
.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.content-card div,
.product-body {
  padding: 18px;
}

.content-card time,
.blog-post time {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
}

.content-card h3,
.product-card h2 {
  font-size: 22px;
  line-height: 1.12;
}

.content-card p,
.product-card p,
.gallery-tile p {
  color: var(--muted);
  line-height: 1.58;
}

.text-link {
  color: var(--turquoise);
  font-weight: 900;
  text-decoration: none;
}

.gallery-preview {
  padding-bottom: 110px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.mosaic,
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--night);
  box-shadow: var(--shadow);
}

.gallery-tile:nth-child(1),
.gallery-tile:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: transform .45s ease;
}

.gallery-tile:hover img {
  transform: scale(1.05);
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 14, 11, .88), transparent 64%);
}

.gallery-tile div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: var(--paper);
}

.gallery-tile h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.gallery-tile p {
  max-height: 4.8em;
  overflow: hidden;
  color: rgba(255, 248, 236, .8);
}

.page-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  align-content: end;
  padding: 86px clamp(18px, 6vw, 78px) 74px;
  color: var(--paper);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 16, 14, .82), rgba(17, 16, 14, .36));
}

.page-hero > * {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.page-hero p {
  color: rgba(255, 248, 236, .84);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .34);
}

.news-hero {
  background-image: url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Ethnic%20village%2C%20consisting%20of%20a%20traditional%20dwelling%20-%20a%20yurt%2C%20Kyrgyzstan%2C%20World%20Nomad%20Games%202018.jpg?width=1600");
}

.blog-hero {
  background-image: url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Yurt%20from%20the%20inside%20%282025-03-26%3B%201%29.jpg?width=1600");
}

.gallery-hero {
  background-image: url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Eagle%20hunter%20family%20in%20their%20traditional%20Kazakh%20wardrobe%20inside%20a%20ger%20in%20remote%20Western%20Mongolia%2C%202022.jpg?width=1600");
}

.shop-hero {
  background-image: url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Central%20Asian%20Rondel%207-9c.%20AD.jpg?width=1600");
}

.blog-list {
  display: grid;
  gap: 20px;
}

.blog-post {
  display: grid;
  grid-template-columns: 360px 1fr;
}

.blog-post img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.blog-post div {
  padding: clamp(22px, 4vw, 44px);
}

.blog-post h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.lead {
  font-size: 19px;
  color: var(--clay);
  font-weight: 750;
}

.price,
.detail-price {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--turquoise);
  font-size: 18px;
  font-weight: 950;
}

.product-actions {
  margin-top: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.product-detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-shell {
  width: min(1040px, calc(100% - 36px));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 92px) 0;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: stretch;
}

.auth-visual {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--paper);
  padding: clamp(30px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(0deg, rgba(17, 16, 14, .86), rgba(17, 16, 14, .12)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Traditional%20Kyrgyz%20nomadic%20Yurt.jpg?width=1300") center / cover;
  box-shadow: var(--shadow);
}

.auth-visual h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
}

.auth-form {
  padding: clamp(24px, 4vw, 38px);
  align-self: center;
}

.auth-form h2 {
  font-size: 30px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.flash {
  width: min(780px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 8px;
  color: #214240;
  background: rgba(210, 236, 225, .88);
  border: 1px solid rgba(35, 124, 130, .22);
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
  display: grid;
  gap: 24px;
}

.admin-head {
  max-width: 760px;
}

.admin-section {
  padding: clamp(20px, 3vw, 30px);
}

.admin-section h2 {
  font-size: 28px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-form label:has(textarea) {
  grid-column: 1 / -1;
}

.i18n-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .24);
}

.i18n-field legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.i18n-field label {
  margin-bottom: 0;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .34);
}

.admin-item button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: var(--clay);
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 4vw, 54px);
  color: var(--paper);
  background: var(--night);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 248, 236, .62);
}

.site-footer a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  width: min(560px, calc(100% - 28px));
  padding: 16px 18px;
  border-radius: 8px;
  color: var(--paper);
  background: rgba(32, 24, 19, .94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: .22s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .header-tools {
    grid-column: 1 / -1;
  }

  .main-nav {
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .header-tools,
  .auth-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .intro-grid,
  .split-band,
  .blog-post,
  .product-detail,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .cards-row,
  .list-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic,
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel {
    position: static;
    margin: 0 18px 24px;
  }

  .auth-visual {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 20% 2%, rgba(215, 169, 76, .18), transparent 20rem),
      linear-gradient(160deg, #fff9ec 0%, #ebd9bc 58%, #c5a06e 100%);
  }

  .site-header {
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 68px);
  }

  .hero-content {
    margin: 0 16px 28px;
    padding-top: 130px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .hero p,
  .page-hero p,
  .auth-visual p {
    font-size: 16px;
  }

  .hero-actions,
  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stat-strip,
  .cards-row,
  .list-grid,
  .shop-grid,
  .admin-form,
  .i18n-field {
    grid-template-columns: 1fr;
  }

  .mosaic,
  .masonry {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-tile,
  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .page-hero {
    min-height: 330px;
    padding-inline: 18px;
  }

  .page-hero h1,
  .auth-visual h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .section,
  .admin-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-footer {
    display: block;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .site-footer a {
    display: inline-flex;
    margin-top: 14px;
  }
}
