:root {
  color-scheme: light;
  --page: #f6f7f4;
  --surface: #fff;
  --text: #192134;
  --muted: #515c6e;
  --line: #dce0e6;
  --line-strong: #ccd2df;
  --blue: #3848d5;
  --blue-hover: #2939bb;
  --blue-soft: #edf0ff;
  --nav-height: 4.5rem;
  --radius: 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
  font-optical-sizing: auto;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--blue-hover); text-underline-offset: .19em; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-weight: 720; letter-spacing: -.059em; line-height: 1.02; }
h2 { font-weight: 690; letter-spacing: -.047em; line-height: 1.12; }
h3 { font-weight: 670; letter-spacing: -.03em; line-height: 1.24; }
.shell { width: min(calc(100% - 6rem), 78rem); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 12; top: 1rem; left: 1rem; padding: .7rem 1rem;
  background: var(--surface); color: var(--text); border-radius: .55rem; transform: translateY(-250%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; inset-block-start: 0; z-index: 5;
  background: rgb(246 247 244 / .91); backdrop-filter: blur(16px) saturate(155%);
  border-block-end: 1px solid #e3e6e9;
}
.header-inner { min-height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 1.65rem; }
.brand {
  display: inline-flex; align-items: center; gap: .65rem; flex: 0 0 auto;
  color: var(--text); font-size: 1.19rem; font-weight: 725; letter-spacing: -.04em; text-decoration: none;
}
.brand-symbol {
  width: 2.8rem; height: 2.23rem; object-fit: cover;
  border-radius: .56rem; background: #bdd0f1; flex: none;
}
.header-inner nav { display: flex; align-items: center; gap: .27rem; }
.header-inner nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .42rem .82rem;
  border-radius: .68rem; color: var(--muted); font-size: .93rem; font-weight: 570; text-decoration: none;
}
.header-inner nav a:hover { background: #e9ecee; color: var(--text); }
.header-inner nav a[aria-current] { color: var(--blue-hover); background: var(--blue-soft); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .6rem 1.08rem;
  color: var(--text); background: var(--surface); border: 1px solid transparent; border-radius: .67rem;
  text-decoration: none; font-size: .93rem; font-weight: 640; line-height: 1.3; text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.button:active { transform: scale(.975); }
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { background: var(--blue-hover); }
.button.outline { background: transparent; border-color: var(--line-strong); }
.button.outline:hover { background: var(--surface); border-color: #aeb8d2; }
.button.inverse { color: #203059; background: #fff; }
.button.inverse:hover { background: #e9edff; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1.8rem, 4vw, 4.1rem);
  padding: clamp(2.8rem, 6.5vw, 5.75rem) 0 clamp(3.4rem, 7vw, 6.3rem);
}
.category-line { color: var(--blue-hover); font-size: .9rem; font-weight: 680; margin-bottom: 1.22rem; }
.hero h1 { font-size: clamp(3.04rem, 5.05vw, 4.85rem); text-wrap: initial; }
.hero h1 span { color: var(--blue); }
.hero-description { margin-top: 1.35rem; color: var(--muted); font-size: clamp(1.05rem, 1.37vw, 1.23rem); max-width: 31rem; }
.hero .actions { margin-top: 1.62rem; }
.hero-media {
  display: grid; overflow: hidden; align-self: stretch; isolation: isolate;
  border-radius: 1.45rem; background: #bdd0f1; min-height: 23rem;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }

.section-block { padding: 2rem 0 clamp(3.65rem, 7vw, 6.35rem); border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; margin-bottom: 1.55rem; }
.section-heading h2 { font-size: clamp(1.95rem, 3.4vw, 3rem); }
.section-heading p { margin-top: .48rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card {
  min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  transition: box-shadow 175ms ease, transform 175ms ease, border-color 175ms ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 .6rem 1.7rem #1725520e; border-color: #b8c1e4; }
.product-card:active { transform: translateY(0); }
.product-card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border-radius: inherit; }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.14rem 1.2rem 1.22rem; }
.product-card h3 { font-size: clamp(1.14rem, 1.7vw, 1.4rem); margin-top: .65rem; overflow-wrap: anywhere; }
.product-card p { color: var(--muted); font-size: .92rem; margin: .43rem 0 .9rem; overflow-wrap: anywhere; }
.product-card-meta {
  display: flex; gap: .7rem; align-items: center; justify-content: space-between;
  border-top: 1px solid #eceef0; padding-top: .68rem; margin-top: auto;
}
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: .33rem; }
.tag {
  border-radius: .36rem; background: #f0f2f5; color: #394456; min-height: 1.48rem; align-content: center;
  padding: .12rem .44rem; display: inline-block; font-size: .825rem; font-weight: 610; line-height: 1.25;
}
.area-tag { color: #3344a9; background: #ecf0ff; }
.price-contact { color: var(--muted); font-size: .85rem; text-align: right; }
.product-art {
  --art-accent: #4255d4; --art-light: #e2e8ff; --art-mid: #c1caf1;
  position: relative; display: grid; place-items: center; min-height: 9.5rem; aspect-ratio: 2.15;
  isolation: isolate; overflow: hidden; background: var(--art-light); border-radius: var(--radius);
}
.product-card .product-art { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.product-art-image { background: #e9ecf1; }
.product-art-image img { width: 100%; height: 100%; object-fit: cover; }
.art-plane {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(to right, var(--art-mid) 1px, transparent 1px), linear-gradient(to bottom, var(--art-mid) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(ellipse at 51% 48%, black 12%, transparent 75%);
}
.art-symbol {
  position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: .35rem;
  width: 5.5rem; height: 4.65rem; border: 1px solid #ffffffd6; border-radius: .82rem;
  background: #ffffffd8; box-shadow: .28rem .45rem 1rem #1b34732b; transform: rotate(-9deg);
}
.art-symbol i { display: block; width: .72rem; border-radius: .16rem; background: var(--art-accent); }
.art-reports .art-symbol { align-items: flex-end; padding-bottom: .87rem; }
.art-reports i:nth-child(1) { height: .85rem; opacity: .54; }
.art-reports i:nth-child(2) { height: 1.35rem; opacity: .75; }
.art-reports i:nth-child(3) { height: 2.12rem; }
.art-flows { --art-accent: #316958; --art-mid: #9bd2bb; --art-light: #d9eee3; }
.art-flows .art-symbol { flex-direction: column; transform: rotate(8deg); }
.art-flows .art-symbol i { height: .57rem; width: 2.6rem; }
.art-flows i:nth-child(2) { width: 1.8rem; opacity: .68; }
.art-flows i:nth-child(3) { width: 2.2rem; opacity: .47; }
.art-connector { --art-accent: #5644ab; --art-mid: #ccc3ef; --art-light: #e9e3f7; }
.art-connector .art-symbol { gap: 0; transform: rotate(-8deg); }
.art-connector .art-symbol i { height: 1.1rem; width: 1.1rem; border-radius: .25rem; }
.art-connector .art-symbol i:nth-child(2) { width: .9rem; height: .28rem; border-radius: 0; opacity: .56; }

.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 2.9rem 1fr 1.5fr; align-items: center; gap: 1.25rem; padding: 1.12rem 0; border-bottom: 1px solid var(--line); }
.service-row h3 { font-size: 1.22rem; }
.service-row p { color: var(--muted); }
.service-row .service-result { font-size: .92rem; font-weight: 620; color: var(--text); margin-top: .55rem; }
.service-symbol {
  width: 2.75rem; height: 2.75rem; display: flex; justify-content: center; align-items: center;
  gap: .16rem; background: #e9eeff; color: var(--blue); border-radius: .68rem;
}
.service-symbol i { width: .35rem; height: 1rem; display: block; background: currentColor; border-radius: .14rem; opacity: .7; }
.service-symbol i:nth-child(2) { height: 1.28rem; opacity: 1; }
.service-symbol i:nth-child(3) { height: .65rem; }
.service-architecture { background: #ddefe5; color: #387562; }
.service-architecture i { transform: rotate(30deg); }
.service-integration { background: #ebe6f8; color: #674db0; gap: 0; }
.service-integration i { height: .55rem; width: .55rem; }
.service-integration i:nth-child(2) { height: .19rem; width: .6rem; }
.service-integration i:nth-child(3) { height: .55rem; }
.service-operations { color: #415c8f; background: #e5ecf8; flex-direction: column; }
.service-operations i, .service-operations i:nth-child(2), .service-operations i:nth-child(3) { width: 1.15rem; height: .21rem; }

.contact-band {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: clamp(1.45rem, 4vw, 3rem); margin: .3rem 0 4.4rem; color: #fff; background: #23315b; border-radius: var(--radius);
}
.contact-band h2 { font-size: clamp(1.6rem, 3vw, 2.55rem); }
.contact-band p { margin-top: .45rem; color: #e3e9ff; }
.contact-band .button { flex: 0 0 auto; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.footer-inner > a:not(.brand) { color: var(--muted); font-size: .91rem; }
.footer-email { overflow-wrap: anywhere; }

.inner-page { padding: clamp(2.8rem, 7vw, 5.5rem) 0 clamp(4.15rem, 9vw, 8rem); }
.page-intro { margin-bottom: clamp(1.65rem, 4vw, 2.7rem); max-width: 59rem; }
.page-intro h1, .admin-top h1 { font-size: clamp(2.55rem, 5.4vw, 4.8rem); overflow-wrap: anywhere; }
.page-intro p, .admin-top p { color: var(--muted); margin-top: .8rem; max-width: 43rem; font-size: clamp(1rem, 1.5vw, 1.22rem); }
.catalog-filters {
  display: grid; grid-template-columns: minmax(12rem, 1.5fr) minmax(10rem, 1fr) minmax(10rem, 1fr) auto;
  align-items: end; gap: .8rem; padding: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.catalog-filters label, .admin-form label:not(.checkbox), .form-label { display: grid; gap: .38rem; font-size: .92rem; font-weight: 630; min-width: 0; }
input:not([type=checkbox]), textarea, select {
  min-height: 2.9rem; width: 100%; color: var(--text); background: #fff; border: 1px solid var(--line-strong);
  border-radius: .58rem; padding: .55rem .76rem; font-weight: 450; min-width: 0;
}
textarea { min-height: 4.5rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #626e80; }
select {
  appearance: none; padding-right: 2rem; background-repeat: no-repeat;
  background-image: linear-gradient(45deg, transparent 46%, #4c5971 48%, #4c5971 62%, transparent 64%), linear-gradient(135deg, transparent 44%, #4c5971 46%, #4c5971 60%, transparent 62%);
  background-position: calc(100% - 1.03rem) 52%, calc(100% - .68rem) 52%; background-size: .35rem .48rem;
}
.catalog-result { margin: 1.3rem 0 1rem; display: flex; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .92rem; }
.empty { background: #ffffff9e; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.empty h2 { font-size: 1.47rem; margin-bottom: .5rem; }
.empty p { color: var(--muted); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .64rem; margin-bottom: 1.7rem; color: var(--muted); font-size: .92rem; }
.breadcrumb span::before { content: "/"; display: inline-block; margin-right: .64rem; color: #8590a8; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem); gap: 2rem; margin-bottom: 1.8rem; }
.detail-tags { margin-bottom: .85rem; }
.detail-intro { margin-bottom: 1.15rem; }
.product-facts { display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; }
.product-facts dt { color: var(--muted); font-size: .89rem; }
.product-facts dd { margin: .16rem 0 0; font-weight: 620; overflow-wrap: anywhere; }
.purchase-panel, .about-aside, .contact-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.purchase-panel { align-self: start; display: grid; gap: .8rem; padding: 1.15rem; }
.inner-page > .product-art { aspect-ratio: 3.75; max-width: 55rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery a { display: block; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #e9ecf1; }
.gallery img { width: 100%; max-height: 36rem; object-fit: contain; }
.copy-block { max-width: 55rem; margin-top: 2.2rem; overflow-wrap: anywhere; }
.copy-block h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); margin-bottom: .6rem; }
.copy-block h2:not(:first-child) { margin-top: 1.55rem; }
.copy-block p + p { margin-top: .9rem; }
.copy-block p { color: var(--muted); font-size: 1.04rem; }
.inner-page .contact-band { margin: 2.5rem 0 0; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 2rem; }
.about-copy { margin: 0; }
.about-copy .actions { margin-top: 1.4rem; }
.about-aside { padding: 1.45rem; }
.about-aside h2 { font-size: 1.33rem; }
.about-aside p { margin: .65rem 0 .8rem; color: var(--muted); }
.contact-panel { max-width: 61rem; padding: clamp(1.25rem, 4.5vw, 2.6rem); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.55rem; }
.contact-panel h2 { font-size: 1.05rem; margin-bottom: .52rem; letter-spacing: -.01em; }
.contact-address { display: inline-block; font-size: clamp(1.43rem, 4vw, 2.85rem); font-weight: 690; letter-spacing: -.047em; line-height: 1.16; overflow-wrap: anywhere; }
.contact-panel p { margin-top: .63rem; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: start; gap: .52rem; align-self: center; }
.contact-actions .copy-feedback { flex-basis: 100%; margin-top: 0; font-size: .9rem; }
.contact-actions .copy-feedback:empty { display: none; }
.privacy-note { max-width: 39rem; margin-top: 1rem; color: var(--muted); font-size: .91rem; }
.legal-copy { margin-top: 0; }

.admin-body { background: #f3f5fa; }
.admin-top { margin-bottom: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.admin-top h1 { font-size: clamp(2rem, 4vw, 3.55rem); }
.admin-login {
  margin-inline: auto; max-width: 31rem; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.3rem, 4vw, 2.2rem);
  border-radius: var(--radius);
}
.admin-login h1 { font-size: clamp(1.95rem, 5vw, 2.7rem); margin-bottom: .6rem; }
.admin-login > p { color: var(--muted); }
.login-form { margin-top: 1rem; }
.admin-login .notice { margin-top: 1rem; }
.admin-product-list { padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-product-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: .95rem 1.2rem; gap: .8rem; }
.admin-product-list li + li { border-top: 1px solid var(--line); }
.admin-product-list p { color: var(--muted); font-size: .92rem; margin-top: .33rem; }
.admin-product-title { color: var(--text); font-weight: 680; text-decoration: none; }
.admin-product-title:hover { text-decoration: underline; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: .72rem; align-items: center; font-size: .87rem; }
.tag-published { background: #ddefe5; color: #255143; }
.admin-editor { max-width: 63rem; }
.admin-form { display: grid; gap: 1rem; }
.admin-form fieldset {
  min-width: 0; margin: 0; padding: 1.05rem 1.1rem 1.3rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: .95rem; display: grid; gap: .9rem;
}
.admin-form legend { padding: 0 .35rem; font-weight: 700; font-size: 1.04rem; color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .88rem; align-items: start; }
.publication-fields { align-items: end; }
.checkboxes { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.checkbox { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.1rem; font-size: .94rem; }
.checkbox input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
input[type=file] { font-size: .88rem; overflow: hidden; }
input[type=file]::file-selector-button { font: inherit; cursor: pointer; border: 0; background: var(--blue-soft); color: var(--blue-hover); border-radius: .34rem; padding: .26rem .45rem; margin-right: .44rem; }
.field-hint, .admin-form small { color: var(--muted); font-size: .86rem; font-weight: 440; }
.admin-assets { list-style: none; padding: 0; }
.admin-assets li { display: flex; gap: .7rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.admin-assets li > a { overflow-wrap: anywhere; }
.notice { padding: .78rem .9rem; background: var(--blue-soft); color: #2e3a82; border-radius: .65rem; margin-bottom: 1rem; }
.notice.error { background: #fceae9; color: #8c2224; }
.notice.success { background: #e3f0e7; color: #295944; }

@media (max-width: 66rem) {
  .shell { width: calc(100% - 4rem); }
  .hero { gap: 1.75rem; }
  .hero h1 { font-size: clamp(2.7rem, 5.85vw, 4rem); }
  .header-inner { gap: .9rem; }
  .header-inner nav a { padding-inline: .63rem; }
}
@media (max-width: 51rem) {
  :root { --nav-height: 4rem; }
  .shell { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2.6rem; }
  .hero h1 { max-width: 39rem; font-size: clamp(2.7rem, 8vw, 4.45rem); }
  .hero-media { max-height: 31rem; min-height: 0; aspect-ratio: 1.57; }
  .hero-media img { height: 100%; object-position: center 52%; }
  .header-action { display: none; }
  .product-grid { grid-template-columns: repeat(2,minmax(0, 1fr)); }
  .catalog-filters { grid-template-columns: repeat(2,minmax(0, 1fr)); }
  .catalog-filters .search-field { grid-column: 1 / -1; }
  .catalog-filters button { justify-self: start; }
  .product-detail { grid-template-columns: 1fr; gap: 1.2rem; }
  .purchase-panel { max-width: 23rem; }
  .about-layout { grid-template-columns: 1fr; }
}
@media (max-width: 35rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { align-items: start; flex-direction: column; gap: .28rem; padding-top: .67rem; }
  .header-inner nav { flex-wrap: wrap; gap: .1rem; padding-bottom: .38rem; width: 100%; }
  .header-inner nav a { padding-inline: clamp(.35rem, 1.42vw, .55rem); font-size: .875rem; }
  .hero { padding-top: 2.15rem; gap: 1.45rem; }
  .hero h1 { font-size: clamp(2.38rem, 9.4vw, 3.18rem); }
  .hero-media { aspect-ratio: 1.34; border-radius: 1rem; }
  .category-line { margin-bottom: .9rem; }
  .hero-description { margin-top: .92rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .78rem; }
  .product-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 2.65rem minmax(0, 1fr); align-items: start; gap: .35rem .85rem; }
  .service-row h3 { align-self: center; }
  .service-row > div:last-child { grid-column: 2; }
  .service-symbol { width: 2.5rem; height: 2.5rem; }
  .contact-band { flex-direction: column; align-items: start; gap: 1rem; }
  .footer-inner { align-items: start; flex-direction: column; gap: .75rem; padding-block: 1.25rem; }
  .form-grid, .gallery { grid-template-columns: 1fr; }
  .product-detail { gap: 1rem; }
  .catalog-filters { padding: .85rem; gap: .6rem; }
  .contact-panel { flex-direction: column; }
  .contact-actions { align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .product-card, .skip-link { transition: none; }
  .button:active, .product-card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header { backdrop-filter: none; background: var(--page); border-color: var(--line-strong); }
}
