/* baikal-guide.com — shared stylesheet */
/* No external dependencies. System fonts only. */

:root {
  --blue:    #1a6fa8;
  --teal:    #2a8a90;
  --dark:    #1a1a2e;
  --text:    #2d2d2d;
  --muted:   #666;
  --bg:      #f5f7f9;
  --white:   #ffffff;
  --border:  #dde3ea;
  --hero-h:  420px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* images carry width/height attributes (no layout shift); keep the aspect ratio */
img { max-width: 100%; height: auto; }

/* skip link: hidden until it gets keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .5rem 1rem;
  background: var(--white);
  color: var(--dark);
}
.skip-link:focus { left: .5rem; top: .5rem; }
#main { scroll-margin-top: 64px; } /* below the sticky navigation */

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

nav .logo {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .3px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}

nav ul li a {
  color: #ccd6e0;
  text-decoration: none;
  font-size: .82rem;
  padding: .35rem .6rem;
  border-radius: 4px;
  transition: background .15s, color .15s;
}

nav ul li a:hover,
nav ul li a.active { background: var(--blue); color: var(--white); }

/* language toggle */
.lang-btn {
  background: transparent;
  border: 1px solid #4a6070;
  color: #aabbc8;
  font-size: .78rem;
  padding: .3rem .6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--blue); color: var(--white); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: var(--dark);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
}

.hero-text {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  right: 2rem;
}

.hero-text h1 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

.hero-text p {
  color: #dde8f0;
  font-size: 1rem;
  margin-top: .5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  max-width: 620px;
}

.photo-credit-hero {
  position: absolute;
  bottom: .4rem;
  right: .6rem;
  font-size: .68rem;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.photo-credit-hero a { color: rgba(255,255,255,.85); }

/* ── Main content ────────────────────────────────────────────── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* language sections */
.lang-ru, .lang-en { display: block; }
body.en .lang-ru  { display: none; }
body.en .lang-en  { display: block; }
body.ru .lang-ru  { display: block; }
body.ru .lang-en  { display: none; }

h2 {
  color: var(--blue);
  font-size: 1.45rem;
  margin: 2.2rem 0 .8rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--border);
}

h3 {
  color: var(--dark);
  font-size: 1.1rem;
  margin: 1.6rem 0 .5rem;
}

p { margin-bottom: 1rem; }

strong { color: var(--dark); }

ul, ol {
  margin: .5rem 0 1rem 1.5rem;
}
ul li, ol li { margin-bottom: .3rem; }

/* ── Cards (index page) ──────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body { padding: 1rem; }
.card-body h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--blue); }
.card-body p  { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* ── News block (index) ──────────────────────────────────────── */
.news-block { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.news-list { list-style: none; margin: .8rem 0 0; padding: 0; }
.news-list li { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.news-list a { color: var(--blue); text-decoration: none; font-weight: 500; line-height: 1.4; }
.news-list a:hover { text-decoration: underline; }
.news-meta { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.news-note { font-size: .74rem; color: var(--muted); margin-top: .6rem; }

/* ── Article images ──────────────────────────────────────────── */
.img-block {
  margin: 1.8rem 0;
}

.img-block img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.img-block.half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.img-block.half img { max-height: 280px; }

figcaption, .caption {
  font-size: .76rem;
  color: var(--muted);
  margin-top: .35rem;
  line-height: 1.4;
}
.caption a { color: var(--muted); }

/* ── Gallery grid ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .9rem;
  margin-top: 1.5rem;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--white);
}

.gallery-grid figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

.gallery-grid figcaption {
  padding: .4rem .6rem;
}

/* ── Fact table ──────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  font-size: .9rem;
}
th, td {
  text-align: left;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--border);
}
th {
  background: #e8eff5;
  color: var(--dark);
  font-weight: 600;
}
tr:hover td { background: #f0f5f9; }

/* ── Season tabs ─────────────────────────────────────────────── */
/* without JavaScript all four seasons are shown one below the other and the tabs are
   hidden; site.js sets class "js" on <html>, only then the tabs switch (F-10) */
.season-tabs { display: none; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0 0; }
.js .season-tabs { display: flex; }
.season-tab {
  padding: .5rem 1.1rem;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  cursor: pointer;
  font-size: .88rem;
  transition: all .15s;
}
.season-tab.active, .season-tab:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.season-content { margin-top: 1.5rem; }
.js .season-content { display: none; }
.js .season-content.visible { display: block; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: #8a9baa;
  font-size: .78rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  line-height: 1.8;
}

footer a { color: #7ab3cc; text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer .disclaimer {
  margin-bottom: .6rem;
  font-size: .74rem;
  color: #8a9baa;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --hero-h: 280px; }
  .hero-text h1 { font-size: 1.4rem; }
  /* small screens: the menu moves to its own row and scrolls sideways */
  nav { height: auto; flex-wrap: wrap; padding: .45rem 1rem; row-gap: .3rem; }
  nav ul { order: 3; width: 100%; margin: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; }
  nav ul li { flex: 0 0 auto; margin-bottom: 0; }
  nav ul li a { display: inline-block; white-space: nowrap; }
  #main { scroll-margin-top: 110px; }
  .img-block.half { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
