/* Base */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #4B5563;
  --accent: #2F5BEA;
  --accent-text: #FFFFFF;
  --plate-bg: #111827;
  --plate-text: #FFFFFF;
  --line: #4B5563;
  --font: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius-card: 16px;
  --radius-btn: 8px;
  --pad-side: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgb(47 91 234 / 0.3) 3px, transparent 3.2px);
  background-size: 44px 44px;
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-side); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-btn) 0;
  z-index: 100;
}
.skip:focus { left: 0; color: var(--accent-text); }

/* Header */
.topbar {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar__rule {
  height: 4px;
  width: 100%;
  background: var(--accent);
}

.brandmark {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brandmark:hover { color: var(--accent); }

/* Menu */
.menu__switch {
  display: none;
  margin: 0;
  font: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.menu__switch:focus-visible {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 6px 18px;
  border: 2px solid var(--text);
  opacity: 1;
}

.menu__list {
  list-style: none;
  display: none;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.menu__link {
  display: block;
  position: relative;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 0.25s ease;
}
.menu__link:hover { background-size: 100% 3px; color: var(--accent); }
.menu__link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.menu__link[aria-current="page"] { color: var(--accent); font-weight: 600; }
.menu__link[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-btn);
  background: linear-gradient(120deg, var(--accent), #1E3FB8);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.3s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}
.btn:hover { background-position: 100% 0%; color: var(--accent-text); }
.btn:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
  color: var(--accent-text);
}
.btn:active { transform: translateY(1px); color: var(--accent-text); }

.btn--quiet {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 6px;
  min-height: 44px;
  padding: 6px 12px;
}
.btn--quiet:hover { background: transparent; color: var(--text); }
.btn--quiet:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn--quiet:active { transform: translateY(1px); }

/* Sections */
.band {
  background: var(--surface);
  border-radius: var(--radius-card);
  margin: 0 var(--pad-side) clamp(16px, 2.5vw, 28px);
  padding: clamp(40px, 6vw, 72px) 0;
  box-shadow: var(--shadow);
}
.band .wrap { max-width: calc(1200px - 2 * var(--pad-side)); width: 100%; }
main { padding-top: clamp(16px, 2.5vw, 28px); }
.band + .band { margin-top: 0; }
body > main { padding-bottom: clamp(16px, 2vw, 24px); }

.band__lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: 60ch;
}

/* Hero */
.band--hero {
  padding-top: clamp(32px, 5vw, 56px);
  min-height: auto;
}
.band__photo {
  margin: 0 0 clamp(24px, 4vw, 40px);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.band__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  animation: heroScale 0.8s ease-out both;
}
@keyframes heroScale {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}
.band__duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.band__duo h1 { max-width: 12ch; line-height: 1.1; }
.band__duo .read { max-width: 46ch; }

/* Split layout */
.band__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.band__split--rev .tile--photo { order: -1; }
.band__after {
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 16px;
  border-top: 1px solid rgb(17 24 39 / 0.12);
}

/* Tiles */
.band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: clamp(24px, 3vw, 40px);
}
.band__grid--three { grid-template-columns: 1fr; }

.tile {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { font-size: 20px; }
.tile p { margin-bottom: 0; font-size: 16px; line-height: 1.6; }
.tile--ink {
  background: var(--plate-bg);
  color: var(--plate-text);
}
.tile--ink p { color: rgb(255 255 255 / 0.9); }
.tile__price {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent);
}

/* Photo tiles with offset plate */
.tile--photo {
  position: relative;
  padding: 0 16px 16px 0;
  background: transparent;
  max-width: 100%;
}
.tile__under {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: var(--radius-card);
  opacity: 0.9;
}
.tile--photo img {
  position: relative;
  width: 90%;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  transition: transform 0.35s ease;
}
.tile--photo:hover img { transform: scale(1.04); }

/* Dark plate */
.slab {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
}
.slab h2 { color: var(--plate-text); }
.slab__accent {
  color: #A9C0FF;
  font-size: clamp(1.5rem, 2vw + 0.6rem, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.slab__list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 12px;
}
.slab__list li::marker { color: #A9C0FF; font-weight: 700; }

/* Form */
.band--form { border-left: 6px solid var(--accent); }
.band__formgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  align-content: start;
}
.band--form .read { max-width: 40ch; }
.inquiry__wrap { max-width: 560px; }
.inquiry { display: grid; gap: 18px; }
.field { display: block; margin-bottom: 20px; }
.field__tag { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field__box {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid rgb(17 24 39 / 0.25);
  border-radius: var(--radius-btn);
  min-height: 48px;
  padding: 10px 14px;
  width: 100%;
}
.field__box:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field__area { min-height: 140px; resize: vertical; }
.field--bad .field__box { border-color: #B42318; }
.field__tick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.field__tick input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.inquiry__note { color: var(--muted); font-size: 0.95rem; margin: 0; }
.inquiry__send { justify-self: start; }
.inquiry__send[disabled] { opacity: 0.6; cursor: wait; }
.is-busy { pointer-events: none; }

/* FAQ */
.queries { display: grid; gap: 14px; margin-top: clamp(24px, 3vw, 40px); }
.queries__item {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 4px clamp(18px, 2.5vw, 28px);
  border: 1px solid rgb(17 24 39 / 0.08);
}
.queries__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.queries__item summary::-webkit-details-marker { display: none; }
.queries__item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.queries__item[open] summary::after { transform: rotate(225deg); }
.queries__item p { color: var(--muted); padding-bottom: 16px; margin: 0; }
.queries__item[open] { animation: openUp 0.3s ease; }
@keyframes openUp {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal */
html.is-ready .fade { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.is-ready .fade.is-shown { opacity: 1; transform: none; }

/* Prose */
.read { max-width: 68ch; }
.read h2 { max-width: 24ch; }
.read--policy { max-width: 760px; }
.read--policy ol, .read--policy ul { padding-left: 1.4em; }
.read--policy li { margin-bottom: 8px; }
.read--policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.98rem;
}
.read--policy th, .read--policy td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgb(17 24 39 / 0.15);
}
.read--policy th { font-weight: 700; }
.keydata {
  background: var(--bg);
  border-radius: var(--radius-card);
  border-left: 6px solid var(--accent);
  padding: 20px 24px;
  margin-bottom: 24px;
}

/* Inner page head */
.pagehead { padding-top: clamp(32px, 5vw, 56px); }
.pagehead__lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  max-width: 60ch;
}

/* Contacts */
.contactlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contactlist li span {
  display: inline-block;
  min-width: 90px;
  font-weight: 600;
  color: var(--muted);
}

/* Footer */
.sitefoot {
  margin-top: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border-top: 4px solid var(--accent);
  padding: clamp(40px, 6vw, 64px) 0 24px;
}
.sitefoot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.sitefoot__head { font-size: 1.1rem; margin-bottom: 12px; }
.sitefoot address { font-style: normal; color: var(--muted); margin: 12px 0 0; }
.sitefoot address p { margin: 0 0 6px; }
.sitefoot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sitefoot__links a { text-decoration: none; }
.sitefoot__base {
  border-top: 1px solid rgb(17 24 39 / 0.12);
  margin-top: 32px;
  padding-top: 16px;
}
.sitefoot__copy { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Floating call */
.topbar__call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-height: 48px;
  padding: 10px 22px;
}

/* Confirmation / 404 */
.confirm {
  text-align: left;
  max-width: 640px;
}
.errcode {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

/* Gallery grid */
.band__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 36px);
  margin-top: clamp(24px, 3vw, 40px);
}

/* Breakpoints */
@media (max-width: 1279px) {
  .band { margin-left: 12px; margin-right: 12px; }
}

@media (min-width: 640px) {
  .band__grid { grid-template-columns: repeat(2, 1fr); }
  .band__gallery { grid-template-columns: repeat(2, 1fr); }
  .sitefoot__grid { grid-template-columns: repeat(2, 1fr); }
  .band__split--rev .tile--photo { order: 0; }
}

@media (min-width: 768px) {
  .band__duo { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .band__split { grid-template-columns: 1fr 1fr; }
  .band__formgrid { grid-template-columns: 1fr 1.4fr; }
}

@media (min-width: 1024px) {
  .band__grid--three { grid-template-columns: repeat(3, 1fr); }
  .sitefoot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 767px) {
  .topbar { position: static; }
  .menu__switch { display: inline-flex; position: static; width: auto; height: auto; min-height: 44px; padding: 6px 18px; border: 2px solid var(--text); opacity: 1; overflow: visible; order: 2; }
  .brandmark { order: 1; }
  .menu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .menu__list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid rgb(17 24 39 / 0.12);
    margin-top: 8px;
    padding: 8px 0 12px;
    gap: 2px;
  }
  .menu--open .menu__list { display: flex; }
  .menu__link { padding: 12px 6px; font-size: 1.05rem; }
  .topbar__call { position: static; display: inline-flex; margin: 16px 0 0; right: auto; bottom: auto; }
}

@media (max-width: 479px) {
  .topbar__call { right: 12px; bottom: 12px; padding: 8px 18px; }
}

/* Mobile fixes */
@media (max-width: 767px) {
  .band__photo img { aspect-ratio: 4 / 3; }
  .band__duo h1 { font-size: clamp(28px, 8vw, 36px); max-width: 14ch; }
  .tile { padding: 24px; }
  .tile h3 { font-size: 18px; }
  .tile p { font-size: 16px; line-height: 1.6; }
  .band__duo .btn,
  .inquiry__send { width: 100%; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-ready .fade { opacity: 1; transform: none; }
}

/* Overflow guards */
html, body { max-width: 100%; }
main table { width: 100%; table-layout: fixed; border-collapse: collapse; }
main th, main td { overflow-wrap: anywhere; }
.read, .keydata, .pagehead, .sitefoot { overflow-wrap: break-word; }
.read, .keydata, .tile, .slab, .band__split > *, .band__formgrid > *, .band__duo > * { min-width: 0; }
figure { min-width: 0; }
.menu__list { max-width: 100%; }

/* Desktop menu */
@media (min-width: 768px) {
  .menu__list { display: flex; }
}
