/* Base */
:root {
  --bg: #F6F4FA;
  --surface: #FFFFFF;
  --text: #211B2E;
  --muted: #5B536B;
  --accent: #6234B5;
  --accent-text: #FFFFFF;
  --plate-bg: #211B2E;
  --plate-text: #F6F4FA;
  --line: #E4E0EE;
  --radius-card: 16px;
  --radius-btn: 10px;
  --pad-shell: clamp(16px, 4vw, 40px);
  --space-band: clamp(64px, 9vw, 128px);
  --shadow-soft: 0 1px 2px rgb(33 27 46 / .06), 0 12px 32px rgb(33 27 46 / .08);
  --shadow-glow: 0 1px 2px rgb(33 27 46 / .06), 0 14px 36px rgb(98 52 181 / .18);
  --font-heading: 'Gill Sans', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(115deg, #F6F4FA 0, #F6F4FA 90px, #EFECF6 90px, #EFECF6 180px);
  background-attachment: fixed;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 4vw + 0.8rem, 4.5rem); line-height: 1.08; margin: 0 0 20px; max-width: 11ch; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); margin: 0 0 16px; }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); margin: 0 0 10px; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-soft);
}
.skip:focus { left: 8px; }

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-shell);
  padding-right: var(--pad-shell);
}

.copy { max-width: 68ch; }
.copy h2, .copy h3 { margin-top: 28px; }
.copy ul, .copy ol { max-width: 68ch; padding-left: 24px; margin: 0 0 16px; }
.copy ul { list-style: disc; }
.copy ol { list-style: decimal; }
.copy li { margin-bottom: 8px; }
.copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 1rem;
}
.copy th, .copy td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  background: var(--surface);
}
.copy th { font-family: var(--font-heading); }

.mark {
  color: var(--accent);
  font-weight: 650;
}

/* Header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.topbar__row { border-bottom: 1px solid var(--line); }
.topbar__contact {
  margin: 0;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar__contact a { color: var(--muted); text-decoration: none; }
.topbar__contact a:hover { color: var(--accent); }
.topbar__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brandmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0;
}
.foot .brandmark { color: var(--plate-text); }

/* Nav */
.menu__list { display: flex; flex-wrap: wrap; gap: 8px; }
.menu__link {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  transition: border-color .25s, color .25s, background-color .25s;
}
.menu__link:hover { border-color: var(--accent); text-decoration-thickness: 3px; }
.menu__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.menu__link[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.menu__switch { display: none; }

/* Gallery rhythm */
#gallery.band { padding-bottom: 96px; }
#gallery .band__intro { margin-bottom: 32px; }

/* Mobile nav */
@media (max-width: 767px) {
  .topbar__base { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .menu__switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--surface);
    color: var(--text);
    font: 600 16px var(--font-body);
    cursor: pointer;
  }
  .menu__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--pad-shell);
    flex-direction: column;
    box-shadow: var(--shadow-soft);
  }
  .menu.is-open .menu__list { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font: 600 17px var(--font-body);
  text-decoration: none;
  color: var(--accent-text);
  background: var(--accent);
  background-image: linear-gradient(120deg, #6234B5 0%, #7A4BD1 100%);
  background-size: 200% 100%;
  background-position: 50% 50%;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-position .35s ease, box-shadow .25s, transform .15s;
}
.btn:hover { background-position: 0% 50%; box-shadow: var(--shadow-glow); }
.btn:focus-visible { outline: 3px solid var(--plate-bg); outline-offset: 3px; }
.btn:active { box-shadow: none; transform: translateY(1px); }

.btn--alt {
  color: var(--text);
  background: var(--surface);
  background-image: linear-gradient(120deg, #FFFFFF 0%, #EFECF6 100%);
  border-color: var(--line);
}
.btn--alt:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.topbar__call { display: none; position: fixed; right: 20px; bottom: 20px; z-index: 60; min-height: 48px; }
html.js body .topbar__call { display: inline-flex; }

/* Sections */
.band { padding: var(--space-band) 0; }
.band + .band { border-top: 0; }
.band__title { max-width: 30ch; }
.band__intro { color: var(--muted); max-width: 60ch; margin-bottom: 32px; }
.band__split { display: grid; gap: 32px; }

@media (min-width: 900px) {
  .band__split { grid-template-columns: minmax(240px, 1fr) 2fr; align-items: start; }
  .band__aside { position: sticky; top: 120px; }
}

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__lead { color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.hero__figure { align-self: center; }
.hero__figure img { aspect-ratio: 3 / 4; max-height: 520px; object-fit: cover; border-radius: calc(var(--radius-card) - 6px); }
.hero__figure {
  margin: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.hero__figure img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: calc(var(--radius-card) - 6px); }

@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 55fr 45fr; }
}

/* Entry animation */
html.is-ready .rise { animation: hero-rise .5s ease-out both; }
@keyframes hero-rise {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

/* Reveal */
html.is-ready .band .rise { opacity: 1; transform: none; }
html.is-ready .band__reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }

/* Tabs */
.tile__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tile__tab {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: 600 16px var(--font-body);
  cursor: pointer;
  transition: border-color .25s, color .25s, background-color .25s;
}
.tile__tab:hover { border-color: var(--accent); color: var(--text); }
.tile__tab:focus-visible { outline: 3px solid var(--plate-bg); outline-offset: 2px; }
.tile__tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* Services list */
.svc { border-top: 1px solid var(--line); }
.svc__row {
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color .3s;
}
.svc__row:hover { background: var(--surface); }
.svc__name { margin-bottom: 8px; }
.svc__desc { color: var(--muted); max-width: 60ch; margin-bottom: 24px; }
.svc__more { font-weight: 600; text-decoration-thickness: 2px; display: inline-block; margin-top: 16px; }
.svc__more:hover { text-decoration-thickness: 3px; }

/* Plate */
.plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  margin: 0 var(--pad-shell);
  box-shadow: var(--shadow-soft);
}
.plate .shell { max-width: 960px; }
.plate__title { color: var(--plate-text); }
.plate__intro { color: #C9C2D6; max-width: 62ch; margin-bottom: 32px; }
.plate a { color: #CFC5EB; }

/* Form */
.inquiry__wrap { max-width: 720px; }
.inquiry { display: grid; gap: 20px; }
.inquiry__field { display: grid; gap: 6px; }
.inquiry__label { font-size: 15px; font-weight: 600; color: var(--text); }
.inquiry__input, .inquiry__area {
  width: 100%;
  font: 400 17px var(--font-body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid #B9B2C9;
  border-radius: var(--radius-btn);
  padding: 12px 16px;
}
.inquiry__input::placeholder { color: #6B6380; }
.inquiry__input:focus, .inquiry__area:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.inquiry__area { resize: vertical; min-height: 120px; }
.inquiry__check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); margin: 20px 0; }
.inquiry__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.inquiry__check a { color: var(--accent); }
.inquiry__note { font-size: 14px; color: var(--muted); margin: 0; }
.inquiry__submit { justify-self: start; min-width: 200px; padding: 14px 32px; }
.inquiry__error {
  margin: 0;
  font-size: 14px;
  color: #9C2B12;
}
.inquiry.is-sending .inquiry__submit { opacity: .7; pointer-events: none; }
.inquiry__input.is-error, .inquiry__area.is-error { border-color: #9C2B12; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.steps__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s, transform .3s;
}
.steps__item:hover { box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.steps__desc { color: var(--muted); max-width: 60ch; }
.steps__item { padding: 24px; }

/* Announcement */
.announce {
  margin: 32px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.announce p { margin: 0; font-style: italic; }

/* Gallery */
.gallery__grid { display: grid; gap: 24px; margin-top: 32px; }
.gallery__frame {
  margin: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s, transform .3s;
}
.gallery__frame:hover { box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.gallery__frame img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius-card) - 6px); }

@media (min-width: 640px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.qa { display: grid; gap: 12px; max-width: 800px; }
.qa__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 8px 20px;
  box-shadow: var(--shadow-soft);
}
.qa__q {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: 1.1rem;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q::after { content: "+"; float: right; color: var(--accent); font-weight: 600; }
.qa__item[open] .qa__q::after { content: "−"; }
.qa__a, .qa .copy { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Tiles */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s, transform .3s;
}
.tile:hover { box-shadow: var(--shadow-glow); }

/* Inner page head */
.pagehead { padding: clamp(40px, 6vw, 72px) 0 0; }
.pagehead h1 { max-width: 22ch; }
.pagehead .copy { color: var(--muted); }

/* Contacts */
.contactblock { display: grid; gap: 12px; max-width: 640px; }
.contactblock p, .contactblock li { color: var(--muted); }

/* Footer */
.foot {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: clamp(48px, 6vw, 72px) 0 24px;
  margin-top: var(--space-band);
}
.foot__grid { display: grid; gap: 32px; }
.foot__col { min-width: 0; }
.foot__head {
  font-family: var(--font-heading);
  font-weight: 650;
  color: var(--plate-text);
  margin-bottom: 12px;
}
.foot address { font-style: normal; }
.foot address p, .foot ul li { color: #C9C2D6; font-size: 15px; margin-bottom: 6px; }
.foot ul li span { color: #A99FBE; }
.foot a { color: #CFC5EB; }
.foot__links li { margin-bottom: 8px; }
.foot__base { border-top: 1px solid #4A4260; margin-top: 32px; padding-top: 20px; }
.foot__copy { color: #A99FBE; font-size: 14px; margin: 0; }

@media (min-width: 640px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: repeat(4, 1fr); } }

.simple { text-align: left; max-width: 640px; }
.simple p { color: var(--muted); }
.linkrow { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.linkrow a { font-weight: 600; }

/* Breakpoints */
@media (max-width: 479px) {
  .btn { width: 100%; }
  .hero__figure { order: 2; }
  .hero__figure img { aspect-ratio: 4 / 3; max-height: 320px; }
}
@media (min-width: 480px) {
  .linkrow { gap: 24px; }
}
@media (min-width: 1280px) {
  .shell { padding-left: 40px; padding-right: 40px; }
  .plate { margin: 0 auto; max-width: 1200px; }
}

/* Reveal defaults without JS */
.rise { visibility: visible; }
html.is-ready .band:not(.hero) .rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
html.is-ready .band:not(.hero) .rise.is-risen {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.is-ready .rise,
  html.is-ready .band:not(.hero) .rise {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Menu switch icon */
@media (max-width: 767px) {
  .menu__switch::before {
    content: "";
    width: 20px;
    height: 14px;
    background-image: linear-gradient(#211B2E 0 0), linear-gradient(#211B2E 0 0), linear-gradient(#211B2E 0 0);
    background-repeat: no-repeat;
    background-size: 20px 2px;
    background-position: 0 0, 0 6px, 0 12px;
    flex: none;
  }
  .menu.is-open .menu__switch::before {
    background-position: 0 6px, 0 6px, 0 6px;
  }
  .steps__desc { font-size: 1rem; line-height: 1.6; }
  #gallery.band { padding-bottom: 64px; }
}

/* Form on dark plate */
.plate .inquiry__label { color: var(--plate-text); }
.plate .inquiry__input, .plate .inquiry__area {
  color: var(--plate-text);
  background: #2C2440;
  border-color: #3D3355;
}
.plate .inquiry__input::placeholder { color: #C9C2D6; }
.plate .inquiry__check { color: #C9C2D6; }
.plate .inquiry__check a { color: #CFC5EB; }
.plate .inquiry__note { color: #B5AEC2; }
.plate .inquiry__error { color: #FFD9C9; }
.plate .inquiry__input.is-error, .plate .inquiry__area.is-error { border-color: #F0A588; }
