/* ==========================================================================
   XorFox — main stylesheet
   Modern, framework-free design system. Self-hosted fonts only; no CDNs,
   no cookies, no trackers (see privacy policy).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0F1B2E;
  --ink-deep: #0B1422;
  --ink-soft: #1B2A44;
  --paper: #FAF8F5;
  --white: #FFFFFF;
  --text: #3A4456;
  --muted: #64708A;
  --line: #E7E2D9;
  --line-dark: rgba(255, 255, 255, 0.14);
  --brand: #E08438;
  --brand-bright: #EE9A52;
  --brand-dark: #C4691F;
  --brand-tint: #FBF0E4;
  --brand-tint-2: #FDF6EC;
  --ok-bg: #EAF6EE;
  --ok-border: #BFE3CC;
  --ok-text: #1B6B43;
  --err-bg: #FBEDEB;
  --err-border: #F0C4BE;
  --err-text: #A93226;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 46, 0.05), 0 2px 8px rgba(15, 27, 46, 0.04);
  --shadow-md: 0 2px 6px rgba(15, 27, 46, 0.06), 0 12px 28px rgba(15, 27, 46, 0.09);
  --font: 'Rubik', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1.1em; }

a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(224, 132, 56, 0.45);
  text-underline-offset: 3px;
}
a:hover { color: var(--brand-dark); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin: 0.35em 0; }

strong { color: var(--ink); }

::selection { background: rgba(224, 132, 56, 0.28); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transform: translateY(-250%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout ---------- */
.container {
  max-width: 1128px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 780px; }

.section { padding: 96px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 0; }

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.kicker::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 132, 56, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(224, 132, 56, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }

.btn-sm { padding: 9px 18px; font-size: 0.875rem; border-radius: 9px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--brand-dark);
  text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.16s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.brand-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  flex: none;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 9px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2A3446;
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.site-nav a:not(.btn):hover { color: var(--brand-dark); }
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); }
.site-nav .btn { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 148px 0 128px;
  background:
    radial-gradient(56rem 30rem at 12% -10%, rgba(224, 132, 56, 0.22), transparent 60%),
    radial-gradient(40rem 26rem at 95% 115%, rgba(224, 132, 56, 0.12), transparent 55%),
    linear-gradient(180deg, #101D33 0%, var(--ink-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  background-image:
    radial-gradient(56rem 30rem at 12% -10%, rgba(224, 132, 56, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(13, 23, 40, 0.82) 0%, rgba(11, 20, 34, 0.96) 100%),
    url("../images/denver-skyline.jpg");
  background-size: auto, auto, cover;
  background-position: center top;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.06;
  color: #fff;
  letter-spacing: -0.028em;
}
.hero h1 .accent { color: var(--brand-bright); }
.hero h1 sup { font-size: 0.42em; line-height: 0; vertical-align: super; }

.hero .kicker { color: var(--brand-bright); }
.hero .kicker::before { background: var(--brand-bright); }

.hero .lede {
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 1.2rem;
  line-height: 1.65;
  color: #C9D2E0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 44px 0 0;
  font-size: 0.875rem;
  color: #8D99AD;
}
.hero-meta span.sep { color: rgba(224, 132, 56, 0.7); }

/* Internal page hero */
.hero-page { padding: 104px 0 96px; }
.hero-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 14px; }
.hero-page .lede { max-width: 680px; margin-bottom: 0; font-size: 1.125rem; color: #C9D2E0; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--brand);
  opacity: 0.9;
}

.step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.9688rem; color: var(--muted); line-height: 1.6; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 18px;
  background: var(--brand-tint);
  border: 1px solid rgba(224, 132, 56, 0.25);
  border-radius: 13px;
  color: var(--brand-dark);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.card p { flex: 1; margin: 0 0 18px; font-size: 0.9688rem; color: var(--muted); line-height: 1.62; }
.card .text-link { margin-top: auto; font-size: 0.9375rem; }

.chip {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid rgba(224, 132, 56, 0.3);
  color: var(--brand-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  transform: translateY(-2px);
}

/* ---------- Media cards (community) ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: inherit;
  text-decoration: none;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.media-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.media-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.media-card-body h3 { font-size: 1.1875rem; }
.media-card-body p { flex: 1; margin-bottom: 16px; font-size: 0.9688rem; color: var(--muted); }

/* ---------- Dark band ---------- */
.band {
  position: relative;
  padding: 104px 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 72px),
    radial-gradient(48rem 26rem at 85% 0%, rgba(224, 132, 56, 0.16), transparent 60%),
    var(--ink-deep);
  color: #fff;
}
.band h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: #fff;
}
.band h2 em { font-style: normal; color: var(--brand-bright); }
.band p { max-width: 680px; color: #B9C2D1; font-size: 1.125rem; }
.band .btn-row { margin-top: 32px; }

/* ---------- Tint CTA band ---------- */
.band-tint {
  padding: 88px 0;
  background:
    radial-gradient(40rem 22rem at 100% 100%, rgba(224, 132, 56, 0.18), transparent 60%),
    linear-gradient(180deg, var(--brand-tint-2), var(--brand-tint));
  border-top: 1px solid rgba(224, 132, 56, 0.2);
  text-align: center;
}
.band-tint h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.band-tint p { max-width: 560px; margin: 0 auto 28px; color: #6B5A45; font-size: 1.1rem; }

/* ---------- Service blocks (services page) ---------- */
.service-block { padding: 30px 0 14px; }
.service-block + .service-block { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 48px; }
.service-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-block .h2-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.checklist { margin: 18px 0 10px; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin: 10px 0;
  font-size: 1rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 19px; height: 19px;
  border-radius: 6px;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4691F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(224, 132, 56, 0.3);
}
.checklist.crossed li::before {
  background-color: #F3EFE8;
  border-color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-size: 10px;
}

/* ---------- Product panel (Drawbridge) ---------- */
.product-panel {
  margin-top: 24px;
  padding: 44px;
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgba(224, 132, 56, 0.12), transparent 60%),
    linear-gradient(135deg, #FFF9F1, #FCF1E3);
  border: 1px solid #EFDFC9;
  border-radius: 24px;
}
.product-panel h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.product-panel h3 .card-icon { margin-bottom: 0; }

.price-list { margin: 18px 0 6px; padding: 0; list-style: none; }
.price-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px dashed rgba(196, 105, 31, 0.25);
  font-size: 1rem;
}
.price-list li:last-child { border-bottom: 0; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 20px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--brand);
  transform: rotate(45deg);
}
.product-panel .btn-row { margin-top: 22px; }

/* ---------- Figures ---------- */
.figure { margin: 28px 0; }
.figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.figure figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.figure-link { display: inline-block; line-height: 0; border-radius: var(--radius); }
.figure-link img { transition: transform 0.2s ease; }
.figure-link:hover img { transform: scale(1.01); }

/* ---------- Video embeds ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.mural-video { display: none; }
#muralVideoEnglish:target,
noscript ~ .mural-default { display: block; }

/* ---------- Tabs (community pages) ---------- */
.tabs { display: inline-flex; gap: 8px; margin-bottom: 34px; padding: 5px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tab:hover { color: var(--brand-dark); }
.tab[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Gallery ---------- */
.gallery { position: relative; margin: 26px 0; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(440px, 82%);
  gap: 18px;
  margin: 0; padding: 0 4px 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.gallery-track figure { margin: 0; scroll-snap-align: start; }
.gallery-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-track figcaption { margin-top: 8px; font-size: 0.8438rem; color: var(--muted); }
.gallery-nav { display: flex; gap: 10px; margin-top: 6px; }
.gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gallery-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery-btn svg { width: 18px; height: 18px; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; margin-top: 40px; }

.post-card {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(224, 132, 56, 0.4); }

.post-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.post-card h2 { font-size: 1.3rem; line-height: 1.3; }
.post-card p { flex: 1; margin: 0 0 18px; font-size: 0.9688rem; color: var(--muted); }
.post-card .text-link { margin-top: auto; }

/* ---------- Blog post ---------- */
.post-header { max-width: 760px; margin-bottom: 40px; }
.post-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; margin-bottom: 16px; }
.post-lede { font-size: 1.2rem; color: var(--muted); margin-bottom: 0; }

.prose { max-width: 760px; font-size: 1.0625rem; }
.prose h2 { font-size: 1.55rem; margin: 2.1em 0 0.7em; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; }
.prose p { line-height: 1.75; }
.prose a { color: var(--brand-dark); }
.prose ul li, .prose ol li { margin: 0.5em 0; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  max-width: 760px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ---------- Contact form ---------- */
.contact-wrap { max-width: 640px; }

.form-note { font-size: 0.9375rem; color: var(--muted); }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid #D9D3C7;
  border-radius: 11px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:hover, .field textarea:hover { border-color: #BDB5A4; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(224, 132, 56, 0.22);
}
.field textarea { min-height: 170px; resize: vertical; }

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.notice {
  display: none;
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  font-size: 1rem;
}
.notice h3 { margin: 0 0 6px; font-size: 1.125rem; }
.notice p { margin: 0; }
.notice-ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text); }
.notice-ok h3 { color: var(--ok-text); }
.notice-err { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-text); }
.notice-err h3 { color: var(--err-text); }

/* ---------- Dialog (privacy policy) ---------- */
dialog.privacy-dialog {
  width: min(660px, calc(100% - 48px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(11, 20, 34, 0.35);
}
dialog.privacy-dialog::backdrop { background: rgba(11, 20, 34, 0.55); }
.dialog-inner { padding: 36px 38px; }
.dialog-inner h2 { font-size: 1.4rem; }
.dialog-inner p { font-size: 0.9375rem; line-height: 1.65; color: var(--text); }
.dialog-close {
  margin-top: 18px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.dialog-close:hover { background: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-deep);
  color: #AEB9C8;
  font-size: 0.9375rem;
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), rgba(224, 132, 56, 0.1) 55%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding: 72px 24px 56px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 11px; }
.footer-brand strong { color: #fff; font-size: 1.25rem; letter-spacing: -0.01em; }

.site-footer h3 {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

.site-footer p { color: #AEB9C8; line-height: 1.7; }
.site-footer a { color: #DCE3EC; text-decoration: none; }
.site-footer a:hover { color: var(--brand-bright); }

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }

.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social img { width: 26px; height: auto; opacity: 0.85; transition: opacity 0.15s ease, transform 0.15s ease; }
.footer-social a:hover img { opacity: 1; transform: translateY(-2px); }

.footer-soc2 { display: inline-block; margin-top: 16px; }
.footer-soc2 img { display: block; max-width: 100px; height: auto; opacity: 0.92; }

.visitorCounter {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C7D0DC;
}

address { font-style: normal; }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #DCE3EC;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  cursor: pointer;
}
.linklike:hover { color: var(--brand-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  padding: 26px 24px 34px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8438rem;
  color: #7E8AA0;
}
.footer-bottom p { margin: 0; color: #7E8AA0; }

/* ---------- Page body (internal) ---------- */
.page-body { padding: 84px 0 96px; }
.page-body h2 { font-size: 1.45rem; margin: 2em 0 0.7em; }
.page-body > .container > :first-child { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 70px; left: 0; right: 0;
    display: none;
    padding: 10px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(11, 20, 34, 0.12);
  }
  .nav-open .site-nav { display: block; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 13px 12px; font-size: 1.0625rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--brand-tint); border-radius: 10px; }
  .site-nav .btn { margin: 14px 0 0; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding-block: 56px 40px; }
}

@media (max-width: 640px) {
  .hero h1 br { display: none; }
  .section { padding: 68px 0; }
  .hero { padding: 104px 0 92px; }
  .hero-page { padding: 80px 0 68px; }
  .band { padding: 76px 0; }
  .band-tint { padding: 68px 0; }
  .product-panel { padding: 28px 24px; border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .post-footer { flex-direction: column; align-items: stretch; }
  .post-footer .btn { justify-content: center; }
  .tabs { width: 100%; justify-content: stretch; }
  .tab { flex: 1; text-align: center; padding: 8px 10px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
