/* Extracted from views/layouts/header.ejs (2026-12-02) */
  .overlay, .over18 { display:none; }
  .over18-ready .overlay { display:flex; }
  .over18-ready .over18 { display:block; }
  .age-accepted .overlay,
  .age-accepted .over18,
  .age-accepted-client .overlay,
  .age-accepted-client .over18 {
    display: none !important;
  }
  .cookie-settings-open .overlay {
    display: flex !important;
  }
  .cookie-settings-open .over18 {
    display: block !important;
  }
  .overlay *, .over18 * { box-sizing: border-box; }

.overlay {
  opacity: 1; /* Изменено с 0.7 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
  -webkit-backdrop-filter: blur(2px); /* soft blur in light; dark.css makes it stronger */
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  padding: 20px; /* Отступы по краям */
}

.over18 {
  position: relative; /* Изменено с fixed */
  z-index: 1000;
  max-height: 100%;
  overflow-y: auto;
  margin: 0;
  background: rgb(255, 255, 255);
  border-top: 4px solid #d7ad77;
  width: 600px; /* Добавьте ширину */
  max-width: 100%;
}

/* Остальные стили остаются без изменений */
.over18 .top {
  height: 75px;
  background: rgb(38, 38, 38);
}
.over18 .top .logo {
  text-align: center;
  width: 150px;
  height: 79px;
  position: absolute;
  top: -4px;
  left: 40px;
  padding-top: 10px;
  background: rgb(47, 47, 47);
}
.over18 .top .logo img {
  height: 65px;
  width: auto;
}
.over18 .inner {
  font-size: 13px;
  padding: 30px;
  border-width: 0px 1px 1px;
  border-style: solid;
  border-color: rgb(221, 221, 221);
  border-top: 0px;
} 
.over18 .inner img {
  right: -10px;
  bottom: 0px;
  padding-bottom:5px;
}
.over18 .inner p {
  color: rgb(46, 46, 46);
  line-height: 1.2;
}
.over18 .cookie-consent .overlay-content p:last-child {
  margin-bottom: -12px;
}
.over18 .inner .consent-title,
.over18 .inner .cookie-title {
  font-size: 18px;
  color: #111;
  text-transform: uppercase;
  font-weight: 900;
}

.over18 ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 40px;
}
.over18 .inner .buttons {
  font-size: 18px;
  margin-top: 6px;
  display: grid;
  gap: 12px;
  width: 100%;
}
.over18 .inner .buttons::after, .over18 .inner .buttons::before {
  content: "";
  display: table;
}
.over18 .inner .buttons .btn,
.over18 .cookie-consent .btn,
.over18 .cookie-settings .btn {
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 10px 24px;
  white-space: normal;
  line-height: 1.1;
}
.over18 .inner .buttons-row{
  display: flex;
  gap: 12px;
  width: 100%;
}
.over18 .inner .buttons-row .btn{
  flex: 1 1 0;
  width: auto;
}
.over18 .inner .btn.primary{
  background: #fff;
  color: #222;
  border: 2px solid #f05b5f;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.over18 .inner .btn.primary.enter{
  background: #3a7a52;
  color: #fff;
  border: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.over18 .inner .btn.primary.enter:hover{
  background: #438a5e;
}
.over18 .inner .btn.outline{
  background: #fff;
  color: #222;
  border: 2px solid #e4e0db;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.over18 .cookie-consent,
.over18 .cookie-settings{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.over18 .cookie-settings[hidden]{
  display: none;
}
.over18 .consent-footer{
  font-size: 14px;
  color: #2e2e2e;
}
.over18 .cookie-title{
  margin: 12px 0 8px;
  font-size: 20px;
  color: #111;
  text-transform: none;
}
.over18 .cookie-text{
  font-size: 14px;
  color: #2e2e2e;
  line-height: 1.4;
  margin: 0;
}
.over18 .cookie-card{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.over18 .cookie-toggle{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #111;
  text-transform: uppercase;
}
.over18 .cookie-toggle input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.over18 .cookie-switch{
  width: 38px;
  height: 22px;
  background: #ddd;
  border-radius: 999px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid #cfcfcf;
}
.over18 .cookie-switch::after{
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.over18 .cookie-toggle input:checked + .cookie-switch{
  background: #f05b5f;
  border-color: #f05b5f;
}
.over18 .cookie-toggle input:checked + .cookie-switch::after{
  left: 20px;
}
.over18 .cookie-desc{
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #2e2e2e;
}
.over18 .cookie-settings .btn{
  width: 100%;
}
.over18 .cookie-settings .btn.primary{
  box-shadow: none;
}
.over18 .cookie-settings .btn.outline{
  background: #fff;
  border: 2px solid rgba(240, 91, 95, 0.55);
  color: rgba(34, 34, 34, 0.8);
  box-shadow: 0 6px 18px rgba(240, 91, 95, 0.08);
}
.cookie-locked {
  animation: cookie-shake 0.4s ease;
}
.cookie-locked .cookie-lock-msg {
  opacity: 1;
  transform: translateY(0);
}
.cookie-lock-msg {
  margin-top: 8px;
  font-size: 12px;
  color: #b63838;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@keyframes cookie-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.over18 .inner .buttons .btn.enter{
    background: #f6efe4;
    color: #222;
    font-size: 18px;
    letter-spacing: -0.01em;
    border: 1px solid rgba(0,0,0,.2);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .12s ease;
}
.over18 .inner .buttons .btn.black {
  flex-grow: 0;
  font-size: 18px;
  border: 1px solid rgba(0,0,0,.2);
  background: #222;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

@media screen and (max-width: 1366px) {
  .over18 { 
    width: 80%;
  }
}
@media screen and (max-width: 768px) {
   .overlay{
       padding: 0;
    }
  .over18 { 
    width: 98%;
  }
  .over18 .inner .buttons{
    margin-top: 4px;
  }
  .over18 .inner .buttons .btn.primary{
    font-size: 16px;
    min-height: 54px;
    padding: 12px 20px;
  }
  .over18 .inner .buttons .btn.enter{
    font-size: 15px;
    border: 1px solid rgba(0,0,0,.2);
}
.over18 .inner .buttons .btn.black {
        font-size: 15px;
        border: 1px solid rgba(0,0,0,.2);
}
  .over18 .inner .buttons .btn {
    width: 100%;
  }
  .over18 .inner .buttons-row .btn{
    width: auto;
    flex: 1 1 0;
  }
  .over18 .inner {
    padding: 15px;
  } 
  .over18 .inner .buttons .btn,
  .over18 .cookie-consent .btn,
  .over18 .cookie-settings .btn {
    font-size: 14px;
  }
  .over18 .inner p { 
    font-size:13px; 
  }
}  

.clearfix { 
  clear:both; 
}

.section__titleindex {
  color: var(--Icons, #282828);
  font-family: Montserrat;
  font-size: 2.6rem;
  font-style: normal;
  font-weight: 600;
  line-height: 2.5rem;
  letter-spacing: -0.06rem;
  text-transform: capitalize;
}

  .overlay {
    background: rgba(12, 12, 12, 0.72);
  }
  .over18 {
    width: 520px;
    max-width: 94vw;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  }
  .over18 .inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .cookie-consent,
  .cookie-settings {
    gap: 16px;
  }
  .cookie-consent[hidden] {
    display: none;
  }
  .consent-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .consent-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: none;
    margin: 0;
    color: #141414;
  }
  .consent-lede {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #2e2e2e;
  }
  .consent-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .consent-subtext {
    font-size: 12px;
    color: #5a5a5a;
  }
  .consent-secondary {
    display: flex;
    gap: 10px;
  }
  .over18 .cookie-consent .btn.primary,
  .over18 .cookie-settings .btn.primary {
    background: #f05b5f;
    color: #fff;
    border: 2px solid #f05b5f;
    box-shadow: 0 10px 22px rgba(240, 91, 95, 0.25);
  }
  .over18 .cookie-consent .btn.outline {
    border: 2px solid rgba(15, 15, 15, 0.15);
    background: #fff;
    color: #222;
  }
  .over18 .cookie-consent .btn.ghost {
    border: 2px solid rgba(240, 91, 95, 0.35);
    background: #fff4f4;
    color: #8a2f31;
    box-shadow: 0 6px 14px rgba(240, 91, 95, 0.12);
  }
  .consent-details {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 8px;
  }
  .consent-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    color: #2b2b2b;
    list-style: none;
  }
  .consent-details summary::-webkit-details-marker {
    display: none;
  }
  .consent-details summary::after {
    content: "▾";
    float: right;
    color: #777;
  }
  .consent-details[open] summary::after {
    content: "▴";
  }
  .consent-details-body {
    margin-top: 10px;
    font-size: 13px;
    color: #2e2e2e;
    line-height: 1.45;
  }
  .consent-details-body a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(46, 46, 46, 0.6);
    text-underline-offset: 2px;
  }
  .consent-details-body a:hover {
    text-decoration-color: rgba(46, 46, 46, 0.9);
  }
  .consent-details-body p:last-child {
    margin-bottom: 0;
  }
  .consent-note {
    margin-top: 10px;
    font-size: 12px;
    color: #585858;
  }
  .over18 {
    max-height: 90vh;
    overflow-y: auto;
  }
  @media screen and (max-width: 768px) {
    .over18 {
      width: 96vw;
    }
    .over18 .inner {
      padding: 16px;
      gap: 12px;
    }
    .consent-title {
      font-size: 18px;
    }
    .consent-secondary {
      flex-direction: column;
    }
    .over18 .cookie-consent .btn,
    .over18 .cookie-settings .btn {
      min-height: 46px;
    }
  }
h
  {
    width: 211.755126953125;
    height: 40;
    gap: 16px;
    border-radius: 30px;
    border-width: 1px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    background: #EBDDC9;
    border: 1px solid #0000001F;
    font-size: 14px;
}

header .auth__block .notification-container{
    width: 211.755126953125;
    height: 40;
    gap: 16px;
    border-radius: 30px;
    border-width: 1px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    background: #EBDDC9;
    border: 1px solid #0000001F;
    font-size: 14px;
}

.notification-items {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  cursor: pointer;
}

.notification-items span {
  display: flex;
  align-items: center;
}

.notification-items svg {
  display: block;
}
.user_cabinet{
    align-content: center;
}
.bell {
  position: relative;
  display: inline-flex;
}
.bell.has-notification::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background: red;
  border-radius: 50%;
}


.dropdown {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;

  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 9999;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f2f2f2;
}

.notification-trigger {
    cursor: pointer;
}

#notification-dropdown{
    gap: 24px;
    border-radius: 30px;
    border-width: 1px;
    top: 132px;
    left: 569px;
    padding: 24px;
    background: #FFFFFF;
    box-shadow: 0px 4px 4px 0px #00000040;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}
    /* WebKit (Chrome, Edge, Safari) */
    #notification-dropdown::-webkit-scrollbar {
        width: 4px;
    }

    #notification-dropdown::-webkit-scrollbar-track {
        background: transparent;
    }

    #notification-dropdown::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.25);
        border-radius: 4px;
    }

    /* Firefox */
    #notification-dropdown {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
    }

    #notification-dropdown::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

#notification-dropdown .notification-items {
    display: flex;
    align-items: center;
    width: 637;
    height: 104;
    opacity: 1;
    gap: 22px;
    border-radius: 12px;
    border-width: 1px;
    padding: 16px;
    border: 1px solid #E9E9E9;
    margin-bottom: 10px;
}
#notification-dropdown .notification-items.personal {
    background: #EAF6FF;
}

#notification-dropdown .notification-items.general {
    background: #FAF6F0;
}
#notification-dropdown .notification-items .icon{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border-width: 1px;
    background: #F6F6F6;
    border: 1px solid #EEEEEE;
    justify-content: center;
}

#notification-dropdown .notification-items .content{
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
gap:4px;
width: 100%;
}
#notification-dropdown .notification-items .content .title{
 font-weight: 500;
}
#notification-dropdown .notification-items .addtional-info {
    display: flex;
    flex-direction: column;
    width: 103;
    height: 72;
    opacity: 1;
    gap: 22px;

}
#notification-dropdown .notification-items .addtional-info .type{
    width: 103;
    height: 29;
    gap: 10px;
    border-radius: 99px;
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 4px;
    padding-left: 12px;
    background: #353535;
    color: #FFFFFF;
    font-family: Montserrat;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: -1%;
    text-transform: uppercase;

}

#notification-dropdown .notification-items.general .addtional-info .type{
    background: #E1C6A1;
    color: #2F2F2F;

}

#notification-dropdown .notification-items .addtional-info .time{
    width: 61;
    height: 21;
    opacity: 1;
    gap: 22px;
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -1%;
    text-align: right;
    width: 100%;
    justify-content: end;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

#notification-dropdown .notification-items .addtional-info .time .date{
    font-size: 12px;
    opacity: 0.75;
    font-weight: 400;
}

#notification-dropdown .notification-items .addtional-info .time .clock{
    font-size: 14px;
}
#notification-dropdown .read-more{
    font-family: Montserrat;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -1%;
    color: #C1822F;
    cursor: pointer;
    justify-content: center;
    display: flex;
}

    /* The notification bell belongs to the desktop header only. Once the
       mobile menu (hamburger) takes over at <=992px, hide it entirely so it
       does not crowd the auth block. */
    @media screen and (max-width:992px) {
        header .auth__block .notification-container {
            display: none !important;
        }
      }
      .notification-empty{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap:10px;
      }

  /* Logged-in models: stylized Dashboard pill (replaces the plain user icon). */
  .dash-link{ display:inline-flex; align-items:center; gap:7px; padding:9px 18px; border-radius:99px; background:#282828; color:#fff; font-size:13px; font-weight:700; letter-spacing:.03em; text-decoration:none; line-height:1; white-space:nowrap; border:1px solid #0E0E0E; transition:background .18s ease, transform .12s ease, box-shadow .18s ease; }
  .dash-link:hover{ background:#000; transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,0,0,.18); }
  .dash-link__icon{ width:16px; height:16px; display:block; flex-shrink:0; }
  /* On mobile the full word crowds the header — show just the icon. */
  @media (max-width:992px){
    .dash-link{ padding:9px; gap:0; }
    .dash-link__text{ display:none; }
  }

  /* ===== LANGUAGE SELECTOR ===== */
  header .auth__block{
    align-items:center;
  }
  /* Language selector: a globe button that opens a dropdown — same on desktop and mobile. */
  .lang-dd{
    position:relative;
    display:inline-flex;
    align-items:center;
  }
  .lang-dd__toggle{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 12px;
    border:1px solid rgba(0,0,0,.12);
    background:rgba(0,0,0,.05);
    border-radius:99px;
    color:#282828;
    cursor:pointer;
    line-height:1;
    transition:background .18s ease;
  }
  .lang-dd__toggle:hover{ background:rgba(0,0,0,.09); }
  .lang-dd__globe{ width:18px; height:18px; display:block; flex-shrink:0; color:#6b6b6b; }
  .lang-dd__current{ font-size:13px !important; font-weight:600 !important; letter-spacing:.04em; color:#282828; }
  .lang-dd__caret{ width:11px; height:11px; display:block; flex-shrink:0; transition:transform .18s ease; }
  .lang-dd.open .lang-dd__caret{ transform:rotate(180deg); }
  .lang-dd__menu{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    display:none;
    flex-direction:column;
    gap:2px;
    min-width:200px;
    padding:8px;
    background:#fff;
    border:1px solid rgba(0,0,0,.12);
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,.16);
    z-index:9999;
  }
  .lang-dd.open .lang-dd__menu{ display:flex; }
  .lang-dd__heading{
    padding:2px 10px 8px;
    font-size:11px !important;
    font-weight:700 !important;
    color:#9a9a9a !important;
    letter-spacing:.06em;
    text-transform:uppercase;
    border-bottom:1px solid rgba(0,0,0,.08);
    margin-bottom:4px;
  }
  .lang-switcher__item{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    box-sizing:border-box;
    padding:9px 12px !important;
    font-size:14px !important;
    font-weight:600 !important;
    color:#555 !important;
    text-decoration:none !important;
    border-radius:9px;
    line-height:1.2 !important;
    transition:color .18s ease, background .18s ease;
  }
  .lang-switcher__item.is-active{
    background:rgba(0,0,0,.06);
    color:#111 !important;
    pointer-events:none;
    cursor:default;
  }
  .lang-switcher__item:hover:not(.is-active),
  .lang-switcher__item:focus-visible:not(.is-active){
    background:rgba(0,0,0,.04);
    color:#111 !important;
  }
  .lang-switcher__item:focus-visible{
    outline:2px solid #111;
    outline-offset:2px;
  }

