:root {
  color-scheme: light;
  --ink: #142332;
  --muted: #4b5966;
  --red: #b91928;
  --paper: #f3f5f6;
  --line: #dce2e6;
  --navy: #132331;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 77px; }
body { margin: 0; background: white; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px #1423320b; }
.header-inner { min-height: 70px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.logo { width: 170px; height: auto; }
.header nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.5vw, 23px); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.header nav a { display: block; padding-block: 22px 18px; border-bottom: 3px solid transparent; }
.header nav a:hover, .header nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); text-decoration: none; }
.header-contact { display: flex; align-items: center; gap: 9px; text-align: right; white-space: nowrap; font-size: .96rem; }
.header-contact span { color: var(--muted); font-size: .8rem; }
a { color: inherit; }
.header a, .button { text-decoration: none; }
.header a:hover { text-decoration: underline; }
.messengers { display: flex; justify-content: flex-end; gap: 4px; }
.messengers a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; }
.messengers a:hover { background: var(--paper); }
.messengers img { width: 26px; height: 26px; object-fit: contain; }

.hero {
  background: linear-gradient(90deg, #111e2cfb 0%, #111e2ce8 27%, #111e2c9c 52%, #111e2c26 82%), linear-gradient(0deg, #111e2c95, transparent 30%), url("assets/hero-workshop-retouched.png") 63% 78% / cover;
  color: white;
}
.hero-inner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 600px; padding-block: 75px 82px; }
.hero-copy { max-width: 710px; }
.hero-caption { position: absolute; right: 0; bottom: 24px; padding: 8px 12px; border-radius: 4px; background: #101d2bcc; color: white; font-size: .82rem; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 18px; height: 2px; background: var(--red); }
.hero .eyebrow span { background: #ff5965; }
h1 { max-width: 760px; margin-top: 20px; font-size: clamp(2.35rem, 4.25vw, 4.2rem); line-height: 1.03; letter-spacing: -.035em; }
.hero-description { max-width: 575px; margin-top: 24px; color: #e3eaf0; font-size: clamp(1.03rem, 1.65vw, 1.24rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 49px; padding: 11px 19px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; cursor: pointer; opacity: 1; }
.button > span { flex-shrink: 0; }
.button:not(.primary):not(.secondary):hover { background: #e8eef1; border-color: #aebbc5; }
.button:disabled { cursor: default; opacity: .65; }
.primary { color: white; background: var(--red); border-color: var(--red); }
.primary:hover:not(:disabled) { background: #9b1421; border-color: #9b1421; }
.secondary { color: white; background: #12212d70; border-color: #bac8d4; }
.markets { margin-top: 32px; color: #dbe6ed; font-size: .91rem; }

.section { padding-block: 68px; }
.catalog { background: var(--paper); }
.section-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: end; margin-bottom: 28px; }
h2 { margin-top: 10px; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.028em; }
.section-intro > p, .family > p, .application p, .production p, .request p, footer p { color: var(--muted); line-height: 1.55; }
.families, .application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.application-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.family { min-width: 0; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 6px; background: #fff; }
.family h3, .application h3 { font-size: 1.25rem; line-height: 1.2; }
.family > p { margin-top: 7px; font-size: .9rem; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.products.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product { min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.product img { width: 100%; height: clamp(72px, 9vw, 122px); object-fit: contain; padding: 6px; background: #fff; }
.product-link > div { min-width: 0; border-top: 1px solid var(--line); padding: 10px 11px; background: #fafbfc; overflow-wrap: anywhere; }
.product strong { font-size: 1.02rem; }
.product p { margin-top: 4px; color: var(--muted); font-size: .81rem; line-height: 1.35; }
.product-link { text-decoration: none; display: block; }
.products .product-link { height: 100%; display: flex; flex-direction: column; }
.products .product-link > div { flex: 1; }
.product-link:hover strong { color: var(--red); text-decoration: underline; }
.solution-link { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 700; }
.catalog-group { margin: 30px 0; }
.catalog-group h2, .solution-questions h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin-bottom: 16px; }
.catalog-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 250px),1fr)); gap: 16px; }
.full-card .product-link { height: 100%; display: flex; flex-direction: column; }
.full-card .product-link > div { flex: 1; }
.full-card img { height: 190px; }
.full-card p { font-size: .94rem; line-height: 1.5; margin-top: 8px; }
.solution-questions { background: var(--paper); padding: 22px; border-radius: 6px; line-height: 1.6; }
.solution-questions ul { margin-bottom: 20px; }
.product-title { font-size: clamp(2rem, 4vw, 3.5rem); margin: 18px 0 28px; overflow-wrap: anywhere; }
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
.product-detail figure { margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.product-detail figure img { width: 100%; height: 340px; object-fit: contain; }
.detail-lead { font-size: 1.2rem; font-weight: 650; margin-bottom: 14px; }
.product-description p, .detail-note { line-height: 1.6; margin-bottom: 14px; }
.product-gallery { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.product-gallery img { width:100%; height: 190px; object-fit: contain; border: 1px solid var(--line); }
@media (max-width: 720px) { .product-detail { grid-template-columns: minmax(0,1fr); } .product-detail figure img { height: 220px; } .product-gallery { grid-template-columns: 1fr; } }
.application { display: grid; gap: 12px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 6px; }
.application img { width: 100%; height: 120px; object-fit: contain; }
.application h3 { margin: 6px 0 9px; }
.application p { font-size: .91rem; }
.application .tag { color: var(--red); font-weight: 700; font-size: .81rem; }
.solution-subheading { margin: 0 0 14px; font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -.018em; }
.installation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.installation-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: white; }
.installation-photo { display: block; overflow: hidden; background: var(--paper); }
.installation-photo img { width: 100%; height: 195px; object-fit: cover; object-position: center; transition: transform .2s ease; }
.installation-card:hover .installation-photo img { transform: scale(1.025); }
.installation-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.installation-body h4 { margin: 0; font-size: 1.24rem; line-height: 1.2; }
.installation-body h4 a { text-decoration: none; }
.installation-body h4 a:hover { color: var(--red); }
.installation-body > p { margin-top: 9px; color: var(--muted); font-size: .96rem; line-height: 1.45; }
.model-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 17px 15px; }
.model-tags a { padding: 6px 11px; border-radius: 4px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .84rem; text-decoration: none; }
.model-tags a:hover { color: var(--red); background: #ffe9eb; }
.installation-body .solution-link { margin-top: auto; padding-top: 4px; text-decoration: none; }
.installation-body .solution-link:hover { text-decoration: underline; }
.task-cloud-section { margin-top: 32px; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.task-cloud-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 30px; }
.task-cloud-intro .solution-subheading { margin-bottom: 0; }
.task-cloud-intro p { color: var(--muted); font-size: .93rem; line-height: 1.5; max-width: 550px; }
.task-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.task-cloud a { display: inline-flex; align-items: center; gap: 11px; max-width: 100%; padding: 11px 14px; border: 1px solid #d4dce1; border-radius: 5px; background: white; text-decoration: none; font-weight: 650; line-height: 1.35; }
.task-cloud a span { color: var(--red); }
.task-cloud a:hover { border-color: var(--red); color: var(--red); }
.solution-questions li { margin-block: 7px; }
:focus-visible { outline: 3px solid #b91928; outline-offset: 3px; }

.production { background: var(--navy); color: white; }
.production-inner, .request-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(30px, 7vw, 100px); }
.production p { margin-top: 15px; color: #d1dce4; }
.production .eyebrow, .request .eyebrow { margin-top: 0; }
.production .eyebrow span { background: #ff5965; }
.production ol { display: grid; gap: 13px; padding-left: 26px; margin: 0; }
.production li { padding: 0 0 12px 8px; border-bottom: 1px solid #ffffff30; }
.production li::marker { color: #ffadb3; font-weight: 700; }
.production li span { display: block; color: #d1dce4; margin-top: 4px; font-size: .94rem; }
.request { background: var(--paper); }
.request h2 + p { margin-top: 15px; }
.contacts { display: grid; gap: 5px; margin-top: 20px; }
.contacts span { color: var(--muted); }
.form { display: grid; min-width: 0; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 6px; padding: clamp(15px, 2.5vw, 23px); overflow-wrap: anywhere; }
.form label { font-weight: 650; font-size: .91rem; line-height: 1.4; }
.form h2 { margin-top: 0; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.16; }
.form p { line-height: 1.5; }
.form textarea, .form input { width: 100%; min-width: 0; border: 1px solid #cdd6dd; border-radius: 4px; padding: 11px; background: #fafbfc; color: var(--ink); opacity: 1; }
.form textarea { resize: none; }
.form input::placeholder, .form textarea::placeholder { color: #536474; }
.form .button { justify-self: start; margin-top: 6px; }
.form-note, #request-status { font-size: .9rem; }
#request-status:empty { display: none; }
#request-status[data-error="true"] { color: var(--red); }
.quick-dialog { width: min(480px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 8px; box-shadow: 0 18px 70px #0005; color: var(--ink); }
.quick-dialog::backdrop { background: #101e2cb0; }
.quick-dialog .form { padding: clamp(18px, 4vw, 28px); position: relative; }
.quick-dialog .form h2 { margin-right: 28px; }
.dialog-close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; background: none; border: 0; font-size: 26px; cursor: pointer; border-radius: 4px; }
.dialog-close:hover { background: var(--paper); }
.request-status:empty { display: none; }
.request-status[data-error="true"] { color: var(--red); }
.questionnaire-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.questionnaire fieldset { border: 1px solid var(--line); border-radius: 5px; padding: clamp(12px, 2vw, 18px); min-width: 0; margin: 0; }
.questionnaire legend { font-weight: 750; padding: 0 7px; max-width: 100%; line-height: 1.35; }
.questionnaire label { display: grid; gap: 6px; min-width: 0; }
.questionnaire select { width: 100%; min-width: 0; padding: 11px; border: 1px solid #cdd6dd; border-radius: 4px; background: #fafbfc; color: var(--ink); font: inherit; }
.question-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.questionnaire .wide { grid-column: 1 / -1; }
.questionnaire details { margin-block: 14px; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.questionnaire summary { font-weight: 700; cursor: pointer; line-height: 1.4; }
.questionnaire details[open] .question-grid { margin-top: 12px; }
.questionnaire input[type=file] { padding: 8px; font-size: .86rem; }
.questionnaire input[type=file]::file-selector-button { border: 1px solid #cdd6dd; border-radius: 4px; background: white; color: var(--ink); padding: 7px 10px; margin-right: 8px; cursor: pointer; }
.questionnaire-layout aside { position: sticky; top: 90px; }
.questionnaire-layout aside hr { border: none; border-top: 1px solid var(--line); width: 100%; margin: 4px 0; }
@media (max-width: 980px) { .questionnaire-layout { grid-template-columns: minmax(0, 1fr); } .questionnaire-layout aside { position: static; grid-row: 1; } }
@media (max-width: 560px) { .question-grid { grid-template-columns: minmax(0, 1fr); } }
footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 23px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; }
footer p { margin-top: 4px; font-size: .88rem; }

@media (max-width: 1050px) {
  html { scroll-padding-top: 122px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 18px; padding-top: 9px; }
  .header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 23px; }
  .header nav a { padding-block: 13px 10px; }
  .questionnaire-layout aside { top: 122px; }
}
@media (max-width: 920px) {
  .wrap { width: calc(100% - 56px); }
  .installation-body { padding: 15px; }
  .installation-photo img { height: 155px; }
  .application { grid-template-columns: 1fr; }
  .application img { height: 120px; }
  .products.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products.three .product:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 122px; }
  .wrap { width: calc(100% - 36px); }
  .header .wrap { width: calc(100% - 24px); }
  .header-inner { min-height: 0; gap: 0 10px; padding-top: 7px; }
  .logo { width: 135px; }
  .header nav { width: 100%; gap: 0 4px; flex-wrap: wrap; justify-content: space-between; font-size: .875rem; }
  .header nav a { flex-shrink: 0; padding-block: 10px 8px; }
  .header-contact { font-size: .82rem; gap: 4px; }
  .messengers a { width: 27px; height: 30px; }
  .messengers img { width: 23px; height: 23px; }
  .header-contact span { font-size: .73rem; }
  .hero { background: linear-gradient(180deg, #111e2cf0, #111e2cdb 48%, #111e2c6e 100%), url("assets/hero-workshop-retouched.png") 73% 78% / cover; }
  .hero-inner { min-height: 550px; padding-block: 44px 22px; }
  .hero-caption { position: static; align-self: flex-end; margin-top: 24px; max-width: 100%; font-size: .72rem; line-height: 1.4; }
  h1 { font-size: clamp(2.2rem, 8.5vw, 3.2rem); }
  .hero-description { margin-top: 16px; }
  .actions { gap: 9px; margin-top: 22px; }
  .markets { margin-top: 23px; font-size: .85rem; }
  .section { padding-block: 41px; }
  .section-intro, .families, .application-grid, .production-inner, .request-inner { grid-template-columns: 1fr; gap: 14px; }
  .installation-grid { grid-template-columns: 1fr; gap: 13px; }
  .installation-photo img { height: 180px; }
  .task-cloud-section { margin-top: 23px; padding: 18px; }
  .task-cloud { gap: 7px; }
  .task-cloud a { padding: 9px 11px; font-size: .9rem; }
  .section-intro { margin-bottom: 18px; }
  .family { padding: 14px; }
  .product-link > div { padding: 8px; }
  .application { grid-template-columns: 29% 1fr; gap: 12px; padding: 14px; }
  .application img { height: auto; }
  .production ol { margin-top: 5px; }
}
@media (max-width: 560px) {
  .actions .button { width: 100%; }
  .form .button { width: 100%; }
}
@media (max-width: 370px) {
  html { scroll-padding-top: 155px; }
  .logo { width: 119px; }
  .header-contact { flex-direction: column; align-items: flex-end; gap: 1px; }
  .messengers a { height: 24px; }
  .actions .button { width: 100%; }
  .header nav { justify-content: center; gap: 0 12px; }
  .products, .products.three { grid-template-columns: minmax(0, 1fr); }
  .products .product img { height: 108px; }
  .products .product p { font-size: .83rem; }
  .product-title { font-size: 1.75rem; }
  .form .button { width: 100%; }
  .application { grid-template-columns: 1fr; }
  .application img { height: 100px; }
}
