/* Techno Place — tokens, base, header, footer and shared components (сборка/ДИЗАЙН-СИСТЕМА.md).
   Sizes are mock-up pixels at 1536 px (the width of the Codex mock-ups) times --u, so the page matches the mock-ups one to one at 1536 px
   and scales with the window; the phone layout (≤ 767 px) has its own sizes. Font sizes: проверка/measure/home-sizes.json. */

/* Fonts: own files (Google Fonts, SIL OFL — assets/fonts/OFL-*.txt), latin and latin-ext; Inter Tight is variable (400–700). 29.10, owner's OK. */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-tight-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-tight-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Special Gothic Expanded One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/special-gothic-expanded-one-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Special Gothic Expanded One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/special-gothic-expanded-one-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--c-accent: #F8AD40;
	--c-accent-hover: #F59322;
	--c-ink: #272C36;
	--c-navy: #30374F;
	--c-footer: #26282E;
	--c-text: #30374F;
	--c-muted: #5A6275;
	--c-muted-dark: #B9BDC6;
	--c-bg: #EDF0F2;
	--c-paper: #FFFFFF;
	--c-line: #DCE0E5;
	--c-line-dark: #4F5867;
	--c-accent-text: #9A5B00;
	--c-error: #B42318;

	--f-head: 'Special Gothic Expanded One', 'Arial Black', system-ui, sans-serif;
	--f-text: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* One type scale (29.10, after every page matched its mock-up): every font size of the theme is one of these tokens
	   (tools/type_scale_tp.py). Fluid below 1536 px, fixed above; the second number is the phone size. */
	--t-d1: clamp(34px, 3.65vw, 56px);   /* page title (H1) */
	--t-d2: clamp(28px, 2.86vw, 44px);   /* section title (H2) */
	--t-num: clamp(28px, 2.86vw, 44px);   /* big figures: 25,000+, 99 % */
	--t-d3: clamp(24px, 2.08vw, 32px);   /* featured card, sub-section, step numerals, product name */
	--t-d4: clamp(21px, 1.69vw, 26px);   /* card title */
	--t-d5: clamp(18px, 1.37vw, 21px);   /* small display title */
	--t-price-l: clamp(24px, 1.95vw, 30px);   /* main price (product, spotlight) */
	--t-lead: clamp(18px, 1.43vw, 22px);   /* lead under a title */
	--t-price: clamp(18px, 1.43vw, 22px);   /* card price, totals */
	--t-xl: clamp(17px, 1.3vw, 20px);   /* large text: steps, questions, article text, guide titles */
	--t-btn-l: clamp(17px, 1.3vw, 20px);   /* large button */
	--t-m: clamp(16px, 1.17vw, 18px);   /* body text */
	--t-btn: clamp(16px, 1.17vw, 18px);   /* button */
	--t-s: 16px;   /* meta, crumbs, chips, form fields (16 px: no zoom on iPhone) */
	--t-btn-s: clamp(15px, 1.04vw, 16px);   /* small button */
	--t-xs: 14px;   /* badges, notes, small chips */
	--t-2xs: 13px;   /* smallest labels */
	--u: min(calc(100vw / 1536), 1px);   /* one mock-up pixel; the layout stops growing at 1536 px like the type scale (29.10, was 1.15px) */
	--gutter: calc(44 * var(--u));
	--radius: 8px;
}
@media (max-width: 1023px) { :root { --u: calc(1024px / 1536); --gutter: 24px; } }
@media (max-width: 767px)  { :root { --gutter: 16px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 var(--t-m)/1.45 var(--f-text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
.tp-wrap { width: 100%; max-width: calc(1536 * var(--u) + 0px); margin: 0 auto; padding: 0 var(--gutter); }
/* wider than 1536 px: the page stays 1536 px and centred (29.10; it used to grow to 1767 px) */
.tp-sr, .tp-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-skip { position: absolute; left: -9999px; }
.tp-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--c-paper); padding: 8px 12px; }
.tp-ic { flex: none; }
.tp-ic .a { stroke: var(--c-accent); }
.tp-center { text-align: center; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* Headings: the wide display face of the logo */
.tp-h { font-family: var(--f-head); color: var(--c-navy); letter-spacing: -.012em; line-height: 1.04; }
.tp-h--xl { font-size: var(--t-d2); }
.tp-h--l  { font-size: var(--t-d2); }
.tp-h--m  { font-size: var(--t-d2); }
.tp-h--card { font-size: var(--t-d3); line-height: 1.18; }
.tp-lead { font-size: var(--t-lead); color: var(--c-muted); line-height: 1.3; margin-top: calc(14 * var(--u)); }
.tp-sec { padding: calc(60 * var(--u)) 0; }

/* The thin plan line under a heading, with its notch at the right end */
.tp-title { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: calc(26 * var(--u)); }
.tp-title__h { font-family: var(--f-head); color: var(--c-navy); letter-spacing: -.012em; line-height: 1.02; }
.tp-title--xl .tp-title__h { font-size: var(--t-d2); }
.tp-title--l .tp-title__h { font-size: var(--t-d2); }
.tp-title--m .tp-title__h { font-size: var(--t-d2); }
.tp-title__aside { margin-bottom: calc(6 * var(--u)); }
.tp-rule { position: absolute; left: 0; bottom: 0; width: var(--rule, 60%); height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='16'%3E%3Cpath d='M0 15.25H4L18 .75H140' fill='none' stroke='%2330374F' stroke-width='1.5'/%3E%3C/svg%3E") right bottom / 140px 16px no-repeat; }
.tp-rule::before { content: ''; position: absolute; left: 0; right: 136px; bottom: 0; border-bottom: 1.5px solid var(--c-navy); }
.tp-rule--light { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='16'%3E%3Cpath d='M0 15.25H4L18 .75H140' fill='none' stroke='%234F5867' stroke-width='1.5'/%3E%3C/svg%3E"); }
.tp-rule--light::before { border-color: var(--c-line-dark); }

/* Buttons */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 calc(28 * var(--u)); border: 2px solid transparent;
	border-radius: var(--radius); font: 700 var(--t-btn)/1.1 var(--f-text); cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.tp-btn--primary { background: var(--c-accent); color: var(--c-ink); }
.tp-btn--primary:hover { background: var(--c-accent-hover); }
.tp-cartform { display: contents; }   /* the Add to cart form (tp_cart_form) takes no box: its button sits where the link was */
.tp-btn--outline { background: var(--c-paper); color: var(--c-navy); border-color: var(--c-navy); font-weight: 600; }
.tp-btn--outline:hover { background: var(--c-navy); color: #fff; }
.tp-btn--outline-light { background: transparent; color: #fff; border-color: #fff; font-weight: 600; }
.tp-btn--outline-light:hover { background: #fff; color: var(--c-ink); }
.tp-btn--link-light { padding: 0; min-height: 0; color: #fff; font-weight: 600; border: 0; }
.tp-btn--link-light .tp-ic { color: #fff; }
.tp-btn--lg { min-height: max(50px, calc(59 * var(--u))); font-size: var(--t-btn-l); }
.tp-btn--sm { min-height: max(40px, calc(45 * var(--u))); font-size: var(--t-btn-s); font-weight: 500; padding: 0 14px; }
.tp-btn--block { display: flex; width: 100%; }
.tp-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--t-xl); color: var(--c-navy); }
.tp-link .tp-ic { color: var(--c-accent); }
.tp-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Top bar and header (approved screen M) */
.tp-topbar { background: var(--c-ink); color: #EEF0F3; font-size: var(--t-xs); }
.tp-topbar p { height: max(32px, calc(40 * var(--u))); display: flex; align-items: center; justify-content: center; text-align: center; }
.tp-header { position: sticky; top: 0; z-index: 50; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.tp-header__in { height: max(64px, calc(96 * var(--u))); display: flex; align-items: center; gap: calc(14 * var(--u)); }
.tp-header__logo { flex: none; margin-left: calc(-2 * var(--u)); }
.tp-header__logo .tp-logo { width: calc(311 * var(--u)); min-width: 180px; height: auto; }
.tp-cats { position: relative; flex: none; margin-left: calc(3 * var(--u)); }
.tp-cats__btn { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); height: max(44px, calc(54 * var(--u))); padding: 0 calc(14 * var(--u));
	border: 1.5px solid var(--c-navy); border-radius: var(--radius); background: var(--c-paper); color: var(--c-navy); font-weight: 500; font-size: var(--t-xs); cursor: pointer; }
.tp-cats__btn[aria-expanded="true"] { background: var(--c-navy); color: #fff; }
.tp-cats__menu { position: absolute; top: calc(100% + 10px); left: 0; width: 360px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 8px 0; z-index: 60; }
.tp-cats__menu a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; font-size: var(--t-s); color: var(--c-navy); }
.tp-cats__menu a:hover { background: var(--c-bg); }
.tp-cats__n { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.tp-cats__all { border-top: 1px solid var(--c-line); margin-top: 6px; font-weight: 600; justify-content: flex-start !important; align-items: center; }
.tp-cats__all .tp-ic { color: var(--c-accent); }
.tp-search { flex: 1 1 auto; max-width: calc(497 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); height: max(44px, calc(54 * var(--u))); padding: 0 calc(16 * var(--u));
	border: 1.5px solid #C9CFD8; border-radius: var(--radius); color: var(--c-navy); }
.tp-search:focus-within { border-color: var(--c-navy); }
.tp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--t-s); }
.tp-search input::placeholder { color: var(--c-muted); }
.tp-nav { display: flex; gap: calc(29 * var(--u)); margin-left: calc(11 * var(--u)); font-weight: 500; font-size: var(--t-s); color: var(--c-navy); white-space: nowrap; }
.tp-nav a:hover { color: var(--c-accent-text); }
.tp-nav a.is-on { box-shadow: inset 0 -3px 0 var(--c-accent); padding-bottom: 4px; }
.tp-header__phone { margin-left: auto; padding-left: calc(15 * var(--u)); border-left: 1px solid var(--c-line); font-weight: 500; font-size: var(--t-s); color: var(--c-navy); white-space: nowrap; }
.tp-header__tools { display: flex; align-items: center; gap: 4px; margin-left: calc(14 * var(--u)); }
.tp-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--c-navy); cursor: pointer; position: relative; }
.tp-cart__n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--c-accent); color: var(--c-ink); font: 700 11px/18px var(--f-text); text-align: center; }
.tp-only-m { display: none; }
@media (max-width: 1180px) { .tp-nav { display: none; } }
@media (max-width: 1023px) {
	.tp-header__phone, .tp-cats, .tp-search { display: none; }
	.tp-only-m { display: inline-grid; }
	.tp-header__tools { margin-left: auto; }
	.tp-header__logo .tp-logo { width: 190px; min-width: 0; }
	.tp-header.is-search .tp-search { display: flex; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; max-width: none; background: #fff; margin-top: 8px; }
	.tp-header.is-menu .tp-nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--c-line); font-size: 18px; gap: 14px; margin: 0; }
}
/* 390 px: the logo and four 44 px buttons came to 402 px (found 29.10 with a real 390 px layout; the mobile emulation of shots.py zooms it away) */
@media (max-width: 420px) {
	.tp-header__logo .tp-logo { width: 168px; }
	.tp-header__tools { gap: 0; margin-right: -6px; }
	.tp-iconbtn { width: 42px; }
}

/* Product card (catalogue К1 A, home Г3, card Т5) */
.tp-card { position: relative; display: flex; flex-direction: column; background: var(--c-paper); border: 1px solid #C9CFD8; border-radius: 4px; padding: calc(12 * var(--u)) calc(29 * var(--u)) calc(18 * var(--u)); }
.tp-card__img { display: block; height: calc(165 * var(--u)); min-height: 130px; margin: 0 calc(-14 * var(--u)) calc(8 * var(--u)); }
.tp-card__img img { width: 100%; height: 100%; object-fit: contain; }
.tp-card__brand { font-size: var(--t-s); color: var(--c-muted); }
.tp-card__name { font: 400 var(--t-m)/1.12 var(--f-text); color: var(--c-ink); margin-top: 2px; min-height: 3.36em; }
.tp-card__chips { font-size: var(--t-s); color: var(--c-muted); margin-top: 6px; }
.tp-card__price { font-weight: 700; font-size: var(--t-price); color: var(--c-ink); margin: 0 0 calc(6 * var(--u)); }
.tp-card__btn { margin-top: auto; }
.tp-card__compare { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--t-xs); color: var(--c-muted); }
.tp-badge { position: absolute; top: calc(12 * var(--u)); right: calc(12 * var(--u)); padding: 3px 8px; border: 1.5px solid var(--c-navy); border-radius: 4px; background: #fff; font: 600 var(--t-s)/1.2 var(--f-text); color: var(--c-navy); }

/* Terms row (Г7, Т4, cart) */
.tp-terms { list-style: none; margin: 0; padding: calc(28 * var(--u)) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1.5px solid var(--c-navy); }
.tp-terms li { display: flex; align-items: center; gap: calc(14 * var(--u)); padding: 0 calc(22 * var(--u)); font-size: var(--t-m); line-height: 1.25; color: var(--c-navy); }
.tp-terms li + li { border-left: 1px solid var(--c-line); }
.tp-terms .tp-ic { width: calc(70 * var(--u)); height: calc(70 * var(--u)); min-width: 36px; min-height: 36px; color: var(--c-navy); }

/* Form */
.tp-form__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(20 * var(--u)); }
.tp-field { display: flex; flex-direction: column; gap: calc(4 * var(--u)); font-size: var(--t-m); color: var(--c-muted); }
.tp-field--wide { grid-column: 1 / -1; }
.tp-field input, .tp-field textarea, .tp-field select { width: 100%; height: max(44px, calc(46 * var(--u))); border: 1px solid #C9CFD8; border-radius: 6px; background: #fff; padding: 0 12px; font-size: var(--t-s); color: var(--c-navy); }
.tp-field textarea { height: max(64px, calc(64 * var(--u))); padding: 10px 12px; resize: vertical; }
.tp-field input:focus, .tp-field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-navy); }
.tp-form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: calc(30 * var(--u)); margin-top: calc(20 * var(--u)); }
.tp-form__foot .tp-btn { min-height: max(50px, calc(59 * var(--u))); padding: 0 calc(32 * var(--u)); font-size: var(--t-btn-l); }
.tp-form__call { font-weight: 500; font-size: var(--t-xl); color: var(--c-navy); }
.tp-form__error { color: var(--c-error); margin-bottom: 12px; }
@media (max-width: 767px) { .tp-form__grid { grid-template-columns: 1fr; } }

/* Footer (Г9-A) */
/* Checkboxes and the question accordion (catalog К1/К4, card Т5, FAQ, forms) */
.tp-check { display: flex; align-items: center; gap: calc(11 * var(--u)); min-height: max(24px, calc(20.7 * var(--u)));   /* rows 24 px apart: Lighthouse touch targets */ font-size: var(--t-2xs); line-height: 1.3; color: var(--c-navy); cursor: pointer; }
.tp-check input { appearance: none; flex: none; width: max(14px, calc(15 * var(--u))); height: max(14px, calc(15 * var(--u))); margin: 0; border: 1.5px solid var(--c-accent); border-radius: 2px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.tp-check input:checked { background: var(--c-accent); }
.tp-check input:checked::after { content: ''; width: 45%; height: 25%; border: solid var(--c-ink); border-width: 0 0 2px 2px; transform: translateY(-15%) rotate(-45deg); }
.tp-check span { flex: 1; }
.tp-check em { font-style: normal; color: var(--c-muted); }
.tp-faq__item { border-bottom: 1px solid var(--c-line); }
.tp-faq__item:last-child { border-bottom: 0; }
.tp-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; cursor: pointer;
	min-height: calc(100 * var(--u)); padding: calc(20 * var(--u)) calc(36 * var(--u)) calc(20 * var(--u)) calc(43 * var(--u)); font-weight: 700; font-size: var(--t-xl); color: var(--c-ink); }
.tp-faq__item summary::-webkit-details-marker { display: none; }
.tp-faq__pm { position: relative; flex: none; width: 22px; height: 22px; }
.tp-faq__pm::before, .tp-faq__pm::after { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 2px; margin-top: -1px; background: var(--c-navy); }
.tp-faq__pm::after { transform: rotate(90deg); }
.tp-faq__item[open] .tp-faq__pm::after { display: none; }
.tp-faq__item[open] summary { min-height: 0; padding-top: calc(46 * var(--u)); }
.tp-faq__item p { padding: 0 calc(60 * var(--u)) calc(44 * var(--u)) calc(43 * var(--u)); font-size: var(--t-xl); line-height: 1.45; color: var(--c-navy); }
.tp-faq { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); }

.tp-foot { background: var(--c-footer); color: #DCE0E5; padding: calc(24 * var(--u)) 0 calc(28 * var(--u)); }
.tp-foot > .tp-wrap { padding: 0 calc(64 * var(--u)); }
.tp-foot__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tp-foot__logo .tp-logo { width: calc(493 * var(--u)); min-width: 220px; height: auto; }
.tp-foot__news { display: flex; gap: calc(14 * var(--u)); }
.tp-foot__news input { width: calc(329 * var(--u)); min-width: 200px; height: max(44px, calc(50 * var(--u))); padding: 0 16px; border: 1px solid #6B7280; border-radius: 6px; background: transparent; color: #fff; font-size: var(--t-s); }
.tp-foot__news input::placeholder { color: #B9BDC6; }
.tp-foot__news .tp-btn { min-height: max(44px, calc(50 * var(--u))); padding: 0 calc(34 * var(--u)); font-size: var(--t-btn-s); }
.tp-foot__cols { display: grid; grid-template-columns: 268fr 366fr 196fr 296fr 282fr; gap: 24px 0; margin-top: calc(3 * var(--u)); padding-bottom: calc(22 * var(--u)); border-bottom: 1px solid #3A3F4A; }
.tp-foot__h { font-weight: 700; font-size: var(--t-xl); color: #fff; margin-bottom: calc(2 * var(--u)); }
.tp-foot ul { list-style: none; margin: 0; padding: 0; }
.tp-foot__col { padding-right: 16px; }
.tp-foot__col li, .tp-foot__contact p:not(.tp-foot__h) { font-size: var(--t-m); line-height: 1.47; color: #DCE0E5; }
.tp-foot__col li a, .tp-foot__contact p > a { display: inline-block; padding: 2px 0; }   /* 24 px touch targets on the phone (Lighthouse) */
.tp-foot__col a:hover { color: #fff; text-decoration: underline; }
.tp-foot .tp-social { display: flex; gap: 10px; margin-top: calc(14 * var(--u)); }
.tp-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #6B7280; border-radius: 50%; color: #DCE0E5; }
.tp-social a:hover { border-color: #fff; color: #fff; }
.tp-foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: calc(14 * var(--u)); font-size: var(--t-s); }
.tp-pay { list-style: none; display: flex; flex-wrap: wrap; gap: calc(10 * var(--u)); margin: 0; padding: 0; }
.tp-pay li { padding: calc(6 * var(--u)) calc(14 * var(--u)); border: 1px solid #6B7280; border-radius: 4px; font-size: var(--t-xs); color: #DCE0E5; }
@media (max-width: 1023px) { .tp-foot > .tp-wrap { padding: 0 var(--gutter); } .tp-foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .tp-foot__cols { grid-template-columns: 1fr; } .tp-foot__news { width: 100%; } .tp-foot__news input { flex: 1; min-width: 0; } }

/* Quantity stepper (card Т1, cart Ш1) */
.tp-qty { display: grid; grid-template-columns: calc(41 * var(--u)) calc(61 * var(--u)) calc(41 * var(--u)); height: max(44px, calc(46 * var(--u))); border: 1px solid #C9CFD8; border-radius: 4px; overflow: hidden; }
.tp-qty button { border: 0; background: #fff; color: var(--c-navy); display: grid; place-items: center; cursor: pointer; min-width: 36px; }
.tp-qty button:hover { background: var(--c-bg); }
.tp-qty input { width: 100%; border: 0; border-left: 1px solid #C9CFD8; border-right: 1px solid #C9CFD8; text-align: center; font: inherit; font-size: var(--t-m); color: var(--c-ink); -moz-appearance: textfield; }
.tp-qty input::-webkit-outer-spin-button, .tp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 404 B "blind spot" (parts/not-found.php): 404, empty search, empty cart */
.tp-nf { padding: calc(118 * var(--u)) 0 calc(110 * var(--u)); }
.tp-nf__in { display: grid; grid-template-columns: calc(755 * var(--u)) calc(598 * var(--u)); justify-content: space-between; align-items: start; padding: 0 calc(61 * var(--u)) 0 calc(60 * var(--u)); }
.tp-nf__txt { padding-top: calc(28 * var(--u)); }
.tp-nf__h { font: 400 var(--t-d1)/1 var(--f-head); color: var(--c-ink); letter-spacing: -.04em; }
.tp-nf__line { margin-top: calc(22 * var(--u)); font-size: var(--t-lead); color: var(--c-ink); }
.tp-nf__search { position: relative; margin-top: calc(34 * var(--u)); }
.tp-nf__search .tp-ic { position: absolute; left: calc(22 * var(--u)); top: 50%; transform: translateY(-50%); color: var(--c-navy); pointer-events: none; }
.tp-nf__search input { width: 100%; height: max(52px, calc(72 * var(--u))); padding: 0 20px 0 calc(76 * var(--u)); border: 1.5px solid var(--c-navy); border-radius: 6px; background: #fff; font: inherit; font-size: var(--t-xl); color: var(--c-ink); }
.tp-nf__search input::placeholder { color: #737B8C; }
.tp-nf__search input:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.tp-nf__cats { display: grid; grid-template-columns: calc(348 * var(--u)) calc(352 * var(--u)); justify-content: space-between; margin: calc(26 * var(--u)) 0 0; padding: 0; list-style: none; }
.tp-nf__cats a { display: flex; justify-content: space-between; align-items: center; height: calc(65.5 * var(--u)); min-height: 48px; border-bottom: 1px solid #D5DAE1; font-size: var(--t-xl); color: var(--c-ink); }
.tp-nf__cats a:hover { color: var(--c-navy); text-decoration: underline; text-underline-offset: 4px; }
.tp-nf__cats .tp-ic { color: var(--c-navy); }
.tp-nf__call { margin-top: calc(30 * var(--u)); font-size: var(--t-lead); color: var(--c-ink); }
.tp-nf__call a { font-weight: 700; }
.tp-plan { display: block; width: 100%; height: auto; }
.tp-plan__w path { fill: none; stroke: #30374F; stroke-width: 3; stroke-linecap: square; }
.tp-plan__d path { fill: none; stroke: #30374F; stroke-width: 1.2; }
.tp-plan__f rect, .tp-plan__f path { fill: #fff; stroke: #30374F; stroke-width: 1.3; }
.tp-plan__spot { fill: #D5DAE1; stroke: #6B7385; stroke-width: 1.2; stroke-dasharray: 5 4; }
.tp-plan__lbl { font: 500 17px var(--f-text); fill: var(--c-ink); text-anchor: middle; }
.tp-plan__cam { fill: var(--c-accent); stroke: #30374F; stroke-width: 1.5; }
@media (max-width: 1023px) {
	.tp-nf { padding: 40px 0 56px; }
	.tp-nf__in { grid-template-columns: 1fr; gap: 36px; padding: 0 var(--gutter); }
	.tp-nf__txt { padding-top: 0; }
	.tp-plan { max-width: 520px; }
}
@media (max-width: 767px) {
	.tp-nf__cats { grid-template-columns: 1fr; }
	.tp-nf__search .tp-ic { left: 14px; }
	.tp-nf__search input { padding-left: 54px; }
}

/* Т4 terms cards (product page, policy pages) */
.tp-pterms { list-style: none; margin: calc(40 * var(--u)) 0 0; padding: calc(38 * var(--u)) 0 calc(30 * var(--u)); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--c-paper); border: 1.5px solid var(--c-navy); border-radius: 4px; }
.tp-pterms li { padding: 0 calc(34 * var(--u)); border-left: 1px solid #C9CFD8; }
.tp-pterms li:first-child { border-left: 0; }
.tp-pterms .tp-ic { width: calc(176 * var(--u)); height: calc(150 * var(--u)); margin-left: calc(-14 * var(--u)); color: var(--c-navy); }
.tp-pterms h2 { margin-top: calc(22 * var(--u)); font: 400 var(--t-d3)/1.1 var(--f-head); color: var(--c-ink); letter-spacing: -.02em; }
.tp-pterms h2 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tp-pterms p { margin-top: calc(18 * var(--u)); font-size: var(--t-xl); line-height: 1.33; color: var(--c-ink); }
.tp-pterms p a:hover { text-decoration: underline; }
.tp-pterms li.is-on h2 { color: var(--c-navy); }
@media (max-width: 1023px) {
	.tp-pterms { grid-template-columns: 1fr 1fr; gap: 28px 0; }
	.tp-pterms li:nth-child(3) { border-left: 0; }
}
@media (max-width: 767px) {
	.tp-pterms { grid-template-columns: 1fr; padding: 24px 0; }
	.tp-pterms li { border-left: 0; padding: 0 20px; }
	.tp-pterms .tp-ic { width: 90px; height: 72px; }
}
