:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #646464;
  --line: #dde3df;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --accent: #d71920;
  --accent-dark: #aa1117;
  --green: #1f7a5a;
  --gold: #d89a22;
  --shadow: 0 18px 50px rgba(23, 23, 23, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.landing-page {
  padding-bottom: 96px;
}

.landing-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 18px 0;
}

.hero-section {
  display: grid;
  gap: 26px;
  min-height: min(780px, 88vh);
  align-items: center;
  padding: 28px 0 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 2.55rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.media-stage {
  min-height: 280px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 620px;
  object-fit: cover;
}

.motion-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(216, 154, 34, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(31, 122, 90, 0.18), transparent 44%),
    #fff;
}

.motion-card::before {
  content: "";
  position: absolute;
  inset: 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.motion-bar {
  position: absolute;
  left: 12%;
  height: 18px;
  border-radius: 999px;
  background: var(--ink);
  animation: slidebar 2.8s ease-in-out infinite;
}

.motion-bar-a {
  top: 34%;
  width: 64%;
}

.motion-bar-b {
  top: 48%;
  width: 44%;
  background: var(--accent);
  animation-delay: 0.25s;
}

.motion-bar-c {
  top: 62%;
  width: 56%;
  background: var(--green);
  animation-delay: 0.5s;
}

.motion-pulse {
  position: absolute;
  right: 14%;
  bottom: 20%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 14px solid var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

.proof-section {
  display: grid;
  gap: 14px;
  padding: 10px 0 42px;
}

.proof-item {
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

.proof-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 900;
}

.proof-item strong {
  display: block;
  font-size: 1.05rem;
}

.proof-item p,
.contact-section p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  padding: 34px 0 36px;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.05;
}

.fixed-contact {
  position: fixed;
  z-index: 50;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(215, 25, 32, 0.34);
  font-size: 1.04rem;
  font-weight: 850;
  text-decoration: none;
}

.fixed-contact:hover,
.fixed-contact:focus-visible {
  background: var(--accent-dark);
}

.admin-page {
  min-height: 100vh;
  padding: 24px 16px;
}

.admin-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  font-size: 1.65rem;
  line-height: 1.1;
}

.admin-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-body {
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 800;
}

.field small {
  color: var(--muted);
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8d0c8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
}

.field textarea {
  min-height: 154px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-section {
  display: grid;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.admin-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.admin-section h2 {
  margin: 0;
  font-size: 1.18rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.notice {
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 13px 14px;
  font-weight: 750;
}

.notice-success {
  background: #eaf7f0;
  color: #12553d;
}

.notice-error {
  background: #ffe9ea;
  color: #8b0d12;
}

@keyframes slidebar {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(28px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (min-width: 760px) {
  .landing-shell {
    padding: 28px 30px 0;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    min-height: min(780px, 84vh);
    padding-top: 48px;
  }

  h1 {
    font-size: 4.8rem;
  }

  .hero-text {
    font-size: 1.22rem;
  }

  .contact-section h2 {
    font-size: 2.8rem;
  }

  .admin-header h1 {
    font-size: 2.2rem;
  }

  .proof-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .fixed-contact {
    left: auto;
    width: 240px;
  }

  .form-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
