:root {
  --teal: #168e86;
  --teal-strong: #0f6f69;
  --teal-soft: #e7f6f4;
  --ink: #071426;
  --text: #2b3645;
  --muted: #5f6b7a;
  --bg: #fbf8f2;
  --surface: #ffffff;
  --line: #e3e8ee;
  --shadow: 0 18px 50px rgba(7, 20, 38, 0.10);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #3fb5ac;
    --teal-strong: #6fd0c7;
    --teal-soft: #12302e;
    --ink: #f2f5f7;
    --text: #d5dbe2;
    --muted: #9aa5b2;
    --bg: #0e1418;
    --surface: #161e24;
    --line: #26313a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 13px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { color: var(--text); white-space: nowrap; }
.lang .short { display: none; }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 14px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 34px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 120px; }
.lang li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); }
.lang li a:hover { background: var(--teal-soft); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/img/hero.jpg") center/cover no-repeat;
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 25%, color-mix(in srgb, var(--bg) 40%, transparent) 70%, transparent);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { color: var(--teal); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 0 0 12px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
.hero h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); margin: 0 0 18px; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 19px; color: var(--text); max-width: 32em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 16px;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn.secondary { background: transparent; color: var(--teal); padding-left: 4px; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.phones img { width: auto; height: min(520px, 64vh); border-radius: 24px; box-shadow: var(--shadow); }
.phones img:nth-child(2) { margin-top: 44px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 40px); margin: 0 0 10px; }
.section-head p { margin: 0; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery img { border-radius: 20px; box-shadow: var(--shadow); }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split h3 { font-size: 22px; margin: 0 0 8px; }
.split p { margin: 0 0 10px; color: var(--muted); }
.checks { margin: 12px 0 0; padding: 0; list-style: none; }
.checks li { padding-left: 26px; position: relative; margin: 6px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

.closing { text-align: center; }
.closing h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; }
.closing p { color: var(--muted); margin: 0 0 24px; }
.closing .cta { justify-content: center; }

/* Document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 46px); margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--teal-soft); border-radius: 16px; padding: 20px 24px; }
.summary h2 { margin-top: 0; font-size: 18px; }
.summary ul { margin: 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 24px 0; }
.contact-card .mail { font-size: 22px; font-weight: 600; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .phones img { height: auto; width: 46%; max-width: 240px; }
  .hero::after { background: linear-gradient(180deg, var(--bg) 35%, color-mix(in srgb, var(--bg) 70%, transparent)); }
  .features, .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .nav a.hide-sm { display: none; }
  .brand small { display: none; }
  .nav { gap: 12px; font-size: 14px; }
  .lang .full { display: none; }
  .lang .short { display: inline; }
  .wrap { padding: 0 16px; }
}
