/*
Theme Name: ТД Микроэлектроники
Version: 0.1.0
Text Domain: ith
*/
:root {
  --ink: #102542;
  --muted: #506079;
  --paper: #fff;
  --line: #d5dfec;
  --pale: #eff4fa;
  --accent: #173d6a;
  --link: #214e80;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
}
* {box-sizing:border-box}
html {scrollbar-width:none}
html.panel-touch-lock {overflow-y:hidden}
html::-webkit-scrollbar {display:none}
body {margin:0;background:var(--paper);line-height:1.5}
.ith-inner-page {display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.ith-inner-page > main {flex:1 0 auto}
.ith-inner-page > footer {margin-top:0}
button,input,select {font:inherit}
a {color:var(--link);text-underline-offset:.2em}
a:hover {text-decoration:underline}
button,.button {border:0;border-radius:5px;cursor:pointer;background:var(--ink);color:white;padding:.7rem 1.2rem;font-weight:650}
button:hover,.button:hover {background:#23476f}
:focus-visible {outline:3px solid #3679b6;outline-offset:3px}
.wrap {width:min(1320px,calc(100% - clamp(2rem,8vw,8rem)));margin-inline:auto}
.visually-hidden,.skip:not(:focus) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus {position:fixed;top:.5rem;left:1rem;padding:.75rem;background:white;z-index:30}
.hero-actions,.section-title,.list-controls,.sorting,.pagination {display:flex;align-items:center}
.tile-grid a,.hero-actions a,.pagination a {color:inherit;text-decoration:none}
.hero-actions a:hover {text-decoration:underline}
.ith-inner-page {padding-top:var(--mast-height)}
.hero {position:relative;isolation:isolate;overflow:hidden;color:white;background:#091b37}
.hero-photo {position:absolute;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:59% 48%}
.hero::before {content:"";z-index:-1;position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,23,48,.95) 0%,rgba(8,23,48,.83) 35%,rgba(8,23,48,.36) 60%,rgba(8,23,48,.05) 85%)}
.hero-inner {min-height:clamp(380px,33vw,520px);display:flex;align-items:center;padding-block:clamp(2.5rem,5vw,5rem)}
.hero-copy {max-width:740px}
.hero h1 {font-size:clamp(2.7rem,4.35vw,4.65rem);font-weight:630;letter-spacing:-.055em;line-height:1.02;margin:0}
.hero-copy>p {margin:1.1rem 0 1.65rem;color:#e1e8f1;font-size:clamp(1rem,1.25vw,1.18rem)}
.part-search {display:flex;align-items:stretch;column-gap:12px;width:min(610px,100%);border-radius:6px;background:white;padding:5px;box-shadow:0 1px 2px #0001}
.part-search label {flex:1;min-width:0;display:flex;align-items:center;gap:13px;padding-left:13px}
.part-search input {min-width:0;width:100%;border:0;background:transparent;color:var(--ink);padding:.65rem 0}
.part-search button {background:var(--accent);color:#fff;padding:.65rem 1.45rem}
.part-search button:hover {background:#214e80}
.lens {width:15px;height:15px;border:1.7px solid var(--muted);border-radius:50%;position:relative;flex:none}
.lens::after {content:"";position:absolute;width:7px;height:1.7px;background:var(--muted);right:-5px;bottom:-2px;transform:rotate(45deg)}
.hero-actions {gap:1.65rem;margin-top:1.15rem}
.hero-actions a {font-size:.92rem;border-bottom:1px solid #9aaac0;padding-bottom:1px}
.home-categories,.inner-page {padding-block:clamp(2rem,4.2vw,4rem)}
.section-title {justify-content:space-between;gap:1rem;margin-bottom:1.4rem}
h1,h2,h3 {line-height:1.12;letter-spacing:-.035em}
.section-title h2,.inner-page h1 {margin:0;font-weight:650}
.section-title h2 {font-size:clamp(1.75rem,2.65vw,2.65rem)}
.section-title>a {font-weight:600}
.tile-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tile-grid a {border:1px solid var(--line);border-radius:5px;min-height:76px;padding:.95rem 1.1rem;display:flex;align-items:center;gap:1rem;font-weight:580;line-height:1.3;overflow-wrap:anywhere}
.tile-copy {display:grid;gap:.3rem;min-width:0}
.category-icon {width:2.15rem;height:2.15rem;flex:none;color:#16191d;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.category-grid {column-gap:clamp(14px,1.25vw,20px)}
.category-grid a:hover .tile-copy {color:var(--link);text-decoration:none}
.brand-logo {width:clamp(3rem,5vw,5rem);height:2.6rem;object-fit:contain;flex:none}
.brand-grid a {background:transparent;transition:border-color .2s ease}
.brand-grid a:is(:hover,:focus-visible) {border-color:var(--ink);text-decoration:none}
.tile-grid a small {font-size:.84rem;font-weight:400;color:var(--muted)}
footer {margin-top:2rem;background:#091b37;color:#e1e9f4}
.footer-inner {padding-block:2.75rem;display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem}
.footer-inner strong {display:block;color:white;margin:0 0 .55rem}
.footer-inner p {margin:0}
.footer-inner .footer-notice {grid-column:1/-1;padding-top:1.1rem;border-top:1px solid currentColor;border-color:color-mix(in srgb,currentColor 22%,transparent);font-family:var(--brand-font);font-size:.82rem;line-height:1.6;text-align:center;text-wrap:balance}
.footer-inner a {color:inherit;display:block;width:fit-content;text-decoration:none}
.footer-inner > div {display:flex;flex-direction:column;align-items:flex-start;gap:.48rem}
.footer-inner a {position:relative;font-weight:400}
.footer-inner .footer-notice a {display:inline-block;max-width:100%;margin-bottom:.35rem}
.footer-inner .footer-brand {display:inline-flex;color:white;margin-bottom:.4rem;white-space:normal}
.footer-brand span {font-size:.83rem}
.footer-inner a:not(.footer-brand)::after {content:"";position:absolute;bottom:-2px;inset-inline:0;height:1px;background:currentColor;transform:scaleX(0);transition:transform .22s ease-out}
.footer-inner a:is(:hover,:focus-visible)::after {transform:scaleX(1)}
.footer-inner a:hover {text-decoration:none}
.crumbs {display:flex;flex-wrap:wrap;gap:.35rem .75rem;font-size:.9rem;color:var(--muted);margin-bottom:1rem}
.crumbs a {color:inherit;text-decoration:none}
.crumbs a:hover {color:var(--link)}
.crumbs a + a::before {content:"";display:inline-block;width:.38em;height:.38em;margin:0 .85rem .1em 0;border:solid #7b8ca3;border-width:1px 1px 0 0;transform:rotate(45deg)}
.compact {margin:1.2rem 0 2rem;border:1px solid var(--line);box-shadow:none}
.inner-page h1 {font-size:clamp(2rem,3.5vw,3.7rem);margin-bottom:1.5rem;overflow-wrap:anywhere}
.list-controls {margin:1.5rem 0 1rem;justify-content:space-between;flex-wrap:wrap;gap:.8rem}
.list-controls p {margin:0;font:440 1rem/1.5 var(--brand-font)}
.list-controls p strong {font-weight:550}
.sorting {gap:.5rem;flex-wrap:wrap}
.sorting button {padding:.58rem .95rem;font-size:.9rem;font-weight:450;transition:background-color .2s}
.sorting label {color:var(--muted);font-size:.9rem}
.purchase input {border:1px solid var(--line);border-radius:4px;padding:.45rem .6rem;color:var(--ink);background:white}
.directory-bar {display:flex;align-items:center;justify-content:space-between;gap:1.2rem 2rem;flex-wrap:wrap;margin:0 0 clamp(1.5rem,3vw,2.5rem)}
.inner-page .directory-heading {font-family:var(--brand-font);font-size:clamp(1.6rem,3.45vw,3.45rem);font-weight:480;letter-spacing:-.045em}
.directory-bar .directory-heading {margin:0}
.brand-search {display:flex;align-items:stretch;gap:.35rem;width:min(100%,24.5rem);margin:0 0 0 auto}
.brand-search label {display:flex;flex:1;min-width:0;align-items:center;gap:.75rem;padding-left:.85rem;border:1px solid #abb9c9;border-radius:5px;transition:border-color .18s}
.brand-search label:focus-within {border-color:var(--ink)}
.brand-search input {width:100%;min-width:0;font:inherit;padding:.68rem .55rem .68rem 0;border:0;background:transparent;color:var(--ink)}
.brand-search input:focus {outline:0;box-shadow:none}
.brand-search button {font-weight:550;transition:background-color .2s ease}
input:focus,textarea:focus,select:focus {outline:none;box-shadow:none}
.purchase input:focus,.part-search:focus-within {border-color:var(--link)}
.sort-picker {position:relative;font-size:.92rem}
.sort-picker summary {display:flex;align-items:center;justify-content:space-between;gap:.8rem;cursor:pointer;list-style:none;min-width:10.5rem;padding:.5rem .25rem}
.sort-picker summary::-webkit-details-marker {display:none}
.sort-picker summary::after {content:"";width:.45rem;height:.45rem;margin:-.2rem .25rem 0 0;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.sort-picker[open] summary::after {transform:rotate(225deg);margin-top:.25rem}
.sort-picker fieldset {position:absolute;inset:100% 0 auto auto;z-index:3;min-width:max-content;margin:0;padding:.3rem;border:1px solid var(--line);border-radius:.45rem;background:white;box-shadow:0 8px 24px #132b4519}
.sort-picker label {position:relative;display:block;cursor:pointer}
.sort-picker label span {display:block;padding:.45rem 1.8rem .45rem .65rem;color:var(--ink);border-radius:.2rem}
.sort-picker label:is(:hover,:focus-within) span {background:var(--pale)}
.sort-picker input:checked + span::after {content:"✓";position:absolute;right:.45rem}
.sort-caption {color:var(--muted);font-size:.9rem}
.product-cell,.product-heading {display:flex;align-items:center;gap:clamp(.5rem,1.3vw,1.1rem);min-width:0}
.product-cell > span:last-child {min-width:0}
.product-art {display:inline-grid;place-items:center;position:relative;flex:none;width:3.5rem;height:3.5rem;overflow:hidden}
.product-art .category-icon {width:1.65rem;height:1.65rem;color:#586980}
.product-art img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:white;mix-blend-mode:multiply}
.product-art:has(img:not([hidden])) svg {visibility:hidden}
.product-heading .product-art {width:clamp(4.2rem,8vw,7rem);height:clamp(4.2rem,8vw,7rem)}
.inner-page .product-heading h1 {margin:0;overflow-wrap:anywhere}
.product-heading {margin:1.2rem 0}
.parts-table {border-top:1px solid var(--line)}
.table-line {display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1.2fr) minmax(8rem,1fr);gap:1rem;padding:.85rem 1rem;border-bottom:1px solid var(--line);align-items:center;text-decoration:none;color:var(--ink)}
.table-line:hover {background:var(--pale);text-decoration:none}
.table-line {position:relative}
.table-line .product-cell,.table-line .product-cell:hover {color:inherit;text-decoration:none}
.table-line .product-cell::after {content:"";position:absolute;inset:0}
.table-line strong {color:var(--link);overflow-wrap:anywhere}
.table-line small,.maker {color:var(--muted)}
.table-line small {display:block}
.table-head,.table-head:hover {background:var(--pale);color:var(--muted);font-size:.85rem;font-weight:600}
.table-head span:last-child,.price {text-align:right}
.price-call,.price-call:hover {
  --slide:0%;
  position:relative;z-index:1;display:inline-grid;align-items:center;overflow:hidden;
  max-width:100%;min-height:44px;vertical-align:middle;color:inherit;text-decoration:none;
}
.price-call > span {grid-area:1/1;min-width:0}
.price-prompt {transform:translateX(calc(0% - var(--slide)))}
.price-dial {
  display:grid;line-height:1.25;font-size:.81rem;font-weight:400;letter-spacing:normal;color:var(--link);
  transform:translateX(calc(100% - var(--slide)));
}
.price-phone {white-space:nowrap;font-weight:550;font-variant-numeric:tabular-nums}
.price-call:is(.is-revealed,:focus-visible) {--slide:100%}
@media (hover:hover) and (pointer:fine) {
  .price-call:hover {--slide:100%}
}
@media (prefers-reduced-motion:no-preference) {
  .price-call > span {transition:transform .28s cubic-bezier(.25,.7,.25,1)}
}
.purchase .price-dial {font-size:1rem}
.pagination {justify-content:center;gap:clamp(.1rem,.6vw,.5rem);flex-wrap:wrap;margin:2rem auto 0;font-variant-numeric:tabular-nums}
.pagination>* {position:relative;padding:.45rem .55rem;text-align:center}
.pagination a::after {content:"";position:absolute;inset-inline:.55rem;bottom:.2rem;height:1px;background:currentColor;transform:scaleX(0);transition:transform .24s cubic-bezier(.22,.61,.36,1)}
.pagination a:is(:hover,:focus-visible)::after {transform:scaleX(1)}
.pagination .current {background:var(--ink);color:white;border-radius:4px;min-width:2rem}
.product-layout {display:grid;grid-template-columns: minmax(0,1.8fr) minmax(240px,.75fr);gap:clamp(1.5rem,5vw,5rem)}
.product-ref,.shipment-note,.empty {color:var(--muted)}
.product-description,.copy {font-size:1.125rem;max-width:770px}
.specs {margin:0}
.specs>div {display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:.55rem .2rem;border-bottom:1px dashed #c2cede}
.specs dt {color:var(--muted)}
.specs dd {margin:0;overflow-wrap:anywhere}
.purchase {padding:1.5rem;background:var(--pale);border-radius:7px;align-self:start}
.purchase>p:first-child {margin:0;color:var(--muted)}
.purchase>strong {display:block;font-size:1.8rem;letter-spacing:-.035em;margin:0 0 1.3rem}
.purchase form {display:grid;gap:1rem}
.purchase label {display:grid;gap:.3rem}
.shipment-note {border-top:1px solid var(--line);margin:1rem 0 0;padding-top:1rem;font-size:.92rem}
.copy .button {display:inline-block;text-decoration:none}
.cart-feedback:empty {display:none}
.cart-feedback {font-size:.92rem;color:#743315}
#added-to-cart {border:1px solid var(--line);border-radius:9px;color:var(--ink);padding:1.5rem;max-width:min(32rem,90vw)}
#added-to-cart::backdrop {background:#091b3799}
#added-to-cart h2 {margin:.1rem 0 .7rem}
.dialog-actions {display:flex;gap:.75rem;flex-wrap:wrap}
.dialog-actions .button {text-decoration:none}
.dialog-actions form button {background:var(--pale);color:var(--ink)}
@media(max-width:900px) {
  .tile-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:960px) {
  .product-layout > *, .purchase #add-component, .purchase label {min-width:0}
  .purchase {padding:clamp(1rem,3vw,1.5rem)}
  .purchase #add-component,.purchase label {grid-template-columns:minmax(0,1fr)}
  .purchase #add-component :is(input[type=number],button) {
    box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:44px;
  }
  .purchase .shipment-note {overflow-wrap:anywhere}
}
@media(max-width:640px) {
  .wrap {width:calc(100% - 2rem)}
  .hero-inner {min-height:365px}
  .hero::before {background:linear-gradient(90deg,#07152ced,#07152cb0)}
  .hero-copy {width:100%}
  .hero h1 {font-size:clamp(2.05rem,8.6vw,3rem)}
  .part-search button {padding:.5rem .8rem}
  .part-search label {padding-left:6px;gap:8px}
  .part-search input {font-size:.92rem}
  .tile-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .tile-grid a {padding:.8rem;font-size:.94rem}
  .brand-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
  .brand-logo {width:4rem}
  .brand-search {width:100%}
  .footer-inner {grid-template-columns:1fr 1fr;gap:1.25rem}
  .footer-inner>div:first-child {grid-column:1/-1}
  .product-layout {grid-template-columns:minmax(0,1fr)}
  .purchase {grid-row:1}
  .table-line {grid-template-columns:minmax(0,1.6fr) minmax(7.35rem,1fr);gap:.4rem;padding:.7rem clamp(12px,2.5vw,16px)}
  .table-line .maker,.table-head span:nth-child(2) {display:none}
  .sorting label {display:flex;gap:.4rem;align-items:center}
}
@media (prefers-reduced-motion:reduce) {
  .brand-grid a,.brand-search button,.brand-search label,.pagination a::after {transition:none}
}
