:root{
    --brand:#520a0d;
    --paper:#f7f5f2;
    --ink:#1b1b1b
}

*{
    box-sizing:border-box
}

html{
    scroll-behavior:smooth
}

body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:"Poppins",sans-serif
}


/* =========================================================
   MENIU SECUNDAR - DESKTOP
   ========================================================= */

.ru-secondary-nav{
    position:relative;
    min-height:185px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    background:linear-gradient(
        180deg,
        rgba(15,10,7,.90),
        rgba(35,29,26,.58) 60%,
        rgba(40,35,32,.56)
    )
}

.ru-secondary-nav .nav{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    padding:14px 28px;
    background:rgba(0,0,0,.36);
    backdrop-filter:saturate(140%) blur(8px);
    border-bottom:1px solid rgba(255,255,255,.2)
}

.ru-secondary-nav .left,
.ru-secondary-nav .right{
    display:flex;
    gap:24px;
    align-items:center
}

.ru-secondary-nav .right{
    justify-content:flex-end
}

.ru-secondary-nav .link{
    font-size:13px;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:#fff;
    text-decoration:none;
    white-space:nowrap
}

.ru-secondary-nav .logo{
    text-align:center;
    text-decoration:none
}

.ru-secondary-nav .logo img{
    height:clamp(90px,9vw,140px);
    max-height:140px;
    width:auto;
    display:block;
    margin:auto;
    filter:drop-shadow(0 2px 10px rgba(0,0,0,.35))
}

.ru-secondary-nav .stars{
    color:gold;
    letter-spacing:3px;
    font-family:"Cinzel",serif;
    text-align:center;
    margin-top:8px
}

.ru-secondary-nav .book{
    background:var(--brand);
    padding:10px 16px;
    border-radius:999px
}


/* =========================================================
   SELECTOR LIMBI
   ========================================================= */

.ru-lang-switch{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 8px
}

.ru-lang{
    min-width:70px;
    height:38px;
    padding:0 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:1px solid rgba(255,255,255,.48);
    border-radius:999px;
    color:#fff;
    text-decoration:none;
    font:700 12px/1 Arial,sans-serif;
    background:rgba(0,0,0,.16)
}

.ru-lang.active,
.ru-lang:hover{
    background:#fff;
    color:#4a242b
}

.ru-flag{
    position:relative;
    display:inline-block;
    width:24px;
    height:16px;
    flex:0 0 24px;
    overflow:hidden;
    border-radius:2px;
    box-shadow:0 0 0 1px rgba(0,0,0,.12);
    background:#fff
}

.ru-flag-ro{
    background:linear-gradient(
        90deg,
        #002B7F 0 33.333%,
        #FCD116 33.333% 66.666%,
        #CE1126 66.666% 100%
    )
}

.ru-flag-fr{
    background:linear-gradient(
        90deg,
        #0055A4 0 33.333%,
        #fff 33.333% 66.666%,
        #EF4135 66.666% 100%
    )
}

.ru-flag-gb{
    background:#012169
}

.ru-flag-gb:before,
.ru-flag-gb:after{
    content:"";
    position:absolute;
    inset:0
}

.ru-flag-gb:before{
    background:
        linear-gradient(
            33deg,
            transparent 43%,
            #fff 43% 49%,
            #C8102E 49% 53%,
            #fff 53% 59%,
            transparent 59%
        ),
        linear-gradient(
            -33deg,
            transparent 43%,
            #fff 43% 49%,
            #C8102E 49% 53%,
            #fff 53% 59%,
            transparent 59%
        )
}

.ru-flag-gb:after{
    background:
        linear-gradient(
            90deg,
            transparent 39%,
            #fff 39% 45%,
            #C8102E 45% 55%,
            #fff 55% 61%,
            transparent 61%
        ),
        linear-gradient(
            0deg,
            transparent 35%,
            #fff 35% 42%,
            #C8102E 42% 58%,
            #fff 58% 65%,
            transparent 65%
        )
}


/* =========================================================
   MOBIL - ASCUNS PE DESKTOP
   ========================================================= */

.ru-mobile-head,
.ru-mobile-menu{
    display:none
}


/* =========================================================
   DESKTOP / LAPTOP 1251 - 1600
   NEMODIFICAT
   ========================================================= */

@media(min-width:1251px) and (max-width:1600px){

    .ru-secondary-nav .nav{
        padding-left:16px;
        padding-right:16px
    }

    .ru-secondary-nav .left,
    .ru-secondary-nav .right{
        gap:12px
    }

    .ru-secondary-nav .link{
        font-size:10.5px;
        letter-spacing:.09em
    }

    .ru-secondary-nav .book{
        padding:9px 12px
    }

    .ru-secondary-nav .logo img{
        height:96px
    }

    .ru-secondary-nav .ru-lang-switch{
        gap:4px;
        margin:0 4px
    }

    .ru-secondary-nav .ru-lang{
        min-width:54px;
        height:34px;
        padding:0 7px;
        gap:5px;
        font-size:10px
    }

    .ru-secondary-nav .ru-flag{
        width:20px;
        height:14px;
        flex-basis:20px
    }
}


/* =========================================================
   TABLETA + MOBIL
   ========================================================= */

@media(max-width:1250px){

    /*
     * Singura modificare importanta:
     * zona de sus este mai mica pe mobil.
     */
    .ru-secondary-nav{
        min-height:105px
    }

    .ru-secondary-nav .nav{
        display:none
    }

    .ru-mobile-head{
        position:fixed;
        top:0;
        left:0;
        right:0;
        z-index:1100;

        height:92px;

        display:grid;
        grid-template-columns:58px 1fr auto;
        align-items:center;

        padding:7px 10px;

        background:rgba(10,10,10,.86);
        backdrop-filter:blur(10px);

        border-bottom:1px solid rgba(255,255,255,.14)
    }

    .ru-mobile-toggle{
        width:38px;
        height:28px;

        border:0;
        background:transparent;

        padding:0;

        display:flex;
        flex-direction:column;
        justify-content:space-between;

        cursor:pointer;

        margin-left:8px
    }

    .ru-mobile-toggle span{
        display:block;

        height:3px;
        width:100%;

        background:#fff;

        border-radius:2px;

        transition:.2s
    }

    .ru-mobile-toggle.open span:nth-child(1){
        transform:translateY(12.5px) rotate(45deg)
    }

    .ru-mobile-toggle.open span:nth-child(2){
        opacity:0
    }

    .ru-mobile-toggle.open span:nth-child(3){
        transform:translateY(-12.5px) rotate(-45deg)
    }


    /* LOGO MOBIL */

    .ru-mobile-logo{
        justify-self:center;

        display:flex;
        flex-direction:column;
        align-items:center;

        text-decoration:none
    }

    .ru-mobile-logo img{
        height:60px;
        width:auto
    }

    .ru-mobile-logo span{
        color:gold;

        letter-spacing:2px;

        font-family:"Cinzel",serif;

        font-size:10px;

        margin-top:-4px
    }


    /* =====================================================
       SELECTOR LIMBI MOBIL
       ===================================================== */

    .ru-mobile-lang .ru-lang-switch{
        margin:0;
        gap:6px;

        display:flex;
        align-items:center;

        white-space:nowrap
    }

    .ru-mobile-lang .ru-lang{
        min-width:64px;
        height:36px;

        padding:0 9px;

        gap:6px;

        font-size:11px;

        display:inline-flex;
        align-items:center;
        justify-content:center
    }

    .ru-mobile-lang .ru-flag{
        width:22px;
        height:15px;
        flex-basis:22px
    }


    /* =====================================================
       MENIU MOBIL DESCHIS
       ===================================================== */

    .ru-mobile-menu{
        position:fixed;

        top:92px;
        left:0;
        right:0;

        z-index:1099;

        display:flex;
        flex-direction:column;

        background:rgba(10,10,10,.95);

        border-bottom:1px solid rgba(255,255,255,.15);

        transform:translateY(-130%);

        opacity:0;

        pointer-events:none;

        transition:
            transform .28s ease,
            opacity .2s ease;

        max-height:calc(100vh - 92px);

        overflow:auto;

        box-shadow:0 18px 35px rgba(0,0,0,.32)
    }

    .ru-mobile-menu.open{
        transform:translateY(0);
        opacity:1;
        pointer-events:auto
    }

    .ru-mobile-menu a{
        color:#fff;

        text-decoration:none;

        padding:14px 16px;

        font-family:"Poppins",sans-serif;

        font-size:13px;
        font-weight:500;

        line-height:1.35;

        text-transform:uppercase;

        letter-spacing:.12em;

        border-bottom:1px solid rgba(255,255,255,.08);

        text-align:left
    }

    .ru-mobile-menu a:last-child{
        border-bottom:none
    }

    .ru-mobile-menu a.book{
        background:var(--brand);

        border-radius:10px;

        text-align:center;

        margin:8px 16px;

        padding:14px 16px;

        border:0
    }
}


/* =========================================================
   TELEFOANE MAX 570px
   ========================================================= */

@media(max-width:570px){

    /*
     * Zona de fundal sub meniul fix este redusa.
     */
    .ru-secondary-nav{
        min-height:92px
    }

    .ru-mobile-head{
        grid-template-columns:46px 1fr auto;

        height:82px;

        padding:6px 8px
    }

    .ru-mobile-toggle{
        width:34px;
        height:25px;

        margin-left:4px
    }

    .ru-mobile-toggle.open span:nth-child(1){
        transform:translateY(11px) rotate(45deg)
    }

    .ru-mobile-toggle.open span:nth-child(3){
        transform:translateY(-11px) rotate(-45deg)
    }

    .ru-mobile-logo img{
        height:52px
    }

    .ru-mobile-menu{
        top:82px;
        max-height:calc(100vh - 82px)
    }

    .ru-mobile-lang .ru-lang-switch{
        gap:4px
    }

    .ru-mobile-lang .ru-lang{
        min-width:58px;
        height:34px;

        padding:0 7px;

        gap:5px;

        font-size:11px
    }

    .ru-mobile-lang .ru-flag{
        width:20px;
        height:14px;

        flex-basis:20px
    }
}


/* =========================================================
   TELEFOANE FOARTE MICI MAX 390px
   ========================================================= */

@media(max-width:390px){

    .ru-secondary-nav{
        min-height:88px
    }

    .ru-mobile-head{
        grid-template-columns:40px 1fr auto;

        padding-left:6px;
        padding-right:6px
    }

    .ru-mobile-logo img{
        height:46px
    }

    .ru-mobile-lang .ru-lang{
        min-width:54px;

        padding:0 5px;

        gap:4px;

        font-size:10px
    }

    .ru-mobile-lang .ru-flag{
        width:18px;
        height:13px;

        flex-basis:18px
    }
}


/* =========================================================
   REZERVARE + LIMBI PE DOUA RANDURI
   ========================================================= */

.ru-secondary-nav .ru-book-stack{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px
}

.ru-secondary-nav .ru-book-stack .ru-lang-switch{
    margin:0
}

@media(max-width:1250px){
    .ru-secondary-nav{min-height:92px}
    .ru-mobile-head{height:92px}
}

@media(max-width:570px){
    .ru-secondary-nav{min-height:82px}
    .ru-mobile-head{height:82px}
}
/* FIX MOBIL: aceeasi inaltime ca meniul de pe index si fara banda gri sub header.
   Desktopul nu este afectat. */
@media(max-width:1250px){
    .ru-secondary-nav{
        min-height:92px;
        height:92px;
        background:transparent;
    }
    .ru-mobile-head{
        height:92px;
    }
}

@media(max-width:570px){
    .ru-secondary-nav{
        min-height:82px;
        height:82px;
        background:transparent;
    }
    .ru-mobile-head{
        height:82px;
    }
}

/* =========================================================
   MENIU MOBIL UNIC - IDENTIC CA STRUCTURA CU INDEX
   Se aplica NUMAI pana la 1250px. Desktopul ramane neatins.
   ========================================================= */
@media(max-width:1250px){
  .ru-secondary-nav{
    min-height:92px !important;
    height:92px !important;
    background:transparent !important;
  }
  .ru-secondary-nav .nav{display:none !important}

  .ru-mobile-head{
    position:fixed !important;
    top:0 !important;left:0 !important;right:0 !important;
    z-index:1100 !important;
    height:92px !important;
    min-height:92px !important;
    display:grid !important;
    grid-template-columns:1fr auto 1fr !important;
    align-items:center !important;
    padding:7px 10px !important;
    background:rgba(10,10,10,.96) !important;
    -webkit-backdrop-filter:saturate(140%) blur(8px) !important;
    backdrop-filter:saturate(140%) blur(8px) !important;
    border-bottom:1px solid rgba(255,255,255,.2) !important;
  }

  .ru-mobile-toggle{
    display:flex !important;
    position:absolute !important;
    left:18px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:38px !important;
    height:28px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    cursor:pointer !important;
    z-index:60 !important;
  }
  .ru-mobile-toggle span{
    display:block !important;
    width:100% !important;
    height:3px !important;
    background:#fff !important;
    border-radius:2px !important;
  }
  .ru-mobile-toggle.open span:nth-child(1){transform:translateY(12.5px) rotate(45deg) !important}
  .ru-mobile-toggle.open span:nth-child(2){opacity:0 !important}
  .ru-mobile-toggle.open span:nth-child(3){transform:translateY(-12.5px) rotate(-45deg) !important}

  .ru-mobile-logo{
    grid-column:2 !important;
    justify-self:center !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    text-decoration:none !important;
  }
  .ru-mobile-logo img{
    height:60px !important;
    max-height:60px !important;
    width:auto !important;
    display:block !important;
  }
  .ru-mobile-logo span{
    color:gold !important;
    font-family:"Cinzel",serif !important;
    font-size:10px !important;
    letter-spacing:2px !important;
    line-height:1 !important;
    margin-top:-4px !important;
  }

  .ru-mobile-lang{
    display:block !important;
    position:absolute !important;
    right:14px !important;
    top:14px !important;
    margin:0 !important;
    z-index:70 !important;
  }
  .ru-mobile-lang .ru-lang-switch{
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    margin:0 !important;
    white-space:nowrap !important;
  }
  .ru-mobile-lang .ru-lang{
    min-width:64px !important;
    height:36px !important;
    padding:0 9px !important;
    gap:6px !important;
    font-size:11px !important;
  }
  .ru-mobile-lang .ru-flag{
    width:22px !important;
    height:15px !important;
    flex-basis:22px !important;
  }

  .ru-mobile-menu{
    top:92px !important;
    max-height:calc(100vh - 92px) !important;
  }
}

@media(max-width:570px){
  .ru-secondary-nav{
    min-height:82px !important;
    height:82px !important;
  }
  .ru-mobile-head{
    height:82px !important;
    min-height:82px !important;
    padding:6px 8px !important;
    grid-template-columns:1fr auto 1fr !important;
  }
  .ru-mobile-logo img{
    height:52px !important;
    max-height:52px !important;
  }
  .ru-mobile-menu{
    top:82px !important;
    max-height:calc(100vh - 82px) !important;
  }
}

@media(max-width:520px){
  .ru-mobile-lang{
    right:10px !important;
    top:10px !important;
  }
  .ru-mobile-lang .ru-lang-switch{gap:4px !important}
  .ru-mobile-lang .ru-lang{
    min-width:58px !important;
    height:34px !important;
    padding:0 7px !important;
    font-size:11px !important;
  }
  .ru-mobile-lang .ru-flag{
    width:20px !important;
    height:14px !important;
    flex-basis:20px !important;
  }
}

@media(max-width:390px){
  .ru-mobile-logo img{
    height:46px !important;
    max-height:46px !important;
  }
}


/* FINAL MOBIL: logo + stele + burger + limbi identic vizual cu Index / Media / Oferte */
@media(max-width:1250px){
  .ru-mobile-head{
    height:92px !important;
    min-height:92px !important;
    padding:7px 10px !important;
    grid-template-columns:1fr auto 1fr !important;
    background:rgba(10,10,10,.96) !important;
    -webkit-backdrop-filter:saturate(140%) blur(8px) !important;
    backdrop-filter:saturate(140%) blur(8px) !important;
    border-bottom:1px solid rgba(255,255,255,.2) !important;
  }
  .ru-mobile-toggle{
    left:18px !important;
    top:50% !important;
    width:38px !important;
    height:28px !important;
    margin:0 !important;
    transform:translateY(-50%) !important;
  }
  .ru-mobile-logo{
    grid-column:2 !important;
    justify-self:center !important;
    align-self:center !important;
    text-align:center !important;
    line-height:1 !important;
  }
  .ru-mobile-logo img{
    height:60px !important;
    max-height:60px !important;
    width:auto !important;
    display:block !important;
    margin:0 auto !important;
    filter:drop-shadow(0 2px 10px rgba(0,0,0,.35)) !important;
    transform:scale(1.02) !important;
  }
  .ru-mobile-logo span{
    display:inline-block !important;
    margin-top:-4px !important;
    font-family:"Cinzel",serif !important;
    font-size:10px !important;
    line-height:1 !important;
    letter-spacing:2px !important;
    color:gold !important;
    text-shadow:0 0 14px rgba(0,0,0,.45) !important;
  }
  .ru-mobile-lang{
    display:block !important;
    position:absolute !important;
    right:14px !important;
    top:14px !important;
    margin:0 !important;
  }
}
@media(max-width:570px){
  .ru-mobile-head{
    height:82px !important;
    min-height:82px !important;
    padding:6px 8px !important;
  }
  .ru-mobile-logo img{height:52px !important;max-height:52px !important}
}
@media(max-width:520px){
  .ru-mobile-lang{right:10px !important;top:10px !important}
}
@media(max-width:390px){
  .ru-mobile-logo img{height:46px !important;max-height:46px !important}
}
