:root {
  --gold: #A67C22;
  --ink: #1A1208;
  --paper: #F5F0E8;
  --soft: #EAE3D2;
  --muted: #544D42;
  --accent: #2E4A3E;
  --red: #6B2121;
  --new: #1A4A28;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
}

.lang-bar {
  background: #111;
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.lang-btns {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  padding: 5px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Source Serif 4', serif;
  transition: all 0.2s;
  border-radius: 2px;
}

.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 700;
}

.lang-btn:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-label {
  color: #555;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-lang] {
  display: none;
}

[data-lang-inline] {
  display: none;
}

body.lang-ru [data-lang="ru"] {
  display: block;
}

body.lang-ru [data-lang-inline="ru"] {
  display: inline;
}

body.lang-kz [data-lang="kz"] {
  display: block;
}

body.lang-kz [data-lang-inline="kz"] {
  display: inline;
}

body.lang-en [data-lang="en"] {
  display: block;
}

body.lang-en [data-lang-inline="en"] {
  display: inline;
}

header {
  background: var(--ink);
  color: var(--paper);
}

.header-top {
  border-bottom: 1px solid #3A3020;
  padding: 12px 50px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-main {
  padding: 55px 50px 45px;
  max-width: 860px;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.subtitle {
  font-size: 1rem;
  color: #B8AD9E;
  max-width: 640px;
  font-style: italic;
  font-weight: 300;
}

.gold-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  margin: 0 50px 28px;
}

.timeline-wrap {
  padding: 0 50px 40px;
  overflow-x: auto;
}

.timeline {
  display: flex;
  gap: 0;
  min-width: 700px;
}

.t-step {
  flex: 1;
  position: relative;
  padding-right: 24px;
}

.t-step::after {
  content: '→';
  position: absolute;
  right: 2px;
  top: 10px;
  color: var(--gold);
  font-size: 1.1rem;
}

.t-step:last-child::after {
  display: none;
}

.t-date {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A651B;
  font-weight: 700;
}

.t-event {
  font-size: 12.5px;
  color: #B8AD9E;
  margin-top: 4px;
  font-style: italic;
  line-height: 1.4;
}

.disclaimer {
  background: var(--accent);
  color: #C8DDD5;
  padding: 13px 50px;
  font-size: 13px;
  border-left: 4px solid var(--gold);
}

.nav-tabs {
  background: white;
  border-bottom: 2px solid var(--soft);
  padding: 0 50px;
  display: flex;
  gap: 0;
  position: sticky;
  top: 44px;
  z-index: 90;
  overflow-x: auto;
}

.nav-tab {
  padding: 16px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  color: var(--muted);
  transition: all 0.2s;
  text-decoration: none;
}

.nav-tab:hover {
  color: var(--ink);
  border-color: var(--soft);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

section {
  margin-bottom: 72px;
  scroll-margin-top: 100px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}

.section-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.compare-table thead tr {
  background: var(--ink);
  color: var(--paper);
}

.compare-table thead th {
  padding: 15px 18px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.compare-table thead th:first-child {
  color: var(--gold);
  width: 180px;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--soft);
  transition: background 0.15s;
}

.compare-table tbody tr:hover {
  background: var(--soft);
}

.compare-table td {
  padding: 16px 18px;
  vertical-align: top;
}

.compare-table td:first-child {
  font-weight: 700;
  font-size: 13px;
  /* Slightly larger for comfort */
  letter-spacing: 0.05em;
  color: var(--ink);
  /* Maximum contrast */
  text-transform: uppercase;
}

.old {
  color: #7A0000;
  /* font-style: italic; */
  font-weight: 7500;
}

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

.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 700;
  margin-top: 5px;
}

.tag-big {
  background: #FFE9B0;
  color: #7A5500;
}

.tag-new {
  background: #D4EBD8;
  color: #1A5C28;
}

.tag-mod {
  background: #E3DDFF;
  color: #3A2480;
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.world-card {
  background: white;
  border: 1px solid #DDD5C0;
  padding: 24px 26px;
  position: relative;
  box-shadow: 3px 3px 0 var(--soft);
}

.world-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.world-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.world-card .aspect {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.world-card p {
  font-size: 14px;
  color: #4A4030;
  line-height: 1.6;
}

.analogy {
  margin-top: 11px;
  padding: 9px 13px;
  background: var(--soft);
  font-size: 13px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--accent);
}

.stays-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stays-card {
  padding: 20px;
  background: white;
  border: 1px solid #DDD5C0;
  border-top: 3px solid var(--accent);
  font-size: 14px;
}

.stays-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 7px;
}

.faq-list {
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid var(--soft);
  padding: 20px 0;
}

.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.03rem;
  font-weight: 700;
  margin-bottom: 9px;
  display: flex;
  gap: 12px;
}

.faq-q::before {
  content: 'Q';
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-a {
  font-size: 14.5px;
  color: #3A3020;
  padding-left: 26px;
  line-height: 1.7;
}

footer {
  background: var(--ink);
  color: var(--muted);
  padding: 40px 50px;
  font-size: 13px;
  line-height: 1.8;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.no-results {
  display: none;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  background: white;
  border: 1px solid var(--soft);
}

/* New Interactivity Styles */
.search-container {
  margin-bottom: 25px;
  display: flex;
  gap: 15px;
  align-items: center;
  background: white;
  padding: 15px 20px;
  border: 1px solid #DDD5C0;
  box-shadow: 2px 2px 0 var(--soft);
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ccc;
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 5px rgba(166, 124, 34, 0.2);
}

.btn-pdf {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-pdf:hover {
  background: #1e332a;
}

@media print {

  .lang-bar,
  .nav-tabs,
  .search-container,
  .disclaimer,
  .lang-btns {
    display: none !important;
  }

  body {
    background: white;
  }

  main {
    padding: 0;
  }

  .compare-table {
    border: 1px solid #eee;
  }
}

@media (max-width: 768px) {

  .lang-bar,
  .header-top,
  .header-main,
  .disclaimer,
  footer,
  .nav-tabs {
    padding-left: 18px;
    padding-right: 18px;
  }

  main {
    padding: 36px 18px;
  }

  .timeline-wrap {
    padding: 0 18px 32px;
  }

  .gold-rule {
    margin: 0 18px 24px;
  }

  .world-grid,
  .stays-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  .compare-table {
    font-size: 13px;
    margin: 0;
    width: 100%;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--soft);
    margin-bottom: 20px;
  }

  .nav-tabs {
    top: 42px;
  }
}