    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Georgia', serif;
      background: #f4f1ea;
      color: #2d2d2d;
      display: flex;
    }
.budapest-block {
  max-width: 900px;
  margin: 60px auto;
  background: #fff;
  border: 6px solid #d2b48c;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.budapest-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  filter: sepia(0.2) contrast(1.05);
}

.budapest-block p {
  margin-top: 18px;
  font-size: 20px;
  color: #4e3c2f;
  font-style: italic;
}
.bp-details {
  max-width: 1000px;
  margin: 80px auto;
  background: #fef9f3;
  border: 4px solid #d2b48c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.bp-details summary {
  font-size: 26px;
  font-weight: bold;
  padding: 30px 40px;
  background: linear-gradient(90deg, #f0dfc2, #fdf6e8);
  cursor: pointer;
  color: #3a2a1a;
  user-select: none;
  transition: background 0.3s ease;
}

.bp-details summary:hover {
  background: #f7ebd2;
}

.bp-details-body {
  padding: 30px 40px 40px;
  font-size: 22px;
  color: #4b3b2a;
  line-height: 1.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.painted-illustration {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.painted-illustration img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.painted-illustration img:hover {
  transform: scale(1.02);
}

.caption {
  font-size: 20px;
  margin-top: 16px;
  color: #444;
  font-style: italic;
}
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-nav a,
.site-nav button {
  color: #fdf7ee;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(145deg, #7a6355, #6a5448);
  border: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.site-nav a:hover,
.site-nav button:hover {
  background: linear-gradient(145deg, #9b7e6d, #7d6557);
  color: #fff;
  transform: translateY(-2px);
}
.modal-box {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background-color: #fff9f3;
  padding: 30px 25px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  line-height: 1.7;
  color: #2b2b2b;
  position: relative;
}

.modal-content h2 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #362914;
}

.modal-content p {
  margin-bottom: 16px;
}

.modal-content .close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-content .close:hover {
  color: #000;
}

/* ✅ Адаптация под мобилки */
@media screen and (max-width: 480px) {
  .modal-content {
    padding: 20px 18px;
    font-size: 16px;
    line-height: 1.6;
  }

  .modal-content h2 {
    font-size: 22px;
  }

  .modal-content .close {
    font-size: 24px;
    right: 12px;
    top: 10px;
  }
}

    /* /////////// */
.side-anchor {
  background: #7b6657;
  color: #fff8f1;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 260px;
  min-height: 100vh;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
}

.side-anchor h1 {
  font-size: 26px;
  margin-bottom: 30px;
  color: #fff;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-btn {
  background-color: #f5e9dc;
  color: #222;
  border: none;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-btn:hover {
  background-color: #e7d6c2;
}

.history-tagline {
  font-style: italic;
  font-size: 16px;
  color: #f5e9dc;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .side-anchor {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    width: 100%;
    min-height: unset;
    padding: 16px 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .side-anchor h1 {
    font-size: 20px;
    margin: 0;
  }

  .site-nav {
    flex-direction: row;
    gap: 10px;
    margin: 0;
  }

  .modal-btn {
    font-size: 14px;
    padding: 6px 10px;
  }

  .history-tagline {
    display: none;
  }

  .main-content {
    margin-top: 80px !important;
    margin-left: 0 !important;
  }
}


    /* Main content */
    .core-zone {
      margin-left: 280px;
      padding: 60px 50px;
      max-width: 1000px;
    }

.intro-block {
  background: #fefaf4;
  padding: 60px 40px;
  margin-bottom: 80px;
  border-left: 8px solid #cbb9aa;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.intro-block p {
  font-size: 24px;
  line-height: 1.9;
  color: #3d2e23;
  margin-bottom: 28px;
}


.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.fact-box {
  background-color: #fff7ec;
  border-left: 8px solid #d2b48c;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.fact-box h3 {
  font-size: 26px;
  margin-bottom: 18px;
  color: #4a3727;
}

.fact-box p {
  font-size: 21px;
  line-height: 1.9;
  color: #3a2a1a;
}

    /* Footer */
    .bottom-legend {
      margin-top: 100px;
      padding: 60px 20px;
      background: #cbb9aa;
      text-align: center;
      position: relative;
    }

    .bottom-legend h4 {
      font-size: 22px;
      color: #3b2f27;
      margin-bottom: 12px;
    }

    .bottom-legend::after {
      content: "✦";
      font-size: 32px;
      position: absolute;
      top: -20px;
      left: 50%;
      transform: translateX(-50%);
      color: #7c675c;
    }

    .bottom-legend p {
      font-size: 16px;
      color: #3b2f27;
    }

    @media (max-width: 768px) {
      .side-anchor {
        display: none;
      }
      .core-zone {
        margin-left: 0;
        padding: 30px 20px;
      }
    }
@media (max-width: 768px) {
  .side-anchor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: unset;
    background: #7b6657;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
  }

  .side-anchor h1 {
    font-size: 18px;
    margin: 0;
    color: #fff;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .modal-btn {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #f5e9dc;
    color: #222;
    border: none;
  }

  .history-tagline {
    display: none;
  }

  .main-content {
    margin-top: 70px !important;
    margin-left: 0 !important;
  }
}

