:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #f8fafc;
  --btn: #0f172a;
  --btnfg: #ffffff;
  --focus: #2563eb;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a.u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 50px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo,
.heroLogo,
.modal-logo,
.brandLogo {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.logo img,
.heroLogo img,
.modal-logo img,
.brandLogo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.brandName {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.navlinks a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.navlinks a:hover {
  background: var(--card);
  color: var(--fg);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.heroInner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px;
  color: #fff;
  text-align: center;
}

.heroLogo {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.sub {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btnfg);
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--fg);
}

.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn:disabled,
button.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.svcGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.svc {
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.svc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.svcTitle {
  font-weight: 700;
}

.svcDesc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 12px;
  margin: 10px 0 0;
}

.kv div {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}

.kv div:nth-child(-n+2) {
  border-top: none;
}

.kv .k {
  color: var(--muted);
  font-size: 13px;
}

.kv .v {
  font-size: 14px;
}

form {
  margin-top: 10px;
}

label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
}

.check input {
  margin-top: 3px;
}

.check span {
  color: var(--muted);
  font-size: 13px;
}

.small {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.small.legal {
  margin-top: 10px;
  font-size: 12px;
}

.small.legal a {
  color: var(--accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.about-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-section:first-of-type {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}

.about-section h3 {
  margin: 0 0 10px;
  color: var(--fg);
  font-size: 18px;
}

.about-section p,
.why-list {
  color: var(--muted);
}

.why-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.why-list li {
  margin-bottom: 8px;
}

.foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footTitle {
  margin-bottom: 8px;
  color: var(--fg);
  font-weight: 800;
}

.footText {
  line-height: 1.5;
}

.footMeta {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.85;
}

.footList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footList li {
  margin: 6px 0;
  word-break: break-word;
}

.footList a {
  word-break: break-all;
}

.footBottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.platformNote {
  opacity: 0.75;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.modal-box h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 22px;
}

.modal-box p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
}

.modal-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-page body,
body.legal-page {
  background: #ffffff;
  color: #111827;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.brandHeader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.brandLogo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.brandInfo {
  min-width: 0;
}

.legal-wrap .brandName {
  color: #111827;
  font-size: 18px;
}

.legal-wrap h1 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: 0;
}

.legal-wrap .sub {
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 13px;
}

.legal-wrap h2 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.legal-wrap h3 {
  margin: 18px 0 8px;
  color: #374151;
  font-size: 15px;
}

.legal-wrap p {
  margin: 0 0 12px;
}

.legal-wrap ul {
  margin: 8px 0 16px 20px;
}

.legal-wrap li {
  margin: 6px 0;
}

.legal {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.legal p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.notice {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  background: #fef3c7;
}

.notice strong {
  color: #92400e;
}

.notice p {
  margin: 0;
  color: #78350f;
  font-size: 14px;
  line-height: 1.55;
}

.legal-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
}

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

  .footGrid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .navlinks {
    justify-content: flex-start;
  }

  .brandName {
    white-space: normal;
  }

  .kv,
  .footGrid {
    grid-template-columns: 1fr;
  }
}
