:root {
  --rose: #A37781;
  --brick: #8C310E;
  --orange: #D34E0D;
  --oxblood: #571003;
  --espresso: #220705;
  --gold: #EDB525;
  --ochre: #CC7722;
  --bg: var(--oxblood);
  /* default page background = oxblood */
  --text: #fff;
  --muted: #E9DAD2;
  --accent: var(--gold);
  --gap: 16px;
  --maxw: 1200px;
}

/* 1) Register the font properly */
@font-face {
  font-family: 'Zara';
  src:
    url('../fonts/Zara-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Garamondt';
  src: url('../fonts/._Garamondt-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}


/* base */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--mydict-body-font, 'Garamondt', serif);
  scrollbar-gutter: stable;
}

body {
  color: var(--text);
  background: var(--bg);
  line-height: 1.45
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

/* =================
   HEADER (corners)
   ================= */

h1,
.subscribe-title,
.watch-trailer-btn {
  font-family: var(--mydict-heading-font, 'Zara', serif);
  /* <- главное изменение */
  font-weight: 400;
  font-style: normal;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
}

.top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 60px);
  /* pushes items to corners with edge padding */
}

.brand-img {
  width: clamp(90px, 12vw, 180px);
  ;
  height: auto;
}

.br-lang-item.br-lang--active {
  background: #ffb400;
  border-color: #ffb400;
  color: #000;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.social-list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

#br-flag {
  height: 28px;
}

.social-list img {
  height: 48px;
  width: auto;
  opacity: .95;
  transition: opacity .2s
}

.social-list a:hover img {
  opacity: 1
}

/* bigger on desktop */
@media (min-width:768px) {
  .top-bar {
    padding: 24px 60px;
  }

  .brand-img {
    height: 140px;
  }

  #br-flag {
    height: 40px;
  }

  .social-list img {
    height: 48px;
  }
}

/* keep content below fixed header */
.site-content {
  padding-top: 80px;
}

@media (min-width:1024px) {
  .site-content {
    padding-top: 110px;
  }
}

/* =================
   HERO (simple bg)
   ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.png') center/cover no-repeat;
  z-index: 0;
}

/* Lisa konteineri padjad ja max-laius, et servast eemale hoida */
.hero-inner.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 16px;
  /* vältib serva “kallistamist” */
  position: relative;
  z-index: 1;
  transform: translateY(-70%);
  /* ainult vertikaalne nihutus */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* keskendab eyebrow + hero-titles ploki */
}

/* Pealkirjaplokk: laiuseks võtab suurima lapse laiuse, ise keskel */
.hero-titles {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  /* paneb title + subtitle parema serva järgi */
  gap: 6px;
  margin: 0 auto;
  /* KESKEL konteineris */

}

/* Tipograafia jääb samaks */
.title {
  font-size: clamp(36px, 8vw, 75px);
  margin: .2em 0 0;
}

.subtitle {
  letter-spacing: .12em;
  font-size: clamp(16px, 3.2vw, 20px);
  color: var(--muted);
  margin: 0 0 8px;
}


.hero-platforms {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
}

.available-on {
  color: var(--muted);
  font-size: clamp(6px, 3.2vw, 16px);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 40px;
}

/* Ikoonide rida + wrap */
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 18px;
  row-gap: 12px;
  margin-inline: auto;
  margin-block: 20px;
  max-width: min(92vw, 980px);
}

.platform {
  position: relative;
  flex: 0 0 auto;
  /* резервируем место под подпись, чтобы общая высота блока была стабильной */
  padding-bottom: 26px;
}

.platform img {
  height: 56px;
  width: auto;
  opacity: .9;
  transition: transform .25s ease, opacity .25s ease;
  display: block;
  cursor: pointer;
}

.platform:hover img {
  transform: scale(1.1);
  opacity: 1;
}

/* подпись не участвует в layout -> ничего не двигает */
.platform-label {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;

  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose);

  white-space: nowrap;
  pointer-events: none;

  transition: opacity .2s ease, transform .2s ease;
}

.platform:hover .platform-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Väga väikesed ekraanid */
@media (max-width: 479px) {
  .platform img {
    height: 48px;
  }

  .platforms-heading {
    font-size: 1rem;
  }
}

/* Tahvlid+ */
@media (min-width: 768px) {
  .platform img {
    height: 56px;
  }
}

/* Explore */
.explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .5);
  padding: 10px 14px;
  border-radius: 999px;
}

.explore img {
  width: 16px;
  height: 16px;
  opacity: .85
}

/* space above and below gallery section */
.gallery {
  padding-top: 60px;
  /* gap from hero */
  padding-bottom: 60px;
  /* bottom breathing space */
}

/* grid spacing + side padding */
.grid-6 {
  display: grid;
  gap: 24px;
  /* horizontal + vertical gap between pictures */
  grid-template-columns: 1fr;
  padding-inline: 16px;
  /* extra side padding inside the grid */
}

/* on desktop: 3 columns and more side padding */
@media (min-width:768px) {
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
    padding-inline: 40px;
    /* nice horizontal padding */
  }
}

/* style each shot */
.shot {
  margin: 0;
  border-radius: 0px;
  /* optional rounded corners */
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* Lead block section */
.lead-block {
  background: var(--bg);
  /* same oxblood or espresso background */
  padding-bottom: 40px;
  text-align: center;
}

.lead-block .container {
  max-width: 800px;
  margin-inline: auto;
}

.lead-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-family: var(--mydict-heading-font, 'Zara', serif);
  /* larger max font */
  line-height: 1.3;
  /* more vertical breathing */
  margin-bottom: 30px;
  /* more space below heading */
  color: var(--text);
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lead-subtext {
  font-size: 1rem;
  line-height: 1.7;
  /* more line spacing */
  margin-bottom: 40px;
  /* more gap before button */
  color: var(--muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}


/* Watch trailer button */
.watch-trailer-btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 8px;
}

.watch-trailer-btn:hover {
  background: var(--ochre);
}

@media (min-width:768px) {
  .lead-block {
    padding-bottom: 60px;
  }

  .watch-trailer-btn {
    padding: 18px 40px;
    /* bigger on desktop */
    font-size: 1.1rem;
    /* bigger text */
    border-radius: 10px;
  }

  .lead-subtext {
    font-size: 1.25rem;
  }
}

/* Container utility for consistent side padding & max width */
.monkey-section {
  background: var(--bg);
  padding-block: 60px;
}

.monkey-section .container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 16px;
  /* same edge padding as the rest */
}

@media (min-width: 768px) {
  .monkey-section .container {
    padding-inline: 40px;
  }
}

/* Grid: stack on mobile, two columns on desktop */
.monkey-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* stacked by default */
  gap: 24px;
  align-items: center;
}

@media (min-width: 1024px) {
  .monkey-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
  }

  .model-col {
    min-height: 60vh;
  }
}

/* Model viewer gets full width; container padding now prevents edge touching */
model-viewer {
  display: block;
  width: 100%;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  border-radius: 14px;
  overflow: hidden;
}

/* Typography — match sizes to your lead section */
.monkey-title {
  margin: 0 0 50px;
  font-size: clamp(28px, 4vw, 42px);
  /* = .lead-heading */
  line-height: 1.3;
  font-family: var(--mydict-heading-font, 'Zara', serif);
  font-weight: 400;
}

.monkey-lead {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 1.25rem;
  /* = .lead-subtext */

}



@media (min-width:768px) {
  .monkey-lead {
    font-size: 1.5rem;
  }

  /* = .lead-subtext desktop */
}

.monkey-points {
  color: var(--muted);
  margin: 0;
  padding-left: 1.1em;
  line-height: 1.6;
  font-size: 1rem;
}

@media (min-width:768px) {
  .monkey-points {
    font-size: 1.05rem;
  }
}

/* Center the text column only when stacked (mobile/tablet) */
@media (max-width: 1023px) {
  .text-col {
    text-align: center;
  }

  .monkey-title,
  .monkey-lead {
    margin-left: auto;
    margin-right: auto;
  }

  /* keep bullets readable: center the block, but left-align bullets themselves */
  .monkey-points {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-titles {
    align-items: center;
  }
}

/* Section wrapper */
.feature-rows {
  padding-block: 40px;
}

/* Each row is a single rectangle with a bg image */
.feature-row {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 240px;
  /* mobile height */
  margin-bottom: 18px;
  margin-inline: 16px;
  /* gap between rows */
  background: var(--img) center/cover no-repeat;
}

/* Dark gradient overlay for readability (left heavier) */
.feature-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, .65) 0%,
      rgba(0, 0, 0, .45) 45%,
      rgba(0, 0, 0, .15) 85%,
      rgba(0, 0, 0, 0) 100%);
}

/* Content: left aligned, vertically centered */
.feature-row__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 20px 22px;
  /* mobile padding */
  max-width: 920px;
  /* keep text column readable */
}

/* Typography */
.feature-row__title {
  margin: 0 0 8px;
  color: #fff;
  /* font-weight: 800; */
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(18px, 3.2vw, 28px);
  font-family: var(--mydict-heading-font, 'Zara', serif);
  font-weight: 400;
}

.feature-row__text {
  margin: 0;
  color: #e9e1dc;
  /* soft light */
  line-height: 1.6;
  font-size: clamp(14px, 2vw, 17px);
}

/* Desktop: taller rows & more padding */
@media (min-width:1024px) {
  .feature-row {
    min-height: 280px;
    margin-bottom: 22px;
    margin-inline: 40px;
  }

  .feature-row__content {
    padding: 32px 36px;
  }

  .feature-row__title {
    font-size: 32px;
  }

  .feature-row__text {
    font-size: 18px;
  }
}

/* Section wrapper */
.subscribe-section {
  background: var(--bg);
  /* your site background (oxblood/espresso) */
  padding-block: 60px;
}

/* Outer box */
.subscribe-box {
  background: var(--gold);
  /* or var(--ochre) or transparent if you want */
  border-radius: 14px;
  padding: 30px 20px;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  color: #000;
}

/* Heading + text */
.subscribe-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  /* font-weight: 700; */
  font-family: var(--mydict-heading-font, 'Zara', serif);
}

.subscribe-text {
  margin: 0 0 24px;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
  color: #000;
  /* FIX: varem oli color: var(#000); */
}

/* Form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  padding-bottom: 25px;
}

/* Email input */
.subscribe-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #000;
}

/* Checkbox label */
.subscribe-agree {
  font-size: .85rem;
  color: #000;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}

/* Button */
.subscribe-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 25px 50px;
  /* margin-right: 20px; */
  background-color: var(--gold);
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--gold);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .2s ease;
  margin: auto;
  width: 253px;
  height: 46px;
  font-family: var(--mydict-body-font, 'Garamondt', serif);

}

.subscribe-btn:hover {
  background-color: #571003;
  color: white;
}

/* 
.subscribe-btn::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("/wp-content/themes/3009viimane/assets/images/Sulud2.png");
  background-repeat: no-repeat;
  background-position: center;


  background-size: 120% auto;          

  opacity: 0.9;                      
  z-index: 0;
  pointer-events: none;

  transition: transform .2s ease, opacity .2s ease;
}


.subscribe-btn > * {
  position: relative;
  z-index: 1;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
}

.subscribe-btn:hover::before {
  transform: scale(1.05);              
  opacity: 1;
} */

/* Desktop layout improvements */
@media (min-width:768px) {
  .subscribe-box {
    padding: 40px 50px;
  }

  .subscribe-form {
    gap: 20px;
    padding-bottom: 25px;
  }
}


/* Footer base */
.site-footer {
  background: #000;
  color: #fff
}

.footer-inner {
  max-width: 1000px;
  margin: auto;
  padding: 28px 16px 56px;
  text-align: center
}

/* Footer logo */
.footer-title {
  margin: auto;
  padding: 0 0 28px;
  /* väiksem allserva padding */
  display: inline-block;
  max-width: 240px;
  /* vali sobiv suurus */
  height: auto;
}

.footer-title img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card */
.footer-card {
  width: min(560px, 92vw);
  margin-inline: auto;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

/* Social row */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 6px 0 10px;
  padding: 0;
  list-style: none
}

.footer-social img {
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
  opacity: .95;
  transition: transform .15s, opacity .15s
}

.footer-social a:hover img {
  transform: translateY(-1px) scale(1.06);
  opacity: 1
}

/* Divider line inside card */
.footer-hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  margin: 10px 0 12px
}

/* CTAs */
.footer-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--gold);
  transition: transform .15s, --bg .15s, border-color .15s;
}

.footer-btn:hover {
  background: #571003;
  border-color: rgba(255, 255, 255, .4);
  color:white;
  transform: translateY(-1px)
}

/* Legal */
.footer-legal {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 18px
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: .9
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline
}

.footer-trademark {
  opacity: .75;
  max-width: 680px;
  line-height: 1.4
}

.footer-copy {
  opacity: .85
}

/* Desktop layout polish */
@media (min-width:1024px) {
  .footer-inner {
    padding: 32px 20px 72px
  }

  .footer-card {
    padding: 20px
  }

  .footer-social img {
    height: 34px
  }

  .footer-legal {
    grid-template-columns: 1fr 1fr 1fr;
    /* links | trademark | copy (last) */
    align-items: center;
    column-gap: 16px;
    text-align: left
  }

  .footer-links {
    justify-self: start
  }

  .footer-trademark {
    justify-self: center;
    text-align: center
  }

  .footer-copy {
    justify-self: end;
    text-align: right
  }
}

.three-debug {
  padding-block: 60px;
}

.three-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 60vh;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .1);
}

#three-slot canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.three-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  font-weight: 600;
  z-index: 2;
}





/*.br-lang-switcher {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    gap: 6px;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    margin: 10px 0 20px;*/
/*    font-family: inherit;*/
/*}*/

/*.br-lang-item {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    padding: 6px 10px;*/
/*    border-radius: 999px;*/
/*    border: 1px solid rgba(255, 255, 255, 0.3);*/
/*    background: rgba(255, 255, 255, 0.08);*/
/*    text-decoration: none;*/
/*    font-size: 13px;*/
/*    line-height: 1.2;*/
/*    cursor: pointer;*/
/*    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;*/
/*    color: #ffffff; !* если шапка тёмная, для светлой поменяй на #222 *!*/
/*    backdrop-filter: blur(6px);*/
/*}*/

/*.br-lang-item:hover {*/
/*    transform: translateY(-1px);*/
/*    box-shadow: 0 2px 6px rgba(0,0,0,0.15);*/
/*    background: rgba(255, 255, 255, 0.16);*/
/*}*/

/*.br-lang-item.is-active {*/
/*    background: #ffb400;           !* здесь можешь поставить свой брендовый цвет *!*/
/*    border-color: #ffb400;*/
/*    color: #000;*/
/*    font-weight: 600;*/
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.25);*/
/*}*/

/*@media (max-width: 600px) {*/
/*    .br-lang-switcher {*/
/*        justify-content: flex-start;*/
/*    }*/
/*    .br-lang-item {*/
/*        font-size: 12px;*/
/*        padding: 4px 8px;*/
/*    }*/
/*}*/

.br-lang-dd {
  position: relative;
  display: inline-block;
  font-family: system-ui, sans-serif;
}

/* КНОПКА */
.br-lang-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* чтобы центр был реальным центром */
  gap: 0;
  width: 100px;
  /* задай фикс, чтобы центр не “плавал” */
  height: 100px;
  padding: 0;

  border: 0;
  /* если нужна рамка — добавим отдельно */
  background: transparent;
  /* полностью прозрачная кнопка */
  cursor: pointer;

  color: #E9DAD2;
  padding-left: 10px;
}

/* центральная картинка внутри кнопки (как слой) */
.br-lang-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/wp-content/themes/3009viimane/assets/images/empty.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* contain, чтобы не обрезало */
  pointer-events: none;
  opacity: 1;
  /* если нужно полупрозрачно — поставь 0.6 */
}

/* флаг поверх фоновой картинки */
.br-flag,
.br-lang-flag {
  position: relative;
  z-index: 1;
}

.br-flag {
  width: 22px;
  height: 22px;
  display: block;
}

/* МЕНЮ: ВАЖНО — скрыто по умолчанию */
.br-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);

  background: rgba(43, 40, 40, 0.99);
  color: #fff;
  /* НЕ "white" в кавычках */
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);

  display: none;
  /* ключевое */
  z-index: 9999;
}

/* открыто */
.br-lang-dd.is-open .br-lang-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.br-lang-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.br-lang-item:hover {
  background: rgba(255, 255, 255, .08);
}

.br-lang-item.is-active {
  background: rgba(255, 255, 255, .12);
}

@media (max-width: 767px) {
  .br-lang-btn {
    width: 80px;
    height: 80px;
    padding-left: 7px;
  }
}

/* --- FIX: чтобы страница не "прыгала" при появлении/исчезновении скроллбара --- */
html {
  scrollbar-gutter: stable;
}

/* Если в каком-то браузере все равно дергается — включи вместо scrollbar-gutter:
html { overflow-y: scroll; }
*/

/* ======================
   DESKTOP NAV (default)
   ====================== */

.main-nav {
  flex: 1;                 /* растягивает меню между лого и языком */
  padding-left: 50px;
}

.main-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu a {
  color: #A37781;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  position: relative;
  font-family: var(--mydict-heading-font, 'Zara', serif);
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}

.main-menu a:hover::after,
.main-menu a[aria-current="page"]::after {
  width: 100%;
}

/* =========================
   MOBILE NAV (hamburger)
   ========================= */

.nav-toggle {
  display: none;           /* на десктопе скрыта */
  width: 75px;
  height: 75px;
  padding: 0;
  margin: 0;

  background: transparent;
  border: 0;
  box-shadow: none;

  cursor: pointer;
  line-height: 0;
  vertical-align: middle;

  /* ИКОНКА */
  background-image: url("/wp-content/themes/3009viimane/assets/images/arrow_down.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50px 50px;
}

/* Полоски не нужны, если используешь картинку */
.nav-toggle__bar { display: none; }

/* язык: как у тебя */
@media (max-width: 767px) {
  .br-lang-btn {
    width: 80px;
    height: 80px;
    padding-left: 7px;
  }
}

/* ====== MOBILE LAYOUT ====== */
@media (max-width: 920px) {

  /* 1) В хедере меню не "тянем" и не даем ему влиять на раскладку */
  .main-nav {
    flex: 0 0 auto;
    padding-left: 0;
  }

  /* 2) Кнопка всегда на одном месте (главный фикс от визуальных дерганий) */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;


  }

  /* 3) Горизонтальное меню скрыто по умолчанию */
  .main-nav .main-menu {
    display: none;
  }

  /* 4) Оверлей */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9998;
  }

  /* 5) Выпадающее меню (фиксируем именно UL, а не NAV) */
  body.nav-open .main-nav .main-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;

    position: fixed;
    top: 120px;           
    left: 16px;
    right: 16px;

    background: rgba(34, 7, 5, 0.96);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    padding: 20px;

    z-index: 10000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }

  body.nav-open .main-nav .main-menu a {
    font-size: 1.2rem;
    border-radius: 12px;
    color: #E9DAD2;
  
    padding: 10px 12px;
  }

  body.nav-open .main-nav .main-menu a:hover {
    background: rgba(255, 255, 255, .10);
  }

  /* подстройки шапки */
  .top-bar {
    gap: 12px;
  }

  .brand-img {
    width: clamp(80px, 22vw, 140px);
  }

  .br-lang-btn {
    width: 72px;
    height: 72px;
  }

  .site-header {
    z-index: 10001; /* выше контента */
  }
}
