
/* ===== Clean layout: equal widths, adaptive, compact images ===== */
:root{
  --bg:#0f172a;
  --text:#ffffff;
  --border:#e5e7eb;
}

html,body{background:var(--bg);color:var(--text)}

.container{max-width:1220px;margin-inline:auto;padding-inline:clamp(16px,5vw,40px)}

main{display:grid;gap:clamp(16px,2vw,32px);padding-block:clamp(12px,2vw,24px); padding: 20px 20px;}
.section{padding:clamp(16px,2vw,24px);border:1px solid var(--border);border-radius:16px;background:#262626}

/* hero: equal columns */
.hero--equal .grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:clamp(16px,2.4vw,32px);
}
.hero--equal img{
  width:100%;max-width:560px;aspect-ratio:4/3;object-fit:cover;
  border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.20);justify-self:center;
}
@media (max-width:900px){
  .hero--equal .grid{grid-template-columns:1fr}
  .hero--equal img{max-width:420px}
}

/* equal cards */
.cards{display:grid;gap:clamp(12px,1.8vw,24px)}
.cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.cards--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.cards--3{grid-template-columns:1fr}}
.card{
  display:flex;align-items:center;justify-content:flex-start;
  min-height:120px;height:100%;padding:18px 20px;
  border:1px solid var(--border);border-radius:14px;background:#262626;
}

/* compact headlines */
.hero h1{font-size:clamp(24px,3.6vw,40px);line-height:1.2;margin:0 0 .4em}
.hero p{margin:.4em 0}

/* fix global img rules from old CSS */
:where(main) img{max-width:100%;height:auto}

/* ==== Burger visibility by breakpoint ==== */
@media (min-width: 992px){
  .redbunya_burger{ display:none !important; }
  .redbunya_header__menu{
    position:static; width:auto; height:auto; padding:0;
    background:transparent; opacity:1; visibility:visible; pointer-events:auto;
  }
}
@media (max-width: 991px){
  .redbunya_burger{
    display:flex; flex-direction:column; justify-content:space-between;
    width:30px; height:18px; background:transparent; border:0;
  }
  .redbunya_burger span{
    display:block; width:100%; height:2px; background:#fff; border-radius:8px;
    transition:transform .2s ease, opacity .2s ease;
    transform-origin:8px 1px;
  }

  .redbunya_header__menu{
    position:fixed; inset:0; display:flex; flex-direction:column;
    padding:100px 30px 30px; background:#1d1d1d; z-index:100;
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .2s ease, visibility .2s ease;
  }
  .redbunya_header__menu.active{
    opacity:1; visibility:visible; pointer-events:auto; /* фикс: было 'visible' */
  }

  .redbunya_header__exit-menu{
    position:absolute; top:30px; right:30px; width:30px; height:30px; background:transparent; border:0;
  }
  .redbunya_header__exit-menu::before,
  .redbunya_header__exit-menu::after{
    content:""; position:absolute; left:0; top:14px; width:100%; height:2px; background:#fff;
  }
  .redbunya_header__exit-menu::before{ transform:rotate(45deg); }
  .redbunya_header__exit-menu::after{ transform:rotate(-45deg); }

  /* анимация "крестика" у самого бургера */
  .redbunya_header.is-open .redbunya_burger span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .redbunya_header.is-open .redbunya_burger span:nth-child(2){ opacity:0; }
  .redbunya_header.is-open .redbunya_burger span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
}

/* блокировка скролла при открытом меню */
html.is-locked, body.is-locked { overflow:hidden; }

.cards--3{
  padding-top: 20px;
}