/* ===== FYLGJA WORLD — Winter palette ===== */

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

:root {
  --bg:         #0d0f12;   /* almost black, cold */
  --bg-card:    #161a1f;   /* dark cold grey */
  --bg-elev:    #1e232a;   /* slightly lighter */
  --ice:        #a8c4d4;   /* pale ice blue */
  --ice-dim:    #6f8794;   /* muted blue */
  --snow:       #f0f4f7;   /* near-white */
  --text:       #e8e6e1;   /* cold white */
  --text-dim:   #8a9199;   /* grey-blue */
  --gold:       #b8956a;   /* rare warm accent */
  --border:     #2a3138;   /* subtle cold border */
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ice); text-decoration: none; transition: color .2s; }
a:hover { color: var(--snow); }

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

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 40px;
  background: rgba(8, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ice); }
.brand:hover { color: var(--snow); }
.brand-rune { width: 34px; height: 34px; }
.brand-name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--ice);
}

.mainnav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.mainnav a {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--text);
  padding: 4px 0;
  transition: color .2s;
}
.mainnav a:hover, .mainnav a.active { color: var(--ice); }

.lang-switch {
  display: flex;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}
.lang-switch a { color: var(--text-dim); }
.lang-switch a:hover, .lang-switch a.active { color: var(--ice); }

/* ===== HERO — FULL WIDTH ===== */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 24px 80px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 15, 18, 0.55) 0%,
    rgba(13, 15, 18, 0.35) 40%,
    rgba(13, 15, 18, 0.95) 100%
  );
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(56px, 10vw, 130px);
  letter-spacing: 14px;
  color: var(--snow);
  text-shadow:
    0 0 4px rgba(13, 15, 18, 0.95),
    0 0 18px rgba(13, 15, 18, 0.9),
    0 0 40px rgba(13, 15, 18, 0.85),
    0 6px 30px rgba(0, 0, 0, 0.9);
  margin-bottom: 8px;
}
.hero-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 6px;
  color: var(--ice);
  text-transform: uppercase;
  margin-bottom: 32px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.8);
}
.hero-tag {
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,0.95);
}

/* ===== SECTIONS ===== */
section:not(.hero) {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--ice-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--snow);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 32px;
  line-height: 1.2;
}
.section-lead {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 48px;
}

/* ===== INTRO ===== */
.intro-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 19px;
}
.intro-text p + p { margin-top: 20px; }

/* ===== SHADOWS ===== */
.shadows-img {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.shadows-img img { width: 100%; height: auto; }

/* ===== GRID ===== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  color: var(--text);
  transition: all .25s ease;
}
.card:hover {
  border-color: var(--ice-dim);
  background: var(--bg-elev);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.card h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ice);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.card p { font-size: 16px; color: var(--text-dim); line-height: 1.5; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
}
.footer strong {
  color: var(--ice);
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
}
.footer-small {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.7;
  font-style: italic;
}

/* ===== RESPONSIVE (main) ===== */
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px;
  }

  .brand-name {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .brand-rune {
    width: 26px;
    height: 26px;
  }

  .mainnav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mainnav::-webkit-scrollbar {
    display: none;
  }

  .mainnav a {
    font-size: 12px;
    letter-spacing: 1.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lang-switch {
    font-size: 11px;
  }

  section:not(.hero) {
    padding: 60px 16px;
  }

  .hero { min-height: 90vh; }
}

/* ===== PAGE HERO (для внутренних страниц) ===== */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 24px 80px;
}
.page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--ice);
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.page-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: 10px;
  color: var(--snow);
  text-shadow:
    0 0 4px rgba(13, 15, 18, 0.95),
    0 0 18px rgba(13, 15, 18, 0.9),
    0 0 40px rgba(13, 15, 18, 0.85),
    0 6px 30px rgba(0, 0, 0, 0.9);
  margin-bottom: 16px;
}
.page-sub {
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0,0,0,0.95);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== ARTICLE ===== */
.article {
  padding: 100px 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.article-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 19px;
}
.article-text p + p { margin-top: 20px; }

/* ===== PLACES GRID ===== */
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 40px;
}
.place-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.place-card:hover {
  border-color: var(--ice-dim);
  background: var(--bg-elev);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.7);
}
.place-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.place-body {
  padding: 22px 22px 26px;
}
.place-body h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ice);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.place-body p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== COMPACT PAGE HERO ===== */
.page-hero-compact {
  padding: 140px 40px 60px;
  max-width: none;
}
.page-hero-frame {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  height: 55vh;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 15, 18, 0.35) 0%,
    rgba(13, 15, 18, 0.55) 60%,
    rgba(13, 15, 18, 0.9) 100%
  );
}
.page-hero-text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.page-hero-compact .page-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 10px;
  color: var(--snow);
  text-shadow:
    0 0 4px rgba(13, 15, 18, 0.95),
    0 0 18px rgba(13, 15, 18, 0.9),
    0 6px 30px rgba(0, 0, 0, 0.9);
  margin-bottom: 12px;
}

/* ===== BIG EYEBROW ===== */
.eyebrow-big {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--ice-dim);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-big.center { text-align: center; }

/* ===== TWO COLUMNS ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.two-col-item { padding: 0; }
.col-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--snow);
  letter-spacing: 1.5px;
  margin-bottom: 22px;
  line-height: 1.25;
}
.col-text { font-size: 18px; }
.col-text p + p { margin-top: 16px; }

.place-card-big {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.place-card-big:hover {
  border-color: var(--ice);
  background: var(--bg-elev);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.8);
}
.place-img-big {
  position: relative;
  width: 100%;
  height: 230px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  transition: transform .5s ease;
}
.place-card-big:hover .place-img-big {
  transform: scale(1.04);
}
.place-body-big { padding: 24px 24px 28px; }
.place-body-big h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ice);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.place-body-big p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.modal.open { display: flex; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 7, 9, 0.88);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal-window {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--ice-dim);
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 100px rgba(0,0,0,0.9);
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-image {
  width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.modal-body { padding: 36px 40px 44px; }

.modal-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--snow);
  letter-spacing: 2px;
  margin-bottom: 22px;
  line-height: 1.25;
}

.modal-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.modal-text p { margin-bottom: 18px; }
.modal-text p:last-child { margin-bottom: 0; }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  z-index: 2;
  background: rgba(13, 15, 18, 0.85);
  border: 1px solid var(--ice-dim);
  color: var(--snow);
  font-size: 26px;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.modal-close:hover {
  background: var(--ice);
  color: var(--bg);
  border-color: var(--snow);
}

/* ===== RESPONSIVE (inner pages) ===== */
@media (max-width: 900px) {
  .page-hero-compact { padding: 110px 16px 40px; }
  .page-hero-frame { height: 45vh; min-height: 300px; }
  .two-col {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 60px 20px;
  }
  .modal-image { height: 240px; }
  .modal-body { padding: 24px 22px 30px; }
  .modal { padding: 16px 10px; }
}

/* ===== PLACES — FORCE FULL WIDTH ===== */
.places-wide {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 80px 20px 120px !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.places-grid-full {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 18px !important;
  width: 100% !important;
  margin-top: 50px;
}

@media (max-width: 1600px) {
  .places-grid-full { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 1200px) {
  .places-grid-full { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
  .places-grid-full { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .places-grid-full { grid-template-columns: 1fr !important; }
}

/* Убираем горизонтальную прокрутку */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== INTRO WIDE ===== */
.intro-wide {
  width: 100%;
  max-width: none;
  padding: 80px 30px;
  margin: 0;
}
.intro-wide .article-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 19px;
}
.intro-wide .article-text p {
  break-inside: avoid;
  margin-bottom: 18px;
}

/* ===== GOD CARD ===== */
.god-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  color: inherit;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.god-card:hover {
  border-color: var(--ice);
  background: var(--bg-elev);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.8);
}

.god-rune {
  font-family: 'Noto Sans Runic', serif;
  font-size: 96px;
  line-height: 1;
  color: var(--ice);
  padding: 40px 20px 20px;
  text-shadow: 0 0 30px rgba(168, 196, 212, 0.4);
  transition: all .3s ease;
}
.god-card:hover .god-rune {
  color: var(--snow);
  text-shadow: 0 0 50px rgba(240, 244, 247, 0.6);
  transform: scale(1.08);
}

.god-body {
  padding: 16px 22px 28px;
}
.god-body h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ice);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.god-epithet {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ice-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.god-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ===== MODAL RUNE ===== */
.modal-rune {
  display: none;
  font-family: 'Noto Sans Runic', serif;
  font-size: 120px;
  line-height: 1;
  color: var(--ice);
  text-align: center;
  padding: 40px 20px 10px;
  text-shadow: 0 0 40px rgba(168, 196, 212, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .intro-wide .article-text { columns: 1; }
  .intro-wide { padding: 60px 20px; }
  .god-rune { font-size: 72px; padding: 30px 16px 10px; }
}

/* ===== PLACES CENTERED ===== */
.places-centered {
  width: 100% !important;
  padding: 80px 40px 120px !important;
  margin: 0 auto !important;
  max-width: 1700px !important;
}
.places-centered .places-grid-full {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin-top: 50px !important;
  width: 100% !important;
}
@media (max-width: 1400px) {
  .places-centered .places-grid-full { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
  .places-centered .places-grid-full { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .places-centered .places-grid-full { grid-template-columns: 1fr !important; }
}

/* ===== PAGE HERO PLAIN ===== */
.page-hero-plain {
  width: 100%;
  padding: 180px 30px 80px;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(13, 15, 18, 0.4) 0%,
    rgba(13, 15, 18, 1) 100%
  );
  border-bottom: 1px solid var(--border);
}

.page-hero-plain .page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--ice);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-title-plain {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(56px, 9vw, 130px);
  letter-spacing: 16px;
  color: var(--snow);
  margin-bottom: 20px;
  text-shadow:
    0 0 20px rgba(168, 196, 212, 0.35),
    0 0 60px rgba(168, 196, 212, 0.15);
}

.page-sub-plain {
  font-size: 19px;
  font-style: italic;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .page-hero-plain { padding: 130px 20px 60px; }
}

/* ===== MAP SECTION ===== */
.map-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 40px 20px 100px !important;
}

.map-wrap {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== MAP MARKERS ===== */
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  transition: transform .25s ease;
  z-index: 10;
}

.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 20;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ice);
  border: 2px solid var(--snow);
  box-shadow:
    0 0 12px rgba(168, 196, 212, 0.9),
    0 0 24px rgba(168, 196, 212, 0.6);
  transition: all .25s ease;
  animation: markerPulse 2.5s infinite ease-in-out;
}

.map-marker:hover .marker-dot {
  background: var(--snow);
  box-shadow:
    0 0 20px rgba(240, 244, 247, 1),
    0 0 40px rgba(168, 196, 212, 0.9);
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}

.marker-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--snow);
  text-shadow:
    0 0 6px rgba(13, 15, 18, 1),
    0 0 12px rgba(13, 15, 18, 0.95),
    0 2px 8px rgba(0, 0, 0, 1);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.map-marker:hover .marker-label {
  opacity: 1;
}

.map-hint {
  text-align: center;
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 26px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

@media (max-width: 900px) {
  .map-section { padding: 20px 12px 60px !important; }
  .marker-dot { width: 12px; height: 12px; border-width: 1.5px; }
  .marker-label { font-size: 9px; }
}

/* ===== ACCORDIONS ===== */
.life-accordions {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 60px 40px 120px;
}
.accordions {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.acc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.acc[open] {
  border-color: var(--ice-dim);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.acc:hover {
  border-color: var(--ice-dim);
}

.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  cursor: pointer;
  list-style: none;
  transition: background .25s ease;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head:hover { background: var(--bg-elev); }

.acc-head-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acc-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ice-dim);
  text-transform: uppercase;
}
.acc-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--snow);
  letter-spacing: 4px;
}
.acc-sub {
  font-size: 16px;
  color: var(--text-dim);
  font-style: italic;
}
.acc-arrow {
  font-size: 24px;
  color: var(--ice);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.acc[open] .acc-arrow {
  transform: rotate(180deg);
}

.acc-body {
  padding: 0 32px 40px;
  border-top: 1px solid var(--border);
  animation: accFade .35s ease;
}
@keyframes accFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.acc-image {
  margin: 30px 0 36px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.acc-image img {
  width: 100%;
  height: auto;
  display: block;
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.acc-grid-single {
  grid-template-columns: 1fr;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 1400px) {
  .acc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-head { padding: 20px 22px; }
  .acc-body { padding: 0 20px 30px; }
  .life-accordions { padding: 40px 16px 80px; }
}

/* ===== LETTER SECTION (пергамент) ===== */
.letter-section {
  width: 100%;
  padding: 40px 30px 120px;
  display: flex;
  justify-content: center;
}

.parchment {
  position: relative;
  max-width: 950px;
  width: 100%;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(180, 140, 80, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(160, 120, 60, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, #ede0c4 0%, #e6d5b3 45%, #dcc89f 100%);
  color: #1a1208;
  padding: 60px 70px 70px;
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    inset 0 0 120px rgba(120, 80, 30, 0.15);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  border: 1px solid #b89d6b;
}

.parchment::before,
.parchment::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid #b89d6b;
  opacity: 0.45;
  pointer-events: none;
}
.parchment::before {
  top: 12px; left: 12px;
  border-right: none;
  border-bottom: none;
}
.parchment::after {
  bottom: 12px; right: 12px;
  border-left: none;
  border-top: none;
}

.letter-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(90, 60, 20, 0.25);
}

.avatar-wrap {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 5px;
  background: radial-gradient(circle at 50% 50%, rgba(200, 160, 90, 0.5), rgba(120, 80, 30, 0.15));
  animation: avatarPulse 3.5s infinite ease-in-out;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(120, 80, 30, 0.6);
  box-shadow: 0 0 20px rgba(200, 160, 90, 0.5);
}

@keyframes avatarPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(200, 160, 90, 0.35), 0 0 40px rgba(200, 160, 90, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(200, 160, 90, 0.7), 0 0 70px rgba(200, 160, 90, 0.3);
    transform: scale(1.03);
  }
}

.letter-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.letter-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: #6b4a1a;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.letter-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 3px;
  color: #1a1208;
  line-height: 1.1;
}
.letter-role {
  font-size: 15px;
  font-style: italic;
  color: #6b4a1a;
}

.letter-body p {
  margin-bottom: 18px;
  color: #1a1208;
}
.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-sign {
  margin-top: 30px;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: #4a2f0a;
  text-align: right;
}

@media (max-width: 800px) {
  .letter-section { padding: 20px 14px 80px; }
  .parchment {
    padding: 36px 26px 44px;
    font-size: 17px;
  }
  .letter-head {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .letter-head-text { align-items: center; }
  .avatar-wrap { width: 150px; height: 150px; }
  .letter-name { font-size: 32px; }
}