:root {
  --white: #ffffff;
  --dark: #0f0f0f;
  --dark-secondary: #222222;
  --primary: #cb4e00;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
p,
ul {
  margin: 0;
  padding: 0;
}

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

ul {
  list-style: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--white);
  background: var(--dark);
  font: 400 16px/1.4 Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 50px;
}

/* ---------- Header ---------- */

.header {
  padding: 30px 0;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: down 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

.header__logo {
  display: block;
  width: 135px;
  height: 22px;
  color: var(--white);
}

.header__logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.header__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero__title {
  margin-bottom: 32px;
  font: 700 clamp(36px, 5.6vw, 80px) / 1.15 Onest, sans-serif;
  letter-spacing: -0.02em;
  animation: up 1s cubic-bezier(0.39, 0.575, 0.565, 1) 0.2s both;
}

.hero__lead {
  max-width: 600px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.4;
  animation: up 1s cubic-bezier(0.39, 0.575, 0.565, 1) 0.4s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: up 1s cubic-bezier(0.39, 0.575, 0.565, 1) 0.6s both;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 14px/1 Onest, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out,
    background-color 0.3s ease-out, color 0.3s ease-out, border-color 0.3s ease-out;
}

.button-primary {
  color: var(--white);
  background: var(--primary);
}

.button-primary:hover {
  box-shadow: 0 0 16px rgba(203, 78, 0, 0.5);
  transform: scale(0.95);
}

.button-outline {
  color: var(--white);
  border-color: var(--line);
}

.button-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(0.95);
}

/* ---------- Card ---------- */

.card {
  position: relative;
  padding: 40px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 48px;
  background: linear-gradient(90deg, #0d0d0d 0%, #070707 100%);
  animation: up 1s cubic-bezier(0.39, 0.575, 0.565, 1) 0.5s both;
}

.card__badge {
  position: absolute;
  top: -1px;
  left: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: var(--dark-secondary);
  font: 600 56px/1 Unbounded, Onest, sans-serif;
}

.card__badge i {
  align-self: flex-end;
  width: 11px;
  height: 11px;
  margin-bottom: 36px;
  border-radius: 50%;
  background: var(--primary);
}

.card__caption {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: lowercase;
}

.card__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 16px;
  margin: 0 -16px;
  border-top: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color 0.3s ease-out;
}

.card__list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.card__label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: lowercase;
}

.card__value {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  text-align: right;
}

.card__list a:hover {
  background: var(--primary);
  border-color: transparent;
}

.card__list a:hover .card__label {
  color: var(--white);
}

/* ---------- Footer ---------- */

.footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 30px;
  border-top: 1px solid #727272;
}

/* ---------- Floating chat button ---------- */

.widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.widget::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid transparent;
  border-top-color: var(--primary);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 4s linear infinite;
}

.widget svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.widget:hover {
  transform: scale(0.92);
  box-shadow: 0 0 16px rgba(203, 78, 0, 0.5);
}

/* ---------- Animations ---------- */

@keyframes up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes down {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__lead { margin-bottom: 36px; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }

  .header { padding: 20px 0; }
  .header__logo { width: 100px; height: 17px; }
  .header__status { font-size: 12px; padding: 7px 12px; }

  .hero { padding: 24px 0 40px; }

  .button {
    width: 100%;
    padding: 18px 24px;
  }

  .card {
    padding: 24px 20px 24px;
    border-radius: 32px;
  }

  .card__badge {
    width: 100px;
    height: 100px;
    font-size: 40px;
  }

  .card__badge i {
    width: 8px;
    height: 8px;
    margin-bottom: 26px;
  }

  .card__list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .card__value { text-align: left; }

  .footer__container { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
