:root {
  color-scheme: light;
  --paper: #f2f1ec;
  --white: #fff;
  --ink: #0d1611;
  --muted: #536158;
  --dark: #0b1510;
  --line: #dcddd3;
  --green: #1b6b43;
  --lime: #c8f04a;
  --radius: 18px;
  --width: 80rem;
  font-family: "Golos Text", system-ui, sans-serif;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid #477f55; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.wrap { width: min(var(--width), calc(100% - 5rem)); margin-inline: auto; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { top: .5rem; left: .5rem; z-index: 4; width: auto; height: auto; clip-path: none; padding: 1rem; background: var(--white); }

.header { position: sticky; top: 0; z-index: 2; background: #0b1510f5; color: #fff; backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff20; }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.wordmark { display: inline-flex; align-items: center; gap: .68rem; font-size: 1.23rem; line-height: 1; font-weight: 700; letter-spacing: .035em; white-space: nowrap; }
.mark { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: .47rem; background: var(--lime); color: var(--dark); }
.mark::before { content: ""; width: .89rem; height: 1.05rem; transform: skew(-18deg); border-inline: 2px solid currentColor; background: repeating-linear-gradient(to bottom, transparent 0 3px, currentColor 3px 4px); }
.header nav { display: flex; align-items: center; gap: clamp(1rem, 3.2vw, 2.45rem); font-size: .94rem; font-weight: 550; }
.header nav a:hover { color: var(--lime); }
.footer a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .26em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 46px; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .65rem; font-weight: 600; font-size: .94rem; line-height: 1.25; transition: background .16s, color .16s, border-color .16s; }
.button-outline { border-color: #bccdbe; background: transparent; color: var(--ink); }
.button-outline:hover { background: #e7eee6; border-color: #a7beaa; }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover:not(:disabled) { background: #1b442e; }
.button-accent { background: var(--lime); color: #172d22; }
.button-accent:hover { background: #e7f7c5; }
.button-small { min-height: 40px; padding: .46rem .75rem; }
.count { min-width: 1.38rem; height: 1.38rem; padding-inline: .24rem; display: grid; place-items: center; border-radius: .4rem; background: #deebdd; color: #214832; font-size: .81rem; }
.header .button-outline { border-color: #ffffff47; color: #fff; }
.header .button-outline:hover { background: #ffffff1f; }
.header .count { background: var(--lime); color: var(--dark); }
.header-account { background: var(--lime); color: var(--dark); }
.header-account:hover { background: #e0fa96; }
.paper-icon { position: relative; display: inline-block; flex: none; width: .83em; height: 1.03em; border: 1.5px solid currentColor; border-radius: 2px; }
.paper-icon::after { content: ""; position: absolute; top: .31em; left: .14em; right: .14em; height: .23em; border-block: 1px solid currentColor; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; }
.hero-picture, .hero-picture img { position: absolute; width: 100%; height: 100%; inset: 0; }
.hero-picture img { object-fit: cover; object-position: center 54%; }
.hero::after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, #09140ff5 0%, #09140fd4 38%, #09140f43 78%), linear-gradient(0deg, #09140feb 0%, transparent 45%); }
.hero-panel { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5.75rem) 1.95rem; }
.hero-copy { max-width: 59rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: #e4efdf; font-weight: 550; font-size: .9rem; }
.eyebrow span { width: 1.3rem; height: 2px; background: var(--lime); }
h1 { margin-top: 1.15rem; font-size: clamp(2.65rem, 5.45vw, 5.25rem); line-height: 1.025; font-weight: 670; letter-spacing: -.072em; text-wrap: balance; }
h1 em { color: var(--lime); font-style: normal; }
.hero-description { max-width: 35rem; margin-top: 1.4rem; font-size: clamp(1rem, 1.55vw, 1.24rem); color: #e0e9df; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .72rem; margin-top: 1.6rem; }
.hero-secondary { border-color: #ffffff65; color: #fff; background: #09140f42; }
.hero-secondary:hover { background: #ffffff24; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 36rem; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.15rem; border-top: 1px solid #ffffff47; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: .17rem; padding: 0 .85rem; border-left: 1px solid #ffffff33; }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-size: .89rem; color: #e0e9df; }
.hero-stats dd { color: var(--lime); font-size: clamp(1.3rem, 2.8vw, 2.05rem); line-height: 1.13; font-weight: 650; }

.section { padding-block: clamp(3rem, 6vw, 5.3rem); }
#catalog, #guide, #documents, #top { scroll-margin-top: 82px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.55rem; }
h2 { font-size: clamp(2rem, 4.1vw, 3.3rem); line-height: 1.05; letter-spacing: -.067em; font-weight: 620; }
.section-head p, .documents p { margin-top: .75rem; color: var(--muted); line-height: 1.55; }
.text-link { appearance: none; padding: 0; border: 0; background: none; color: #25553b; font-size: .95rem; font-weight: 600; text-align: left; text-underline-offset: .26em; }
.text-link:hover { text-decoration: underline; }
.section-head .text-link { padding-bottom: .15rem; }
.catalog-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); align-items: center; gap: .85rem; padding: .7rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.filters button { padding: .57rem .75rem; min-height: 42px; background: transparent; border: 1px solid transparent; border-radius: .46rem; font-size: .89rem; font-weight: 550; }
.filters button:hover { background: #edf2eb; }
.filters button[aria-pressed=true] { background: #deebd8; color: #21442d; }
.search { flex: 0 1 19rem; min-width: min(100%, 16rem); display: flex; align-items: center; gap: .65rem; padding: 0 .72rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
.search:focus-within { outline: 2px solid #477f55; outline-offset: 1px; }
.search-icon { position: relative; flex: none; width: .81rem; height: .81rem; border: 1.5px solid var(--muted); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: .34rem; height: 1.5px; background: var(--muted); right: -.28rem; bottom: -.14rem; transform: rotate(45deg); }
.search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; min-height: 42px; font-size: .96rem; }
.results { min-height: 1.3em; margin: .87rem 0; font-size: .875rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: 0 9px 24px #17251f09; transition: border-color .16s, box-shadow .16s; }
.card:hover, .card:focus-within { border-color: #a7beac; box-shadow: 0 13px 28px #17251f15; }
.card-visual { position: relative; aspect-ratio: 1.72; overflow: hidden; background: #dde5da; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.card[data-visual=drive] img, .card[data-visual=flag] img { object-position: 50% 50%; }
.card-code { position: absolute; left: .75rem; top: .75rem; box-shadow: 0 1px 5px #17251f1c; border-radius: .38rem; padding: .28rem .48rem; background: #fcfdf9; color: var(--ink); font-size: .81rem; font-weight: 640; }
.card-content { flex: 1; display: flex; flex-direction: column; padding: 1.12rem; }
.card-category { font-size: .82rem; font-weight: 590; line-height: 1.35; color: var(--green); margin-bottom: .35rem; }
.card h3 { font-size: clamp(1.13rem, 1.65vw, 1.45rem); font-weight: 620; letter-spacing: -.045em; }
.card p { font-size: .94rem; line-height: 1.47; color: var(--muted); margin: .65rem 0 1.05rem; }
.card-actions { display: flex; gap: .65rem; justify-content: space-between; align-items: center; margin-top: auto; }
.card-actions [data-add][aria-pressed=true] { background: #e9f1e4; border-color: #b7cdb5; }
.more { display: flex; justify-content: center; margin-top: 1.6rem; }
.more .button { min-width: min(100%, 16rem); }
.empty { padding: 1.7rem; background: var(--white); border: 1px dashed #b6c4b8; border-radius: var(--radius); }
.empty p { margin: .5rem 0 1rem; color: var(--muted); }

.guide { background: var(--dark); color: var(--white); }
.guide-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: clamp(2.8rem, 6vw, 4.7rem); }
.guide-copy p { margin: 1rem 0 1.4rem; color: #d6e5db; line-height: 1.58; max-width: 28rem; }
.guide-list { border-block: 1px solid #4b6255; }
.guide-list div { padding: .92rem 0; }
.guide-list div + div { border-top: 1px solid #4b6255; }
.guide-list dt { font-weight: 600; font-size: 1.08rem; margin-bottom: .3rem; }
.guide-list dd { color: #d6e5db; font-size: .94rem; line-height: 1.5; }
.documents { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.document-link { min-width: min(100%, 22rem); min-height: 80px; display: inline-flex; gap: 1rem; align-items: center; border: 1px solid var(--line); background: var(--white); border-radius: .8rem; padding: .85rem 1.1rem; }
.document-link:hover { border-color: var(--green); }
.document-link .paper-icon { font-size: 1.4rem; color: var(--green); }
.document-link small { display: block; margin-top: .25rem; color: var(--muted); font-size: .875rem; }
.footer { border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 1.5rem; padding-block: 1.65rem; }
.footer .wordmark { color: var(--ink); }
.footer p, .footer details { padding-top: .35rem; }
.footer details { max-width: 24rem; }
.footer summary { cursor: pointer; }
.footer details ul { padding-inline-start: 1.15rem; line-height: 1.45; }
.footer details li + li { margin-top: .5rem; }
.footer details a { text-decoration: underline; text-underline-offset: .18em; }

.dialog { padding: 0; width: min(calc(100% - 2rem), 32rem); max-height: 90dvh; border: 1px solid #aebfb0; border-radius: var(--radius); color: var(--ink); background: var(--white); }
.dialog-wide { width: min(calc(100% - 2rem), 47rem); }
.dialog::backdrop { background: #10241db3; }
.dialog-header, .dialog-body, .dialog-footer { padding: 1.35rem; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; border-bottom: 1px solid var(--line); }
.dialog h2 { font-size: clamp(1.55rem, 4.8vw, 2rem); }
.dialog-header p, .dialog-body p { color: var(--muted); line-height: 1.5; margin-top: .45rem; }
.dialog-header .item-code { margin: 0 0 .35rem; font-weight: 600; }
.close { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); font-size: 1.55rem; line-height: 1; }
.dialog-body h3 { margin-top: 1.2rem; }
.dialog-footer { background: var(--paper); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; }
.dialog-footer p { font-size: .88rem; color: var(--muted); }
.product-list { padding-inline-start: 1.15rem; line-height: 1.55; }
.spec-row { min-width: 0; display: grid; grid-template-columns: minmax(7.5rem, 1fr) minmax(9rem, 1fr) 5rem auto; gap: .65rem; align-items: end; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.spec-name { align-self: center; font-size: .95rem; }
.spec-name small { display: block; color: var(--muted); margin-top: .19rem; }
.spec-row label, .note { display: grid; gap: .3rem; align-content: start; font-size: .86rem; font-weight: 550; }
.spec-row label { min-width: 0; }
.spec-row input, .note textarea { min-width: 0; width: 100%; min-height: 40px; border: 1px solid #b5c5b7; border-radius: .45rem; background: var(--white); padding: .45rem .55rem; font-size: 1rem; }
.spec-row .remove { min-height: 40px; color: #713e34; }
.note { margin-top: 1.1rem; }
.note textarea { resize: vertical; }
.spec-empty .text-link { display: inline-flex; margin-top: .6rem; }
.toast { z-index: 3; position: fixed; bottom: 1rem; right: 1rem; max-width: calc(100% - 2rem); padding: .8rem 1rem; border-radius: .55rem; background: var(--dark); color: var(--white); line-height: 1.4; box-shadow: 0 7px 25px #13272038; }
.toast:empty { padding: 0; box-shadow: none; }

.account-dialog { width: min(calc(100% - 1.5rem), 29rem); }
.account-mast { padding: 1.45rem; color: #fff; background: linear-gradient(90deg, #0b1510f7, #0b1510ae), url("industry-hero-small.webp") center 51% / cover; }
.account-mast .account-kicker { color: var(--lime); font-size: .88rem; font-weight: 640; letter-spacing: .09em; margin: 0 0 .45rem; }
.account-mast p { color: #e5eee6; }
.account-mast .close { border-color: #ffffff52; background: #0b151080; color: #fff; }
.account-mast :focus-visible { outline-color: var(--lime); }
.account-main { padding: 1.45rem; }
.account-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; padding: .25rem; border: 1px solid var(--line); background: var(--paper); border-radius: .65rem; }
.account-switch button { min-height: 42px; padding: .46rem; border: 1px solid transparent; border-radius: .45rem; background: transparent; color: var(--muted); font-weight: 600; }
.account-switch button[aria-pressed=true] { border-color: #ccd9ca; background: var(--white); color: var(--dark); }
.account-panel, .account-profile { display: grid; gap: .9rem; }
.account-panel { padding-top: .85rem; }
.account-panel p { margin: 0; }
.account-panel strong { color: var(--ink); }
.account-panel .text-link { font-size: inherit; text-decoration: underline; }
.login-fields { display: grid; gap: .38rem; }
.login-fields label { font-size: .92rem; font-weight: 600; }
.login-fields input { min-width: 0; width: 100%; min-height: 46px; padding: .6rem .72rem; border: 1px solid #c6d1c3; border-radius: .52rem; background: #f2f4ef; opacity: 1; }
.login-fields input + label { margin-top: .24rem; }
.login-fields input::placeholder { color: #5a685f; opacity: 1; }
.profile-identity, .profile-document { display: flex; align-items: center; gap: .85rem; }
.profile-identity { min-width: 0; }
.profile-avatar { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: .68rem; background: var(--lime); color: var(--dark); font-size: 1.15rem; font-weight: 650; }
.profile-identity h3 { margin: 0; overflow-wrap: anywhere; }
.profile-identity p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.profile-document { padding: .8rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); }
.profile-document .paper-icon { color: var(--green); font-size: 1.22rem; }
.profile-document > div { flex: 1; }
.profile-document p { margin: .22rem 0 0; font-size: .875rem; }
.profile-document .button { min-height: 40px; }
.account-profile > .text-link { justify-self: start; min-height: 44px; }

@media (max-width: 1020px) {
  .wrap { width: calc(100% - 3rem); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 64px; gap: .5rem; }
  .header nav { display: none; }
  .spec-button { min-height: 42px; font-size: .86rem; padding-inline: .58rem; }
  .hero-panel { padding-block: 2.8rem 1.45rem; }
  .hero-picture img { object-position: 60% center; }
  .hero::after { background: linear-gradient(90deg, #09140ff5 0%, #09140fd6 56%, #09140f76 100%), linear-gradient(0deg, #09140fef 0%, transparent 55%); }
  h1 { font-size: clamp(2.04rem, 8.3vw, 3.75rem); margin-top: .9rem; }
  .hero-description { margin-top: 1rem; font-size: 1.06rem; }
  .hero-actions { margin-top: 1.1rem; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: .6rem; }
  .catalog-controls { display: flex; flex-wrap: wrap; }
  .search { flex: 1 1 100%; order: -1; }
  .guide-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .documents { flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 510px) {
  .grid { grid-template-columns: 1fr; }
  .header-actions { gap: .4rem; }
  .spec-button .spec-label { display: none; }
  .header-actions .button { min-height: 44px; padding-inline: .62rem; }
  .hero-panel { padding-block: 2.25rem 1.3rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1.35fr; }
  .hero-stats div { padding-inline: .62rem; }
  .hero-stats dt { font-size: .82rem; }
  .filters button { min-height: 44px; font-size: .93rem; }
  .card h3 { font-size: 1.27rem; }
  .card p { font-size: 1rem; }
  .account-mast, .account-main { padding: 1.1rem; }
  .profile-document { gap: .6rem; }
  .spec-row { grid-template-columns: minmax(5rem, 1fr) minmax(4rem, 5rem) auto; align-items: end; }
  .spec-name { grid-column: 1 / -1; }
  .dialog-header, .dialog-body, .dialog-footer { padding: 1rem; }
}
@media (max-width: 360px) {
  .header .wordmark { gap: .42rem; font-size: 1.04rem; }
  .header .mark { width: 1.65rem; height: 1.65rem; }
  .spec-button { gap: .44rem; }
  .header-actions .paper-icon { font-size: .86rem; }
  .profile-document .paper-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
