.site-header {
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  text-decoration: none;
  flex-wrap: nowrap;
}

.brand-logo-rabotaru {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

.brand-word {
  color: #1557a6;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-dotru {
  color: #2aabee;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  display: block;
  width: auto !important;
  max-width: 220px;
  height: 48px;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 1;
  min-width: 0;
}

.home-card .next-steps {
  margin: 0;
  max-width: 100%;
}

.hero-cta .primary-button {
  min-width: 220px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 87, 166, 0.18);
  backdrop-filter: blur(6px);
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: min(480px, 100%);
  margin: 0;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.modal-actions .primary-button,
.modal-actions .secondary-button.wide {
  width: 100%;
  min-width: 0;
}

.secondary-button.wide {
  min-height: 48px;
  font-size: 13px;
}

.login-options {
  display: grid;
  gap: 10px;
}

.login-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfbfd;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.login-option:hover {
  border-color: #cfd2dc;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 34, 60, 0.06);
}

.login-option-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f4f7fb;
}

.login-option-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.login-option-icon img.wide {
  width: 44px;
  height: 44px;
}

.login-option-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #1a1d2a;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(21, 87, 166, 0.94);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  display: none;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.toast.visible {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 24px) !important;
    height: auto !important;
    min-height: 64px;
    padding-top: 4px;
    justify-content: flex-start;
    overflow: hidden;
  }

  .brand {
    gap: 10px;
    max-width: 100%;
    align-items: center;
  }

  .brand-word,
  .brand-dotru {
    font-size: 26px;
  }

  .brand-logo {
    width: auto !important;
    max-width: min(190px, calc(100vw - 150px));
    height: 38px;
    max-height: 40px;
  }

  .hero-cta .primary-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 8px;
  }

  .brand-word,
  .brand-dotru {
    font-size: 24px;
  }

  .brand-logo {
    max-width: min(165px, calc(100vw - 130px));
    height: 34px;
    max-height: 36px;
  }
}
