:root {
    --container-desktop: 1400px;
    --container-tablet: calc(100vw - 80px);
    --container-mobile: calc(100vw - 32px);
    --header-height: 110px;
}

@font-face {
    font-family: 'ZhernovBold';
    src: url('/fonts/Zhernov_Bold.otf') format('opentype');
    font-display: swap;
}

html, body {
    overflow-x: hidden;
}


body > *:not(.hero-bg) {
    position: relative;
    z-index: 1;
}
html, body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 1px;
}
* {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h3 {
    font-family: 'ZhernovBold';
    font-size: 24px;
}

.hero-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-image 0.6s cubic-bezier(.5,.02,0,1);
}


.anoheader {
    display: flex;
    width: var(--container-desktop);
    height: 52px;
    margin: 0 auto;
    align-items: center;
}
.anoheader .left {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    color: #FFFFFF;
    border-right: 1px solid #BFBBA0;
}
.anoheader .center {
    flex: 1 1 0%;
    min-width: 0;
}
.topinfo {
    width: 16px;
    height: 16px;
}
.topleft_string {
    padding: 16px;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
}
.right_link {
    padding: 16px;
    border-left: 1px solid #BFBBA0;
    border-right: 1px solid #BFBBA0;
}
.topnav_link {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
}
.right_social {
    padding-left: 16px;
    padding-right: 16px;
}
.top_socicons {
    padding: 8px;
}

.fullwidth-line {
    border: none;
    border-top: 1px solid #BFBBA0;
    margin: 0;
    margin-top: 1px;
    width: 100vw;
}


/* --- шапка --------------------------------------------------------------- */
.main_header{
    position:relative;
    display:flex;
    width:var(--container-desktop);
    height:109px;
    margin:0 auto;
    align-items:center;
}

/* логотип */
.main_logo img{display:block;}

/* навигация */
.main-nav{
    flex:1 1 0;
    margin:0 48px;
    min-width:0;
}
.main-nav ul{
    display:flex;
    list-style:none;
    margin:0;
    padding:0;
}
.main-nav a{
    display:block;
    padding:16px;
    text-decoration:none;
    color:#fff;
    font-size:16px;
    font-weight:400;
    transition:color .2s;
}
.main-nav a:hover,
.main-nav a:focus{color:#ffd600}

/* иконки справа */
.head_right{display:flex;}
.icon-btn{margin:0 16px;background:none;border:0;cursor:pointer;color:#fff}
.icon-btn img{width:20px;height:20px;display:block}

/* бейдж корзины */
.cart-badge{
    position:absolute;
    right:-12px;bottom:-8px;
    width:24px;height:24px;
    background:#9d9981;color:#000;
    border-radius:50%;font-size:13px;
    display:flex;align-items:center;justify-content:center;
    pointer-events:none;user-select:none;
}

/* --- overlay поиск ------------------------------------------------------- */
.search-overlay{
    position:absolute;left:0;right:0;top:100%;
    height:0;overflow:hidden;
    background:rgba(255,255,255,.96);backdrop-filter:blur(2px);
    display:flex;justify-content:center;align-items:center;
    transition:height .25s ease,padding .25s ease;
    z-index:9;
}
.search-overlay.open{height:80px;padding:16px 0}

.search-form{width:100%;max-width:640px}
#search-input{
    width:100%;padding:18px 28px;font-size:18px;
    border:2px solid #000;outline:none;background:#fff;
}
@media(max-width:900px){#search-input{font-size:16px}}


.head_right{
    display:flex;
    align-items:center;
}

.icon-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    margin:16px;
    padding:0;
    background:none;
    border:none;
    color:#fff;
    cursor:pointer;         /* ← “hand” */
}

.icon-btn img {
    width: 20px;
    height: 20px;
    filter: none;
    transition: filter 0.2s, color 0.2s;
}

/* Основной цвет (если надо) */
.icon-btn img {
    filter: none;
}

/* При наведении меняем цвет SVG */
.icon-btn:hover img,
.icon-btn:focus img {
    filter: brightness(0) saturate(100%) invert(69%) sepia(19%) saturate(517%) hue-rotate(24deg) brightness(96%) contrast(89%);
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* бейдж-количество */
.cart-badge {
    position: absolute;
    right: -5px;     /* подгони под свою иконку */
    bottom: -5px;     /* подгони под свою иконку */
    width: 16px;      /* размер как на скрине */
    height: 16px;
    background: #9d9981;
    color: #222;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    pointer-events: none;
    user-select: none;
    z-index: 3;
}



.home-hero {
    display: flex;
    flex-direction: column;
    width: var(--container-desktop);
    margin: 0 auto;
    color: white;
    position: relative;
    height: 100%;
}

.vertlpos {
    position: relative;
}

.season-label {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transform-origin: 0 0;
    height: 360px;
    top: 500px;
    left: -50px;
    font-family: 'Roboto';
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 3px;
}
.hero-title {
    font-family: 'ZhernovBold';
    font-size: 120px;
    letter-spacing: 0px;
    line-height: 1;
    padding-top: 12px;
}
.hero-slide {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    //gap: 48px;
    position: relative;
    width: var(--container-desktop);
    top: calc((50vh - 200px) / 3);
}

.hero-left, .hero-right {
    min-width: 0;
}
.hero-left {
    flex: 2 1 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 300px;
}
.hero-text {
    width: 451px;
    padding-top: 4vh;
    padding-bottom: 4vh;
    color: #BFBBA0;
}
.btn-primary {
    width: 200px;
    height: 56px;
    background: white;
    color: black;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}
.btn-primary:hover {
    background: #BFBBA0;
}
.btn-review {
    border: 1px solid black;
}
.btn-review:hover {
    border: 1px solid transparent;
}


.new-arrival {
    font-family: 'ZhernovBold';
    font-size: 40px;
    letter-spacing: 0px;
    line-height: 1;
}

.slider-dots {
    position: absolute;   /* важно: absolute, не relative и не fixed */
    bottom: 100px;
    display: flex;
    gap: 16px;
    justify-content: start;   /* или flex-start / flex-end */
    align-items: center;
    z-index: 2;           /* поверх фоновой картинки, но под оверлеями */
    width: 300px;
    //top: 0;
    left: calc(50vw - (var(--container-desktop) / 2));
}


.dot {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    position: relative;
}

.dot::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transition: background 0.2s;
}

/* Активная точка — круг */
.dot.active {
    border: 2px solid #fff;   /* белый круг */
    border-radius: 50%;
}

.dot:focus {
    outline: 1px dashed #2196f3; /* как на твоем скрине — синий пунктир */
    outline-offset: 2px;
}


/*  прячем все .hero-slide, кроме .active  */
.hero-slide           {display:none;}      /* <- скрыты */
.hero-slide.active    {display:flex;}      /* <- показ */


a.allpages {
    color: black;
}

button.allpages {
    color: black;
}

img.allpages {
    color: black;
    /* Для SVG-иконок иногда полезно: */
    filter: brightness(0);
}

object.allpages {
    color: black;
    /* Если SVG поддерживает currentColor */
}

span.allpages {
    color: black;
}

.main_logo.allpages,
.main_logo_img.allpages,
.main_logo_svg.allpages,
.topnav_link.allpages,
.top_socicons.allpages,
.cart-badge.allpages {
    color: black;
}

/* Дополнительно: input в поиске */
input.allpages {
    color: black;
}
.topleft_string.allpages {
    color: black;
}

a.allpages.active {
    font-family: Roboto;
    font-weight: 700;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 1px;
    vertical-align: middle;
    color: #9D9981;
}

.breadcrumbs-bck {
    background: #F8F9FA;
}
.breadcrumbs.allpages {
    display: flex;
    align-items: center;
    width: var(--container-desktop);
    margin: 0 auto;
    height: 82px;
    font-size: 16px;
    letter-spacing: 1px;

}

/* ------ Белый блок-заглушка ------ */
.landing-blank {
    height: 1259px;          /* «чистая» высота самого блока */
    padding: 128px 0;        /* верхний и нижний отступы */
    background: #ffffff;     /* на всякий случай — белый фон */
    width: 100%;
    box-sizing: border-box;  /* чтобы паддинги не прибавлялись к ширине */
}



.shop-wrapper {
    display:flex;
    gap:40px;
    max-width:var(--container-desktop);
    margin: 128px auto 80px;
}



/* ===== Riddle Banner ===== */
.promo-riddle{
    height: 280px;
    background: url('/images/banner_bck.png') center / cover no-repeat; /* внешний PNG-фон */
    display: flex;
    align-items: center;   /* вертикально по центру */
    justify-content: center; /* горизонтально по центру */
    width: 100%;
    box-sizing: border-box;
}

.promo-riddle.gray {
    background: url('/images/bck-gray.png') center / cover no-repeat; /* внешний PNG-фон */
}

.riddle-inner{
    width: var(--container-desktop); /* 1400 px из root-переменной */
    max-width: 100%;                 /* чтобы не вылезло на маленьких экранах */
    height: 152px;
    background: url('/images/bck_2.png') center / cover no-repeat; /* внутренний фон */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.riddle-text{
    font-family: 'ZhernovBold', 'Roboto', sans-serif;
    font-size: 50px;
    letter-spacing: 50px;
    color: #000;
    text-transform: uppercase;
    margin: 0;          /* убрать дефолтный отступ заголовка */
    white-space: nowrap;/* не переносить слова */
}

.riddle-inner-payments {
    width: var(--container-desktop); /* 1400 px из root-переменной */
    max-width: 100%;                 /* чтобы не вылезло на маленьких экранах */
    height: 152px;
    background: #F8F9FA; /* внутренний фон */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap:64px;
}
.riddle-inner-payments img{
    width:90px;
    height:auto;              /* пропорциональное масштабирование */
}


.container-blog {
    width: var(--container-desktop, 1400px);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    margin-top: 40px;
    /* Если нужно, можешь добавить паддинг для мобилок */
}


/*------------------FOOTER---------------------*/

/* ---------- базовый контейнер ---------- */
.site-footer{
    background:#fff;
    padding:128px 0 64px;
    font-size:14px;
    line-height:1.4;
    color:#000;
}
.footer-wrap{
    width:var(--container-desktop);
    max-width:100%;
    margin:0 auto;
}

/* ---------- newsletter ---------- */
.newsletter-title{
    font-family:'ZhernovBold','Roboto',sans-serif;
    font-size:40px;
    text-align:center;
    margin:0 0 48px;
}
.newsletter-form{
    display:flex;
    max-width:640px;
    margin:0 auto 64px;
}
.newsletter-form input{
    width: 428px;
    height: 56px;
    padding:16px 24px;
    border:0;
    background:#f2f2f2;
    font:inherit;
}
.newsletter-form button{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content: center;
    border:0;
    background:#000;
    color:#fff;
    text-transform:uppercase;
    cursor:pointer;
    font-weight:700;
    font-size: 16px;
    width: 220px;
    height: 56px;
    font-size: 16px;
    letter-spacing: 1px;
}

/* ---------- колонки ---------- */
.footer-cols{
    display:flex;
    gap:64px;
    flex-wrap:wrap;
    margin-bottom:64px;
}
.footer-col{
    flex:1 1 200px;
}
.footer-col h3{
    font-weight:700;
    margin:0 0 16px;
}
.footer-col ul{
    list-style:none;
    padding:0;
    margin:0;
}
.footer-col li{
    margin-bottom: 16px;
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 14px;
    color: #968484;
}
.footer-col a{
    color:inherit;
    text-decoration:none;
}
.footer-col h3{
    margin-bottom: 42px;
}
.footer-col a:hover{text-decoration:underline}

/* ---------- разделитель и подвал ---------- */
.footer-divider{
    border:none;
    border-top:1px solid #e0e0e0;
    margin-bottom:24px;
}
.footer-bottom{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:16px;
    font-size:12px;
    font-weight: 400;
    color: #1A1A1A;
}
.footer-bottom div {
    display: flex;
}
.cookie-note {
    color: #968484;
}
.cookie-note a{
    text-decoration:underline;
    color: #4B4DED;
}

/* ---------- BACK TO TOP ---------- */
#back-to-top{
    position:fixed;
    right:24px;
    bottom:120px;
    writing-mode:vertical-rl;
    transform:rotate(180deg);
    background:transparent;
    border:none;
    font-size:16px;
    letter-spacing:1px;
    color:#BFBBA0;
    cursor:pointer;
    opacity:0;
    pointer-events:none;
    transition:opacity .3s;
}
#back-to-top.show{
    opacity:1;
    pointer-events:auto;
}



.favorite-btn {
    position: relative; /* чтобы absolute-позиционирование бейджа работало */
}

.compare-badge {
    position: absolute;
    top: 9px;      /* подгони, чтобы совпадало с корзиной */
    right: -6px;    /* подгони */
    background: #9D9981;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}




/* ---------- адаптив ---------- */
@media (max-width:900px){
    .footer-cols{gap:32px}
    #back-to-top{right:12px}
}





@media (max-width: 1599px) {
    .anoheader {
        width: var(--container-tablet); /* fallback 1136px на случай,
                                                   если переменная вдруг не объявлена */
    }
    .main_header {
        width: var(--container-tablet);
    }
    .home-hero {
        width: var(--container-tablet);
    }
    .hero-slide {
        width: var(--container-tablet);
    }
    .slider-dots {
        left: calc(50vw - (var(--container-tablet) / 2));
    }
    .season-label {
        display: none;
    }
}
@media (max-height: 1000px) {
    .hero-text {
        padding-top: 2vh;
        padding-bottom: 2vh;
    }
    .slider-dots {
        bottom: 80px;
    }
    .hero-slide {
        top: calc((50vh - 200px) / 8);
    }
}@media (max-height: 749px) {
    .hero-title {
        font-size: 100px;
    }
    .hero-text {
        padding-top: 1vh;
        padding-bottom: 1vh;
        font-size: 14px;
    }
    .slider-dots {
        bottom: 60px;
    }
    .hero-slide {
        top: calc((50vh - 200px) / 24);
    }
    .btn-primary {
        width: 160px;
        height: 48px;
    }
}

