:root {
  --black: #050505;
  --white: #fff;
  --ink: #111;
  --muted: #5b5b5b;
  --line: #cfcfcf;
  --soft: #f6f6f6;
  --max: 1180px;
  --admin: #f2f2f2;
  --hero-rail: clamp(18px, 3vw, 44px);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
}
body > header,
body > main,
body > footer,
body > .install-note {
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.visually-hidden,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brand { display: inline-flex; align-items: center; }
.logo-box {
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
  border: 4px solid #000;
  outline: 2px solid #000;
  outline-offset: 4px;
  color: #000;
  font-size: 29px;
  line-height: .86;
  font-weight: 900;
  letter-spacing: 0;
}
.logo-box strong:last-child {
  color: #fff;
  background: #000;
  padding: 3px 4px 1px;
}
.logo-img { max-width: 170px; max-height: 86px; object-fit: contain; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.site-nav a { padding: 8px 0; }
.site-nav a:focus-visible,
.button:focus-visible,
.menu-toggle:focus-visible,
.lightbox-trigger:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
.language { display: inline-flex; gap: 8px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; }
.menu-toggle span:not(.visually-hidden) { display: block; height: 2px; background: #000; margin: 7px 0; }

.hero {
  min-height: 500px;
  background-size: cover;
  background-position: center right;
  color: #fff;
  display: flex;
  align-items: center;
  margin-left: var(--hero-rail);
  margin-right: var(--hero-rail);
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy {
  width: min(720px, 90vw);
  margin-left: clamp(24px, 4vw, 54px);
  position: relative;
  z-index: 1;
}
.hero h1,
.section-title,
.article h1,
.detail-copy h1,
.admin-main h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}
.hero p { margin: 0 0 42px; font-size: clamp(17px, 1.6vw, 22px); max-width: 620px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 36px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
  cursor: pointer;
  text-transform: uppercase;
}
.button.inverted { color: #fff; background: transparent; border-color: #fff; }
.button.small { min-height: 44px; padding: 0 24px; font-size: 13px; }
.button:hover { background: #000; color: #fff; }
.button.inverted:hover { background: #fff; color: #000; }

.section {
  width: min(var(--max), calc(100vw - 64px));
  margin: 0 auto;
  padding: 42px 0 50px;
}
.knives-page {
  padding-bottom: clamp(96px, 12vh, 180px);
}
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 36px;
  font-size: clamp(30px, 3vw, 42px);
}
.section-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 8px;
  background: currentColor;
}
.section-title.light { color: #fff; }

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .95fr);
  gap: clamp(34px, 5vw, 58px);
  align-items: start;
}
.news-card.text-only {
  grid-template-columns: minmax(0, 720px);
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.news-card.text-only p { max-width: 640px; }
.news-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
time {
  display: block;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
}
.news-card h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  font-weight: 900;
}
.news-card p { margin: 0 0 26px; max-width: 410px; }

.selected {
  background: #000;
  color: #fff;
}
.selected .section { padding-top: 34px; padding-bottom: 28px; }
.selected-grid,
.knife-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.knife-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.knife-tile {
  display: block;
  position: relative;
  overflow: hidden;
  background: #111;
}
.knife-grid .knife-tile {
  background: #fff;
}
.knife-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .25s ease;
}
.knife-tile:hover .knife-img { transform: scale(1.025); }
.knife-meta {
  display: block;
  padding: 14px 0 0;
  color: inherit;
  background: transparent;
  min-height: 0;
}
.knife-meta strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}
.knife-meta small {
  display: block;
  margin-top: 4px;
  color: #cfcfcf;
  font-size: 14px;
}
.knife-grid .knife-meta { color: #111; background: #fff; }
.knife-grid .knife-meta small { color: #555; }

.prose { max-width: 760px; }
.prose p { margin: 0 0 20px; }
.prose h2, .prose h3 { margin: 32px 0 12px; line-height: 1.15; font-weight: 900; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 22px; }

.site-footer {
  border-top: 1px solid var(--line);
  min-height: 96px;
  padding: 18px 48px;
  display: grid;
  grid-template-columns: 1fr 1px 260px;
  gap: 38px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0;
}
.footer-line { height: 42px; background: var(--line); }
.socials { display: flex; gap: 24px; justify-content: flex-end; font-weight: 700; }

.stack { display: grid; gap: 52px; }
.article,
.knife-detail {
  width: min(980px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 48px 0 72px;
}
.article header { max-width: 780px; margin-bottom: 34px; }
.article header p { font-size: 20px; max-width: 700px; }
.article-hero,
.detail-main {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  margin-bottom: 42px;
  background: #000;
}
.detail-main-trigger {
  display: block;
  width: 100%;
  margin: 0;
}
.detail-main-trigger .detail-main {
  aspect-ratio: auto;
}
.detail-copy {
  width: min(760px, 100%);
  margin: 0 0 42px;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.lightbox-trigger {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.lightbox-trigger img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.92);
}
.lightbox img { max-height: 88vh; max-width: 92vw; object-fit: contain; }
.lightbox-close,
.lightbox-nav {
  position: fixed;
  width: 44px;
  height: 44px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.lightbox-close {
  top: 20px;
  right: 20px;
}
.lightbox-nav {
  top: 50%;
  width: 56px;
  height: 72px;
  transform: translateY(-50%);
  font-size: 48px;
  line-height: 1;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.about-page { max-width: 980px; }
.about-block {
  display: grid;
  gap: 34px;
  margin-bottom: 48px;
}
.about-block.text_image {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about-img { width: 100%; object-fit: cover; }

.contact-page { max-width: 780px; }
.contact-form,
.admin-form {
  display: grid;
  gap: 18px;
}
label { display: grid; gap: 7px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid #9b9b9b;
  border-radius: 0;
  padding: 12px 14px;
  background: #fff;
}
textarea { min-height: 150px; resize: vertical; }
.notice {
  padding: 14px 16px;
  border-left: 4px solid #000;
  background: #eee;
}
.notice.error { border-color: #9b0000; }
.notice.success { border-color: #157a22; }

.install-note {
  width: min(720px, calc(100vw - 40px));
  margin: 54px auto;
}
.check-list {
  border: 1px solid #ddd;
  padding: 14px 18px;
  margin: 24px 0;
}
.check-list p { margin: 8px 0; }

.admin-body { background: var(--admin); }
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #050505;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
}
.admin-nav a.active,
.admin-nav a:hover {
  border-color: #fff;
}
.admin-logout { margin-top: auto; }
.admin-logout button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.admin-logout button:hover,
.admin-logout button:focus-visible { border-color: #fff; }
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-label input { width: auto; }
.admin-main {
  padding: 36px;
  max-width: 1180px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.admin-grid section,
fieldset {
  border: 1px solid #d0d0d0;
  padding: 18px;
  background: #fff;
}
legend { font-weight: 900; }
.lang-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.delete-form { margin-top: 18px; }
.delete-form button,
.media-item button {
  border: 1px solid #000;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
}
.media-delete button {
  border-color: #8a0000;
  color: #8a0000;
}
.media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.media-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
}
.media-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}
.hint { color: var(--muted); }
.admin-login {
  width: min(420px, calc(100vw - 40px));
  margin: 70px auto;
}

@media (max-width: 800px) {
  .site-header { min-height: 96px; padding: 18px 22px; }
  .logo-box { font-size: 22px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    z-index: 20;
    top: 96px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
  }
  .site-nav.open { display: flex; }
  .hero {
    min-height: 430px;
    background-position: center;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 96px 0 auto 0;
  }
  .section,
  .article,
  .knife-detail {
    width: min(100vw - 32px, var(--max));
  }
  .news-card,
  .about-block.text_image,
  .lang-pair,
  .site-footer,
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .selected-grid,
  .knife-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    margin-left: 0;
    margin-right: 0;
  }
  .site-footer {
    padding: 24px;
    gap: 18px;
    text-align: left;
  }
  .footer-line { display: none; }
  .socials { justify-content: flex-start; }
  .admin-nav {
    position: static;
    height: auto;
  }
  .admin-main { padding: 24px 18px; }
}
