/* Минимальный режим: чистая одностраничная вёрстка, цвета/шрифты в духе oz */

:root {
  --mf-ink: #1c2733;
  --mf-muted: #5b6875;
  --mf-accent: #2c4c9a;
  --mf-accent-dark: #223b78;
  --mf-gold: #f7d774;
  --mf-bg: #ffffff;
  --mf-bg-alt: #f4f6fa;
  --mf-line: #e2e7ee;
  --mf-radius: 12px;
}

html { color-scheme: light; scroll-behavior: smooth; }
body.oz-minimal {
  margin: 0;
  font-family: Roboto, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--mf-ink);
  background: var(--mf-bg);
  -webkit-font-smoothing: antialiased;
}
.oz-minimal img { max-width: 100%; height: auto; }
.oz-minimal a { color: var(--mf-accent); }
.oz-minimal h1, .oz-minimal h2, .oz-minimal h3 { line-height: 1.25; margin: 0 0 0.5em; }
.oz-minimal .screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }

.mf-wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Header */
.mf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--mf-line);
}
.mf-header-in { display: flex; align-items: center; gap: 26px; height: 62px; }
.mf-logo {
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: var(--mf-ink);
  letter-spacing: -0.2px;
}
.mf-logo span { color: var(--mf-accent); }
.mf-nav { display: flex; gap: 20px; margin-left: auto; }
.mf-nav a {
  text-decoration: none;
  color: var(--mf-ink);
  font-size: 15px;
  font-weight: 500;
}
.mf-nav a:hover { color: var(--mf-accent); }

/* Buttons */
.mf-btn {
  display: inline-block;
  background: var(--mf-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 11px 22px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.mf-btn:hover { background: var(--mf-accent-dark); }
.mf-btn-small { padding: 8px 16px; font-size: 14px; }
.mf-btn-ghost {
  background: transparent;
  color: var(--mf-accent) !important;
  box-shadow: inset 0 0 0 1.6px var(--mf-accent);
}
.mf-btn-ghost:hover { background: #eef2fa; }

/* Hero */
.mf-hero { padding: 72px 0 56px; }
.mf-kicker { font-size: 19px; margin: 0 0 10px; color: var(--mf-muted); }
.mf-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}
.mf-lede { font-size: 18px; max-width: 720px; color: var(--mf-muted); margin: 0 0 22px; }
.mf-badge {
  display: inline-block;
  background: var(--mf-gold);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 26px;
}
.mf-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Socials */
.mf-socials { display: inline-flex; gap: 6px; margin-left: 6px; }
.mf-social {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--mf-muted);
}
.mf-social svg { width: 21px; height: 21px; }
.mf-social:hover { color: var(--mf-accent); background: var(--mf-bg-alt); }

/* Sections */
.mf-section { padding: 52px 0; }
.mf-section-alt { background: var(--mf-bg-alt); }
.mf-section h2 { font-size: 27px; letter-spacing: -0.3px; margin-bottom: 24px; }

.mf-grid { display: grid; gap: 20px; }
.mf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mf-grid-2 { grid-template-columns: repeat(2, 1fr); }

.mf-card {
  display: block;
  background: var(--mf-bg);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.mf-card:hover { border-color: var(--mf-accent); box-shadow: 0 4px 18px rgba(44, 76, 154, 0.10); }
.mf-card h3 { font-size: 18.5px; }
.mf-card p { margin: 0; color: var(--mf-muted); font-size: 15.5px; }
.mf-card-slim { padding: 18px 20px; }
.mf-card-slim h3 { font-size: 17px; margin-bottom: 4px; }
.mf-card-slim p { font-size: 14.5px; }

/* Apps */
.mf-app { display: flex; gap: 18px; }
.mf-app-icon { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.mf-app-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px !important; }
.mf-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 14px 7px;
  line-height: 1.15;
}
.mf-store-badge svg { width: 22px; height: 22px; }
.mf-store-badge small { display: block; font-size: 10px; font-weight: 400; opacity: 0.85; }
.mf-store-badge span { font-size: 15px; font-weight: 600; }
.mf-store-badge:hover { background: #222; }
.mf-store-soon { font-size: 13px; color: var(--mf-muted); }

/* Projects */
.mf-project-shot {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--mf-line);
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}
.mf-project-url { font-size: 13.5px !important; margin-top: 8px !important; color: var(--mf-accent) !important; }
.mf-ext { font-size: 14px; color: var(--mf-muted); }

/* Blog + gallery columns */
.mf-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; }
.mf-post {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--mf-line);
  text-decoration: none;
  color: inherit;
}
.mf-post img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex: none; }
.mf-post strong { display: block; font-size: 16px; line-height: 1.35; }
.mf-post:hover strong { color: var(--mf-accent); }
.mf-post time { font-size: 13px; color: var(--mf-muted); }
.mf-more { font-weight: 600; text-decoration: none; }
.mf-more:hover { text-decoration: underline; }
.mf-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mf-photo-grid a { display: block; border-radius: 8px; overflow: hidden; }
.mf-photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform 0.2s; }
.mf-photo-grid a:hover img { transform: scale(1.05); }

/* Hire form */
.mf-section-hire { background: var(--mf-accent); color: #fff; }
.mf-hire-in { max-width: 680px; text-align: center; }
.mf-section-hire h2 { color: #fff; }
.mf-section-hire > .mf-wrap > p, .mf-hire-in > p { color: #d8e0f2; margin-top: -8px; }
.mf-form { margin-top: 26px; }
.mf-form-fields { display: flex; gap: 10px; }
.mf-form-fields input {
  flex: 1;
  font: inherit;
  font-size: 15.5px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  min-width: 0;
}
.mf-form-fields .mf-btn { background: var(--mf-gold); color: var(--mf-ink) !important; flex: none; }
.mf-form-fields .mf-btn:hover { background: #f3ce55; }
.mf-consent { display: block; font-size: 13px; color: #c3cfe8; margin-top: 14px; }
.mf-consent a { color: #fff; }
.lf-hp { position: absolute; left: -9999px; }

/* Footer */
.mf-footer { border-top: 1px solid var(--mf-line); padding: 30px 0 34px; font-size: 14px; color: var(--mf-muted); }
.mf-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.mf-footer-bottom { margin-top: 16px; }
.mf-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.mf-legal a { color: var(--mf-muted); text-decoration: none; }
.mf-legal a:hover { color: var(--mf-accent); text-decoration: underline; }

/* Дискета-пасхалка */
.mf-floppy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--mf-muted);
  background: none;
  border: 1px dashed transparent;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.mf-floppy svg { width: 20px; height: 20px; }
.mf-floppy:hover { opacity: 1; border-color: var(--mf-line); background: var(--mf-bg-alt); }

/* Cookie banner (тот же #cookie-banner из consent-banner.js) */
.oz-minimal #cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 100;
  background: var(--mf-bg);
  border: 1px solid var(--mf-line);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  max-width: min(92vw, 560px);
}
.oz-minimal #cookie-banner button {
  font: inherit;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--mf-line);
  background: var(--mf-bg-alt);
  cursor: pointer;
}
.oz-minimal #cookie-banner button:first-of-type { background: var(--mf-accent); color: #fff; border-color: var(--mf-accent); }

/* Mobile */
@media (max-width: 900px) {
  .mf-grid-3 { grid-template-columns: 1fr 1fr; }
  .mf-cols { grid-template-columns: 1fr; }
  .mf-br { display: none; }
}
@media (max-width: 640px) {
  .mf-nav { display: none; }
  .mf-grid-3, .mf-grid-2 { grid-template-columns: 1fr; }
  .mf-hero { padding: 48px 0 40px; }
  .mf-form-fields { flex-direction: column; }
  .mf-app { flex-direction: column; }
  .mf-footer-row { justify-content: center; text-align: center; }
}

/* Hero с фото */
.mf-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.mf-hero-photo-wrap { position: relative; }
.mf-hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 6px 28px rgba(28, 39, 51, 0.18);
  border: 4px solid #fff;
  display: block;
}
/* Кенгуриный прыжок: присел — подпрыгнул — приземлился */
@keyframes mf-hop {
  0%   { transform: scale(1, 1) translateY(0); }
  22%  { transform: scale(1.05, 0.92) translateY(6px); }
  50%  { transform: scale(0.97, 1.05) translateY(-16px) rotate(-2deg); }
  72%  { transform: scale(1.03, 0.96) translateY(2px); }
  100% { transform: scale(1, 1) translateY(0); }
}
.mf-hero-photo-wrap:hover .mf-hero-photo {
  animation: mf-hop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Пузырёк «G'day, mate!» */
.mf-photo-bubble {
  position: absolute;
  top: -14px;
  right: -26px;
  background: #fff;
  color: var(--mf-ink);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 15px;
  border-radius: 16px 16px 16px 4px;
  border: 1.5px solid var(--mf-line);
  box-shadow: 0 5px 18px rgba(28, 39, 51, 0.14);
  opacity: 0;
  transform: scale(0.4) translateY(10px);
  transform-origin: bottom left;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.34, 1.8, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}
.mf-hero-photo-wrap:hover .mf-photo-bubble {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.25s; /* появляется в верхней точке прыжка */
}
/* Выпрыгивающие зверьки */
.mf-photo-emoji {
  position: absolute;
  font-size: 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.45s cubic-bezier(0.34, 1.7, 0.64, 1);
}
.mf-photo-emoji-1 { left: -12px; top: 40%; transform: translate(10px, 10px) scale(0.3) rotate(-30deg); }
.mf-photo-emoji-2 { right: -10px; bottom: 12%; transform: translate(-10px, 10px) scale(0.3) rotate(25deg); }
.mf-hero-photo-wrap:hover .mf-photo-emoji-1 {
  opacity: 1;
  transform: translate(-14px, -12px) scale(1) rotate(-12deg);
  transition-delay: 0.3s;
}
.mf-hero-photo-wrap:hover .mf-photo-emoji-2 {
  opacity: 1;
  transform: translate(16px, -8px) scale(1) rotate(12deg);
  transition-delay: 0.38s;
}
@media (prefers-reduced-motion: reduce) {
  .mf-hero-photo-wrap:hover .mf-hero-photo { animation: none; }
}
@media (max-width: 820px) {
  .mf-hero-grid { grid-template-columns: 1fr; gap: 26px; justify-items: start; }
  .mf-hero-photo { width: 150px; height: 150px; border-radius: 18px; }
  .mf-photo-bubble, .mf-photo-emoji { display: none; }
}

/* ===== Внутренние страницы + мобильное меню ===== */

/* Фикс иконок приложений: не растягиваться по кросс-оси флекса */
.mf-app { align-items: flex-start; }
.oz-minimal .mf-app-icon { width: 88px; height: 88px; object-fit: cover; }
.mf-app-title { text-decoration: none; }
.mf-app-title:hover { text-decoration: underline; }

/* Бургер и полноэкранное мобильное меню */
.mf-burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--mf-ink);
}
.mf-burger svg { width: 26px; height: 26px; display: block; }
.mf-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--mf-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-mobile-menu[hidden] { display: none; }
.mf-mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 24px;
}
.mf-mobile-menu nav a:not(.mf-btn) {
  display: block;
  width: 100%;
  max-width: 340px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--mf-ink);
  text-decoration: none;
  padding: 12px 0;
  border-radius: 10px;
}
.mf-mobile-menu nav a:not(.mf-btn):hover { background: var(--mf-bg-alt); color: var(--mf-accent); }
.mf-mobile-menu nav .mf-btn { margin-top: 18px; width: 100%; max-width: 340px; text-align: center; font-size: 17px; }
.mf-mobile-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--mf-muted);
}
.mf-mobile-close svg { width: 26px; height: 26px; display: block; }
body.mf-menu-open { overflow: hidden; }
@media (max-width: 640px) {
  .mf-burger { display: block; margin-left: auto; }
  .mf-nav, .mf-header-cta { display: none; }
}

/* Каркас внутренних страниц */
.mf-narrow { max-width: 780px; }
.mf-article { padding: 44px 0 56px; }
.mf-crumb { margin: 0 0 14px; font-size: 14px; }
.mf-crumb a { text-decoration: none; color: var(--mf-muted); }
.mf-crumb a:hover { color: var(--mf-accent); }
.mf-article-title { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -0.4px; }
.mf-article-meta { color: var(--mf-muted); font-size: 14.5px; margin: -6px 0 22px; }
.mf-article-hero { margin: 0 0 26px; }
.mf-article-hero img { border-radius: var(--mf-radius); display: block; }
.mf-archive-title { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 26px; }

/* Типографика контента */
.mf-entry { font-size: 17px; }
.mf-entry h2 { font-size: 26px; margin: 1.5em 0 0.5em; letter-spacing: -0.3px; }
.mf-entry h3 { font-size: 20.5px; margin: 1.4em 0 0.45em; }
.mf-entry [id] { scroll-margin-top: 80px; }
.mf-entry img { border-radius: 8px; }
.mf-entry figure { margin: 1.4em 0; max-width: 100%; }
.mf-entry iframe { max-width: 100%; }
.mf-entry blockquote {
  margin: 1.4em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--mf-accent);
  background: var(--mf-bg-alt);
  border-radius: 0 8px 8px 0;
}
.mf-entry pre, .mf-entry code { font-family: "Ubuntu Mono", Menlo, monospace; }
.mf-entry code { background: var(--mf-bg-alt); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.mf-entry pre {
  background: #f6f8fb;
  border: 1px solid var(--mf-line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow: auto;
  font-size: 14.5px;
  line-height: 1.5;
}
.mf-entry pre code { background: none; padding: 0; font-size: inherit; }
.mf-entry .wp-block-table { overflow: auto; }
.mf-entry table { border-collapse: collapse; width: 100%; }
.mf-entry th, .mf-entry td { border: 1px solid var(--mf-line); padding: 8px 12px; text-align: left; }
.mf-entry th { background: var(--mf-bg-alt); }

/* Подсветка кода (палитра как tok-* в ретро, но спокойнее) */
.oz-minimal .tok-com { color: #187a18; }
.oz-minimal .tok-str { color: #a31515; }
.oz-minimal .tok-kw { color: #1a49b8; font-weight: 500; }
.oz-minimal .tok-num { color: #b05500; }
.oz-minimal .tok-var { color: #7a1fa2; }
.oz-minimal .tok-tag { color: #1a49b8; }
.oz-minimal .tok-attr { color: #a2187a; }

/* Кнопка Copy у кода (content.js) */
.oz-minimal .copy-code-wrap { position: relative; }
.oz-minimal .copy-code-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font: inherit;
  font-size: 12.5px;
  padding: 4px 10px;
  border: 1px solid var(--mf-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: var(--mf-muted);
}
.oz-minimal .copy-code-btn:hover { color: var(--mf-accent); border-color: var(--mf-accent); }

/* Якорь-«параграф» у заголовков (reading.js) */
.oz-minimal .h-anchor { margin-left: 8px; font-size: 0.7em; text-decoration: none; opacity: 0; }
.oz-minimal h2:hover .h-anchor, .oz-minimal h3:hover .h-anchor { opacity: 0.6; }
.oz-minimal .h-anchor:hover { opacity: 1; }

/* YouTube-заглушка из inc/youtube.php */
.oz-minimal .youtube-placeholder { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; }
.oz-minimal .youtube-placeholder img { display: block; border-radius: 0; }

/* Карточки услуг из контента /services/ (.schema-tool-card) */
.mf-entry .schema-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 18px 0 34px;
}
.mf-entry .schema-tool-card {
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mf-entry .schema-tool-card:hover { border-color: var(--mf-accent); box-shadow: 0 4px 18px rgba(44, 76, 154, 0.10); }
.mf-entry .schema-tool-card .icon { color: var(--mf-accent); }
.mf-entry .schema-tool-card .icon svg { width: 34px; height: 34px; }
.mf-entry .schema-tool-card > a:not(.retro-button) { font-size: 17.5px; font-weight: 600; text-decoration: none; }
.mf-entry .schema-tool-card > a:not(.retro-button):hover { text-decoration: underline; }
.mf-entry .schema-tool-card p { margin: 0; color: var(--mf-muted); font-size: 14.5px; flex: 1; }
.mf-entry .retro-button {
  display: inline-block;
  background: var(--mf-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
}
.mf-entry .retro-button:hover { background: var(--mf-accent-dark); }

/* Список статей в архиве */
.mf-post-card { display: flex; flex-direction: column; gap: 8px; }
.mf-post-card h2 { font-size: 18px; margin: 0; line-height: 1.35; }
.mf-post-card p { flex: 1; }
.mf-post-card time { font-size: 13px; color: var(--mf-muted); }
.mf-post-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.oz-minimal .pagination, .oz-minimal .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.oz-minimal .nav-links .page-numbers {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--mf-line);
  border-radius: 8px;
  text-decoration: none;
}
.oz-minimal .nav-links .page-numbers.current { background: var(--mf-accent); color: #fff; border-color: var(--mf-accent); }
.oz-minimal .nav-links a.page-numbers:hover { border-color: var(--mf-accent); }
.oz-minimal .screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }

/* Навигация между постами, нотисы, поиск на 404 */
.mf-post-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.mf-post-nav a { text-decoration: none; font-weight: 600; }
.mf-post-nav a:hover { text-decoration: underline; }
.mf-post-nav-next { margin-left: auto; text-align: right; }
.mf-notice { padding: 12px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.mf-notice-ok { background: #e5f5e8; color: #1b6b2f; }
.mf-notice-error { background: #fdeaea; color: #a02020; }
.mf-search { display: flex; gap: 10px; max-width: 420px; margin: 24px auto 0; }
.mf-search input {
  flex: 1;
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--mf-line);
  border-radius: 8px;
  min-width: 0;
}

/* ===== Галерея и видео ===== */
.mf-gallery-intro { margin-bottom: 26px; color: var(--mf-muted); max-width: 760px; }
.mf-album-card { padding: 0; overflow: hidden; }
.mf-album-card h2 { font-size: 17px; margin: 0; padding: 14px 18px; }
.mf-album-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mf-photo-grid-lg { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .mf-photo-grid-lg { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .mf-photo-grid-lg { grid-template-columns: repeat(2, 1fr); } }
.mf-photo-frame { margin: 0 0 20px; }
.mf-photo-frame img { width: 100%; border-radius: var(--mf-radius); display: block; }
.mf-strip { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.mf-strip a { display: block; border-radius: 8px; overflow: hidden; opacity: 0.7; border: 2px solid transparent; }
.mf-strip a:hover { opacity: 1; }
.mf-strip a.is-current { opacity: 1; border-color: var(--mf-accent); }
.mf-strip img { width: 72px; height: 72px; object-fit: cover; display: block; }
.mf-video-frame { aspect-ratio: 16 / 9; margin: 0 0 22px; }
.mf-video-frame iframe { width: 100%; height: 100%; border-radius: var(--mf-radius); display: block; }

/* CTA-блок с лид-формой внутри контента (услуги) */
.mf-entry .mf-cta-block {
  background: var(--mf-accent);
  color: #fff;
  border-radius: 14px;
  padding: 36px 30px;
  margin: 44px 0;
  text-align: center;
}
.mf-entry .mf-cta-block h2 { color: #fff; margin: 0 0 6px; font-size: 25px; }
.mf-entry .mf-cta-block > p { color: #d8e0f2; margin: 0 0 22px; font-size: 16px; }
.mf-cta-block .form-fields { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.mf-cta-block .form-fields input {
  flex: 1;
  font: inherit;
  font-size: 15.5px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  min-width: 0;
}
.mf-entry .mf-cta-block .retro-button {
  background: var(--mf-gold);
  color: var(--mf-ink);
  font-size: 15.5px;
  padding: 11px 22px;
  flex: none;
  border: 0;
  cursor: pointer;
}
.mf-entry .mf-cta-block .retro-button:hover { background: #f3ce55; }
.mf-cta-block .form-consent { display: block; font-size: 13px; color: #c3cfe8; margin-top: 14px; }
.mf-cta-block .form-consent a { color: #fff; }
@media (max-width: 640px) {
  .mf-cta-block .form-fields { flex-direction: column; }
  .mf-entry .mf-cta-block { padding: 28px 20px; }
}

/* Gutenberg-кнопки в контенте (стили wp-block-library не грузим) */
.mf-entry .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.mf-entry .wp-block-button__link {
  display: inline-block;
  background: var(--mf-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 11px 22px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mf-entry .wp-block-button__link:hover { background: var(--mf-accent-dark); }
.mf-entry .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--mf-accent);
  box-shadow: inset 0 0 0 1.6px var(--mf-accent);
}
.mf-entry .is-style-outline .wp-block-button__link:hover { background: #eef2fa; }

/* Хлебные крошки */
.mf-crumbs { font-size: 13.5px; color: var(--mf-muted); margin: 0 0 16px; }
.mf-crumbs a { color: var(--mf-muted); text-decoration: none; }
.mf-crumbs a:hover { color: var(--mf-accent); text-decoration: underline; }
.mf-crumbs-sep { margin: 0 7px; opacity: 0.6; }
.mf-crumbs span[aria-current] { color: var(--mf-ink); }

/* Разводящая /mobile-apps/ */
.mf-apps-lede { margin-bottom: 30px; }

/* Единый контейнер 1080 на всех шаблонах; сплошной текст внутри контента
   ограничиваем читаемой строкой, карточки/код/таблицы — на всю ширину */
.mf-entry > p,
.mf-entry > ul,
.mf-entry > ol,
.mf-entry > blockquote,
.mf-entry > h2,
.mf-entry > h3,
.mf-entry > h4 { max-width: 860px; }
.mf-article-hero { max-width: 860px; }
.mf-read .mf-post,
.mf-read .mf-post-nav { max-width: 860px; }
.mf-article-title, .mf-article-meta { max-width: 900px; }

/* Hero детальной страницы приложения */
.mf-app-hero { display: flex; gap: 24px; align-items: center; margin: 6px 0 22px; }
.mf-app-hero .mf-article-title { margin-bottom: 10px; }
.oz-minimal .mf-app-icon-lg { width: 120px; height: 120px; border-radius: 26px; flex: none; box-shadow: 0 4px 16px rgba(0,0,0,0.14); }
.mf-app-shots { display: flex; gap: 14px; margin: 0 0 28px; flex-wrap: wrap; }
.mf-app-shots img {
  width: 200px;
  border-radius: 14px;
  border: 1px solid var(--mf-line);
  box-shadow: 0 3px 12px rgba(28, 39, 51, 0.10);
}
@media (max-width: 640px) {
  .mf-app-hero { flex-direction: column; align-items: flex-start; }
  .mf-app-shots img { width: calc(50% - 7px); }
}

/* Перелинковка услуг */
.mf-related-services { margin-top: 44px; }
.mf-related-services h2 { font-size: 24px; }
.mf-related-all { margin-top: 16px; }

/* EXIF-строка под фото */
.mf-exif { color: var(--mf-muted); font-size: 13.5px; margin: -10px 0 20px; }

/* More videos на странице просмотра */
.mf-more-videos { margin-top: 44px; }
.mf-more-videos h2 { font-size: 24px; }
.mf-more-videos h3 { font-size: 16px; margin: 0; line-height: 1.35; }

/* Нативные поля/кнопки в контенте (генераторы схем и пр.) — фирменный вид */
.mf-entry input[type="text"],
.mf-entry input[type="email"],
.mf-entry input[type="url"],
.mf-entry input[type="number"],
.mf-entry textarea,
.mf-entry select {
  font: inherit;
  font-size: 15px;
  color: var(--mf-ink);
  background: var(--mf-bg);
  border: 1.5px solid var(--mf-line);
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 100%;
  box-sizing: border-box;
}
.mf-entry input:focus,
.mf-entry textarea:focus,
.mf-entry select:focus {
  outline: none;
  border-color: var(--mf-accent);
  box-shadow: 0 0 0 3px rgba(44, 76, 154, 0.15);
}
.mf-entry button:not(.copy-code-btn):not(.retro-button):not(.wp-block-button__link) {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--mf-accent);
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
}
.mf-entry button:not(.copy-code-btn):not(.retro-button):not(.wp-block-button__link):hover { background: var(--mf-accent-dark); }

/* Коала в логотипе + всплывашка «Looking to join an Aussie team» */
.mf-logo-wrap { position: relative; }
.mf-logo-koala { display: inline-block; font-size: 22px; transition: transform 0.25s; }
.mf-logo:hover .mf-logo-koala { transform: rotate(-14deg) scale(1.15); }
.mf-logo-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  white-space: nowrap;
  background: var(--mf-gold);
  color: var(--mf-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(28, 39, 51, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  /* задержка скрытия — чтобы успеть довести курсор до пузырька */
  transition: opacity 0.18s 0.35s, transform 0.18s 0.35s, visibility 0s 0.55s;
  visibility: hidden;
}
/* невидимый мостик над пузырьком: перекрывает зазор до лого, ховер не срывается */
.mf-logo-pop::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.mf-logo-pop::before { /* хвостик под коалой */
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: var(--mf-gold);
  transform: rotate(45deg);
  border-radius: 2px;
}
.mf-logo-wrap:hover .mf-logo-pop,
.mf-logo-pop:hover,
.mf-logo-wrap:focus-within .mf-logo-pop {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.mf-logo-pop:hover { background: #f3ce55; }
@media (max-width: 640px) {
  .mf-logo-pop { display: none; } /* на тач-устройствах ховера нет */
}

/* Бейдж в hero теперь ссылка */
a.mf-badge { text-decoration: none; color: var(--mf-ink); transition: background 0.15s, box-shadow 0.15s; }
a.mf-badge:hover { background: #f3ce55; box-shadow: 0 4px 14px rgba(28, 39, 51, 0.14); }
.mf-badge-arrow { display: inline-block; transition: transform 0.15s; }
a.mf-badge:hover .mf-badge-arrow { transform: translateX(3px); }

/* Плашка «Looking for an Aussie team» в мобильном меню */
.mf-mobile-menu nav .mf-menu-badge {
  display: block;
  width: 100%;
  max-width: 340px;
  text-align: center;
  background: var(--mf-gold);
  color: var(--mf-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  margin-top: 22px;
}
.mf-mobile-menu nav .mf-menu-badge:active { background: #f3ce55; }
.mf-mobile-menu nav .mf-menu-badge + .mf-btn { margin-top: 10px; }
