
:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #111827;
  --ink-secondary: #4B5563;
  --ink-muted: #6B7280;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --accent: #0057B8;
  --accent-hover: #004494;
  --accent-tint: #F0F6FC;
  --radius: 10px;
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== TYPOGRAPHY ===== */
.kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.13;
  color: var(--ink);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(25px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}
.section-header-row .section-header { margin-bottom: 0; }
.aquarea-mark {
  height: 26px;
  width: auto;
  opacity: 0.72;
  flex-shrink: 0;
}
.panasonic-section-mark {
  height: 92px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  flex-shrink: 0;
}
.panasonic-blue-mark {
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
}
.section-lead {
  color: var(--ink-secondary);
  font-size: 15.5px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-link {
  background: transparent;
  color: var(--accent);
  padding: 10px 4px;
  font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 92px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-logo {
  height: 30px;
  width: auto;
}
.brand-sep {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}
.brand-sub {
  font-size: 13px;
  color: var(--ink-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color 0.15s;
}
.nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
}

/* ===== HERO (FULL-BLEED 4K ARCHITECTURE PHOTO) ===== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 88px 0;
  background: #F4F6F9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.88) 32%,
    rgba(255, 255, 255, 0.56) 46%,
    rgba(255, 255, 255, 0.0) 58%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 590px;
}
.hero-lead {
  font-size: 16.5px;
  color: #374151;
  margin-bottom: 30px;
  max-width: 530px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.94);
}

.metrics-strip {
  background: #F3F6FA;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}
.metric strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 4px;
}
.metric span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ===== SECTIONS ===== */
.section {
  padding: 84px 0;
  background: var(--bg);
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== PRODUCT TABS & STAGE ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.product-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-img-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.product-img-frame img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}
.product-img-frame.contain-mode {
  background: #FFFFFF;
}
.product-img-frame.contain-mode img {
  object-fit: contain;
  padding: 18px;
  background: #FFFFFF;
}
.gallery-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.gal-link {
  background: none;
  border: none;
  padding: 2px 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.15s;
}
.gal-link:hover { color: var(--ink); }
.gal-link.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.product-info h3 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 10px;
}
.product-desc {
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.key-specs {
  border-top: 1px solid var(--border);
  margin-bottom: 26px;
}
.key-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.key-spec-row span { color: var(--ink-muted); }
.key-spec-row strong { color: var(--ink); font-weight: 600; text-align: right; }

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.price-block small {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}
.price-block strong {
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
}
.product-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== PILLARS (ECOSYSTEM) ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.pillar {
  border-top: 1px solid var(--border-strong);
  padding-top: 20px;
}
.pillar-index {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--ink-secondary); }

/* ===== CALCULATOR ===== */
.calc-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}
.calc-inputs, .calc-output {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field-group { margin-bottom: 22px; }
.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.label-row .field-label { margin-bottom: 0; }
.range-readout {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.seg-grid { display: grid; gap: 8px; }
.seg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.seg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.seg-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background-color 0.15s;
}
.seg-btn strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.seg-btn span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}
.seg-btn:hover { border-color: var(--accent); }
.seg-btn.active {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.calc-checks {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  cursor: pointer;
}
.check-row input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.rec-photo {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  background: var(--bg-alt);
}
.rec-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.rec-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
}
.rec-sub {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.rec-table {
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}
.rec-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.rec-row span { color: var(--ink-muted); }
.rec-row strong { color: var(--ink); font-weight: 600; }

.rec-points {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.rec-points li {
  padding-left: 14px;
  position: relative;
}
.rec-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== PROOF ===== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.proof-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.proof-media {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-media-white {
  background: #FFFFFF;
}
.proof-media img {
  max-height: 204px;
  max-width: 100%;
  object-fit: contain;
}
.proof-text {
  padding: 24px 26px;
}
.proof-text h3 { margin-bottom: 6px; font-size: 17px; }
.proof-text p { font-size: 14px; color: var(--ink-secondary); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.step-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.service-box h3 { font-size: 16.5px; margin-bottom: 8px; }
.service-box p { font-size: 14px; color: var(--ink-secondary); }

/* ===== B2B SECTION ===== */
.b2b-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.b2b-intro > p {
  color: var(--ink-secondary);
  margin-bottom: 24px;
}
.b2b-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 28px;
}
.b2b-point strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.b2b-point p {
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.b2b-media img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.b2b-media figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ===== FAQ ===== */
.faq-container { max-width: 960px; }
.faq-list {
  border-top: 1px solid var(--border-strong);
}
.faq-item {
  border-bottom: 1px solid var(--border-strong);
  padding: 18px 0;
}
.faq-item summary {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-muted);
}
.faq-item[open] summary::after { content: "−"; color: var(--accent); }
.faq-item p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  max-width: 780px;
}

/* ===== CONTACT & FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: start;
}
.contact-lead {
  color: var(--ink-secondary);
  margin-bottom: 26px;
}
.contact-meta {
  border-top: 1px solid var(--border);
  margin-bottom: 28px;
}
.contact-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.contact-meta dt { color: var(--ink-muted); }
.contact-meta dd { font-weight: 600; color: var(--ink); text-align: right; }
.contact-meta a:hover { color: var(--accent); }

.mini-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.mini-steps strong { color: var(--ink); }

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.mode-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.mode-btn.active {
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hp-field { display: none; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.f-group { margin-bottom: 14px; }
.f-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.f-group input, .f-group select, .f-group textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #FFFFFF;
  transition: border-color 0.15s;
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}
.form-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  font-size: 13.5px;
  color: var(--ink);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 13px;
  color: var(--ink-secondary);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-info strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}
.footer-info a:hover { color: var(--accent); }
.footer-disclaimer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 720px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--ink); }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.modal-head .kicker { margin-bottom: 4px; }
.modal-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0 4px;
}
.modal-close:hover { color: var(--ink); }

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
}
.modal-img-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: #FFFFFF;
  margin-bottom: 18px;
  text-align: center;
}
.modal-img-box img {
  max-height: 200px;
  margin: 0 auto;
  object-fit: contain;
}
.modal-img-box p {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child {
  width: 36%;
  color: var(--ink-muted);
  padding-right: 16px;
}
.spec-table td:last-child {
  color: var(--ink);
  font-weight: 500;
}

.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-alt);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1120px) {
  .nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px 20px;
    gap: 14px;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
}

@media (max-width: 960px) {
  .hero {
    min-height: 490px;
    padding: 64px 0;
  }
  .hero-bg img {
    object-position: 65% center;
  }
  .hero-scrim {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.86) 62%,
      rgba(255, 255, 255, 0.45) 100%
    );
  }
  .product-grid, .calc-layout, .b2b-card, .contact-grid {
    grid-template-columns: 1fr;
  }
  .metrics-bar, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid, .proof-grid { grid-template-columns: 1fr; }
  .aquarea-mark { display: none; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .panasonic-section-mark { height: 64px; max-width: 240px; }
  .panasonic-blue-mark { height: 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { min-height: 440px; padding: 52px 0; }
  .hero-bg img { object-position: 58% center; }
  .hero-scrim { background: rgba(255, 255, 255, 0.84); }
  .product-card, .calc-inputs, .calc-output, .form-panel, .b2b-card { padding: 20px; }
  .product-img-frame img { height: 270px; }
  .metrics-bar, .services-grid, .b2b-points-grid, .seg-grid.cols-3, .form-row {
    grid-template-columns: 1fr;
  }
  .brand-sep, .brand-sub { display: none; }
}

/* ===== LOGO MS TEPLO (ČITELNÁ VELIKOST V HLAVIČCE) ===== */
.msteplo-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 0;
}
.msteplo-logo-img {
  height: 70px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}
.nav a.active-page {
  color: var(--accent);
  font-weight: 600;
}

/* ===== OSOBNÍ PŘEDSTAVENÍ MS TEPLO ===== */
.personal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.04);
}
.personal-lead {
  color: var(--ink-secondary);
  font-size: 15.5px;
  max-width: 820px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.personal-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.personal-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.personal-box strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}
.personal-box p {
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.personal-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ===== ODKAZ NA SAMOSTATNOU STRÁNKU REFERENCÍ (DOLE NA ÚVODU) ===== */
.ref-teaser-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.ref-teaser-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.ref-teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ref-teaser-body p {
  color: var(--ink-secondary);
  margin-bottom: 18px;
}
.ref-teaser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.ref-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent-tint);
  color: var(--accent);
}

/* ===== SAMOSTATNÁ STRÁNKA REFERENCÍ (reference.html) ===== */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 44px;
}
.page-hero .section-lead {
  max-width: 720px;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.filter-btn.active {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.ref-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
}
.ref-case-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}
.ref-stage-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0F172A;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
}
.ref-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(17, 24, 39, 0.72);
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
  z-index: 3;
}
.ref-nav-btn:hover {
  background: rgba(0, 87, 184, 0.92);
}
.ref-nav-prev { left: 12px; }
.ref-nav-next { right: 12px; }

.ref-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.78);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
}
.ref-caption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  min-height: 22px;
}
.ref-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.ref-thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  opacity: 0.72;
  transition: opacity 0.15s, border-color 0.15s;
}
.ref-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ref-thumb-btn:hover,
.ref-thumb-btn.active {
  opacity: 1;
  border-color: var(--accent);
}
.ref-empty-msg {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--ink-secondary);
}

/* Lightbox pro zvětšení fotky */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-backdrop[hidden] { display: none; }
.lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-height: 78vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-cap {
  color: #E5E7EB;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ===== CTA & FORMULÁŘ / SCHŮZKY ===== */
.btn-cta-strong {
  font-weight: 700;
  padding: 13px 22px;
  box-shadow: 0 2px 6px rgba(0, 87, 184, 0.16);
}
.meeting-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.meeting-slot-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}
.meeting-slot-box h4 {
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.empty-slot-label {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.slot-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.slot-btn.active {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px 20px;
    gap: 14px;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
}
@media (max-width: 960px) {
  .personal-pillars { grid-template-columns: repeat(2, 1fr); }
  .ref-teaser-card,
  .ref-case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .msteplo-logo-img { height: 52px; max-width: 210px; }
  .personal-pillars,
  .meeting-options,
  .slot-grid { grid-template-columns: 1fr; }
  .ref-thumbs-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .ref-case-card, .ref-teaser-card, .personal-card { padding: 20px; }
}

/* ===== ZJEDNODUŠENÝ KONTAKT & FORMULÁŘ (V22) ===== */
.contact-direct {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-direct-item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-direct-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 87, 184, 0.08);
}
.contact-direct-label {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.contact-direct-val {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact-direct-item:hover .contact-direct-val {
  color: var(--accent);
}
.contact-company {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-muted);
}
.contact-company strong {
  color: var(--ink);
  font-weight: 600;
}

.form-panel {
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.04);
}
.opt-tag {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 12px;
}
.field-label-sm {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.time-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.time-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.time-chip.active {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.gdpr-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 6px 0 18px;
  cursor: pointer;
}
.gdpr-row input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* ===== OFICIÁLNÍ IKONY / BADGE PANASONIC U PRODUKTŮ (V23) ===== */
.product-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.product-badge-icon {
  height: 52px;
  width: auto;
  max-width: 68px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .product-badges {
    gap: 10px;
    padding: 10px 12px;
  }
  .product-badge-icon {
    height: 44px;
    max-width: 58px;
  }
}

/* ===== SEKCE O MNĚ & OSOBNÍ KONTAKTNÍ KARTA (V24) ===== */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.04);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: start;
}
.about-id-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.about-monogram {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent-tint);
  border: 1px solid rgba(0, 87, 184, 0.22);
  color: var(--accent);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-monogram-sm {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 15px;
}
.about-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.about-role {
  display: block;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.about-story p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin-bottom: 13px;
}
.about-story p:last-of-type {
  margin-bottom: 0;
}
.about-story strong {
  color: var(--ink);
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-fact-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.about-fact-box strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 5px;
}
.about-fact-box p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.contact-person-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.03);
}
.contact-person-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.contact-person-head strong {
  display: block;
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.25;
}
.contact-person-head span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
}
.contact-meta-clean {
  border-top: none;
  margin-bottom: 0;
}
.contact-meta-clean > div:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.form-personal-head {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.form-personal-head strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 2px;
}
.form-personal-head span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .about-card, .contact-person-card { padding: 20px; }
  .about-facts { grid-template-columns: 1fr; }
}

/* ===== VIZUÁLNÍ ODDĚLENÍ POPTÁVKOVÉ SEKCE NAD B2B (V25) ===== */
.section-contact {
  background: #EFF4FA;
  border-top: 1px solid #DCE6F2;
  border-bottom: 1px solid #DCE6F2;
}


/* ===== ZÁSADY GDPR (gdpr.html & odkaz ve formuláři — V27) ===== */
.gdpr-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.gdpr-row a:hover {
  color: var(--accent-hover);
}
.legal-doc {
  max-width: 820px;
}
.legal-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 32px;
}
.legal-box h2,
.legal-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--ink);
}
.legal-section {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
}
.legal-doc p {
  color: var(--ink-secondary);
  margin-bottom: 12px;
}
.legal-doc p:last-child {
  margin-bottom: 0;
}
.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc a:hover {
  color: var(--accent-hover);
}
.legal-list {
  margin: 8px 0 12px 20px;
  color: var(--ink-secondary);
}
.legal-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-list li strong {
  color: var(--ink);
}
.legal-note {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 10px;
}
.legal-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-muted);
}
.legal-footer-meta .btn {
  text-decoration: none;
  color: var(--ink);
}
@media (max-width: 640px) {
  .legal-box { padding: 18px 18px; }
}
