/*
Theme Name: MDH Future
Theme URI: https://maisons-histoire.fr/
Author: Maisons d'Histoire
Description: Thème léger et accessible conçu pour la future évolution de Maisons d'Histoire.
Version: 1.2.0
Text Domain: mdh-future
*/

:root {
  --mdh-blue: #03a9f4;
  --mdh-blue-dark: #066a96;
  --mdh-orange: #ff9800;
  --mdh-ink: #14212b;
  --mdh-ink-soft: #45545f;
  --mdh-deep: #0d2733;
  --mdh-stone: #f3f0ea;
  --mdh-cream: #fbfaf7;
  --mdh-white: #fff;
  --mdh-line: #dfe4e7;
  --mdh-radius: 18px;
  --mdh-shadow: 0 18px 48px rgba(13, 39, 51, .12);
  --mdh-container: 1180px;
  --mdh-serif: Georgia, "Times New Roman", serif;
  --mdh-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mdh-ink);
  background: var(--mdh-white);
  font-family: var(--mdh-sans);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--mdh-blue-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--mdh-deep); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mdh-orange); outline-offset: 4px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  z-index: 10000; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; padding: 10px 16px; background: var(--mdh-white); color: var(--mdh-ink);
}
.mdh-container { width: min(100% - 40px, var(--mdh-container)); margin-inline: auto; }
.mdh-section { padding: clamp(64px, 8vw, 112px) 0; }
.mdh-section--soft { background: var(--mdh-cream); }
.mdh-section--stone { background: var(--mdh-stone); }
.mdh-section--dark { background: var(--mdh-deep); color: var(--mdh-white); }
.mdh-section--compact { padding: clamp(44px, 6vw, 72px) 0; }

.mdh-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; color: var(--mdh-blue-dark);
  font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.mdh-eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--mdh-orange); }
.mdh-section--dark .mdh-eyebrow { color: #8edbff; }
h1, h2, h3, h4 { margin-top: 0; color: var(--mdh-deep); line-height: 1.13; text-wrap: balance; }
h1, h2 { font-family: var(--mdh-serif); font-weight: 700; }
h1 { font-size: clamp(2.55rem, 5vw, 4.55rem); letter-spacing: -.045em; }
h2 { margin-bottom: 22px; font-size: clamp(2rem, 4.2vw, 3.65rem); letter-spacing: -.035em; }
h3 { margin-bottom: 12px; font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1.25em; }
.mdh-lead { max-width: 780px; color: var(--mdh-ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.mdh-section--dark h2, .mdh-section--dark h3, .mdh-section--dark .mdh-lead { color: var(--mdh-white); }
.mdh-heading { max-width: 820px; margin-bottom: 42px; }
.mdh-heading--center { margin-inline: auto; text-align: center; }
.mdh-heading--center .mdh-lead { margin-inline: auto; }

.mdh-button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 21px; border: 2px solid transparent; border-radius: 999px;
  background: var(--mdh-blue); color: #062838; font-weight: 800; line-height: 1.2;
  text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.mdh-button:hover { color: #062838; background: #37bcf8; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(3, 169, 244, .28); }
.mdh-button--orange { background: var(--mdh-orange); color: #2c1b00; }
.mdh-button--orange:hover { color: #2c1b00; background: #ffad33; box-shadow: 0 10px 22px rgba(255, 152, 0, .26); }
.mdh-button--outline { border-color: currentColor; background: transparent; color: var(--mdh-white); }
.mdh-button--outline:hover { background: var(--mdh-white); color: var(--mdh-deep); box-shadow: none; }
.mdh-text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; text-decoration: none; }
.mdh-text-link::after { content: "→"; transition: transform .2s ease; }
.mdh-text-link:hover::after { transform: translateX(4px); }

/* Header */
.mdh-topbar { background: var(--mdh-deep); color: #dce9ee; font-size: .83rem; }
.mdh-topbar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mdh-topbar a { color: inherit; text-decoration: none; }
.mdh-topbar__contacts, .mdh-topbar__social { display: flex; align-items: center; gap: 22px; }
.mdh-site-header {
  position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(20,33,43,.09); backdrop-filter: blur(14px);
}
.admin-bar .mdh-site-header { top: 32px; }
.mdh-header__inner { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.mdh-brand { flex: 0 0 auto; display: flex; align-items: center; text-decoration: none; }
.mdh-brand img { display: block; width: clamp(210px, 22vw, 285px); max-height: 66px; object-fit: contain; }
.mdh-nav { margin-left: auto; }
.mdh-menu { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.mdh-menu li { position: relative; }
.mdh-menu > li > a {
  display: flex; min-height: 44px; align-items: center; padding: 8px 10px;
  color: var(--mdh-ink); font-size: .89rem; font-weight: 750; text-decoration: none;
}
.mdh-menu > li > a:hover, .mdh-menu > .current-menu-item > a, .mdh-menu > .current-menu-ancestor > a { color: var(--mdh-blue-dark); }
.mdh-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 270px;
  margin: 0; padding: 10px; list-style: none; border: 1px solid var(--mdh-line);
  border-radius: 14px; background: var(--mdh-white); box-shadow: var(--mdh-shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
}
.mdh-menu li:hover > .sub-menu, .mdh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mdh-menu .sub-menu a { display: block; padding: 9px 11px; border-radius: 8px; color: var(--mdh-ink); font-size: .91rem; font-weight: 650; text-decoration: none; }
.mdh-menu .sub-menu a:hover { background: var(--mdh-stone); color: var(--mdh-blue-dark); }
.mdh-header__cta { flex: 0 0 auto; font-size: .86rem; }
.mdh-menu-toggle {
  display: none; width: 48px; height: 48px; margin-left: auto; padding: 0;
  border: 1px solid var(--mdh-line); border-radius: 50%; background: var(--mdh-white);
}
.mdh-menu-toggle span, .mdh-menu-toggle::before, .mdh-menu-toggle::after {
  content: ""; display: block; width: 21px; height: 2px; margin: 5px auto; background: var(--mdh-deep); transition: .2s ease;
}
.nav-open .mdh-menu-toggle span { opacity: 0; }
.nav-open .mdh-menu-toggle::before { transform: translateY(7px) rotate(45deg); }
.nav-open .mdh-menu-toggle::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.mdh-hero { position: relative; min-height: min(720px, calc(100svh - 124px)); overflow: hidden; background: #081a22; color: var(--mdh-white); }
.mdh-hero__slides, .mdh-hero__slide, .mdh-hero__slide::after { position: absolute; inset: 0; }
.mdh-hero__slide { opacity: 0; transition: opacity 1s ease; }
.mdh-hero__slide.is-active { opacity: 1; }
.mdh-hero__slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.04); }
.mdh-hero__slide::after { content: ""; background: linear-gradient(90deg, rgba(4,20,27,.9) 0%, rgba(4,20,27,.64) 46%, rgba(4,20,27,.2) 100%); }
.mdh-hero__content { position: relative; z-index: 2; display: flex; min-height: inherit; align-items: center; padding: 84px 0 112px; }
.mdh-hero__copy { max-width: 950px; }
.mdh-hero h1 { margin-bottom: 22px; color: var(--mdh-white); }
.mdh-hero__lead { max-width: 690px; margin-bottom: 30px; color: #e6eef1; font-size: clamp(1.08rem, 2vw, 1.38rem); }
.mdh-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.mdh-hero__controls { position: absolute; z-index: 3; right: max(20px, calc((100vw - var(--mdh-container))/2)); bottom: 32px; display: flex; align-items: center; gap: 12px; }
.mdh-hero__control { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; background: rgba(9,32,42,.55); color: var(--mdh-white); }
.mdh-hero__dots { display: flex; gap: 7px; }
.mdh-hero__dot { width: 34px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.45); }
.mdh-hero__dot.is-active { background: var(--mdh-orange); }

.mdh-trustbar { position: relative; z-index: 5; margin-top: -34px; }
.mdh-trustbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  border-radius: var(--mdh-radius); background: var(--mdh-white); box-shadow: var(--mdh-shadow);
}
.mdh-trustbar__item { min-height: 86px; display: flex; align-items: center; gap: 13px; padding: 18px 22px; border-right: 1px solid var(--mdh-line); }
.mdh-trustbar__item:last-child { border: 0; }
.mdh-trustbar__icon { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: var(--mdh-orange); box-shadow: 0 0 0 7px rgba(255,152,0,.13); }
.mdh-trustbar strong { display: block; color: var(--mdh-deep); font-size: .91rem; }
.mdh-trustbar span { display: block; color: var(--mdh-ink-soft); font-size: .76rem; line-height: 1.35; }

/* Cards and grids */
.mdh-grid { display: grid; gap: 24px; }
.mdh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mdh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mdh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mdh-card { overflow: hidden; border: 1px solid var(--mdh-line); border-radius: var(--mdh-radius); background: var(--mdh-white); box-shadow: 0 9px 28px rgba(13,39,51,.06); }
.mdh-card--lift { transition: transform .22s ease, box-shadow .22s ease; }
.mdh-card--lift:hover { transform: translateY(-6px); box-shadow: var(--mdh-shadow); }
.mdh-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mdh-stone); }
.mdh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mdh-card:hover .mdh-card__media img { transform: scale(1.035); }
.mdh-grid > .mdh-card { display: flex; flex-direction: column; }
.mdh-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.mdh-card__body p { color: var(--mdh-ink-soft); font-size: .96rem; }
.mdh-card__kicker { margin-bottom: 8px; color: #975400; font-size: .73rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.mdh-card__title a { color: inherit; text-decoration: none; }
.mdh-card__body > .mdh-text-link { margin-top: auto; }

@media (min-width: 681px) {
  .mdh-grid--4 .mdh-card__kicker { min-height: 2.8em; line-height: 1.4; }
  .mdh-grid--4 .mdh-card__title { min-height: 2.55em; }
}

.mdh-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 7vw, 88px); }
.mdh-split__media { overflow: hidden; border-radius: var(--mdh-radius); box-shadow: var(--mdh-shadow); }
.mdh-split__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mdh-checks { display: grid; gap: 12px; margin: 26px 0 30px; padding: 0; list-style: none; }
.mdh-checks li { position: relative; padding-left: 30px; }
.mdh-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--mdh-blue-dark); font-weight: 900; }

.mdh-logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mdh-logo-card { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 22px; text-align: center; }
.mdh-logo-card img { width: 155px; height: 82px; object-fit: contain; margin-bottom: 14px; }
.mdh-logo-card strong { min-height: 2.7em; display: flex; align-items: center; justify-content: center; color: var(--mdh-deep); font-size: .9rem; }
.mdh-logo-card--link { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mdh-logo-card--link:hover { transform: translateY(-3px); border-color: rgba(6,106,150,.3); box-shadow: 0 20px 42px rgba(13,39,51,.18); }
.mdh-logo-card--link:focus-visible { outline: 3px solid var(--mdh-orange); outline-offset: 4px; }

.mdh-quote { position: relative; padding: 30px; }
.mdh-quote::before { content: "“"; display: block; height: 36px; color: var(--mdh-orange); font: 700 3.5rem/.8 var(--mdh-serif); }
.mdh-quote blockquote { margin: 12px 0 24px; color: var(--mdh-ink-soft); font-size: .98rem; }
.mdh-quote cite { margin-top: auto; color: var(--mdh-deep); font-style: normal; font-weight: 800; }

/* Page heroes and editorial content */
.mdh-page-hero { position: relative; overflow: hidden; min-height: 430px; display: flex; align-items: end; background: var(--mdh-deep); color: var(--mdh-white); }
.mdh-page-hero__image, .mdh-page-hero__image::after { position: absolute; inset: 0; }
.mdh-page-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.mdh-page-hero__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,20,27,.92), rgba(4,20,27,.38)); }
.mdh-page-hero__content { position: relative; z-index: 1; max-width: 870px; padding: 100px 0 64px; }
.mdh-page-hero h1 { margin-bottom: 18px; color: var(--mdh-white); font-size: clamp(2.5rem, 5.2vw, 4.8rem); }
.mdh-page-hero p { max-width: 720px; margin-bottom: 0; overflow-wrap: anywhere; color: #e5edf0; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.mdh-breadcrumbs { margin-bottom: 22px; color: #d0e0e6; font-size: .8rem; }
.mdh-breadcrumbs a { color: inherit; }

.mdh-prose { max-width: 820px; overflow-wrap: anywhere; }
.mdh-prose > *:first-child { margin-top: 0; }
.mdh-prose h2 { margin-top: 1.6em; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.mdh-prose h3 { margin-top: 1.6em; }
.mdh-prose p, .mdh-prose li { color: #34444f; }
.mdh-prose ul, .mdh-prose ol { padding-left: 1.35em; }
.mdh-prose img { border-radius: 12px; }
.mdh-service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 7vw, 88px); align-items: start; }
.mdh-service-section { padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px solid var(--mdh-line); }
.mdh-service-section:last-child { border: 0; }
.mdh-service-section h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.mdh-service-copy > h2 { padding-top: 1.45em; margin-top: 1.55em; border-top: 1px solid var(--mdh-line); }
.mdh-service-copy > h2:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.mdh-service-copy h2 + h3 { margin-top: .4em; color: var(--mdh-blue-dark); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.mdh-service-copy li + li { margin-top: .65em; }
.mdh-service-note { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--mdh-orange); border-radius: 0 10px 10px 0; background: var(--mdh-cream); }
.mdh-service-note p { margin: 0; color: var(--mdh-ink); font-size: .96rem; }
.mdh-structure-media { margin-top: 34px; }
.mdh-service-figure { margin: 28px 0 0; }
.mdh-service-figure--inline { margin: 20px 0 8px; }
.mdh-service-figure__image { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--mdh-cream); box-shadow: 0 16px 38px rgba(13,39,51,.14); }
.mdh-service-figure--technical .mdh-service-figure__image { aspect-ratio: 2 / 1; padding: clamp(14px, 3vw, 28px); object-fit: contain; }
.mdh-service-figure figcaption { margin-top: 11px; color: var(--mdh-ink-soft); font-size: .92rem; font-style: italic; }
.mdh-implantation-note { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--mdh-orange); border-radius: 0 10px 10px 0; background: var(--mdh-stone); color: var(--mdh-ink); }
.mdh-service-section--media { padding-top: 46px; margin-top: 48px; border-top: 1px solid var(--mdh-line); border-bottom: 0; }
.mdh-service-section--media h2 { margin-top: 0; }
.mdh-sidebar { position: sticky; top: 126px; padding: 25px; border: 1px solid var(--mdh-line); border-radius: var(--mdh-radius); background: var(--mdh-cream); }
.mdh-sidebar h2 { margin-bottom: 16px; font: 800 1rem/1.3 var(--mdh-sans); }
.mdh-sidebar ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.mdh-sidebar a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--mdh-ink); font-size: .89rem; font-weight: 650; text-decoration: none; }
.mdh-sidebar a:hover, .mdh-sidebar a[aria-current="page"] { background: var(--mdh-white); color: var(--mdh-blue-dark); }

/* Galeries légères des pages de savoir-faire et des chantiers détaillés */
.mdh-service-gallery-section, .mdh-project-gallery-section { padding-top: clamp(56px, 7vw, 88px); }
.mdh-service-gallery-section .mdh-heading, .mdh-project-gallery-section .mdh-heading { max-width: 900px; }
.mdh-project-prose .nextgen_pro_thumbnail_grid,
.mdh-project-prose .elementor-widget-container > p:empty { display: none !important; }
.mdh-gallery-group + .mdh-gallery-group { margin-top: 46px; }
.mdh-gallery-group > h3 { margin-bottom: 20px; }
.mdh-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 22px;
}
.mdh-gallery__item {
  min-width: 0; display: grid; grid-template-rows: auto 1fr; margin: 0;
  overflow: hidden; border: 1px solid var(--mdh-line); border-radius: 14px;
  background: var(--mdh-white); box-shadow: 0 8px 24px rgba(13,39,51,.07);
}
.mdh-gallery__link { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #e9e5dd; }
.mdh-gallery__link img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.mdh-gallery__link:hover img, .mdh-gallery__link:focus-visible img { transform: scale(1.035); filter: saturate(1.06); }
.mdh-gallery__item figcaption {
  padding: 14px 16px 17px; color: var(--mdh-ink-soft);
  font-size: .84rem; font-weight: 650; line-height: 1.45;
}
.mdh-lightbox {
  width: min(94vw, 1380px); max-width: none; height: min(92vh, 960px); max-height: none;
  padding: 58px 76px 46px; overflow: hidden; border: 0; border-radius: 18px;
  background: #071a22; color: var(--mdh-white); box-shadow: 0 28px 90px rgba(0,0,0,.52);
}
.mdh-lightbox::backdrop { background: rgba(3,14,19,.88); backdrop-filter: blur(5px); }
.mdh-lightbox figure { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; margin: 0; }
.mdh-lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.mdh-lightbox figcaption { min-height: 1.45em; margin: 0; color: #e0eaee; font-size: .92rem; line-height: 1.45; text-align: center; }
.mdh-lightbox__close, .mdh-lightbox__previous, .mdh-lightbox__next {
  position: absolute; z-index: 2; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255,255,255,.38); border-radius: 50%;
  background: rgba(7,26,34,.78); color: var(--mdh-white); line-height: 1;
}
.mdh-lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 1.8rem; }
.mdh-lightbox__previous, .mdh-lightbox__next { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 2rem; }
.mdh-lightbox__previous { left: 14px; }
.mdh-lightbox__next { right: 14px; }
.mdh-lightbox__close:hover, .mdh-lightbox__previous:hover, .mdh-lightbox__next:hover { background: var(--mdh-orange); color: #2c1b00; }

.mdh-reference-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mdh-reference-group { padding: 30px; }
.mdh-reference-group ul { columns: 2; column-gap: 28px; margin: 0; padding-left: 1.15em; }
.mdh-reference-group li { break-inside: avoid; margin-bottom: 6px; color: var(--mdh-ink-soft); font-size: .92rem; }

.mdh-agency { padding: 30px; }
.mdh-agency__meta { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.mdh-agency__meta strong { display: block; color: var(--mdh-deep); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.mdh-agency__meta span, .mdh-agency__meta a { color: var(--mdh-ink-soft); }
.mdh-agency > .mdh-button { width: 100%; min-height: 72px; margin-top: auto; text-align: center; }
.mdh-contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 30px; align-items: start; }
.mdh-form-card { padding: clamp(24px, 4vw, 42px); }
.mdh-form-card .wpforms-container { margin: 0; }
.mdh-form-card .wpforms-field { padding: 8px 0 !important; }
.mdh-form-card input, .mdh-form-card textarea, .mdh-form-card select {
  width: 100% !important; max-width: none !important; min-height: 48px;
  border: 1px solid #cbd4d9 !important; border-radius: 8px !important; background: var(--mdh-white) !important;
}
.mdh-form-card textarea { min-height: 150px; }
.mdh-form-card button[type="submit"] { min-height: 50px !important; padding: 12px 24px !important; border: 0 !important; border-radius: 999px !important; background: var(--mdh-blue) !important; color: #062838 !important; font-weight: 800 !important; }

.mdh-video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--mdh-radius); background: #07171e; box-shadow: var(--mdh-shadow); }
.mdh-video img, .mdh-video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.mdh-video::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(rgba(5,20,27,.12), rgba(5,20,27,.45)); }
.mdh-video__play { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 82px; height: 82px; border: 0; border-radius: 50%; background: var(--mdh-orange); color: #281800; font-size: 0; box-shadow: 0 15px 35px rgba(0,0,0,.3); }
.mdh-video__play::before { content: ""; position: absolute; top: 27px; left: 33px; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 22px solid currentColor; }
.mdh-video.is-playing::after, .mdh-video.is-playing .mdh-video__play, .mdh-video.is-playing img { display: none; }

/* Posts */
.mdh-post-card__meta, .mdh-entry-meta { color: #687781; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mdh-post-card .mdh-card__media { aspect-ratio: 16 / 10; }
.mdh-pagination { margin-top: 50px; }
.mdh-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mdh-pagination .page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--mdh-line); border-radius: 50%; text-decoration: none; }
.mdh-pagination .current { background: var(--mdh-deep); color: var(--mdh-white); }
.mdh-entry { max-width: 840px; margin-inline: auto; }
.mdh-entry__featured { margin: 34px 0; overflow: hidden; border-radius: var(--mdh-radius); }
.mdh-entry__featured img { display: block; width: 100%; }

.mdh-cta { position: relative; overflow: hidden; border-radius: 24px; background: var(--mdh-deep); color: var(--mdh-white); }
.mdh-cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 310px; height: 310px; border: 62px solid rgba(3,169,244,.18); border-radius: 50%; }
.mdh-cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(34px, 6vw, 68px); }
.mdh-cta h2 { margin-bottom: 12px; color: var(--mdh-white); font-size: clamp(1.8rem, 3.4vw, 3rem); }
.mdh-cta p { max-width: 670px; margin-bottom: 0; color: #d9e5e9; }
.mdh-cta__actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.mdh-footer { background: #071a22; color: #c6d3d8; }
.mdh-footer__main { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 52px; padding: 72px 0 58px; }
.mdh-footer img { width: 250px; max-height: 62px; object-fit: contain; filter: brightness(0) invert(1); opacity: .94; }
.mdh-footer h2 { margin-bottom: 18px; color: var(--mdh-white); font: 800 .84rem/1.3 var(--mdh-sans); letter-spacing: .09em; text-transform: uppercase; }
.mdh-footer p, .mdh-footer li { font-size: .9rem; }
.mdh-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.mdh-footer a { color: #dce8ec; text-decoration: none; }
.mdh-footer a:hover { color: var(--mdh-blue); }
.mdh-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.mdh-footer__bottom-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .78rem; }

@media (max-width: 1080px) {
  .mdh-header__cta { display: none; }
  .mdh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdh-trustbar__inner { grid-template-columns: repeat(2, 1fr); }
  .mdh-trustbar__item:nth-child(2) { border-right: 0; }
  .mdh-trustbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--mdh-line); }
}

@media (max-width: 920px) {
  .mdh-topbar__social { display: none; }
  .mdh-site-header { backdrop-filter: none; }
  .mdh-menu-toggle { display: block; }
  .mdh-nav {
    position: fixed; inset: var(--mdh-nav-top, 124px) 0 0; height: auto; overflow-y: auto; margin: 0; padding: 22px 20px 48px;
    background: var(--mdh-white); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: .2s ease;
  }
  .nav-open .mdh-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .mdh-menu { display: grid; align-items: stretch; }
  .mdh-menu > li > a { min-height: 50px; padding: 10px 5px; border-bottom: 1px solid var(--mdh-line); font-size: 1rem; }
  .mdh-menu .sub-menu { position: static; width: auto; padding: 4px 0 12px 18px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .mdh-menu .sub-menu a { padding: 7px 8px; }
  .mdh-split, .mdh-contact-layout { grid-template-columns: 1fr; }
  .mdh-service-layout { grid-template-columns: 1fr; }
  .mdh-sidebar { position: static; }
  .mdh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdh-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdh-reference-groups { grid-template-columns: 1fr; }
  .mdh-footer__main { grid-template-columns: 1fr 1fr; }
  .mdh-footer__brand { grid-column: 1 / -1; }
  .mdh-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .mdh-container { width: min(100% - 28px, var(--mdh-container)); }
  .mdh-topbar__inner { justify-content: center; }
  .mdh-topbar__contacts { gap: 14px; }
  .mdh-topbar__contacts span { display: none; }
  .mdh-header__inner { min-height: 76px; }
  .mdh-brand img { width: 205px; }
  .admin-bar .mdh-site-header { top: 46px; }
  .mdh-hero { min-height: 650px; }
  .mdh-hero__content { padding: 70px 0 120px; align-items: end; }
  .mdh-hero__slide::after { background: linear-gradient(0deg, rgba(4,20,27,.94) 0%, rgba(4,20,27,.45) 80%); }
  .mdh-hero__controls { right: 14px; bottom: 22px; }
  .mdh-trustbar { margin-top: 0; }
  .mdh-trustbar .mdh-container { width: 100%; }
  .mdh-trustbar__inner { grid-template-columns: 1fr 1fr; border-radius: 0; }
  .mdh-trustbar__item { min-height: 98px; padding: 14px; align-items: flex-start; }
  .mdh-grid--2, .mdh-grid--3, .mdh-grid--4 { grid-template-columns: 1fr; }
  .mdh-reference-group ul { columns: 1; }
  .mdh-logo-grid { gap: 12px; }
  .mdh-logo-card { min-height: 160px; padding: 16px; }
  .mdh-page-hero { min-height: 390px; }
  .mdh-page-hero__content { padding: 84px 0 48px; }
  .mdh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mdh-gallery__item figcaption { padding: 11px 12px 13px; font-size: .76rem; }
  .mdh-lightbox { width: 100vw; height: 100dvh; padding: 56px 12px 46px; border-radius: 0; }
  .mdh-lightbox__previous, .mdh-lightbox__next { top: auto; bottom: 6px; width: 42px; height: 42px; margin: 0; }
  .mdh-lightbox__previous { left: calc(50% - 52px); }
  .mdh-lightbox__next { right: calc(50% - 52px); }
  .mdh-footer__main { grid-template-columns: 1fr; gap: 38px; }
  .mdh-footer__brand { grid-column: auto; }
  .mdh-footer__bottom-inner { padding: 18px 0; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .mdh-logo-grid { grid-template-columns: 1fr; }
  .mdh-logo-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
