:root {
  color-scheme: light;
  --ink: #142947;
  --muted: #4e6076;
  --blue: #2456a2;
  --blue-dark: #194383;
  --navy: #112e56;
  --line: #d9e3ef;
  --pale: #f2f6fb;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 650; }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #5086de; outline-offset: 4px; }

.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; padding: .6rem; background: #fff; z-index: 5; transform: translateY(-200%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 2.25rem; min-height: 82px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .7rem; color: #284789; }
.brand img { display: block; object-fit: contain; }
.brand span { font-size: 1.28rem; font-weight: 750; letter-spacing: .025em; line-height: 1; }
.brand small { display: block; margin-top: .26rem; font-size: .72rem; letter-spacing: .16em; }
.site-header nav { display: flex; gap: 1.8rem; margin-left: auto; align-items: center; font-size: .94rem; font-weight: 600; }
.site-header nav a { padding-block: .55rem; }
.site-header nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .25em; }
.script-languages { display: flex; align-items: center; gap: 2px; }
.script-languages a { padding: .45rem .38rem; border-radius: 4px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.script-languages a:hover, .script-languages [aria-current="page"] { color: var(--blue-dark); background: #eef4fc; }
.mobile-script-languages { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.08rem; border: 1px solid transparent; border-radius: 5px; font-size: .95rem; font-weight: 650; line-height: 1.25; text-align: center; }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-dark); }
.button.outline { background: #fff; color: var(--blue-dark); border-color: #c6d4e6; }
.button.outline:hover { background: #eef4fc; border-color: #9db5d6; }
.text-link { color: var(--blue-dark); font-weight: 650; text-decoration: underline; text-decoration-color: #91aad0; text-underline-offset: .28em; }
.text-link:hover { text-decoration-color: currentColor; }

.hero { background: linear-gradient(118deg, #f7faff, #edf3fb); border-bottom: 1px solid var(--line); }
.breadcrumb-row { display: flex; justify-content: space-between; align-items: center; padding-top: 1.15rem; }
.breadcrumb { display: flex; gap: .72rem; font-size: .875rem; }
.breadcrumb a:hover { text-decoration: underline; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5.5vw, 5.5rem); align-items: center; padding: 2rem 0 3.55rem; }
.hero-copy { padding-block: 1rem; }
.overline { color: var(--blue-dark); font-size: .875rem; font-weight: 700; }
.hero h1 { margin-top: .8rem; font-size: clamp(2.35rem, 4.5vw, 3.75rem); font-weight: 680; letter-spacing: -.06em; }
.hero h1 span { color: var(--blue); }
.intro { max-width: 30rem; margin-top: 1.15rem; font-size: 1.13rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.55rem; }

.example { overflow: hidden; border: 1px solid #cbdbee; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px #21467612; }
.example-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; }
.example-kicker { font-size: .875rem; color: var(--blue-dark); }
.example-head h2 { margin-top: .17rem; font-size: 1.3rem; }
.segments { display: flex; padding: 3px; gap: 2px; background: var(--pale); border: 1px solid var(--line); border-radius: 6px; }
.segments button { min-height: 36px; padding-inline: .7rem; background: transparent; border: 0; border-radius: 4px; color: var(--ink); font-size: .875rem; }
.segments [aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px #15356d28; font-weight: 650; color: var(--blue-dark); }
.example figcaption { padding: .85rem 1.25rem; min-height: 3.25rem; color: var(--muted); font-size: .9rem; }

.drawing {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(212px, 21vw, 278px);
  padding: 0 2.9rem 1.1rem 1.8rem;
  overflow: hidden;
  background-color: #13335d;
  background-image: linear-gradient(#a4c9ff13 1px, transparent 1px), linear-gradient(90deg, #a4c9ff13 1px, transparent 1px), radial-gradient(ellipse at 52% 40%, #23508b, transparent 73%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  color: #ddeaff;
}
.cabinet { position: relative; width: min(75%, 268px); aspect-ratio: 1.64; isolation: isolate; }
.cabinet::before, .cabinet::after { content: ""; position: absolute; border: 1px solid #86b3ee; z-index: -1; }
.cabinet::before { width: 100%; height: 21px; top: -20px; left: 15px; transform: skewX(-56deg); background: #40699b; }
.cabinet::after { width: 29px; height: 100%; top: -10px; right: -29px; transform: skewY(-35deg); background: #2b5281; }
.cabinet-front { display: grid; grid-template-columns: 1.2fr 1fr; height: 100%; background: #648bb8; padding: 5px; gap: 5px; border: 1px solid #afcdf2; }
.cabinet-shelves, .cabinet-drawers { display: flex; flex-direction: column; min-width: 0; background: #173b68; }
.cabinet-shelves { justify-content: space-evenly; box-shadow: inset 12px 0 0 #335d8b; }
.cabinet-shelves i { display: block; height: 7px; background: #527ba9; border-top: 1px solid #aacaf1; border-bottom: 1px solid #799fc9; }
.cabinet-drawers { padding: 2px; gap: 3px; }
.cabinet-drawers i { flex: 1; position: relative; display: grid; place-items: center; border: 1px solid #a3c4ea; background: linear-gradient(120deg, #446f9e, #305985); }
.cabinet-drawers i::before { content: ""; width: 26%; border-top: 2px solid #c1d8f5; }
.dimension { position: absolute; color: #c3dbff; font: .82rem/1 "Consolas", monospace; }
.dimension.width { inset: calc(100% + 19px) 0 auto; height: 11px; border-top: 1px solid #8ab9ff; }
.dimension.height { inset: 0 auto 0 calc(100% + 41px); border-left: 1px solid #8ab9ff; }
.dimension span { position: absolute; background: #163b69; padding: 2px 4px; }
.dimension.width span { left: 50%; top: 0; transform: translate(-50%, -50%); }
.dimension.height span { top: 50%; left: 0; transform: translate(-50%, -50%) rotate(-90deg); }
.dimension::before, .dimension::after { content: ""; position: absolute; background: #8ab9ff; }
.dimension.width::before, .dimension.width::after { width: 1px; height: 9px; top: -5px; transform: rotate(33deg); }
.dimension.width::before { left: 0; }
.dimension.width::after { right: 0; }
.dimension.height::before, .dimension.height::after { width: 9px; height: 1px; left: -5px; transform: rotate(-33deg); }
.dimension.height::before { top: 0; }
.dimension.height::after { bottom: 0; }
.drawing-units { position: absolute; right: .8rem; bottom: .65rem; font: .82rem/1 "Consolas", monospace; }
.drawing[data-state="before"] :is(.dimension, .drawing-units) { visibility: hidden; }

.section { padding-block: clamp(2.8rem, 5.3vw, 4.9rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; column-gap: 2rem; row-gap: .7rem; margin-bottom: 1.3rem; }
.section-heading p { margin-top: .65rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.35rem 0; }
.filters button { min-height: 42px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: .42rem .85rem; font-size: .925rem; }
.filters button:hover { border-color: #9db5d6; }
.filters [aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: 9px; padding: clamp(1rem, 2vw, 1.5rem); display: flex; flex-direction: column; align-items: start; }
.card-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.tag { font-size: .875rem; font-weight: 650; color: #206047; background: #edf7f1; padding: .2rem .52rem; border-radius: 4px; }
.source { margin-top: auto; padding-top: 1.05rem; padding-bottom: .75rem; font-size: .875rem; }
.icon { display: block; position: relative; width: 42px; height: 42px; background: #edf3fc; color: var(--blue); border-radius: 6px; }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-box::before { inset: 13px 11px 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-box::after { inset: 13px 11px 10px; background: linear-gradient(0deg, transparent 12px, currentColor 12px 13.5px, transparent 13.5px), linear-gradient(90deg, transparent 9px, currentColor 9px 10.5px, transparent 10.5px); }
.icon-ruler::before { inset: 15px 9px; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(-32deg); }
.icon-ruler::after { inset: 15px 13px 22px; background: repeating-linear-gradient(90deg, transparent 0 2px, currentColor 2px 3px); transform: rotate(-32deg); }
.icon-table::before { inset: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-table::after { inset: 11px; background: repeating-linear-gradient(0deg, transparent 0 5px, currentColor 5px 6px), repeating-linear-gradient(90deg, transparent 0 6px, currentColor 6px 7px); }

.installation { background: var(--pale); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.55rem; list-style: none; padding: 0; margin: 1.65rem 0 1.55rem; counter-reset: install; }
.steps li { display: flex; align-items: start; gap: .9rem; counter-increment: install; }
.steps li::before { content: counter(install); display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--blue-dark); font-weight: 650; background: #e2ecf9; border-radius: 50%; }
.steps h3 { padding-top: .26rem; margin-bottom: .55rem; }
.faq { display: grid; grid-template-columns: 1fr 1.75fr; gap: 2.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .95rem 0; font-weight: 650; }
.faq details p { margin: 0 0 .9rem 1.1rem; }

.task { background: var(--navy); color: #fff; }
.task-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5.5vw, 5.5rem); padding-block: clamp(2.8rem, 5vw, 4.5rem); }
.task h2 { max-width: 31rem; }
.task p { margin-top: .85rem; color: #d7e4f6; }
.task form { display: grid; gap: .5rem; min-width: 0; }
.task label { font-weight: 650; }
.task input, .task textarea { display: block; width: 100%; min-width: 0; padding: .65rem .75rem; color: var(--ink); background: #fff; border: 1px solid #acbed8; border-radius: 5px; }
.task input { margin-bottom: .45rem; }
.task textarea { resize: vertical; }
.task .primary { justify-self: start; margin-top: .42rem; background: #fff; color: var(--blue-dark); }
.task .primary:hover, .task .outline:hover { background: #dfeafe; }
.task .form-note { margin-top: .15rem; font-size: .875rem; }
#task-result { display: grid; gap: .6rem; margin-top: .7rem; }
#task-result button { justify-self: start; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; min-height: 75px; padding-block: .65rem; font-size: .9rem; }
.footer a { font-weight: 750; color: var(--blue-dark); }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 56px); }
  .header-inner { gap: 1.25rem; }
  .site-header nav { gap: 1.1rem; }
  .hero-layout { gap: 1.6rem; }
  .hero h1 { font-size: clamp(2.24rem, 5.25vw, 3.65rem); }
}

@media (max-width: 800px) {
  .header-inner { justify-content: space-between; }
  .header-inner .section-nav { display: none; }
  .header-inner .script-languages { display: none; }
  .mobile-script-languages { display: flex; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 67px; justify-content: space-between; }
  .header-action { min-height: 40px; padding-inline: .65rem; }
  .hero-layout, .faq, .task-layout { grid-template-columns: 1fr; }
  .hero-layout { padding-top: 1.2rem; padding-bottom: 2rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.25rem, 7.5vw, 3.5rem); }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { max-width: none; }
  .faq { gap: 1.2rem; }
}

@media (max-width: 500px) {
  .header-inner { gap: .5rem; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1 { font-size: clamp(1.8rem, 9.5vw, 2.25rem); }
  .example-head { padding-inline: .7rem; }
  .example-head h2 { font-size: 1.12rem; }
  .segments button { padding-inline: .46rem; }
  .brand img { width: 43px; }
  .brand span { font-size: 1.1rem; }
  .header-inner { gap: .65rem; }
}
