/*
Theme Name: MediaLine Kadence
Theme URI: https://media96.ru
Description: Presentation layer and design system for Media Line, based on Kadence.
Author: Media Line
Template: kadence
Version: 0.3.0
Text Domain: medialine-kadence
*/

:root {
  --ml-blue: #0756b5;
  --ml-blue-bright: #0c74da;
  --ml-navy: #07192e;
  --ml-sky: #eef6ff;
  --ml-white: #ffffff;
  --ml-text: #17304a;
  --ml-muted: #52677d;
  --ml-border: #d8e5f2;
  --ml-surface: #f8fbfe;
  --ml-success: #147a50;
  --ml-radius-sm: 12px;
  --ml-radius: 20px;
  --ml-radius-lg: 28px;
  --ml-shadow: 0 16px 44px rgba(7, 25, 46, 0.09);
  --ml-shadow-hover: 0 22px 54px rgba(7, 25, 46, 0.14);
  --ml-container: 1180px;
  --ml-wide: 1320px;
  --ml-section: clamp(64px, 7vw, 108px);
  --ml-gap: clamp(20px, 2.5vw, 32px);
}

html { scroll-behavior: smooth; }
body {
  color: var(--ml-text);
  background: var(--ml-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.ml-menu-open { overflow: hidden; }
a { color: var(--ml-blue); text-underline-offset: 3px; }
a:hover { color: var(--ml-blue-bright); }
h1, h2, h3, h4 {
  color: var(--ml-navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.13;
}
h1 { font-size: clamp(40px, 4.3vw, 64px); }
h2 { font-size: clamp(32px, 3.1vw, 46px); }
h3 { font-size: clamp(22px, 1.8vw, 28px); }
p { margin: 0 0 1em; }

.ml-container { width: min(calc(100% - 48px), var(--ml-container)); margin-inline: auto; }
.ml-container--wide { width: min(calc(100% - 48px), var(--ml-wide)); margin-inline: auto; }
.ml-section { padding-block: var(--ml-section); }
.ml-section--sky { background: var(--ml-sky); }
.ml-section--surface { background: var(--ml-surface); }
.ml-section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.ml-section-head p { color: var(--ml-muted); font-size: 19px; }
.ml-section-head h2 { margin: 0 0 14px; }
.ml-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ml-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.ml-eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: var(--ml-blue-bright); }

.ml-btn,
.wp-block-button__link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid var(--ml-blue);
  border-radius: 13px;
  padding: 12px 22px;
  background: var(--ml-blue);
  color: var(--ml-white) !important;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ml-btn:hover,
.wp-block-button__link:hover { transform: translateY(-2px); background: var(--ml-blue-bright); border-color: var(--ml-blue-bright); box-shadow: 0 10px 24px rgba(7,86,181,.2); }
.ml-btn--secondary { background: transparent; color: var(--ml-blue) !important; }
.ml-btn--secondary:hover { color: var(--ml-white) !important; }
.ml-btn--light { background: var(--ml-white); border-color: var(--ml-white); color: var(--ml-blue) !important; }
.ml-btn--light:hover { background: var(--ml-sky); border-color: var(--ml-sky); color: var(--ml-blue) !important; }
.ml-btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--ml-white) !important; }

/* Header */
.ml-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(7,25,46,.08);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.admin-bar .ml-site-header { top: 32px; }
.ml-header-inner { display: grid; grid-template-columns: auto 1fr auto; min-height: 78px; align-items: center; gap: 28px; }
.ml-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; color: var(--ml-navy); text-decoration: none; white-space: nowrap; }
.ml-brand:hover { color: var(--ml-navy); }
.ml-brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--ml-blue); box-shadow: 0 8px 18px rgba(7,86,181,.2); }
.ml-brand-mark svg { width: 25px; height: 25px; }
.ml-brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ml-main-nav { justify-self: center; }
.ml-main-nav ul { display: flex; align-items: center; gap: clamp(13px, 1.45vw, 24px); margin: 0; padding: 0; list-style: none; }
.ml-main-nav li { position: relative; margin: 0; }
.ml-main-nav a { display: block; padding: 25px 0; color: var(--ml-navy); font-size: 15px; font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.ml-main-nav a:hover,
.ml-main-nav .current-menu-item > a { color: var(--ml-blue); }
.ml-main-nav .sub-menu { position: absolute; left: -18px; top: calc(100% - 6px); display: none; width: 220px; padding: 10px; border: 1px solid var(--ml-border); border-radius: 14px; background: white; box-shadow: var(--ml-shadow); }
.ml-main-nav .sub-menu a { padding: 10px 12px; border-radius: 9px; }
.ml-main-nav li:hover > .sub-menu,
.ml-main-nav li:focus-within > .sub-menu { display: block; }
.ml-header-contact { display: flex; align-items: center; gap: 12px; }
.ml-header-phone { color: var(--ml-navy); font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ml-call-compact { min-height: 42px; padding: 9px 15px; font-size: 15px; border-radius: 11px; }
.ml-mobile-actions { display: none; align-items: center; gap: 8px; }
.ml-icon-btn { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--ml-border); border-radius: 12px; background: var(--ml-white); color: var(--ml-navy); cursor: pointer; }
.ml-icon-btn svg { width: 23px; height: 23px; }
.ml-icon-btn--call { background: var(--ml-blue); color: var(--ml-white); border-color: var(--ml-blue); }
.ml-mobile-panel { position: fixed; inset: 0 0 0 auto; z-index: 1010; width: min(88vw, 390px); padding: 22px; background: var(--ml-white); box-shadow: -30px 0 70px rgba(7,25,46,.22); transform: translateX(110%); visibility: hidden; transition: transform .24s ease, visibility .24s ease; }
.ml-mobile-panel.is-open { transform: translateX(0); visibility: visible; }
.ml-mobile-panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--ml-border); }
.ml-mobile-nav ul { margin: 14px 0 22px; padding: 0; list-style: none; }
.ml-mobile-nav li { margin: 0; }
.ml-mobile-nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--ml-border); color: var(--ml-navy); font-size: 18px; font-weight: 700; text-decoration: none; }
.ml-mobile-nav .sub-menu { margin: 0 0 0 16px; }
.ml-mobile-nav .sub-menu a { font-size: 16px; font-weight: 600; }
.ml-mobile-phone { display: block; margin-top: 12px; color: var(--ml-navy); font-size: 21px; font-weight: 800; text-decoration: none; }
.ml-menu-overlay { position: fixed; inset: 0; z-index: 1005; background: rgba(7,25,46,.55); opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s ease; }
.ml-menu-overlay.is-open { opacity: 1; visibility: visible; }

/* Home canvas */
.home .entry-header { display: none; }
.home .content-area,
.home .site-main,
.home .content-bg,
.home .entry-content-wrap,
.home .entry-content { margin: 0 !important; padding: 0 !important; max-width: none !important; background: transparent !important; box-shadow: none !important; }
.home .content-container { max-width: none; padding: 0; }
.home article { margin: 0; }

/* Internal pages */
.ml-inner-page { margin: 0; background: var(--ml-white); }
.ml-inner-hero { padding: clamp(46px, 6vw, 82px) 0 clamp(54px, 7vw, 94px); background: linear-gradient(135deg,#f8fbff 0%,#fff 55%,#eef6ff 100%); }
.ml-inner-hero--compact { padding-bottom: clamp(46px, 5vw, 70px); }
.ml-inner-hero-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr); align-items:center; gap:clamp(34px,5vw,72px); }
.ml-inner-hero h1 { max-width:820px; margin:14px 0 20px; font-size:clamp(38px,4vw,58px); }
.ml-inner-lead { max-width:760px; margin:0; color:var(--ml-text); font-size:clamp(18px,1.45vw,22px); line-height:1.55; }
.ml-inner-photo { overflow:hidden; aspect-ratio:3/2; border-radius:var(--ml-radius-lg); box-shadow:var(--ml-shadow); background:#dfeaf5; }
.ml-inner-photo img { width:100%; height:100%; object-fit:cover; }
.ml-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:25px; color:var(--ml-muted); font-size:14px; }
.ml-breadcrumbs a { color:var(--ml-blue); text-decoration:none; }
.ml-reading { max-width:900px; }
.ml-reading > h2, .ml-content-grid h2 { margin:0 0 18px; font-size:clamp(28px,2.4vw,38px); }
.ml-reading > p { color:var(--ml-text); }
.ml-content-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr); align-items:start; gap:clamp(32px,5vw,70px); }
.ml-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.ml-card-grid--2 { grid-template-columns:repeat(2,1fr); }
.ml-info-card { height:100%; padding:26px; border:1px solid var(--ml-border); border-radius:var(--ml-radius); background:var(--ml-white); box-shadow:0 8px 26px rgba(7,25,46,.05); }
.ml-info-card h3 { margin:0 0 10px; font-size:22px; }
.ml-info-card p { margin:0; color:var(--ml-muted); font-size:16px; }
.ml-info-card a { font-weight:750; text-decoration:none; }
.ml-check-list { display:grid; gap:12px; margin:22px 0 0; padding:0; list-style:none; }
.ml-check-list li { position:relative; padding-left:30px; }
.ml-check-list li::before { content:'✓'; position:absolute; left:0; top:0; color:var(--ml-blue); font-weight:900; }
.ml-note { padding:22px 24px; border-left:4px solid var(--ml-blue); border-radius:0 var(--ml-radius-sm) var(--ml-radius-sm) 0; background:var(--ml-sky); }
.ml-faq { display:grid; gap:12px; }
.ml-faq details { border:1px solid var(--ml-border); border-radius:var(--ml-radius-sm); background:#fff; }
.ml-faq summary { min-height:52px; padding:17px 52px 17px 20px; color:var(--ml-navy); font-weight:750; cursor:pointer; }
.ml-faq details p { padding:0 20px 19px; margin:0; color:var(--ml-muted); }
.ml-inline-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.ml-related { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.ml-related a { display:flex; min-height:74px; align-items:center; justify-content:space-between; gap:14px; padding:18px 20px; border:1px solid var(--ml-border); border-radius:var(--ml-radius-sm); background:#fff; color:var(--ml-navy); font-weight:750; text-decoration:none; }
.ml-related a:hover { border-color:#9bc4ee; box-shadow:var(--ml-shadow); }
.ml-cta-band { padding:clamp(34px,5vw,58px); border-radius:var(--ml-radius-lg); background:linear-gradient(135deg,var(--ml-navy),var(--ml-blue)); color:#fff; }
.ml-cta-band h2 { margin:0 0 12px; color:#fff; font-size:clamp(28px,2.5vw,40px); }
.ml-cta-band p { max-width:720px; color:rgba(255,255,255,.86); }
.ml-404 { min-height:56vh; display:grid; align-items:center; }

@media (max-width: 900px) {
  .ml-inner-hero-grid, .ml-content-grid { grid-template-columns:1fr; }
  .ml-inner-photo { max-width:720px; }
  .ml-card-grid, .ml-related { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 600px) {
  .ml-inner-hero { padding:34px 0 52px; }
  .ml-inner-hero h1 { font-size:clamp(32px,9.2vw,42px); }
  .ml-inner-lead { font-size:18px; }
  .ml-card-grid, .ml-card-grid--2, .ml-related { grid-template-columns:1fr; }
  .ml-info-card { padding:22px; }
  .ml-reading > h2, .ml-content-grid h2 { font-size:clamp(27px,8vw,34px); }
  .ml-inline-actions .ml-btn { width:100%; }
}

/* Hero */
.ml-hero { overflow: hidden; padding: clamp(42px, 5vw, 76px) 0 clamp(68px, 7vw, 104px); background: linear-gradient(135deg, #f7fbff 0%, #fff 54%, #eef6ff 100%); }
.ml-hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); align-items: center; gap: clamp(40px, 6vw, 86px); }
.ml-hero h1 { max-width: 760px; margin: 18px 0 22px; }
.ml-hero-lead { max-width: 650px; color: var(--ml-text); font-size: clamp(19px, 1.55vw, 23px); line-height: 1.5; }
.ml-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.ml-geo-line { display: flex; align-items: flex-start; gap: 10px; max-width: 660px; color: var(--ml-muted); font-size: 16px; font-weight: 650; }
.ml-geo-line svg { flex: 0 0 20px; width: 20px; margin-top: 2px; color: var(--ml-blue); }
.ml-visual-panel { position: relative; overflow: hidden; border-radius: var(--ml-radius-lg); background: linear-gradient(145deg, #0d325c, #0756b5 64%, #0c74da); color: var(--ml-white); box-shadow: var(--ml-shadow); isolation: isolate; }
.ml-visual-panel::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(circle at 72% 18%, rgba(255,255,255,.22), transparent 27%), linear-gradient(120deg, transparent 48%, rgba(255,255,255,.08) 49%, rgba(255,255,255,.08) 54%, transparent 55%); }
.ml-visual-panel::after { content: ""; position: absolute; right: -9%; bottom: -18%; width: 54%; aspect-ratio: 1; border: 38px solid rgba(255,255,255,.08); border-radius: 50%; }
.ml-hero-photo { display: block; min-height: 500px; overflow: hidden; border-radius: var(--ml-radius-lg); background: var(--ml-navy); box-shadow: var(--ml-shadow); }
.ml-hero-photo img { display: block; width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: 52% center; }
.ml-photo-caption { position: relative; z-index: 2; max-width: 350px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; background: rgba(7,25,46,.67); backdrop-filter: blur(10px); }
.ml-photo-caption strong { display: block; margin-bottom: 4px; font-size: 17px; }
.ml-photo-caption span { display: block; color: rgba(255,255,255,.83); font-size: 14px; line-height: 1.45; }
.ml-photo-icon { position: absolute; top: 50%; left: 50%; width: 130px; height: 130px; transform: translate(-50%,-58%); color: rgba(255,255,255,.88); }

/* Help */
.ml-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ml-help-card { display: grid; grid-template-columns: 48px 1fr 24px; align-items: start; gap: 14px; min-height: 152px; padding: 22px; border: 1px solid var(--ml-border); border-radius: var(--ml-radius-sm); background: var(--ml-white); color: var(--ml-text); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ml-help-card:hover { transform: translateY(-3px); border-color: #9bc4ee; box-shadow: var(--ml-shadow); color: var(--ml-text); }
.ml-help-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: var(--ml-sky); color: var(--ml-blue); }
.ml-help-icon svg { width: 25px; height: 25px; }
.ml-help-card h3 { margin: 1px 0 6px; font-size: 19px; }
.ml-help-card p { margin: 0; color: var(--ml-muted); font-size: 15px; line-height: 1.45; }
.ml-card-arrow { color: var(--ml-blue); font-size: 24px; line-height: 1; }

/* Direction cards */
.ml-direction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ml-gap); }
.ml-direction-card { overflow: hidden; border: 1px solid var(--ml-border); border-radius: var(--ml-radius); background: var(--ml-white); box-shadow: 0 8px 28px rgba(7,25,46,.06); transition: transform .2s ease, box-shadow .2s ease; }
.ml-direction-card:hover { transform: translateY(-5px); box-shadow: var(--ml-shadow-hover); }
.ml-direction-visual { min-height: 230px; padding: 24px; border-radius: 0; box-shadow: none; }
.ml-photo-media { position: relative; overflow: hidden; background: #dfeaf5; }
.ml-photo-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ml-direction-visual { padding: 0; aspect-ratio: 3 / 2; }
.ml-direction-visual img { min-height: 100%; transition: transform .35s ease; }
.ml-direction-card:hover .ml-direction-visual img { transform: scale(1.025); }
.ml-direction-visual .ml-photo-caption { position: absolute; right: 22px; bottom: 20px; left: 22px; max-width: none; }
.ml-direction-body { padding: 27px 30px 30px; }
.ml-direction-body h3 { margin: 0 0 10px; }
.ml-direction-body p { margin-bottom: 18px; color: var(--ml-muted); }
.ml-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ml-blue); font-weight: 800; text-decoration: none; }
.ml-text-link:hover { gap: 12px; }
.ml-operator-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.ml-tag { padding: 5px 9px; border-radius: 7px; background: var(--ml-sky); color: var(--ml-blue); font-size: 13px; font-weight: 750; }

/* Expertise */
.ml-expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ml-expertise-card { overflow: hidden; border-radius: var(--ml-radius); background: var(--ml-white); box-shadow: var(--ml-shadow); }
.ml-expertise-card .ml-photo-media { min-height: 210px; border-radius: 0; box-shadow: none; }
.ml-expertise-card .ml-photo-media { aspect-ratio: 3 / 2; }
.ml-expertise-card .ml-photo-caption { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 13px 15px; }
.ml-expertise-body { padding: 25px; }
.ml-expertise-body h3 { margin: 0 0 11px; font-size: 23px; }
.ml-expertise-body p { margin: 0; color: var(--ml-muted); font-size: 16px; }

/* Solution cards */
.ml-solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ml-solution-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--ml-border); border-radius: var(--ml-radius); background: var(--ml-white); }
.ml-solution-count { color: var(--ml-blue); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.ml-solution-card h3 { margin: 8px 0 11px; }
.ml-solution-card > p { min-height: 52px; color: var(--ml-muted); font-size: 16px; }
.ml-check-list { margin: 8px 0 22px; padding: 0; list-style: none; }
.ml-check-list li { position: relative; margin: 0 0 9px; padding-left: 27px; font-size: 16px; }
.ml-check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ml-success); font-weight: 900; }
.ml-solution-note { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ml-border); color: var(--ml-navy); font-weight: 800; }

/* Process */
.ml-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: mlstep; }
.ml-step { position: relative; padding: 28px 28px 25px 74px; border-top: 3px solid var(--ml-blue); background: var(--ml-white); box-shadow: 0 8px 25px rgba(7,25,46,.05); counter-increment: mlstep; }
.ml-step::before { content: counter(mlstep); position: absolute; top: 25px; left: 22px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--ml-blue); color: white; font-weight: 850; }
.ml-step h3 { margin: 0 0 7px; font-size: 20px; }
.ml-step p { margin: 0; color: var(--ml-muted); font-size: 15px; }

/* Work gallery */
.ml-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ml-work-item { position: relative; min-height: 250px; padding: 21px; display: flex; overflow: hidden; align-items: flex-end; border-radius: 18px; background: var(--ml-navy); isolation: isolate; }
.ml-work-item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(7,25,46,.52), transparent 58%); }
.ml-work-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ml-work-item:hover > img { transform: scale(1.03); }
.ml-work-item:nth-child(2n) { background: linear-gradient(145deg, #103c68, #0c74da); }
.ml-work-item:nth-child(3n) { background: linear-gradient(145deg, #07192e, #0756b5); }
.ml-work-item .ml-photo-caption { z-index: 2; width: 100%; padding: 13px 15px; }

/* Facts and geography */
.ml-facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ml-fact { padding: 24px; border-left: 4px solid var(--ml-blue); border-radius: 0 var(--ml-radius-sm) var(--ml-radius-sm) 0; background: var(--ml-sky); }
.ml-fact strong { display: block; color: var(--ml-navy); font-size: 19px; line-height: 1.3; }
.ml-geo-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.ml-place-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ml-place { padding: 9px 13px; border: 1px solid #b9d7f4; border-radius: 999px; background: var(--ml-white); color: var(--ml-navy); font-weight: 700; }
.ml-map-panel { min-height: 350px; padding: 28px; }
.ml-map-lines { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(35deg, transparent 48%, rgba(255,255,255,.25) 49%, rgba(255,255,255,.25) 51%, transparent 52%), linear-gradient(145deg, transparent 47%, rgba(255,255,255,.14) 48%, rgba(255,255,255,.14) 50%, transparent 51%); background-size: 120px 90px, 160px 110px; }
.ml-map-pin { position: absolute; top: 42%; left: 52%; width: 62px; height: 62px; transform: translate(-50%,-50%); color: white; }

/* CTA and contacts */
.ml-cta { padding: clamp(42px, 5vw, 68px); border-radius: var(--ml-radius-lg); background: linear-gradient(120deg, var(--ml-navy), #0a4b8d 72%, var(--ml-blue-bright)); color: var(--ml-white); box-shadow: var(--ml-shadow); }
.ml-cta-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; }
.ml-cta h2 { margin: 0 0 10px; color: var(--ml-white); }
.ml-cta p { max-width: 720px; margin: 0; color: rgba(255,255,255,.82); font-size: 19px; }
.ml-cta-actions { display: flex; gap: 10px; }
.ml-contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.ml-contact-card { padding: clamp(28px, 4vw, 46px); border: 1px solid var(--ml-border); border-radius: var(--ml-radius); background: var(--ml-white); box-shadow: var(--ml-shadow); }
.ml-contact-card h2 { margin-top: 0; }
.ml-contact-list { margin: 26px 0 0; padding: 0; list-style: none; }
.ml-contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin: 0 0 18px; }
.ml-contact-list svg { width: 23px; color: var(--ml-blue); }
.ml-contact-list a { color: var(--ml-navy); font-size: 21px; font-weight: 800; text-decoration: none; }

/* Footer */
.ml-site-footer { background: var(--ml-navy); color: rgba(255,255,255,.72); }
.ml-footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 42px; padding-block: 64px 48px; }
.ml-footer-title { margin: 0 0 17px; color: var(--ml-white); font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.ml-footer-brand .ml-brand { margin-bottom: 18px; color: var(--ml-white); }
.ml-footer-brand p { max-width: 320px; font-size: 15px; }
.ml-footer-links { margin: 0; padding: 0; list-style: none; }
.ml-footer-links li { margin: 0 0 10px; }
.ml-footer-links a { color: rgba(255,255,255,.76); font-size: 15px; text-decoration: none; }
.ml-footer-links a:hover { color: var(--ml-white); }
.ml-footer-phone { display: block; margin: 2px 0 10px; color: var(--ml-white); font-size: 20px; font-weight: 800; text-decoration: none; }
.ml-footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 22px 0 27px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 1180px) {
  .ml-header-inner { gap: 18px; }
  .ml-main-nav ul { gap: 13px; }
  .ml-main-nav a { font-size: 14px; }
  .ml-call-compact { display: none; }
  .ml-hero-grid { grid-template-columns: 1fr .85fr; gap: 40px; }
}

@media (max-width: 1024px) {
  .ml-main-nav, .ml-header-contact { display: none; }
  .ml-header-inner { grid-template-columns: 1fr auto; min-height: 70px; }
  .ml-mobile-actions { display: flex; }
  .ml-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 30px; }
  .ml-hero-photo, .ml-hero-photo img { min-height: 420px; }
  .ml-help-grid { grid-template-columns: repeat(2, 1fr); }
  .ml-expertise-grid, .ml-solutions-grid { grid-template-columns: 1fr; }
  .ml-expertise-card { display: grid; grid-template-columns: .72fr 1fr; }
  .ml-expertise-card .ml-photo-media { min-height: 230px; }
  .ml-solution-card > p { min-height: auto; }
  .ml-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .ml-footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .ml-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .admin-bar .ml-site-header { top: 46px; }
  .ml-container, .ml-container--wide { width: min(calc(100% - 36px), var(--ml-container)); }
  .ml-hero { padding-top: 38px; }
  .ml-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .ml-hero-copy { max-width: 680px; }
  .ml-hero-photo, .ml-hero-photo img { min-height: 350px; }
  .ml-direction-grid { grid-template-columns: 1fr; }
  .ml-expertise-card { grid-template-columns: 1fr; }
  .ml-process { grid-template-columns: 1fr; }
  .ml-work-grid { grid-template-columns: repeat(2, 1fr); }
  .ml-geo-grid, .ml-contact-grid { grid-template-columns: 1fr; }
  .ml-cta-grid { grid-template-columns: 1fr; }
  .ml-cta-actions { justify-content: flex-start; }
  .ml-footer-main { grid-template-columns: repeat(2, 1fr); }
  .ml-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  :root { --ml-section: 58px; }
  body { font-size: 17px; }
  h1 { font-size: clamp(35px, 10.4vw, 43px); }
  h2 { font-size: clamp(29px, 8.2vw, 36px); }
  .ml-container, .ml-container--wide { width: min(calc(100% - 28px), var(--ml-container)); }
  .ml-brand-mark { width: 36px; height: 36px; }
  .ml-brand-name { font-size: 19px; }
  .ml-header-inner { min-height: 64px; }
  .ml-icon-btn { width: 46px; height: 46px; }
  .ml-hero { padding: 30px 0 58px; }
  .ml-hero h1 { margin: 15px 0 17px; }
  .ml-hero-lead { font-size: 18px; }
  .ml-hero-actions { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 22px; }
  .ml-btn { min-height: 50px; padding-inline: 14px; font-size: 16px; }
  .ml-geo-line { font-size: 14px; }
  .ml-hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .ml-hero-photo img { min-height: 0; height: 100%; object-position: center; }
  .ml-photo-icon { width: 88px; height: 88px; transform: translate(-50%,-70%); }
  .ml-photo-caption { padding: 13px 15px; }
  .ml-help-grid { grid-template-columns: 1fr; gap: 10px; }
  .ml-help-card { min-height: 0; grid-template-columns: 43px 1fr 20px; padding: 17px; }
  .ml-help-icon { width: 43px; height: 43px; }
  .ml-direction-visual { min-height: 190px; }
  .ml-direction-body { padding: 22px; }
  .ml-expertise-card .ml-photo-media { min-height: 190px; }
  .ml-solutions-grid { gap: 13px; }
  .ml-solution-card { padding: 22px; }
  .ml-step { padding: 23px 20px 22px 67px; }
  .ml-work-grid { grid-template-columns: 1fr; }
  .ml-work-item { min-height: 210px; }
  .ml-facts-grid { grid-template-columns: 1fr; }
  .ml-map-panel { min-height: 280px; }
  .ml-cta { padding: 30px 22px; border-radius: 21px; }
  .ml-cta p { font-size: 17px; }
  .ml-cta-actions { display: grid; grid-template-columns: 1fr; }
  .ml-contact-card { padding: 26px 22px; }
  .ml-footer-main { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 34px; }
  .ml-footer-brand { grid-column: auto; }
  .ml-footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 340px) {
  .ml-brand-name { font-size: 17px; }
  .ml-mobile-actions { gap: 5px; }
  .ml-icon-btn { width: 44px; height: 44px; }
  .ml-hero-actions { grid-template-columns: 1fr; }
  .ml-help-card { grid-template-columns: 40px 1fr; }
  .ml-card-arrow { display: none; }
  .ml-photo-caption span { font-size: 13px; }
}

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