/* Design upgrade «Полночный бархат» v1.0.0 — discreet-f.co.il
   Все правила ограничены html.du — без класса слой ничего не меняет.
   Откат: DU_MODE = 'off' в design-upgrade.php. */

html.du {
  --du-bg: #0E0B10;
  --du-surface: #1A1419;
  --du-surface-2: #261C24;
  --du-line: #3A2C35;
  --du-wine: #8E1B3A;
  --du-wine-hover: #A8234A;
  --du-gold: #C9A36A;
  --du-gold-soft: rgba(201, 163, 106, .14);
  --du-text: #F3ECE4;
  --du-muted: #A99BA3;
  --du-green: #4FAE8A;
  --du-radius: 14px;
  --du-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --du-serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --du-sans: "Assistant", "Arial Hebrew", Arial, sans-serif;

  /* переменные темы neomag */
  --site-background: var(--du-bg);
  --site-color: var(--du-text);
  --category-color: var(--du-gold);
  --mouse-hover-color: var(--du-gold);
  --content-link: var(--du-gold);
  --headings-font-family: var(--du-serif);
  --body-font-family: var(--du-sans);
  background: var(--du-bg);
}

/* ---------- база ---------- */
html.du body {
  background: var(--du-bg);
  color: var(--du-text);
  font-family: var(--du-sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: normal;
  overflow-x: hidden;
}
html.du h1, html.du h2, html.du h3, html.du h4, html.du h5, html.du h6,
html.du .h1, html.du .h2, html.du .h3, html.du .main-font {
  font-family: var(--du-serif);
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.25;
  text-wrap: balance;
}
html.du a { color: var(--du-gold); transition: color .2s ease; }
html.du a:hover { color: var(--du-text); }
html.du ::selection { background: var(--du-wine); color: var(--du-text); }
html.du :focus-visible { outline: 2px solid var(--du-gold); outline-offset: 3px; }

/* ---------- шапка ---------- */
html.du .site-header,
html.du .header--container {
  background: rgba(14, 11, 16, .96);
  color: var(--du-muted);
}
html.du .site-header { border-bottom: 1px solid var(--du-line); }
html.du .header--container { border-bottom: 1px solid rgba(201, 163, 106, .35) !important; }
html.du .header-desktop .header-row { padding: 22px 0; }
html.du .sticky-navbar {
  background: rgba(14, 11, 16, .97) !important;
  border-bottom: 1px solid var(--du-gold) !important;
}
html.du #main-menu li a,
html.du #sticky-main-menu a,
html.du .main-navigation .menu > li > a {
  color: var(--du-muted);
  font-family: var(--du-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: normal;
  text-transform: none;
}
html.du #main-menu li a:hover,
html.du #sticky-main-menu a:hover,
html.du .main-navigation .menu > li.current-menu-item > a,
html.du .main-navigation .menu > li > a:hover { color: var(--du-gold); }
html.du #main-menu li a::after { background: var(--du-gold) !important; }
html.du .menu-layout--bullets > li:not(:last-of-type):after { background: var(--du-line) !important; color: var(--du-line) !important; }
html.du .main-navigation .sub-menu {
  background: var(--du-surface);
  border: 1px solid var(--du-line);
  border-radius: 10px;
}

/* логотип */
html.du .site-branding {
  background: var(--du-bg);
  border: 1px solid var(--du-gold);
  border-radius: 0 0 var(--du-radius) var(--du-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
html.du .header-desktop .site-branding { top: 0; padding: 18px 28px 16px; }
html.du .site-branding .text-logo::before {
  background-image: url("/wp-content/themes/neomag-child/design-upgrade/logo-gold.png");
  height: 78px;
  background-position: center;
}
html.du .site-branding .text-logo,
html.du .site-branding .text-logo a,
html.du .text-logo {
  color: var(--du-gold) !important;
  font-family: var(--du-serif) !important;
  font-weight: 500;
  letter-spacing: .14em !important;
  font-size: 19px !important;
  text-transform: uppercase;
}
html.du .site-branding .text-logo a { padding-top: 96px; margin-top: -78px; }

/* мобильная шапка */
html.du .header-mobile { background: rgba(14, 11, 16, .97); }
html.du .header-mobile .site-branding {
  position: static;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 6px 0;
  justify-content: flex-start;
}
html.du .header-mobile .site-branding .text-logo::before { height: 44px; background-position: right center; }
html.du .header-mobile .site-branding .text-logo a { padding-top: 0; margin-top: 0; font-size: 15px !important; }
html.du .header-mobile .site-branding .text-logo { display: flex; align-items: center; gap: 10px; }
html.du .site-branding .text-logo, html.du .site-branding .text-logo a { white-space: nowrap; text-wrap: nowrap; }
html.du .header-mobile .site-branding .text-logo::before { width: 52px; flex: 0 0 52px; }
html.du .hamburger-icon,
html.du .hamburger-icon:before,
html.du .hamburger-icon:after { background-color: var(--du-gold) !important; color: var(--du-gold) !important; }
html.du .menu-reveal { color: var(--du-gold); }

/* боковое меню на мобильном */
html.du .offcanvas-panel--slide { background: var(--du-surface) !important; color: var(--du-text) !important; }
html.du #offcanvas-main-navigation .menu > li > a { color: var(--du-text); font-weight: 600; }
html.du #offcanvas-main-navigation .menu > li > a:hover { color: var(--du-gold); }
html.du #offcanvas-main-navigation li { border-color: var(--du-line) !important; }

/* ---------- первый экран главной ---------- */
html.du #main-sidebar {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  height: auto;
  padding: 120px 24px 90px;
  background-position: center 20%;
}
html.du #main-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, rgba(14, 11, 16, .88) 0%, rgba(14, 11, 16, .55) 40%, rgba(14, 11, 16, .05) 75%),
    linear-gradient(0deg, var(--du-bg) 0%, rgba(14, 11, 16, 0) 35%);
}
html.du #main-sidebar .sidebar-container { max-width: 1120px; width: 100%; }
html.du #main-sidebar .custom-html-widget { max-width: 640px; color: var(--du-muted); font-size: 18px; line-height: 1.7; }
html.du #main-sidebar h1 {
  font-family: var(--du-sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--du-gold);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 163, 106, .35);
  display: inline-block;
}
html.du #main-sidebar h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.18; color: var(--du-text); margin-bottom: 22px; }
html.du #main-sidebar h2 span { font-size: inherit !important; color: var(--du-text) !important; }

/* ---------- фон контента ---------- */
html.du #content,
html.du .single-post #content,
html.du .single-video #content {
  background-image: none;
  background-color: var(--du-bg);
}

/* список ссылок на главной — плашки */
html.du .display-posts-listing {
  list-style: none;
  margin: 50px auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
html.du .display-posts-listing .listing-item { margin: 0; }
html.du .display-posts-listing .listing-item::before,
html.du .display-posts-listing .listing-item::marker { content: none; }
html.du .display-posts-listing .title {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--du-line);
  border-radius: 999px;
  background: var(--du-surface);
  color: var(--du-text);
  text-decoration: none;
  box-shadow: none;
  font-weight: 600;
}
html.du .display-posts-listing .title:hover { border-color: var(--du-gold); color: var(--du-gold); }

/* ---------- заголовок рубрики, хлебные крошки ---------- */
html.du .archive-header { padding-top: 30px; padding-bottom: 10px; }
html.du .page-title,
html.du .by-category--color,
html.du .homepage-title h1,
html.du .section-title { color: var(--du-text) !important; font-family: var(--du-serif); }
html.du .page-title { font-size: clamp(30px, 4vw, 46px); }
html.du .page-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--du-gold);
}
html.du #breadcrumbs { color: var(--du-muted); font-size: 15px; }
html.du #breadcrumbs a { color: var(--du-muted); }
html.du #breadcrumbs a:hover { color: var(--du-gold); }
html.du #breadcrumbs .breadcrumb_last { color: var(--du-gold); }

/* меню рубрик (плашки) */
html.du .cat-menu li a {
  background: var(--du-surface);
  border: 1px solid var(--du-line);
  border-radius: 999px;
  color: var(--du-text);
}
html.du .cat-menu li a:hover { background: var(--du-surface-2); border-color: var(--du-gold); color: var(--du-gold); }

/* ---------- карточки анкет ---------- */
html.du #posts-listing .post-column article,
html.du .related-posts .post-column article {
  background: var(--du-surface);
  border: 1px solid var(--du-line);
  border-radius: var(--du-radius);
  overflow: hidden;
  transition: transform .2s var(--du-ease), border-color .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
html.du #posts-listing .post-column article .entry-details,
html.du .related-posts .post-column article .entry-details { flex: 1 1 auto; display: flex; flex-direction: column; }
html.du .entry-details .profile-phone,
html.du .entry-details .card-whatsapp { margin-top: auto; }
@media (hover: hover) and (pointer: fine) {
  html.du #posts-listing .post-column article:hover,
  html.du .related-posts .post-column article:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 163, 106, .55);
  }
}
html.du .entry-image { overflow: hidden; }
html.du .entry-image img,
html.du #posts-listing .wp-post-image {
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
html.du .entry-details { background: var(--du-surface); padding: 18px 16px 18px; }
html.du .entry-details .entry-title { font-size: 22px; margin-bottom: 6px; }
html.du .entry-title,
html.du .entry-details .entry-title a { color: var(--du-text) !important; font-family: var(--du-serif); }
html.du .entry-details .entry-title a:hover { color: var(--du-gold) !important; }
html.du .entry-summary,
html.du .entry-details .entry-summary,
html.du .entry-details .entry-summary p { color: var(--du-muted) !important; font-size: 15px; line-height: 1.6; }
html.du .entry-details .profile-place {
  background: rgba(14, 11, 16, .82);
  border: 1px solid rgba(201, 163, 106, .45);
  border-left: 0;
  color: var(--du-text);
}
html.du .entry-details .profile-place h4 { color: var(--du-text); font-family: var(--du-sans); font-weight: 600; }

/* кнопки телефона и WhatsApp */
html.du .profile-phone,
html.du .entry-details .profile-phone {
  background: var(--du-wine);
  color: var(--du-text);
  font-family: var(--du-sans);
  font-weight: 700;
  font-size: 20px;
  border-radius: 10px;
  height: auto;
  padding: 14px 10px;
  letter-spacing: normal;
}
html.du .profile-phone:hover,
html.du .entry-details .profile-phone:hover { background: var(--du-wine-hover); color: var(--du-text); }
html.du .empty-phone { height: 0; }
html.du .card-whatsapp,
html.du .content_whatsapp {
  background: transparent !important;
  border: 1px solid var(--du-green);
  border-radius: 10px;
  color: var(--du-green);
  font-family: var(--du-sans);
  font-size: 19px;
  font-weight: 700;
}
html.du .card-whatsapp a,
html.du .content_whatsapp a { color: var(--du-green) !important; text-decoration: none; box-shadow: none; }
html.du .card-whatsapp:hover,
html.du .content_whatsapp:hover { background: rgba(79, 174, 138, .12) !important; }

/* пагинация */
html.du .pagination .page-numbers li a,
html.du .pagination .page-numbers li span {
  background: var(--du-surface);
  border: 1px solid var(--du-line);
  border-radius: 10px;
  color: var(--du-text);
}
html.du .pagination .page-numbers li .current,
html.du .pagination .page-numbers li a:hover { background: var(--du-wine); border-color: var(--du-wine); color: var(--du-text); }

/* текст описания рубрики */
html.du .category-custom-description { color: var(--du-muted); }
html.du .category-custom-description .content h2 { color: var(--du-text); }
html.du .category-custom-description .section { border-color: var(--du-line); }
html.du .category-custom-description .img-wrap img { border-radius: var(--du-radius); }

/* ---------- страница анкеты ---------- */
html.du .single-post h1,
html.du .single-post-column h1 { color: var(--du-text); font-size: clamp(32px, 4vw, 48px); }
html.du .single-post .profile-place h2 { color: var(--du-gold); font-family: var(--du-sans); font-weight: 600; }
html.du .single-post .post-content {
  background: var(--du-surface);
  border: 1px solid var(--du-line);
  border-radius: var(--du-radius);
  color: var(--du-text);
}
html.du .flexslider {
  background: var(--du-surface);
  border: 1px solid var(--du-line);
  border-radius: var(--du-radius);
  overflow: hidden;
  box-shadow: none;
}
html.du .flex-direction-nav a:before { color: var(--du-gold) !important; text-shadow: none; }
html.du .flex-control-paging li a { background: var(--du-line); box-shadow: none; }
html.du .flex-control-paging li a.flex-active { background: var(--du-gold); }
html.du .related-posts--header,
html.du .related-posts .entry-title { color: var(--du-text); }

/* значок VIP — вместо красной картинки */
html.du .profile-status {
  background: none !important;
  width: auto !important;
  height: auto !important;
  top: 12px !important;
  right: 12px !important;
}
html.du .profile-status::before {
  content: "VIP";
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--du-gold);
  color: var(--du-bg);
  font: 700 13px/1.2 var(--du-sans);
  letter-spacing: .08em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

html.du .related-posts .profile-status { right: 26px !important; }

/* карточка анкеты целиком */
html.du .single-post article.post {
  background: transparent !important;
  border: 0;
}
html.du .single-post .related-posts article.post { background: var(--du-surface) !important; }

/* ---------- формы ---------- */
html.du input[type=text], html.du input[type=email], html.du input[type=tel],
html.du input[type=search], html.du input[type=url], html.du input[type=number], html.du textarea {
  background: var(--du-surface-2) !important;
  border: 1px solid var(--du-line) !important;
  border-radius: 10px;
  color: var(--du-text) !important;
  font-family: var(--du-sans);
}
html.du input:focus, html.du textarea:focus { border-color: var(--du-gold) !important; box-shadow: 0 0 0 3px var(--du-gold-soft); }
html.du [type=submit], html.du button, html.du .button, html.du .site-footer .recaptcha-btn, html.du #footer-sidebar input.wpcf7-submit,
html.du .site-footer form input[type="submit"] {
  background: var(--du-wine) !important;
  color: var(--du-text) !important;
  border: 0;
  border-radius: 10px;
  font-family: var(--du-sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  padding: 12px 28px;
  letter-spacing: normal !important;
}
html.du [type=submit]:hover, html.du button:hover, html.du .button:hover,
html.du .site-footer form input[type="submit"]:hover { background: var(--du-wine-hover) !important; }
html.du .back-top { background: var(--du-surface-2) !important; color: var(--du-gold) !important; border: 1px solid var(--du-line); }

/* ---------- подвал ---------- */
html.du .site-footer,
html.du .site-footer .site-info { background: var(--du-surface) !important; color: var(--du-muted); }
html.du .site-footer { border-top: 1px solid var(--du-line); }
html.du #footer-sidebar {
  background-image: linear-gradient(rgba(26, 20, 25, .94), rgba(14, 11, 16, .98)), url("/wp-content/uploads/2020/07/footer-bg-1.jpg");
}
html.du .site-footer .widget-title { color: var(--du-gold); font-family: var(--du-serif); font-size: 22px; }
html.du .site-footer a,
html.du .site-footer .menu > li > a { color: var(--du-muted); font-size: 16px; }
html.du .site-footer a:hover,
html.du .site-footer .menu > li > a:hover { color: var(--du-gold) !important; }
html.du #footer-sidebar .menu-item a:before { background-image: url("/wp-content/themes/neomag-child/design-upgrade/arrow-gold.png") !important; opacity: .9; }
html.du .footer-logo { color: var(--du-gold) !important; font-family: var(--du-serif) !important; letter-spacing: .14em; }
html.du .footer-logo::before {
  background-image: url("/wp-content/themes/neomag-child/design-upgrade/logo-ivory.png");
  height: 110px;
}
html.du .site-footer form label,
html.du .site-footer form p { color: var(--du-muted); }

/* переключатель языка */
html.du .wpml-ls-legacy-list-horizontal a,
html.du .wpml-ls-link { background: transparent !important; color: var(--du-muted) !important; border-radius: 8px; }
html.du .wpml-ls-legacy-list-horizontal a:hover,
html.du .wpml-ls-current-language > a { color: var(--du-gold) !important; }
html.du .wpml-ls-legacy-list-horizontal { border: 1px solid var(--du-line); border-radius: 10px; background: var(--du-surface); }


/* ---------- отклик и размеры для пальца ---------- */
html.du .profile-phone, html.du .card-whatsapp, html.du .content_whatsapp,
html.du [type=submit], html.du .display-posts-listing .title, html.du .cat-menu li a {
  transition: transform .16s var(--du-ease), background-color .2s ease, border-color .2s ease, color .2s ease;
}
html.du .profile-phone:active, html.du .card-whatsapp:active, html.du .content_whatsapp:active,
html.du [type=submit]:active, html.du .display-posts-listing .title:active, html.du .cat-menu li a:active { transform: scale(.97); }
html.du .profile-phone { font-variant-numeric: tabular-nums; unicode-bidi: isolate; min-height: 46px; }
html.du .site-footer .menu > li > a { display: inline-flex; align-items: center; min-height: 44px; }
html.du .site-footer form input[type=text], html.du .site-footer form input[type=email] { min-height: 46px; }
html.du #breadcrumbs a { display: inline-block; padding: 12px 2px; }
html.du .display-posts-listing .title { min-height: 44px; }

/* ---------- мобильный ---------- */
@media (max-width: 767px) {
  html.du body { font-size: 16px; }
  html.du #main-sidebar { min-height: 0; padding: 70px 18px 56px; }
  html.du #main-sidebar .custom-html-widget { font-size: 16px; }
  html.du #main-sidebar h2 { font-size: 32px; }
  html.du #posts-listing { margin-left: 0; margin-right: 0; }
  html.du #posts-listing .post-column { padding-left: 6px; padding-right: 6px; }
  html.du .entry-details { padding: 12px 10px 14px; }
  html.du .entry-details .entry-title { font-size: 19px; }
  html.du .entry-details .entry-summary p { font-size: 14px; }
  html.du .profile-phone, html.du .entry-details .profile-phone { font-size: 17px; padding: 11px 6px; }
  html.du .card-whatsapp { font-size: 16px; }
  html.du .display-posts-listing { margin: 30px auto; gap: 8px; }
  html.du .display-posts-listing .title { padding: 8px 16px; }
  html.du #footer-sidebar .footer-sidebar__container > .column,
  html.du #footer-sidebar .footer-sidebar__container > .widget {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  html.du #footer-sidebar .footer-sidebar__container > .widget + .widget { margin-top: 28px; }
  html.du .footer-logo { font-size: 20px !important; }
  html.du .footer-logo::before { height: 80px; background-position: top center; }
  html.du #footer-sidebar .custom-html-widget { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html.du *, html.du *::before, html.du *::after { transition-property: color, background-color, border-color, opacity !important; animation: none !important; scroll-behavior: auto !important; }
  html.du ::view-transition-group(*), html.du ::view-transition-old(*), html.du ::view-transition-new(*) { animation: none !important; }
}

/* =====================================================================
   v1.1 — СТРУКТУРА: шапка, меню, полоса разделов, арка, карточки, анкета, слайдер
   ===================================================================== */

/* ---------- шапка на компьютере: логотип в строке, без висящей плашки ---------- */
@media (min-width: 1200px) {
  html.du .header-desktop .header-row { padding: 14px 0; min-height: 84px; }
  html.du .header-desktop .site-branding {
    position: static;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  html.du .header-desktop .site-branding .text-logo { display: flex; align-items: center; gap: 12px; }
  html.du .header-desktop .site-branding .text-logo::before {
    width: 54px; height: 54px; flex: 0 0 54px; background-position: center;
  }
  html.du .header-desktop .site-branding .text-logo a { padding: 0; margin: 0; font-size: 18px !important; }
  html.du #main-menu > li > a { padding-top: 10px; padding-bottom: 10px; position: relative; }
  html.du #main-menu > li.current-menu-item > a::before,
  html.du #main-menu > li.current-menu-parent > a::before {
    content: ""; position: absolute; inset-inline: 30%; bottom: 0; height: 2px; background: var(--du-gold); border-radius: 2px;
  }
}

/* ---------- мобильная полоса разделов ---------- */
html.du .du-strip {
  display: none;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 14px;
  background: rgba(14, 11, 16, .97);
  border-bottom: 1px solid var(--du-line);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
html.du .du-strip::-webkit-scrollbar { display: none; }
html.du .du-strip a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--du-line);
  background: var(--du-surface);
  color: var(--du-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}
html.du .du-strip a.is-current { border-color: var(--du-gold); color: var(--du-gold); background: var(--du-gold-soft); }
@media (max-width: 1199px) { html.du .du-strip { display: flex; } }

/* ---------- мобильное меню на весь экран ---------- */
html.du .site-offcanvas .offcanvas-panel {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(142, 27, 58, .22), transparent 60%),
    var(--du-bg) !important;
}
html.du .offcanvas--slide:after { background: rgba(14, 11, 16, .85) !important; }
html.du .offcanvas-panel--inner { padding: 22px 24px 40px; overflow-y: auto; height: 100%; }
html.du .offcanvas-close { color: var(--du-gold) !important; width: 44px; height: 44px; }
html.du #offcanvas-main-navigation .menu > li { border: 0 !important; }
html.du #offcanvas-main-navigation .menu > li > a {
  display: block;
  padding: 10px 0;
  font-family: var(--du-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--du-text);
  text-decoration: none;
  box-shadow: none;
}
html.du #offcanvas-main-navigation .menu > li.current-menu-item > a { color: var(--du-gold); }
html.du .site-offcanvas.offcanvas--visible #offcanvas-main-navigation .menu > li {
  animation: du-rise .25s var(--du-ease) both;
}
html.du .site-offcanvas.offcanvas--visible #offcanvas-main-navigation .menu > li:nth-child(2) { animation-delay: 30ms; }
html.du .site-offcanvas.offcanvas--visible #offcanvas-main-navigation .menu > li:nth-child(3) { animation-delay: 60ms; }
html.du .site-offcanvas.offcanvas--visible #offcanvas-main-navigation .menu > li:nth-child(4) { animation-delay: 90ms; }
html.du .site-offcanvas.offcanvas--visible #offcanvas-main-navigation .menu > li:nth-child(5) { animation-delay: 120ms; }
html.du .site-offcanvas.offcanvas--visible #offcanvas-main-navigation .menu > li:nth-child(6) { animation-delay: 150ms; }
@keyframes du-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.du .du-oc-cities { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--du-line); display: grid; gap: 22px; }
html.du .du-oc-title { color: var(--du-gold); font-family: var(--du-serif); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
html.du .du-oc-list { display: flex; flex-wrap: wrap; gap: 8px; }
html.du .du-oc-list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--du-line); border-radius: 999px; background: var(--du-surface);
  color: var(--du-text); font-size: 15px; text-decoration: none; box-shadow: none;
}
html.du .du-oc-list a:active { border-color: var(--du-gold); color: var(--du-gold); }

/* ---------- главная: текст + фото в арке ---------- */
html.du #main-sidebar.du-hero-split {
  background-image: none !important;
  background-color: var(--du-bg);
}
html.du #main-sidebar.du-hero-split::before {
  background: radial-gradient(70% 90% at 10% 50%, rgba(142, 27, 58, .22), transparent 70%);
}
html.du #main-sidebar.du-hero-split .sidebar-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 56px;
}
html.du #main-sidebar.du-hero-split .sidebar-container::after {
  content: "";
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  border-radius: 999px 999px 18px 18px;
  background-image: var(--du-hero-img);
  background-size: cover;
  background-position: 62% 30%;
  outline: 1px solid rgba(201, 163, 106, .55);
  outline-offset: 10px;
  box-shadow: 0 30px 80px rgba(5, 2, 6, .65);
}
@media (max-width: 899px) {
  html.du #main-sidebar.du-hero-split .sidebar-container { grid-template-columns: 1fr; gap: 34px; }
  html.du #main-sidebar.du-hero-split .sidebar-container::after { order: -1; max-width: 300px; }
  html.du #main-sidebar.du-hero-split { padding-top: 40px; }
}

/* ---------- карточки: имя поверх фото ---------- */
html.du .entry-image.du-has-title { position: relative; margin: 0; }
html.du .entry-image.du-has-title::after {
  content: "";
  position: absolute; inset: 45% 0 0 0;
  background: linear-gradient(0deg, rgba(14, 11, 16, .92) 0%, rgba(14, 11, 16, 0) 100%);
  pointer-events: none;
}
html.du .entry-image.du-has-title .entry-title {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  margin: 0; padding: 0 14px 12px;
  text-align: right !important;
  font-size: 24px;
}
html.du .entry-image.du-has-title .entry-title a { text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
html.du #posts-listing .entry-details,
html.du .related-posts .entry-details { padding-top: 12px; }
html.du .entry-details .entry-summary p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-align: right;
}
html.du .entry-details .entry-summary { text-align: right !important; margin-bottom: 12px; }
@media (max-width: 767px) {
  html.du .entry-image.du-has-title .entry-title { font-size: 19px; padding: 0 10px 8px; }
}

/* ---------- анкета: галерея + информация ---------- */
html.du .single-post .single-post-column { max-width: 1180px; margin-inline: auto; }
html.du .du-profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
html.du .du-info { display: flex; flex-direction: column; gap: 14px; }
html.du .du-info h1.entry-title {
  margin: 0; text-align: right; font-size: clamp(36px, 4.4vw, 56px);
}
html.du .du-info .profile-age { margin: 0; }
html.du .du-info .profile-age h2 {
  display: inline-flex; margin: 0; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--du-line); background: var(--du-surface);
  font-family: var(--du-sans); font-size: 16px; font-weight: 600; color: var(--du-muted);
}
html.du .single-post .du-info .post-content {
  background: transparent !important; border: 0 !important; padding: 0 !important;
  font-size: 18px; line-height: 1.75; color: var(--du-text); text-align: right;
}
html.du .du-info .entry-footer { display: grid; gap: 10px; margin-top: 6px; }
html.du .du-info .entry-footer h3 { margin: 0; }
html.du .du-info .entry-footer .profile-phone,
html.du .du-info .entry-footer .content_whatsapp { width: 100%; max-width: none; margin: 0; }
html.du .single-post article.du-profile-ready { padding: 0 !important; }
html.du .single-post-column > #breadcrumbs { text-align: right; justify-content: flex-start; }
@media (min-width: 1024px) {
  html.du .du-profile { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
  html.du .du-gallery { position: sticky; top: 110px; }
  html.du .du-info { padding-top: 10px; }
}

/* ---------- слайдер анкеты ---------- */
html.du .du-gallery .flexslider { margin: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
html.du .du-gallery .flexslider .slides > li { border-radius: var(--du-radius); overflow: hidden; }
html.du .du-gallery .flexslider .slides img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--du-radius);
}
html.du .flex-direction-nav a {
  width: 46px !important; height: 46px !important; border-radius: 50%;
  background: rgba(14, 11, 16, .72) !important; border: 1px solid rgba(201, 163, 106, .5);
  display: flex !important; align-items: center; justify-content: center;
  opacity: .9 !important; margin-top: -23px !important;
}
html.du .flex-direction-nav a:before { font-size: 20px !important; line-height: 1 !important; }
html.du .flex-control-thumbs {
  display: flex !important; gap: 10px; margin: 12px 0 0 !important; position: static !important;
  overflow-x: auto; scrollbar-width: none;
}
html.du .flex-control-thumbs li { width: 76px !important; flex: 0 0 76px; margin: 0 !important; float: none !important; }
html.du .flex-control-thumbs img {
  aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; opacity: .45 !important;
  border: 1px solid transparent; transition: opacity .2s ease, border-color .2s ease;
}
html.du .flex-control-thumbs img.flex-active,
html.du .flex-control-thumbs img:hover { opacity: 1 !important; border-color: var(--du-gold); }

/* ---------- нижняя панель контактов (телефон) ---------- */
html.du .du-dock { display: none; }
@media (max-width: 1023px) {
  html.du .du-dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 11, 16, .97); border-top: 1px solid var(--du-line);
  }
  html.du .du-dock a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; border-radius: 12px; font-weight: 700; font-size: 18px;
    text-decoration: none; box-shadow: none; transition: transform .16s var(--du-ease);
  }
  html.du .du-dock a:active { transform: scale(.97); }
  html.du .du-dock .du-dock-tel { background: var(--du-wine); color: var(--du-text); font-variant-numeric: tabular-nums; }
  html.du .du-dock .du-dock-wa { border: 1px solid var(--du-green); color: var(--du-green); background: rgba(79, 174, 138, .08); }
  html.du.du-has-dock body { padding-bottom: 80px; }
  html.du.du-has-dock .back-top { bottom: 92px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html.du .site-offcanvas.offcanvas--visible #offcanvas-main-navigation .menu > li { animation: none; }
}

/* v1.1.1 — правки анкеты и слайдера */
html.du .du-gallery .flexslider,
html.du .du-gallery .flexslider.loading {
  max-width: none !important; width: 100% !important; top: 0 !important;
  margin: 0 !important; opacity: 1 !important; border: 0 !important;
}
html.du .du-gallery .flexslider.loading .slides > li:first-child { display: block !important; }
html.du .flex-direction-nav a { font-size: 0 !important; color: transparent !important; overflow: hidden; }
html.du .flex-direction-nav a:before { background: transparent !important; color: var(--du-gold) !important; width: auto; height: auto; }
html.du .single-post #breadcrumbs { padding: 18px 0 6px !important; margin: 0 !important; }
html.du .single-post article.du-profile-ready { margin-top: 10px !important; }
html.du .single-post-column > h1.entry-title { margin-top: 10px; }
html.du #offcanvas-main-navigation .menu { padding: 0 !important; margin: 0 !important; }
html.du #main-menu > li.current-menu-parent:not(.current-menu-item) > a::before { content: none; }
html.du #main-sidebar.du-hero-split .sidebar-container::after { background-size: auto 128%; background-position: 58% 8%; }
html.du .entry-details .entry-summary {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html.du .entry-details .entry-summary p { display: inline !important; -webkit-line-clamp: unset; }
html.du .entry-details .entry-summary { line-height: 1.6 !important; max-height: 3.2em; font-size: 15px; }
html.du .entry-details .entry-summary p { line-height: 1.6 !important; }

/* =====================================================================
   v1.2 — движение по Эмилю: меню, нажатия, галерея на свайпе, перетекание фото
   ===================================================================== */

/* меню: проявление + подъём; открытие 250ms, закрытие 150ms */
html.du .site-offcanvas .offcanvas-panel {
  transform: translateY(8px) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s !important;
  inset: 0 !important;
}
html.du .site-offcanvas:not(.offcanvas--visible) { pointer-events: none; }
html.du .site-offcanvas.offcanvas--visible .offcanvas-panel {
  transform: none !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s var(--du-ease), transform .25s var(--du-ease), visibility 0s !important;
}

/* сжатие при нажатии — всё, что нажимают пальцем */
html.du #offcanvas-main-navigation .menu > li > a,
html.du .du-strip a, html.du .du-oc-list a, html.du .du-thumb, html.du .offcanvas-close, html.du .menu-reveal {
  transition: transform .16s var(--du-ease), color .2s ease, border-color .2s ease, opacity .2s ease;
}
html.du #offcanvas-main-navigation .menu > li > a:active,
html.du .du-strip a:active, html.du .du-oc-list a:active, html.du .du-thumb:active,
html.du .offcanvas-close:active, html.du .menu-reveal:active { transform: scale(.97); }
html.du #offcanvas-main-navigation .menu > li > a { transform-origin: right center; }

/* галерея на свайпе */
html.du .du-snap-wrap { position: relative; }
html.du .du-snap-wrap .profile-status { position: absolute !important; top: 14px !important; right: 14px !important; z-index: 3; }
html.du .du-snap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--du-radius);
  background: var(--du-surface);
}
html.du .du-snap::-webkit-scrollbar { display: none; }
html.du .du-snap:focus-visible { outline: 2px solid var(--du-gold); outline-offset: 4px; }
html.du .du-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
html.du .du-slide img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
html.du .du-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
html.du .du-thumbs::-webkit-scrollbar { display: none; }
html.du .du-thumb {
  flex: 0 0 68px; padding: 0; border: 1px solid transparent; border-radius: 10px; overflow: hidden;
  background: none !important; opacity: .5; cursor: pointer; min-height: 44px;
}
html.du .du-thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
html.du .du-thumb.is-active { opacity: 1; border-color: var(--du-gold); }
@media (hover: hover) and (pointer: fine) { html.du .du-thumb:hover { opacity: 1; } }

/* перетекание фото карточки в анкету */
html.du .du-photo-main { view-transition-name: du-photo; }
::view-transition-group(du-photo) { animation-duration: .32s; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
::view-transition-image-pair(du-photo) { isolation: auto; }
::view-transition-old(du-photo), ::view-transition-new(du-photo) { height: 100%; object-fit: cover; overflow: clip; }
