/* Midwood Kings — tokens, base, header, footer and shared components.
   Sizes are the mock-up's own pixels at 1536 px (tools/measure_mock.py), written as N * var(--s) so they scale with the window;
   phones get their own sizes below 900 px. One type scale for the whole site comes after every page is built (owner's rule, 28.10). */

@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }   /* Inter variable, latin (OFL), self-hosted */

:root {
	--blue: #0054AC;          /* brand blue: buttons, links, logo badge (mock-ups sample #014EAB–#0158B6) */
	--blue-band: #064DA3;     /* G3 band */
	--blue-strip: #0149A1;    /* top strip */
	--navy: #0B1F3A;          /* G5 band, footer (mock-ups sample #062345 / #0B2445) */
	--hero-navy: #06203D;     /* hero fade */
	--ink: #1C1F24;
	--text: #4A4F57;
	--muted: #5D6371;
	--bg-cool: #F2F6FA;
	--spec: #EFF4F7;
	--line: #E3E7EC;
	--white: #FFFFFF;
	--on-dark: #C7D2E0;

	/* One type scale (29.10, after every page matched its mock-up): mock px at 1536, phone px as the floor.
	   Every font size of the theme is one of these (tools/type_scale.py); the same role has the same size on every page. */
	--t-display: max(36px, calc(76 * var(--s)));
	--t-h1: max(30px, calc(60 * var(--s)));
	--t-h2: max(28px, calc(48 * var(--s)));
	--t-h3: max(24px, calc(38 * var(--s)));
	--t-h4: max(22px, calc(32 * var(--s)));
	--t-h5: max(18px, calc(27 * var(--s)));
	--t-xl: max(17.5px, calc(25 * var(--s)));
	--t-l: max(17px, calc(22 * var(--s)));
	--t-m: max(16.5px, calc(19.5 * var(--s)));
	--t-s: max(16px, calc(17.5 * var(--s)));
	--t-xs: max(14.5px, calc(15.5 * var(--s)));
	--t-label: max(13px, calc(14 * var(--s)));

	--f: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--s: min(calc(100vw / 1536), 1px);      /* one mock-up pixel; above 1536 px the page stays as at 1536 (owner, 29.10) */
	--gut: calc(62 * var(--s));             /* side margin of the mock-ups: 62 px at 1536 */
	--wrap: 1536px;                          /* the mock-up width: wider screens get side margins, not longer lines */
	--r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 var(--t-s)/1.5 var(--f); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
button, input, select, textarea { font: inherit; color: inherit; }
.mk-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mk-skip { position: absolute; left: -9999px; }
.mk-skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mk-i { flex: none; }

/* Eyebrow, links, buttons, chips */
.mk-eyebrow { color: var(--blue); font-weight: 600; font-size: var(--t-xs); letter-spacing: .25em; text-transform: uppercase; margin-bottom: calc(10 * var(--s)); }
.mk-eyebrow--light { color: var(--white); }
.mk-link { display: inline-flex; align-items: center; gap: .45em; color: var(--blue); font-weight: 600; font-size: var(--t-m); }
.mk-link--light { color: var(--white); }
.mk-link .mk-i { transition: transform .2s; }
.mk-link:hover .mk-i { transform: translateX(3px); }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1.5px solid transparent; border-radius: var(--r); font-weight: 600; line-height: 1.1; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
	font-size: var(--t-s); padding: calc(15 * var(--s)) calc(28 * var(--s)); min-height: 44px; }
.mk-btn--primary { background: var(--blue); color: var(--white); }
.mk-btn--primary:hover { background: #00468F; }
.mk-btn--white { background: var(--white); color: var(--blue); }
.mk-btn--white:hover { background: #EAF1FA; }
.mk-btn--outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.mk-btn--outline:hover { background: var(--blue); color: var(--white); }
.mk-btn--ghost-light { border-color: rgba(255, 255, 255, .85); color: var(--white); background: transparent; }
.mk-btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }
.mk-btn--sm { font-size: var(--t-xs); font-weight: 600; padding: calc(8 * var(--s)) calc(24 * var(--s)); min-height: 40px; }
.mk-btn--lg { font-size: var(--t-xl); padding: calc(18 * var(--s)) calc(40 * var(--s)); }
.mk-btn--xl { font-size: var(--t-xl); font-weight: 600; padding: calc(17 * var(--s)) calc(44 * var(--s)); }
.mk-btn--block { display: flex; width: 100%; }
.mk-chips { display: flex; flex-wrap: wrap; gap: calc(12 * var(--s)); }
.mk-chip { display: inline-flex; align-items: center; border: 1px solid var(--blue); border-radius: var(--r); color: var(--ink); background: var(--white); font-size: var(--t-xs); padding: 0 calc(26 * var(--s)); height: max(36px, calc(41 * var(--s))); }
.mk-chip:hover { background: var(--blue); color: var(--white); }
.mk-chip--light { border-color: rgba(255, 255, 255, .85); color: var(--white); background: transparent; font-weight: 500; font-size: var(--t-m); height: max(40px, calc(52 * var(--s))); padding: 0 calc(36 * var(--s)); }
.mk-chip--light:hover { background: var(--white); color: var(--blue-band); }
.mk-spec { display: inline-flex; align-items: center; background: var(--spec); color: var(--muted); border-radius: 3px; font-size: var(--t-label); padding: calc(3 * var(--s)) calc(12 * var(--s)); }

/* Top strip */
.mk-strip { background: var(--blue-strip); color: var(--white); text-align: center; font-size: var(--t-label); line-height: calc(42 * var(--s)); min-height: 30px; }
.mk-strip a { color: inherit; }
.mk-strip__short { display: none; }

/* Header (G1 D: 113 px at 1536) */
.mk-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.mk-header__in { display: flex; align-items: center; height: calc(113 * var(--s)); min-height: 64px; gap: calc(34 * var(--s)); }
.mk-header__logo { flex: none; }
.mk-header__logo .mk-logo { width: calc(492 * var(--s)); height: auto; display: block; }
.mk-nav { display: flex; align-items: center; gap: calc(38 * var(--s)); margin-left: auto; }
.mk-nav__item { position: relative; color: var(--ink); font-weight: 500; font-size: var(--t-s); white-space: nowrap; }
.mk-nav__item > a { display: block; padding: calc(10 * var(--s)) 0; }
.mk-nav a:hover { color: var(--blue); }
.mk-nav__item.is-on, .mk-nav__item.is-on > a { color: var(--blue); }
.mk-nav__item.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-8 * var(--s)); height: 2px; background: var(--blue); }
a.mk-nav__item.is-on { position: relative; }
.mk-drop { position: absolute; left: calc(-20 * var(--s)); top: 100%; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 0; display: none; }
.mk-nav__item--drop:hover .mk-drop, .mk-nav__item--drop:focus-within .mk-drop { display: block; }
.mk-drop a { display: flex; justify-content: space-between; gap: 18px; padding: 9px 20px; font-size: var(--t-s); font-weight: 400; }
.mk-drop a span { color: var(--muted); }
.mk-drop__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; color: var(--blue); font-weight: 600 !important; justify-content: flex-start !important; align-items: center; }
.mk-nav__cta-m { display: none; }
.mk-header__tools { display: flex; align-items: center; gap: calc(26 * var(--s)); }
.mk-header__phone { display: inline-flex; align-items: center; gap: calc(6 * var(--s)); color: var(--blue); font-weight: 500; font-size: var(--t-s); white-space: nowrap; }
.mk-iconbtn { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); }
.mk-header__cart { position: relative; }
.mk-header__count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
/* WooCommerce notices (its own stylesheet is not loaded): added to cart, errors */
.mk-notices { padding-top: calc(14 * var(--s)); }
.mk-notices .woocommerce-message, .mk-notices .woocommerce-info, .mk-notices .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0; padding: 12px 18px; list-style: none; border: 1px solid #BFD3EC; border-left: 4px solid var(--blue); background: var(--bg-cool); color: var(--ink); font-size: var(--t-s); }
.mk-notices .woocommerce-error { border-color: #F0C7C2; border-left-color: #B42318; background: #FEF3F2; }
.mk-notices .woocommerce-message + *, .mk-notices .woocommerce-info + *, .mk-notices .woocommerce-error + * { margin-top: 8px; }
.mk-notices .button { order: 2; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mk-header__search, .mk-header__call, .mk-header__burger { display: none; }
.mk-header__cta { font-size: var(--t-s); font-weight: 600; padding: calc(13 * var(--s)) calc(26 * var(--s)); }
.mk-search-drop { border-top: 1px solid var(--line); padding: 12px 0; background: var(--white); }
.mk-search-drop .mk-wrap { display: flex; gap: 10px; }
.mk-search-drop input { flex: 1; min-width: 0; border: 1px solid var(--blue); border-radius: var(--r); padding: 10px 14px; }

/* Final call band, contact strip, footer (G9 A) */
.mk-final { background: var(--blue); color: var(--white); }
.mk-final__in { display: flex; align-items: center; justify-content: space-between; gap: calc(60 * var(--s)); padding-top: calc(86 * var(--s)); padding-bottom: calc(80 * var(--s)); }
.mk-final__title { color: var(--white); font-size: var(--t-h1); line-height: 1.07; max-width: calc(820 * var(--s)); }
.mk-final__text { font-size: var(--t-xl); line-height: 1.45; margin-top: calc(30 * var(--s)); max-width: calc(940 * var(--s)); }
.mk-final__btns { display: grid; gap: calc(25 * var(--s)); width: calc(364 * var(--s)); flex: none; }
.mk-final__btns .mk-btn { width: 100%; height: calc(76 * var(--s)); }
.mk-contacts { background: var(--white); }
.mk-contacts__in { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; padding-top: calc(60 * var(--s)); padding-bottom: calc(60 * var(--s)); }
.mk-contacts li { display: flex; align-items: center; gap: calc(36 * var(--s)); font-size: var(--t-l); line-height: 1.45; color: var(--ink); }
.mk-contacts .mk-i { color: var(--blue); width: calc(52 * var(--s)); height: calc(52 * var(--s)); min-width: 32px; min-height: 32px; }
.mk-footer { background: var(--navy); color: var(--on-dark); }
.mk-footer__in { display: grid; grid-template-columns: 1.95fr 1fr 1fr .9fr 1.05fr; gap: calc(36 * var(--s)); padding-top: calc(70 * var(--s)); padding-bottom: calc(56 * var(--s)); }
.mk-footer__brand .mk-logo { width: calc(464 * var(--s)); height: auto; }
.mk-footer__social { display: flex; gap: calc(36 * var(--s)); margin-top: calc(52 * var(--s)); }
.mk-footer__social a { color: var(--white); }
.mk-footer__social .mk-i { width: calc(42 * var(--s)); height: calc(42 * var(--s)); min-width: 28px; min-height: 28px; }
.mk-footer__col { display: flex; flex-direction: column; gap: calc(14 * var(--s)); font-size: var(--t-m); line-height: 1.5; }
.mk-footer__col a:hover { color: var(--white); }
.mk-footer__t { color: var(--white); font-weight: 600; font-size: var(--t-xl); margin-bottom: calc(6 * var(--s)); }
.mk-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: calc(24 * var(--s)); padding-bottom: calc(50 * var(--s)); font-size: var(--t-s); }
.mk-footer__bottom a:hover { color: var(--white); }


/* Product card of every grid (home G4 C, catalog K1 A, similar T5 A) */
.mk-pcard { display: flex; flex-direction: column; }
.mk-pcard__img { display: grid; place-items: center; width: 71%; aspect-ratio: 1; margin: 0 auto calc(10 * var(--s)); background: var(--bg-cool); padding: calc(14 * var(--s)); }
.mk-pcard__img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.mk-pcard__brand { color: var(--blue); font-weight: 600; font-size: var(--t-xs); letter-spacing: .02em; text-transform: uppercase; }
.mk-pcard__name { max-width: calc(290 * var(--s)); font-weight: 400; color: var(--ink); font-size: var(--t-m); line-height: 1.27; letter-spacing: 0; margin-top: calc(2 * var(--s)); min-height: 2.54em; }
.mk-pcard__name a:hover { color: var(--blue); }
.mk-nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: 120px; color: #A9B4C2; font-size: var(--t-label); letter-spacing: .02em; }
.mk-nophoto > span { color: var(--text); }   /* the icon stays pale, the words need 4.5:1 on white and on #F4F6F9 */
.mk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mk-nophoto .mk-i { width: 30%; max-width: 72px; height: auto; }
.mk-pcard__chips { display: flex; flex-wrap: wrap; gap: calc(9 * var(--s)); margin-top: calc(10 * var(--s)); }
.mk-pcard__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: calc(10 * var(--s)); }
.mk-pcard__price { color: var(--ink); font-weight: 700; font-size: var(--t-xl); }
.mk-pcard__buy .mk-btn { width: calc(137 * var(--s)); height: calc(39 * var(--s)); min-height: 36px; padding: 0; font-size: var(--t-xs); }

/* Phones and small tablets */
@media (max-width: 1180px) {
	.mk-header__phone span { display: none; }
	.mk-nav { gap: 22px; }
	.mk-header__logo .mk-logo { width: 300px; }
}
@media (max-width: 900px) {
	.mk-pcard__img { width: 100%; }
	.mk-pcard__name { max-width: none; }
	.mk-spec { padding: 2px 7px; }
	.mk-pcard__buy { flex-direction: column; align-items: stretch; }
	.mk-pcard__buy .mk-btn { width: 100%;  }
	:root { --gut: 16px; }
	.mk-strip { line-height: 1.3; padding: 7px 16px;  }
	.mk-strip__wide { display: none; }
	.mk-strip__short { display: block; }
	.mk-header__in { height: 64px; gap: 10px; }
	.mk-header__logo .mk-logo { width: 196px; }
	.mk-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); margin: 0; }
	.mk-nav.is-open { display: flex; }
	.mk-nav__item { border-bottom: 1px solid var(--line); }
	.mk-nav__item > a, .mk-nav > a.mk-nav__item { display: block; padding: 14px 0; }
	.mk-drop { position: static; display: block; border: 0; padding: 0 0 10px; min-width: 0; }
	.mk-drop a { padding: 7px 0;  }
	.mk-nav__cta-m { display: flex; margin-top: 16px; }
	.mk-header__tools { margin-left: auto; gap: 6px; }
	.mk-header__phone, .mk-header__cta, .mk-header__account { display: none; }
	.mk-header__search, .mk-header__call, .mk-header__burger { display: inline-flex; }
	.mk-header__call { color: var(--blue); }
	.mk-final__in { flex-direction: column; align-items: stretch; padding-top: 48px; padding-bottom: 48px; }
	.mk-final__btns { width: 100%; }
	.mk-final__title, .mk-final__text { max-width: none; }
	.mk-final__btns .mk-btn { height: 56px; }
	.mk-contacts__in { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; padding-bottom: 32px; }
	.mk-footer__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 40px; }
	.mk-footer__brand { grid-column: 1 / -1; }
	.mk-footer__brand .mk-logo { width: 260px; }
	.mk-footer__social { margin-top: 20px; }
}
