:root {
  --brand-red: #7f170e;
  --brand-red-strong: #a20202;
  --surface: #ffffff;
  --surface-soft: #fff7f7;
  --text-main: #2c2c2c;
  --text-soft: #676767;
  --error: #ce2020;
  --border-soft: #e9d3d3;
  --shadow-soft: 0 24px 54px rgba(80, 0, 0, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text-main);
  background: #ffffff;
}

.topbar {
  background: linear-gradient(110deg, var(--brand-red), var(--brand-red-strong));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(110, 0, 0, 0.22);
}

.topbar__content {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 148px;
  padding: 12px 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.topbar__logo {
  width: min(280px, 88vw);
  height: auto;
  object-fit: contain;
}

.topbar__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.page {
  width: 100%;
  padding: 42px 20px 36px;
}

.btn-primary {
  border: 0;
  border-radius: 10px;
  background-color: var(--brand-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--brand-red-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(110, 0, 0, 0.22);
}

.btn-primary:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #2e2e2e;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .topbar__content {
    min-height: 118px;
    padding: 10px 14px 12px;
    gap: 6px;
  }

  .topbar__logo {
    width: min(220px, 84vw);
  }

  .page {
    padding: 20px 12px 24px;
  }
}
