/* Тема «Золотая Марка» — дополнения к theme.json. Работает и на сайте, и в редакторе. */
:root{--zm-navy:#21456a;--zm-pink:#cc69bb;--zm-crimson:#d4145a;--zm-r:8px}

/* ---------- шапка ---------- */
.zm-topbar{background:#fff}
.zm-topbar .wp-block-site-logo img{max-height:46px;width:auto}
.zm-contacts{gap:6px!important}
.zm-contacts .wp-block-image{margin:0}
.zm-contacts img{width:32px;height:32px;border:1px solid #dfe3ea;border-radius:6px;padding:3px;background:#fff;transition:transform .15s}
.zm-contacts a:hover img{transform:translateY(-2px);border-color:var(--zm-pink)}
.zm-navbar{background:var(--zm-navy)}
.zm-navbar .wp-block-navigation{color:#fff}
.zm-navbar .wp-block-navigation-item__content{padding:14px 2px}
.zm-navbar .wp-block-navigation .wp-block-navigation__submenu-container{background:#fff;color:var(--zm-navy);border:0;border-top:3px solid var(--zm-pink);box-shadow:0 10px 24px rgba(0,0,0,.14);min-width:230px;padding:6px 0}
.zm-navbar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:8px 16px}
.zm-navbar .wp-block-navigation .wp-block-navigation__submenu-container a:hover{color:var(--zm-crimson)}
.zm-navbar .wp-block-navigation .current-menu-item>a,.zm-navbar .wp-block-navigation a:hover{color:#f3c4ea}
.zm-navbar .wp-block-navigation__responsive-container.is-menu-open{background:var(--zm-navy);color:#fff}
.zm-sticky{position:sticky;top:0;z-index:50}
.admin-bar .zm-sticky{top:32px}
@media (max-width:782px){.admin-bar .zm-sticky{top:46px}}

/* ---------- секции ---------- */
.is-style-zm-section-navy{background:var(--zm-navy);color:#fff}
.is-style-zm-section-navy :where(h1,h2,h3,h4,h5,h6){color:#fff}
.is-style-zm-section-navy a:where(:not(.wp-element-button)){color:#f3c4ea}
.is-style-zm-section-grey{background:#e7e7e7}
.is-style-zm-section-light{background:#f5f5f5}
.is-style-zm-section-night{background:linear-gradient(90deg,#1b1414 0%,#1a1342 60%,#1d1060 100%);color:#fff}
.is-style-zm-section-night :where(h1,h2,h3,h4,h5,h6){color:#fff}
:where(.is-style-zm-section-navy,.is-style-zm-section-grey,.is-style-zm-section-light,.is-style-zm-section-night){padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)}
main>.wp-block-group.alignfull:first-child,.wp-site-blocks main.wp-block-group>.entry-content>.alignfull:first-child{margin-top:0}

/* ---------- карточки ---------- */
.is-style-zm-card{background:var(--zm-navy);color:#fff;border-radius:var(--zm-r);padding:22px 20px;box-shadow:0 2px 12px rgba(10,30,60,.12)}
.is-style-zm-card :where(h1,h2,h3,h4,h5,h6){color:var(--zm-pink)}
.is-style-zm-card a:where(:not(.wp-element-button)){color:#f3c4ea}
.is-style-zm-card-white{background:#fff;border-radius:var(--zm-r);padding:22px 20px;box-shadow:0 2px 14px rgba(10,30,60,.08)}
.wp-block-column>.is-style-zm-card,.wp-block-column>.is-style-zm-card-white{height:100%}
.is-style-zm-card .wp-block-buttons,.is-style-zm-card-white .wp-block-buttons{margin-top:auto}
.is-style-zm-card.is-layout-flex,.is-style-zm-card-white.is-layout-flex{flex-direction:column}

/* плитка: картинка с подписью-плашкой */
.is-style-zm-tile{position:relative;overflow:hidden;border-radius:4px;padding:0!important}
.is-style-zm-tile .wp-block-image{margin:0}
.is-style-zm-tile .wp-block-image img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;transition:transform .3s}
.is-style-zm-tile:hover .wp-block-image img{transform:scale(1.04)}
.is-style-zm-tile>p{position:absolute;right:6px;bottom:6px;margin:0;background:var(--zm-crimson);color:#fff;font-weight:700;font-size:14px;padding:3px 12px;border-radius:6px}

/* ---------- карусели: обычные колонки или галерея, листаются пальцем и стрелками ---------- */
.zm-slider-wrap{position:relative}
.wp-block-columns.is-style-zm-slider,.wp-block-gallery.is-style-zm-slider{flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:6px}
.wp-block-columns.is-style-zm-slider::-webkit-scrollbar,.wp-block-gallery.is-style-zm-slider::-webkit-scrollbar{display:none}
.wp-block-columns.is-style-zm-slider>.wp-block-column{flex:0 0 calc((100% - 2 * var(--wp--style--block-gap, 20px)) / 3)!important;scroll-snap-align:start}
.wp-block-gallery.is-style-zm-slider>figure.wp-block-image{flex:0 0 calc((100% - 3 * var(--wp--style--gallery-gap-default, 16px)) / 4)!important;width:auto!important;scroll-snap-align:start}
@media (max-width:900px){.wp-block-columns.is-style-zm-slider>.wp-block-column{flex-basis:70%!important}.wp-block-gallery.is-style-zm-slider>figure.wp-block-image{flex-basis:45%!important}}
@media (max-width:600px){.wp-block-columns.is-style-zm-slider>.wp-block-column{flex-basis:86%!important}.wp-block-gallery.is-style-zm-slider>figure.wp-block-image{flex-basis:70%!important}}
.zm-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;border:0;background:#fff;color:var(--zm-navy);box-shadow:0 2px 10px rgba(0,0,0,.18);cursor:pointer;font-size:20px;line-height:36px;z-index:2;display:none}
.zm-arrow.prev{left:-14px}.zm-arrow.next{right:-14px}
.zm-slider-wrap.can-scroll .zm-arrow{display:block}
.zm-arrow:disabled{opacity:.35;cursor:default}
.editor-styles-wrapper .wp-block-columns.is-style-zm-slider{overflow-x:auto}

/* ---------- заголовки и тексты ---------- */
.is-style-zm-spaced{letter-spacing:.42em;text-transform:uppercase;font-size:12px!important;font-weight:700;line-height:1.9}
.is-style-zm-gradient{background:linear-gradient(90deg,#cc69bb 0%,#d4145a 50%,#7b5cff 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.is-style-zm-caps{text-transform:uppercase;font-weight:700}
.is-style-zm-lead{color:var(--zm-pink)}
.is-style-zm-typed{font-size:var(--wp--preset--font-size--x-large);color:var(--zm-pink)}
.zm-typed-word{background:var(--zm-pink);color:#fff;border-radius:4px;padding:0 4px}
.zm-typed-word:after{content:'|';margin-left:1px;animation:zm-blink 1s steps(1) infinite}
@keyframes zm-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.zm-typed-word:after{animation:none}}

/* ---------- картинки ---------- */
.is-style-zm-shadow img{box-shadow:0 6px 24px rgba(10,30,60,.18)}
.is-style-zm-icon{text-align:center}.is-style-zm-icon img{max-width:120px;height:auto;margin:0 auto}

/* ---------- кнопки-контуры ---------- */
.is-style-zm-outline .wp-element-button{background:transparent!important;border:2px solid currentColor!important}

/* ---------- раскрывающиеся вопросы ---------- */
.wp-block-details summary{cursor:pointer;font-weight:600;color:var(--zm-navy)}
.wp-block-details[open] summary{margin-bottom:10px;color:var(--zm-crimson)}
.is-style-zm-section-navy .wp-block-details{color:var(--wp--preset--color--ink)}

/* ---------- формы WPForms в фирменном стиле ---------- */
.wpforms-container .wpforms-field input,.wpforms-container .wpforms-field textarea{border-radius:4px!important;border:1px solid #cfd6df!important}
.wpforms-container button[type=submit]{background:linear-gradient(90deg,#21456a,#d4145a)!important;color:#fff!important;border:2px solid #fff!important;border-radius:999px!important;padding:8px 22px!important;text-transform:uppercase}
.is-style-zm-section-navy .wpforms-container label,.is-style-zm-card .wpforms-container label{color:#fff!important}

/* ---------- подвал ---------- */
.zm-footer{background:var(--zm-navy);color:#d9e1ec;font-size:13px}
.zm-footer a{color:#fff}
.zm-footer .wp-block-navigation{font-size:13px}

/* ---------- плавающие кнопки связи ---------- */
.zm-float{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:10px;z-index:60}
.zm-float a{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;box-shadow:0 4px 14px rgba(0,0,0,.22);transition:transform .15s}
.zm-float a:hover{transform:scale(1.08)}
.zm-float-viber{background:#665cac}.zm-float-tg{background:#3e99d8}.zm-float-wa{background:#49e670}.zm-float-tel{background:#03e78b}
@media (max-width:600px){.zm-float{right:10px;bottom:10px}.zm-float a{width:42px;height:42px}}
.zm-contacts .zm-c img{border:0;border-radius:8px;padding:6px}
.zm-c-viber img{background:#665cac!important}.zm-c-tg img{background:#3e99d8!important}.zm-c-wa img{background:#25d366!important}.zm-c-tel img{background:#21456a!important}

/* первый экран */
.is-style-zm-section-hero{background:radial-gradient(circle at 15% 20%,#2c2470 0%,#1a1342 45%,#120d2b 100%);color:#fff;padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)}
.is-style-zm-section-hero :where(h1,h2,h3){color:#fff}
.is-style-zm-section-hero .wp-block-columns{align-items:center}
.is-style-zm-section-hero .wp-block-image img{max-height:460px;width:auto;margin-left:auto;border-radius:12px}
@media (max-width:781px){.is-style-zm-section-hero .wp-block-image img{max-height:320px;margin:0 auto}}
