
/* SECRET & SYMBOLS — LOCAL FONT TEST */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=EB+Garamond:wght@400;500;600&display=swap');

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
}

.library-hero h1,
.library-card h2,
.lesson-body h2,
.lesson-body h3,
.lesson-card-entry h3,
.lesson-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
}
:root{
  --ink:#173B38;
  --paper:#e7dfcf;
  --muted:#b9ae99;
  --gold:#C1A675;
  --green:#283127;
  --line:#554d40;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:Georgia,'Times New Roman',serif;
  line-height:1.55;
}

a{
  color:inherit;
  text-decoration:none;
}

.wrap{
  max-width:1180px;
  margin:auto;
  padding:0 28px;
}

/* HEADER */

header{
  border-bottom:1px solid #31534C;
  background:#102D2B;
  position:sticky;
  top:0;
  z-index:5;
}

.nav{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand{
  letter-spacing:.16em;
  font-size:19px;
}

.brand small{
  display:block;
  letter-spacing:.25em;
  font-size:9px;
  color:var(--muted);
  margin-top:4px;
}

.links{
  display:flex;
  gap:24px;
  font-size:13px;
  letter-spacing:.1em;
  text-transform:uppercase;
  align-items:center;
}

.links a:hover{
  color:var(--gold);
}

/* LIBRARY */

.library-hero{
  padding:90px 0 55px;
  text-align:center;
  background:
    radial-gradient(circle at 50% 20%,#24504A 0,#173B38 52%,#0C2423 100%);
}

.library-kicker{
  font-size:10px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:15px;
}

.library-hero h1{
  margin:0 0 18px;
  font-size:clamp(38px,6vw,64px);
  font-weight:400;
  letter-spacing:.08em;
}

.library-intro{
  max-width:700px;
  margin:0 auto;
  color:var(--muted);
  font-size:16px;
}

.library-section{
  padding:55px 0 100px;
}

.library-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.library-card{
  min-height:300px;
  padding:30px;
  border:1px solid #426157;
  background:#12312E;
  display:flex;
  flex-direction:column;
  transition:.2s;
}

.library-card:hover{
  border-color:var(--gold);
  transform:translateY(-2px);
}

.library-card h2{
  margin:0 0 15px;
  font-size:26px;
  line-height:1.25;
  font-weight:400;
}

.library-card p{
  margin:0 0 22px;
  color:var(--muted);
  font-size:14px;
}

.library-price{
  margin-top:auto;
  padding-top:20px;
  border-top:1px solid #403b32;
  color:var(--gold);
  font-size:20px;
}

.library-access{
  margin-top:15px;
  font-size:10px;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:#8f8778;
}

/* FOOTER */

footer{
  border-top:1px solid #31534C;
  padding:32px 0 45px;
  color:#8f8778;
  font-size:12px;
}

/* MOBILE */

@media(max-width:760px){
  .wrap{
    padding:0 19px;
  }

  .nav{
    align-items:flex-start;
    padding:18px 0;
    flex-direction:column;
  }

  .links{
    gap:14px;
    flex-wrap:wrap;
  }

  .library-hero{
    padding:65px 0 42px;
  }

  .library-grid{
    grid-template-columns:1fr;
  }

  .library-card{
    min-height:auto;
  }
}

/* DROPDOWN MENU */

.dropdown{
  position:relative;
}

.dropbtn{
  background:none;
  border:0;
  color:inherit;
  font:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  cursor:pointer;
  padding:10px 0;
}

.dropbtn:hover{
  color:var(--gold);
}

.menu{
  position:absolute;
  top:100%;
  right:0;
  min-width:245px;
  background:#102D2B;
  border:1px solid #426157;
  padding:8px;
  display:none;
  box-shadow:0 18px 40px #0009;
}

.dropdown:hover .menu,
.dropdown:focus-within .menu{
  display:block;
}

.menu a{
  display:block;
  padding:10px 12px;
  font-size:12px;
  letter-spacing:.08em;
}

.menu a:hover{
  background:#24504A;
  color:var(--gold);
}

.lang-switch{
  font-size:12px;
  letter-spacing:.12em;
  white-space:nowrap;
}

.lang-switch strong{
  color:var(--gold);
}

@media(max-width:760px){
  .menu{
    position:static;
    margin-top:8px;
  }
}


/* LIBRARY HERO SPACING FIX */
.library-hero{
  padding-bottom:90px;
}


/* =========================================================
   SECRET & SYMBOLS · LESSON READER
   ========================================================= */

.lesson-body {
  max-width: 820px;
  margin: 48px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.85;
  color: #e8e0d2;
}

.lesson-body p {
  margin: 0 0 24px;
}

.lesson-body h2 {
  margin: 64px 0 26px;
  padding-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 400;
  color: #d7c5a0;
  border-bottom: 1px solid rgba(215, 197, 160, 0.28);
}

.lesson-body h2:first-child {
  margin-top: 12px;
}

.lesson-body h3 {
  margin: 38px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
  color: #d7c5a0;
}

.lesson-body ul,
.lesson-body ol {
  margin: 18px 0 30px;
  padding-left: 28px;
}

.lesson-body li {
  margin: 9px 0;
  padding-left: 5px;
}

.lesson-body blockquote {
  margin: 42px 0;
  padding: 24px 30px;
  font-size: 21px;
  line-height: 1.65;
  font-style: italic;
  text-align: center;
  color: #d7c5a0;
  border-top: 1px solid rgba(215, 197, 160, 0.35);
  border-bottom: 1px solid rgba(215, 197, 160, 0.35);
}

/* 36 Lenormand cards */

.lesson-card-entry {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  margin: 0 0 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(215, 197, 160, 0.12);
  border-radius: 5px;
}

.lesson-card-entry:hover {
  border-color: rgba(215, 197, 160, 0.3);
}

.lesson-card-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: #d7c5a0;
  border: 1px solid rgba(215, 197, 160, 0.35);
  border-radius: 50%;
}

.lesson-card-entry h3 {
  margin: 1px 0 7px;
  font-size: 20px;
}

.lesson-card-entry p {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  color: #cfc7bb;
}

.material-content {
  margin-top: 32px;
}

.material-expiry {
  max-width: 820px;
  margin: 50px auto 0;
  padding-top: 20px;
  font-size: 13px;
  opacity: 0.65;
  border-top: 1px solid rgba(215, 197, 160, 0.15);
}

@media (max-width: 700px) {
  .lesson-body {
    margin-top: 32px;
    font-size: 17px;
    line-height: 1.75;
  }

  .lesson-body h2 {
    margin-top: 48px;
    font-size: 25px;
  }

  .lesson-card-entry {
    grid-template-columns: 46px 1fr;
    gap: 13px;
    padding: 15px;
  }

  .lesson-card-number {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}
/* =========================================================
   LENORMAND MUSEUM CARD IMAGES
   ========================================================= */

.lesson-card-entry {
  grid-template-columns: 118px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
}

.lesson-card-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.lesson-card-image {
  display: block;
  width: 108px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.38));
}

.lesson-card-visual .lesson-card-number {
  width: auto;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: #d7c5a0;
  opacity: 0.75;
}

.lesson-card-entry h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.lesson-card-entry p {
  font-size: 16px;
  line-height: 1.7;
}

/* Телефон */

@media (max-width: 700px) {
  .lesson-card-entry {
    grid-template-columns: 86px 1fr;
    gap: 16px;
    padding: 16px;
    align-items: start;
  }

  .lesson-card-image {
    width: 82px;
  }

  .lesson-card-entry h3 {
    font-size: 19px;
  }

  .lesson-card-entry p {
    font-size: 15px;
    line-height: 1.6;
  }

  .lesson-card-visual .lesson-card-number {
    font-size: 11px;
  }
}
/* =========================================================
   LESSON CARDS · HISTORIC GOLD FRAME
   ========================================================= */

.lesson-card-entry {
  grid-template-columns: 128px 1fr;
  gap: 26px;
}

/* Еднакъв формат за всички 36 карти */
.lesson-card-visual {
  position: relative;
  display: block;
  width: 112px;
  height: 171px;
  padding: 5px;
  overflow: hidden;
  background: #d4c39f;

  border: 1px solid #b89a57;

  box-shadow:
    inset 0 0 0 2px #332817,
    inset 0 0 0 3px #806a3c,
    0 10px 24px rgba(0, 0, 0, 0.48);
}

/* Самото музейно изображение */
.lesson-card-image {
  width: 100%;
  height: 100%;
  max-width: none;

  display: block;
  object-fit: cover;
  object-position: center;

  transform: scale(1.055);

  border: 0;
  margin: 0;
}

/* Вътрешна златна линия */
.lesson-card-visual::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  pointer-events: none;

  border: 1px solid #b89a57;

  box-shadow:
    inset 0 0 0 1px rgba(51, 40, 23, 0.9),
    inset 0 0 0 2px rgba(128, 106, 60, 0.85);
}

/* Деликатен старинен отблясък */
.lesson-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background:
    linear-gradient(
      145deg,
      rgba(255, 235, 184, 0.08),
      transparent 32%,
      transparent 72%,
      rgba(40, 28, 12, 0.14)
    );
}

/* Номерът остава в HTML, но не се дублира визуално */
.lesson-card-visual .lesson-card-number {
  display: none;
}

@media (max-width: 700px) {
  .lesson-card-entry {
    grid-template-columns: 96px 1fr;
    gap: 17px;
  }

  .lesson-card-visual {
    width: 88px;
    height: 135px;
    padding: 4px;
  }

  .lesson-card-visual::before {
    inset: 6px;
  }
}

/* Lesson content typography */

.lesson-subheading {
  margin: 2.1em 0 .75em;
  padding-bottom: .35em;
  color: #d7bd83;
  font-size: 1.18em;
  line-height: 1.35;
  font-weight: 700;
  border-bottom: 1px solid rgba(184, 154, 87, .35);
}

.lesson-card-title {
  margin: 2.6em 0 1em;
  padding-bottom: .45em;
  color: #d7bd83;
  font-size: 1.45em;
  line-height: 1.3;
  font-weight: 700;
  border-bottom: 1px solid rgba(184, 154, 87, .55);
}

/* LENORMAND CARD COMBINATIONS */

.lesson-card-combination {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 1.2em 0 2em;
}

.lesson-card-combination .lesson-card {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}

/* 2–3 карти */
.lesson-card-combination[data-count="2"] .lesson-card-visual,
.lesson-card-combination[data-count="3"] .lesson-card-visual {
  width: 112px;
  height: 171px;
}

/* 4–5 карти */
.lesson-card-combination[data-count="4"] .lesson-card-visual,
.lesson-card-combination[data-count="5"] .lesson-card-visual {
  width: 96px;
  height: 147px;
}

/* Телефон */
@media (max-width: 700px) {

  .lesson-card-combination {
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .lesson-card-combination[data-count="2"] .lesson-card-visual,
  .lesson-card-combination[data-count="3"] .lesson-card-visual {
    width: 88px;
    height: 135px;
  }

  .lesson-card-combination[data-count="4"] .lesson-card-visual,
  .lesson-card-combination[data-count="5"] .lesson-card-visual {
    width: 72px;
    height: 110px;
  }
}



/* SECRET & SYMBOLS - FINAL TYPOGRAPHY */
body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
}

.library-hero h1,
.library-card h2,
.lesson-body h2,
.lesson-body h3,
.lesson-card-entry h3,
.lesson-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
}

.library-hero p,
.library-card p,
.lesson-body p,
.lesson-body li {
  font-size: 18px;
  line-height: 1.65;
}

/* SECRET & SYMBOLS - CATALOG READABILITY */
.library-card p,
.lesson-card-entry p {
  font-size: 17px;
  line-height: 1.65;
}

/* SECRET & SYMBOLS - COMPACT MOBILE NAV */
@media (max-width: 760px) {
  header .nav {
    gap: 12px;
    padding: 12px 0;
    min-height: 0;
  }

  header .brand {
    font-size: 17px;
  }

  header .links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 11px;
    line-height: 1.5;
  }
}
/* SECRET & SYMBOLS - LIBRARY MOBILE MENU */
.mobile-nav-toggle { display: none; }
@media (max-width: 760px) {
  header .nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    min-height: 0;
  }
  header .brand { font-size: 16px; }
  header .brand small { font-size: 8px; }
  header .mobile-nav-toggle {
    display: block;
    background: none;
    border: 1px solid #C1A675;
    border-radius: 5px;
    color: #C1A675;
    font-size: 23px;
    padding: 4px 11px;
    cursor: pointer;
  }
  header .links { display: none; width: 100%; }
  header .links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 16px;
  }
  header .links.is-open a,
  header .links.is-open .dropbtn {
    padding: 7px 0;
  }
  header .dropdown .menu {
    position: static;
    box-shadow: none;
  }
}
/* Hide mobile scrollbar without disabling scrolling */
@media (max-width:760px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
}