:root {
  color-scheme: dark;
  --bg: #070707;
  --surface: #111114;
  --surface-2: #19191e;
  --text: #f7f3ee;
  --muted: #b7b0aa;
  --line: rgba(247, 243, 238, 0.14);
  --accent: #d71920;
  --accent-2: #f0b35b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(16px, 5vw, 64px);
  background: rgba(7, 7, 7, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(215, 25, 32, 0.76);
  border-radius: 8px;
  color: #fff;
  font-weight: 950;
  overflow: hidden;
  background: #050505;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong { white-space: nowrap; }

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

nav a:hover { color: var(--text); }

.nav-course {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(215, 25, 32, 0.7);
  border-radius: 8px;
  color: var(--text);
  background: rgba(215, 25, 32, 0.18);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.94) 0%, rgba(7, 7, 7, 0.58) 46%, rgba(7, 7, 7, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 7, 0) 38%);
}

.hero-content {
  position: relative;
  width: min(820px, 100%);
  padding: 140px clamp(16px, 6vw, 74px) 120px;
}

.hero-content p,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, p { margin: 0; }
h1 {
  max-width: 760px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.9;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(32px, 5vw, 62px);
  line-height: 0.96;
  text-transform: uppercase;
}

.hero-content span,
.section p,
.training-list {
  display: block;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions,
.contact-actions,
.admin-actions,
.panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions { margin-top: 28px; }

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: -10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.intro,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: start;
}

.section-title { margin-bottom: 28px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.work-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover img { transform: scale(1.04); }
.work-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.work-card strong { display: block; font-size: 20px; }
.work-card span { color: var(--muted); }

.training-section {
  display: grid;
  gap: 34px;
}

.training-head {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.training-head .section-kicker,
.training-head p {
  margin-left: auto;
  margin-right: auto;
}

.training-note {
  display: block;
  max-width: 620px;
  margin: -2px auto 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.training-video {
  justify-self: center;
  width: min(920px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  box-shadow: var(--shadow);
}

.training-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.course-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 320px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.course-card-wide {
  grid-column: 1 / -1;
}

.course-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  text-transform: uppercase;
}

.course-card .course-meta {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(215, 25, 32, 0.48);
  border-radius: 999px;
  color: var(--text);
  background: rgba(215, 25, 32, 0.14);
  font-size: 13px;
  font-weight: 850;
}

.course-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.course-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--accent-2);
}

.training-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 900px;
  justify-self: center;
}

.training-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.seo-section {
  display: grid;
  gap: 28px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.faq-grid h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
}

.faq-grid p {
  color: var(--muted);
  line-height: 1.55;
}

#map-frame {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 120px;
}

.contact-actions { justify-content: end; }
.contact-card {
  display: grid;
  gap: 12px;
  place-items: center;
  width: min(180px, 31%);
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 26px;
}

.floating-book {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.admin-body { background: #0b0b0d; }
.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(14px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.admin-header h1 { font-size: clamp(34px, 5vw, 62px); }
.admin-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(1280px, calc(100% - 28px));
  margin: 18px auto 110px;
}

.login-panel {
  width: min(460px, calc(100% - 28px));
  margin: 28px auto 110px;
}

.admin-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-panel.wide { grid-column: 1 / -1; }
.admin-panel h2 { font-size: 24px; }
.panel-head {
  align-items: center;
  justify-content: space-between;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08080a;
  color: var(--text);
  padding: 10px;
}

textarea { resize: vertical; }
.portfolio-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b0d;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
}

.portfolio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.savebar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(14px, 4vw, 42px);
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(18px);
}

#admin-status { color: var(--muted); }

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-content { padding-top: 180px; }
  .intro,
  .split,
  .booking,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .portfolio-editor {
    grid-template-columns: 1fr;
  }

  .course-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-width: 0;
  }

  .course-card-wide {
    grid-column: auto;
  }

  .work-card { min-height: 360px; }
  .contact-actions { justify-content: stretch; }
  .contact-card {
    width: 100%;
    min-height: 110px;
  }

  .admin-header { align-items: start; flex-direction: column; }
}
