:root {
  color-scheme: light;
  --bg: #fff;
  --panel: #f7f7f7;
  --line: #d9d9d9;
  --line-strong: #888;
  --text: #111;
  --muted: #515151;
  --max: 1200px;
  --font: Inter, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; top: 10px; left: 12px; padding: 10px 15px; background: var(--text); color: var(--bg); transform: translateY(-150%); z-index: 5; }
.skip:focus { transform: none; }

.site-header { background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 67px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; width: max-content; align-items: center; gap: 11px; font-size: 1.62rem; font-weight: 800; letter-spacing: -.07em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { position: relative; width: 17px; height: 17px; border: 2px solid; border-radius: 5px; transform: rotate(45deg); margin-right: 1px; }
.logo-mark::after { content: ''; position: absolute; inset: 3px; border-radius: 1px; background: currentColor; }
.nav-items { display: flex; align-items: center; gap: 22px; font-size: .94rem; }
.nav-items a[aria-current] { font-weight: 660; text-decoration: underline; text-underline-offset: 5px; }
.nav-items .mobile-contact, .nav-items .mobile-cart, .menu-button { display: none; }
.header-actions, .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-actions { gap: 19px; white-space: nowrap; flex-wrap: nowrap; }
.cart-nav { font-size: .94rem; }
.cart-count:not(:empty) { display: inline-grid; place-items: center; border: 1px solid var(--line-strong); margin-left: 3px; height: 22px; min-width: 22px; border-radius: 50%; font-size: .8rem; }
.header-contact { padding-block: 3px; border-bottom: 1px solid currentColor; font-size: .94rem; font-weight: 650; }
.header-contact:hover { text-decoration: none; color: var(--muted); }
.menu-button { min-height: 44px; align-items: center; gap: 10px; padding: 0; color: var(--text); border: 0; background: transparent; font-weight: 630; }
.menu-glyph { position: relative; display: block; width: 19px; height: 13px; }
.menu-glyph::before, .menu-glyph::after { content: ''; position: absolute; left: 0; width: 19px; height: 1px; background: currentColor; transition: transform .16s ease; }
.menu-glyph::before { top: 3px; }
.menu-glyph::after { bottom: 3px; width: 14px; }
.menu-button[aria-expanded=true] .menu-glyph::before { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded=true] .menu-glyph::after { width: 19px; transform: translateY(-3px) rotate(-45deg); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; border: 1px solid var(--line-strong); border-radius: 3px; padding: 10px 17px; background: var(--bg); color: var(--text); font-weight: 650; font-size: .95rem; line-height: 1.25; text-align: center; }
.button:hover { border-color: var(--text); background: #ededed; text-decoration: none; }
.button.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.button.primary:hover { background: #393939; border-color: #393939; }
.button.small { min-height: 39px; padding: 8px 13px; font-size: .9rem; }
.button[disabled] { opacity: .55; cursor: default; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.07; letter-spacing: -.055em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.8rem, 6.5vw, 6.45rem); }
h2 { font-size: clamp(2rem, 4.25vw, 4rem); }
h3 { font-size: clamp(1.28rem, 2.1vw, 1.8rem); letter-spacing: -.04em; }
.intro { color: var(--muted); font-size: clamp(1.05rem, 1.65vw, 1.22rem); max-width: 62ch; margin-top: 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 23px; align-items: center; min-height: clamp(465px, calc(73svh - 65px), 640px); padding-block: 35px; }
.hero h1 { font-size: clamp(2.8rem, 5.25vw, 4.85rem); font-weight: 650; line-height: 1.06; }
.hero .intro { max-width: 43ch; }
.hero-art { height: clamp(300px, 38vw, 510px); }
.hero-art canvas { display: block; width: 100%; height: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px 26px; margin-top: 25px; }
.hero-actions a, .hero-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-actions a { padding: 0 0 3px; border-bottom: 1px solid currentColor; font-weight: 630; }
.hero-actions a:hover { color: var(--muted); text-decoration: none; }
.hero-foot { display: flex; justify-content: space-between; gap: 12px; min-height: 65px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.hero-foot a:first-child { color: var(--text); font-weight: 620; }
.page-head .actions { margin-top: 29px; }
.eyebrow { display: block; margin-bottom: 13px; color: var(--muted); font-size: .875rem; line-height: 1.3; font-weight: 620; letter-spacing: .025em; }
.link { font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.link:hover { text-decoration-color: currentColor; }
.subtle { color: var(--muted); }
.after-intro { margin-top: 23px; }

.section { border-top: 1px solid var(--line); padding: 69px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
.section-head p { color: var(--muted); max-width: 51ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 29px; align-items: start; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card, .form-panel { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); padding: 24px; }
.card { display: flex; align-items: start; gap: 13px; flex-direction: column; }
.card p { color: var(--muted); }
.card .eyebrow { margin-bottom: 0; }
.card .link:last-child { margin-top: auto; }

.projects-section { padding-top: 58px; }
.project-tabs { display: flex; flex-wrap: wrap; gap: 5px 23px; margin-bottom: 13px; }
.project-tabs button { min-height: 43px; padding: 7px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); text-align: left; }
.project-tabs button:hover { color: var(--text); }
.project-tabs button[aria-selected=true] { border-color: var(--text); color: var(--text); font-weight: 650; }
.case-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: 316px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.case-main + .case-main { margin-top: 16px; }
.case-copy { padding: clamp(21px, 3.6vw, 43px); display: flex; flex-direction: column; align-items: start; justify-content: center; }
.project-showcase .case-main { background: var(--bg); border-width: 1px 0; border-radius: 0; }
.project-showcase .case-copy { padding-left: 0; }
.case-copy h3 { font-size: clamp(1.7rem, 3.1vw, 2.8rem); }
.case-copy p { margin: 13px 0; color: var(--muted); }
.case-main img { height: 100%; max-height: 420px; object-fit: cover; }
.case-flow { display: flex; flex-direction: column; justify-content: center; gap: 13px; min-height: 265px; margin: 0; padding: clamp(20px, 4vw, 45px); background: #eaeaea; }
.case-flow figcaption { color: var(--muted); font-size: .9rem; }
.case-flow ol { list-style: none; margin: 0; padding: 0; max-width: 440px; }
.case-flow li { padding: 9px 12px; border: 1px solid var(--line-strong); background: var(--bg); font-weight: 625; }
.case-flow li + li { margin-top: 8px; }
.case-side img { border-radius: 4px; }
.case-side .link { display: inline-block; margin-top: 12px; }
.case-index > .actions { margin-top: 24px; }
.booking-demo { display: grid; align-content: center; gap: 18px; padding: clamp(19px, 3.5vw, 39px); background: #f5f5f5; }
.demo-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 15px; align-items: baseline; }
.demo-header strong { font-size: 1.11rem; }
.demo-header span { color: var(--muted); font-size: .875rem; }
.demo-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo-times button { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.demo-times button:hover { border-color: var(--text); }
.demo-times button[aria-pressed=true] { background: var(--text); border-color: var(--text); color: var(--bg); }
.demo-result { min-height: 106px; padding: 11px 0 0; border-top: 1px solid var(--line-strong); }
.demo-result strong { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.demo-result strong::before { content: ''; flex: 0 0 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.demo-result[data-state=available] strong::before { background: currentColor; }
.demo-result[data-state=booked] strong::before { border-radius: 1px; }
.demo-result p { margin-top: 4px; color: var(--muted); }

.directions { border-top: 1px solid var(--line-strong); }
.directions details { border-bottom: 1px solid var(--line); }
.directions summary { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0; cursor: pointer; font-size: clamp(1.22rem, 2.2vw, 1.78rem); font-weight: 675; letter-spacing: -.035em; list-style: none; }
.directions summary::-webkit-details-marker { display: none; }
.directions summary::after { content: '+'; }
.directions details[open] summary::after { content: '−'; }
.direction-content { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 0 18px; }
.direction-content p { color: var(--muted); margin-bottom: 8px; }
.direction-content ul { margin: 0; padding-left: 19px; }
.research-section, .hardware-section { background: var(--panel); }
.research-list .card { padding-inline: 0 18px; border-width: 1px 0 0; border-radius: 0; background: transparent; }

.page-head { padding: 60px 0 41px; }
.page-head h1 { max-width: 20ch; font-size: clamp(2.55rem, 5.4vw, 5rem); }
.breadcrumb { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 19px; color: var(--muted); font-size: .9rem; }
.breadcrumb span[aria-current] { color: var(--text); }
.block { padding: 0 0 65px; }
.article { max-width: 770px; padding-bottom: 24px; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); margin: 29px 0 10px; }
.article > h2:first-child { margin-top: 0; }
.article p { color: var(--muted); }
.listing-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 16px; padding: 0 0 22px; }
.listing-controls label { display: grid; gap: 6px; font-weight: 610; }
.service-group { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); padding: 24px 0; border-top: 1px solid var(--line); gap: 24px; }
.service-group h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); margin-bottom: 8px; }
.service-cards { display: grid; }
.direction-heading { margin-bottom: 18px; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.service-card { scroll-margin-top: 15px; }
.service-card strong { color: var(--text); }
.service-group .service-card { padding: 18px 0; border-width: 0 0 1px; border-radius: 0; background: transparent; }
.service-group .service-card:first-child { padding-top: 0; }
.service-group .service-card:last-child { border-bottom: 0; }
.solution-card { border-width: 1px 0 0; border-radius: 0; background: var(--bg); padding-inline: 0 14px; }
.solution-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 65px); align-items: start; }
.solution-layout .article section:first-child h2 { margin-top: 0; }
.solution-layout .article section p + p { margin-top: 11px; }
.solution-aside h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
.related-list { margin: 7px 0 12px; padding-left: 20px; }
.related-list li + li { margin-top: 5px; }
.solution-faq { margin-top: 38px; }
.solution-faq h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 15px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 66ch; }

.hardware-layout, .shop-head { align-items: center; }
.hardware-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 18px; margin-bottom: 22px; }
.hardware-links a { border-bottom: 1px solid var(--line); padding: 8px 0; }
.hardware-section .section-head { display: block; }
.hardware-section .section-head p { margin-top: 16px; }
.hardware-media { min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #ebebeb; }
.hardware-media img { height: 100%; min-height: 300px; object-fit: cover; }
.rack-visual { display: grid; place-items: center; }
.rack { display: grid; gap: 6px; padding: 16px; width: min(75%, 340px); border: 1px solid #555; background: #191919; border-radius: 4px; }
.rack i { display: block; height: 26px; border: 1px solid #6c6c6c; background: repeating-linear-gradient(90deg, #1c1c1c 0 4px, #333 4px 7px); }
.shop-head { gap: 36px; padding-block: 25px 34px; }
.shop-head .page-head { padding-block: 28px; }
.shop-head .hardware-media, .shop-head .hardware-media img { min-height: 260px; max-height: 360px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.pill { border: 1px solid var(--line-strong); border-radius: 3px; padding: 8px 12px; color: var(--text); }
.pill:hover { background: #ededed; text-decoration: none; }
.pill[aria-current=page] { color: var(--bg); border-color: var(--text); background: var(--text); }
.catalog-summary { color: var(--muted); margin-bottom: 21px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product { min-height: 260px; }
.product .product-price { margin-top: auto; color: var(--text); font-size: 1.08rem; font-weight: 700; }
.product .spec { font-size: .94rem; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 30px; }
.product-detail h2, .form-panel h2 { margin-bottom: 12px; font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
.spec-list { list-style: none; padding: 0; margin: 13px 0 18px; color: var(--muted); }
.spec-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-big { display: block; font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 730; letter-spacing: -.045em; }
.price-note { font-size: .9rem; color: var(--muted); margin: 6px 0 12px; }
.price-note a { text-decoration: underline; text-underline-offset: 3px; }
.compare { margin-top: 46px; scroll-margin-top: 21px; }
.compare h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.compare p { margin: 12px 0 18px; color: var(--muted); }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 580px; }
th, td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); }
td { color: var(--muted); }
th[scope=col] { font-size: .9rem; }
th[scope=row] { font-weight: 600; }

.form-panel { display: grid; align-content: start; gap: 13px; }
.form-panel label { display: grid; gap: 6px; font-weight: 610; }
input, select, textarea { width: 100%; padding: 10px 11px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg); font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: var(--text); }
input[type=number] { min-width: 64px; }
textarea { resize: vertical; min-height: 104px; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 53%, calc(100% - 10px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-note { font-size: .9rem; color: var(--muted); }
.message-preview { display: grid; justify-items: start; gap: 7px; }
.calculator-results { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 13px; }
.calculator-results strong { font-size: 1.25rem; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 88px auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { font-size: 1.15rem; }
.cart-line p { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.cart-status { margin-bottom: 10px; }
#notice { position: fixed; bottom: 22px; right: 20px; max-width: calc(100% - 40px); z-index: 4; border: 1px solid var(--text); background: var(--text); color: var(--bg); border-radius: 4px; padding: 11px 15px; }
#notice:empty { display: none; }

footer { border-top: 1px solid var(--line); padding: 37px 0; }
.footer-row { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); align-items: start; gap: 30px; }
.footer-brand, .footer-directory > div { display: grid; justify-items: start; gap: 8px; }
.footer-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.footer-directory a { color: var(--muted); }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  .nav-items, .header-row { gap: 14px; }
  .hero-grid { gap: 16px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 60px; gap: 0 10px; }
  .nav-items { display: none; grid-column: 1/-1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0 13px; gap: 5px 18px; border-top: 1px solid var(--line); }
  .nav-items.open { display: grid; }
  .nav-items a, .nav-items .mobile-contact, .nav-items .mobile-cart { display: flex; align-items: center; min-height: 40px; }
  .header-actions { display: none; }
  .menu-button { display: inline-flex; }
  .hero-grid, .split, .product-detail, .solution-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 0; min-height: auto; padding-block: 0 44px; }
  .hero-art { grid-row: 1; height: clamp(210px, 45vw, 305px); }
  .hero h1 { font-size: clamp(2.35rem, 7.2vw, 3.8rem); }
  .hero .intro { max-width: 43ch; margin-top: 16px; }
  .hero-foot { min-height: 58px; }
  .section { padding: 50px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 11px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-head { gap: 16px; padding-block: 0 27px; }
  .shop-head .page-head { padding-bottom: 7px; }
  .shop-head .hardware-media, .shop-head .hardware-media img { min-height: 190px; max-height: 270px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(2rem, 8.8vw, 2.85rem); }
  .hero-art { height: clamp(186px, 55vw, 258px); margin-inline: -9px; }
  .hero-actions { margin-top: 16px; gap: 8px 20px; }
  .hero-foot { font-size: .875rem; }
  .intro { margin-top: 15px; }
  .page-head .actions { margin-top: 22px; }
  .case-main, .card-grid, .catalog-grid, .calc-grid, .listing-controls, .service-group, .direction-content, .footer-row { grid-template-columns: 1fr; }
  .case-main img { max-height: 220px; }
  .case-flow { min-height: 220px; }
  .project-showcase .case-copy { padding: 22px 0; }
  .project-tabs { gap: 0 15px; }
  .card, .form-panel { padding: 17px; }
  .hardware-media, .hardware-media img { min-height: 210px; }
  .hardware-links { grid-template-columns: 1fr; }
  .page-head { padding: 36px 0 33px; }
  .service-group { gap: 13px; }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-line label { grid-column: 1; }
  .cart-line input { max-width: 83px; }
  .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-glyph::before, .menu-glyph::after { transition: none; }
}
