:root {
  --rtec-blue: #24468e;
  --rtec-blue-dark: #24468e;
  --rtec-grey-medium: #7f878d;
  --rtec-grey-clear: #b6b8bf;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --text-main: #24468e;
  --text-muted: #7f878d;
  --products-side-padding: clamp(1.2rem, 3.2vw, 2.8rem);
  --shadow-soft: 0 12px 32px rgba(36, 70, 142, 0.08);
  --shadow-card: 0 8px 20px rgba(36, 70, 142, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: linear-gradient(140deg, rgba(182, 184, 191, 0.24), rgba(255, 255, 255, 1));
}

body {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.app-shell {
  width: 100vw;
  height: 100vh;
  background: var(--surface);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  position: relative;
}

.top-bar {
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(100deg, rgba(36, 70, 142, 0.9) 0%, rgba(127, 135, 141, 0.9) 100%);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.brand-mark {
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text {
  font-size: 0.98rem;
  opacity: 0.95;
}

.utility-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-btn,
.back-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 11px;
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background-color 160ms ease, opacity 160ms ease;
}

.admin-btn:hover,
.back-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.admin-btn:active,
.back-btn:active {
  transform: scale(0.98);
}

.back-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.hidden {
  visibility: hidden;
  pointer-events: none;
}

.screen-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 1.2rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.home-landing-mode .top-bar {
  display: none;
}

body.home-landing-mode .app-shell {
  grid-template-rows: 1fr;
}

body.products-layout-mode .top-bar {
  display: none;
}

body.products-layout-mode .app-shell {
  grid-template-rows: 1fr;
}

body.home-landing-mode .screen-container {
  padding: 0;
  height: 100vh;
}

body.home-landing-mode .screen {
  inset: 0;
}

.home-landing {
  width: 100%;
  height: 100%;
  background: var(--surface-soft);
  display: grid;
  grid-template-rows: auto minmax(220px, 42vh) auto 1fr;
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
  padding: clamp(1rem, 2.5vw, 2rem);
  overflow: hidden;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.home-brand-logo {
  width: clamp(130px, 13vw, 210px);
  height: clamp(52px, 5.5vw, 92px);
  object-fit: contain;
}

.home-banner {
  width: 100%;
  border-radius: 0;
  background-image: url("images/home_back.png");
  background-size: cover;
  background-position: center;
  min-height: 100%;
}

.home-title {
  color: var(--rtec-blue);
  font-size: clamp(1.65rem, 4vw, 3.35rem);
  letter-spacing: 0.02em;
  line-height: 1.06;
  font-weight: 800;
}

.home-bottom {
  display: grid;
  grid-template-columns: 1fr minmax(520px, 46vw);
  align-items: stretch;
  gap: 1.2rem;
  min-height: 100%;
  height: 100%;
  margin-top: clamp(0.65rem, 1.8vh, 1.3rem);
  width: 100%;
}

.home-subtitle {
  color: var(--rtec-blue);
  font-size: clamp(1.05rem, 1.95vw, 2.05rem);
  line-height: 1.2;
  max-width: 780px;
  font-weight: 500;
}

.home-right-panel {
  --home-right-gap: 0.65rem;
  --home-item-width: clamp(240px, 19vw, 340px);
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  justify-items: end;
  justify-self: end;
  gap: 0.58rem;
  width: min(100%, 100%);
  max-width: 100%;
}

.home-actions {
  display: flex;
  flex-direction: row;
  gap: var(--home-right-gap);
  justify-content: flex-end;
  width: 100%;
}

.home-actions .primary-btn {
  background: var(--rtec-blue);
  border-radius: 2px;
  width: var(--home-item-width);
  flex: 0 0 auto;
  min-height: clamp(54px, 7.2vh, 76px);
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  font-size: clamp(0.9rem, 1.25vw, 1.18rem);
}

.home-contact {
  color: var(--rtec-blue);
  font-size: clamp(0.74rem, 1.05vw, 1rem);
  line-height: 1.35;
  text-align: left;
  width: var(--home-item-width);
  align-self: end;
  margin-bottom: clamp(0.55rem, 1.6vh, 1.15rem);
  padding-left: clamp(0.45rem, 0.9vw, 0.95rem);
}

.home-contact p + p {
  margin-top: 0.58rem;
}

.home-contact strong {
  color: var(--rtec-blue);
}

.touch-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2.2vh, 1.5rem);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--rtec-blue);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(182, 184, 191, 0.22));
  border: 1px solid rgba(36, 70, 142, 0.22);
  border-radius: 999px;
  padding: 0.64rem 1.12rem;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 14px 30px rgba(29, 56, 114, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  backdrop-filter: blur(6px);
  animation: touchHintFloat 2.2s ease-in-out infinite, touchHintGlow 2.8s ease-in-out infinite;
  z-index: 25;
}

.touch-hint-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--rtec-blue-dark), var(--rtec-blue));
  box-shadow:
    0 0 0 0 rgba(36, 70, 142, 0.4),
    0 0 0 5px rgba(36, 70, 142, 0.12);
  animation: touchPulse 2.2s ease-out infinite;
}

.touch-hint-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.hero {
  height: 100%;
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(36, 70, 142, 0.78), rgba(127, 135, 141, 0.58)),
    radial-gradient(circle at 84% 18%, rgba(182, 184, 191, 0.24), transparent 42%),
    url("images/home_back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  align-content: center;
  gap: 0.95rem;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  max-width: 840px;
}

.hero p {
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 860px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.primary-btn,
.secondary-btn {
  border-radius: 12px;
  min-height: 50px;
  padding: 0.82rem 1.24rem;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, background-color 160ms ease;
}

.primary-btn {
  border: 0;
  background: var(--rtec-blue);
  color: #fff;
}

.primary-btn:hover {
  filter: brightness(1.07);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.primary-btn:active,
.secondary-btn:active {
  transform: scale(0.98);
}

.large-btn {
  min-width: 220px;
}

.danger-btn {
  border-color: rgba(127, 135, 141, 0.55);
  background: rgba(182, 184, 191, 0.24);
  color: var(--rtec-grey-medium);
}

.danger-btn:hover {
  background: rgba(182, 184, 191, 0.36);
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.industry-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.78rem;
}

.industry-icon {
  width: 1rem;
  height: 1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  line-height: 1;
}

.screen-head {
  margin-bottom: 0.85rem;
}

.screen-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  color: var(--rtec-blue-dark);
  margin-bottom: 0.15rem;
}

.screen-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.products-page {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1.2rem;
  padding-left: var(--products-side-padding);
  padding-right: var(--products-side-padding);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.contact-page {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
  padding-left: var(--products-side-padding);
  padding-right: var(--products-side-padding);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  overflow: hidden;
}

.contact-nav {
  margin-top: 0.05rem;
}

.admin-nav {
  margin-bottom: 0.65rem;
}

.contact-head {
  margin-top: 0.1rem;
  margin-bottom: 0.2rem;
}

.contact-head h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  letter-spacing: 0.01em;
}

.contact-head p {
  font-size: 1.02rem;
  max-width: 880px;
}

.contact-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(182, 184, 191, 0.18));
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 14px 24px rgba(36, 70, 142, 0.16);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.1rem;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.contact-card > * {
  height: 100%;
}

.contact-left {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.75rem;
  min-height: 0;
}

.contact-right {
  min-width: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  border: 0;
  padding: 1.15rem;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.75rem;
  min-height: 0;
  height: 100%;
}

.contact-right-main {
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
  padding-top: 0.35rem;
}

.contact-right h3 {
  color: var(--rtec-blue);
  font-size: 1.3rem;
}

.contact-right p {
  color: var(--rtec-grey-medium);
  line-height: 1.45;
  font-size: 1.08rem;
}

.contact-right strong {
  color: var(--rtec-blue);
}

.contact-info-block {
  display: grid;
  gap: 0.7rem;
  text-align: center;
}

.contact-right-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}

.contact-qr-note {
  color: var(--rtec-blue);
  font-size: 0.92rem;
  line-height: 1.35;
  text-wrap: balance;
  text-align: left;
}

.contact-qr-link {
  margin-top: 0;
  justify-self: stretch;
  align-self: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(36, 70, 142, 0.12);
  position: relative;
}

.contact-qr {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.qr-fallback {
  display: none;
  width: 88%;
  height: 88%;
  border-radius: 8px;
  background: rgba(182, 184, 191, 0.2);
  color: var(--rtec-blue);
  font-weight: 700;
  letter-spacing: 0.04em;
  place-items: center;
}

.contact-qr-link.qr-missing {
  background: #fff;
}

.products-page .screen-head {
  margin-top: 0.45rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.55rem;
  position: relative;
  z-index: 2;
}

.products-page .screen-head::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--products-side-padding));
  right: calc(-1 * var(--products-side-padding));
  bottom: 0;
  height: 12px;
  box-shadow: 0 10px 14px -10px rgba(36, 70, 142, 0.55);
  pointer-events: none;
}

.products-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.56);
  border: 0;
  border-radius: 10px;
  padding: 0.22rem 0.15rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.products-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav-back-home-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: clamp(42px, 5.4vh, 56px);
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--rtec-blue);
  border-radius: 2px;
  background: #fff;
  color: var(--rtec-blue);
  font-size: clamp(0.84rem, 1.12vw, 1rem);
  font-weight: 700;
  cursor: pointer;
  width: clamp(98px, 8.6vw, 130px);
  box-shadow: 0 4px 10px rgba(36, 70, 142, 0.1);
}

.nav-back-home-btn:hover {
  background: rgba(36, 70, 142, 0.08);
}

.nav-back-home-btn:active {
  transform: scale(0.98);
}

.products-nav-logo-wrap {
  width: auto;
  height: auto;
  display: grid;
  place-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}

.products-nav-logo {
  width: clamp(130px, 13vw, 210px);
  height: clamp(52px, 5.5vw, 92px);
  object-fit: contain;
  display: block;
}

.products-nav-center {
  min-height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  place-items: center;
  color: var(--rtec-blue-dark);
  font-weight: 600;
}

.products-contact-btn {
  background: var(--rtec-blue);
  width: clamp(240px, 19vw, 340px);
  min-height: clamp(42px, 5.4vh, 56px);
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
  font-size: clamp(0.9rem, 1.25vw, 1.18rem);
  border-radius: 2px;
  flex: 0 0 auto;
}

.product-grid {
  display: grid;
  align-content: start;
  gap: 2.1rem;
  height: 100%;
  overflow: auto;
  padding: 0.25rem 0.5rem 0.5rem 0.12rem;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0 1.55rem;
}

.category-label {
  min-height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--rtec-blue-dark);
  display: grid;
  gap: 0.28rem;
  padding: 0.2rem 0.2rem 0 0;
  text-align: left;
}

.category-label-title {
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.08;
}

.category-label-subtitle {
  font-size: 0.95rem;
  color: var(--rtec-grey-medium);
  line-height: 1.25;
}

.category-content {
  grid-column: 2 / -1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.05rem 0 0;
}

.category-models-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.subcategory-block + .subcategory-block {
  margin-top: 0.75rem;
}

.subcategory-title {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rtec-grey-medium);
  margin-bottom: 0.48rem;
  grid-column: 1 / -1;
}

.model-product-card {
  grid-column: span 2;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(36, 70, 142, 0.1);
  padding: 0.68rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  height: 248px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 180ms ease;
}

.model-product-card:hover,
.model-product-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(36, 70, 142, 0.16);
}

.model-product-card.selected {
  background: linear-gradient(180deg, rgba(182, 184, 191, 0.18) 0%, #ffffff 100%);
  box-shadow:
    0 12px 24px rgba(36, 70, 142, 0.2),
    0 0 0 2px rgba(36, 70, 142, 0.16) inset;
}

.card-image {
  width: 100%;
  height: 100%;
  min-height: 226px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: rgba(182, 184, 191, 0.16);
  padding: 0.22rem;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 226px;
  border-radius: 12px;
  background:
    linear-gradient(140deg, rgba(36, 70, 142, 0.72), rgba(127, 135, 141, 0.48)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.2) 2px,
      transparent 2px,
      transparent 7px
    );
}

.product-title {
  font-size: 1.28rem;
  line-height: 1.24;
  color: var(--rtec-blue-dark);
  margin-bottom: 0.2rem;
}

.product-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.26rem;
  min-height: 100%;
  overflow: visible;
}

.product-slogan {
  font-size: 1.04rem;
  color: var(--rtec-blue);
  font-weight: 600;
  line-height: 1.25;
}

.product-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.model-details-btn {
  justify-self: stretch;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--rtec-blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 30px;
  padding: 0.3rem 0.72rem;
  cursor: pointer;
}

.model-details-btn:hover {
  background: var(--rtec-blue-dark);
}

.detail-card {
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.detail-content h2 {
  color: var(--rtec-blue-dark);
  margin-bottom: 0.35rem;
}

.detail-content p {
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 0.72rem;
}

.benefits-list {
  list-style: none;
  display: grid;
  gap: 0.48rem;
  margin-bottom: 0.85rem;
}

.benefits-list li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.35;
}

.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--rtec-blue);
}

.models-title {
  color: var(--rtec-blue-dark);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.models-segment-title {
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rtec-grey-medium);
  margin: 0.35rem 0 0.35rem;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.model-card {
  border-radius: 10px;
  background: rgba(182, 184, 191, 0.18);
  overflow: hidden;
}

.model-card.selected {
  box-shadow: 0 0 0 2px rgba(36, 70, 142, 0.22) inset;
  background: rgba(182, 184, 191, 0.24);
}

.model-card img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: rgba(182, 184, 191, 0.22);
}

.model-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--rtec-grey-medium);
  padding: 0.32rem 0.45rem 0.44rem;
}

.detail-main-image,
.detail-image {
  width: 100%;
  min-height: 280px;
  border-radius: 14px;
  background: rgba(182, 184, 191, 0.18);
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
}

.detail-image {
  background:
    linear-gradient(140deg, rgba(36, 70, 142, 0.14), rgba(127, 135, 141, 0.1)),
    radial-gradient(circle at 20% 18%, rgba(36, 70, 142, 0.34), transparent 48%);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1.15rem;
}

.lead-form label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.93rem;
  font-weight: 600;
}

.lead-form input,
.lead-form select {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--rtec-grey-clear);
  background: rgba(255, 255, 255, 0.95);
  color: var(--rtec-blue-dark);
  padding: 0.36rem 0.66rem;
  font-size: 0.95rem;
}

.lead-form textarea {
  min-height: 120px;
  resize: none;
  border-radius: 10px;
  border: 1px solid var(--rtec-grey-clear);
  background: rgba(255, 255, 255, 0.95);
  color: var(--rtec-blue-dark);
  padding: 0.58rem 0.66rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(36, 70, 142, 0.18);
  border-color: var(--rtec-blue);
}

.lead-form-full {
  grid-column: span 2;
}

.lead-form button {
  grid-column: span 2;
  min-height: 50px;
}

.confirmation {
  margin-top: 0.45rem;
  color: var(--rtec-blue);
  background: rgba(182, 184, 191, 0.22);
  border-radius: 10px;
  padding: 0.62rem 0.78rem;
  font-weight: 700;
}

.confirmation.hidden {
  display: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-bottom: 0.8rem;
}

.admin-actions .secondary-btn {
  color: var(--text-main);
  border: 1px solid var(--rtec-grey-clear);
  background: rgba(182, 184, 191, 0.2);
}

.admin-actions .secondary-btn:hover {
  background: rgba(182, 184, 191, 0.34);
}

.admin-meta {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.admin-leads-list {
  max-height: calc(100% - 170px);
  overflow: auto;
  display: grid;
  gap: 0.55rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 0.75rem;
}

.lead-item {
  border-radius: 10px;
  background: rgba(182, 184, 191, 0.18);
  padding: 0.65rem 0.75rem;
}

.lead-item strong {
  color: var(--rtec-blue-dark);
}

.lead-item p {
  color: var(--rtec-grey-medium);
  font-size: 0.91rem;
  line-height: 1.38;
}

.lock-screen {
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.lock-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.lock-logo {
  width: min(42vw, 420px);
  object-fit: contain;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.product-modal.hidden {
  display: none;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 70, 142, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-modal-card {
  position: relative;
  width: min(860px, 92vw);
  max-height: 86vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(36, 70, 142, 0.22);
  padding: 1rem;
  overflow: auto;
}

.product-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--rtec-blue);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.9rem;
  align-items: stretch;
}

.product-modal-image {
  width: 100%;
  min-height: 260px;
  border-radius: 10px;
  background: rgba(182, 184, 191, 0.2);
  object-fit: contain;
  object-position: center;
  padding: 0.35rem;
}

.product-modal-content h3 {
  color: var(--rtec-blue);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.product-modal-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-modal-tagline {
  color: var(--rtec-blue);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-modal-description {
  color: var(--rtec-grey-medium);
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.product-modal-content h4 {
  color: var(--rtec-blue);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.product-modal-features {
  margin: 0 0 0.7rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

.product-modal-features li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--rtec-grey-medium);
  line-height: 1.35;
}

.product-modal-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rtec-blue);
}

.product-modal-cta {
  width: 100%;
  margin-top: auto;
}

body.locked-mode .top-bar {
  display: none;
}

body.locked-mode .screen-container {
  padding: 0;
}

@keyframes touchPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 70, 142, 0.42);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(36, 70, 142, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(36, 70, 142, 0);
  }
}

@keyframes touchHintFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes touchHintGlow {
  0%,
  100% {
    box-shadow:
      0 14px 30px rgba(29, 56, 114, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  }
  50% {
    box-shadow:
      0 18px 36px rgba(29, 56, 114, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.86) inset;
  }
}

@media (max-width: 1150px) {
  .screen-container,
  .screen {
    inset: 1rem;
    padding: 0;
  }

  .screen-container {
    padding: 1rem;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px), (orientation: portrait) {
  .home-landing {
    grid-template-rows: auto minmax(170px, 32vh) auto auto;
  }

  .home-bottom {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .products-page {
    gap: 0.55rem;
  }

  .products-nav {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
  }

  .products-nav-logo-wrap {
    width: 100px;
    height: 38px;
  }

  .nav-back-home-btn {
    min-height: 36px;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    width: auto;
    min-width: 88px;
  }

  .category-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .category-label {
    width: fit-content;
    min-width: 128px;
    padding-inline: 0.8rem;
  }

  .home-right-panel {
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
  }

  .home-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .home-actions .primary-btn {
    flex: 1 1 220px;
  }

  .home-contact {
    text-align: left;
  }

  .touch-hint {
    font-size: 0.82rem;
    bottom: 0.72rem;
    padding: 0.5rem 0.82rem;
  }

  .top-bar {
    grid-template-columns: auto 1fr auto;
    padding: 0.65rem 0.8rem;
  }

  .brand-text {
    display: none;
  }

  .hero {
    text-align: center;
    padding: 1.3rem 1.1rem;
  }

  .hero-actions,
  .industry-tags {
    justify-content: center;
  }

  .category-models-grid {
    grid-template-columns: 1fr;
  }

  .model-product-card {
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 170px;
  }

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

  .lead-form button {
    grid-column: span 1;
  }

  .lead-form-full {
    grid-column: span 1;
  }

  .contact-card {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .contact-right-footer {
    grid-template-columns: 1fr;
  }

  .contact-qr-link {
    justify-self: start;
    width: min(100%, 170px);
  }

  .product-modal-layout {
    grid-template-columns: 1fr;
  }

  .product-modal-image {
    min-height: 180px;
  }
}
