:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-2: #f1f1f1;
  --text: #171717;
  --muted: #666666;
  --border: #dedede;
  --strong: #000000;
  --strong-text: #ffffff;
  --header: rgba(255,255,255,.94);
  --shadow: 0 14px 40px rgba(0,0,0,.07);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
}

html[data-theme="dark"] {
  --bg: #111111;
  --surface: #181818;
  --surface-2: #222222;
  --text: #f4f4f4;
  --muted: #b1b1b1;
  --border: #303030;
  --strong: #ffffff;
  --strong-text: #111111;
  --header: rgba(17,17,17,.94);
  --shadow: 0 14px 40px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { min-height: 66px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; }
.brand-logo { width: 30px; height: 30px; object-fit: cover; border: 1px solid var(--border); border-radius: 7px; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: 16px; }
.main-nav a, .footer-columns a { color: var(--muted); text-decoration: none; font-size: 14px; }
.main-nav a:hover, .footer-columns a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-button, .menu-button {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.icon-button { width: 40px; }
.menu-button { display: none; padding: 0 13px; }

.hero { padding: 94px 0 82px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
h1,h2,h3,p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(46px, 6vw, 78px); line-height: 1.02; letter-spacing: -.045em; font-weight: 640; }
.hero-text { max-width: 700px; margin-bottom: 34px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: 14px; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--strong); color: var(--strong-text); border-color: var(--strong); }
.button-secondary { background: var(--bg); color: var(--text); }

.hero-visual { min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.visual-logo-wrap { display: flex; justify-content: flex-end; }
.visual-logo { width: 78px; height: 78px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.visual-copy span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.visual-copy strong { display: block; font-size: 28px; letter-spacing: -.02em; margin-bottom: 10px; }
.visual-copy p { color: var(--muted); margin-bottom: 0; }

.brand-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brand-strip-inner { min-height: 88px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; gap: 20px; }
.brand-strip span { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }

.section { padding: 104px 0; }
.section-header { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; margin-bottom: 44px; }
.section-header h2, .about-grid h2, .contact-card h2 { margin-bottom: 0; font-size: clamp(34px,4vw,54px); line-height: 1.08; letter-spacing: -.035em; font-weight: 620; }
.section-header > p { max-width: 480px; margin: 0 0 5px; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.product-card { min-height: 310px; display: flex; flex-direction: column; gap: 36px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-2); border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
.product-card h3 { margin-bottom: 8px; font-size: 24px; }
.product-card p { color: var(--muted); margin-bottom: 0; }
.product-card a { margin-top: auto; text-decoration: none; font-size: 14px; font-weight: 600; }
.product-card a span { margin-left: 4px; }

.projects-section { background: var(--surface); }
.projects-list { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.project-item { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.project-item:last-child { border-bottom: 0; }
.project-dummy { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; }
.project-main h3 { margin: 0 0 3px; font-size: 18px; }
.project-main p { margin: 0; color: var(--muted); font-size: 14px; }
.project-type { color: var(--muted); font-size: 13px; }
.project-item > a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 7px; }
.project-item > a:hover { background: var(--surface); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 82px; }
.about-text { max-width: 570px; }
.about-text p { color: var(--muted); font-size: 18px; line-height: 1.72; }

.contact-section { padding: 0 0 104px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 42px 46px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.contact-card p:last-child { margin: 10px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 26px; }
.footer-top { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; padding-bottom: 46px; }
.footer-columns { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.footer-columns div { display: flex; flex-direction: column; gap: 9px; }
.footer-columns strong { font-size: 13px; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.legal-page { padding: 84px 0 110px; }
.legal-shell { max-width: 820px; }
.legal-shell h1 { margin-bottom: 16px; font-size: clamp(42px,5vw,66px); line-height: 1.04; letter-spacing: -.04em; font-weight: 630; }
.legal-meta { color: var(--muted); font-size: 13px; margin-bottom: 44px; }
.legal-shell h2 { margin: 40px 0 10px; font-size: 24px; letter-spacing: -.02em; }
.legal-shell p, .legal-shell li { color: var(--muted); line-height: 1.75; }
.legal-shell a { color: var(--text); }
.legal-note { margin-top: 38px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--muted); }

@media (max-width: 840px) {
  .container { width: min(100% - 30px,1180px); }
  .main-nav { position: absolute; top: 66px; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 15px 26px; margin: 0; background: var(--bg); border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .menu-button { display: block; }
  .hero { padding: 70px 0 62px; }
  .hero-grid, .section-header, .about-grid, .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .brand-strip-inner { grid-template-columns: repeat(2,1fr); padding: 18px 0; }
  .project-item { grid-template-columns: 48px 1fr auto; }
  .project-type { display: none; }
  .contact-card { align-items: flex-start; flex-direction: column; padding: 32px; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  h1 { font-size: 48px; }
  .section { padding: 78px 0; }
  .hero-visual { min-height: 290px; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .contact-card .button { width: 100%; }
}