:root {
  --red: #c20b14;
  --red-dark: #8e0710;
  --red-soft: #fff1f2;
  --black: #121419;
  --charcoal: #252932;
  --white: #ffffff;
  --surface: #ffffff;
  --background: #f4f5f7;
  --line: #d9dde4;
  --muted: #6d7480;
  --navy: #111c31;
  --shadow: 0 18px 42px rgba(18, 20, 25, 0.13);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 5% 3%, rgba(194, 11, 20, 0.07), transparent 24rem),
    linear-gradient(180deg, #fff 0, var(--background) 25rem, #f7f7f8 100%);
  color: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: var(--red-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(18, 20, 25, 0.08);
  backdrop-filter: blur(14px);
}
.header-inner {
  position: relative;
  width: min(100% - 32px, 960px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(145deg, var(--red), #f12d36);
  box-shadow: 0 9px 20px rgba(194, 11, 20, 0.22);
}
.brand-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.25rem; font-weight: 900; letter-spacing: 0.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; }
.menu-button {
  width: 46px; height: 46px; display: grid; align-content: center; gap: 5px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
}
.menu-button span { height: 3px; border-radius: 99px; background: var(--black); }
.site-menu {
  position: absolute; top: calc(100% - 4px); right: 0; min-width: 210px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow);
}
.site-menu a { display: block; padding: 12px 13px; border-radius: 10px; color: var(--black); text-decoration: none; font-weight: 700; }
.site-menu a:hover { background: #f4f5f7; }

.page-shell { width: min(100% - 28px, 920px); margin: 28px auto 0; }
.hero-card { overflow: hidden; border: 1px solid rgba(18,20,25,.09); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); }
.hero-card img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.notice-card, .info-card { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-lg); }
.notice-card { color: #5b1b20; border: 1px solid rgba(194,11,20,.24); background: var(--red-soft); }
.info-card { align-items: center; color: #192b4c; border: 1px solid rgba(38,97,173,.24); background: #f2f7ff; box-shadow: 0 12px 28px rgba(34,78,138,.08); }
.notice-icon, .info-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; }
.notice-icon { background: var(--red); }
.info-icon { background: #2462b4; }
.notice-card strong, .info-card strong { display: block; font-size: .98rem; }
.notice-card p, .info-card small { display: block; margin: 5px 0 0; line-height: 1.55; }
.notice-card p { font-size: .84rem; }
.info-card small { color: #5b6980; font-size: .8rem; }

.form-card { margin-top: 22px; padding: clamp(22px,4vw,38px); border: 1px solid rgba(18,20,25,.09); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.form-heading { padding-bottom: 24px; border-bottom: 1px solid #eceef2; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.form-heading h1, .admin-header h1, .legal-card h1 { margin: 0; font-size: clamp(1.4rem,4vw,2rem); }
.form-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
form { padding-top: 24px; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field-group + .field-group { margin-top: 22px; }
.field-group label { display: block; margin-bottom: 9px; font-size: .95rem; font-weight: 700; }
.field-group label span { color: #555c67; font-weight: 500; }
.input-shell, .phone-shell { min-height: 58px; display: flex; align-items: stretch; overflow: hidden; border: 1px solid #cdd2da; border-radius: var(--radius-md); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.input-shell:focus-within, .phone-shell:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(194,11,20,.1); }
.field-icon, .country-prefix { display: flex; align-items: center; justify-content: center; border-right: 1px solid #d8dce3; background: #f4f5f7; }
.field-icon { width: 60px; }
.field-icon svg { width: 24px; height: 24px; fill: none; stroke: #69717f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.input-shell input, .input-shell select, .phone-shell input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--black); background: transparent; padding: 0 17px; }
.input-shell select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg,transparent 50%,#59616d 50%),linear-gradient(135deg,#59616d 50%,transparent 50%); background-position: calc(100% - 23px) 25px,calc(100% - 17px) 25px; background-size: 6px 6px,6px 6px; background-repeat: no-repeat; padding-right: 48px; }
.phone-shell .country-prefix { min-width: 116px; gap: 8px; color: #252932; font-weight: 700; }
.flag { font-size: 1.35rem; }
input::placeholder { color: #9ba1aa; }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: .75rem; }
.error-text { min-height: 18px; margin: 6px 0 0; color: #b20710; font-size: .75rem; font-weight: 600; }
.is-invalid { border-color: #c20b14 !important; box-shadow: 0 0 0 4px rgba(194,11,20,.09) !important; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; cursor: pointer; color: #343943; line-height: 1.55; }
.consent-row input { width: 21px; height: 21px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--red); }
.consent-error { margin-left: 33px; }
.privacy-note { margin: 13px 0 0 33px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.form-status { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 11px; font-size: .84rem; font-weight: 700; }
.form-status.is-error { display: block; color: #7d1117; background: #fff1f2; border: 1px solid #f2bec2; }
.submit-button { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#e11a24,#a70710); box-shadow: 0 14px 28px rgba(194,11,20,.26); font-size: 1.05rem; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(194,11,20,.3); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.submit-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; color: #747b86; font-size: .78rem; }
.site-footer { padding: 18px 18px 36px; text-align: center; color: #858b94; font-size: .78rem; }
.site-footer p { margin: 5px 0; }
.site-footer a { color: inherit; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,7,10,.65); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(100%,470px); padding: 34px 28px 28px; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); text-align: center; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: #737983; font-size: 2rem; cursor: pointer; }
.modal-check { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--red); font-size: 2rem; font-weight: 900; }
.modal-card h2 { margin: 0; font-size: 1.35rem; }
.modal-card p { margin: 12px 0 22px; color: var(--muted); line-height: 1.65; }
.modal-button { min-width: 140px; min-height: 46px; border: 0; border-radius: 12px; color: #fff; background: var(--black); font-weight: 800; cursor: pointer; }

.admin-body { min-height: 100vh; background: linear-gradient(145deg,#f8f8f9,#eceef2); }
.admin-shell { width: min(100% - 28px,1180px); margin: 0 auto; padding: 42px 0; }
.admin-login-card { width: min(100%,460px); margin: 7vh auto 0; padding: 34px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.admin-brand { color: var(--red); text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.admin-login-card h1 { margin: 12px 0 7px; }
.admin-login-card p { color: var(--muted); line-height: 1.6; }
.admin-alert, .admin-warning { padding: 13px 15px; border-radius: 12px; color: #7a171c; background: #fff1f2; border: 1px solid #f1bfc3; }
.admin-login-form { padding-top: 12px; }
.admin-login-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.admin-login-form input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.admin-login-form input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(194,11,20,.1); }
.admin-login-form button { width: 100%; min-height: 52px; margin-top: 14px; border: 0; border-radius: 12px; color: #fff; background: var(--red); font-weight: 800; cursor: pointer; }
.admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-header p { margin: 7px 0 0; color: var(--muted); }
.admin-actions { display: flex; gap: 10px; }
.button-secondary, .button-dark { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 11px; text-decoration: none; font-weight: 800; }
.button-secondary { color: var(--red-dark); background: #fff; border: 1px solid #e2b7ba; }
.button-dark { color: #fff; background: var(--black); }
.admin-warning { margin-bottom: 18px; }
.admin-table-card { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid #eceef2; text-align: left; white-space: nowrap; }
th { color: #5e6570; background: #f7f8fa; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
td { font-size: .88rem; }
td a { color: var(--red-dark); }
.empty-state { padding: 70px 20px; color: var(--muted); text-align: center; }
.admin-back { text-align: center; margin-top: 22px; }

.legal-shell { width: min(100% - 28px,820px); margin: 0 auto; padding: 34px 0 60px; }
.legal-back { display: inline-block; margin-bottom: 17px; color: var(--black); text-decoration: none; font-weight: 700; }
.legal-card { padding: clamp(24px,5vw,48px); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.legal-updated { color: var(--muted); }
.legal-card h2 { margin: 30px 0 8px; font-size: 1.05rem; }
.legal-card p { line-height: 1.75; }

@media (max-width: 720px) {
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-actions { width: 100%; }
  .admin-actions a { flex: 1; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 70px; }
  .brand-icon { width: 42px; height: 42px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { max-width: 175px; font-size: .58rem; }
  .page-shell { width: min(100% - 20px,920px); margin-top: 14px; }
  .hero-card { border-radius: 17px; }
  .notice-card, .info-card { padding: 15px; border-radius: 15px; }
  .form-card { padding: 21px 16px; border-radius: 18px; }
  .phone-shell .country-prefix { min-width: 102px; }
  .consent-row { font-size: .88rem; }
  .privacy-note { margin-left: 0; }
  .admin-login-card { padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
