:root {
  --background: #fafafa;
  --foreground: #181b22;
  --muted: #71717a;
  --border: #dadada;
  --primary: #c51f2f;
  --secondary: #1b3564;
  --white: #ffffff;
  --success: #16803c;
  --warning: #d99a13;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Rubik, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  background: var(--secondary);
  color: var(--white);
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.hero {
  position: relative;
  min-height: 580px;
  height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__overlay {
  background: rgba(0, 0, 0, 0.35);
}

.hero__card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  display: grid;
  gap: 22px;
  justify-items: center;
  background: var(--white);
  border-top: 4px solid var(--primary);
  padding: 48px 56px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.logo {
  width: 188px;
  height: auto;
}

.logo--large {
  width: min(320px, 100%);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 14px 28px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-1px);
}

.button--full {
  width: 100%;
}

.ticker {
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
  padding: 12px 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}

.ticker__track span {
  display: inline-flex;
  gap: 44px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.ticker__track span::after {
  content: "*";
  color: rgba(255, 255, 255, 0.45);
}

.section {
  padding: 80px 0;
}

.section--white {
  background: var(--white);
}

.container {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.container--narrow {
  width: min(760px, calc(100% - 32px));
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

h1,
h2 {
  margin: 0 0 24px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
}

h1 span,
h2 span {
  color: var(--primary);
}

p {
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stats div:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stats strong {
  display: block;
  color: var(--primary);
  font-size: 34px;
  font-weight: 900;
}

.stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.feature-image {
  position: relative;
  margin: 0;
}

.feature-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 4px solid var(--primary);
}

.feature-image figcaption {
  position: absolute;
  right: -12px;
  bottom: -12px;
  background: var(--secondary);
  color: var(--white);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.quote {
  background: var(--primary);
  color: var(--white);
  padding: 42px 16px;
  text-align: center;
}

.quote blockquote {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.18;
}

.quote p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading p:last-child {
  color: var(--muted);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  background: var(--background);
  transition: background 180ms ease;
}

.menu-item:hover {
  background: #fff3f4;
}

.menu-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.menu-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.menu-item strong {
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.booking-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  padding: 42px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(24, 27, 34, 0.65);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

input,
select {
  width: 100%;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--white);
  padding: 0 14px;
  color: var(--foreground);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
}

.form-note,
.form-message {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.form-note a,
.form-message {
  color: var(--primary);
  font-weight: 700;
}

.footer {
  background: var(--foreground);
  color: var(--white);
}

.footer__logo {
  display: grid;
  place-items: center;
  padding: 12px;
  border-bottom: 4px solid var(--primary);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 48px 0;
}

.footer__grid strong,
.footer__grid span {
  display: block;
}

.footer__grid span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer__label {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.footer__phone {
  color: var(--primary);
  font-size: 22px;
}

.copyright {
  margin: 0;
  padding: 0 16px 34px;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 14px 24px;
  background: var(--white);
  border-bottom: 4px solid var(--primary);
}

.admin-header span {
  padding-left: 22px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.admin-header__link {
  margin-left: auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.admin-page {
  padding: 42px 0;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.filter-card {
  border: 2px solid var(--border);
  background: var(--white);
  padding: 20px;
  text-align: left;
  cursor: pointer;
}

.filter-card.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.filter-card strong {
  display: block;
  color: var(--primary);
  font-size: 34px;
  font-weight: 900;
}

.filter-card.is-active strong {
  color: var(--white);
}

.filter-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.filter-card.is-active span {
  color: rgba(255, 255, 255, 0.8);
}

.refresh-status {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--white);
}

.refresh-status strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.refresh-status span {
  color: var(--muted);
  font-size: 13px;
}

.refresh-status__track {
  height: 4px;
  overflow: hidden;
  background: var(--border);
}

.refresh-status__bar {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 240ms linear;
}

.admin-search {
  margin-bottom: 24px;
  background: var(--white);
}

.reservation-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--white);
}

.reservation-card__info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.reservation-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.reservation-card p {
  margin: 0;
}

.status {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 900;
}

.status--pending {
  color: var(--warning);
}

.status--confirmed {
  color: var(--success);
}

.status--cancelled {
  color: var(--primary);
}

.reservation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
  justify-content: flex-end;
}

.action-button {
  border: 0;
  padding: 10px 14px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.action-button--confirm {
  background: var(--success);
}

.action-button--cancel {
  background: var(--warning);
}

.action-button--delete {
  background: var(--primary);
}

.empty-state {
  padding: 60px 20px;
  border: 2px dashed var(--border);
  background: var(--white);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 820px) {
  .topbar {
    font-size: 10px;
    line-height: 1.6;
  }

  .hero__card {
    padding: 34px 24px;
  }

  .split,
  .menu-grid,
  .form-grid,
  .footer__grid,
  .admin-filters,
  .refresh-status,
  .reservation-card,
  .reservation-card__info {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 14px;
  }

  .section {
    padding: 58px 0;
  }

  .booking-form {
    padding: 28px 18px;
  }

  .footer__grid {
    text-align: center;
  }

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

  .admin-header span {
    padding-left: 0;
    border-left: 0;
  }

  .admin-header__link {
    margin-left: 0;
  }
}
