/* Орехи Мечты — shared interface refinements, v44.
   Brand colours and type stay local; all movement uses transform/opacity.
   Packaging, controls and captions have separate, stable layout areas. */
/* v44 review: preserve the release layout and keep recovery feedback readable. */
.dn-hero-status { grid-column: 1 / -1; margin: 10px 0 0; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 16px; background: var(--cream); color: var(--ink); font-size: 15px; line-height: 1.5; }
.dn-hero-status:empty { margin: 0; padding: 0; border: 0; line-height: 0; }
.dn-footer-phone { display: inline-flex; align-items: center; min-height: 44px; }
.dn-stage-controls > button:focus-visible, .dn-stage-link:focus-visible { outline-color: #fff9ee; outline-offset: -5px; }
.dn-original-article { overflow-wrap: anywhere; }
.dn-archive { margin-top: 0; padding-top: clamp(32px, 5vw, 64px); }
.dn-archive .dn-section-head h1 em { color: var(--caramel); }
.dn-footer .dn-motion-toggle { color: var(--cream); background: transparent; border-color: var(--cream); }
.dn-footer .dn-motion-toggle[aria-pressed="true"] { color: var(--ink); background: var(--peach); border-color: var(--peach); }
.dn-new-hero .dn-new-stage .dn-pack-play { touch-action: pan-y pinch-zoom; }
:root {
  --ui-surface: #fffdf7;
  --ui-line: #29163c29;
  --ui-radius: 24px;
  --ui-shadow: 3px 4px 0 #29163c;
  --ui-speed: 180ms;
  --ui-ease: cubic-bezier(.2,.7,.2,1);
  --section-line: 2px solid var(--ink);
  --section-space: clamp(32px,5vw,64px);
  --content-line: 1px solid #29163c40;
}
html { scroll-padding-bottom: 88px; }
/* Major page sections share one boundary; framed cards keep their own borders. */
#main > .dn-page-intro + :is(.dn-section,.dn-contact-grid),
#main > .dn-section + .dn-section,
#main > .dn-marquee + .dn-collections {
  border-top: var(--section-line);
  padding-top: var(--section-space) !important;
}
#main + .dn-footer { border-top: var(--section-line); }
/* The visible marquee already separates the hero from the collections. */
@media(min-width:761px) {
  #main > .dn-marquee + .dn-collections { border-top: 0; }
}
.dn-contact-grid > div:first-child > .dn-contact-item:first-child {
  border-top: 0; padding-top: 0;
}
.dn-privacy section + section {
  border-top: var(--content-line); padding-top: clamp(24px,3vw,32px);
}
.dn-privacy-operator { border: var(--content-line); }
.dn-original-article > .t-redactor__tte-view,
.dn-original-article .t-redactor__text + .t-redactor__text {
  border-top: var(--content-line); padding-top: 28px;
}
.dn-original-article .t-redactor__text + .t-redactor__text { margin-top: 28px; }
@media(max-width:760px) {
  .dn-contact-grid > .dn-form-panel {
    border-top: var(--section-line); padding-top: var(--section-space);
  }
}
:is(button,a,input,select,summary) { -webkit-tap-highlight-color: transparent; }
:is(a,button,input,select,summary):focus-visible {
  outline: 3px solid #7033b8;
  outline-offset: 4px;
}
:is(.dn-footer,.dn-new-stage) :is(a,button):focus-visible {
  outline-color: #ffdf59;
  box-shadow: 0 0 0 6px #29163c;
}
:is(.dn-section-head,.dn-page-intro,.dn-product-info) :is(h1,h2,h3) { text-wrap: balance; }
.dn-header { min-height: 96px; }
.dn-nav a { position: relative; }
.dn-button { min-height: 50px; padding: 14px 24px; }
:is(.dn-button,.dn-chip,.dn-menu,.dn-stage-controls>button) {
  touch-action: manipulation;
  transition: background-color var(--ui-speed), color var(--ui-speed), box-shadow var(--ui-speed);
}
:is(.dn-button,.dn-chip,.dn-menu):active { box-shadow: inset 0 0 0 2px #29163c24; }
.dn-nav a[aria-current="page"] { color: var(--caramel); }

/* One stage: the packaging moves; its backdrop and navigation do not. */
.dn-new-hero .dn-new-stage {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 0;
  height: auto; min-height: 0; padding: 0; margin: 0; align-self: start;
}
.dn-new-hero .dn-new-stage .dn-collection-label {
  position: static; display: flex; justify-content: center;
  margin: 0 0 28px; min-height: 21px; line-height: 21px;
}
.dn-new-hero .dn-new-stage .dn-pack-play {
  position: relative; inset: auto; display: block; width: 100%; max-width: none;
  height: clamp(380px,35vw,490px); margin: 0; padding: 14px 20px 0;
  border-radius: 28px 28px 0 0; box-shadow: none;
  transform: none !important; translate: none; overflow: hidden;
}
html[data-motion-preference="on"] .dn-new-stage .dn-pack-play { animation: none !important; }
.dn-new-stage .dn-pack-float { display: block; width: 100%; height: 100%; }
.dn-new-stage .dn-pack-play img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  animation: none !important; transition: none;
}
/* Idle motion and arrow transitions belong to different elements. */
html[data-motion-preference="on"] .dn-new-stage .dn-pack-float {
  animation: dn-float-gently 6s ease-in-out infinite !important;
  animation-play-state: paused !important;
}
html[data-motion-preference="on"] .dn-new-stage[data-motion-visible="true"] .dn-pack-float { animation-play-state: running !important; }
html[data-motion-preference="on"] .dn-new-stage[data-motion-visible="true"] .dn-pack-play:focus-visible .dn-pack-float { animation-play-state: paused !important; }
html.dn-motion-paused[data-motion-preference="on"] .dn-new-stage[data-motion-visible] .dn-pack-float { animation-play-state: paused !important; }
.dn-new-hero .dn-new-stage .dn-stage-controls {
  position: relative; inset: auto; width: 100%; margin: 0;
  display: grid; grid-template-columns: 48px minmax(0,1fr) 48px;
  align-items: center; gap: 12px; min-height: 112px; padding: 16px 20px 10px;
  background: #30283c; color: #fff9ee;
}
.dn-new-stage .dn-stage-controls>button {
  width: 48px; height: 48px; min-width: 48px; min-height: 48px;
  background: #ffdf59; color: #29163c; border: 0;
}
.dn-new-stage .dn-stage-controls strong { font-size: 19px; line-height: 1.35; min-height: 2.7em; display: grid; align-items: center; }
.dn-new-stage .dn-stage-controls small { color: #e5d5f3; font-size: 13px; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.dn-new-hero .dn-new-stage .dn-stage-link {
  position: relative; inset: auto; display: flex; justify-content: center; align-items: center;
  min-height: 56px; margin: 0; padding: 10px 20px 18px;
  background: #30283c; color: #ffdf59; border-radius: 0 0 28px 28px;
  font-size: 16px; text-underline-offset: 5px;
}
.dn-new-stage .dn-stage-spark--a { top: 75px; left: 24px; color: #ffdf59; }
.dn-mood-tabs button { border-radius: 20px; }
.dn-mood-tabs button[aria-pressed="true"] { box-shadow: 0 3px 0 #fff9ee; }

/* Family cards keep their aligned rows and large, contrasting pack galleries. */
#main .dn-family-grid { column-gap: 32px; }
#main .dn-family-grid>.dn-collection-card { border-radius: 28px; box-shadow: var(--ui-shadow); }
.dn-collection-top>span:first-child {
  display: inline-flex; align-items: center; min-height: 32px;
  border: 1px solid #29163c44; padding: 4px 12px; border-radius: 100px;
  background: #fff9ee99; font-size: 14px; font-weight: 700;
}
#main .dn-family-grid .dn-collection-bottom { font-size: 16px; line-height: 1.5; }
#main .dn-family-grid .dn-collection-bottom b { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #29163c66; border-radius: 50%; }

/* Clear collections: comfortable filters, consistent cards, visible weight. */
.dn-page-intro { border-radius: 0 0 32px 32px; padding-block: 36px 40px; }
.dn-page-intro h1 { font-size: clamp(40px,4.6vw,66px); line-height: 1.1; margin-block: 20px; }
.dn-page-intro>p { max-width: 720px; }
.dn-filters {
  display: flex; flex-direction: column; align-items: stretch; gap: 20px;
  padding: 24px; margin-bottom: 18px; background: var(--ui-surface);
  border: 1px solid var(--ui-line); border-radius: var(--ui-radius);
}
.dn-filter-tools { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); width: 100%; gap: 20px; order: 0; }
.dn-filter-tools label { display: grid; gap: 8px; min-width: 0; color: var(--ink); }
.dn-search,.dn-select { width: 100%; min-width: 0; min-height: 50px; border-radius: 14px; background: #fff; padding: 12px 14px; font-size: 16px; }
.dn-chips { gap: 8px; order: 1; }
.dn-filters .dn-chips:has(>button:only-child),
.dn-filter-tools label:has(select option:only-child) { display: none; }
.dn-filters:has(select option:only-child) .dn-filter-tools { grid-template-columns: minmax(0,1fr); }
.dn-chip { min-height: 44px; padding: 10px 16px; font-size: 15px; white-space: nowrap; }
.dn-catalog-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; margin-bottom: 16px; }
.dn-catalog-status p { margin: 0; }
.dn-filter-reset { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; color: var(--ink); min-height: 44px; padding: 8px 0 8px 12px; }
.dn-filter-reset[hidden] { display: none; }
.dn-catalog-grid { gap: 32px 24px; align-items: stretch; }
.dn-card {
  display: flex; flex-direction: column; padding: 10px;
  border: 1.5px solid #29163c; border-radius: 26px;
  background: var(--ui-surface); box-shadow: var(--ui-shadow);
}
.dn-card[hidden] { display: none; }
.dn-card .dn-card-image {
  flex: none; border: 0; border-radius: 18px; aspect-ratio: 1;
  padding: 12px; gap: 10px; grid-template-rows: minmax(34px,auto) minmax(0,1fr);
  box-shadow: none; transform: none;
}
.dn-card[data-kind="mix"] .dn-card-image { aspect-ratio: 1; }
.dn-card:hover .dn-card-image { box-shadow: none; transform: none; }
.dn-card .dn-card-image>img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.dn-card:hover .dn-card-image>img { transform: none; }
.dn-card-image .dn-tag { font-size: 13px; line-height: 1.3; padding: 7px 11px; border: 0; max-width: 100%; }
.dn-card .dn-card-bottom { flex: 1; padding: 20px 8px 10px; gap: 10px; align-items: stretch; }
.dn-card-bottom>div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.dn-card .dn-card-bottom h3 { font-size: clamp(20px,1.8vw,24px); line-height: 1.25; margin: 0 0 18px; max-width: none; letter-spacing: -.5px; }
.dn-card .dn-card-bottom .dn-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-top: auto; font-size: 14px; font-weight: 600; letter-spacing: 0;
  line-height: 1.4; text-transform: none; color: var(--ink);
}
.dn-card-weight { white-space: nowrap; border: 1px solid var(--ui-line); background: #f0e8fa; border-radius: 100px; padding: 5px 10px; }
.dn-card-arrow { align-self: flex-end; width: 44px; height: 44px; border-width: 1.5px; }
[data-empty]:not([hidden]) { padding: 32px 24px; border: 1px dashed #68478a; border-radius: var(--ui-radius); text-align: center; background: #f0e8fa; }

/* Editorial cards retain a consistent picture and reading order. */
/* Separate the production film from the articles on the home page. */
.dn-production + .dn-journal-section {
  background: var(--cream);
}
.dn-journal-grid { gap: 26px; align-items: stretch; }
.dn-journal-card {
  background: var(--ui-surface); border-radius: 24px; padding: 16px;
  box-shadow: var(--ui-shadow); transform: none;
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.dn-journal-card>img,.dn-archive .dn-journal-card>img {
  display: block; width: 100%; height: 210px; min-height: 0;
  object-fit: cover; border-radius: 14px; margin: 0;
}
.dn-journal-card>h3 { font-size: 24px; line-height: 1.3; margin: 0; letter-spacing: -.5px; }
.dn-journal-card>.dn-textlink { margin-top: auto; min-height: 44px; display: flex; align-items: center; align-self: start; font-size: 16px; }
.dn-value,.dn-step { padding: 28px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-surface); }
.dn-value h3,.dn-step h3 { line-height: 1.2; text-wrap: balance; }
.dn-values { gap: 24px; }
.dn-faq-list {
  border: 2px solid var(--ink); border-radius: var(--ui-radius);
  background: var(--ui-surface); box-shadow: var(--ui-shadow);
}
.dn-faq-list details { margin: 0; padding: 0; border: 0; }
.dn-faq-list details+details { border-top: 1px solid #29163c33; }
.dn-faq-list details:first-child,
.dn-faq-list details:first-child summary { border-radius: 22px 22px 0 0; }
.dn-faq-list details:last-child,
.dn-faq-list details:last-child summary { border-radius: 0 0 22px 22px; }
.dn-faq-list summary {
  min-height: 88px; padding: 22px 24px; gap: 20px;
  font-size: 20px; line-height: 1.45;
}
.dn-faq-list summary::after {
  display: grid; place-items: center; flex: 0 0 36px;
  width: 36px; height: 36px; border: 1px solid #29163c33;
  border-radius: 50%; background: #ffdf59; color: var(--ink);
  font-size: 26px; line-height: 1;
}
.dn-faq-list details[open] { background: #f6f0fc; }
.dn-faq-list details[open] summary { color: #47227a; }
.dn-faq-list summary:focus-visible { outline-offset: -6px; }
.dn-faq-list p {
  max-width: none; margin: 0; padding: 0 80px 24px 24px;
  font-size: 18px; line-height: 1.7;
}
.dn-faq-list p a { text-decoration: underline; text-underline-offset: 3px; }
@media(hover:hover) and (pointer:fine) {
  .dn-faq-list summary:hover { background: #ffdf5926; }
}
@media(max-width:600px) {
  .dn-faq-list summary { min-height: 88px; padding: 20px 16px; gap: 16px; font-size: 18px; }
  .dn-faq-list p { padding: 0 16px 24px; font-size: 17px; }
}
.dn-original-article { max-width: 760px; margin-inline: auto; }
.dn-original-article :is(p,li) { line-height: 1.8; }

@media(hover:hover) and (pointer:fine) {
  .dn-stage-controls>button:hover { background: #fff9ee; transform: none; }
  .dn-card:hover { border-color: #7033b8; }
  .dn-card:hover .dn-card-arrow { background: #47227a; color: #fff9ee; }
  .dn-journal-card:hover { border-color: #7033b8; }
}
@media(max-width:1100px) and (min-width:761px) {
  .dn-new-hero .dn-new-stage .dn-pack-play { height: 380px; }
  .dn-new-stage .dn-stage-controls strong { font-size: 17px; min-height: 5.4em; }
  .dn-new-hero .dn-new-stage .dn-stage-controls { grid-template-columns: 44px minmax(0,1fr) 44px; padding-inline: 12px; gap: 8px; }
  .dn-new-stage .dn-stage-controls>button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}
@media(max-width:760px) {
  .dn-header { min-height: 72px; }
  .dn-nav { top: calc(100% - 1px); left: 0; right: 0; border: 2px solid var(--ink); border-radius: 0 0 24px 24px; padding: 12px 20px; background: #fff9ee; box-shadow: 0 6px 0 #29163c; gap: 0; }
  .dn-nav a { min-height: 54px; padding: 12px 4px; font-size: 20px; border-bottom: 1px solid var(--ui-line); }
  .dn-nav a:last-child { border-bottom: 0; }
  .dn-mobile-nav { border-top: 1px solid var(--ui-line); box-shadow: 0 -4px 20px #29163c0d; }
  .dn-mobile-nav a { min-height: 58px; gap: 3px; border-radius: 14px; }
  .dn-mobile-nav a.is-active { background: #47227a; color: #fff9ee; }
  .dn-new-hero .dn-new-stage { gap: 0; padding: 0; }
  .dn-new-hero .dn-new-stage .dn-collection-label { display: none; }
  .dn-new-hero .dn-new-stage .dn-pack-play { width: 100%; max-width: none; height: clamp(350px,105vw,440px); padding: 12px 12px 0; border-radius: 24px 24px 0 0; }
  .dn-new-hero .dn-new-stage .dn-stage-controls { grid-template-columns: 48px minmax(0,1fr) 48px; padding: 12px 12px 4px; min-height: 104px; gap: 10px; }
  .dn-new-hero .dn-new-stage .dn-stage-controls strong { font-size: 17px; line-height: 1.35; min-height: 5.4em; max-width: none; }
  .dn-new-hero .dn-new-stage .dn-stage-link { min-height: 52px; border-radius: 0 0 24px 24px; font-size: 16px; }
  .dn-mood-tabs button { min-height: 116px; padding: 14px 10px; gap: 8px; }
  .dn-mood-tabs b { font-size: clamp(17px,4.7vw,23px); }
  .dn-mood-tabs small { font-size: 14px; line-height: 1.35; }
  .dn-new-stage .dn-stage-spark--a { top: 20px; left: 20px; }
  .dn-new-hero .dn-hero-footer { margin-top: 24px; }
  #main .dn-family-grid>.dn-collection-card { padding: 22px; }
  .dn-page-intro { padding: 24px 16px 28px; border-radius: 0 0 24px 24px; }
  .dn-page-intro h1 { font-size: clamp(28px,7.6vw,38px); line-height: 1.12; }
  .dn-page-intro>p { font-size: 17px; line-height: 1.65; }
  .dn-filters { padding: 18px; gap: 16px; border-radius: 20px; }
  .dn-filter-tools { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dn-filter-tools label { font-size: 14px; }
  .dn-search,.dn-select { min-height: 48px; padding: 10px 12px; }
  .dn-chip { font-size: 14px; padding: 9px 13px; }
  .dn-catalog-status { gap: 10px; }
  .dn-catalog-status p,.dn-filter-reset { font-size: 14px; }
  .dn-journal-grid { gap: 20px; }
  .dn-journal-card { display: grid; grid-template-columns: 104px minmax(0,1fr); column-gap: 16px; row-gap: 10px; padding: 16px; border-radius: 20px; }
  .dn-journal-card>img,.dn-archive .dn-journal-card>img { grid-column: 1; grid-row: 1/3; width: 104px; height: 130px; border-radius: 12px; }
  .dn-journal-card>h3 { grid-column: 2; font-size: 20px; line-height: 1.3; margin: 0; }
  .dn-journal-card>.dn-textlink { grid-column: 2; min-height: 44px; font-size: 16px; margin: 0; }
  .dn-value,.dn-step { padding: 24px; }
}
@media(max-width:600px) {
  .dn-grid:has(>.dn-card) { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .dn-catalog-grid .dn-card-image { aspect-ratio: auto; height: clamp(290px,88vw,390px); }
  .dn-catalog-grid .dn-card[data-kind="mix"] .dn-card-image { aspect-ratio: auto; height: clamp(320px,96vw,425px); }
  .dn-catalog-grid .dn-card-bottom h3 { font-size: 24px; line-height: 1.25; }
  .dn-catalog-grid .dn-card-bottom { padding: 18px 8px 10px; }
  .dn-filter-tools { grid-template-columns: minmax(0,1fr); }
  .dn-card-image .dn-tag { font-size: 14px; }
  .dn-catalog-grid .dn-card-meta { font-size: 15px; }
}
@media(max-width:360px) {
  .dn-journal-card { grid-template-columns: 80px minmax(0,1fr); gap: 10px 12px; padding: 12px; }
  .dn-journal-card>img,.dn-archive .dn-journal-card>img { width: 80px; height: 112px; }
  .dn-journal-card>h3 { font-size: 18px; }
  .dn-new-hero .dn-new-stage .dn-stage-controls { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; }
  .dn-new-stage .dn-stage-controls>button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .dn-catalog-grid .dn-card-bottom h3 { font-size: 22px; }
}
@media print { .dn-filter-reset,.dn-catalog-status { display: none; } }
