/* Autonomous stylesheet for Novakine (novakine.shop) */
:root {
  --nk-bg: #ffffff;
  --nk-surface: #f1f5f9;
  --nk-card: #ffffff;
  --nk-alt: #f1f5f9;
  --nk-primary: #1d4ed8;
  --nk-primary-hover: #1e40af;
  --nk-accent: #2563eb;
  --nk-text: #0f172a;
  --nk-muted: #475569;
  --nk-border: #cbd5e1;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.nk-body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--nk-bg);
  color: var(--nk-text);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, .nk-logo {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.25;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.nk-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.nk-hidden { display: none !important; }

/* Header */
.nk-header {
  background: #f1f5f9;
  border-bottom: 1px solid var(--nk-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.nk-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.nk-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.nk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.nk-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--nk-text);
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s;
}
.nk-nav-link:hover { color: var(--nk-primary); opacity: 1; }

/* Buttons */
.nk-btn-primary {
  display: inline-block;
  background: var(--nk-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.nk-btn-primary:hover { background: var(--nk-primary-hover); }
.nk-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--nk-primary);
  border: 1.5px solid var(--nk-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}
.nk-btn-outline:hover { background: var(--nk-primary); color: #ffffff; }

/* Subpages & Forms */
.nk-subpage-section { padding: 48px 0 64px; }
.nk-subpage-box {
  background: var(--nk-card);
  border: 1px solid var(--nk-border);
  border-radius: 4px;
  padding: 36px;
  max-width: 920px;
}
.nk-subpage-h1 { font-size: 30px; margin-bottom: 12px; color: var(--nk-text); }
.nk-subpage-lead { font-size: 17px; color: var(--nk-muted); margin-bottom: 24px; }
.nk-subpage-h2 { font-size: 20px; margin: 24px 0 10px; color: var(--nk-primary); }
.nk-subpage-p { margin-bottom: 12px; color: var(--nk-text); }
.nk-subpage-list { margin: 10px 0 16px 20px; }
.nk-subpage-list li { margin-bottom: 8px; }
.nk-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.nk-contact-card {
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: 4px;
  padding: 24px;
}
.nk-form { display: flex; flex-direction: column; gap: 10px; }
.nk-label { font-size: 14px; font-weight: 600; color: var(--nk-text); }
.nk-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--nk-border);
  border-radius: 4px;
  background: var(--nk-bg);
  color: var(--nk-text);
  font-size: 15px;
}

/* Modal */
.nk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.nk-modal-box {
  background: var(--nk-card);
  color: var(--nk-text);
  border: 1px solid var(--nk-border);
  border-radius: 4px;
  padding: 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
}
.nk-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--nk-muted);
}
.nk-modal-title { font-size: 22px; margin-bottom: 6px; }
.nk-modal-selected { font-size: 14px; color: var(--nk-primary); font-weight: 600; margin-bottom: 16px; }
.nk-success-box {
  padding: 16px;
  border-radius: 4px;
  background: var(--nk-alt);
  color: var(--nk-text);
  border: 1px solid var(--nk-primary);
  font-weight: 600;
  margin-top: 10px;
}
.nk-error-box {
  border-color: #dc2626 !important;
  color: #b91c1c !important;
  background: #fef2f2 !important;
}
.nk-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nk-btn-full { width: 100%; margin-top: 8px; }
.nk-center-box { text-align: center; padding: 32px 12px; }
.nk-err-code { font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 14px; color: var(--nk-primary); }

/* Footer */
.nk-footer {
  background: #171717;
  color: #e5e5e5;
  padding: 44px 0 28px;
  margin-top: 40px;
}
.nk-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nk-footer-logo-link { display: inline-block; margin-bottom: 12px; line-height: 0; }
.nk-footer-logo-img { height: 36px; width: auto; display: block; }
.nk-footer-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #a3a3a3; margin-bottom: 10px; }
.nk-footer-text { font-size: 14px; color: #d4d4d4; margin-bottom: 6px; }
.nk-footer-links { display: flex; flex-direction: column; gap: 6px; }
.nk-footer-link { font-size: 14px; color: #e5e5e5; }
.nk-footer-link:hover { text-decoration: underline; }
.nk-disclaimer { font-size: 12.5px; color: #a3a3a3; margin-top: 20px; line-height: 1.55; }
.nk-copyright { font-size: 13px; color: #8c8c8c; margin-top: 12px; }

@media (max-width: 820px) {
  .nk-footer-grid, .nk-contact-grid { grid-template-columns: 1fr; }
  .nk-subpage-box { padding: 22px; }
  .nk-subpage-h1 { font-size: 24px; }
}

.nk-hero { padding: 48px 0; border-bottom: 1px solid var(--nk-border); }
.nk-hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.nk-tag { font-family: monospace; font-size: 13px; color: var(--nk-primary); font-weight: 700; margin-bottom: 10px; }
.nk-h1 { font-size: 34px; margin-bottom: 14px; }
.nk-lead { color: var(--nk-muted); margin-bottom: 22px; }
.nk-sec { padding: 48px 0; }
.nk-sec-gray { padding: 48px 0; background: var(--nk-surface); border-top: 1px solid var(--nk-border); border-bottom: 1px solid var(--nk-border); }
.nk-h2 { font-size: 26px; margin-bottom: 12px; }
.nk-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nk-box { background: var(--nk-card); border: 1px solid var(--nk-border); border-radius: 4px; padding: 22px; }
.nk-metric-val { font-size: 28px; font-weight: 800; color: var(--nk-primary); }
.nk-box img { border: 1px solid var(--nk-border); margin-bottom: 14px; aspect-ratio: 1/1; object-fit: cover; }
.nk-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid var(--nk-border); margin-top: 16px; }
.nk-table th, .nk-table td { padding: 14px 16px; border: 1px solid var(--nk-border); text-align: left; font-size: 15px; }
.nk-table th { background: var(--nk-surface); font-weight: 700; }
.nk-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 820px) {
  .nk-hero-split, .nk-grid-3, .nk-faq-grid { grid-template-columns: 1fr; }
  .nk-table { display: block; overflow-x: auto; }
}

