/* Extracted from views/layouts/newheader.ejs (2026-12-02) */
  /* Show only after JS marks the age gate ready. */
  .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); }
}

@media screen and (max-width: 1366px) {
  .over18 { 
    width: 80%;
  }
}
@media screen and (max-width: 768px) {
   .overlay{
       padding: 0;
    }
  .over18 { 
    width: 98%;
  }
  .over18 .inner {
    padding: 15px;
  } 
  .over18 .inner .buttons{
    margin-top: 4px;
  }
  .over18 .inner .buttons .btn.primary{
    font-size: 16px;
    min-height: 54px;
    padding: 12px 20px;
  }
  .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;
}

/* ===== HERO (integrated under old header) ===== */
.hero-shell{
  margin-top: 26px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 26px;
  background:#fff;
  padding: 12px;
}

.hero-filter-shell{
  margin-top: 12px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 26px;
  background:#fff;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.hero-filter-card{
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f1 100%);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 20px;
  padding: 20px;
}
.hero-filter-title{
  margin: 0 0 16px;
  color: #222;
  font-family: Montserrat;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02rem;
}
.hero-filter-subtitle{
  
  color: #333;
  font-size: 15px;
  line-height: 1.45;
  max-width: 420px;
}

.hero-banner{
  width:100%;
  background: var(--primary-bg, #F6EEE3);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  padding: 14px 16px;
}

.hero-title{
  margin: 0 0 6px;
  color: #0E0E0E;
  font-family: Montserrat;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  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;
    }
  }

.hero-subtitle{
  margin: 0;
  color: #111;
  opacity: .85;
  font-size: 15px;
  line-height: 20px;
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 12px;
}

.hero-tags .btn-primary{
  background-color: #f9f3ea;
  border-radius: 999px;
  padding: 10px 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

header .header__row{
  margin-bottom: 0;
}

/* mobile: 2 per row */
@media (max-width: 768px) {
  .hero-title{
    font-size: 26px;
  }
  .hero-tags{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-tags .btn-primary{
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .hero-title{
    font-size: 24px;
  }
}
