* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #0f172a; background: #fff; }
a { color: inherit; }
img, svg, video { max-width: 100%; height: auto; }
.topbar { background: #061536; color: #dbeafe; font-size: 12px; padding: 8px 16px; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid #e2e8f0; }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { min-width: 0; }
.brand strong { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { display: block; margin-top: 2px; color: #64748b; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 16px; padding: 12px 16px; font-weight: 900; text-decoration: none; text-align: center; cursor: pointer; touch-action: manipulation; }
.btn-primary { color: #fff; box-shadow: 0 16px 35px rgba(37,99,235,.22); }
.btn-ghost { border: 1px solid #e2e8f0; background: #fff; color: #0f172a; }
.hero { overflow: clip; border-bottom: 1px solid #e2e8f0; }
.hero-inner { padding: 62px 0 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero-inner > * { min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 1000; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
h1 { margin: 0; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(34px, 6vw, 64px); line-height: .98; letter-spacing: -.055em; }
.lead { margin: 18px 0 0; color: #475569; font-size: 18px; line-height: 1.7; max-width: 660px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nav .actions { margin-top: 0; flex: 0 0 auto; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; color: #475569; font-size: 14px; }
.meta span { overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.stat, .hero-card, .card { min-width: 0; border: 1px solid #e2e8f0; background: #fff; border-radius: 26px; box-shadow: 0 12px 34px rgba(15,23,42,.05); }
.stat { padding: 16px; }
.stat strong { display: block; font-size: 28px; line-height: 1; }
.stat span { display: block; margin-top: 7px; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.hero-card { min-height: 330px; border-radius: 34px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card h2 { margin-top: 1rem; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-self: flex-start; border-radius: 999px; background: #f1f5f9; padding: 8px 12px; font-size: 12px; font-weight: 900; color: #475569; }
section { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-head > * { min-width: 0; }
.section-head h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.section-head p, .muted { color: #64748b; line-height: 1.6; overflow-wrap: anywhere; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { overflow: hidden; }
.card-pad { padding: 22px; }
.service-title { font-weight: 1000; font-size: 18px; overflow-wrap: anywhere; }
.price { margin-top: 18px; font-size: 18px; font-weight: 1000; overflow-wrap: anywhere; }
.pill { max-width: 100%; display: inline-flex; border-radius: 999px; background: #f1f5f9; color: #475569; padding: 7px 10px; font-size: 11px; font-weight: 900; overflow-wrap: anywhere; }
.portfolio-img, .portfolio-placeholder { width: 100%; height: 230px; display: block; background: #e2e8f0; }
.portfolio-img { object-fit: cover; }
.portfolio-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#e2e8f0,#f8fafc); color: #94a3b8; font-size: 12px; font-weight: 1000; text-transform: uppercase; letter-spacing: .12em; }
.stars { color: #f59e0b; font-weight: 1000; letter-spacing: .08em; }
.contact { background: #061536; color: #fff; }
.contact .muted { color: #cbd5e1; }
form { min-width: 0; background: #fff; color: #0f172a; border-radius: 30px; padding: 24px; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #cbd5e1; border-radius: 16px; padding: 13px 14px; font: inherit; outline: none; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
label { display: block; margin: 0 0 10px; font-size: 12px; color: #475569; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid > * { min-width: 0; }
.form-row { margin-top: 12px; }
.privacy-note { margin: 14px 0; border: 1px solid #dbeafe; background: #eff6ff; border-radius: 16px; padding: 12px 14px; font-size: 12px; color: #475569; line-height: 1.6; overflow-wrap: anywhere; }
.privacy-note strong { color: #0f172a; }
.notice { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 16px; font-size: 13px; font-weight: 800; }
.notice.ok { display: block; background: #dcfce7; color: #166534; }
.notice.err { display: block; background: #fee2e2; color: #991b1b; }
footer { border-top: 1px solid #e2e8f0; padding: 28px 0; color: #64748b; font-size: 13px; overflow-wrap: anywhere; }
.loading, .notfound { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.box { width: min(100%, 560px); border: 1px solid #e2e8f0; border-radius: 28px; padding: 28px; box-shadow: 0 20px 60px rgba(15,23,42,.08); }

@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-card { min-height: 0; }
}

@media (max-width: 767px) {
  .topbar { padding: 7px 0; font-size: 10px; line-height: 1.4; }
  .wrap { width: min(calc(100% - 32px), 680px); }
  .nav { min-height: 62px; gap: 10px; }
  .brand { flex: 1 1 auto; }
  .brand strong { font-size: 15px; }
  .brand span { font-size: 11px; }
  .nav .actions { gap: 6px; }
  .nav .actions .btn { min-width: 44px; padding: 10px 12px; border-radius: 13px; font-size: 12px; }
  .nav .actions .btn-ghost { display: none; }

  section { padding: 44px 0; }
  .hero-inner { padding: 38px 0 42px; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.25rem); line-height: 1.02; letter-spacing: -.05em; }
  .lead { margin-top: 14px; font-size: 16px; line-height: 1.6; }
  .hero-inner > div > .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 20px; }
  .hero-inner > div > .actions .btn { width: 100%; }
  .meta { display: grid; gap: 7px; margin-top: 18px; font-size: 13px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 20px; }
  .stat { padding: 12px 8px; text-align: center; border-radius: 18px; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 9px; letter-spacing: .04em; }
  .hero-card { border-radius: 24px; padding: 19px; }
  .hero-card .btn { width: 100%; margin-top: 14px; }

  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .section-head h2 { font-size: 26px; }
  .section-head > a { min-height: 44px; display: inline-flex; align-items: center; }
  .grid-2, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card { border-radius: 22px; }
  .card-pad { padding: 18px; }
  .portfolio-img, .portfolio-placeholder { height: min(64vw, 260px); }

  .contact > .wrap { gap: 22px; }
  form { border-radius: 24px; padding: 18px; }
  input, select, textarea { min-height: 48px; font-size: 16px; }
  textarea { min-height: 120px; }
  .privacy-note { font-size: 11px; }

  .box { border-radius: 22px; padding: 22px; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 24px); }
  .nav .actions .btn { padding-inline: 10px; }
  .stats { gap: 5px; }
  .stat { padding-inline: 5px; }
  .stat span { font-size: 8px; }
}
