*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.18rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(0,0,0,0.65); max-width: 560px; }

.btn {
  display: inline-block; padding: 12px 28px;
  background: var(--primary); color: #fff;
  border: 0; border-radius: 0; font-family: inherit; font-weight: 500;
  cursor: pointer; transition: opacity .25s, transform .25s;
  letter-spacing: 0.02em;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); color: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid #f0f0f0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--text); letter-spacing: -0.02em; }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--text); font-size: 0.92rem; opacity: 0.7; transition: opacity .2s; }
.nav a:hover { opacity: 1; color: var(--primary); }

.section { padding: 96px 0; }
.section-alt { background: #fafafa; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.hero { padding: 80px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: center; }
.hero-image img { aspect-ratio: 4/5; object-fit: cover; }

.grid { display: grid; gap: 36px; }
.grid-2 { grid-template-columns: 1fr 1fr; }

.service-row { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.service-row:last-child { border-bottom: 0; }
.service-icon { flex-shrink: 0; width: 40px; height: 40px; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.service-icon svg { width: 24px; height: 24px; }
.service-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.service-row p { color: rgba(0,0,0,0.65); margin: 0; font-size: 0.92rem; }

.about-block { text-align: center; }
.about-block p { color: rgba(0,0,0,0.7); font-size: 1.06rem; margin-bottom: 18px; }

.product-card { padding: 28px 0; border-top: 1px solid #e5e7eb; }
.product-card h3 { margin-bottom: 8px; }
.product-card p { color: rgba(0,0,0,0.65); margin: 0 0 8px; }
.product-price { color: var(--primary); font-weight: 600; }

.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 480px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 0.85rem; color: rgba(0,0,0,0.7); }
.field input, .field textarea {
  padding: 12px 0; border: 0; border-bottom: 1px solid #d1d5db;
  font-family: inherit; font-size: 1rem; background: transparent;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--primary); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 0.92rem; min-height: 1.2em; text-align: center; }
.form-status.success { color: #059669; }
.form-status.error { color: #dc2626; }
.contact-info { text-align: center; margin-top: 32px; color: rgba(0,0,0,0.7); font-size: 0.92rem; }
.contact-info a { color: var(--text); }

.site-footer { padding: 32px 0; border-top: 1px solid #f0f0f0; }
.footer-line { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: rgba(0,0,0,0.55); }

.reveal { transform: translateY(20px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.active { transform: translateY(0); }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-line { flex-direction: column; gap: 8px; }
  .nav { gap: 18px; }
  .section { padding: 64px 0; }
}

/* Footer brand color fix — use CSS var instead of hardcoded color */
.site-footer .logo,
.footer-logo,
.footer-brand,
.site-footer .brand-name,
.site-footer h3.logo {
  color: var(--color-primary) !important;
}
