:root {
  color-scheme: light dark;
  --bg: #f5e6cf;
  --bg-soft: #edd7b7;
  --panel: #fff7ea;
  --panel-2: #f8e3c5;
  --text: #2f2319;
  --muted: #6f5e4b;
  --line: #c98d51;
  --accent: #b4621f;
  --accent-2: #8e4d1d;
  --shadow: 0 12px 28px rgba(56, 39, 18, 0.14);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  background:
    radial-gradient(circle at top, rgba(255, 244, 224, 0.5), transparent 26%),
    repeating-linear-gradient(45deg, rgba(131, 79, 20, 0.02) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #f9efe0 0%, #f0ddc0 100%);
  color: var(--text);
}
body {
  padding-bottom: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: #8f4617;
  color: #f7f1e6;
  box-shadow: var(--shadow);
  transition: top 0.18s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(180, 98, 31, 0.45);
  outline-offset: 3px;
}

::selection {
  background: rgba(180, 98, 31, 0.24);
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f7ead6;
  border-bottom: 1px solid rgba(126, 76, 27, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, #b46322, #8f4617);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.06);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand strong {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  font-family: Georgia, "Times New Roman", Times, serif;
}
.brand span { color: var(--muted); font-size: 0.92rem; }
.navlinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.98rem;
}
.navlinks a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.navlinks a:hover, .navlinks a:focus-visible {
  color: var(--text);
  border-bottom-color: currentColor;
}

.navlinks a:focus-visible {
  outline: none;
}

.hero {
  padding: 58px 0 34px;
}
.hero-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 98, 31, 0.12);
}
.hero-grid > * {
  min-width: 0;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-family: Georgia, "Times New Roman", Times, serif;
  text-wrap: balance;
}
.hero p {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(242,227,199,0.82));
  color: var(--text);
  box-shadow: 0 2px 0 rgba(255,255,255,0.5) inset;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary {
  background: linear-gradient(180deg, #b46322, #8f4617);
  border-color: #7e4319;
  color: #f7f1e6;
  font-weight: 700;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(180, 98, 31, 0.18);
}

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(180, 98, 31, 0.18), transparent);
  pointer-events: none;
}
.hero-card, .hero-card * {
  min-width: 0;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(66, 49, 25, 0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
}

.hero-photo-note {
  display: inline-flex;
  align-items: center;
  margin: 14px 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(180, 98, 31, 0.08);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  text-wrap: balance;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(180, 98, 31, 0.08);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kv {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.kv div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(71, 54, 29, 0.09);
}
.kv small { display: block; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.74rem; }
.kv strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.kv a {
  display: block;
  padding: 8px 10px;
  margin: -8px -10px;
  border-radius: 12px;
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.kv a:hover, .kv a:focus-visible {
  color: var(--accent);
  background: rgba(180, 98, 31, 0.08);
}

.section {
  padding: 22px 0 0;
}
.section h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  text-wrap: balance;
}

.cta-panel {
  padding: 22px;
  display: grid;
  gap: 14px;
  align-items: center;
  grid-template-columns: 1.4fr auto;
  background: linear-gradient(180deg, rgba(180, 98, 31, 0.08), rgba(180, 98, 31, 0.03));
  border-color: rgba(180, 98, 31, 0.18);
}

.cta-panel h2,
.cta-panel h3 {
  margin: 0;
}

.cta-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-panel .hero-actions {
  margin-top: 0;
}

.process-grid .service h3 {
  color: var(--accent-2);
}
.section p.lead {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}
.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service, .contact-box, .note-box {
  padding: 20px;
}

.note-box ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}
.note-box li {
  margin: 6px 0;
}

.service {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service:hover,
.service:focus-within {
  transform: translateY(-2px);
  border-color: rgba(180, 98, 31, 0.38);
  box-shadow: 0 16px 34px rgba(56, 39, 18, 0.18);
}
.service h3, .contact-box h3, .note-box h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-family: Georgia, "Times New Roman", Times, serif;
}
.service p, .contact-box p, .note-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.about-lead-grid {
  align-items: stretch;
}

.about-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(248, 227, 197, 0.92));
}

.about-card h2,
.about-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.about-card h2 {
  font-size: 1.55rem;
  line-height: 1.15;
  text-wrap: balance;
}

.about-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-card-side ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.about-card-side li {
  margin: 7px 0;
}

.about-card-main {
  background: linear-gradient(180deg, rgba(180, 98, 31, 0.08), rgba(248, 227, 197, 0.92));
  border-color: rgba(180, 98, 31, 0.22);
}
.service ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.service li { margin: 6px 0; color: var(--muted); }

.fit-card {
  padding: 20px;
}

.fit-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.fit-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.fit-card li {
  margin: 8px 0;
}

.fit-good {
  border-color: rgba(76, 127, 70, 0.22);
}

.fit-bad {
  border-color: rgba(153, 78, 60, 0.22);
}

.area-card {
  padding: 18px 20px;
}

.area-summary {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.area-seo {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.testimonial-card {
  padding: 20px;
}

.testimonial-quote {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-source {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.quote-form {
  padding: 20px;
  display: grid;
  gap: 16px;
  scroll-margin-top: 96px;
}

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

.quote-form label {
  display: grid;
  gap: 6px;
}

.quote-form span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(83, 62, 31, 0.18);
  background: rgba(255, 255, 255, 0.44);
  color: var(--text);
  padding: 12px 14px;
}

.quote-form textarea {
  resize: vertical;
  min-height: 180px;
}

.form-message {
  display: grid;
  gap: 6px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
}

.footer-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.about-gallery-card {
  padding: 22px;
}


.photo-rail {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  margin: 0 -2px;
  min-height: clamp(860px, 96vh, 1100px);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.photo-stack {
  flex: 0 0 clamp(280px, 30vw, 380px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  scroll-snap-align: start;
}

.photo-stack[data-size="1"] {
  justify-content: center;
}

.photo-stack[data-size="2"],
.photo-stack[data-size="3"],
.photo-stack[data-size="4"],
.photo-stack[data-size="5"],
.photo-stack[data-size="6"],
.photo-stack[data-size="7"],
.photo-stack[data-size="8"] {
  justify-content: space-evenly;
}

.photo-card {
  margin: 0;
  padding: 0;
  width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: calc((var(--photo-span, 2) * 136px) + ((var(--photo-span, 2) - 1) * 12px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.photo-card-button {
  cursor: zoom-in;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.photo-card-button:disabled {
  cursor: default;
  opacity: 1;
}

.photo-card-button:focus-visible {
  outline: 3px solid rgba(180, 98, 31, 0.45);
  outline-offset: 4px;
}

.photo-media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.photo-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(180deg, #d7d1c8, #bdb4a8);
  border: 1px solid rgba(74, 56, 32, 0.12);
}

.photo-card figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.photo-lightbox {
  position: relative;
  display: none;
  gap: 12px;
  width: min(94vw, 1100px);
  max-width: 1100px;
  border: 1px solid rgba(140, 86, 38, 0.28);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(180deg, #fff7ea 0%, #f3ddbe 100%);
  box-shadow: 0 30px 80px rgba(34, 24, 12, 0.42);
  color: var(--text);
}

.photo-lightbox[open] {
  display: grid;
}

.photo-lightbox::backdrop {
  background: rgba(34, 24, 12, 0.72);
}

.photo-lightbox-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(83, 62, 31, 0.16);
}

.photo-lightbox-meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.photo-lightbox-meta h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.2rem;
}

.photo-lightbox-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.photo-lightbox-close {
  justify-self: end;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(83, 62, 31, 0.18);
  background: rgba(255,255,255,0.62);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible {
  background: rgba(255,255,255,0.88);
}

.page {
  padding: 34px 0 56px;
}

.page .section:first-of-type {
  padding-top: 18px;
}
.page-header {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-family: Georgia, "Times New Roman", Times, serif;
  text-wrap: balance;
}
.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.7;
}

.calculator-frame {
  overflow: hidden;
}
.calculator-stack {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}
.calculator-stack.section {
  padding-top: 18px;
}
.calculator-stack > .calculator-frame {
  margin: 0;
}
.calculator-stack > .calculator-frame + .calculator-frame {
  margin-top: 0;
}
.calc-shell {
  padding: 18px;
}
.calc-banner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.calc-banner h2 { margin: 0; font-family: Georgia, "Times New Roman", Times, serif; }
.calc-banner p { margin: 4px 0 0; color: var(--muted); }
.calc-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 16px;
  align-items: start;
}
.calc-preview-card {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(140, 86, 38, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(246,224,194,0.8));
  box-shadow: 0 10px 24px rgba(56, 39, 18, 0.12);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  justify-self: start;
  max-width: 520px;
}
.calc-preview-card img {
  width: auto;
  max-width: 100%;
  max-height: min(66vh, 540px);
  height: auto;
  display: block;
  border-radius: 12px;
}
.calc-copy {
  display: grid;
  gap: 12px;
}
.calc-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.42);
  border-radius: 12px;
  color: var(--muted);
}
.calc-units {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  gap: 8px;
}
.calc-unit {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 86, 38, 0.18);
  background: rgba(255,255,255,0.38);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.calc-smallprint {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.calculator-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.calculator-item {
  display: grid;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(83, 62, 31, 0.14);
}
.calculator-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.calculator-item h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.02rem;
}
.calculator-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.38);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer {
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer .shell {
  padding-top: 22px;
  border-top: 1px solid rgba(83, 62, 31, 0.14);
}

.floating-actions {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-email,
.floating-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #7e4319;
  background: linear-gradient(180deg, #b46322, #8f4617);
  color: #f7f1e6;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(56, 39, 18, 0.22);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.floating-top {
  min-width: 46px;
  min-height: 46px;
  padding: 0 14px;
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-email:hover,
.floating-top:hover,
.floating-email:focus-visible,
.floating-top:focus-visible {
  transform: translateY(-1px);
}

.floating-email:focus-visible {
  outline: 3px solid rgba(180, 98, 31, 0.28);
  outline-offset: 3px;
}

.floating-top:focus-visible {
  outline: 3px solid rgba(180, 98, 31, 0.28);
  outline-offset: 3px;
}



@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .photo-grid { grid-template-columns: 1fr; }

  .calc-preview-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 18px;
  }

  .about-card h2 {
    font-size: 1.38rem;
    line-height: 1.2;
  }

  .about-card h3 {
    font-size: 1.12rem;
  }

  .about-card p {
    margin-top: 10px;
    line-height: 1.75;
  }

  .about-card-side ul {
    margin-top: 10px;
    padding-left: 20px;
    line-height: 1.75;
  }

  .about-card-side li {
    margin: 8px 0;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .photo-lightbox {
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .photo-lightbox-close {
    justify-self: end;
  }

  .trust-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
  }
  .brand {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    max-width: 100%;
    width: 100%;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .brand-copy {
    min-width: 0;
    max-width: 100%;
  }
  .brand strong {
    font-size: 0.98rem;
    line-height: 1.1;
  }
  .brand span {
    font-size: 0.82rem;
    line-height: 1.2;
  }
  .navlinks {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 6px;
  }
  .navlinks a {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 8px 0;
    touch-action: manipulation;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .page { padding-top: 24px; }
  .page-header {
    gap: 8px;
    margin-bottom: 14px;
  }
  .page-header .hero-actions {
    margin-top: 8px;
    margin-bottom: 6px;
  }
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  body {
    padding-bottom: 0;
  }
  .calc-shell { padding: 14px; }
  .cta-panel {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
  .calc-preview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .calc-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .calc-banner .btn {
    width: 100%;
  }
  .calc-preview-card {
    padding: 10px;
  }
  .calc-preview-card img {
    max-height: min(54vh, 420px);
  }
  .calculator-stack {
    gap: 18px;
  }

  .about-card {
    padding: 18px;
  }

  .about-card h2 {
    font-size: 1.38rem;
    line-height: 1.2;
  }

  .about-card h3 {
    font-size: 1.12rem;
  }

  .about-card p {
    margin-top: 10px;
    line-height: 1.75;
  }

  .about-card-side ul {
    margin-top: 10px;
    padding-left: 20px;
    line-height: 1.75;
  }

  .about-card-side li {
    margin: 8px 0;
  }

  .photo-rail {
    gap: 12px;
    min-height: clamp(700px, 84vh, 920px);
  }

  .photo-stack {
    flex-basis: 84vw;
    gap: 10px;
  }

  .photo-card {
    padding: 0;
    height: calc((var(--photo-span, 2) * 112px) + ((var(--photo-span, 2) - 1) * 10px));
  }

  .photo-media {
    padding: 0;
  }

  .brand,
  .navlinks a {
    -webkit-tap-highlight-color: transparent;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .floating-email,
  .floating-top {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .floating-top {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 1.15rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #17110e;
    --bg-soft: #241811;
    --panel: #2b2118;
    --panel-2: #36271d;
    --text: #f4e8da;
    --muted: #d8c1a8;
    --line: #9a6332;
    --accent: #e0a14b;
    --accent-2: #d98b44;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  }
  body {
    background:
      radial-gradient(circle at top, rgba(255, 198, 118, 0.09), transparent 28%),
      repeating-linear-gradient(45deg, rgba(255, 214, 157, 0.03) 0 2px, transparent 2px 8px),
      linear-gradient(180deg, #15100d 0%, #221813 100%);
  }
  .topbar {
    background: #1d1410;
    border-bottom-color: rgba(225, 163, 81, 0.18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  }
  .card {
    background: linear-gradient(180deg, #35281e 0%, #251b15 100%);
  }
  .btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    color: var(--text);
  }
  .btn.primary {
    background: linear-gradient(180deg, #7b4a1f, #5f3518);
    border-color: #76421a;
  }
  .hero-logo {
    background: #8f4c1f;
    border-color: rgba(255, 235, 205, 0.14);
  }
  .brand-logo {
    background: linear-gradient(180deg, #c76a25, #934615);
  }
  .kv div {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.05);
  }
  .calc-note {
    background: rgba(255,255,255,0.04);
  }
  .pill {
    background: rgba(255,255,255,0.06);
  }
  .area-list li {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.06);
  }
  .photo-placeholder {
    background: linear-gradient(180deg, #58514a, #3a332d);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .photo-card-button:focus-visible {
    outline-color: rgba(255, 197, 117, 0.56);
  }

  .photo-lightbox {
    background: linear-gradient(180deg, #2a2019 0%, #1a130f 100%);
    border-color: rgba(224, 161, 75, 0.26);
  }

  .photo-lightbox::backdrop {
    background: rgba(4, 3, 2, 0.84);
  }

  .photo-lightbox-image {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .photo-lightbox-close {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
  }

  .photo-lightbox-close:hover,
  .photo-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
  }

  .photo-lightbox-meta p {
    color: var(--muted);
  }

  .quote-form input,
  .quote-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
  }
  .footer .shell {
    border-top-color: rgba(225, 163, 81, 0.18);
  }
}
