:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d9dee7;
  --surface: #f6f8fb;
  --white: #ffffff;
  --red: #b4232b;
  --red-dark: #861d25;
  --green: #1b7f5a;
  --steel: #475467;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: rgba(255, 255, 255, 0.72);
  isolation: isolate;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("assets/hero-printing-machines.png");
  background-position: center;
  background-size: cover;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(217, 222, 231, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-logo {
  display: block;
  width: 190px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.panel-brand-note {
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 600;
}

.top-nav a.active {
  color: var(--red);
}

.top-nav a[href="index.html"] {
  flex: 0 0 auto;
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(246, 248, 251, 0.82);
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--steel);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.language-switch a.active {
  color: var(--white);
  background: var(--red);
}

.admin-link,
.primary-button,
.secondary-button,
.danger-button,
.admin-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  color: var(--white);
  background: var(--red);
}

.primary-button:hover,
.admin-link:hover {
  background: var(--red-dark);
}

.admin-link {
  min-height: 36px;
  padding: 0 12px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(217, 222, 231, 0.9);
  font-size: 12px;
}

.secondary-button {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.secondary-button.dark {
  background: var(--surface);
}

.secondary-button.light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("assets/hero-printing-machines.png");
  background-position: center;
  background-size: cover;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 18, 28, 0.72), rgba(12, 18, 28, 0.36) 54%, rgba(12, 18, 28, 0.12));
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 88px);
  padding-bottom: 80px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7be0b4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.96;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions,
.contact-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(217, 222, 231, 0.72);
}

.intro-band div {
  padding: 28px clamp(18px, 4vw, 52px);
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(12px);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.section,
.panel-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 42px clamp(16px, 3vw, 34px);
  backdrop-filter: blur(10px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  color: var(--steel);
  font-size: 17px;
  line-height: 1.75;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.split-content.reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.split-content img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compressor-section .split-content > img {
  object-fit: contain;
  padding: 18px;
  background: var(--white);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-buttons button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--steel);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.tab-buttons button.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.tab-panel {
  display: none;
  padding: 18px;
  background: rgba(246, 248, 251, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  margin-bottom: 10px;
}

.tab-panel p,
.service-section p {
  color: var(--muted);
  line-height: 1.7;
}

.service-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-points article {
  padding: 20px;
  background: rgba(246, 248, 251, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-points strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.service-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-series-grid {
  display: grid;
  gap: 22px;
}

.product-series-grid article {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: rgba(246, 248, 251, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-series-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
}

.product-series-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 0 10px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.product-series-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.18;
}

.product-series-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-series-grid ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.product-series-grid li {
  padding: 10px 12px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.86);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  background: rgba(246, 248, 251, 0.88);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  color: var(--steel);
  font-weight: 700;
}

.service-detail-list {
  display: grid;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto;
}

.installation-page .page-hero h1 {
  max-width: 980px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
}

.about-page .page-hero h1 {
  max-width: 1040px;
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 1.03;
}

.installation-steps .service-detail-copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.about-detail-list .service-detail-copy h2 {
  font-size: clamp(27px, 3.1vw, 38px);
}

.service-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(12px);
}

.service-detail-row.reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.92fr);
}

.service-detail-row.reverse .service-detail-copy {
  order: 2;
}

.service-detail-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-detail-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.service-detail-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.section > *,
.service-detail-copy,
.hero-content,
.listing-content {
  min-width: 0;
}

.service-detail-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.service-detail-copy ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail-copy li {
  padding: 12px 14px;
  color: var(--steel);
  background: rgba(246, 248, 251, 0.9);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.contact-band h2,
.panel-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.pending-section {
  min-height: 320px;
}

.pending-box {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 32px;
  text-align: center;
  background: rgba(246, 248, 251, 0.88);
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
}

.pending-box span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.pending-box h2 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.pending-box p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 14px;
  margin-bottom: 24px;
}

label span,
.admin-form label {
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(27, 127, 90, 0.12);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.listing-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.08);
}

.listing-media {
  height: 210px;
  background: #e9eef5;
}

.listing-media img,
.machine-placeholder {
  width: 100%;
  height: 100%;
}

.listing-media img {
  object-fit: cover;
}

.machine-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(180, 35, 43, 0.18), transparent),
    linear-gradient(45deg, #edf2f7, #d8e1ec);
}

.machine-placeholder.compressor {
  background:
    linear-gradient(135deg, rgba(27, 127, 90, 0.2), transparent),
    linear-gradient(45deg, #eef7f3, #d9e7ef);
}

.machine-placeholder span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: var(--white);
  background: var(--steel);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
}

.listing-content {
  padding: 20px;
}

.listing-meta,
.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listing-meta span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.listing-card h3 {
  margin: 12px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.listing-card p {
  color: var(--muted);
  line-height: 1.55;
}

.listing-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.listing-card li {
  padding: 6px 9px;
  color: var(--steel);
  background: var(--surface);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.listing-footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  align-items: flex-start;
  flex-direction: column;
}

.listing-footer span {
  color: var(--muted);
  font-size: 13px;
}

.listing-footer strong {
  color: var(--red);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: 8px;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 70px clamp(18px, 6vw, 88px);
  color: var(--white);
  background: rgba(24, 34, 49, 0.9);
  backdrop-filter: blur(10px);
}

.contact-band p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.contact-lines {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.contact-lines a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-card {
  padding: 22px;
  background: rgba(246, 248, 251, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--red);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(217, 222, 231, 0.78);
  backdrop-filter: blur(10px);
}

.panel-body {
  background: var(--surface);
}

.panel-header {
  position: relative;
}

.login-panel {
  display: grid;
  min-height: calc(100vh - 90px);
  place-items: center;
  padding: 36px 18px;
}

.login-box {
  width: min(440px, 100%);
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.login-box h1 {
  margin-bottom: 12px;
  font-size: 32px;
}

.login-box p:not(.eyebrow):not(.form-message) {
  color: var(--muted);
  line-height: 1.6;
}

.login-box .primary-button {
  width: 100%;
  margin-top: 16px;
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

.form-message[data-type="success"] {
  color: var(--green);
}

.form-message[data-type="error"] {
  color: var(--red);
}

.panel-title {
  margin-bottom: 28px;
}

.panel-title p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.panel-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

.admin-form,
.panel-help,
.admin-item,
.password-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.06);
}

.admin-form,
.panel-help {
  padding: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.admin-form textarea,
.admin-form > label {
  margin-bottom: 14px;
}

.panel-help h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.panel-help p {
  color: var(--muted);
  line-height: 1.6;
}

.danger-button {
  width: 100%;
  color: var(--red);
  background: #fff4f4;
  border-color: #ffd4d6;
}

.admin-list-section {
  margin-top: 42px;
}

.password-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 22px;
  margin-top: 28px;
  padding: 22px;
}

.category-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 18px 22px;
  margin-top: 28px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-panel h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.category-panel p:not(.eyebrow):not(.form-message),
.empty-admin-note {
  color: var(--muted);
  line-height: 1.6;
}

.category-form {
  display: grid;
  gap: 12px;
}

.category-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-item button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--red);
  background: var(--white);
  border: 1px solid rgba(180, 35, 43, 0.22);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.password-panel h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.password-panel p:not(.eyebrow):not(.form-message) {
  color: var(--muted);
  line-height: 1.6;
}

.password-form {
  display: grid;
  gap: 12px;
}

.password-form .secondary-button {
  width: max-content;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.admin-item h3 {
  margin: 7px 0 6px;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
}

.status-dot {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions button {
  min-height: 38px;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

@media (max-width: 900px) {
  .site-header,
  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
  }

  .language-switch {
    position: absolute;
    top: 20px;
    right: 18px;
  }

  .hero {
    min-height: 640px;
  }

  .intro-band,
  .listing-grid,
  .panel-layout,
  .password-panel,
  .category-panel,
  .category-list,
  .about-grid,
  .split-content,
  .split-content.reverse,
  .service-points,
  .product-series-grid,
  .contact-card-grid,
  .service-detail-row,
  .service-detail-row.reverse {
    grid-template-columns: 1fr;
  }

  .service-detail-row.reverse .service-detail-copy {
    order: 0;
  }

  .toolbar,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body::before {
    opacity: 0.32;
  }

  .site-header {
    gap: 14px;
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .language-switch {
    position: fixed !important;
    order: 2;
    top: 18px;
    left: 286px;
    right: auto;
    margin-left: 0;
    z-index: 4;
  }

  .brand {
    order: 1;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 132px;
    height: 48px;
  }

  .top-nav {
    order: 3;
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    overflow: visible;
    flex-wrap: wrap;
    padding: 2px 0 8px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    background: rgba(246, 248, 251, 0.82);
    border: 1px solid rgba(217, 222, 231, 0.82);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .top-nav a.active {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
  }

  .hero {
    min-height: 620px;
    background-position: 58% center;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-bottom: 34px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.02;
  }

  .hero p:not(.eyebrow) {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.52;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .section-heading h2,
  .contact-band h2,
  .panel-title h1,
  .page-hero h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading h2 {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .about-section .section-heading {
    display: block;
  }

  .about-section .section-heading .eyebrow {
    margin-bottom: 12px;
  }

  .about-section .section-heading h2,
  .about-section .about-grid p {
    max-width: 300px;
    overflow-wrap: break-word;
  }

  .about-section .section-heading h2 {
    font-size: 25px;
  }

  .intro-band div {
    padding: 20px;
  }

  .intro-band strong,
  .intro-band span {
    max-width: 300px;
    overflow-wrap: break-word;
  }

  .section {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 30px 18px;
    overflow: hidden;
  }

  .section *,
  .service-detail-row * {
    max-width: 100%;
  }

  .listing-grid,
  .listing-card,
  .listing-content,
  .toolbar,
  .search-box,
  .select-box {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .listing-card h3,
  .listing-card p,
  .listing-card li,
  .listing-meta,
  .listing-footer {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .listing-card h3,
  .listing-card p,
  .listing-card ul,
  .listing-meta,
  .listing-footer {
    max-width: 300px;
  }

  .product-series-grid article {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-buttons button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
  }

  .tab-panel,
  .tab-panel h3,
  .tab-panel p,
  .product-series-grid h3,
  .product-series-grid p,
  .product-series-grid li {
    max-width: 300px;
    overflow-wrap: break-word;
  }

  .product-series-grid img {
    aspect-ratio: 4 / 3;
    padding: 12px;
  }

  .page-hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .service-detail-row {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: 0 auto;
    padding: 18px;
    overflow: hidden;
  }

  .service-detail-copy h2 {
    display: block;
    width: 100%;
    max-width: 320px;
    font-size: 25px;
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: normal;
  }

  .page-hero h1,
  .page-hero p,
  .service-detail-copy p,
  .service-detail-copy li {
    max-width: 100%;
  }

  .page-hero h1 {
    display: block;
    width: 100%;
    max-width: 320px;
    font-size: 26px;
    white-space: normal;
    overflow-wrap: normal;
  }

  .installation-page .page-hero h1 {
    max-width: 320px;
    font-size: 30px;
  }

  .about-page .page-hero h1 {
    max-width: 320px;
    font-size: 29px;
  }

  .installation-steps .service-detail-copy h2 {
    max-width: 320px;
    font-size: 27px;
  }

  .about-detail-list .service-detail-copy h2 {
    max-width: 320px;
    font-size: 26px;
  }

  .service-detail-copy p,
  .page-hero p {
    max-width: 300px;
    font-size: 15px;
    line-height: 1.55;
  }

  .service-detail-copy li {
    max-width: 300px;
  }

  .service-detail-list {
    width: 100%;
    max-width: 100%;
    gap: 18px;
    margin: 24px auto;
    overflow: hidden;
  }

  .service-detail-row img {
    aspect-ratio: 4 / 3;
  }

  .panel-shell {
    padding: 52px 0;
  }

  .admin-item {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions button {
    flex: 1;
  }
}

@media (max-width: 380px) {
  .language-switch {
    left: 226px;
  }
}
