/*
 * Yoana Approved Design 1.1.0
 * Production candidate validated against the approved staging design.
 */

:root {
  --yzsd-paper: #f3e8d6;
  --yzsd-paper-deep: #e9d7bc;
  --yzsd-ink: #292321;
  --yzsd-muted: #6f6460;
  --yzsd-wine: #6b2e35;
  --yzsd-wine-dark: #4e2026;
  --yzsd-old-gold: #b08a57;
  --yzsd-petrol: #18443f;
  --yzsd-petrol-dark: #10322f;
  --yzsd-sage-soft: #b7b9aa;
  --yzsd-rose-soft: #d7b9b4;
  --yzsd-line: #d6c1a3;
  --yzsd-white: #fffdf9;
  --yzsd-serif: "Playfair Display", Georgia, serif;
  --yzsd-sans: "Inter", Arial, sans-serif;
  --yzsd-content-max: 1160px;
  --yzsd-shell-max: 1280px;
  --yzsd-page-gutter: clamp(22px, 4.2vw, 60px);
  --yzsd-section-space: clamp(76px, 7.7vw, 108px);
  --yzsd-header-height: 88px;
  --yzsd-shadow: 0 18px 48px rgba(65, 42, 35, 0.1);
}

/* Compact WPForms consent: form 26 only. */
body.page-id-272 #wpforms-form-26 .wpforms-field-gdpr-checkbox > .wpforms-field-label,
body.page-id-272 #wpforms-form-26 .wpforms-field-checkbox > .wpforms-field-label {
  display: none !important;
}

body.page-id-272 #wpforms-form-26 .wpforms-field-gdpr-checkbox ul,
body.page-id-272 #wpforms-form-26 .wpforms-field-checkbox ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-272 #wpforms-form-26 .wpforms-field-gdpr-checkbox li,
body.page-id-272 #wpforms-form-26 .wpforms-field-checkbox li,
body.page-id-272 #wpforms-form-26 .wpforms-field-gdpr-checkbox .wpforms-field-row {
  align-items: start !important;
  display: grid !important;
  gap: 11px !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  margin: 0 !important;
}

body.page-id-272 #wpforms-form-26 .wpforms-field-gdpr-checkbox label,
body.page-id-272 #wpforms-form-26 .wpforms-field-checkbox label,
body.page-id-272 #wpforms-form-26 .wpforms-field-label-inline {
  color: var(--yzsd-muted) !important;
  font-family: var(--yzsd-sans) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

body.page-id-272 #wpforms-form-26 input[type="checkbox"] {
  appearance: none !important;
  background: var(--yzsd-white) !important;
  border: 1px solid var(--yzsd-wine) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  display: block !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  min-height: 18px !important;
  min-width: 18px !important;
  padding: 0 !important;
  position: relative;
  width: 18px !important;
}

body.page-id-272 #wpforms-form-26 input[type="checkbox"]:checked {
  background: var(--yzsd-wine) !important;
}

body.page-id-272 #wpforms-form-26 input[type="checkbox"]:checked::after {
  border: solid var(--yzsd-white);
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  left: 6px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 4px;
}

body.page-id-272 #wpforms-form-26 input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(107, 46, 53, 0.28) !important;
  outline-offset: 2px;
}

/* Shared custom WordPress shell for the corrected article and event views. */
body.yzsd-custom-template {
  background: var(--yzsd-paper) !important;
  color: var(--yzsd-ink) !important;
  font-family: var(--yzsd-sans) !important;
  font-size: 17px;
  line-height: 1.68;
  margin: 0;
  overflow-wrap: break-word;
}

body.yzsd-custom-template *,
body.yzsd-custom-template *::before,
body.yzsd-custom-template *::after {
  box-sizing: border-box;
}

body.yzsd-custom-template a {
  color: inherit;
}

body.yzsd-custom-template img {
  display: block;
  height: auto;
  max-width: 100%;
}

body.yzsd-custom-template h1,
body.yzsd-custom-template h2,
body.yzsd-custom-template h3 {
  color: var(--yzsd-ink);
  font-family: var(--yzsd-serif);
  font-weight: 500;
  text-wrap: balance;
}

body.yzsd-custom-template h1 {
  font-size: clamp(48px, 4.7vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

body.yzsd-custom-template h2 {
  font-size: clamp(35px, 3.6vw, 48px);
  line-height: 1.14;
}

body.yzsd-custom-template h3 {
  font-size: 24px;
  line-height: 1.25;
}

.yzsd-section-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--yzsd-shell-max);
  padding-left: var(--yzsd-page-gutter);
  padding-right: var(--yzsd-page-gutter);
  width: 100%;
}

.yzsd-skip-link {
  background: var(--yzsd-ink);
  color: var(--yzsd-white) !important;
  left: 24px;
  padding: 10px 16px;
  position: fixed;
  text-decoration: none;
  top: -100px;
  z-index: 100001;
}

.yzsd-skip-link:focus {
  top: 14px;
}

.yzsd-site-header {
  align-items: center;
  background: rgba(243, 232, 214, 0.97);
  border-bottom: 1px solid rgba(107, 46, 53, 0.1);
  display: grid;
  gap: clamp(18px, 2.2vw, 30px);
  grid-template-columns: minmax(210px, 1fr) auto minmax(130px, 1fr);
  min-height: var(--yzsd-header-height);
  padding: 14px max(var(--yzsd-page-gutter), calc((100vw - var(--yzsd-content-max)) / 2));
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.admin-bar .yzsd-site-header {
  top: 32px;
}

.yzsd-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  width: fit-content;
}

.yzsd-brand-name {
  font-family: var(--yzsd-serif);
  font-size: 22px;
  line-height: 1.1;
}

.yzsd-brand-role {
  color: var(--yzsd-wine);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-top: 5px;
  text-transform: uppercase;
}

.yzsd-main-nav {
  display: flex;
  gap: clamp(18px, 2vw, 27px);
}

.yzsd-main-nav a,
.yzsd-header-action {
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.yzsd-main-nav a:hover,
.yzsd-main-nav a:focus-visible {
  color: var(--yzsd-wine);
}

.yzsd-header-action {
  border-bottom: 1px solid var(--yzsd-wine);
  color: var(--yzsd-wine) !important;
  justify-self: end;
  padding-bottom: 3px;
}

.yzsd-mobile-nav {
  display: none;
  justify-self: end;
  position: relative;
}

.yzsd-mobile-nav summary {
  align-items: center;
  border: 0;
  color: var(--yzsd-wine);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 9px;
  letter-spacing: 0.04em;
  list-style: none;
  padding: 8px 0;
  text-transform: uppercase;
}

.yzsd-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.yzsd-mobile-nav summary::before {
  background: linear-gradient(
    to bottom,
    var(--yzsd-wine) 0 1px,
    transparent 1px 5px,
    var(--yzsd-wine) 5px 6px,
    transparent 6px 10px,
    var(--yzsd-wine) 10px 11px
  );
  content: "";
  height: 11px;
  transition: transform 180ms ease;
  width: 19px;
}

.yzsd-mobile-nav[open] summary::before {
  transform: rotate(90deg);
}

.yzsd-mobile-nav summary:focus-visible {
  outline: 2px solid rgba(107, 46, 53, 0.28);
  outline-offset: 5px;
}

.yzsd-mobile-nav nav {
  background: linear-gradient(155deg, rgba(255, 253, 249, 0.98) 0%, rgba(243, 232, 214, 0.99) 100%);
  border: 0;
  border-top: 1px solid rgba(176, 138, 87, 0.46);
  box-shadow: 0 26px 54px rgba(65, 42, 35, 0.14);
  display: grid;
  min-width: 280px;
  padding: 22px 26px 26px;
  position: absolute;
  right: 0;
  top: calc(100% + 16px);
}

.yzsd-mobile-nav nav::before {
  color: var(--yzsd-old-gold);
  content: "Навигация";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.yzsd-mobile-nav nav a {
  border: 0;
  font-family: var(--yzsd-serif);
  font-size: 18px;
  padding: 9px 0;
  position: relative;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.yzsd-mobile-nav nav a:hover,
.yzsd-mobile-nav nav a:focus-visible {
  color: var(--yzsd-wine);
  transform: translateX(4px);
}

.yzsd-mobile-booking-link {
  border-top: 1px solid rgba(176, 138, 87, 0.5) !important;
  color: var(--yzsd-wine) !important;
  font-family: var(--yzsd-sans) !important;
  font-size: 13px !important;
  font-weight: 600;
  margin-top: 8px;
  padding-top: 16px !important;
}

.yzsd-site-footer {
  background:
    radial-gradient(90% 180% at 18% 0%, rgba(255, 255, 255, 0.045) 0%, transparent 52%),
    linear-gradient(135deg, var(--yzsd-petrol-dark) 0%, var(--yzsd-petrol) 52%, #123a37 100%);
  border-top: 1px solid rgba(176, 138, 87, 0.72);
  color: var(--yzsd-white);
}

.yzsd-site-footer-inner {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(210px, 1fr) auto minmax(260px, 1fr);
  margin: 0 auto;
  max-width: var(--yzsd-shell-max);
  padding: 44px var(--yzsd-page-gutter);
}

.yzsd-footer-brand {
  display: flex;
  flex-direction: column;
}

.yzsd-footer-brand strong {
  color: var(--yzsd-white);
  font-family: var(--yzsd-serif);
  font-size: 21px;
  font-weight: 500;
}

.yzsd-footer-brand span {
  color: #c9a873;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.yzsd-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
}

.yzsd-footer-nav a,
.yzsd-footer-meta a {
  color: rgba(255, 253, 249, 0.82) !important;
  font-size: 12px;
  text-decoration: none;
}

.yzsd-footer-nav a:hover,
.yzsd-footer-nav a:focus-visible,
.yzsd-footer-meta a:hover,
.yzsd-footer-meta a:focus-visible {
  color: #d5b27e !important;
}

.yzsd-footer-meta {
  text-align: right;
}

.yzsd-footer-meta p {
  color: rgba(255, 253, 249, 0.67);
  font-size: 12px;
  margin: 0;
}

.yzsd-footer-meta p + p {
  margin-top: 5px;
}

.yzsd-eyebrow,
.yzsd-story-type {
  color: var(--yzsd-old-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 23px;
  text-transform: uppercase;
}

/* The two article layouts share one 740 px body / 290 px aside system. */
.yzsd-article-hero {
  max-width: 1040px;
  padding-bottom: 76px;
  padding-top: 72px;
}

.yzsd-article-hero h1 {
  font-size: clamp(46px, 5vw, 64px);
  margin: 0 0 30px;
  max-width: 960px;
}

.yzsd-article-deck p {
  color: var(--yzsd-muted);
  font-family: var(--yzsd-serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.55;
  margin: 0 0 30px;
  max-width: 900px;
}

.yzsd-article-meta p {
  border-top: 1px solid var(--yzsd-line);
  color: var(--yzsd-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0;
  max-width: 900px;
  padding-top: 20px;
}

.yzsd-article-layout,
.yzsd-process-shell .yoana-process-layout {
  align-items: start;
  display: grid !important;
  gap: clamp(58px, 8vw, 108px) !important;
  grid-template-columns: minmax(0, 740px) minmax(260px, 290px) !important;
  justify-content: space-between;
}

.yzsd-article-layout,
.yzsd-process-shell {
  padding-bottom: var(--yzsd-section-space);
}

.yzsd-article-body,
.yzsd-process-shell .yoana-process-body {
  font-size: 17px !important;
  line-height: 1.72 !important;
  max-width: 740px !important;
  min-width: 0;
}

/* The legacy global single-post rule must not turn the process text into a box. */
body.yzsd-custom-template .yzsd-process-shell .yoana-process-body {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.yzsd-article-body p,
.yzsd-process-shell .yoana-process-body p {
  margin: 0 0 27px;
}

.yzsd-article-body .yoana-article-intro,
.yzsd-process-shell .yoana-process-intro {
  color: var(--yzsd-wine-dark);
  font-family: var(--yzsd-serif);
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.55 !important;
  margin-bottom: 36px !important;
}

.yzsd-article-body h2,
.yzsd-process-shell .yoana-process-body h2 {
  color: var(--yzsd-ink);
  font-family: var(--yzsd-serif);
  font-size: clamp(32px, 3vw, 42px) !important;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.13;
  margin: 64px 0 25px !important;
}

.yzsd-article-body blockquote,
.yzsd-process-shell .yoana-process-quote {
  border-bottom: 1px solid var(--yzsd-line);
  border-left: 0;
  border-top: 1px solid var(--yzsd-line);
  color: var(--yzsd-wine-dark);
  font-family: var(--yzsd-serif);
  font-size: clamp(23px, 2.5vw, 31px) !important;
  line-height: 1.45;
  margin: 55px 0;
  padding: 34px 0 38px;
}

.yzsd-article-body blockquote p {
  margin: 0;
}

.yzsd-article-body .yoana-article-photo {
  margin: 60px 0 70px;
}

.yzsd-article-body .yoana-article-photo img {
  background: var(--yzsd-white);
  border: 9px solid var(--yzsd-white);
  box-shadow: 0 28px 70px rgba(65, 42, 35, 0.13);
  width: 100%;
}

.yzsd-article-body .yoana-article-photo figcaption {
  color: var(--yzsd-muted);
  font-size: 12px;
  margin-top: 12px;
  text-align: left;
}

.yzsd-article-body .yoana-article-closing,
.yzsd-process-shell .yoana-process-closing {
  background: var(--yzsd-paper-deep);
  margin-top: 80px;
  padding: clamp(34px, 5vw, 55px);
}

.yzsd-article-body .yoana-article-closing h2,
.yzsd-process-shell .yoana-process-closing h2 {
  margin-top: 14px !important;
}

.yzsd-article-aside,
.yzsd-process-shell .yoana-process-aside {
  display: grid;
  gap: 30px;
  position: sticky;
  top: 132px;
}

.yzsd-video-note,
.yzsd-process-shell .yoana-video-note {
  background: var(--yzsd-wine-dark);
  color: var(--yzsd-white);
  padding: 38px 34px;
}

.yzsd-video-note h2,
.yzsd-process-shell .yoana-video-note h2 {
  color: var(--yzsd-white);
  font-family: var(--yzsd-serif);
  font-size: 29px;
  line-height: 1.1;
  margin: 0 0 15px;
}

.yzsd-video-note .yzsd-story-type,
.yzsd-process-shell .yoana-video-note-label {
  color: var(--yzsd-rose-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
  margin: 0 0 15px;
}

.yzsd-process-shell .yoana-video-note-intro {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.yzsd-video-frame,
.yzsd-process-shell .yoana-video-frame {
  aspect-ratio: 9 / 16;
  margin: 26px auto 0;
  max-width: 360px;
  overflow: hidden;
  width: 100%;
}

.yzsd-video-frame figure,
.yzsd-video-frame .wp-block-embed__wrapper {
  height: 100%;
  margin: 0;
  width: 100%;
}

.yzsd-video-frame iframe,
.yzsd-process-shell .yoana-video-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.yzsd-article-principle,
.yzsd-process-shell .yoana-process-principle {
  background: var(--yzsd-sage-soft);
  box-shadow: 12px 12px 0 var(--yzsd-rose-soft);
  margin-right: 12px;
  padding: 32px;
  transform: rotate(1deg);
}

.yzsd-article-principle span,
.yzsd-process-shell .yoana-process-principle span,
.yzsd-process-shell .yoana-process-label,
.yzsd-article-body .yoana-label {
  color: var(--yzsd-wine-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.yzsd-article-principle p,
.yzsd-process-shell .yoana-process-principle p {
  font-family: var(--yzsd-serif);
  font-size: 20px;
  line-height: 1.55;
  margin: 17px 0 0;
}

.yzsd-process-shell .yoana-process-list {
  border-bottom: 1px solid var(--yzsd-line);
  border-top: 1px solid var(--yzsd-line);
  list-style: none;
  margin: 34px 0 42px;
  padding: 12px 0;
}

.yzsd-process-shell .yoana-process-list li {
  border-bottom: 1px solid rgba(176, 138, 87, 0.28);
  padding: 15px 10px 15px 32px;
  position: relative;
}

.yzsd-process-shell .yoana-process-list li:last-child {
  border-bottom: 0;
}

.yzsd-process-shell .yoana-process-list li::before {
  color: var(--yzsd-old-gold);
  content: "◆";
  font-size: 8px;
  left: 8px;
  position: absolute;
  top: 22px;
}

.yzsd-process-shell .yoana-process-boundary {
  background: var(--yzsd-petrol);
  border-top: 3px solid var(--yzsd-old-gold);
  color: var(--yzsd-white);
  margin: 44px 0;
  padding: clamp(28px, 4vw, 40px);
}

.yzsd-process-shell .yoana-process-boundary span {
  color: #d9bd8b;
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.yzsd-process-shell .yoana-process-boundary p {
  font-family: var(--yzsd-serif);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.5;
  margin: 0;
}

.yzsd-process-shell .yoana-process-actions,
.yzsd-article-body .wp-block-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.yzsd-process-shell .yoana-process-button,
.yzsd-article-body .wp-block-button__link {
  background: linear-gradient(112deg, #55232a 0%, var(--yzsd-wine) 25%, #86454f 50%, #6b2f38 72%, #55232a 100%);
  border: 1px solid rgba(74, 29, 36, 0.62);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(77, 29, 37, 0.16);
  color: var(--yzsd-white) !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  padding: 13px 24px;
  text-decoration: none;
}

.yzsd-process-shell .yoana-process-text-link {
  color: var(--yzsd-wine) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 8px;
}

/* Real semantic event archive structure. */
.yzsd-events-hero {
  align-items: end;
  display: grid;
  gap: clamp(48px, 8vw, 120px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  padding-bottom: 78px;
  padding-top: 88px;
}

.yzsd-events-hero h1 {
  margin: 0;
}

.yzsd-events-hero-lead {
  color: var(--yzsd-muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 8px;
}

.yzsd-events-list-section {
  background: var(--yzsd-white);
  padding: var(--yzsd-section-space) 0;
}

.yzsd-events-status {
  align-items: center;
  background: var(--yzsd-paper-deep);
  border: 1px solid var(--yzsd-line);
  border-left: 4px solid var(--yzsd-petrol);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  margin-bottom: 82px;
  padding: clamp(30px, 4vw, 48px);
}

.yzsd-events-status h2 {
  font-size: clamp(30px, 3vw, 40px);
  margin: 0;
}

.yzsd-events-status > p {
  color: var(--yzsd-muted);
  margin: 0;
}

.yzsd-events-section-heading {
  margin-bottom: 44px;
}

.yzsd-events-section-heading:not(:first-child) {
  margin-top: 82px;
}

.yzsd-events-section-heading h2 {
  margin: 0;
}

.yzsd-events-grid {
  display: grid;
  gap: 34px;
}

.yzsd-event-card {
  background: var(--yzsd-paper);
  border: 1px solid var(--yzsd-line);
  box-shadow: var(--yzsd-shadow);
  display: grid;
  grid-template-columns: 96px minmax(280px, 0.78fr) minmax(0, 1fr);
  overflow: hidden;
}

.yzsd-event-date {
  align-items: center;
  background: var(--yzsd-petrol-dark);
  color: var(--yzsd-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 14px;
  text-align: center;
}

.yzsd-event-date strong {
  font-family: var(--yzsd-serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  margin: 7px 0;
}

.yzsd-event-date span {
  color: rgba(255, 253, 249, 0.72);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.yzsd-event-card-image {
  background: var(--yzsd-paper-deep);
  min-height: 310px;
  overflow: hidden;
}

.yzsd-event-card-image img {
  height: 100% !important;
  object-fit: cover;
  width: 100%;
}

.yzsd-event-card-copy {
  padding: clamp(32px, 4.5vw, 54px);
}

.yzsd-event-meta {
  color: var(--yzsd-petrol);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 13px;
}

.yzsd-event-card-copy h3 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 17px;
}

.yzsd-event-card-copy h3 a {
  text-decoration: none;
}

.yzsd-event-card-copy > p:not(.yzsd-event-meta),
.yzsd-empty-events {
  color: var(--yzsd-muted);
}

.yzsd-text-link {
  color: var(--yzsd-wine) !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .yzsd-site-header {
    grid-template-columns: minmax(200px, 1fr) auto minmax(105px, 1fr);
  }

  .yzsd-main-nav {
    gap: 16px;
  }

  .yzsd-main-nav a,
  .yzsd-header-action {
    font-size: 13px;
  }

  .yzsd-site-footer-inner {
    grid-template-columns: 1fr auto;
  }

  .yzsd-footer-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .yzsd-site-header {
    grid-template-columns: 1fr auto auto;
  }

  .yzsd-main-nav {
    display: none;
  }

  .yzsd-mobile-nav {
    display: block;
  }

  .yzsd-mobile-nav nav {
    border-bottom: 1px solid rgba(176, 138, 87, 0.38);
    column-gap: clamp(32px, 7vw, 76px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 0;
    min-width: 0;
    padding: 24px max(var(--yzsd-page-gutter), calc((100vw - var(--yzsd-content-max)) / 2)) 30px;
    position: fixed;
    right: 0;
    top: calc(var(--yzsd-header-height) + 32px);
    width: 100vw;
  }

  body:not(.admin-bar) .yzsd-mobile-nav nav {
    top: var(--yzsd-header-height);
  }

  .yzsd-mobile-nav nav::before,
  .yzsd-mobile-booking-link {
    grid-column: 1 / -1;
  }

  .yzsd-article-layout,
  .yzsd-process-shell .yoana-process-layout,
  .yzsd-events-hero,
  .yzsd-events-status {
    grid-template-columns: 1fr !important;
  }

  .yzsd-article-body,
  .yzsd-process-shell .yoana-process-body {
    max-width: 780px !important;
  }

  .yzsd-article-aside,
  .yzsd-process-shell .yoana-process-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .yzsd-process-shell .yoana-process-aside {
    order: -1;
  }

  .yzsd-events-hero,
  .yzsd-events-status {
    gap: 24px;
  }

  .yzsd-event-card {
    grid-template-columns: 82px minmax(250px, 0.8fr) minmax(0, 1fr);
  }
}

@media (max-width: 782px) {
  body.admin-bar .yzsd-site-header {
    top: 46px;
  }

  body.admin-bar .yzsd-mobile-nav nav {
    top: calc(var(--yzsd-header-height) + 46px);
  }
}

@media (max-width: 720px) {
  :root {
    --yzsd-section-space: 72px;
  }

  .yzsd-event-card {
    grid-template-columns: 1fr;
  }

  .yzsd-event-date {
    flex-direction: row;
    gap: 9px;
    justify-content: flex-start;
    padding: 14px 22px;
  }

  .yzsd-event-date strong {
    font-size: 25px;
    margin: 0;
  }

  .yzsd-event-card-image {
    min-height: 0;
  }

  .yzsd-event-card-image img {
    height: auto !important;
  }
}

@media (max-width: 620px) {
  :root {
    --yzsd-header-height: 76px;
  }

  body.yzsd-custom-template {
    font-size: 16px;
    line-height: 1.66;
  }

  .yzsd-site-header {
    grid-template-columns: 1fr auto;
    padding-bottom: 11px;
    padding-top: 11px;
  }

  .yzsd-brand-name {
    font-size: 19px;
  }

  .yzsd-brand-role {
    font-size: 8px;
    letter-spacing: 0.11em;
  }

  .yzsd-header-action {
    display: none;
  }

  .yzsd-mobile-nav nav {
    grid-template-columns: 1fr;
    padding-bottom: 26px;
    padding-top: 20px;
  }

  .yzsd-mobile-nav nav a {
    font-size: 17px;
    padding: 8px 0;
  }

  body.yzsd-custom-template h1,
  .yzsd-article-hero h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  body.yzsd-custom-template h2 {
    font-size: 32px;
    line-height: 1.16;
  }

  body.yzsd-custom-template h3 {
    font-size: 22px;
  }

  .yzsd-article-hero {
    padding-bottom: 58px;
    padding-top: 52px;
  }

  .yzsd-article-deck p,
  .yzsd-article-body .yoana-article-intro,
  .yzsd-process-shell .yoana-process-intro {
    font-size: 19px !important;
  }

  .yzsd-article-body,
  .yzsd-process-shell .yoana-process-body {
    font-size: 16px !important;
    line-height: 1.72 !important;
  }

  .yzsd-article-body h2,
  .yzsd-process-shell .yoana-process-body h2 {
    font-size: 30px !important;
    margin-top: 50px !important;
  }

  .yzsd-article-aside,
  .yzsd-process-shell .yoana-process-aside {
    grid-template-columns: 1fr;
  }

  .yzsd-site-footer-inner {
    align-items: start;
    gap: 28px;
    grid-template-columns: 1fr;
    padding-bottom: 38px;
    padding-top: 38px;
  }

  .yzsd-footer-nav {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .yzsd-footer-meta {
    text-align: left;
  }

  .yzsd-events-hero {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  .yzsd-events-hero-lead {
    font-size: 16px;
  }

  .yzsd-events-status {
    margin-bottom: 60px;
    padding: 26px 22px;
  }

  .yzsd-events-status h2 {
    font-size: 29px;
  }

  .yzsd-event-card-copy {
    padding: 28px 22px 32px;
  }

  .yzsd-event-card-copy h3 {
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .yzsd-brand-name {
    font-size: 18px;
  }

  .yzsd-mobile-nav summary {
    font-size: 12px;
  }
}

/*
 * Bring the page-local mobile navigation on the four custom pages into the
 * same warm, full-width editorial system as the approved article and event
 * archive templates, without changing stored page content.
 */
@media (max-width: 980px) {
  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav summary {
    align-items: center !important;
    border: 0 !important;
    color: var(--yzsd-wine) !important;
    display: inline-flex !important;
    font-family: var(--yzsd-sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    gap: 9px !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
    padding: 8px 0 !important;
    text-transform: uppercase !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav summary::before {
    background: linear-gradient(
      to bottom,
      var(--yzsd-wine) 0 1px,
      transparent 1px 5px,
      var(--yzsd-wine) 5px 6px,
      transparent 6px 10px,
      var(--yzsd-wine) 10px 11px
    ) !important;
    content: "" !important;
    display: block !important;
    flex: 0 0 19px !important;
    height: 11px !important;
    transition: transform 180ms ease !important;
    width: 19px !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav[open] summary::before {
    transform: rotate(90deg) !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav summary:focus-visible {
    outline: 2px solid rgba(107, 46, 53, 0.28) !important;
    outline-offset: 5px !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav {
    background: linear-gradient(155deg, rgba(255, 253, 249, 0.98) 0%, rgba(243, 232, 214, 0.99) 100%) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(176, 138, 87, 0.38) !important;
    border-top: 1px solid rgba(176, 138, 87, 0.46) !important;
    box-shadow: 0 26px 54px rgba(65, 42, 35, 0.14) !important;
    column-gap: clamp(32px, 7vw, 76px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    left: 0 !important;
    min-width: 0 !important;
    padding: 24px max(var(--yz-page-gutter, 22px), calc((100vw - var(--yz-content-max, 1160px)) / 2)) 30px !important;
    position: fixed !important;
    right: 0 !important;
    top: calc(var(--yz-header-height, 88px) + 32px) !important;
    width: 100vw !important;
    z-index: 1001 !important;
  }

  body:not(.admin-bar):is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav {
    top: var(--yz-header-height, 88px) !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav::before {
    color: var(--yzsd-old-gold) !important;
    content: "Навигация" !important;
    display: block !important;
    font-family: var(--yzsd-sans) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    grid-column: 1 / -1 !important;
    letter-spacing: 0.17em !important;
    margin-bottom: 9px !important;
    text-transform: uppercase !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav a {
    background: transparent !important;
    border: 0 !important;
    color: var(--yzsd-ink) !important;
    font-family: var(--yzsd-serif) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    padding: 9px 0 !important;
    text-decoration: none !important;
    transition: color 160ms ease, transform 160ms ease !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav a:hover,
  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav a:focus-visible {
    color: var(--yzsd-wine) !important;
    transform: translateX(4px) !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav a[href*="appointments"] {
    border-top: 1px solid rgba(176, 138, 87, 0.5) !important;
    color: var(--yzsd-wine) !important;
    font-family: var(--yzsd-sans) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    grid-column: 1 / -1 !important;
    margin-top: 8px !important;
    padding-top: 16px !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav {
    top: calc(var(--yz-header-height, 76px) + 46px) !important;
  }
}

@media (max-width: 620px) {
  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav {
    grid-template-columns: 1fr !important;
    padding-bottom: 26px !important;
    padding-top: 20px !important;
  }

  body:is(.page-id-272, .page-id-279, .page-id-281, .page-id-283) .yoana-mobile-nav nav a {
    font-size: 17px !important;
    padding: 8px 0 !important;
  }
}

/* Astra keeps its native interaction on single-event and privacy views. */
@media (max-width: 921px) {
  .ast-mobile-header-wrap .ast-button-wrap .menu-toggle {
    align-items: center !important;
    border: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    gap: 9px !important;
  }

  .ast-mobile-header-wrap .ast-button-wrap .menu-toggle::before {
    background: linear-gradient(
      to bottom,
      var(--yzsd-wine) 0 1px,
      transparent 1px 5px,
      var(--yzsd-wine) 5px 6px,
      transparent 6px 10px,
      var(--yzsd-wine) 10px 11px
    ) !important;
    content: "" !important;
    display: block !important;
    flex: 0 0 19px !important;
    height: 11px !important;
    transition: transform 180ms ease !important;
    width: 19px !important;
  }

  .ast-mobile-header-wrap .ast-button-wrap .menu-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg) !important;
  }

  .ast-mobile-header-wrap .ast-button-wrap .menu-toggle:focus,
  .ast-mobile-header-wrap .ast-button-wrap .menu-toggle:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: 2px solid rgba(107, 46, 53, 0.28) !important;
    outline-offset: 5px !important;
  }

  .ast-mobile-header-wrap .ast-button-wrap .menu-toggle::after {
    border: 0 !important;
    content: "Меню" !important;
    font-family: var(--yzsd-sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    padding: 0 !important;
    text-transform: uppercase !important;
  }

  #ast-mobile-header .ast-mobile-header-content {
    background: linear-gradient(155deg, rgba(255, 253, 249, 0.98) 0%, rgba(243, 232, 214, 0.99) 100%) !important;
    border-bottom: 1px solid rgba(176, 138, 87, 0.38) !important;
    border-top: 1px solid rgba(176, 138, 87, 0.46) !important;
    box-shadow: 0 26px 54px rgba(65, 42, 35, 0.14) !important;
    z-index: 1000 !important;
  }

  #ast-mobile-header .ast-mobile-header-content .ast-builder-menu-mobile,
  #ast-mobile-header .main-header-menu,
  #ast-mobile-header .main-header-menu.ast-flex,
  #ast-mobile-header .main-header-menu > .menu-item {
    background: transparent !important;
  }

  #ast-mobile-header .main-header-menu,
  #ast-mobile-header .main-header-menu.ast-flex {
    box-sizing: border-box !important;
    padding: 20px var(--yz-page-gutter, 22px) 26px !important;
  }

  #ast-mobile-header .main-header-menu::before {
    color: var(--yzsd-old-gold) !important;
    content: "Навигация" !important;
    display: block !important;
    font-family: var(--yzsd-sans) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.17em !important;
    margin-bottom: 9px !important;
    text-transform: uppercase !important;
  }

  #ast-mobile-header .main-header-menu > .menu-item > .menu-link {
    background: transparent !important;
    border: 0 !important;
    color: var(--yzsd-ink) !important;
    font-family: var(--yzsd-serif) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    height: auto !important;
    line-height: 1.35 !important;
    min-height: 0 !important;
    padding: 8px 0 !important;
  }

  #ast-mobile-header .main-header-menu > .menu-item > .menu-link:hover,
  #ast-mobile-header .main-header-menu > .menu-item > .menu-link:focus-visible,
  #ast-mobile-header .main-header-menu > .current-menu-item > .menu-link {
    color: var(--yzsd-wine) !important;
  }

  #ast-mobile-header .main-header-menu > .menu-item > .menu-link[href*="appointments"] {
    border-top: 1px solid rgba(176, 138, 87, 0.5) !important;
    color: var(--yzsd-wine) !important;
    font-family: var(--yzsd-sans) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    padding-top: 16px !important;
  }
}
