/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ===== Tokens ===== */
:root {
  --red: #E5292B;
  --red-dark: #C81F22;
  --ink: #0A0A0A;
  --ink-2: #2A2A2A;
  --muted: #6B7280;
  --line: #E7E7E7;
  --bg: #FFFFFF;
  --bg-soft: #FAF8F5;
  --bg-dark: #0A0A0A;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.10);
}

/* ===== Layout primitives ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}
.h1, h1 { font-size: clamp(40px, 6.5vw, 84px); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; margin: 0; }
.h2, h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.015em; font-weight: 800; margin: 0 0 16px; }
.h3, h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; margin: 0 0 12px; }
.h4, h4 { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
p { margin: 0 0 1em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(229,41,43,.28); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-arrow::after { content: "→"; font-weight: 400; transition: transform .15s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red); }
.nav-meta { display: flex; align-items: center; gap: 18px; }
.lang-switch { font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.lang-switch a { font-weight: 500; }
.lang-switch a[aria-current="true"] { color: var(--ink); }
.lang-switch span { color: var(--line); }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding-block: clamp(70px, 11vw, 140px);
  background: radial-gradient(1100px 600px at 110% -20%, rgba(229,41,43,.10), transparent 70%), var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 .accent { color: var(--red); }
.hero .lead { margin: 24px 0 36px; font-size: clamp(17px, 1.7vw, 22px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.hero-visual::before { content: ""; display: block; padding-bottom: 100%; }
.hero-visual .blob { position: absolute; inset: 0; background: var(--red); border-radius: 42% 58% 70% 30% / 50% 40% 60% 50%; opacity: .12; animation: blob 14s ease-in-out infinite; }
.hero-visual .photo { position: absolute; inset: 8%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); background: #f1f1f1; }
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block; }
.hero-visual .photo--phone { transform: rotate(3deg); }
.hero-visual .badge {
  position: absolute; bottom: -6%; left: -6%;
  background: var(--ink); color: #fff; padding: 16px 22px; border-radius: 16px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-hover);
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-visual .badge .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 4px rgba(229,41,43,.2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes blob { 0%,100% { border-radius: 42% 58% 70% 30% / 50% 40% 60% 50%; } 50% { border-radius: 60% 40% 30% 70% / 45% 55% 50% 50%; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(229,41,43,.5); } 50% { box-shadow: 0 0 0 10px rgba(229,41,43,0); } }

/* ===== Marquee logos ===== */
.logos { background: var(--bg-soft); padding-block: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 20px; }
.logos-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 28px; align-items: center; justify-items: center; }
.logos-list span { font-weight: 600; color: var(--ink-2); font-size: 16px; opacity: .7; transition: opacity .2s; }
.logos-list span:hover { opacity: 1; }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: var(--red); transition: width .25s ease;
}
.service:hover::before { width: 100%; }
.service .num { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .12em; margin-bottom: 12px; }
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--muted); margin: 0; font-size: 15px; }

/* ===== Section header ===== */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head .right { color: var(--muted); max-width: 40ch; }

/* ===== Portfolio ===== */
.portfolio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.work {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); display: block;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.04); }
.work .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
}
.work .meta strong { display: block; font-size: 20px; font-weight: 700; }
.work .meta span { font-size: 13px; opacity: .9; letter-spacing: .04em; }

/* ===== Testimonials ===== */
.tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.test {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.test .quote { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; }
.test .who { display: flex; align-items: center; gap: 14px; }
.test .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.test .who strong { display: block; font-size: 15px; }
.test .who span { font-size: 13px; color: var(--muted); }

/* ===== About / stats ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.stat strong { font-size: clamp(36px, 5vw, 56px); font-weight: 800; color: var(--ink); display: block; line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ===== Team ===== */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 48px; }
.member .photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--bg-soft); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.member:hover .photo img { transform: scale(1.04); }
.member strong { display: block; font-size: 18px; font-weight: 700; }
.member span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ===== CTA banner ===== */
.cta {
  background: var(--bg-dark); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px); text-align: center;
  background-image: radial-gradient(600px 300px at 80% 20%, rgba(229,41,43,.35), transparent 70%);
}
.cta h2 { color: #fff; margin-bottom: 20px; }
.cta p { color: rgba(255,255,255,.75); margin: 0 auto 32px; max-width: 56ch; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 64px); }
.contact-info { background: var(--bg-soft); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); }
.contact-info h3 { font-size: 22px; margin-bottom: 24px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; }
.contact-line strong { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.contact-line a, .contact-line span { font-size: 16px; color: var(--ink); font-weight: 500; }
.contact-line a:hover { color: var(--red); }

.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; }
.form label span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,41,43,.10);
}
.form .submit { display: flex; gap: 12px; align-items: center; }
.form .note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ===== FAQ ===== */
.faq { margin-top: 48px; max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line); padding-block: 20px;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 300; color: var(--red); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--muted); }

/* ===== Page header (inner pages) ===== */
.page-head { padding-block: clamp(60px, 9vw, 110px) 32px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,.78);
  padding-block: 64px 28px;
}
.site-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h5 { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 18px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-block img { height: 38px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.site-footer .brand-block p { font-size: 14px; color: rgba(255,255,255,.65); max-width: 36ch; }
.bottom-bar { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.55); }
.bottom-bar .socials { display: flex; gap: 14px; }
.bottom-bar .socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.bottom-bar .socials a:hover { background: var(--red); border-color: var(--red); }

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links, .nav-meta .lang-switch, .nav-meta > .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: 64px 0 0; background: #fff;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
    padding: 24px var(--pad); border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
  .mobile-menu a { display: block; padding: 14px 4px; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }
@media (max-width: 520px) {
  .site-footer .grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual .badge { left: 0; bottom: 0; }
}

/* ===== Utility ===== */
.center { text-align: center; }
.muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
